/* Novandle — site styles
   Outfit carries headings, navigation and product UI; Newsreader carries reading text. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;

  --ink: #10133a;
  --ink-2: #41456f;
  --ink-3: #6b6f94;
  --paper: #fafafe;
  --mist: #eef0fc;
  --mist-2: #e3e6f8;
  --line: #d9dcf0;
  --white: #ffffff;
  --blue: #2f4be3;
  --blue-deep: #2236b8;
  --sky: #5ba8f5;
  --violet: #8b6cf6;
  --ok: #0f7a57;
  --ok-bg: #e3f4ec;
  --amber-bg: #fdf2dc;
  --amber: #8a5a00;
  --danger: #b42318;

  --brand-gradient: linear-gradient(135deg, var(--sky) 0%, var(--blue) 48%, var(--violet) 100%);

  --font-ui: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-read: "Newsreader", ui-serif, Georgia, serif;

  --wrap: 1200px;
  --gutter: 16px;
  --radius-ui: 14px;
  --radius-panel: 22px;
  --shadow-panel: 0 1px 0 rgba(16, 19, 58, 0.04), 0 30px 70px -30px rgba(47, 75, 227, 0.38), 0 12px 24px -16px rgba(16, 19, 58, 0.18);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-read);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }

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

h1, h2, h3, h4 {
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-ui);
  border-radius: 10px;
}
.skip-link:focus { top: 12px; color: var(--white); }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: 500 1.0625rem/1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.button:hover { background: var(--blue); color: var(--white); }
.button:active { transform: translateY(1px); }
.button--small { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.button--light { background: var(--white); color: var(--ink); }
.button--light:hover { background: var(--mist); color: var(--ink); }

.text-link {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.text-link:hover { color: var(--blue); text-decoration-color: currentColor; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 254, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 36px; height: 36px; }
.brand__word {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1;
  padding-bottom: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav__links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__links a {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav__links a:hover { color: var(--ink); }
.site-nav__links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 500 0.9375rem/1 var(--font-ui);
  cursor: pointer;
}
.menu-toggle__icon {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
}
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.2s ease, top 0.2s ease;
}
.menu-toggle__icon::before { top: 13px; }
.menu-toggle__icon::after { top: 19px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 16px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 16px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 12px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__links { flex-direction: column; gap: 0; }
  .site-nav__links a {
    display: block;
    padding: 14px 0;
    font-size: 1.25rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .site-nav__links a[aria-current="page"] { border-bottom-color: var(--line); color: var(--blue); }
  .site-nav .button { min-height: 52px; font-size: 1.0625rem; }
}

/* ---------- Shared section rhythm ---------- */

.section { padding-block: clamp(72px, 10vw, 136px); }
.section--mist { background: var(--mist); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

.h-display {
  font-size: clamp(3.25rem, 7.4vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.h-page {
  font-size: clamp(2.6rem, 6.4vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.042em;
}
.h-section {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.034em;
}
.h-item {
  font-size: 1.4375rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lede {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}
.body-copy { color: var(--ink-2); max-width: 36em; }
.body-copy + .body-copy { margin-top: 1em; }

/* ---------- Home: hero ---------- */

.hero { padding-block: clamp(32px, 4vw, 56px) clamp(72px, 9vw, 120px); overflow: hidden; }

.hero__grid, .split, .access, .about-grid, .story, .cta-band__inner { grid-template-columns: minmax(0, 1fr); }

.hero__grid {
  display: grid;
  gap: 56px;
  align-items: start;
}
@media (min-width: 1040px) {
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 64px; align-items: center; }
}

.hero__copy { padding-top: 0; }
.hero__copy .lede { margin-top: 32px; font-size: 1.25rem; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 40px;
}
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font: 500 0.9375rem/1.2 var(--font-ui);
  color: var(--ink-2);
}
.hero__status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: 0 0 0 4px rgba(91, 168, 245, 0.18);
}

.works-with {
  margin-top: 36px;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--ink-3);
}
.works-with strong { color: var(--ink); font-weight: 500; }

/* ---------- The reply panel (hero product moment) ---------- */

.hero__panel { margin: 0; }

.reply {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.reply::before {
  /* The brand ribbon: a single gradient edge that ties the panel to the logo. */
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 5px;
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  background: var(--brand-gradient);
}

.reply__section { padding: 16px 22px; }
.reply__section + .reply__section { border-top: 1px solid var(--mist-2); }

.reply__from {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
}
.reply__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber-bg);
  color: var(--amber);
  font-weight: 600;
  font-size: 0.875rem;
}
.reply__name { font-weight: 500; color: var(--ink); }
.reply__subject { color: var(--ink-3); font-size: 0.875rem; }
.reply__time { color: var(--ink-3); font-size: 0.8125rem; }
.reply__message {
  margin-top: 10px;
  font-family: var(--font-read);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}

