/* Farview website. Tokens mirror the Farview Design System (tokens.json). Dark only. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --surface: #0b192c;
  --surface-raised: #1e3e62;
  --surface-sunk: #000000;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: #8a9bb3;
  --ink: #ffffff;
  --ink-muted: #b4c1d3;
  --brand: #ff6500;
  --on-brand: #000000;
  --brand-soft: rgba(255, 101, 0, 0.14);

  --display: Fraunces, Georgia, "Times New Roman", serif;
  --text: Figtree, -apple-system, "Segoe UI", system-ui, sans-serif;

  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.6);

  --gutter: 16px;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--brand); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--on-brand);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  z-index: 10;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(11, 25, 44, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  min-height: 48px;
}
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: var(--radius-md);
}
.nav a:hover { color: var(--ink); }
.nav .nav-hide { display: none; }
@media (min-width: 760px) { .nav .nav-hide { display: inline-block; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: var(--radius-lg);
  font-family: var(--text);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 150ms ease-out, background-color 150ms ease-out;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { color: var(--on-brand); background: #ff7a22; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn-ghost:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.btn[aria-disabled="true"] { cursor: default; }
.btn svg { width: 22px; height: 22px; flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: scale(0.98); }
}

/* ---------- Hero ---------- */

.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: 88px 0 104px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin-bottom: 16px;
}

.hero h1 { font-size: clamp(42px, 8vw, 76px); letter-spacing: -0.02em; }
.hero .lede {
  margin-top: 20px;
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--ink-muted);
  max-width: 34ch;
}
.hero .lede strong { color: var(--ink); font-weight: 600; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store-note { margin-top: 14px; font-size: 15px; color: var(--ink-muted); }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art::before {
  content: "";
  position: absolute;
  width: 120%;
  aspect-ratio: 1;
  max-width: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 101, 0, 0.22), rgba(255, 101, 0, 0) 62%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 600 / 1303;
  border-radius: 44px;
  padding: 10px;
  background: #000;
  box-shadow: 0 0 0 1.5px #2a4466, var(--shadow-float), 0 30px 80px rgba(0, 0, 0, 0.45);
  flex: none;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
}
.phone-sm { width: min(260px, 70vw); border-radius: 38px; padding: 9px; }
.phone-sm img { border-radius: 30px; }

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section-alt { background: #0e1f36; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 112px 0; } }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 5vw, 46px); }
.section-head p { margin-top: 16px; color: var(--ink-muted); font-size: 19px; }

/* Promises */
.promises {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 800px) { .promises { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.promise {
  background: var(--surface-raised);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 28px 24px 30px;
}
.promise .num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}
.promise .num::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
}
.promise h3 { font-size: 24px; margin-top: 20px; }
.promise p { margin-top: 10px; color: var(--ink-muted); }

/* Habits */
.habits {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 560px) { .habits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .habits { grid-template-columns: repeat(4, 1fr); } }
.habit {
  border-radius: var(--radius-xl);
  background: var(--surface-sunk);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 190px;
}
.habit .shape { width: 44px; height: 44px; margin-bottom: 12px; }
.habit h3 { font-size: 24px; }
.habit p { color: var(--ink-muted); font-size: 15px; }
.habit .mode {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 101, 0, 0.5);
  color: var(--ink);
}
.habits-note { margin-top: 24px; color: var(--ink-muted); text-align: center; }

/* Feature rows */
.features { display: grid; gap: 96px; }
.feature {
  display: grid;
  gap: 40px;
  align-items: center;
  justify-items: center;
}
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; justify-items: stretch; }
  .feature .phone { justify-self: center; }
  .feature.flip .feature-copy { order: 2; }
}
.feature-copy { max-width: 480px; }
.feature-copy .eyebrow { margin-bottom: 12px; }
.feature-copy h3 { font-size: clamp(28px, 4vw, 38px); }
.feature-copy p { margin-top: 16px; color: var(--ink-muted); font-size: 18px; }
.feature-copy ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature-copy li { display: flex; gap: 12px; align-items: baseline; }
.feature-copy li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-2px);
}
.quote {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  font-size: 16px;
  color: var(--ink);
}
.quote span { display: block; font-size: 13px; color: var(--ink-muted); margin-bottom: 4px; }

