/* Triplune marketing site. Colours follow docs/brand/colors.json. */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --night-top: #14264F;
  --night: #0E1B3D;
  --night-deep: #0A1430;
  --surface: #14264F;
  --raised: #1B2F5E;
  --line: #2A3E78;
  --glow: #2A3E78;
  --cream: #FBEFD2;
  --text-2: #AAB6D3;
  --text-3: #8592B4;
  --link: #8EB4F5;
  --gold: #E2B65C;
  --gold-light: #F3D07F;
  --gold-grad: linear-gradient(135deg, #F3D07F, #E2B65C);
  --must: #FF9A66;
  --quiet: #8CC596;
  --busy: #E8B56E;
  --crowded: #F28B7A;
  --marker: #3B6BD6;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --font: "Manrope", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; background: var(--night-deep); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 450;
  color: var(--cream);
  background: var(--night-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }

/* Lucide icons, inline */
svg[viewBox="0 0 24 24"] {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-weight: 650; font-size: 1rem; letter-spacing: 0.005em;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold-grad); color: var(--night); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { color: var(--cream); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--text-3); background: rgba(27, 47, 94, .5); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
/* Not a link yet (e.g. App Store before launch): looks like a button, does nothing. */
.btn-soon { cursor: default; opacity: .8; }
.btn-soon:active { transform: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }
.fineprint { font-size: .9375rem; color: var(--text-3); }
.muted { color: var(--text-2); }
.center { text-align: center; }

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

.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; gap: 32px;
  max-width: var(--wrap); margin: 0 auto;
  padding: 22px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 600; font-size: 1.3rem; letter-spacing: .005em; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--text-2); font-size: .975rem; font-weight: 550; }
.site-nav a:hover { color: var(--cream); text-decoration: none; }

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

.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
  align-items: center; gap: 40px;
  min-height: min(100vh, 980px);
  padding: 150px max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) 96px;
  background:
    radial-gradient(60% 55% at 82% 18%, rgba(42, 62, 120, .55), transparent 70%),
    linear-gradient(170deg, var(--night-top) 0%, var(--night) 55%, var(--night-deep) 100%);
}

/* The brand mark, blown up: the moon rises behind the page. */
.sky { position: absolute; inset: 0; pointer-events: none; }
.moon {
  position: absolute;
  width: min(54vw, 760px); height: auto;
  right: max(-10vw, calc((100% - var(--wrap)) / 2 - 220px)); top: 70px;
  opacity: .92;
  filter: drop-shadow(0 0 80px rgba(243, 208, 127, .18));
}
.moon .trail circle { fill: var(--gold); }

.hero-copy { position: relative; max-width: 760px; }
.hero h1 {
  font-size: clamp(3rem, 6.6vw, 5.75rem);
  line-height: .98;
  letter-spacing: -0.045em;
  font-weight: 750;
  text-wrap: balance;
}
.lede {
  margin-top: 28px; max-width: 30em;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  color: var(--text-2);
}
.hero .actions { margin-top: 36px; }
.hero .fineprint { margin-top: 18px; }

.hero-device { position: relative; display: flex; justify-content: center; }