.reply__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.reply__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.reply__fact {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 8px 12px;
  font-size: 0.875rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--mist-2);
}
.reply__source {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue);
}
.reply__fact-text { color: var(--ink); }

.reply__draft {
  font-family: var(--font-read);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}
.reply__draft p + p { margin-top: 0.5em; }

.reply__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.reply__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--mist);
  color: var(--ink-2);
}
.reply__state::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.reply__state[data-state="review"] { background: var(--amber-bg); color: var(--amber); }
.reply__state[data-state="sent"], .reply__state[data-state="auto"] { background: var(--ok-bg); color: var(--ok); }
.reply__state[data-state="team"] { background: var(--mist); color: var(--blue-deep); }

.reply__approve {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font: 500 0.9375rem/1 var(--font-ui);
  cursor: pointer;
  transition: background-color 0.18s ease, opacity 0.2s ease;
}
.reply__approve:hover { background: var(--blue-deep); }
.reply__approve[hidden] { display: none; }
.reply__replay {
  border: 0;
  background: none;
  padding: 8px 0;
  color: var(--ink-2);
  font: 500 0.875rem/1 var(--font-ui);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.reply__replay[hidden] { display: none; }

.reply__caption {
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--ink-3);
  text-align: center;
}

/* Animation states: only applied once site.js has taken over the panel. */
.reply.is-animated .reply__fact {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reply.is-animated .reply__fact.is-in { opacity: 1; transform: none; }
.reply.is-animated [data-reply-thinking] { opacity: 1; transition: opacity 0.3s ease; }
.reply__draft .word { opacity: 0; transition: opacity 0.25s ease; }
.reply__draft .word.is-in { opacity: 1; }
.reply__thinking { display: inline-flex; gap: 5px; margin-left: 6px; vertical-align: middle; }
.reply__thinking span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-3);
  animation: thinking 1s infinite ease-in-out;
}
.reply__thinking span:nth-child(2) { animation-delay: 0.15s; }
.reply__thinking span:nth-child(3) { animation-delay: 0.3s; }
.reply__thinking[hidden] { display: none; }
@keyframes thinking { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* ---------- Home: hero second line ---------- */

.hero__sub {
  margin-top: 26px;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22em;
}
.hero__sub + .lede { margin-top: 18px; }

/* ---------- Home: what's at stake ---------- */

.stakes__grid {
  display: grid;
  gap: 32px;
  margin-top: 56px;
}
@media (min-width: 860px) {
  .stakes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
}
.stake__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--amber-bg);
  color: var(--amber);
}
.stake__icon svg { width: 24px; height: 24px; }
.stake .h-item { margin-bottom: 10px; }
.stake p { color: var(--ink-2); max-width: 24em; }
.stakes__close {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.stakes__close .text-link { margin-left: 8px; font-size: 1.0625rem; }

/* ---------- Home: try it yourself ---------- */

.demo {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.demo::before {
  content: "";
  position: absolute;
  right: -240px; top: -200px;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: var(--brand-gradient);
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}
.demo .wrap { position: relative; }
.demo__head { max-width: 40rem; }
.demo__head h2 { color: var(--white); }
.demo__head p { margin-top: 20px; color: rgba(255, 255, 255, 0.78); font-size: 1.25rem; }
.demo__note {
  margin-top: 16px !important;
  font-family: var(--font-ui);
  font-size: 0.9375rem !important;
  color: var(--sky) !important;
}

.demo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-top: 56px;
}
@media (min-width: 980px) {
  .demo__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
}

.demo__label {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  line-height: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}
.demo__inbox { display: grid; gap: 10px; }
.demo__mail {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: var(--font-ui);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.demo__mail:hover { background: rgba(255, 255, 255, 0.09); }
.demo__mail[aria-selected="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.demo__mail .reply__avatar { width: 40px; height: 40px; }
.demo__mail-name { display: block; font-weight: 500; font-size: 0.9375rem; }
.demo__mail-subject { display: block; font-size: 0.9375rem; opacity: 0.85; }
.demo__mail-snippet {
  display: block;
  margin-top: 4px;
  font-family: var(--font-read);
  font-size: 0.9375rem;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo__modes { margin-top: 32px; }
.demo__switch {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.demo__switch button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font: 500 0.9375rem/1 var(--font-ui);
  cursor: pointer;
}
.demo__switch button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.demo__switch-help { margin-top: 12px; font-size: 1rem; color: rgba(255, 255, 255, 0.6); max-width: 26em; }

.demo .reply { box-shadow: 0 40px 90px -40px rgba(91, 168, 245, 0.55), 0 12px 30px -16px rgba(0, 0, 0, 0.5); border: 0; }
.demo .reply__caption { color: rgba(255, 255, 255, 0.55); }
.demo__panel { margin: 0; }
/* Line the panel up with the first email card, below the inbox label (20px + 12px). */
@media (min-width: 980px) { .demo__panel { margin-top: 32px; } }
.demo__panel .reply__draft { min-height: 7.5em; }

/* ---------- Home: ready in hours ---------- */

.ready__title {
  font-size: clamp(2.5rem, 6.2vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.ready__title span { display: block; }
.ready__intro { margin-top: 32px; }

.setup-steps {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 28px;
  position: relative;
}
@media (min-width: 900px) {
  .setup-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .setup-steps::before {
    content: "";
    position: absolute;
    top: 21px; left: 22px; right: 30%;
    height: 2px;
    background: var(--brand-gradient);
    opacity: 0.45;
  }
}
.setup-steps li { counter-increment: step; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) {
  .setup-steps li { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
.setup-steps li::before {
  content: counter(step);
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2px solid var(--blue);
  color: var(--blue);
  font: 500 1rem/1 var(--font-ui);
}
.setup-steps li:last-child::before { background: var(--brand-gradient); border-color: transparent; color: var(--white); }
.setup-steps strong { display: block; font-family: var(--font-ui); font-weight: 500; font-size: 1.1875rem; letter-spacing: -0.01em; }
.setup-steps span { display: block; margin-top: 6px; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.5; }

/* ---------- Home: grow + statement ---------- */

.outlook-title { margin-top: 72px; font-size: 1.375rem; letter-spacing: -0.015em; }
.statement {
  font-family: var(--font-read);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.story__tagline { font-family: var(--font-ui); font-weight: 500; font-size: 1.125rem; color: var(--ink); margin-bottom: 12px; }

/* ---------- Early access: what the visitor wants ---------- */

.intent { display: grid; gap: 10px; margin-top: 28px; border: 0; padding: 0; }
@media (min-width: 640px) { .intent { grid-template-columns: 1fr 1fr; } }
.intent legend { font-family: var(--font-ui); font-size: 0.9375rem; font-weight: 500; margin-bottom: 10px; padding: 0; }
.intent__option { position: relative; display: block; cursor: pointer; }
.intent__option input { position: absolute; opacity: 0; }
.intent__card {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.intent__card strong { display: block; font-family: var(--font-ui); font-weight: 500; font-size: 1.0625rem; color: var(--ink); }
.intent__card span { display: block; margin-top: 4px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.intent__option input:checked + .intent__card { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(47, 75, 227, 0.16); }
.intent__option input:focus-visible + .intent__card { outline: 3px solid var(--blue); outline-offset: 2px; }

.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button--ghost-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.button--ghost-light:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

/* ---------- Home: before / after ---------- */

.split {
  display: grid;
  gap: 48px;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
}
.split__head .body-copy { margin-top: 24px; }

.compare {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .compare { grid-template-columns: 1fr 1fr; }
}
.compare__col {
  padding: 28px;
  border-radius: var(--radius-panel);
}
.compare__col--before { background: var(--paper); border: 1px solid var(--line); }
.compare__col--after { background: var(--ink); color: var(--white); }
.compare__title {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.compare__col--after .compare__title { color: var(--white); }
.compare__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.compare__steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.compare__steps li::before {
  content: counter(step);
  font: 500 0.8125rem/26px var(--font-ui);
  width: 26px; height: 26px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-3);
}
.compare__col--after .compare__steps li { color: rgba(255, 255, 255, 0.86); }
.compare__col--after .compare__steps li::before {
  border-color: transparent;
  background: var(--brand-gradient);
  color: var(--white);
}

/* ---------- Home: points ---------- */

.points {
  display: grid;
  gap: 40px 56px;
  margin-top: 64px;
}
@media (min-width: 760px) {
  .points { grid-template-columns: 1fr 1fr; }
}
.point { padding-top: 24px; border-top: 2px solid var(--ink); }
.point .h-item { margin-bottom: 12px; }
.point p { color: var(--ink-2); max-width: 30em; }

/* ---------- Home: control rules ---------- */

.rules {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  font-family: var(--font-ui);
}
.rules__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--mist-2);
  font-size: 0.875rem;
  color: var(--ink-3);
}
.rules__head strong { color: var(--ink); font-weight: 500; font-size: 1rem; }
.rules__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
}
.rules__row + .rules__row { border-top: 1px solid var(--mist-2); }
.rules__topic { color: var(--ink); font-size: 1rem; }
.rules__mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.rules__mode::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rules__mode--auto { background: var(--ok-bg); color: var(--ok); }
.rules__mode--review { background: var(--amber-bg); color: var(--amber); }
.rules__mode--team { background: var(--mist); color: var(--blue-deep); }

/* ---------- Home: outlook timeline ---------- */

.outlook {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  gap: 40px;
  position: relative;
}
@media (min-width: 860px) {
  .outlook { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .outlook::before {
    content: "";
    position: absolute;
    top: 9px; left: 0; right: 0;
    height: 2px;
    background: var(--brand-gradient);
    opacity: 0.5;
  }
}
.outlook__item { position: relative; padding-left: 32px; }
@media (min-width: 860px) {
  .outlook__item { padding-left: 0; padding-top: 44px; }
}
.outlook__item::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--blue);
}
.section--mist .outlook__item::before { background: var(--mist); }
@media (min-width: 860px) {
  .outlook__item::before { top: 0; }
}
.outlook__year {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue);
}
.outlook__figure {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 8px 0 16px;
}
.outlook__text { color: var(--ink-2); max-width: 22em; }
.outlook__source { margin-top: 12px; font-family: var(--font-ui); font-size: 0.875rem; color: var(--ink-3); }
.outlook__source a { color: var(--ink-3); }

/* ---------- Story teaser ---------- */

.story {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .story { grid-template-columns: 7fr 5fr; gap: 72px; align-items: end; }
}
.story__quote {
  font-family: var(--font-read);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.story__side p { color: var(--ink-2); }
.story__side .text-link { display: inline-block; margin-top: 20px; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(72px, 10vw, 128px);
}
.cta-band__inner {
  position: relative;
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .cta-band__inner { grid-template-columns: 1fr auto; align-items: end; gap: 64px; }
}
.cta-band h2 { color: var(--white); }
.cta-band p { margin-top: 20px; color: rgba(255, 255, 255, 0.78); max-width: 32em; }
.cta-band__mark {
  position: absolute;
  right: -150px; top: 50%;
  width: 420px; height: 420px;
  transform: translateY(-50%);
  opacity: 0.12;
  pointer-events: none;
}

/* ---------- Inner page heads ---------- */

.page-head { padding-block: clamp(48px, 8vw, 112px) clamp(40px, 6vw, 80px); }
.page-head .lede { margin-top: 28px; }

/* ---------- Features ---------- */

.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.feature {
  display: grid;
  gap: 16px;
  padding-block: 36px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) {
  .feature { grid-template-columns: 64px 4fr 7fr; gap: 32px; align-items: start; }
}
.feature__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--blue);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature__body p { color: var(--ink-2); max-width: 36em; }
.feature__body p + p { margin-top: 0.8em; }

.connections {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 760px) {
  .connections { grid-template-columns: repeat(3, 1fr); }
}
.connection {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
}
.connection h3 { font-size: 1.3125rem; margin-bottom: 10px; }
.connection p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.5; }

.data-note {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius-panel);
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 16px;
}
@media (min-width: 860px) {
  .data-note { grid-template-columns: 4fr 7fr; gap: 48px; padding: 40px; }
}
.data-note h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.data-note p { color: var(--ink-2); }
.data-note p + p { margin-top: 0.8em; }
.data-note .fine { font-size: 1rem; color: var(--ink-3); }

/* ---------- Features: what goes into a reply ---------- */

.flow {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-panel);
  background: var(--mist);
}
@media (min-width: 900px) {
  .flow { grid-template-columns: minmax(0, 6fr) 72px minmax(0, 5fr); align-items: center; gap: 0; }
  .flow__label { grid-column: 1 / -1; margin-bottom: 20px; }
}
.flow__label { font-family: var(--font-ui); font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); }
.flow__inputs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow__input {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-ui);
}
.flow__input strong { font-weight: 500; font-size: 1.0625rem; color: var(--ink); }
.flow__input span { font-size: 0.875rem; color: var(--ink-3); }
.flow__join { position: relative; height: 40px; }
.flow__join::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: var(--brand-gradient);
}
.flow__join::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--violet);
  border-bottom: 2px solid var(--violet);
  transform: translateX(-50%) rotate(45deg);
}
@media (min-width: 900px) {
  .flow__join { height: 100%; min-height: 200px; }
  .flow__join::before { left: 12px; right: 12px; top: 50%; bottom: auto; width: auto; height: 2px; transform: translateY(-50%); }
  .flow__join::after { left: auto; right: 12px; top: 50%; bottom: auto; transform: translateY(-50%) rotate(-45deg); }
}
.flow__out {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-panel);
  background: var(--white);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  font-family: var(--font-ui);
}
.flow__out::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--brand-gradient);
}
.flow__out-brand { display: inline-flex; align-items: center; gap: 8px; font: 500 1rem/1 var(--font-ui); color: var(--ink); margin-bottom: 8px; }
.flow__out-brand img { width: 28px; height: 28px; }
.flow__out .reply__label { margin: 0; }
.flow__line { display: block; height: 10px; border-radius: 6px; background: var(--mist-2); }
.flow__line--short { width: 60%; }
.flow__out .reply__state { justify-self: start; margin-top: 8px; }