/* Privacy band */
.privacy-band .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) { .privacy-band .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.fact {
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.fact strong { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; }
.fact span { display: block; margin-top: 4px; color: var(--ink-muted); font-size: 15px; }
.link-row { margin-top: 28px; display: flex; gap: 20px; flex-wrap: wrap; }
.link-row a { font-weight: 600; min-height: 48px; display: inline-flex; align-items: center; }

/* Pricing */
.plans {
  display: grid;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
@media (min-width: 820px) { .plans { grid-template-columns: 0.85fr 1.15fr; } }
.plan {
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.plan.premium { background: var(--surface-sunk); box-shadow: inset 0 0 0 1.5px var(--brand); }
.plan h3 { font-size: 26px; }
.plan .price {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan .price small { font-family: var(--text); font-size: 17px; font-weight: 500; color: var(--ink-muted); }
.plan .sub { margin-top: 10px; color: var(--ink-muted); font-size: 15px; }
.plan ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--brand); }
.plan .options {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}
.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}
.option.best { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.option b { font-weight: 600; }
.option span { color: var(--ink-muted); font-size: 15px; }
.option .amt { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.save {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--on-brand);
  vertical-align: 2px;
}
.fine { margin-top: 24px; font-size: 15px; color: var(--ink-muted); text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.fine + .fine { margin-top: 10px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 600;
  font-size: 18px;
  position: relative;
  min-height: 56px;
  border-radius: var(--radius-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 250ms ease-out;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 22px; color: var(--ink-muted); }
.faq details p strong { color: var(--ink); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band img { width: 120px; margin: 0 auto 28px; }
.cta-band h2 { font-size: clamp(34px, 6vw, 56px); }
.cta-band p { margin-top: 16px; color: var(--ink-muted); font-size: 19px; }
.cta-band .store-row { justify-content: center; }

/* ---------- Crisis + footer ---------- */

.crisis {
  background: var(--surface-sunk);
  border-top: 1px solid var(--line);
}
.crisis .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.crisis p { font-size: 15px; color: var(--ink-muted); }
.crisis p strong { color: var(--ink); }
.crisis .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-brand);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.pill:hover { color: var(--on-brand); background: #e8edf3; }

.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; gap: 32px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--text); font-size: 14px; font-weight: 600; color: var(--ink-muted); letter-spacing: 0.04em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer ul a { text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-about p { margin-top: 12px; color: var(--ink-muted); font-size: 15px; max-width: 40ch; }
.footer-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Legal / document pages ---------- */

.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc-head { padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.doc-head .eyebrow { margin-bottom: 12px; }
.doc-head h1 { font-size: clamp(36px, 6vw, 52px); }
.doc-head .meta { margin-top: 14px; color: var(--ink-muted); font-size: 15px; }

.prose { font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose li::marker { color: var(--brand); }
.prose strong { font-weight: 700; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.prose a:hover { color: var(--brand); }
.prose .summary {
  margin: 28px 0 8px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}
.prose .summary p:last-child { margin-bottom: 0; }
.callout {
  margin: 24px 0;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface-sunk);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.callout p:last-child { margin-bottom: 0; }
.doc-nav { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.doc-nav a { color: var(--ink-muted); min-height: 44px; display: inline-flex; align-items: center; }
.doc-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }

.contact-card {
  margin: 28px 0 8px;
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) { .contact-card { grid-template-columns: 1fr auto; align-items: center; } }
.contact-card p { margin: 0; color: var(--ink-muted); }
.contact-card strong { display: block; color: var(--ink); font-size: 20px; font-family: var(--display); font-weight: 600; margin-bottom: 4px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound img { width: 120px; margin: 0 auto 28px; }
.notfound h1 { font-size: clamp(36px, 6vw, 56px); }
.notfound p { margin-top: 14px; color: var(--ink-muted); }
.notfound .btn { margin-top: 28px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Privacy band text + small helpers */
.band-title { font-size: clamp(32px, 5vw, 46px); }
.band-lede { margin-top: 16px; color: var(--ink-muted); font-size: 19px; max-width: 40ch; }
.band-note { margin-top: 20px; color: var(--ink-muted); }
.option .amt small { font-family: var(--text); font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.fine strong { color: var(--ink); }
.fine.fine-gap { margin-top: 32px; }