/* One orchestrated moment on load: the plane takes off, the trail follows. */
@media (prefers-reduced-motion: no-preference) {
  .moon .plane { animation: takeoff 1.4s cubic-bezier(.2, .7, .2, 1) both .2s; transform-box: view-box; }
  .moon .trail circle { animation: dot .5s ease-out both; }
  .moon .trail circle:nth-child(1) { animation-delay: .55s; }
  .moon .trail circle:nth-child(2) { animation-delay: .7s; }
  .moon .trail circle:nth-child(3) { animation-delay: .85s; }
  .moon .trail circle:nth-child(4) { animation-delay: 1s; }
  .moon .trail circle:nth-child(5) { animation-delay: 1.15s; }
  .moon .trail circle:nth-child(6) { animation-delay: 1.3s; }
  .hero-device { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both .5s; }
}
@keyframes takeoff {
  from { transform: translate(60px, 52px) rotate(352.5deg) scale(.95); opacity: 0; }
  to   { transform: translate(41.68px, 41.81px) rotate(352.5deg) scale(.95); opacity: 1; }
}
@keyframes dot { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- Phone frame (shared) ---------- */

.phone {
  width: 320px; aspect-ratio: 9 / 19.2;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(160deg, #3a4a72, #1a2448 40%, #0c1530);
  box-shadow:
    0 0 0 1px rgba(170, 182, 211, .18),
    0 50px 100px -20px rgba(3, 8, 22, .8),
    0 30px 60px -30px rgba(0, 0, 0, .6);
}
.phone .screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 44px;
  padding: 14px 16px 0;
  background: linear-gradient(170deg, var(--night-top), var(--night) 60%, var(--night-deep));
  font-size: 13px; line-height: 1.35;
}
.status { display: flex; justify-content: space-between; align-items: center; padding: 2px 10px 0; font-size: 13px; font-weight: 650; }
.notch { width: 92px; height: 26px; border-radius: 20px; background: #000; }
.ui-large { margin: 22px 4px 6px; font-size: 30px; font-weight: 750; letter-spacing: -.02em; }
.ui-large.small { margin-top: 20px; font-size: 24px; }
.ui-group { margin: 14px 4px 8px; color: var(--text-2); font-weight: 650; font-size: 13px; }

.trip-card { border-radius: 20px; overflow: hidden; background: var(--surface); }
.trip-meta { padding: 10px 14px 12px; display: grid; gap: 2px; }
.trip-meta span, .row span { color: var(--text-2); font-size: 12px; }
.trip-meta strong, .row strong { font-weight: 650; font-size: 14px; }

/* A map snapshot, drawn with gradients. */
.snap, .b-map, .i-map {
  position: relative;
  background:
    radial-gradient(circle at 20% 70%, rgba(76, 122, 82, .55) 0 18%, transparent 19%),
    radial-gradient(circle at 75% 25%, rgba(76, 122, 82, .4) 0 14%, transparent 15%),
    linear-gradient(115deg, transparent 46%, rgba(142, 180, 245, .25) 46.5% 48%, transparent 48.5%),
    linear-gradient(25deg, transparent 60%, rgba(170, 182, 211, .22) 60.5% 61.5%, transparent 62%),
    linear-gradient(160deg, #1d4f5c, #17394f 60%, #13304a);
}
.snap { height: 104px; }
.pin {
  position: absolute; left: 30%; top: 42%;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--marker); border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.pin.p2 { left: 58%; top: 28%; }
.pin.p3 { left: 72%; top: 60%; background: #C2441C; }
.must-pin { background: #C2441C; }

.row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px; padding: 11px 12px;
  border-radius: 16px; background: var(--surface);
}
.row div { display: grid; gap: 1px; }
.dot-ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--raised); color: var(--link); }
.dot-ico svg { width: 15px; height: 15px; }

.tabbar {
  position: absolute; left: 14px; right: 14px; bottom: 16px;
  display: flex; justify-content: space-around;
  padding: 12px 6px; border-radius: 26px;
  background: rgba(27, 47, 94, .72);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(170, 182, 211, .16);
  font-size: 11px; font-weight: 600; color: var(--text-3);
}
.tabbar .on { color: var(--link); }

/* ---------- Sections ---------- */

.how, .assistant, .devices, .pricing, .download {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) var(--gutter) 0;
}

h2 {
  max-width: 17em;
  font-size: clamp(2.2rem, 4.6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-lede { margin-top: 20px; max-width: 36em; color: var(--text-2); font-size: 1.2rem; }

/* ---------- How it works ---------- */

/* The tapering trail from the logo becomes the line that links the steps. */
.steps { list-style: none; margin: 72px 0 0; padding: 0; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 9px; top: 14px; bottom: 40px; width: 3px;
  background: radial-gradient(circle, var(--gold) 1.3px, transparent 1.7px) 0 0 / 3px 14px repeat-y;
  opacity: .55;
}
.step {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px; align-items: start;
  padding: 0 0 96px 64px;
}
.step:last-child { padding-bottom: 0; }
.step-dot {
  position: absolute; left: 0; top: 6px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 0 0 6px var(--night-deep), 0 0 24px rgba(243, 208, 127, .35);
}
.step:nth-child(2) .step-dot { width: 17px; height: 17px; left: 2px; top: 8px; }
.step:nth-child(3) .step-dot { width: 13px; height: 13px; left: 4px; top: 10px; }

.step h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.025em; }
.step-n { color: var(--gold); margin-right: .25em; font-variant-numeric: tabular-nums; }
.step p { margin-top: 16px; max-width: 30em; color: var(--text-2); }

/* App UI vignettes */
.vignette {
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(170deg, var(--night-top), var(--night) 70%);
  border: 1px solid rgba(42, 62, 120, .9);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
  font-size: .9375rem; line-height: 1.4;
}
.v-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.v-head strong { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.v-sub { color: var(--text-2); font-size: .9rem; }
.chip { margin-left: auto; padding: 3px 11px; border-radius: 999px; background: var(--raised); color: var(--text-2); font-size: .8rem; font-weight: 650; }

.search {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; margin-bottom: 14px; border-radius: 14px;
  background: var(--surface); color: var(--text-3);
}
.search svg { width: 17px; height: 17px; }

.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree > li { padding: 12px 14px; border-radius: 16px; background: var(--surface); margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tree ul { flex-basis: 100%; margin-top: 8px; }
.tree ul li { display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin-top: 6px; border-radius: 12px; background: var(--raised); }
.t-name { font-weight: 600; }
.t-sub { color: var(--text-2); font-size: .85rem; }
.must {
  display: inline-flex; align-items: center; gap: 4px; margin-left: auto;
  padding: 2px 9px; border-radius: 999px;
  color: var(--must); background: rgba(200, 69, 31, .3);
  font-size: .78rem; font-weight: 700;
}
.must svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }

.slot { display: grid; grid-template-columns: 48px 1fr; gap: 10px; margin-bottom: 10px; }
.time { color: var(--link); font-weight: 650; font-variant-numeric: tabular-nums; font-size: .875rem; }
.slot > .time { padding-top: 13px; }
.block { padding: 12px; border-radius: 18px; background: var(--surface); border-left: 3px solid var(--gold); }
.block-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.block-title svg { width: 18px; height: 18px; color: var(--gold); }
.block-title span { margin-left: auto; color: var(--text-2); font-size: .82rem; }
.nested { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; margin-top: 6px; border-radius: 12px; background: var(--raised); }
.n-name { font-weight: 550; }
.plain { padding: 12px 14px; border-radius: 16px; background: var(--surface); font-weight: 600; }

.wait { padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; font-style: normal; white-space: nowrap; }
.wait.quiet { color: var(--quiet); background: rgba(76, 122, 82, .3); }
.wait.busy { color: var(--busy); background: rgba(185, 122, 46, .3); }
.wait.crowded { color: var(--crowded); background: rgba(161, 58, 42, .3); }

.offline { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 10px 14px; border-radius: 14px; background: var(--raised); color: var(--text-2); font-size: .875rem; }
.offline svg { width: 17px; height: 17px; flex: none; color: var(--text-3); }
.todo { display: grid; grid-template-columns: 24px 48px 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 8px; border-radius: 16px; background: var(--surface); font-weight: 600; }
.box { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--text-3); }
.box svg { width: 13px; height: 13px; stroke-width: 3; }
.todo.done { color: var(--text-3); }
.todo.done span:nth-child(3) { text-decoration: line-through; }
.todo.done .box { border-color: var(--quiet); background: var(--quiet); color: var(--night); }
.todo.next { outline: 1.5px solid var(--gold); outline-offset: -1.5px; }
.up { color: var(--gold); font-size: .78rem; font-weight: 700; }

/* ---------- Assistant ---------- */

.assistant { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.assistant-copy p { margin-top: 22px; max-width: 30em; color: var(--text-2); }
.assistant-copy p.muted { color: var(--text-3); font-size: 1rem; }

.chat { display: grid; gap: 16px; }
.bubble.me {
  justify-self: end; max-width: 86%;
  padding: 14px 18px; border-radius: 22px 22px 6px 22px;
  background: #3B6BD6; color: #fff; font-weight: 550; line-height: 1.45;
}
.proposal {
  padding: 22px; border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.p-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 1.05rem; }
.p-head svg { width: 20px; height: 20px; color: var(--gold); }
.proposal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.proposal li { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--raised); font-size: .95rem; line-height: 1.4; }
.tag { flex: none; padding: 1px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.tag.added { color: var(--quiet); background: rgba(76, 122, 82, .32); }
.tag.moved { color: var(--busy); background: rgba(185, 122, 46, .32); }
.p-actions { display: flex; gap: 10px; margin-top: 16px; }

/* ---------- Devices ---------- */

.stage {
  position: relative;
  height: clamp(360px, 52vw, 600px);
  margin-top: 64px;
}
.browser {
  position: absolute; left: 0; top: 0; width: 74%; height: 86%;
  border-radius: 18px; overflow: hidden;
  background: var(--night);
  border: 1px solid var(--line);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8);
  display: flex; flex-direction: column;
}
.b-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--night-deep); border-bottom: 1px solid rgba(42, 62, 120, .6); }
.b-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.b-bar span { margin: 0 auto; padding: 4px 18px; border-radius: 8px; background: var(--surface); color: var(--text-2); font-size: .8rem; }
.b-body { flex: 1; display: grid; grid-template-columns: 17% 30% 1fr; min-height: 0; }
.b-side { display: flex; flex-direction: column; gap: 6px; padding: 18px 12px; background: var(--night-deep); font-size: .82rem; color: var(--text-2); font-weight: 600; }
.b-side img { margin: 0 0 14px 6px; }
.b-side span { padding: 7px 10px; border-radius: 10px; }
.b-side .on, .i-side .on { background: var(--raised); color: var(--cream); }
.b-list { display: flex; flex-direction: column; gap: 8px; padding: 18px 14px; font-size: .82rem; }
.b-list strong { font-size: 1rem; margin-bottom: 6px; }
.day { padding: 9px 12px; border-radius: 12px; background: var(--surface); color: var(--text-2); font-weight: 600; }
.day.on { color: var(--cream); outline: 1.5px solid var(--link); outline-offset: -1.5px; }
.b-map { margin: 10px; border-radius: 14px; overflow: hidden; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; }
.route path { fill: none; stroke: var(--gold); stroke-width: .7; stroke-dasharray: 1.2 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-width: 3; }