/* ---------- Features: grouped features ---------- */

.fgroup {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 64px;
  padding-block: 48px;
  border-top: 1px solid var(--line);
}
.fgroup:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) {
  .fgroup { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
.fgroup__title { font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.08; }
.fgroup__head p { margin-top: 12px; color: var(--ink-2); max-width: 22em; }
.fgroup__items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 40px; }
@media (min-width: 640px) { .fgroup__items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fitem .feature__icon { margin-bottom: 18px; }
.fitem .h-item { margin-bottom: 10px; }
.fitem p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; }

/* ---------- Features: connections ---------- */

.conn-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 48px; }
@media (min-width: 900px) { .conn-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; } }
.conn-groups__title { font-size: 1.125rem; font-weight: 500; margin-bottom: 14px; color: var(--ink-2); }
.conn-list { list-style: none; margin: 0; padding: 0; border-radius: var(--radius-panel); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.conn {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
}
.conn + .conn { border-top: 1px solid var(--mist-2); }
.conn__mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font: 500 1.125rem/1 var(--font-ui);
}
.conn__name { font-family: var(--font-ui); font-weight: 500; font-size: 1.125rem; }
.conn__desc { font-size: 1rem; line-height: 1.45; color: var(--ink-2); margin-top: 2px; }
.conn__status {
  padding: 6px 12px;
  border-radius: 999px;
  font: 500 0.8125rem/1 var(--font-ui);
  white-space: nowrap;
  background: var(--ok-bg);
  color: var(--ok);
}
.conn--soon .conn__mark { background: var(--mist); color: var(--ink-3); }
.conn--soon .conn__name { color: var(--ink-2); }
.conn--soon .conn__status { background: var(--mist); color: var(--ink-3); }
@media (max-width: 519px) {
  .conn { grid-template-columns: 40px minmax(0, 1fr); }
  .conn__status { grid-column: 2; justify-self: start; }
}

