/* ============================================================
   SortPicks design system
   Light-first, because shoppers trust light commerce pages and
   product photography reads better on white. Amber accents match
   the star ratings the whole product is about. Dark mode follows
   the visitor's OS preference.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg:        #ffffff;
  --bg-alt:    #f7f8fa;
  --surface:   #ffffff;
  --surface-2: #fbfcfd;
  --line:      #e4e7ec;
  --ink:       #101828;
  --ink-dim:   #5b6478;
  --gold:      #e08700;   /* star amber, readable on white */
  --gold-hi:   #ffa41c;   /* the amber shoppers associate with ratings */
  --gold-ink:  #241400;
  --mint:      #067a52;
  --coral:     #c0392b;
  --glow:      rgba(255,164,28,.22);
  --sh-sm:     0 1px 2px rgba(16,24,40,.05), 0 4px 14px rgba(16,24,40,.06);
  --sh-lg:     0 2px 6px rgba(16,24,40,.07), 0 18px 44px rgba(16,24,40,.11);
  --display:   "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body:      system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --rad:       14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0e1116;
    --bg-alt:    #141922;
    --surface:   #171d27;
    --surface-2: #1d2430;
    --line:      #29313f;
    --ink:       #eef1f6;
    --ink-dim:   #9aa4b6;
    --gold:      #ffb020;
    --gold-hi:   #ffc65c;
    --gold-ink:  #241400;
    --mint:      #3ecf8e;
    --coral:     #ff7a6b;
    --glow:      rgba(255,176,32,.13);
    --sh-sm:     0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.3);
    --sh-lg:     0 2px 6px rgba(0,0,0,.45), 0 20px 50px rgba(0,0,0,.45);
  }
}


* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body); background: var(--bg); color: var(--ink);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; }

/* ---------- full-bleed sections + contained content ---------- */
.section { width: 100%; padding: clamp(46px, 7vw, 86px) 0; }
.section.alt { background: var(--bg-alt); }
.section.tight { padding: clamp(30px, 4vw, 52px) 0; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); }
.container.narrow { max-width: 820px; }

/* ---------- nav ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 26px); padding: 14px 0; flex-wrap: wrap; }
nav .brand {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.025em;
  text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 8px;
}
nav .brand .star { color: var(--gold); filter: drop-shadow(0 0 10px var(--glow)); }
nav a { color: var(--ink-dim); text-decoration: none; font-size: .94rem; transition: color .18s; }
nav a:hover { color: var(--ink); }
nav .spacer { margin-left: auto; }
nav .install {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  color: var(--gold-ink); padding: 9px 18px; border-radius: 11px;
  font-weight: 700; font-size: .88rem; box-shadow: 0 4px 18px var(--glow);
  transition: transform .18s, box-shadow .18s; white-space: nowrap;
}
nav .install:hover { color: var(--gold-ink); transform: translateY(-1px); box-shadow: 0 10px 28px var(--glow); }

/* ---------- type ---------- */
h1 { font-family: var(--display); font-weight: 700; letter-spacing: -.04em; line-height: 1.08;
     font-size: clamp(2.05rem, 5.4vw, 3.7rem); margin-bottom: 18px; }
h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.2;
     font-size: clamp(1.45rem, 3vw, 2.15rem); margin-bottom: 16px; }
h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em;
     font-size: clamp(1rem, 1.5vw, 1.12rem); margin-bottom: 7px; }
p  { margin-bottom: 14px; max-width: 72ch; }
.lede { color: var(--ink-dim); font-size: clamp(1.02rem, 1.7vw, 1.2rem); max-width: 62ch; }
.stamp { font-size: .84rem; color: var(--ink-dim); }
a { color: var(--gold); }
.eyebrow { font-family: var(--display); font-size: .76rem; font-weight: 700; letter-spacing: .14em;
           text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; text-decoration: none; white-space: nowrap;
  font-size: clamp(.92rem, 1.3vw, 1.02rem); padding: 14px 28px; border-radius: 13px; border: 0;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--gold-ink);
  box-shadow: 0 6px 24px var(--glow); cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px var(--glow); color: var(--gold-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold); box-shadow: none; }
