/* ============================================================================
   STYLSO TOOLS — DESIGN SYSTEM (single source of truth)
   Faithfully extracted from the live size-finder so every tool is identical and
   on-brand by construction. Tools import THIS file and use these classes; no tool
   re-defines colours, buttons, or cards. Luxury dark + gold.
   ============================================================================ */

:root {
  /* brand palette (exact, from the live size-finder) */
  --sx-accent:  #C9A24B;          /* primary gold            */
  --sx-accent2: #E4C878;          /* light gold (highlights) */
  --sx-bg:      #0A0A0B;          /* page background         */
  --sx-card:    #141417;          /* card surface            */
  --sx-field:   #0E0E10;          /* input surface           */
  --sx-line:    rgba(255,255,255,.09);
  --sx-txt:     #F6F6F4;          /* primary text            */
  --sx-mut:     #9A9A9E;          /* muted text              */
  --sx-fine:    #76767c;          /* fine print              */
  --sx-good:    #3FB97A;
  --sx-warn:    #E4C878;
  --sx-bad:     #E5604D;
  /* systematised scale (so every tool spaces + rounds the same) */
  --sx-radius:  9px;
  --sx-radius-lg: 14px;
  --sx-radius-pill: 7px;
  --sx-gap:     12px;
  --sx-maxw:    560px;            /* the tool reading column */
  --sx-font: 15px/1.55 -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--sx-bg); color: var(--sx-txt); font: var(--sx-font); }

/* layout ------------------------------------------------------------------ */
.sx-wrap { max-width: var(--sx-maxw); margin: 0 auto; padding: 22px 18px 26px; }
.sx-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sx-gap); margin-bottom: 16px; }
.sx-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--sx-gap); margin-bottom: 20px; }

/* header (logo + tool title) --------------------------------------------- */
.sx-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sx-brandlink { display: inline-flex; align-items: center; flex: 0 0 auto; transition: opacity .2s ease; }
.sx-brandlink:hover { opacity: .85; }
.sx-logo { height: 30px; width: auto; display: block; }
.sx-hd-txt { border-left: 1px solid var(--sx-line); padding-left: 12px; }
.sx-hd-txt h1 { font-size: 19px; margin: 0; }
.sx-sub { color: var(--sx-mut); font-size: 13px; margin-top: 2px; }

/* form controls ----------------------------------------------------------- */
.sx-label { font-size: 13px; color: var(--sx-mut); display: block; margin-bottom: 5px; }
.sx-input, .sx-select {
  width: 100%; background: var(--sx-field); border: 1px solid var(--sx-line); color: var(--sx-txt);
  border-radius: var(--sx-radius); padding: 11px 12px; font-size: 15px;
}
.sx-input:focus, .sx-select:focus { outline: none; border-color: var(--sx-accent); }
.sx-unit { display: flex; gap: 6px; } .sx-unit .sx-input { flex: 1; min-width: 0; } .sx-unit .sx-select { width: 66px; }

/* segmented control (Men/Women/Kids style) ------------------------------- */
.sx-seg { display: flex; gap: 8px; margin-bottom: 16px; }
.sx-seg button {
  flex: 1; background: var(--sx-card); border: 1px solid var(--sx-line); color: var(--sx-txt);
  border-radius: var(--sx-radius); padding: 10px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.sx-seg button.on { border-color: var(--sx-accent); color: var(--sx-accent2); }

/* result card + shimmer headline + confidence pills ----------------------- */
.sx-card-el { background: var(--sx-card); border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg); padding: 17px 18px; }
@keyframes sxShimmer { to { background-position: 200% center; } }
@keyframes sxSheen   { 0% { left: -75%; } 45% { left: 130%; } 100% { left: 130%; } }
.sx-headline {
  font-size: 36px; font-weight: 800;
  background: linear-gradient(100deg, #9A7A33, var(--sx-accent) 30%, #F1E3B4 50%, var(--sx-accent) 70%, #9A7A33);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #C9A24B; /* solid-gold fallback — never invisible */
  animation: sxShimmer 3.5s linear infinite;
}
.sx-pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--sx-radius-pill); }
.sx-pill.high   { background: rgba(63,185,122,.16);  color: #7fe0aa; }
.sx-pill.medium { background: rgba(228,200,120,.16); color: var(--sx-accent2); }
.sx-pill.low    { background: rgba(229,96,77,.16);   color: #f0a093; }
.sx-notes { margin: 12px 0 14px; padding-left: 18px; color: #C6C6CA; font-size: 13.5px; line-height: 1.65; }

/* the gold CTA button (matches the site standard: gradient + sheen + hover-invert) */
.sx-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; min-width: 210px; background: linear-gradient(135deg, var(--sx-accent2), var(--sx-accent));
  color: #0A0A0B; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 16px 32px; border-radius: var(--sx-radius-pill); border: 1px solid var(--sx-accent);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), background .35s ease, color .35s ease, box-shadow .35s ease;
}
.sx-btn::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg); animation: sxSheen 4.5s ease-in-out infinite; pointer-events: none;
}
.sx-btn:hover {
  background: #0A0A0B; color: var(--sx-accent2); border-color: var(--sx-accent);
  transform: translateY(-2px); box-shadow: 0 14px 34px rgba(201,162,75,.22);
}

/* primary result CTA — centered by convention (the money action, focal point) */
.sx-cta { text-align: center; margin: 8px 0 2px; }

/* email capture (lead magnet) -------------------------------------------- */
.sx-gate { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sx-line); }
.sx-gate form { display: flex; gap: 8px; }
.sx-gate .sx-input { flex: 1; }
.sx-gate button {
  background: var(--sx-field); border: 1px solid var(--sx-line); color: var(--sx-txt);
  border-radius: var(--sx-radius); padding: 0 16px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.sx-fine { font-size: 11.5px; color: var(--sx-fine); margin-top: 11px; line-height: 1.55; }

/* footer (powered by Stylso) --------------------------------------------- */
.sx-foot { text-align: center; margin-top: 18px; font-size: 12px; color: var(--sx-mut); }
.sx-foot a { color: var(--sx-accent2); text-decoration: none; }

/* embed mode (hide chrome when iframed into a blog/partner page) ----------- */
.sx-embed .sx-hd-txt h1, .sx-embed .sx-sub { font-size: 0; }

/* responsive: stack 3-up rows on small screens --------------------------- */
@media (max-width: 420px) { .sx-row3 { grid-template-columns: 1fr 1fr; } }
