/* Vote: Better Together — website styles.
   Same typefaces and night palette as the app (www/styles/tokens.css in the
   app repo): Fraunces for headings, Inter for text. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #0B0A0F;
  --bg-2: #111017;
  --surface: #17151E;
  --surface-2: #201D29;
  --line: rgba(244, 238, 230, .09);
  --line-2: rgba(244, 238, 230, .16);
  --text: #F4EEE6;
  --text-2: #BDB5C6;
  --text-3: #ABA2B6;
  --ember: #FF7A59;
  --lilac: #B79CFF;
  --tide: #5CC8E0;
  --moss: #8FD694;
  --saffron: #F3C66B;
  --brand: linear-gradient(135deg, #FF8A5B, #E9689A 48%, #9C7BFF);
  --serif: 'Fraunces', ui-serif, Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max: 1120px;
  --read: 720px;
  --r: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(183, 156, 255, .35); }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 16px; }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.wrap > * { min-width: 0; }
a { overflow-wrap: anywhere; }

/* Night sky behind every page: two soft glows in the icon's colours and a
   faint star field. Purely decorative. */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky::before, .sky::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.sky::before { width: 620px; height: 620px; left: -180px; top: -220px; background: radial-gradient(circle, rgba(143, 214, 148, .35), transparent 65%); }
.sky::after { width: 720px; height: 720px; right: -240px; top: -160px; background: radial-gradient(circle, rgba(124, 108, 255, .38), transparent 65%); }
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 78% 12%, rgba(183,156,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 62%, rgba(183,156,255,.55), transparent 60%),
    radial-gradient(1px 1px at 6% 72%, rgba(92,200,224,.6), transparent 60%),
    radial-gradient(1px 1px at 32% 88%, rgba(143,214,148,.55), transparent 60%),
    radial-gradient(1px 1px at 58% 34%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 8%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 66% 80%, rgba(92,200,224,.45), transparent 60%);
}

/* Header */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); background: rgba(11, 10, 15, .72); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 68px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span small { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--text-3); margin-left: 6px; letter-spacing: 0; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: rgba(244, 238, 230, .06); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(244, 238, 230, .08); }
.nav .hide-sm { display: inline-block; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
em.i { font-style: italic; font-weight: 400; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.lead { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--text-2); margin: 0; text-wrap: pretty; }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid var(--line-2); color: var(--text); background: rgba(244, 238, 230, .04); transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { background: rgba(244, 238, 230, .09); border-color: rgba(244, 238, 230, .26); }
.btn.solid { background: var(--text); color: var(--bg); border-color: transparent; }
.btn.solid:hover { background: #fff; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 14px; background: var(--text); color: var(--bg); text-decoration: none; }
.store svg { width: 22px; height: 22px; }
.store span { display: grid; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 500; opacity: .7; }
.store b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1; margin-bottom: 24px; }
.hero .lead { max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.cta-note { width: 100%; font-size: 13px; color: var(--text-3); margin: 4px 0 0; }

/* Hero card: a mock of the Vote tab, drawn in CSS. */
.read { position: relative; justify-self: center; width: min(100%, 380px); }
.read-card { position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); border-radius: 30px; padding: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.4); }
.read-q { font-family: var(--serif); font-size: 22px; line-height: 1.2; text-align: center; margin: 4px 8px 18px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.person { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; }
.person::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); }
.person.a { background: radial-gradient(120% 90% at 30% 20%, #cfe8a8, #6fbf7a 45%, #2b5a44 100%); }
.person.b { background: radial-gradient(120% 90% at 70% 25%, #b8a6ff, #5d7be0 45%, #1f3460 100%); }
.person .who { position: absolute; left: 12px; bottom: 10px; z-index: 1; font-weight: 600; font-size: 15px; }
.person .who small { display: block; font-weight: 500; font-size: 12px; color: rgba(255,255,255,.75); }
.person .glyph { position: absolute; inset: 0; display: grid; place-items: center; }
.person .glyph svg { width: 44%; opacity: .5; }
.lens { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 16px 0 14px; }
.lens span { font-size: 12px; font-weight: 500; color: var(--text-2); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); }
.lens span.on { color: var(--bg); background: var(--moss); border-color: transparent; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 14px; background: rgba(244, 238, 230, .04); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.choice i { font-style: normal; color: var(--text-3); font-size: 12px; }
.choice.on { border-color: rgba(183, 156, 255, .55); background: rgba(183, 156, 255, .12); }
.choice.on i { color: var(--lilac); }
.read-foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: 12px; color: var(--text-3); }
.read-orb { position: absolute; z-index: -1; inset: -12% -18%; }
.read-orb svg { width: 100%; height: 100%; }
.illustration-note { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--text-3); }

/* Sections */
section.block { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 56px); }
.head h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; margin-bottom: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
.steps li { position: relative; padding: 22px 20px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font: 500 13px/1 var(--sans); color: var(--text-3); letter-spacing: .06em; margin-bottom: 28px; }
.steps h3 { font-size: 21px; line-height: 1.15; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--text-2); font-size: 15px; }

.tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tab { position: relative; overflow: hidden; padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.tab .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px; background: rgba(244, 238, 230, .06); border: 1px solid var(--line); }
.tab .ic svg { width: 22px; height: 22px; }
.tab h3 { font-size: 26px; margin-bottom: 8px; }
.tab p { margin: 0; color: var(--text-2); }
.tab .tag { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--text-3); }
.tab.vote { grid-row: span 3; background: radial-gradient(90% 70% at 100% 0%, rgba(124, 108, 255, .2), transparent 60%), radial-gradient(80% 60% at 0% 100%, rgba(143, 214, 148, .14), transparent 60%), var(--surface); }
.tab.vote h3 { font-size: clamp(30px, 3.4vw, 40px); }
.strengths { display: grid; gap: 8px; margin-top: 26px; }
.strengths div { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(11, 10, 15, .45); border: 1px solid var(--line); }
.strengths b { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 19px; }
.strengths span { color: var(--text-3); font-size: 14px; }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dot-moss { --dot: var(--moss); }
.dot-lilac { --dot: var(--lilac); }
.dot-tide { --dot: var(--tide); }
.dot-saffron { --dot: var(--saffron); }
.dot-ember { --dot: var(--ember); }
.dot-rose { --dot: #FF8FB1; }
.no-border { border-top: 0; }
.promise { background: var(--bg-2); padding: 28px; }
.promise h3 { font-size: 20px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.promise h3::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--moss)); box-shadow: 0 0 12px var(--dot, var(--moss)); }
.promise p { margin: 0; color: var(--text-2); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks svg { width: 22px; height: 22px; color: var(--moss); margin-top: 2px; }
.checks b { display: block; font-weight: 600; margin-bottom: 2px; }
.checks span { color: var(--text-2); font-size: 15px; }

/* Company identity follows the existing two-column section layout. */
.about-copy { color: var(--text-2); margin: 22px 0 0; }
.company-info p { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.company-label { display: block; color: var(--text-3); font-size: 13px; margin-bottom: 4px; }
.company-info a { color: var(--lilac); text-underline-offset: 4px; }
.company-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 18px; }
.company-links a { display: inline-flex; align-items: center; min-height: 44px; }

.closing { text-align: center; padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.closing .mark { width: 120px; margin: 0 auto 28px; }
.closing h2 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; margin-bottom: 18px; }
.closing .lead { max-width: 560px; margin-inline: auto; }
.closing .cta { justify-content: center; }
/* The email link page (auth/confirm/). */
.linkpage { border-top: 0; min-height: 60vh; }
.linkpage h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.04; margin-bottom: 18px; }
.linkpage [hidden] { display: none !important; }
.linkpage button.btn { cursor: pointer; }
.linkpage button.btn:disabled { opacity: .6; cursor: default; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--text-3); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-identity { width: 100%; }
.foot-identity p { margin: 0 0 4px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Document pages (privacy, terms, support, delete account) */
.doc-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 40px); }
.doc-head .wrap, .doc .wrap { width: min(100% - 32px, var(--read)); }
.doc-head h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.02; margin-bottom: 16px; }
.doc-head .lead { font-size: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.meta span { font-size: 13px; color: var(--text-2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); }
.toc { margin: 0 0 36px; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.toc b { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { font-size: 14px; color: var(--text-3); padding: 3px 0; break-inside: avoid; }
.toc a { display: inline-block; padding-block: 4px; color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.doc { padding-bottom: clamp(64px, 8vw, 96px); }
.doc .part { font-size: 30px; margin: 56px 0 8px; padding-top: 8px; }
.doc .part:first-child { margin-top: 0; }
.doc .part-lead { color: var(--text-2); margin: 0 0 12px; }
.doc section { padding: 24px 0; border-top: 1px solid var(--line); }
.doc h2 { font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.doc p, .doc li { color: var(--text-2); margin: 0 0 12px; overflow-wrap: anywhere; text-wrap: pretty; }
.doc p:last-child { margin-bottom: 0; }
.doc ol, .doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--lilac); text-underline-offset: 3px; }
.doc strong { color: var(--text); font-weight: 600; }
.note { padding: 18px 20px; border-radius: 16px; background: rgba(183, 156, 255, .08); border: 1px solid rgba(183, 156, 255, .25); color: var(--text-2); margin: 0 0 28px; }
.note strong { color: var(--text); }
.note.warn { background: rgba(255, 122, 89, .08); border-color: rgba(255, 122, 89, .3); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 36px; }
.cards a { display: block; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, background .15s; }
.cards a:hover { border-color: var(--line-2); background: var(--surface-2); }
.cards b { display: block; font-family: var(--serif); font-weight: 600; font-size: 19px; margin-bottom: 4px; color: var(--text); }
.cards span { font-size: 14px; color: var(--text-2); }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .read { margin-top: 12px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:last-child { grid-column: span 2; }
  .promises { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav .hide-sm { display: none; }
  .brand span small { display: none; }
  .tabs, .steps, .promises, .cards { grid-template-columns: 1fr; }
  .steps li:last-child { grid-column: auto; }
  .tab.vote { grid-row: auto; }
  .toc ol { columns: 1; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
  .strengths div { flex-wrap: wrap; gap: 4px 12px; }
  html { scroll-padding-top: 144px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .read-orb .c1 { animation: drift-a 6s ease-in-out infinite alternate; }
  .read-orb .c2 { animation: drift-b 6s ease-in-out infinite alternate; }
  @keyframes drift-a { to { transform: translateX(10px); } }
  @keyframes drift-b { to { transform: translateX(-10px); } }
}
