:root {
  --bg: #ffffff;
  --fg: #111318;
  --muted: #5f6673;
  --faint: #8a909b;
  --line: #e7e9ee;
  --soft: #f5f6f8;
  --track: #eef0f3;
  --accent: #2f6fed;
  --accent-ink: #ffffff;
  --shadow: 0 24px 60px rgba(17, 19, 24, 0.14), 0 4px 12px rgba(17, 19, 24, 0.06);
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --fg: #eef0f4;
    --muted: #a3a9b4;
    --faint: #7c838f;
    --line: #23262e;
    --soft: #15181e;
    --track: #252932;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

/* ---------- nav ---------- */
nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; }
.logo svg { display: block; flex: none; }
nav .links { display: flex; gap: 22px; font-size: 14px; }
nav .links a { color: var(--muted); text-decoration: none; }
nav .links a:hover { color: var(--fg); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  padding: 24px 0 110px;
}
h1 { text-wrap: balance; font-size: clamp(36px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 20px; font-weight: 720; }
.lede { text-wrap: pretty; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 30em; margin: 0 0 32px; }
.lede b { color: var(--fg); font-weight: 600; }

.cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 18px; font-weight: 650; text-decoration: none;
  padding: 16px 26px 16px 22px; border-radius: 12px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 42%, transparent); }
.cta:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; }
.cta svg { width: 22px; height: 22px; }

