/* VeraLens website. Design-system tokens only (docs/ui-design/Design-System/tokens): colors, SF Pro via the system
   stack (no web fonts), type ramp, radii and shadows. Layout follows artboards W01-W03 (VeraLens 8 Web). No scripts. */
:root {
  --surface-100: #F6F8F4;
  --surface-200: #FFFFFF;
  --surface-300: #ECF0EA;
  --ink: #14201A;
  --ink-muted: #4B5850;
  --hairline: #DCE2DA;
  --control-border: #8A968E;
  --leaf-600: #1E7B4F;
  --on-leaf: #FFFFFF;
  --leaf-300: #8FCBA6;
  --leaf-100: #E1F1E7;
  --tier-1: #0F5A36;
  --tier-2: #3D8A2B;
  --tier-3: #B8801D;
  --tier-4: #A8432F;
  --device-frame: #0B0F0C;
  --shadow-card: 0 2px 8px rgba(20, 32, 26, 0.06);
  --shadow-raised: 0 4px 16px rgba(20, 32, 26, 0.08);
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --type-score-number: 700 34px/41px var(--font-display);
  --type-title: 700 22px/28px var(--font-display);
  --type-headline: 600 17px/22px var(--font-text);
  --type-subhead: 400 15px/20px var(--font-text);
  --type-footnote: 400 13px/18px var(--font-text);
  --type-caption: 500 12px/16px var(--font-text);
  --radius-chip: 8px;
  --radius-card: 14px;
  --focus-ring: var(--leaf-600);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface-100: #0F1411;
    --surface-200: #18201B;
    --surface-300: #222B25;
    --ink: #EDF2EE;
    --ink-muted: #A9B5AD;
    --hairline: #2C3530;
    --control-border: #6A776F;
    --leaf-600: #5CC98F;
    --on-leaf: #08170F;
    --leaf-300: #2F7A52;
    --leaf-100: #1F4A33;
    --tier-1: #86E3B2;
    --tier-2: #86B548;
    --tier-3: #EBB85A;
    --tier-4: #D9745E;
    --device-frame: #2C3530; /* dark hairline: a black bezel disappears on the dark page */
    --shadow-card: none;
    --shadow-raised: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface-100); color: var(--ink); font: var(--type-subhead); overflow-wrap: break-word; }
a { color: var(--leaf-600); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
svg { display: block; flex-shrink: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--surface-200); padding: 8px 12px; border-radius: var(--radius-chip); z-index: 2; }
.skip:focus { top: 8px; }

/* Draft marker (VL-RELAY-2): every page, until legal review is done. */
.draft { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; padding: 10px 16px; background: var(--leaf-100); color: var(--ink); font: var(--type-footnote); text-align: center; border-bottom: 1px solid var(--hairline); }
.draft strong { font-weight: 600; }
.draft-callout { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: var(--radius-card); background: var(--leaf-100); box-shadow: inset 0 0 0 1px var(--leaf-300); font: var(--type-subhead); color: var(--ink); }
.draft-callout strong { font: var(--type-headline); }

/* Header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding: 24px 64px; }
.site-header.ruled { border-bottom: 1px solid var(--hairline); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 22px/28px var(--font-display); }
.ruled .brand { font: 700 20px/26px var(--font-display); }
.brand:hover { text-decoration: none; }
.mark-ring { stroke: var(--leaf-600); }
.mark-leaf { fill: var(--leaf-300); }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font: var(--type-subhead); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-footer { border-top: 1px solid var(--hairline); padding: 20px 64px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font: var(--type-footnote); color: var(--ink-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.languages { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.languages [aria-current="true"] { color: var(--ink); font-weight: 600; }

/* W01 landing */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: center; padding: 32px 64px 56px; min-height: 640px; max-width: 1280px; margin: 0 auto; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font: 700 64px/72px var(--font-display); letter-spacing: -0.5px; color: var(--ink); text-wrap: balance; }
.lead { font: 400 21px/30px var(--font-text); color: var(--ink-muted); max-width: 560px; }
.store-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; height: 56px; padding: 0 20px; border-radius: 12px; background: #000000; color: #FFFFFF; box-shadow: 0 0 0 1px var(--control-border); }
.store-badge:hover { text-decoration: none; }
.store-badge .badge-text { display: flex; flex-direction: column; line-height: 1; }
.store-badge .badge-small { font: 500 12px/14px var(--font-text); }
.store-badge .badge-large { font: 600 24px/26px var(--font-display); letter-spacing: -0.5px; }
.features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.features li { display: flex; flex-direction: column; gap: 6px; }
.features h2 { font: var(--type-headline); color: var(--ink); }
.features p { font: var(--type-subhead); color: var(--ink-muted); }
.icon { color: var(--leaf-600); }