.ipad {
  position: absolute; right: 9%; bottom: 0; width: 38%; aspect-ratio: 4 / 3;
  padding: 10px; border-radius: 28px;
  background: linear-gradient(160deg, #3a4a72, #1a2448 40%, #0c1530);
  box-shadow: 0 0 0 1px rgba(170, 182, 211, .18), 0 50px 100px -30px rgba(0, 0, 0, .85);
}
.i-body { height: 100%; display: grid; grid-template-columns: 34% 1fr; border-radius: 19px; overflow: hidden; background: var(--night); font-size: .72rem; }
.i-side { display: flex; flex-direction: column; gap: 4px; padding: 14px 8px; background: var(--night-deep); color: var(--text-2); font-weight: 600; }
.i-side span { padding: 6px 8px; border-radius: 8px; }
.i-main { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.i-map { height: 48%; border-radius: 12px; overflow: hidden; }
.i-map .pin { width: 11px; height: 11px; border-width: 2px; }
.i-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: var(--surface); font-weight: 600; }
.i-row b { width: 8px; height: 8px; border-radius: 50%; background: var(--link); }

.phone-small {
  position: absolute; right: 0; bottom: -4%; width: 19%; min-width: 120px;
  padding: 7px; border-radius: 34px;
}
.phone-small .screen { border-radius: 28px; padding: 14px 10px; font-size: .68rem; }
.phone-small .tabbar { left: 8px; right: 8px; bottom: 10px; padding: 8px 4px; border-radius: 18px; font-size: 8px; }
.mini { display: flex; align-items: center; gap: 6px; padding: 7px 8px; margin-bottom: 5px; border-radius: 10px; background: var(--surface); font-weight: 600; white-space: nowrap; overflow: hidden; }
.mini span { color: var(--link); font-variant-numeric: tabular-nums; }
.mini .wait { margin-left: auto; padding: 1px 6px; font-size: .62rem; }

.platforms {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px;
  margin-top: 88px; padding-top: 40px;
  border-top: 1px solid rgba(42, 62, 120, .7);
}
.platforms h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; letter-spacing: -.015em; }
.platforms h3 svg { width: 22px; height: 22px; color: var(--gold); }
.platforms p { margin-top: 12px; color: var(--text-2); font-size: 1.0625rem; }