/* ---------- hero visual: a product page with the card on top ---------- */
.stage { position: relative; }
.browser {
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg);
  box-shadow: 0 2px 0 var(--line); overflow: hidden; aspect-ratio: 1.08;
}
.chrome { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--soft); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.chrome .url { margin-left: 12px; height: 20px; flex: 1; min-width: 0; max-width: 280px; text-overflow: ellipsis; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font-size: 11px; color: var(--faint); display: flex; align-items: center; padding: 0 8px; overflow: hidden; white-space: nowrap; }
.page { display: grid; grid-template-columns: 0.85fr 1fr; gap: 20px; padding: 20px; font-size: 12px; line-height: 1.35; color: var(--fg); }
.page p { margin: 0; }
/* product photos sit on white in real stores, in either theme */
.pp-img { aspect-ratio: 1; border-radius: 10px; background: #f4f5f7; display: grid; place-items: center; }
.pp-img svg { width: 86%; height: 86%; }
.pp-stock { margin-top: 10px !important; color: #c4281c; font-weight: 650; }
.pp-timer { margin-top: 2px !important; color: var(--muted); }
.pp-timer b { color: #c4281c; font-variant-numeric: tabular-nums; }
.pp-cart { display: block; margin-top: 10px; padding: 8px 0; border-radius: 999px; background: #0071dc; color: #fff; font-weight: 650; text-align: center; }
.pp-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; background: #0071dc; }
.pp-menu { width: 16px; height: 10px; border-top: 2px solid #fff; border-bottom: 2px solid #fff; position: relative; }
.pp-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid #fff; }
.pp-search { flex: 1; max-width: 260px; height: 22px; border-radius: 999px; background: #fff; color: #74767c; font-size: 11px; display: flex; align-items: center; padding: 0 10px; }
.pp-cart-ic { margin-left: auto; width: 16px; height: 12px; border: 2px solid #fff; border-top: 0; border-radius: 0 0 4px 4px; }
.pp-info { display: grid; gap: 7px; align-content: start; }
.pp-title { font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-stars { color: var(--muted); }
.pp-stars span { color: var(--fg); letter-spacing: 1px; }
.pp-price b { font-size: 20px; letter-spacing: -0.01em; color: #2a8703; }
.pp-price s { color: var(--faint); margin: 0 4px; }
.pp-save { justify-self: start; background: #eaf3e6; color: #2a8703; font-weight: 650; font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.pp-bullets { margin: 2px 0 0; padding-left: 16px; color: var(--muted); display: grid; gap: 3px; }

/* the card: same design as the extension's in-page card */
.bw-card {
  --good: #1a7f37; --good-bg: #e6f4ea; --bad: #c4281c; --bad-bg: #fde9e7;
  /* anchored from the top: the product's title/price/savings sit a fixed distance down, whatever the width */
  position: absolute; right: -18px; top: 226px; width: 292px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); font-size: 13px; line-height: 1.35;
}
@media (prefers-color-scheme: dark) {
  .bw-card { --good: #3fb950; --good-bg: rgba(63, 185, 80, 0.15); --bad: #ff6b5e; --bad-bg: rgba(255, 107, 94, 0.15); }
}
.bw-card .t-good { --tone: var(--good); --tone-bg: var(--good-bg); }
.bw-card .t-bad { --tone: var(--bad); --tone-bg: var(--bad-bg); }
.bw-card header { display: flex; align-items: center; gap: 8px; padding: 10px 12px 4px; }
.bw-card .by { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 3px; border-radius: 999px; background: var(--track); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.bw-card .by svg { display: block; }
.bw-card .title { margin: 2px 12px 10px; color: var(--fg); font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bw-card .summary { padding: 0 12px 10px; }
.bw-card .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; background: var(--tone-bg); color: var(--tone); font-weight: 650; font-size: 12.5px; }
.bw-card .ic { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--tone); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.bw-card .chip .ic { width: 16px; height: 16px; font-size: 10px; }
.bw-card ul { list-style: none; margin: 0; padding: 4px 0 8px; border-top: 1px solid var(--line); }
.bw-card li { display: flex; align-items: center; gap: 10px; padding: 7px 12px; }
.bw-card li.low { opacity: 0.55; }
.bw-card .what { flex: 1; font-weight: 560; }
.bw-card .how { color: var(--muted); font-size: 12px; }
.bw-card li.sep { display: block; padding: 8px 12px 2px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 40px; padding: 32px 0 72px; }
  .stage { max-width: 520px; }
  .bw-card { right: 8px; }
  .hero { padding-bottom: 150px; }
}
@media (max-width: 520px) {
  nav .links a.opt { display: none; }
  .browser { aspect-ratio: auto; height: 250px; }
  .page { grid-template-columns: 0.9fr 1.1fr; padding: 12px; gap: 12px; font-size: 11px; }
  .pp-title { font-size: 11.5px; -webkit-line-clamp: 2; }
  .pp-price b { font-size: 16px; }
  .pp-bullets, .pp-cart { display: none; }
  .bw-card { position: relative; right: auto; top: auto; width: auto; margin: -24px 12px 0; }
  .hero { padding-bottom: 72px; }
  .cta { width: 100%; justify-content: center; }
}

/* ---------- sections ---------- */
section { padding: 88px 0; border-top: 1px solid var(--line); }
h2 { text-wrap: balance; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 32px; font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps div { counter-increment: step; }
.steps div::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); font-size: 13px; font-weight: 650; margin-bottom: 14px; }
.steps h3, .plans h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.01em; }
.steps p, .plans p { margin: 0; color: var(--muted); font-size: 15px; }

.privacy-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 40px; margin: 0; padding: 0; list-style: none; }
.privacy-list li { padding-left: 26px; position: relative; color: var(--muted); }
.privacy-list li b { color: var(--fg); font-weight: 600; }
.privacy-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 20px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan.pro { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.price { font-size: 30px; font-weight: 720; letter-spacing: -0.02em; margin: 6px 0 12px; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); }

.final { text-align: center; }
.ph-embed { max-width: 500px; margin: 48px auto 0; text-align: left; }


@media (max-width: 760px) {
  section { padding: 64px 0; }
  .steps, .privacy-list, .plans { grid-template-columns: 1fr; }
}

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--faint); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--fg); }
footer.site .more { display: block; margin-top: 20px; }
footer.site .more p { margin: 0 0 6px; }
footer.site .more ul { list-style: none; margin: 0; padding: 0; }
footer.site .more li { margin: 4px 0; }

/* ---------- legal pages ---------- */
.doc { max-width: 720px; padding-top: 40px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(32px, 4vw, 42px); }
.doc h2 { font-size: 21px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc li { margin: 6px 0; }
.doc b, .doc strong { color: var(--fg); }
.doc .updated { color: var(--faint); font-size: 14px; margin-top: -8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--fg); font-weight: 600; }
.doc td { color: var(--muted); }
@media (max-width: 520px) { .doc table { font-size: 13px; } .doc th, .doc td { padding: 8px 6px; } }

@media (prefers-reduced-motion: reduce) { .cta { transition: none; } }

/* ---------- learn articles ---------- */
.doc .kicker { margin: 0 0 10px; font-size: 14px; }
.doc .kicker a { color: var(--accent); text-decoration: none; font-weight: 600; }
.doc .kicker a::before { content: "← "; }
.doc .lede { font-size: 18px; color: var(--muted); margin-bottom: 8px; }
.doc a { color: var(--accent); }
.checks { display: grid; gap: 10px; margin: 28px 0 8px; }
.checks a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--fg); transition: border-color 0.12s; }
.checks a:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.checks b { font-weight: 650; }
.checks span { color: var(--muted); font-size: 15px; }
.doc .tg { color: #1a7f37; } .doc .tw { color: #9a5b00; } .doc .tb { color: #c4281c; }
@media (prefers-color-scheme: dark) { .doc .tg { color: #3fb950; } .doc .tw { color: #e0a526; } .doc .tb { color: #ff6b5e; } }

/* ---------- developer docs ---------- */
.doc code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: color-mix(in srgb, var(--line) 45%, transparent); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.doc pre { background: color-mix(in srgb, var(--line) 35%, transparent); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; margin: 12px 0; }
.doc pre code { background: none; padding: 0; font-size: 13px; line-height: 1.5; overflow-wrap: normal; white-space: pre; }

/* ---------- pro and account ---------- */
.doc [hidden] { display: none !important; }
button.cta { border: 0; font-family: inherit; cursor: pointer; }
button.cta:disabled { opacity: 0.6; cursor: progress; transform: none; }
.doc .buybox { margin: 32px 0 8px; }
.buybox .price { margin-top: 0; }
.doc .buybox p { font-size: 15px; margin: 0 0 12px; }
.doc .buybox .renewal { color: var(--fg); }
.doc .buybox .fine { font-size: 13px; color: var(--faint); margin: 14px 0 0; }
.plan .get { margin-top: 16px; }
.doc .err { color: #c4281c; font-weight: 600; }
@media (prefers-color-scheme: dark) { .doc .err { color: #ff6b5e; } }
.doc .hint { font-size: 14px; color: var(--faint); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.panel > :last-child { margin-bottom: 0; }
.doc label { display: block; font-weight: 600; margin: 0 0 6px; }
.field-row { display: flex; flex-wrap: wrap; gap: 8px; }
.field-row input { flex: 1 1 220px; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); }
.field-row input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 0; border-color: var(--accent); }
.btn { font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 10px; border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn:hover { filter: brightness(1.06); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); filter: none; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.doc .acct-head h2 { margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; }
.meter { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; margin: 14px 0 6px; }
.meter > div { height: 100%; width: 0; background: var(--accent); }
.keybox { display: flex; gap: 8px; align-items: center; }
.doc .keybox code { flex: 1; min-width: 0; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.keylist:empty { display: none; }
.keylist { list-style: none; padding: 0; margin: 12px 0; border-top: 1px solid var(--line); }
.doc .keylist li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.keylist .grow { flex: 1; min-width: 0; }
.keylist b { display: block; overflow-wrap: anywhere; }
.keylist small { color: var(--faint); font-size: 13px; }
@media (max-width: 520px) {
  .panel { padding: 16px; }
  .field-row .btn { flex: 1 1 auto; }
}