.phone { justify-self: center; width: 340px; max-width: 100%; padding: 28px 24px; border-radius: 44px; background: var(--surface-200); box-shadow: 0 0 0 10px var(--device-frame), var(--shadow-raised); display: flex; flex-direction: column; gap: 18px; }
.phone-product { display: flex; gap: 12px; align-items: center; }
.phone-thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--surface-300); display: flex; align-items: center; justify-content: center; color: var(--ink-muted); }
.phone-name { display: flex; flex-direction: column; }
.phone-name b { font: var(--type-headline); color: var(--ink); }
.phone-name span { font: var(--type-footnote); color: var(--ink-muted); }
.score { display: flex; flex-direction: column; gap: 12px; }
.score-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.score-number { font: var(--type-score-number); letter-spacing: 0.37px; font-variant-numeric: tabular-nums; }
.score-out { font: var(--type-subhead); color: var(--ink-muted); }
.score-label { font: var(--type-headline); }
.tier-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.tier-bar span { height: 8px; border-radius: 999px; background: var(--surface-300); }
.tier-bar.t1 span { background: var(--tier-1); }
.tier-bar.t2 span:nth-child(-n+3) { background: var(--tier-2); }
.tier-bar.t3 span:nth-child(-n+2) { background: var(--tier-3); }
.tier-bar.t4 span:nth-child(1) { background: var(--tier-4); }
.pref-line { display: flex; align-items: center; gap: 8px; font: var(--type-subhead); color: var(--ink); }
.pref-line svg { color: var(--leaf-600); }
.deduction { border-radius: var(--radius-card); box-shadow: inset 0 0 0 1px var(--hairline); display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; }
.dot { width: 10px; height: 10px; border-radius: 999px; margin-top: 6px; flex-shrink: 0; }
.dot.t1 { background: var(--tier-1); } .dot.t2 { background: var(--tier-2); } .dot.t3 { background: var(--tier-3); } .dot.t4 { background: var(--tier-4); }
.deduction-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.deduction-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.deduction-head b { font: var(--type-headline); }
.deduction-head span { font: var(--type-subhead); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.deduction-reason { font: var(--type-subhead); }
.deduction-source { font: var(--type-footnote); color: var(--ink-muted); margin-top: 2px; }
.deduction > svg { color: var(--ink-muted); margin-top: 3px; }

/* How we score (not in W01: design-system tokens) */
.section { max-width: 1280px; margin: 0 auto; padding: 56px 64px 72px; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; }
.section h2 { font: var(--type-title); grid-column: 1 / -1; }
.section p { font: 400 17px/27px var(--font-text); color: var(--ink); }
.section .muted { color: var(--ink-muted); }
.tiers { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; background: var(--surface-200); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 20px 24px; }
.tiers li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.tiers .range { font: var(--type-footnote); color: var(--ink-muted); font-variant-numeric: tabular-nums; text-align: right; }
.tiers b { font: var(--type-headline); }
.copy { display: flex; flex-direction: column; gap: 16px; }

/* W02 legal template */
.legal { display: grid; grid-template-columns: 240px minmax(0, 680px); gap: 80px; padding: 56px 64px 80px; justify-content: center; }
.toc { display: flex; flex-direction: column; gap: 10px; font: var(--type-subhead); position: sticky; top: 24px; align-self: start; }
.toc-title { font: var(--type-footnote); font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.toc hr { border: 0; height: 1px; background: var(--hairline); margin: 10px 0; }
.toc a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.toc ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.article { display: flex; flex-direction: column; gap: 16px; max-width: 680px; min-width: 0; }
.article section { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font: var(--type-footnote); color: var(--ink-muted); }
.article h1, .support h1 { font: 700 44px/52px var(--font-display); color: var(--ink); }
.updated { font: var(--type-subhead); color: var(--ink-muted); }
.article h2 { margin-top: 24px; font: var(--type-title); color: var(--ink); scroll-margin-top: 24px; }
.article h3 { margin-top: 8px; font: var(--type-headline); color: var(--ink); }
.article p, .article li { font: 400 18px/29px var(--font-text); color: var(--ink); }
.article ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.data-items { display: flex; flex-direction: column; border-radius: var(--radius-card); background: var(--surface-200); box-shadow: var(--shadow-card); overflow: hidden; }
.data-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.data-item:last-child { border-bottom: 0; }
.data-item dt { font: var(--type-headline); color: var(--ink); }
.data-item dd { font: var(--type-subhead); color: var(--ink); }
.data-item dd.keep { color: var(--ink-muted); }
.data-item dd span { color: var(--ink-muted); }

/* W03 support */
.support { display: grid; grid-template-columns: minmax(0, 720px) 360px; gap: 64px; padding: 56px 64px 80px; justify-content: center; }
.support-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.support-intro { margin-bottom: 12px; font: 400 18px/29px var(--font-text); color: var(--ink-muted); }
.faq { background: var(--surface-200); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.faq details { padding: 20px 24px; border-bottom: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; font: var(--type-headline); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--ink-muted); transition: transform 150ms cubic-bezier(0.2, 0, 0, 1); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details > div { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.faq p { font: 400 17px/27px var(--font-text); color: var(--ink); }
.contact { align-self: start; margin-top: 120px; background: var(--surface-200); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.contact h2 { font: var(--type-title); }
.contact a { font: var(--type-headline); }
.contact p { font: var(--type-subhead); color: var(--ink-muted); }
.contact p.small { font: var(--type-footnote); }

/* 404 (not in the artboards: design-system tokens) */
.not-found { max-width: 680px; margin: 0 auto; padding: 96px 24px 120px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.not-found h1 { font: 700 44px/52px var(--font-display); }
.not-found p { font: 400 18px/29px var(--font-text); color: var(--ink-muted); }
.not-found ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font: var(--type-headline); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; min-height: 0; }
  .legal { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; }
  .support { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contact { margin-top: 0; }
}
@media (max-width: 760px) {
  .site-header, .site-footer { padding-left: 16px; padding-right: 16px; }
  .hero, .section, .legal, .support { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 16px; }
  .hero h1 { font: 700 40px/46px var(--font-display); letter-spacing: -0.3px; }
  .lead { font: 400 18px/27px var(--font-text); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .section { grid-template-columns: minmax(0, 1fr); }
  .tiers li { grid-template-columns: 64px minmax(0, 1fr); }
  .tiers .range { grid-column: 2; text-align: left; }
  .article h1, .support h1, .not-found h1 { font: 700 34px/41px var(--font-display); }
  .article p, .article li { font: 400 17px/27px var(--font-text); }
  .faq details { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq summary svg { transition: none; }
}