/* ---------- About ---------- */

.prose { max-width: 38em; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px; }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: 1em; }
.prose * + h2 { margin-top: 64px; }

.about-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 7fr 5fr; gap: 80px; }
}

.mission {
  align-self: start;
  padding: 36px;
  border-radius: var(--radius-panel);
  background: var(--ink);
  color: var(--white);
}
@media (min-width: 960px) {
  .mission { position: sticky; top: 112px; }
}
.mission h2 { color: var(--white); font-size: 1.125rem; font-weight: 500; margin-bottom: 16px; }
.mission__statement {
  font-family: var(--font-read);
  font-size: 1.75rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.mission p:not(.mission__statement) { margin-top: 20px; color: rgba(255, 255, 255, 0.78); font-size: 1.0625rem; }

.founders {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 640px) {
  .founders { grid-template-columns: 1fr 1fr; }
}
.founder {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
}
.founder__initial {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-gradient);
  color: var(--white);
  font: 500 1.625rem/1 var(--font-ui);
}
.founder__name { font-family: var(--font-ui); font-size: 1.25rem; font-weight: 500; }
.founder__role { font-size: 1rem; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }

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

.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--font-ui);
  font-size: clamp(1.1875rem, 2vw, 1.4375rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--mist);
}
.faq summary:hover { color: var(--blue); }
.faq__answer { padding: 0 56px 28px 0; color: var(--ink-2); max-width: 40em; }
.faq__answer p + p { margin-top: 0.8em; }

