/*
 * The marketing pages' one stylesheet: home, features, security, pricing, FAQ,
 * support and the 404 page. The generated legal pages carry their own, inline,
 * from scripts/generateLegalDocs.ts.
 *
 * Light and dark are two palettes over one set of tokens. The page follows the
 * visitor's system setting; the switch in the header overrides it by writing
 * data-theme on <html> (assets/theme.js). Every colour below is a token, so the
 * two appearances cannot drift. No style="" attribute appears in any page: the
 * Content-Security-Policy refuses them (style-src-attr 'none').
 */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/geist-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/geist-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/geist-700.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --band: #f4f2ef;
  --surface: #ffffff;
  --ink: #17181c;
  --ink-2: #4c525a;
  --ink-3: #5e636b;
  --line: #e4e1dc;
  --button: #17181c;
  --button-ink: #ffffff;
  --button-line: #c9c5bf;
  --accent: #16794f;
  --focus: #2e6bd8;
  --bezel: #0b0e12;
  --phone-shadow: 0 1px 2px rgb(23 24 28 / 8%), 0 30px 60px rgb(23 24 28 / 18%);
  --card-shadow: 0 1px 2px rgb(23 24 28 / 6%), 0 16px 40px rgb(23 24 28 / 8%);
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #000000;
    --band: #0c0c0d;
    --surface: #141414;
    --ink: #f5f5f5;
    --ink-2: #b4b4b4;
    --ink-3: #9a9a9a;
    --line: #262626;
    --button: #f5f5f5;
    --button-ink: #000000;
    --button-line: #3a3a3a;
    --accent: #43ce93;
    --focus: #8db5ff;
    --bezel: #2b2b2d;
    --phone-shadow: 0 0 0 1px rgb(255 255 255 / 6%), 0 30px 60px rgb(0 0 0 / 60%);
    --card-shadow: none;
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #000000;
  --band: #0c0c0d;
  --surface: #141414;
  --ink: #f5f5f5;
  --ink-2: #b4b4b4;
  --ink-3: #9a9a9a;
  --line: #262626;
  --button: #f5f5f5;
  --button-ink: #000000;
  --button-line: #3a3a3a;
  --accent: #43ce93;
  --focus: #8db5ff;
  --bezel: #2b2b2d;
  --phone-shadow: 0 0 0 1px rgb(255 255 255 / 6%), 0 30px 60px rgb(0 0 0 / 60%);
  --card-shadow: none;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    'Geist',
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

a:hover {
  opacity: 0.8;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--button);
  color: var(--button-ink);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.band {
  background: var(--band);
}

.plain {
  background: var(--bg);
}

.section {
  padding-block: var(--section);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 64px);
}

