/* Fizz Price Scheduler. One motif: a sale is a stretch of time, so the page is a timeline. Prices that drop are
   sale-orange, prices that come back are restore-teal, and a price the merchant changed is amber. */
:root {
  --paper: #f3f4f7; --surface: #ffffff; --raised: #fbfbfd; --ink: #161a24; --ink-2: #555d6e; --ink-3: #8a91a1;
  --rule: #e1e4ea; --hair: rgba(22, 26, 36, .08);
  --sale: #c93a0c; --sale-soft: #fdebe3; --back: #0a7565; --back-soft: #dcf3ee; --kept: #8f5a00; --kept-soft: #fbf0d9;
  --track: #1d2233; --on-dark: #f5f6f9;
  --shadow: 0 1px 2px rgba(20, 24, 36, .05), 0 6px 20px -8px rgba(20, 24, 36, .12);
  --shadow-lg: 0 2px 4px rgba(20, 24, 36, .04), 0 24px 60px -20px rgba(20, 24, 36, .22);
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1117; --surface: #161a23; --raised: #1b202b; --ink: #eef0f5; --ink-2: #a9b0bf; --ink-3: #737b8c;
    --rule: #272d3a; --hair: rgba(255, 255, 255, .07);
    --sale: #ff7a4d; --sale-soft: rgba(255, 122, 77, .14); --back: #3cc9ad; --back-soft: rgba(60, 201, 173, .13);
    --kept: #f2b84b; --kept-soft: rgba(242, 184, 75, .13); --track: #0a0d13;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -10px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 70px -24px rgba(0, 0, 0, .7);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); overflow-x: clip; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sale); }
:focus-visible { outline: 2px solid var(--sale); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--round); line-height: 1.1; letter-spacing: -0.025em; margin: 0; }
.num, .price, .t { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--hair); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-family: var(--round); font-weight: 750; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .top nav a.opt { display: none; } .top nav { gap: 16px; } }

/* CTA from the build */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 12px; background: var(--ink); color: var(--paper);
  font-weight: 650; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; }
.cta-btn:hover { color: var(--paper); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.cta-note { font-size: .88rem; color: var(--ink-2); max-width: 26em; }

/* Hero */
.hero { position: relative; padding: 72px 0 88px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 360px at 80% 20%, color-mix(in srgb, var(--sale) 12%, transparent), transparent 70%),
              radial-gradient(420px 260px at 70% 70%, color-mix(in srgb, var(--back) 9%, transparent), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-bottom: 22px; }
.hero h1 span { display: block; }
.lead { font-size: 1.2rem; color: var(--ink-2); margin: 0 0 26px; max-width: 25em; }
.chip { display: block; width: fit-content; padding: 10px 16px; margin: 0 0 30px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow); font-size: .93rem; color: var(--ink-2); max-width: 100%; }
.chip strong { color: var(--back); font-family: var(--round); font-size: 1.05rem; margin-right: 4px; }
.chip a { margin-left: 4px; }
.chip a { font-weight: 600; color: var(--ink); }

/* The sale demo */
.demo { margin: 0; background: var(--surface); border: 1px solid var(--hair); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0; }
.demo-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 0; flex-wrap: wrap; }
.demo-head b { font-family: var(--round); font-size: 1.05rem; }
.demo-head .what { color: var(--ink-2); font-size: .9rem; }
.status { margin-left: auto; font-size: .8rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--ink-2);
  transition: background-color .3s, color .3s; white-space: nowrap; }
.status[data-s="live"] { background: var(--sale-soft); color: var(--sale); }
.status[data-s="ended"] { background: var(--back-soft); color: var(--back); }

.timeline { position: relative; margin: 44px 20px 4px; padding: 0 0 50px; }
.track { position: relative; height: 40px; border-radius: 10px; background: var(--track); overflow: hidden; }
.track .ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.13) 0 1px, transparent 1px 5%); }
.track .window { position: absolute; top: 0; bottom: 0; left: 10%; width: 80%; background: linear-gradient(90deg, color-mix(in srgb, var(--sale) 75%, transparent), color-mix(in srgb, var(--sale) 55%, transparent));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.track .window span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #fff; font-size: .8rem; font-weight: 650; white-space: nowrap; }
.mark { position: absolute; top: 46px; transform: translateX(-50%); font-size: .74rem; color: var(--ink-2); white-space: nowrap; text-align: center; line-height: 1.25; }
.mark b { display: block; color: var(--ink); font-weight: 650; }
.mark.start { left: 10%; } .mark.end { left: 90%; }
.mark.edit { left: 41.8%; top: -30px; color: var(--kept); font-weight: 650; padding: 2px 8px; border-radius: 6px; background: var(--kept-soft); }
.mark.edit::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 2px; height: 8px; margin-left: -1px; background: var(--kept); }
.head-line { position: absolute; top: -6px; height: 52px; width: 2px; margin-left: -1px; background: var(--ink); left: 0; border-radius: 2px; }
.head-line::before { content: ""; position: absolute; top: -5px; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--surface); }
.scrub { position: absolute; left: 0; right: 0; top: 0; height: 40px; width: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.scrub:focus-visible + .head-line::before { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--sale); }

