/* Favuus site: landing and privacy pages. Colors, radii and type come from tokens.css (the app's design tokens). */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--text); }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-2); }

/* ---------- Header ---------- */
.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand__name { font-size: 22px; font-weight: 650; letter-spacing: -0.04em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 14px; }
.nav__link { color: var(--text-2); }

.lang { display: flex; gap: 2px; padding: 2px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); }
.lang a {
  display: flex; align-items: center; justify-content: center; height: 28px; min-width: 34px; padding: 0 8px; border-radius: 4px;
  color: var(--text-2); font: 600 12px var(--mono);
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

/* ---------- Buttons ---------- */
.btn-dark {
  display: flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--r-sm);
  background: var(--text); color: var(--bg); font-weight: 600;
}
.btn-dark:hover { color: var(--bg); opacity: .9; }
.downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn-download {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: var(--r-md);
  background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 600; box-shadow: var(--shadow-2);
}
.btn-download:hover { background: var(--accent-hover); color: var(--accent-ink); }
.dl-note { max-width: 520px; font-size: 13px; line-height: 20px; color: var(--text-2); text-wrap: pretty; }
.btn-soon {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 18px; border-radius: var(--r-md);
  border: 1px solid var(--border-strong); color: var(--text-2); font-size: 15px; font-weight: 600; cursor: default;
}
.pill-badge {
  height: 28px; display: flex; align-items: center; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent-text); font-size: 12px; font-weight: 600;
}

/* ---------- Headings shared by sections ---------- */
.eyebrow { display: flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--text-2); }
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.display { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; font-weight: 650; letter-spacing: -0.045em; text-wrap: balance; }
.title-xl { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; font-weight: 650; letter-spacing: -0.035em; text-wrap: balance; }
.lead { max-width: 500px; font-size: 18px; line-height: 28px; color: var(--text-2); text-wrap: pretty; }
.body { max-width: 460px; font-size: 16px; line-height: 26px; color: var(--text-2); text-wrap: pretty; }
.section { padding-bottom: 80px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center;
  padding-top: 64px; padding-bottom: 40px;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__meta { font-size: 13px; color: var(--text-2); }

/* Mock e-mail window with the listening pill under it */
.mock { position: relative; padding: 28px 0 56px; }
.mock__window { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-window); overflow: hidden; }
.mock__bar {
  height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: var(--chrome); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-2);
}
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock__dot:last-of-type { margin-right: 8px; }
.mock__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; font-size: 14px; }
.mock__field { display: flex; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.mock__text { margin-top: 6px; min-height: 96px; font-size: 15px; line-height: 24px; text-wrap: pretty; }
.mock__caret { display: inline-block; width: 2px; height: 18px; margin-left: 2px; vertical-align: -3px; background: var(--accent); }

.listening {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 18px 0 14px; border-radius: var(--r-pill);
  background: #1F1A14; color: #F1ECE4; box-shadow: var(--shadow-modal); white-space: nowrap; font-size: 13px; font-weight: 600;
}
.bars { display: flex; align-items: center; gap: 3px; height: 16px; }
.bars span { width: 3px; height: 16px; border-radius: 2px; background: #F0AE48; animation: bar 900ms ease-in-out infinite; }
.bars span:nth-child(2) { animation-delay: .15s; }
.bars span:nth-child(3) { animation-delay: .3s; }
@keyframes bar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .bars span { animation: none; } }

/* ---------- How it works ---------- */
.how { display: flex; flex-direction: column; gap: 40px; padding-top: 80px; }
.title-l { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 650; letter-spacing: -0.035em; text-wrap: balance; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.step {
  display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
}
.step__keys { display: flex; gap: 6px; }
.step__number { height: 28px; display: flex; align-items: center; font: 12px var(--mono); color: var(--accent-text); }
.step__title { font-size: 18px; font-weight: 600; }
.step__text { font-size: 14px; line-height: 22px; color: var(--text-2); text-wrap: pretty; }
.key {
  height: 28px; display: flex; align-items: center; padding: 0 9px; border-radius: var(--r-xs);
  background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom-width: 2px; font: 12px var(--mono);
}

/* ---------- Assistant (always dark, like the status pill) ---------- */
.assistant {
  --ink: #F1ECE4; --ink-2: #ABA295; --honey: #F3BA5E; --panel: #1F1A14; --panel-2: #2A2621; --panel-3: #211E1A; --line: #34302A;
  display: flex; flex-direction: column; gap: 48px; padding: clamp(28px, 5vw, 56px);
  border-radius: 16px; background: var(--panel); color: var(--ink);
}
.assistant__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: center; }
.assistant__copy { display: flex; flex-direction: column; gap: 16px; }
.assistant__eyebrow { font: 12px var(--mono); color: var(--honey); }
.assistant .body { color: var(--ink-2); }
.chat { display: flex; flex-direction: column; gap: 12px; }
.chat__ask {
  align-self: flex-end; max-width: 380px; padding: 12px 16px; border-radius: 14px 14px 4px 14px;
  background: var(--panel-2); font-size: 14px; line-height: 21px; text-wrap: pretty;
}
.chat__steps {
  max-width: 380px; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px;
  border-radius: 14px 14px 14px 4px; background: var(--panel-3); border: 1px solid var(--line);
}
.chat__step { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; }
.chat__check {
  width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: #3A2C14; border: 1px solid #6B5023; color: var(--honey); font-size: 10px; font-weight: 700;
}
.caps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.cap { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--panel); }
.cap__title { font-size: 15px; font-weight: 600; }
.cap__text { font-size: 13px; line-height: 20px; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Privacy teaser ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: start; }
.split__copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.split__link { font-size: 15px; font-weight: 600; }
.providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.provider {
  height: 64px; display: flex; align-items: center; padding: 0 20px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); font-size: 15px; font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 24px; }