/* ---------- Early access ---------- */

.access {
  display: grid;
  gap: 56px;
}
@media (min-width: 980px) {
  .access { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
}
.access__intro .lede { margin-top: 28px; }

.next-steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 24px;
}
.next-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
}
.next-steps li::before {
  content: counter(step);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--blue);
  font: 500 1rem/1 var(--font-ui);
}
.next-steps strong { display: block; font-family: var(--font-ui); font-weight: 500; font-size: 1.125rem; }
.next-steps span { color: var(--ink-2); font-size: 1.0625rem; }

.form-card {
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  position: relative;
}
.form-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 5px;
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  background: var(--brand-gradient);
}
.form-card h2 { font-size: 1.75rem; letter-spacing: -0.025em; }
.form-card > p { margin-top: 8px; color: var(--ink-2); font-size: 1.0625rem; }

.form-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}
.field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}
.field .optional { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-ui);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9bde0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(47, 75, 227, 0.16);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin-top: 6px; font-family: var(--font-ui); font-size: 0.875rem; color: var(--danger); }
.field__error:empty { display: none; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
.form-foot .button { justify-self: start; }
.form-foot .button[disabled] { opacity: 0.6; cursor: progress; }
.form-consent { font-size: 0.9375rem; color: var(--ink-3); line-height: 1.5; }
.form-alert {
  padding: 14px 16px;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  background: #fdecea;
  color: var(--danger);
}
.form-alert[hidden] { display: none; }

.form-done { text-align: left; }
.form-done:focus { outline: none; }
.form-done[hidden] { display: none; }
.form-done__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok-bg);
  color: var(--ok);
  margin-bottom: 24px;
}
.form-done h2 { font-size: 2rem; }
.form-done p { margin-top: 12px; color: var(--ink-2); }