.clockline { display: flex; align-items: center; gap: 12px; padding: 0 20px 12px; font-size: .88rem; color: var(--ink-2); }
.clockline .now { font-family: var(--round); font-weight: 700; color: var(--ink); font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.play { margin-left: auto; font: inherit; font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--raised); color: var(--ink); cursor: pointer; }
.play:hover { border-color: var(--ink-3); }

.rows { list-style: none; margin: 0; padding: 0 12px 6px; }
.row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 8px; border-top: 1px solid var(--rule);
  border-radius: 10px; transition: background-color .5s; }
.row:first-child { border-top-color: transparent; }
.thumb { width: 38px; height: 38px; border-radius: 9px; background: var(--paper); display: grid; place-items: center; }
.thumb svg { width: 22px; height: 22px; stroke: var(--ink-2); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.row .name { font-weight: 600; font-size: .95rem; line-height: 1.25; min-width: 0; }
.row .name small { display: block; font-weight: 400; color: var(--ink-2); font-size: .8rem; margin-top: 2px; }
.row .p { text-align: right; white-space: nowrap; }
.row .now-p { font-family: var(--round); font-weight: 750; font-size: 1.08rem; font-variant-numeric: tabular-nums; transition: color .4s; }
.row .was { margin-left: 8px; color: var(--ink-3); text-decoration: line-through; font-size: .88rem; font-variant-numeric: tabular-nums; }
.row .was:empty { display: none; }
.row .tag { display: block; font-size: .72rem; font-weight: 650; margin-top: 2px; min-height: 1.1em; }
.row[data-s="sale"] .now-p { color: var(--sale); }
.row[data-s="edited"] .now-p, .row[data-s="kept"] .now-p { color: var(--kept); }
.row[data-s="edited"] .tag, .row[data-s="kept"] .tag { color: var(--kept); }
.row[data-s="back"] .tag { color: var(--back); }
.row.flash-sale { background: var(--sale-soft); } .row.flash-back { background: var(--back-soft); } .row.flash-kept { background: var(--kept-soft); }
.demo figcaption { padding: 12px 20px 16px; border-top: 1px solid var(--rule); font-size: .86rem; color: var(--ink-2); min-height: 3.2em; }
.demo figcaption b { color: var(--ink); }

/* The page as a timeline */
.sec { padding: 96px 0; }
.sec-head { max-width: 40em; margin: 0 0 44px; }
.sec-head h2, .rail h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 780; letter-spacing: -0.035em; }
.sec-head p, .step-copy p { margin: 12px 0 0; color: var(--ink-2); font-size: 1.08rem; max-width: 34em; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.rail { list-style: none; margin: 0; padding: 0; position: relative; }
.rail::before { content: ""; position: absolute; left: 86px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--rule), var(--sale) 22%, var(--sale) 62%, var(--back) 80%, var(--rule)); }
.stop { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 56px; padding: 0 0 88px; }
.stop:last-child { padding-bottom: 0; }
.when { text-align: right; font-family: var(--round); font-weight: 750; font-size: 1.02rem; padding-top: 4px; font-variant-numeric: tabular-nums; }
.when small { display: block; font-family: var(--sans); font-weight: 400; color: var(--ink-2); font-size: .78rem; }
.stop::before { content: ""; position: absolute; left: 80px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface);
  border: 3px solid var(--ink-3); }
.stop.s-live::before { border-color: var(--sale); } .stop.s-back::before { border-color: var(--back); } .stop.s-kept::before { border-color: var(--kept); }
.step-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 940px) { .step-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; } }
.step-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
@media (max-width: 700px) {
  .rail::before { left: 7px; }
  .stop { grid-template-columns: minmax(0, 1fr); padding: 0 0 64px 34px; }
  .stop::before { left: 0; }
  .when { text-align: left; margin-bottom: 10px; }
  .when small { display: inline; margin-left: 6px; }
}

