/*
 * Site styles. Tokens copied from the extension (src/ui/tokens.css and src/config/brand.ts):
 * same neutrals (oklch), brand orange, fit verdict colors and system font stack.
 */
:root {
  color-scheme: light dark;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 0.75rem;
  --background: oklch(0.99 0.002 60);
  --foreground: oklch(0.2 0.01 50);
  --card: oklch(1 0 0);
  --secondary: oklch(0.96 0.004 60);
  --muted-foreground: oklch(0.5 0.012 50);
  --border: oklch(0.91 0.006 60);
  --brand: #c2410c;
  --brand-fg: #ffffff;
  --brand-soft: #fff1e8;
  --apply: oklch(0.6 0.15 155);
  --apply-soft: oklch(0.95 0.04 155);
  --apply-fg: oklch(0.42 0.11 155);
  --stretch-soft: oklch(0.96 0.05 85);
  --stretch-fg: oklch(0.47 0.11 65);
  --shadow: 0 1px 2px oklch(0.2 0.01 50 / 6%), 0 12px 32px oklch(0.2 0.01 50 / 8%);
  --maxw: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.17 0.006 50);
    --foreground: oklch(0.96 0.004 60);
    --card: oklch(0.21 0.007 50);
    --secondary: oklch(0.27 0.008 50);
    --muted-foreground: oklch(0.7 0.012 55);
    --border: oklch(1 0 0 / 12%);
    --brand: #fb923c;
    --brand-fg: #1c0f06;
    --brand-soft: #3a1d0c;
    --apply: oklch(0.72 0.15 155);
    --apply-soft: oklch(0.3 0.05 155);
    --apply-fg: oklch(0.82 0.12 155);
    --stretch-soft: oklch(0.32 0.05 80);
    --stretch-fg: oklch(0.86 0.11 85);
    --shadow: 0 1px 2px oklch(0 0 0 / 30%), 0 12px 32px oklch(0 0 0 / 35%);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 1rem/1.65 var(--font); -webkit-font-size-adjust: 100%; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--brand); color: var(--brand-fg); padding: 0.5rem 1rem; border-radius: 0.5rem; z-index: 20; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in oklab, var(--background) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.15rem; color: var(--foreground); text-decoration: none; letter-spacing: -0.01em; }
.logo img { width: 2rem; height: 2rem; border-radius: 0.55rem; }
.main-nav { display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; margin-left: auto; }
.main-nav a { color: var(--muted-foreground); text-decoration: none; font-size: 0.95rem; padding: 0.25rem 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--foreground); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.2rem; border-radius: 0.65rem; font: inherit; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn-primary { background: var(--brand); color: var(--brand-fg); }
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--foreground); border-color: var(--border); }
.btn-secondary:hover { background: var(--secondary); text-decoration: none; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn-static { background: var(--secondary); color: var(--foreground); cursor: default; }

/* Sections */
section.block { padding: 4.5rem 0; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.75rem; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.section-head p { color: var(--muted-foreground); margin-top: 0.75rem; font-size: 1.05rem; }
.alt { background: var(--secondary); }

/* Hero */
.hero { padding: 4.5rem 0 4rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1fr 1.15fr; } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .sub { font-size: 1.2rem; color: var(--muted-foreground); margin: 1.25rem 0 1.75rem; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.fine { color: var(--muted-foreground); font-size: 0.9rem; margin-top: 1rem; }

/* Hero visual (HTML mock; replace with <img src="assets/hero.png"> when a real screenshot exists) */
.mock { display: grid; gap: 0.75rem; grid-template-columns: 1fr; background: var(--secondary); border: 1px solid var(--border); border-radius: 1.1rem; padding: 0.75rem; box-shadow: var(--shadow); font-size: 0.85rem; }
@media (min-width: 36rem) { .mock { grid-template-columns: 1.25fr 1fr; } }
.mock-page, .mock-panel { background: var(--card); border: 1px solid var(--border); border-radius: 0.8rem; padding: 1rem; position: relative; }
.mock-page .co { color: var(--muted-foreground); font-size: 0.8rem; }
.mock-page h3 { font-size: 1.05rem; margin: 0.15rem 0 0.75rem; letter-spacing: -0.01em; }
.bar-line { height: 0.5rem; border-radius: 0.25rem; background: var(--border); margin-bottom: 0.55rem; }
.pill { position: absolute; top: 0.85rem; right: 0.85rem; display: inline-flex; align-items: center; gap: 0.4rem; background: var(--apply-soft); color: var(--apply-fg); border: 1px solid color-mix(in oklab, var(--apply) 40%, transparent); border-radius: 999px; padding: 0.3rem 0.7rem; font-weight: 700; font-size: 0.8rem; box-shadow: var(--shadow); }
.pill i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--apply); display: block; }
.ring { width: 5rem; height: 5rem; margin: 0 auto 0.5rem; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; }
.verdict { text-align: center; font-weight: 700; color: var(--apply-fg); margin: 0; }
.advice { text-align: center; color: var(--muted-foreground); margin: 0 0 0.85rem; font-size: 0.8rem; }
.mock-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); margin: 0.6rem 0 0.35rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.75rem; background: var(--apply-soft); color: var(--apply-fg); }
.chips.gap li { background: var(--stretch-soft); color: var(--stretch-fg); }
.mock-btn { margin-top: 0.85rem; text-align: center; background: var(--brand); color: var(--brand-fg); padding: 0.45rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.8rem; }
.mock-note { grid-column: 1 / -1; margin: 0; text-align: center; color: var(--muted-foreground); font-size: 0.75rem; }

