/* Colours: brand/token-policy.v1.json, theme "sovereign-amethyst". */
:root {
  color-scheme: light dark;
  --ground: #EEEDF2;          /* neutral/platinum-mist */
  --raised: #FFFFFF;          /* neutral/white */
  --wash: #E3E0EC;            /* neutral/platinum-wash */
  --ink: #17131F;             /* neutral/violet-ink */
  --ink-2: #4F4A5C;           /* ink/secondary/light */
  --hairline: #17131F1F;      /* neutral/violet-ink-alpha-12 */
  --accent: #4B2A86;          /* brand/amethyst/light */
  --on-accent: #FFFFFF;       /* neutral/white */
  --attention: #875800;       /* brand/attention/light */
  --cool: #2D5FD1;            /* thermal/cool/light */
  --warm: #B37700;            /* thermal/warm/light */
  --plate-top: #56338F;       /* brand/amethyst-plate-top/light */
  --plate-bottom: #3B2170;    /* brand/amethyst-plate-bottom/light */
  --plate-ink: #F5F2FB;       /* brand/platinum-ink */
  --bezel: #17131F;
  --im-bar: #F7F7F8;
  --im-canvas: #FFFFFF;
  --im-in: #E9E9EB;
  --im-out: #006EE6;
  --im-ink: #111114;
  --im-muted: #5C5C66;
  --im-card-foot: #F2F2F5;
  --shadow: 0 1px 2px #17131F14, 0 12px 32px -12px #17131F33;
  --phone-shadow: 0 2px 6px #17131F1F, 0 40px 80px -32px #3B217066;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --gutter: 16px;
  --max: 1120px;
  --radius: 20px;
}
:root:has(#theme-light:checked) {
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not(:has(#theme-light:checked)) {
    --ground: #0F0C15;        /* neutral/violet-night */
    --raised: #1A1623;        /* neutral/violet-raised */
    --wash: #262033;          /* neutral/violet-wash */
    --ink: #F0EDF6;           /* neutral/platinum-text */
    --ink-2: #ABA3BA;         /* ink/secondary/dark */
    --hairline: #F0EDF61F;    /* neutral/platinum-text-alpha-12 */
    --accent: #C3AEF6;        /* brand/amethyst/dark */
    --on-accent: #160F24;     /* neutral/on-accent-dark */
    --attention: #E8B45A;     /* brand/attention/dark */
    --cool: #729BFF;          /* thermal/cool/dark */
    --warm: #F5C144;          /* thermal/warm/dark */
    --plate-top: #3E2869;     /* brand/amethyst-plate-top/dark */
    --plate-bottom: #2B1A4C;  /* brand/amethyst-plate-bottom/dark */
    --bezel: #2A2433;
    --im-bar: #161618;
    --im-canvas: #000000;
    --im-in: #262629;
    --im-out: #0A66D6;
    --im-ink: #F5F5F7;
    --im-muted: #A1A1AA;
    --im-card-foot: #1E1E22;
    --shadow: 0 1px 0 #F0EDF60D inset, 0 12px 32px -12px #00000080;
    --phone-shadow: 0 0 0 1px #F0EDF61A, 0 40px 90px -30px #4A2C8699;
  }
}
:root:has(#theme-dark:checked) {
  color-scheme: dark;
  --ground: #0F0C15;          /* neutral/violet-night */
  --raised: #1A1623;          /* neutral/violet-raised */
  --wash: #262033;            /* neutral/violet-wash */
  --ink: #F0EDF6;             /* neutral/platinum-text */
  --ink-2: #ABA3BA;           /* ink/secondary/dark */
  --hairline: #F0EDF61F;      /* neutral/platinum-text-alpha-12 */
  --accent: #C3AEF6;          /* brand/amethyst/dark */
  --on-accent: #160F24;       /* neutral/on-accent-dark */
  --attention: #E8B45A;       /* brand/attention/dark */
  --cool: #729BFF;            /* thermal/cool/dark */
  --warm: #F5C144;            /* thermal/warm/dark */
  --plate-top: #3E2869;       /* brand/amethyst-plate-top/dark */
  --plate-bottom: #2B1A4C;    /* brand/amethyst-plate-bottom/dark */
  --bezel: #2A2433;
  --im-bar: #161618;
  --im-canvas: #000000;
  --im-in: #262629;
  --im-out: #0A66D6;
  --im-ink: #F5F5F7;
  --im-muted: #A1A1AA;
  --im-card-foot: #1E1E22;
  --shadow: 0 1px 0 #F0EDF60D inset, 0 12px 32px -12px #00000080;
  --phone-shadow: 0 0 0 1px #F0EDF61A, 0 40px 90px -30px #4A2C8699;
}

/* Theme-switched imagery (follows OS in Auto, or overrides cleanly via CSS switch) */
.theme-light { display: block; }
.theme-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not(:has(#theme-light:checked)) .theme-light { display: none; }
  :root:not(:has(#theme-light:checked)) .theme-dark { display: block; }
}
:root:has(#theme-dark:checked) .theme-light { display: none; }
:root:has(#theme-dark:checked) .theme-dark { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- Top bar ---------- */
.topbar { padding-block: 14px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; font-weight: 650; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.topbar-meta { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.theme-switch {
  display: inline-flex; align-items: center; gap: 2px;
  margin: 0; padding: 3px; border: 0; border-radius: 999px;
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline);
}
.theme-switch label {
  display: inline-grid; place-items: center;
  width: 30px; height: 28px; padding: 0; border-radius: 999px;
  color: var(--ink-2); cursor: pointer; user-select: none;
  transition: background-color 140ms ease, color 140ms ease;
}
.theme-switch label svg { width: 15px; height: 15px; display: block; }
.theme-switch label:hover { color: var(--ink); }
.theme-switch input:checked + label {
  background: var(--accent);
  color: var(--on-accent);
}
.theme-switch input:focus-visible + label {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
@media (forced-colors: active) {
  .theme-switch { border: 1px solid CanvasText; }
  .theme-switch label { border: 2px solid transparent; }
  .theme-switch input:checked + label {
    background: Highlight;
    color: HighlightText;
    border-color: HighlightText;
    forced-color-adjust: none;
  }
  .theme-switch input:focus-visible + label {
    outline: 3px solid CanvasText;
    outline-offset: 2px;
  }
}
.soon {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; font-weight: 500; color: var(--ink-2);
  padding: 5px 12px 5px 10px; border-radius: 999px;
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline);
}
.soon svg { width: 13px; height: 15px; flex: none; }

/* ---------- Hero ---------- */
.hero { padding-block: 20px 56px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding-block: 40px 96px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; }
}
h1 {
  font-size: clamp(2.125rem, 1.45rem + 3vw, 3.75rem);
  line-height: 1.06; letter-spacing: -0.028em; font-weight: 700;
  text-wrap: balance;
}
h1 .second { display: block; color: var(--accent); }
.lede { margin-top: 18px; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.5; max-width: 36em; text-wrap: pretty; }
.hero .coming { margin-top: 26px; }
@media (min-width: 960px) { .lede { margin-top: 24px; } .hero .coming { margin-top: 32px; } }

/* ---------- Coming soon ---------- */
.coming { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; color: var(--accent); }

/* ---------- Phone screenshot frame ---------- */
.phone-stage { display: flex; justify-content: center; }
.phone {
  width: min(336px, 100%);
  padding: 10px; border-radius: 52px;
  background: var(--bezel);
  box-shadow: var(--phone-shadow);
}
.screen {
  border-radius: 42px; overflow: hidden; position: relative;
  aspect-ratio: 804 / 1748;
  background: var(--ground);
}
.screen img {
  width: 100%; height: 100%; object-fit: cover;
}
.island {
  position: absolute; top: 9px; left: 50%;
  width: 27%; height: 22px; transform: translateX(-50%);
  background: #000; border-radius: 999px;
  pointer-events: none;
}

/* ---------- Shared demo UI tokens ---------- */
.eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.sub { color: var(--ink-2); font-size: 12px; margin-top: 1px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font-size: 11px; font-weight: 600; color: var(--attention);
  padding: 3px 8px 3px 6px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px currentColor;
}
.chip svg { width: 12px; height: 12px; flex: none; }
.readout { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.num { font-size: 34px; font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.unit { font-size: 13px; color: var(--ink-2); font-weight: 500; }

/* ---------- Sections ---------- */
section { padding-block: 56px; }
@media (min-width: 960px) { section { padding-block: 88px; } }
.rule { border-top: 1px solid var(--hairline); }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem); line-height: 1.12; letter-spacing: -0.022em; font-weight: 700; text-wrap: balance; }
.section-head { margin-bottom: 28px; }
@media (min-width: 960px) { .section-head { margin-bottom: 40px; } }

/* Who it's for */
.who { display: grid; gap: 12px; }
@media (min-width: 720px) { .who { grid-template-columns: 1fr 1fr; gap: 16px; } }
.who li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--raised); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
  font-size: 1.0625rem; line-height: 1.5; text-wrap: pretty;
}
@media (min-width: 960px) { .who li { padding: 26px 26px 26px 22px; font-size: 1.125rem; } }
.icon-tile { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--wash); color: var(--accent); }
.icon-tile svg { width: 22px; height: 22px; }

/* Features */
.features { display: grid; gap: 16px; }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature { background: var(--raised); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 960px) { .feature { padding: 28px; } }
.feature h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.012em; font-weight: 650; }
.feature p { color: var(--ink-2); text-wrap: pretty; }
.feature .icon-tile { margin-bottom: 4px; }
.feature.lead { gap: 24px; }
@media (min-width: 960px) {
  .feature.lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 36px; }
  .feature.lead h3 { font-size: 1.5rem; }
  .feature.lead p { font-size: 1.125rem; }
}
.feature.lead .copy { display: flex; flex-direction: column; gap: 12px; }

/* Uncertainty demo inside the lead feature */
.demo { background: var(--ground); border-radius: 16px; padding: 18px; box-shadow: inset 0 0 0 1px var(--hairline); }
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.demo .eyebrow { font-size: 11px; }
.days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin-top: 14px; }
.day { aspect-ratio: 1 / 1.25; border-radius: 5px; background: var(--cool); display: grid; place-items: center; }
.day.unsure { background: color-mix(in srgb, var(--warm) 16%, transparent); box-shadow: inset 0 0 0 1.5px var(--warm); }
.day.unsure svg { width: 58%; height: auto; color: var(--attention); }
.day-dates { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-2); margin-top: 6px; font-variant-numeric: tabular-nums; }
.demo .readout { margin-top: 16px; }
.demo .num { font-size: 40px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--cool); }
.swatch.unsure { background: color-mix(in srgb, var(--warm) 16%, transparent); box-shadow: inset 0 0 0 1.5px var(--warm); }

