/* Marketing site. Fonts are self-hosted (public/fonts). Same colours as the app. */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2');
}

:root {
  --bg: #fbf6ef;
  --surface: #ffffff;
  --surface-2: #f4ece2;
  --text: #1e1b18;
  --muted: #554d46;
  --border: #d6cabd;
  --primary: #0e5e5a;
  --primary-ink: #ffffff;
  --primary-soft: #e1f0ee;
  --accent: #a63f1c;
  --warn-bg: #fff0dc;
  --warn-border: #e2a65f;
  --focus: #1a56db;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --surface: #221f1c;
    --surface-2: #2c2824;
    --text: #f4efe9;
    --muted: #cfc5ba;
    --border: #4a433c;
    --primary: #5ec9bf;
    --primary-ink: #0b1f1d;
    --primary-soft: #183632;
    --accent: #f0a27f;
    --warn-bg: #3a2a17;
    --warn-border: #a8783c;
    --focus: #9dbcff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Atkinson Hyperlegible', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 4vw, 1.7rem); margin-top: 1.4em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.top { background: var(--surface); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { border-radius: 9px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-bottom: 10px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 1rem; padding: 4px 0; }
.nav a[aria-current='page'] { color: var(--primary); font-weight: 700; text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 22px; border-radius: 999px;
  border: 2px solid var(--primary); background: var(--surface); color: var(--primary);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
}
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 1rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.25em 0 0.5em; }
.cta.center { justify-content: center; }
.fine { color: var(--muted); font-size: 0.95rem; }
.lead { font-size: 1.25rem; color: var(--muted); }

.hero { background: linear-gradient(180deg, var(--primary-soft), var(--bg)); padding: 32px 0 16px; }
.hero-in { display: grid; gap: 24px; align-items: center; }
.phone { margin: 0 auto; max-width: 300px; }
.phone img { display: block; border-radius: 28px; border: 6px solid var(--text); box-shadow: 0 12px 32px rgba(40, 30, 20, 0.18); }

.band { padding: 24px 16px; }
.center { text-align: center; }
.cards { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3 { color: var(--primary); }
.card p { margin: 0; }
.split { display: grid; gap: 24px; align-items: center; padding-top: 24px; padding-bottom: 24px; }

.page { padding-top: 24px; padding-bottom: 32px; max-width: 760px; }
.page .split { max-width: none; padding: 8px 0; }
.steps { padding-left: 1.4em; }
.steps li { margin-bottom: 1em; }
.steps h2 { margin-top: 0.6em; font-size: 1.25rem; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.7em; position: relative; margin-bottom: 0.5em; }
.ticks li::before { content: ''; position: absolute; left: 0.25em; top: 0.35em; width: 0.45em; height: 0.8em; border: solid var(--primary); border-width: 0 3px 3px 0; transform: rotate(45deg); }

.plans { display: grid; gap: 16px; margin: 24px 0; }
.plan { display: flex; flex-direction: column; }
.plan h2 { margin-top: 0; }
.plan .price { font-size: 1.6rem; font-weight: 700; margin: 0; }
.plan .ticks { flex: 1; margin: 1em 0; }
.plan.featured { border: 3px solid var(--primary); }
.faq dt { font-weight: 700; margin-top: 1em; }
.faq dd { margin: 0.25em 0 0; }

.legal h2 { font-size: 1.3rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1em; }
.note, .draft { background: var(--warn-bg); border: 2px solid var(--warn-border); border-radius: 12px; padding: 12px 16px; margin: 0 0 1em; }
.table { overflow-x: auto; margin-bottom: 1em; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { border: 1px solid var(--border); padding: 8px; text-align: left; vertical-align: top; }
th { background: var(--surface-2); }

.foot { border-top: 1px solid var(--border); background: var(--surface); padding: 24px 0 32px; font-size: 0.95rem; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 1em; }
.foot .made { color: var(--text); font-weight: 700; }

@media (min-width: 760px) {
  .hero { padding: 56px 0 32px; }
  .hero-in { grid-template-columns: 1.3fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1.3fr 1fr; }
  .split.reverse > :first-child { order: 2; }
  .page .split { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(3, 1fr); }
}