/* ---------- Pricing ---------- */

.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
  border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line);
}
.plan { padding: 36px 32px; background: var(--night); }
.plan + .plan { border-left: 1px solid var(--line); }
.plan-premium { background: linear-gradient(170deg, var(--raised), var(--night-top)); }
.plan h3 { font-size: 1.15rem; color: var(--text-2); font-weight: 650; }
.plan-premium h3 { color: var(--gold-light); }
.price { margin: 10px 0 18px; font-size: 2.75rem; font-weight: 750; letter-spacing: -.035em; line-height: 1; }
.price small { display: block; margin-top: 8px; font-size: .95rem; font-weight: 550; letter-spacing: 0; color: var(--text-3); }
.plan p:last-child { color: var(--text-2); font-size: 1.02rem; }
.pricing > .muted { margin-top: 24px; font-size: 1rem; color: var(--text-3); }

/* ---------- Download ---------- */

.download { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: clamp(80px, 12vw, 140px); }
.download img { filter: drop-shadow(0 0 40px rgba(243, 208, 127, .25)); }
.download h2 { margin-top: 28px; }
.download > p:not(.fineprint) { margin-top: 18px; max-width: 30em; color: var(--text-2); font-size: 1.2rem; }
.download .actions { margin-top: 34px; }
.download .fineprint { margin-top: 18px; }

