/* Wayproof website. Tokens and components follow ROADMAP §9.7 (design system D). */

:root {
  color-scheme: light dark;
  --page: #ffffff;
  --surface: #f3f3f1;
  --surface2: #e6e6e3;
  --label: #000000;
  --label2: #6b6b70;
  --label3: rgba(60, 60, 67, 0.32);
  --sep: rgba(60, 60, 67, 0.16);
  --lime: #c9f23a;
  --ink: #0b0b0c;
  --amber: #ff9500;
  --amber-text: #b45309;
  --green: #34c759;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-edge: rgba(0, 0, 0, 0.07);
  --bezel: #0b0b0c;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --surface: #161617;
    --surface2: #2c2c2e;
    --label: #ffffff;
    --label2: rgba(235, 235, 245, 0.62);
    --label3: rgba(235, 235, 245, 0.32);
    --sep: rgba(84, 84, 88, 0.55);
    --amber: #ff9f0a;
    --amber-text: #ff9f0a;
    --green: #30d158;
    --glass: rgba(22, 22, 23, 0.72);
    --glass-edge: rgba(255, 255, 255, 0.09);
    --bezel: #2c2c2e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
@media (prefers-color-scheme: light) { :focus-visible { outline-color: var(--ink); } }
::selection { background: var(--lime); color: var(--ink); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { left: 16px; }
.muted { color: var(--label2); }

/* Header: the only glass surface (§9.7.6) */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--glass-edge);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--label2); padding: 8px 14px; border-radius: 999px; }
.site-nav a:hover { color: var(--label); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--label); background: var(--surface2); }
@media (max-width: 520px) {
  .brand span { display: none; }
  .site-nav a { padding: 8px 11px; font-size: 14px; }
}

/* Buttons and chips (capsules, §9.7.5 and §9.7.8) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -0.02em; }
.btn-go { background: var(--lime); color: var(--ink); }
.btn-quiet { background: var(--surface2); color: var(--label); }
.btn svg { width: 18px; height: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface2); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.chip-lime { background: var(--lime); color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.6vw, 78px); line-height: 1.02; letter-spacing: -0.045em; margin: 18px 0 20px; font-weight: 750; }
.hero h1 .quiet { color: var(--label2); }
.hero p.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--label2); max-width: 34em; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .fine { margin-top: 18px; font-size: 14px; color: var(--label2); }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.hero-visual .phone.back { position: absolute; z-index: 1; right: 0; top: 72px; width: 230px; transform: rotate(5deg); }
.hero-visual .phone.front { position: relative; z-index: 2; width: 280px; margin-right: 150px; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; padding-bottom: 8px; }
  .hero-visual .phone.front { margin-right: 0; width: 250px; }
  .hero-visual .phone.back { display: none; }
}

/* Phone frame */
.phone { border-radius: 46px; padding: 9px; background: var(--bezel); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.phone img { border-radius: 38px; width: 100%; }

/* Sections */
.section { padding: 72px 0; }
.section + .section { border-top: 0.5px solid var(--sep); }
.section h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 16px; font-weight: 700; }
.section .intro { font-size: 19px; color: var(--label2); max-width: 36em; margin: 0; }
.kicker { font-size: 15px; font-weight: 600; color: var(--label2); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.first { margin-top: 56px; }
.feature + .feature { margin-top: 88px; }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 700; }
.feature p { color: var(--label2); font-size: 18px; margin: 0 0 14px; max-width: 30em; }
.feature .phone { width: 270px; margin: 0 auto; }
.feature .wide { border-radius: 26px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.4); }
.note { display: inline-flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--label2); background: var(--surface); border-radius: 14px; padding: 10px 14px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-text { order: 0; }
  .feature + .feature { margin-top: 64px; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.card { background: var(--surface); border-radius: 24px; padding: 24px; }
.card h3 { font-size: 20px; letter-spacing: -0.02em; margin: 14px 0 6px; }
.card p { margin: 0; color: var(--label2); font-size: 16px; }
.card .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; }
.card .ic svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.authorities { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 18px; padding: 0; list-style: none; }
.authorities li { display: inline-flex; align-items: baseline; gap: 8px; background: var(--surface); border-radius: 999px; padding: 10px 16px; font-weight: 600; }
.authorities li span { color: var(--label2); font-weight: 400; font-size: 15px; }

.closing { text-align: center; }
.closing h2 { margin-left: auto; margin-right: auto; max-width: 16em; }
.closing .intro { margin: 0 auto; }
.closing .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Legal and support pages */
.doc { padding: 48px 0 80px; }
.doc .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
.doc header.doc-head { grid-column: 1 / -1; max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 10px; }
.doc .updated { color: var(--label2); font-size: 15px; margin: 0; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.toc p { font-weight: 600; margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--sep); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--label2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--label); }
.prose { max-width: 720px; min-width: 0; }
.prose h2 { font-size: 26px; letter-spacing: -0.025em; line-height: 1.2; margin: 48px 0 12px; }
.prose h3 { font-size: 19px; letter-spacing: -0.015em; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--label); }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--label3); }
.prose strong { font-weight: 600; }
.summary { background: var(--surface); border-radius: 24px; padding: 22px 24px; margin: 8px 0 8px; }
.summary h2 { margin: 0 0 10px; font-size: 19px; }
.summary ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 6px 0 18px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-top: 0.5px solid var(--sep); }
th { font-weight: 600; color: var(--label2); font-size: 14px; border-top: 0; }
td:first-child { font-weight: 600; white-space: nowrap; padding-right: 18px; }
@media (max-width: 900px) {
  .doc .wrap { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; background: var(--surface); border-radius: 22px; padding: 16px 18px; }
  .toc ol { border-left: 0; columns: 2; column-gap: 18px; }
  .toc a { padding-left: 0; }
  td:first-child { white-space: normal; }
}
@media (max-width: 520px) { .toc ol { columns: 1; } }

/* Support */
.contact { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border-radius: 24px; padding: 22px 24px; margin: 8px 0 32px; }
.contact p { margin: 0; color: var(--label2); }
.contact strong { display: block; color: var(--label); font-size: 19px; letter-spacing: -0.02em; margin-bottom: 2px; }
.faq { background: var(--surface); border-radius: 22px; padding: 0 20px; margin: 0 0 28px; }
.faq details { border-top: 0.5px solid var(--sep); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 0; font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--label3); border-bottom: 2px solid var(--label3); transform: rotate(45deg); flex: none; margin-top: -4px; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq .answer { padding: 0 0 18px; color: var(--label2); }
.faq .answer p { margin: 0 0 10px; color: var(--label2); }
.faq .answer ul { margin: 0 0 10px; padding-left: 20px; }
.faq .answer li { margin: 4px 0; }
.prose .faq-group { font-size: 15px; font-weight: 600; color: var(--label2); margin: 28px 0 10px; }

/* Footer */
.site-footer { border-top: 0.5px solid var(--sep); padding: 36px 0 48px; font-size: 14px; color: var(--label2); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: start; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--label); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0; grid-column: 1 / -1; }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