/* Steps, cards */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; margin-bottom: 1rem; }
.steps h3, .card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.steps p, .card p { color: var(--muted-foreground); margin: 0; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card .ico { width: 2.5rem; height: 2.5rem; border-radius: 0.6rem; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 1rem; }
.card .ico svg { width: 1.3rem; height: 1.3rem; }

/* Privacy block */
.privacy-box { display: grid; gap: 2rem; grid-template-columns: 1fr; background: var(--card); border: 1px solid var(--border); border-radius: 1.25rem; padding: 2rem; }
@media (min-width: 52rem) { .privacy-box { grid-template-columns: 1fr 1fr; padding: 2.5rem; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.3rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--apply-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23358a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* Plans */
.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -0.8rem; left: 1.5rem; background: var(--brand); color: var(--brand-fg); font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.7rem; border-radius: 999px; }
.plan h2, .plan h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.plan .pitch { color: var(--muted-foreground); margin-bottom: 1rem; }
.plan .price { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; margin: 0; line-height: 1.2; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted-foreground); letter-spacing: 0; }
.plan .alt-price { color: var(--muted-foreground); margin: 0.15rem 0 1.25rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.55rem; }
.plan ul li { position: relative; padding-left: 1.5rem; }
.plan ul li::before { content: ""; position: absolute; left: 0; top: 0.5rem; width: 0.8rem; height: 0.45rem; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg) translateY(-30%); }
.plan .btn, .plan .cta-static { margin-top: auto; }
.cta-static { text-align: center; padding: 0.7rem 1.2rem; border-radius: 0.65rem; background: var(--secondary); font-weight: 600; margin-bottom: 0; }
.compact .plan { padding: 1.4rem; }
.compact .plan .price { font-size: 1.8rem; }
.compact .plan .alt-price { margin-bottom: 0; }
.more { margin-top: 1.5rem; }

/* Billing toggle: both prices show without JS */
.toggle { display: none; margin: 0 0 2rem; }
.js .toggle { display: inline-flex; }
.toggle { padding: 0.25rem; background: var(--secondary); border: 1px solid var(--border); border-radius: 999px; gap: 0.25rem; }
.toggle button { font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--muted-foreground); padding: 0.45rem 1.1rem; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--brand); color: var(--brand-fg); }
.price .yearly { display: none; }
.js [data-billing="yearly"] .price .yearly { display: inline; }
.js [data-billing="yearly"] .price .monthly { display: none; }
.js [data-billing] .alt-price { display: none; }
.pricing-notes { margin-top: 3rem; max-width: 48rem; }
.pricing-notes h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.pricing-notes ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.pricing-notes li { margin-bottom: 0.4rem; }

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 1.1rem 2rem 1.1rem 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 1.45rem; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--muted-foreground); border-bottom: 2px solid var(--muted-foreground); transform: rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
.faq details > div { padding: 0 0 1.1rem; color: var(--muted-foreground); }
.faq details > div p:last-child { margin: 0; }

/* Install band */
.install { text-align: center; background: var(--brand-soft); border-radius: 1.25rem; padding: 3rem 1.5rem; }
.install h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
.install p { color: var(--muted-foreground); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0 3rem; color: var(--muted-foreground); font-size: 0.92rem; }
.foot-top { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.foot-nav a { color: var(--foreground); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0 0 0.35rem; }

/* Documents (terms, privacy, refund) */
.doc { padding: 3rem 0 4rem; }
.doc-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 62rem) { .doc-grid { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; } .toc { position: sticky; top: 5.5rem; align-self: start; max-height: calc(100vh - 7rem); overflow: auto; } }
.toc { font-size: 0.92rem; }
.toc-title { font-weight: 700; margin: 0 0 0.5rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.toc a { color: var(--muted-foreground); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }
.article { max-width: 70ch; }
.article h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 0.75rem; }
.article h2 { font-size: 1.3rem; margin: 2.25rem 0 0.6rem; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-bottom: 0.4rem; }
.lead { color: var(--muted-foreground); font-size: 1.1rem; }
.updated { color: var(--muted-foreground); font-size: 0.92rem; }
.facts { background: var(--secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.25rem 0 0.5rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; }
.facts dt { color: var(--muted-foreground); }
.facts dd { margin: 0; }
.facts p { margin: 0.75rem 0 0; }
@media (max-width: 30rem) { .facts dl { grid-template-columns: 1fr; } .facts dd { margin-bottom: 0.5rem; } }
@media (max-width: 40rem) { section.block { padding: 3rem 0; } .hero { padding-top: 2.5rem; } .main-nav { margin-left: 0; width: 100%; order: 3; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Checkout page */
.checkout { padding: 4rem 1.25rem 5rem; display: flex; justify-content: center; }
.checkout-card { width: 100%; max-width: 32rem; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.5rem 1.5rem; }
.checkout-card h1 { font-size: 1.6rem; margin-bottom: 1rem; }
.checkout-status { min-height: 6rem; }
.checkout-status p { margin: 0 0 1rem; }
.checkout-status p:last-child { margin-bottom: 0; }
.checkout-help { color: var(--muted-foreground); font-size: 0.95rem; }
.spinner { display: block; width: 2rem; height: 2rem; margin: 0 auto 1rem; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