/* ---------- Subpages: contact and legal ---------- */

.page-sub {
  background:
    radial-gradient(50% 40% at 85% 0%, rgba(42, 62, 120, .55), transparent 70%),
    linear-gradient(180deg, var(--night-top) 0, var(--night) 520px, var(--night-deep) 1100px);
  background-color: var(--night-deep);
  /* Korte pagina's (bv. "Message sent."): de verloop één keer tekenen, niet herhalen onder de inhoud, en de
     footer onderaan het venster houden. */
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-sub > main { flex: 1 0 auto; width: 100%; }
.site-nav a[aria-current="page"] { color: var(--cream); }

.contact {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 96px); align-items: start;
  max-width: var(--wrap); margin: 0 auto;
  padding: 160px var(--gutter) clamp(80px, 10vw, 140px);
}
.contact h1, .legal h1 {
  font-size: clamp(2.75rem, 5.6vw, 4.5rem);
  line-height: 1; letter-spacing: -0.04em; font-weight: 750;
}
.contact-intro p { margin-top: 24px; max-width: 28em; color: var(--text-2); font-size: 1.2rem; }
.contact-intro p.muted { font-size: 1rem; color: var(--text-3); }

.form-card {
  display: grid; gap: 22px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 28px;
  background: linear-gradient(170deg, var(--night-top), var(--night) 80%);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.form-card .btn { justify-self: start; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 650; font-size: 1rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  font: inherit; font-size: 1.0625rem; color: var(--cream);
  background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 14px;
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 170px; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AAB6D3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(142, 180, 245, .2); }
.field.has-error input, .field.has-error textarea { border-color: var(--must); }
.field-error { color: var(--must); font-size: .95rem; }
.form-error { padding: 14px 16px; border-radius: 14px; background: rgba(200, 69, 31, .22); color: var(--must); font-weight: 600; font-size: 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-card.sent { justify-items: start; gap: 18px; }
.form-card.sent h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.form-card.sent p { color: var(--text-2); }

.legal {
  max-width: 760px; margin: 0 auto;
  padding: 160px var(--gutter) clamp(80px, 10vw, 140px);
}
.legal .updated { margin-top: 18px; color: var(--text-3); font-size: 1rem; }
.legal .summary {
  margin-top: 36px; padding: 24px 28px;
  border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
}
.legal .summary p { color: var(--cream); }
.legal .summary ul { margin: 12px 0 0; padding-left: 1.2em; color: var(--text-2); }
.legal .summary li + li { margin-top: 6px; }
.legal h2 {
  margin-top: 56px; max-width: none;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.2; letter-spacing: -0.02em;
}
.legal h3 { margin-top: 28px; font-size: 1.15rem; letter-spacing: -.01em; }
.legal p, .legal ul { margin-top: 14px; color: var(--text-2); line-height: 1.7; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 8px; }
.legal strong { color: var(--cream); font-weight: 650; }
.legal table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 1rem; }
.legal th, .legal td { padding: 12px 14px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(42, 62, 120, .8); }
.legal th { color: var(--cream); font-weight: 650; }
.legal td { color: var(--text-2); }
.legal .placeholder { padding: 1px 6px; border-radius: 6px; background: rgba(232, 181, 110, .2); color: var(--busy); }

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

.site-footer {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  max-width: var(--wrap); margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid rgba(42, 62, 120, .6);
  color: var(--text-3); font-size: .95rem;
}
.site-footer .brand { font-size: 1.1rem; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer nav a { color: var(--text-2); }
.site-footer p { margin-left: auto; }
.site-footer nav { flex-wrap: wrap; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; min-height: 0; }
  .moon { width: 92vw; right: -46vw; top: 70px; opacity: .32; }
  .hero-device { margin-top: 24px; }
  .step { grid-template-columns: 1fr; gap: 28px; padding-left: 48px; }
  .assistant { grid-template-columns: 1fr; gap: 40px; }
  .platforms { grid-template-columns: 1fr; gap: 32px; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .contact { grid-template-columns: 1fr; padding-top: 130px; }
  .legal { padding-top: 130px; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .phone { width: 280px; }
  .vignette { padding: 16px; border-radius: 22px; }
  .step { padding-left: 38px; }
  .stage { height: auto; aspect-ratio: auto; margin-top: 44px; }
  .browser { position: relative; width: 100%; height: 300px; }
  .b-body { grid-template-columns: 48% 1fr; }
  .b-side { display: none; }
  .ipad, .phone-small { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .site-footer p { margin-left: 0; flex-basis: 100%; }
}