.btn.sm { padding: 10px 20px; font-size: .9rem; border-radius: 11px; }
.btnrow { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.btnrow.center { justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(50px, 8vw, 104px) 0 clamp(40px, 6vw, 76px); }
.hero:before {
  content: ""; position: absolute; inset: -30% 0 auto; height: 620px; max-width: 100vw; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 .hl {
  background: linear-gradient(112deg, var(--gold-hi), var(--gold) 55%, var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.proof { color: var(--ink-dim); font-size: .92rem; display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; }
.proof b { color: var(--ink); }
.proof .g { color: var(--gold); }

/* ---------- comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); padding: 20px; box-shadow: var(--sh-sm); }
.pane.win { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: var(--sh-lg); }
.pane h4 { font-family: var(--display); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em;
           color: var(--ink-dim); margin-bottom: 14px; }
.pane.win h4 { color: var(--gold); }
.line { font-size: .92rem; padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline; }
.line:last-child { border: 0; }
.line.gone { color: var(--coral); text-decoration: line-through; opacity: .8; }
.line b { font-family: var(--display); }
.st { color: var(--gold); letter-spacing: .5px; }

/* ---------- feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad);
        padding: 22px; box-shadow: var(--sh-sm); transition: transform .2s, border-color .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); box-shadow: var(--sh-lg); }
.tile .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--glow); color: var(--gold);
            display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 13px; }
.tile p { color: var(--ink-dim); font-size: .93rem; margin: 0; }

/* ---------- numbered method ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); padding: 22px; box-shadow: var(--sh-sm); }
.step .n { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1;
           background: linear-gradient(135deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text;
           background-clip: text; color: transparent; margin-bottom: 10px; display: block; }
.step p { color: var(--ink-dim); font-size: .93rem; margin: 0; }

/* ---------- product cards ---------- */
.g-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad);
          padding: 20px; margin-bottom: 16px; display: flex; gap: 20px; align-items: flex-start;
          box-shadow: var(--sh-sm); transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s, border-color .22s; }
.g-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.g-card.top:before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--rad); padding: 1px;
  background: linear-gradient(135deg, var(--gold-hi), color-mix(in srgb, var(--mint) 60%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.g-thumb { width: clamp(88px, 9vw, 116px); aspect-ratio: 1; flex-shrink: 0; border-radius: 13px; background: #fff;
           display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); }
.g-thumb img { width: 100%; height: 100%; object-fit: contain; }
.g-body { flex: 1; min-width: 0; }
.g-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 9px; }
.g-head h3 { margin: 0; line-height: 1.38; overflow-wrap: anywhere; flex: 1; }
.g-rank { font-family: var(--display); font-weight: 700; font-size: .74rem; border-radius: 7px;
          padding: 3px 9px; margin-right: 9px; display: inline-block; vertical-align: 2px;
          background: var(--surface-2); color: var(--ink-dim); border: 1px solid var(--line); }
.g-rank.m1 { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); border-color: transparent; box-shadow: 0 3px 14px var(--glow); }
.g-rank.m2 { background: linear-gradient(135deg, #c3cad6, #e8edf5); color: #1b2030; border-color: transparent; }
.g-rank.m3 { background: linear-gradient(135deg, #c98a52, #e6b183); color: #241403; border-color: transparent; }

.g-ring { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.g-ring svg { transform: rotate(-90deg); display: block; }
.g-ring .tr { stroke: var(--line); }
.g-ring .fl { stroke: url(#spgrad); stroke-linecap: round; }
.g-ring .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.g-ring .val b { font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.g-ring .val i { font-style: normal; font-size: .52rem; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .09em; margin-top: 2px; }

.g-meta { font-size: .9rem; color: var(--ink-dim); margin-bottom: 11px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.g-meta .rate { color: var(--ink); font-weight: 700; font-family: var(--display); }
.g-meta .dot { opacity: .4; }
.g-why { list-style: none; font-size: .9rem; margin-bottom: 14px; }
.g-why li { margin: 5px 0; padding-left: 20px; position: relative; color: var(--ink-dim); }
.g-why li:before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.g-why li.warn:before { background: var(--coral); }
.g-btn { display: inline-block; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: .9rem;
         padding: 10px 20px; border-radius: 11px; background: linear-gradient(135deg, var(--gold-hi), var(--gold));
         color: var(--gold-ink); box-shadow: 0 4px 18px var(--glow); transition: transform .18s, box-shadow .18s; }
.g-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px var(--glow); color: var(--gold-ink); }
.g-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }

/* ---------- panels, lists, faq ---------- */
.panel { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line);
         border-radius: var(--rad); padding: clamp(20px, 3vw, 30px); box-shadow: var(--sh-sm); }
.guidelist a { display: block; text-decoration: none; color: var(--ink); background: var(--surface);
               border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 11px;
               transition: transform .2s, border-color .2s, box-shadow .2s; }
.guidelist a:hover { transform: translateX(4px); border-color: var(--gold); box-shadow: var(--sh-sm); }
.guidelist b { display: block; font-family: var(--display); font-size: 1.06rem; margin-bottom: 2px; }
.guidelist span { font-size: .88rem; color: var(--ink-dim); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
          padding: 15px 19px; margin-bottom: 10px; transition: border-color .2s; }
details[open] { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
summary { cursor: pointer; font-weight: 600; font-family: var(--display); }
details p { margin: 12px 0 0; color: var(--ink-dim); font-size: .95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 100px;
        padding: 7px 15px; font-size: .85rem; color: var(--ink-dim); }

/* ---------- cta band ---------- */
.band { position: relative; overflow: hidden; text-align: center;
        background: linear-gradient(150deg, var(--surface), var(--surface-2));
        border: 1px solid var(--line); border-radius: 22px; padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 44px); box-shadow: var(--sh-sm); }
.band:before { content: ""; position: absolute; inset: -60% 0 auto; height: 280px;
               background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.band > * { position: relative; }
.band p { color: var(--ink-dim); max-width: 560px; margin: 0 auto 8px; }

/* ---------- footer ---------- */
footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: clamp(32px, 4vw, 48px) 0 40px;
         font-size: .8rem; color: var(--ink-dim); }
footer p { margin-bottom: 11px; max-width: none; }
footer a { color: var(--ink-dim); }
footer a:hover { color: var(--ink); }
.footlinks { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- prose (privacy page) ---------- */
.prose h2 { margin-top: 38px; }
.prose h3 { margin-top: 24px; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin: 7px 0; color: var(--ink-dim); }
.prose p { color: var(--ink-dim); }
.prose strong, .prose b { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  h1, h2, h3 { overflow-wrap: anywhere; }
}
@media (max-width: 680px) {
  .compare { grid-template-columns: 1fr; }
  .g-card { flex-direction: column; }
  .g-thumb { width: 100%; aspect-ratio: 16/10; }
  .g-head { flex-direction: row; }
  nav { gap: 12px; }
  nav .install { padding: 8px 14px; font-size: .84rem; }
  .btnrow .btn { flex: 1 1 100%; }
}
@media (min-width: 1500px) { .container { max-width: 1280px; } }