.card { background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; box-shadow: var(--shadow); min-width: 0; }

/* Before: schedule form mock + overlap */
.form { padding: 18px; display: grid; gap: 10px; font-size: .9rem; }
.f { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; }
.f > span { color: var(--ink-2); font-size: .84rem; }
.f .v { background: var(--raised); border: 1px solid var(--rule); border-radius: 9px; padding: 8px 10px; min-width: 0; overflow-wrap: anywhere; }
.f .v code { font: .84rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.f .pill { display: inline-block; background: var(--sale-soft); color: var(--sale); border-radius: 6px; padding: 0 6px; font-weight: 650; margin-right: 4px; }
.lanes { margin-top: 6px; padding: 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--rule); }
.lane { position: relative; height: 26px; margin-bottom: 8px; }
.lane i { position: absolute; top: 0; bottom: 0; border-radius: 7px; font-style: normal; font-size: .74rem; font-weight: 650; color: #fff; padding: 4px 8px; white-space: nowrap; overflow: hidden; }
.lane .a { left: 6%; width: 56%; background: var(--sale); }
.lane .b { left: 40%; width: 56%; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink-3) 70%, transparent) 0 6px, color-mix(in srgb, var(--ink-3) 45%, transparent) 6px 12px); color: var(--ink); }
.lane .clash { position: absolute; top: -3px; bottom: -3px; left: 40%; width: 22%; border: 2px solid var(--sale); border-radius: 8px; }
.refuse { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--sale); font-weight: 600; margin: 4px 0 0; }
.refuse svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }

/* 00:00 snapshot */
.snap { padding: 6px 0; overflow: hidden; }
.snap table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.snap th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: .78rem; padding: 10px 16px; border-bottom: 1px solid var(--rule); }
.snap td { padding: 11px 16px; border-bottom: 1px solid var(--rule); }
.snap tr:last-child td { border-bottom: 0; }
.snap td.r, .snap th.r { text-align: right; }
.snap .saved { color: var(--back); font-weight: 650; white-space: nowrap; }
.snap .stamp { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: .82rem; color: var(--ink-2); background: var(--raised); border-bottom: 1px solid var(--rule); }

/* During: your edit */
.edit { padding: 20px; display: grid; gap: 14px; }
.ed { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--rule); background: var(--raised); }
.ed .lbl { font-size: .8rem; color: var(--ink-2); }
.ed .big { font-family: var(--round); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ed.you { border-color: color-mix(in srgb, var(--kept) 55%, transparent); background: var(--kept-soft); }
.ed.you .big { color: var(--kept); }
.ed .note { grid-column: 1 / -1; font-size: .84rem; color: var(--ink-2); }

/* End: the rule */
.fork { padding: 22px; }
.q { font-family: var(--round); font-weight: 700; font-size: 1.05rem; text-align: center; padding: 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--rule); }
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; position: relative; }
.branches::before { content: ""; position: absolute; top: -30px; left: 25%; right: 25%; height: 18px; border: 2px solid var(--rule); border-bottom: 0; border-radius: 12px 12px 0 0; }
.br { padding: 14px; border-radius: 12px; font-size: .9rem; }
.br b { display: block; font-family: var(--round); font-size: 1rem; margin-bottom: 4px; }
.br.yes { background: var(--back-soft); } .br.yes b { color: var(--back); }
.br.no { background: var(--kept-soft); } .br.no b { color: var(--kept); }
.br .ex { margin-top: 8px; font-variant-numeric: tabular-nums; font-weight: 600; }

/* After: log */
.log { list-style: none; margin: 0; padding: 8px 0; font-size: .88rem; }
.log li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--rule); }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.log .k { font-weight: 650; }
.log .k.s { color: var(--sale); } .log .k.b { color: var(--back); } .log .k.c { color: var(--kept); }