/* ---------- Legal pages (imported from GetTerms by tools/import-policies.py) ---------- */

.legal { max-width: 44rem; color: var(--ink-2); }
.legal h2 {
  margin: 56px 0 16px;
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.legal h3 { margin: 32px 0 10px; font-size: 1.25rem; letter-spacing: -0.015em; }
.legal h4 { margin: 24px 0 8px; font-size: 1.0625rem; }
.legal > :first-child { margin-top: 0; }
.legal p + p { margin-top: 0.85em; }
.legal ul, .legal ol { margin: 0.85em 0; padding-left: 1.3em; }
.legal li + li { margin-top: 0.4em; }
.legal li::marker { color: var(--blue); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { overflow-wrap: anywhere; }

/* ---------- Legal placeholders ---------- */

.legal-pending {
  max-width: 40em;
  padding: 32px;
  border-radius: var(--radius-ui);
  border: 1px dashed var(--line);
  background: var(--white);
  color: var(--ink-2);
}
.legal-pending p + p { margin-top: 0.8em; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 64px;
  font-family: var(--font-ui);
}
.site-footer__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 860px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.site-footer__brand { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .site-footer__brand { grid-column: auto; }
}
.site-footer__tagline {
  margin-top: 16px;
  font-family: var(--font-read);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ink-2);
}
.site-footer__heading { font-size: 0.9375rem; font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__col a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; }
.site-footer__col a:hover { color: var(--blue); text-decoration: underline; }
.site-footer__base {
  display: flex;
  margin-inline: auto;
  max-width: var(--wrap);
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* ---------- Mobile: its own composition, not a stacked desktop ---------- */

.mobile-cta { display: none; }

@media (max-width: 899px) {
  /* Full-screen menu */
  .site-nav {
    position: fixed;
    top: 76px; left: 0; right: 0; bottom: 0;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--ink);
    border-bottom: 0;
    justify-content: space-between;
    overflow: hidden;
  }
  .site-nav::after {
    content: "";
    position: absolute;
    right: -120px; bottom: -120px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: var(--brand-gradient);
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
  }
  .site-nav.is-open { animation: menu-in 0.28s ease both; }
  .site-nav__links a {
    padding: 14px 0;
    font-size: clamp(2rem, 9vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .site-nav__links a[aria-current="page"] { color: var(--sky); border-bottom-color: rgba(255, 255, 255, 0.12); }
  .site-nav .button {
    position: relative;
    z-index: 1;
    min-height: 58px;
    background: var(--white);
    color: var(--ink);
    font-size: 1.125rem;
  }
  html.menu-open { overflow: hidden; }
  /* backdrop-filter makes the header a containing block for fixed children; drop it while the menu is open. */
  html.menu-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--paper);
  }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 719px) {
  .section { padding-block: 72px; }

  /* Hero: the headline owns the first screen, the product sits on a brand stage */
  .hero { padding-top: 20px; padding-bottom: 56px; }
  .hero__grid { gap: 36px; }
  .hero__copy { padding-top: 12px; }
  .h-display {
    font-size: clamp(4rem, 30vw, 8rem);
    line-height: 0.84;
    letter-spacing: -0.06em;
    margin-left: -0.04em;
  }
  :lang(fr) .h-display { font-size: clamp(3.5rem, 23vw, 6.5rem); }
  .hero__status { margin-bottom: 22px; }
  .hero__copy .lede { margin-top: 24px; font-size: 1.1875rem; }
  .hero__actions { margin-top: 28px; flex-direction: column; align-items: stretch; gap: 14px; }
  .hero__actions .button { min-height: 58px; font-size: 1.125rem; }
  .hero__actions .text-link { align-self: center; }
  .works-with { margin-top: 28px; text-align: center; font-size: 0.9375rem; }

  .hero__panel {
    position: relative;
    margin-inline: calc(8px - var(--gutter));
    padding: 28px 12px 18px;
    border-radius: 30px;
    background:
      radial-gradient(120% 70% at 10% 0%, rgba(255, 255, 255, 0.35), transparent 55%),
      var(--brand-gradient);
    box-shadow: 0 30px 60px -30px rgba(47, 75, 227, 0.7);
  }
  .hero__panel .reply { border: 0; box-shadow: 0 18px 40px -18px rgba(16, 19, 58, 0.55); }
  .hero__panel .reply::before { display: none; }
  .hero__panel .reply__caption { color: rgba(255, 255, 255, 0.86); margin-top: 14px; }
  .reply__section { padding: 14px 16px; }
  .reply__fact { grid-template-columns: 1fr; gap: 2px; }

  .h-section { font-size: clamp(2.3rem, 10.5vw, 2.9rem); line-height: 0.98; }
  .h-page { font-size: clamp(2.6rem, 12.5vw, 3.4rem); }

  /* Swipe rows: one idea per card, the next one peeking in */
  .compare, .points, .outlook {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    grid-template-columns: none;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .compare::-webkit-scrollbar, .points::-webkit-scrollbar, .outlook::-webkit-scrollbar { display: none; }
  .compare > *, .points > *, .outlook > * { scroll-snap-align: start; }
  .compare__col { padding: 26px 22px; }

  .points { margin-top: 36px; }
  .point {
    position: relative;
    padding: 30px 24px 28px;
    border-top: 0;
    border-radius: var(--radius-panel);
    background: var(--white);
    border: 1px solid var(--line);
    overflow: hidden;
  }
  .point::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--brand-gradient);
  }

  .outlook { margin-top: 36px; }
  .outlook::before { display: none; }
  .outlook__item {
    padding: 28px 24px;
    border-radius: var(--radius-panel);
    background: var(--ink);
    color: var(--white);
  }
  .outlook__item::before { display: none; }
  .outlook__year { color: var(--sky); }
  .outlook__figure {
    font-size: 5.5rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: brightness(1.35);
  }
  .outlook__text { color: rgba(255, 255, 255, 0.84); }
  .outlook__source a { color: rgba(255, 255, 255, 0.6); }

  .rules__row { padding: 14px 18px; }
  .rules__head { padding: 16px 18px; }

  .story__quote { font-size: 1.75rem; }

  .cta-band .button { width: 100%; min-height: 58px; }
  .cta-band__actions { width: 100%; }

  .demo__inbox {
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .demo__inbox::-webkit-scrollbar { display: none; }
  .demo__mail { scroll-snap-align: start; }
  .demo__switch { display: grid; grid-auto-columns: 1fr; width: 100%; }
  .demo__switch button { padding: 0 10px; }
  .demo__modes { margin-top: 24px; }
  .demo__grid { margin-top: 36px; }
  .ready__title { font-size: clamp(2.5rem, 12vw, 3.4rem); }

  /* Turnstile is a fixed 300px widget: give the form the full width of the phone. */
  .form-card {
    margin-inline: calc(-1 * var(--gutter));
    padding: 32px 20px;
    border-radius: 0;
    border-inline: 0;
  }
  .form-card::before { border-radius: 0; inset: -1px 0 auto 0; }
  .form-foot .button { justify-self: stretch; min-height: 58px; }
  .cta-band__mark { width: 300px; height: 300px; right: -110px; top: 24%; }

  /* Floating call to action once the hero button has scrolled away */
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding: 0 8px 0 18px;
    border-radius: 999px;
    background: rgba(16, 19, 58, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--white);
    font: 500 1.0625rem/1 var(--font-ui);
    text-decoration: none;
    box-shadow: 0 18px 40px -16px rgba(47, 75, 227, 0.65);
    transform: translateY(140%);
    transition: transform 0.3s ease;
  }
  .mobile-cta:hover { color: var(--white); }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta__mark {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--white);
    display: grid;
    place-items: center;
  }
  .mobile-cta__mark img { width: 30px; height: 30px; }
  .page-early-access .mobile-cta { display: none; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