.faq__list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.faq__item + .faq__item { border-top: 1px solid var(--border); }
.faq__item summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--text-2); font: 600 18px var(--mono); }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding: 0 20px 18px; max-width: 760px; font-size: 15px; line-height: 24px; color: var(--text-2); text-wrap: pretty; }

/* ---------- Download call to action ---------- */
.cta {
  display: flex; flex-direction: column; align-items: center; gap: 24px; padding: clamp(32px, 6vw, 72px) 24px;
  border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--accent-border); text-align: center;
}
.cta .downloads { justify-content: center; }
.cta .btn-soon { border-color: var(--accent-border); background: var(--surface); }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 24px;
  border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2);
}
.footer__links { display: flex; gap: 20px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }

/* ---------- Privacy page ---------- */
.doc-head { display: flex; flex-direction: column; gap: 16px; padding-top: 56px; padding-bottom: 32px; }
.doc-head .lead { max-width: 640px; }
.doc-head h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; font-weight: 650; letter-spacing: -0.045em; text-wrap: balance; }

.summary {
  display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 4vw, 40px);
  border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--accent-border);
}
.summary h2 { font-size: 20px; line-height: 26px; font-weight: 650; }
.summary ul {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px 32px;
}
.summary li { display: flex; gap: 12px; font-size: 15px; line-height: 23px; text-wrap: pretty; }
.summary li::before {
  content: "✓"; width: 20px; height: 20px; flex: none; margin-top: 2px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700;
}

/* Table of contents + sections, numbered by CSS counters so the two always agree */
.doc { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 56px; padding-bottom: 96px; }
.toc { flex: 0 1 240px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 4px; counter-reset: toc; }
.toc__label { padding: 0 10px 8px; font: 12px var(--mono); color: var(--text-2); }
.toc a {
  display: flex; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); font-size: 14px; line-height: 20px; color: var(--text-2);
  counter-increment: toc;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font: 12px var(--mono); }
.toc a:hover { background: var(--surface-hover); color: var(--text); }
@media (max-width: 860px) { .toc { position: static; flex-basis: 100%; } }

.doc__main { flex: 1 1 560px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 48px; counter-reset: sec; }
.doc__section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; counter-increment: sec; }
.doc__section h2 { display: flex; align-items: baseline; gap: 14px; font-size: 26px; line-height: 32px; font-weight: 650; letter-spacing: -0.02em; text-wrap: balance; }
.doc__section h2::before { content: counter(sec, decimal-leading-zero); font: 400 13px var(--mono); color: var(--accent-text); letter-spacing: 0; }
.doc__paras { display: flex; flex-direction: column; gap: 16px; }
.doc__paras p { font-size: 16px; line-height: 26px; color: var(--text-2); text-wrap: pretty; }

.items { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.item { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; }
.item + .item { border-top: 1px solid var(--border); }
.item__title { font-size: 15px; font-weight: 600; }
.item__text { font-size: 14px; line-height: 22px; color: var(--text-2); text-wrap: pretty; }

.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.links a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 48px; padding: 0 16px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 600;
}
.links a::after { content: "↗"; color: var(--accent-text); }
.links a:hover { border-color: var(--accent-border); }

.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 24px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); font-size: 15px; font-weight: 600;
}
.contact-card a { font: 600 14px var(--mono); }