/* Reliability tiles */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { padding: 22px; }
.tile .big { font-family: var(--round); font-size: 2.3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile p { margin: 10px 0 0; color: var(--ink-2); font-size: .93rem; }

/* Limits */
.limits { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.limit { padding: 22px; border-left: 4px solid var(--kept); }
.limit h3 { font-size: 1.1rem; margin-bottom: 6px; }
.limit p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Tool teaser */
.toolcard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; padding: 30px; text-decoration: none; position: relative; overflow: hidden; }
@media (min-width: 800px) { .toolcard { grid-template-columns: minmax(0, 1fr) auto; padding: 36px 40px; } }
.toolcard h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.toolcard p { margin: 8px 0 0; color: var(--ink-2); }
.toolcard:hover { color: inherit; box-shadow: var(--shadow-lg); }
.calcmini { display: flex; align-items: baseline; gap: 10px; font-family: var(--round); font-variant-numeric: tabular-nums; white-space: nowrap; flex-wrap: wrap; }
.calcmini .o { color: var(--ink-3); text-decoration: line-through; font-size: 1.3rem; }
.calcmini .n { color: var(--sale); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.04em; }
.calcmini .off { font-size: .85rem; font-weight: 700; color: var(--sale); background: var(--sale-soft); padding: 3px 8px; border-radius: 6px; }
.go { display: inline-block; margin-top: 14px; font-weight: 650; color: var(--sale); }

/* Comparison cards from the build */
.cmp-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.cmp-card { position: relative; background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; padding: 24px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cmp-card.us { background: var(--track); color: var(--on-dark); border-color: transparent; box-shadow: var(--shadow-lg), 0 30px 80px -36px var(--sale); }
@media (min-width: 900px) { .cmp-card.us { transform: translateY(-10px); } }
.cmp-badge { align-self: flex-start; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sale); color: #fff; margin-bottom: 14px; }
.cmp-name { font-size: 1.08rem; margin: 0 0 4px; }
.cmp-plan { margin: 0 0 16px; font-size: .86rem; color: var(--ink-2); min-height: 2.6em; }
.cmp-card.us .cmp-plan { color: #b8bfcd; }
.cmp-price { margin: 0; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.cmp-amount { font-family: var(--round); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.cmp-card.us .cmp-amount { color: #ffb08f; }
.cmp-per { color: var(--ink-2); font-size: .95rem; }
.cmp-tag { display: block; margin-top: 10px; font-size: .82rem; color: var(--ink-2); }
.cmp-card.us .cmp-tag { color: #b8bfcd; }
.cmp-checks { list-style: none; margin: 20px 0 0; padding: 0; font-size: .9rem; }
.cmp-checks li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--rule); }
.cmp-card.us .cmp-checks li { border-top-color: rgba(255,255,255,.1); }
.cmp-checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--back-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230a7565' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.cmp-checks li.no { color: var(--ink-2); }
.cmp-checks li.no::before { background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' fill='none' stroke='%238a91a1' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.cmp-card.us .cmp-checks li.yes::before { background-color: rgba(60, 201, 173, .2); }
.cmp-card.us .cmp-checks li.no { color: #b8bfcd; }
.cmp-card.us .cmp-checks li.no::before { background-color: rgba(255,255,255,.08); }
.cmp-sources { margin: 24px auto 0; max-width: 62em; text-align: center; font-size: .78rem; color: var(--ink-2); }
.cmp-sources a { color: var(--ink-2); }

/* Guides list */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.guide-list li { background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); position: relative; }
.guide-list a { font-family: var(--round); font-weight: 700; font-size: 1.1rem; text-decoration: none; line-height: 1.25; display: block; }
.guide-list a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.guide-list li:hover { border-color: color-mix(in srgb, var(--sale) 40%, transparent); }
.guide-list span { display: block; margin-top: 8px; font-size: .9rem; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 650; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.faq-a { padding: 0 0 20px; color: var(--ink-2); }
.faq-a p { margin: 0 0 10px; }
.faq-a code { font-size: .9em; }

/* Closing */
.closing { text-align: center; padding: 100px 0 110px; }
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.045em; margin-bottom: 14px; }
.closing p { color: var(--ink-2); margin: 0 auto 28px; max-width: 30em; }
.closing .cta { justify-content: center; }
footer { border-top: 1px solid var(--rule); padding: 32px 0 48px; font-size: .88rem; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--ink-2); }

/* Articles and guides index */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 24px 40px; }
@media (max-width: 600px) { .doc { padding: 40px 16px 32px; } }
.crumbs { font-size: .86rem; color: var(--ink-2); margin-bottom: 26px; }
.crumbs a { color: var(--ink-2); }
.doc h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.06; }
.meta { margin: 16px 0 34px; font-size: .88rem; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.meta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--back); }
.prose { font-size: 1.06rem; line-height: 1.72; }
.prose h2 { font-size: 1.6rem; margin: 52px 0 12px; letter-spacing: -0.03em; }
.prose h3 { font-size: 1.22rem; margin: 34px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--sale); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--ink-2); }
.prose blockquote p { margin: 0; }
.prose code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); border: 1px solid var(--rule); border-radius: 5px; padding: 1px 5px; }
.prose pre { background: var(--track); color: var(--on-dark); border-radius: 12px; padding: 16px; overflow-x: auto; font-size: .88rem; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose .table { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-weight: 650; background: var(--raised); }
.related { max-width: 720px; margin: 0 auto; padding: 8px 24px 40px; }
.related h2 { font-size: 1.3rem; margin-bottom: 16px; }
.related .guide-list { grid-template-columns: minmax(0, 1fr); }
.appbox { max-width: 720px; margin: 10px auto 0; padding: 0 24px; }
.appbox .card { padding: 24px; display: grid; gap: 16px; }
.appbox h2 { font-size: 1.3rem; }
.appbox p { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { .related, .appbox { padding-left: 16px; padding-right: 16px; } }
.page-head { padding: 64px 0 36px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.045em; }
.page-head p { color: var(--ink-2); font-size: 1.1rem; margin: 12px 0 0; max-width: 34em; }

/* Sale price calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 940px) { .calc { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px; } .calc-out { position: sticky; top: 84px; } }
.calc-form { padding: 24px; display: grid; gap: 18px; }
.fld { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.fld > label, .fld legend, .bulk-in label { font-weight: 650; font-size: .92rem; padding: 0; }
.fld small { font-weight: 400; color: var(--ink-2); }
.calc input:not([type=radio]), .calc select, textarea { font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--raised); border: 1px solid var(--rule);
  border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.calc input:focus, .calc select:focus, textarea:focus { outline: none; border-color: var(--sale); box-shadow: 0 0 0 4px var(--sale-soft); }
.money { display: flex; gap: 8px; } .money select { width: auto; flex: none; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg legend { width: 100%; margin-bottom: 7px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--raised); font-size: .92rem; transition: background-color .2s, color .2s, border-color .2s; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--sale); outline-offset: 2px; }
.result { padding: 26px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; align-items: center; }
.prod { width: 72px; height: 88px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; }
.prod svg { width: 40px; height: 40px; stroke: var(--ink-3); fill: none; stroke-width: 1.4; stroke-linejoin: round; }
.res-label { margin: 0; font-size: .82rem; color: var(--ink-2); }
.res-price { margin: 4px 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-family: var(--round); font-variant-numeric: tabular-nums; }
.res-price .n { color: var(--sale); font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.res-price .o { color: var(--ink-3); text-decoration: line-through; font-size: 1.3rem; }
.res-save { margin: 6px 0 0; font-weight: 600; color: var(--back); }
.res-note { margin: 4px 0 0; font-size: .86rem; color: var(--ink-2); }
.res-note:empty { display: none; }
.fields { margin: 14px 0 0; padding: 6px 20px; }
.fields div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.fields div:last-child { border-bottom: 0; }
.fields dt { color: var(--ink-2); } .fields dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.bulk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 800px) { .bulk { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.bulk-in { padding: 20px; display: grid; gap: 8px; align-content: start; }
.bulk-in textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; line-height: 1.6; }
.bulk-out { padding: 6px 0; overflow: hidden; }
.tablewrap { overflow-x: auto; }
.bulk-out table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.bulk-out th { text-align: right; font-size: .8rem; color: var(--ink-2); font-weight: 600; padding: 10px 18px; border-bottom: 1px solid var(--rule); }
.bulk-out td { text-align: right; padding: 10px 18px; border-bottom: 1px solid var(--rule); }
.bulk-out th:first-child, .bulk-out td:first-child { text-align: left; }
.bulk-out tr:last-child td { border-bottom: 0; }
.bulk-out td.sale { color: var(--sale); font-weight: 700; }
.bulk-out td.bad { color: var(--kept); text-align: left; }

/* Narrow phones: drop the compare-at column from the snapshot card and tighten the header. */
@media (max-width: 480px) {
  .snap th:nth-child(3), .snap td:nth-child(3) { display: none; }
  .snap th, .snap td { padding-left: 12px; padding-right: 12px; }
  .top nav { gap: 14px; font-size: .9rem; }
}
@media (max-width: 600px) { .hero { padding: 40px 0 56px; } .sec { padding-top: 64px; padding-bottom: 64px; } }
