/* =========================================================
   Landing page styles
   --------------------------------------------------------
   To change colours / fonts / spacing, edit the variables
   in the :root block below. Everything else uses them.
   ========================================================= */

:root {
  /* Colours */
  --bg: #ffffff;
  --bg-tint: #f6f8fb;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --accent: #1d4ed8;        /* main blue */
  --accent-dark: #1e3a8a;   /* hover / dark blue */
  --accent-soft: #eff4ff;   /* very light blue backgrounds */
  --accent-line: #bcd0fa;

  --warn-bg: #fff8e6;
  --warn-border: #f1d58a;
  --warn-text: #7a5600;
  --danger: #b42318;
  --success: #0f6b3c;
  --success-bg: #eefaf3;

  /* Typography: system fonts = fast, no external requests */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--text); color: #fff;
  padding: 10px 14px; border-radius: 8px; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 10px;
  padding: 14px 24px; transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(29, 78, 216, .3); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(29, 78, 216, .25); }
.btn-primary:disabled { opacity: .65; cursor: progress; transform: none; box-shadow: none; }
.btn-small { padding: 9px 16px; font-size: 15px; background: var(--accent); color: #fff; }
.btn-small:hover { background: var(--accent-dark); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark {
  width: 24px; height: 24px; border-radius: 7px; background: var(--accent); position: relative; flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 6px; background: #fff; transform: rotate(45deg) scale(.82);
}
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a:not(.btn) { color: var(--text-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.header-nav a:not(.btn):hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 104px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--accent-dark);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 28px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); max-width: 28ch; margin: 0 auto; font-weight: 750; text-wrap: balance; }
.hero h1 .accent { color: var(--accent); }
.nowrap { white-space: nowrap; }
.hero-lead { margin: 28px auto 0; font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 600; max-width: 52ch; text-wrap: balance; }
.hero-sub { margin: 12px auto 0; color: var(--text-muted); font-size: 1.1rem; max-width: 56ch; }
.hero-actions { margin-top: 34px; }
.fineprint { margin: 16px auto 0; font-size: 14px; color: var(--text-muted); max-width: 52ch; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 750; }
.lead { margin-top: 20px; font-size: 1.15rem; color: var(--text-muted); }
.section-head .lead:first-of-type { margin-top: 22px; }

.cards { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 16px; }
.audience { margin-top: 40px; font-size: 15.5px; color: var(--text-muted); max-width: 70ch; }

/* ---------- Early access ---------- */
.early-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.early-copy { position: sticky; top: 100px; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.form-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 22px; }
.dev-banner {
  margin-bottom: 20px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px;
  background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text);
}
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: 15px; font-weight: 600; margin-bottom: 7px; padding: 0; }
.req { color: var(--danger); }
.opt { font-weight: 400; color: var(--text-muted); }
input[type="text"], input[type="email"], select {
  width: 100%; font: inherit; font-size: 16px; /* 16px prevents iOS zoom */
  color: var(--text); background: #fff; border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover { border-color: #94a3b8; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[aria-invalid="true"] { border-color: var(--danger); }
input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px #fde8e6; }
.radios { display: flex; gap: 12px; }
.radio { flex: 1; margin: 0 !important; font-weight: 500 !important; cursor: pointer; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio span {
  display: block; text-align: center; padding: 12px 14px; border: 1px solid var(--border-strong);
  border-radius: 10px; transition: all .15s;
}
.radio:hover span { border-color: #94a3b8; }
.radio input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); font-weight: 600; }
.radio input:focus-visible + span { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.error { min-height: 0; margin-top: 6px; font-size: 14px; color: var(--danger); }
.error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot */

.form-status { margin-top: 14px; font-size: 14.5px; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }
.form-status.is-warn { padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); }
.privacy { margin-top: 18px; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

.success { text-align: center; padding: 28px 8px; }
.success:focus { outline: none; }
.success-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--success-bg); color: var(--success); margin-bottom: 18px; }
.success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.success p { color: var(--text-muted); max-width: 40ch; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg-tint); }
.footer-inner { display: flex; flex-direction: column; gap: 10px; }
.brand-footer { font-size: 16px; }
.footer-copy { font-size: 14px; color: var(--text-muted); }

/* ---------- Privacy / legal page ---------- */
.legal { padding: 72px 0 96px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 750; }
.legal-updated { margin-top: 10px; font-size: 14.5px; color: var(--text-muted); }
.legal h2 { font-size: 1.2rem; font-weight: 700; margin: 40px 0 10px; letter-spacing: -0.01em; }
.legal p { margin-top: 12px; color: var(--text-muted); }
.legal h1 + .legal-updated + p { margin-top: 28px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; list-style: disc; color: var(--text-muted); }
.legal li { margin-top: 6px; padding-left: 2px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal-back { margin-top: 48px !important; }
.footer-link { color: var(--text-muted); }
.footer-link:hover { color: var(--text); }
.privacy a { color: var(--accent); }

/* ---------- Subtle reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; } /* no-JS fallback */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .early-grid { grid-template-columns: 1fr; gap: 40px; }
  .early-copy { position: static; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 64px 0; }
  .header-nav a:not(.btn) { display: none; }
  .brand { font-size: 14px; gap: 8px; }
  .btn-small { padding: 8px 12px; font-size: 14px; }
  .form-card { padding: 22px; }
  .hero .btn { width: 100%; }
}