/* ---------- Domiseye Horizon ---------- */
.horizon-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) {
  .horizon-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; }
}
.horizon-copy { display: flex; flex-direction: column; gap: 16px; }
.horizon-eyebrow {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.horizon-copy p { color: var(--ink-2); text-wrap: pretty; max-width: 38em; }
@media (min-width: 960px) { .horizon-copy p { font-size: 1.125rem; } }

.horizon-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.im-phone {
  width: min(336px, 100%);
  padding: 10px; border-radius: 52px;
  background: var(--bezel);
  box-shadow: var(--phone-shadow);
}
.im-screen {
  border-radius: 42px; overflow: hidden;
  background: var(--im-canvas); color: var(--im-ink);
  font-size: 0.8125rem; line-height: 1.34;
  display: flex; flex-direction: column;
}
.im-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px 4px 24px;
  background: var(--im-bar); color: var(--im-ink);
  font-size: 0.78125rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.im-island { width: 84px; height: 22px; border-radius: 999px; background: #000; }
.im-status-icons { display: inline-flex; align-items: center; gap: 5px; }
.im-status-icons svg { height: 10px; width: auto; display: block; }
.im-bar {
  display: grid; grid-template-columns: 28px 1fr 28px; align-items: center;
  padding: 4px 14px 10px;
  background: var(--im-bar);
  border-bottom: 1px solid var(--hairline);
}
.im-back { color: var(--im-out); display: inline-flex; align-items: center; }
.im-back svg { width: 9px; height: 15px; display: block; }
.im-header-center { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.im-avatars { display: inline-flex; align-items: center; margin-bottom: 2px; }
.im-av {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.65625rem; font-weight: 700; color: #FFFFFF;
  box-shadow: 0 0 0 2px var(--im-bar);
}
.im-av + .im-av { margin-left: -6px; }
.im-av-1 { background: #1B7A6E; }
.im-av-2 { background: linear-gradient(150deg, var(--plate-top), var(--plate-bottom)); z-index: 1; }
.im-av-3 { background: #2D5FD1; }
.im-name { font-size: 0.8125rem; font-weight: 650; line-height: 1.15; color: var(--im-ink); }
.im-sub { font-size: 0.65625rem; color: var(--im-muted); line-height: 1.1; }

.im-canvas {
  padding: 14px 12px 18px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--im-canvas);
}
.im-stamp {
  text-align: center; font-size: 0.65625rem; font-weight: 600;
  color: var(--im-muted); font-variant-numeric: tabular-nums;
}
.im-row { display: flex; flex-direction: column; gap: 3px; }
.im-row-in { align-items: flex-start; }
.im-row-out { align-items: flex-end; }
.im-sender {
  font-size: 0.6875rem; font-weight: 500; color: var(--im-muted);
  padding-left: 10px; line-height: 1.1;
}
.im-bubble {
  max-width: 82%; padding: 8px 12px; border-radius: 18px;
  text-wrap: pretty;
}
.im-in { background: var(--im-in); color: var(--im-ink); border-bottom-left-radius: 6px; }
.im-out { background: var(--im-out); color: #FFFFFF; border-bottom-right-radius: 6px; }
.im-delivered {
  font-size: 0.65625rem; font-weight: 500; color: var(--im-muted);
  padding-right: 4px; line-height: 1.1;
}

.im-card {
  width: 88%; border-radius: 18px; overflow: hidden;
  background: var(--im-card-foot);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.im-card-media { aspect-ratio: 1200 / 630; background: #0F0C15; }
.im-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.im-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 11px 10px;
  background: var(--im-card-foot);
  border-top: 1px solid var(--hairline);
}
.im-card-meta { min-width: 0; }
.im-card-title { font-size: 0.78125rem; font-weight: 650; color: var(--im-ink); line-height: 1.25; }
.im-card-host { font-size: 0.6875rem; color: var(--im-muted); margin-top: 1px; }
.im-card-icon { flex: none; width: 28px; height: 28px; }
.im-card-icon img { width: 28px; height: 28px; border-radius: 7px; }

.im-home {
  display: flex; justify-content: center; padding: 6px 0 8px;
  background: var(--im-canvas);
}
.im-home-bar { width: 112px; height: 4px; border-radius: 999px; background: var(--im-ink); opacity: 0.28; }
.msg-caption { max-width: 336px; text-align: center; font-size: 0.8125rem; color: var(--ink-2); text-wrap: pretty; }

/* Steps */
.steps { display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 840px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; }
@media (min-width: 840px) { .step { grid-template-columns: 1fr; gap: 14px; } }
.step-num {
  grid-row: span 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 650; font-variant-numeric: tabular-nums;
  background: var(--accent); color: var(--on-accent);
}
@media (min-width: 840px) { .step-num { grid-row: auto; } }
.step h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.012em; line-height: 1.3; }
.step p { color: var(--ink-2); text-wrap: pretty; }

.free {
  margin-top: 48px; padding: 22px; border-radius: var(--radius);
  background: var(--wash); text-wrap: pretty;
}
@media (min-width: 960px) { .free { margin-top: 64px; padding: 28px 32px; font-size: 1.125rem; } }
.free strong { font-weight: 650; }

/* Questions */
.faq { max-width: 880px; }
.faq dl { border-top: 1px solid var(--hairline); }
.faq .qa { padding-block: 22px; border-bottom: 1px solid var(--hairline); display: grid; gap: 8px; }
@media (min-width: 840px) { .faq .qa { grid-template-columns: 1fr 1.35fr; gap: 32px; padding-block: 26px; } }
.faq dt { font-weight: 650; font-size: 1.125rem; line-height: 1.4; text-wrap: balance; }
.faq dd { color: var(--ink-2); text-wrap: pretty; }

/* Closing */
.closing { padding-block: 24px 56px; }
@media (min-width: 960px) { .closing { padding-block: 32px 96px; } }
.plate {
  border-radius: 28px; padding: 32px 22px;
  background: linear-gradient(160deg, var(--plate-top), var(--plate-bottom));
  color: var(--plate-ink);
  display: grid; gap: 22px; justify-items: start;
}
@media (min-width: 960px) {
  .plate { padding: 56px; }
}
.plate h2 { color: var(--plate-ink); }

/* Footer */
footer { border-top: 1px solid var(--hairline); padding-block: 28px 40px; color: var(--ink-2); font-size: 0.9375rem; }
footer .wrap { display: grid; gap: 18px; }
@media (min-width: 840px) { footer .wrap { grid-template-columns: 1fr auto; align-items: start; gap: 48px; } }
footer p { max-width: 44em; text-wrap: pretty; display: flex; flex-wrap: wrap; gap: 4px 16px; }
footer p + p { margin-top: 6px; }
footer nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