.narrow {
  max-width: 720px;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.page-title {
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.title {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.subtitle {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.card-title {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
}

p {
  margin: 0;
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
  max-width: 34em;
}

.body-lg {
  font-size: 17px;
  color: var(--ink-2);
}

.muted {
  color: var(--ink-2);
}

.fine {
  font-size: 14px;
  color: var(--ink-3);
}

.smallprint {
  font-size: 13px;
  color: var(--ink-3);
}

.num {
  font-variant-numeric: tabular-nums;
}

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

.site-header {
  background: var(--band);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.brand span {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/*
 * On a phone the menu takes a line of its own under the brand and the actions;
 * from a tablet up it sits beside the brand and the actions go to the end.
 */
.main-nav {
  flex: 1 1 100%;
  order: 3;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 15px;
  padding-block: 2px;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.main-nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}

.header-actions {
  margin-left: auto;
  order: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 900px) {
  .main-nav {
    flex: 1 1 auto;
    order: 2;
  }

  .header-actions {
    order: 3;
  }
}

.theme-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

/* Drawn only where the script that makes it work has run. */
:root[data-switch] .theme-toggle {
  display: inline-flex;
}

.theme-toggle .sun {
  display: none;
}

:root[data-theme='dark'] .theme-toggle .sun {
  display: block;
}

:root[data-theme='dark'] .theme-toggle .moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .sun {
    display: block;
  }

  :root:not([data-theme='light']) .theme-toggle .moon {
    display: none;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* Breadcrumbs ------------------------------------------------------------- */

.crumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-3);
}

.crumbs li + li::before {
  content: '/';
  margin-right: 8px;
}

.crumbs a {
  color: var(--ink-2);
}

.page-head {
  padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 64px);
}

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

.hero {
  overflow: hidden;
}

.hero .wrap {
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-shot {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--button-line);
  font-weight: 600;
}

.status-chip svg {
  flex: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--button);
  color: var(--button-ink);
  font-weight: 600;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--button-line);
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14px;
}

.checks li,
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checks svg,
.ticks svg {
  flex: none;
  margin-top: 2px;
  stroke: var(--accent);
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}

/* Phone frames ------------------------------------------------------------ */

.phone {
  width: 300px;
  max-width: 88%;
  border-radius: 49px;
  background: var(--bezel);
  padding: 9px;
  box-shadow: var(--phone-shadow);
}

.phone.large {
  width: 320px;
  border-radius: 52px;
  padding: 10px;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 41px;
}

.phone.large img {
  border-radius: 43px;
}

/* Trust strip ------------------------------------------------------------- */

.strip {
  border-bottom: 1px solid var(--line);
}

.strip .wrap {
  padding-block: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 32px;
  font-size: 14px;
  color: var(--ink-2);
}

/* Steps ------------------------------------------------------------------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.steps li,
.tile {
  flex: 1 1 300px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tile.filled {
  border: 0;
  background: var(--band);
}

.band .tile.filled {
  background: var(--surface);
}

.step-number {
  font-size: 14px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.steps h3,
.tile h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* Feature rows ------------------------------------------------------------ */

.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.feature.reverse {
  flex-wrap: wrap-reverse;
}

.feature-copy {
  flex: 1 1 400px;
  min-width: 0;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-shot {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.more {
  font-weight: 600;
  color: var(--ink);
}

/* Equation strip ---------------------------------------------------------- */

.equation {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 28px;
  background: var(--band);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
}

.band .equation {
  background: var(--surface);
}

.equation div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.equation .label {
  font-size: 13px;
  color: var(--ink-3);
}

.equation .figure {
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.equation .figure.positive {
  color: var(--accent);
}

.equation .op {
  font-size: 28px;
  color: var(--ink-3);
}

.equation .note {
  flex: 1 1 200px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: right;
}

.rules {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.rules > div {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.rules h3 {
  font-size: 18px;
  font-weight: 600;
}

.rules p {
  color: var(--ink-2);
  font-size: 15px;
}

/* Two columns: a heading on one side, points on the other ------------------ */

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.split > * {
  flex: 1 1 420px;
  min-width: 0;
}

.points {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: flex-end;
}

.point {
  display: flex;
  gap: 14px;
}

.point svg {
  flex: none;
  margin-top: 2px;
  stroke: var(--accent);
}

.point p {
  color: var(--ink-2);
}

.divided {
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 64px);
}

/* Security items ---------------------------------------------------------- */

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.assurance {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  gap: 16px;
}

.assurance .glyph {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plain .assurance .glyph {
  background: var(--band);
}

.assurance div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.assurance h3 {
  font-size: 18px;
  font-weight: 600;
}

.assurance p {
  color: var(--ink-2);
  font-size: 15px;
}

.footnote {
  font-size: 13px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* Plan card --------------------------------------------------------------- */

.pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}

.pricing > .stack {
  flex: 1 1 380px;
  min-width: 0;
}

.plan {
  flex: 1 1 420px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: var(--card-shadow);
}

.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.plan-head h2,
.plan-head h3 {
  font-size: 22px;
  font-weight: 600;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--band);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price strong {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.price span {
  color: var(--ink-2);
}

/* FAQ --------------------------------------------------------------------- */

.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  flex: none;
  transition: transform 0.2s;
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq details > div {
  margin: 0 0 20px;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 44em;
}

.faq-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-group h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
  font-weight: 600;
}

/* Long-form text: support -------------------------------------------------- */

.prose {
  max-width: 44em;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prose h2 {
  margin-top: 28px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.prose h3 {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 600;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prose strong {
  color: var(--ink);
}

.prose a {
  color: var(--ink);
}

.contact {
  font-size: 18px;
}

/* Final call to action ------------------------------------------------------ */

.cta .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta .stack {
  flex: 1 1 420px;
  min-width: 0;
}

.cta h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  background: var(--band);
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  padding-block: 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-about {
  flex: 2 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-about .brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-about .brand span {
  font-size: 18px;
}

.footer-about p {
  color: var(--ink-2);
  font-size: 14px;
  max-width: 28em;
}

.footer-nav {
  flex: 1 1 150px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-nav h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  text-decoration: none;
  color: var(--ink);
}

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
}

.not-found {
  padding-block: clamp(80px, 12vw, 160px);
}

@media (prefers-reduced-motion: reduce) {
  .faq summary svg {
    transition: none;
  }
}

/* Labels the app draws, named as it draws them ----------------------------- */

.ui {
  font-weight: 600;
  color: var(--ink);
}

.eyebrow .ui {
  font-weight: inherit;
  color: inherit;
}

.faq-wrap {
  max-width: 880px;
}

.prose-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-2);
}

/* The support page's own blocks, kept from its earlier stylesheet. */

.support .lead {
  font-size: 18px;
  color: var(--ink);
}

.support .contact {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support .contact .address {
  font-size: 18px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.support .toc {
  padding-left: 0;
  list-style: none;
  display: block;
  columns: 2 15rem;
  column-gap: 24px;
}

.support .toc li {
  margin-bottom: 6px;
}

.support section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Five menu items fit a phone's width without scrolling. */
@media (max-width: 480px) {
  .main-nav {
    gap: 16px;
    font-size: 14px;
  }
}
