/* Sofia Sans and Sofia Sans Extra Condensed by Lettersoup, SIL Open Font License 1.1 (fonts/OFL.txt). Self-hosted: no requests to font services. */
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/sofia-sans-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/sofia-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/sofia-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/sofia-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url(fonts/sofia-sans-xcond-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url(fonts/sofia-sans-xcond-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url(fonts/sofia-sans-xcond-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url(fonts/sofia-sans-xcond-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Layout: an instrument panel. Sections are rows of bordered field cells with a small label,
   a big condensed value and a unit, the way the app lays out its own screens. One live
   thermal assistant in the hero is the only moving part. */
:root {
  --paper: #f4f6f8;          /* page ground: cool, like high overcast */
  --panel: #ffffff;          /* field cells */
  --ink: #0b1016;            /* values and headings */
  --muted: #566170;          /* labels, secondary text */
  --rule: #d5dbe2;           /* cell borders */
  --lift: #e8501c;           /* climb: the one accent */
  --lift-ink: #c23f10;       /* accent text on paper, AA contrast */
  --sink: #2457d6;           /* sink, next turnpoints */
  --taken: #1d7a3e;          /* taken turnpoints */
  --map: #e9efe6;            /* map land */
  --map-sea: #d6e5f2;        /* map water */
  --contour: #c7d3c2;
  --halo: #ffffff;
  --bezel: #101317;          /* device frame, same in both themes */
  --bezel-edge: rgba(255, 255, 255, 0.04);
  --screen: #ffffff;         /* the app in its light theme, same in both themes */
  --screen-ink: #000000;
  --screen-rule: #c9ced4;
  --screen-muted: #4b5562;
  --screen-up: #1b8a3a;
  --screen-down: #d0261b;
  --v-sink: #3d6fe0;
  --v-zero: #a3aab3;
  --v-weak: #f2c230;
  --v-mid: #f08a24;
  --v-strong: #e2361a;

  --display: 'Sofia Sans Extra Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Sofia Sans', 'Helvetica Neue', Arial, system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem);
  --step-4: clamp(3rem, 1.6rem + 5.6vw, 5.4rem);
  --gutter: 16px;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0e12;
    --panel: #12171d;
    --ink: #eef2f6;
    --muted: #9aa5b2;
    --rule: #27303a;
    --lift: #ff6a33;
    --lift-ink: #ff8656;
    --sink: #6d93ff;
    --taken: #3fb36a;
    --map: #1a2219;
    --map-sea: #142333;
    --contour: #2c3a2a;
    --halo: #0b0e12;
    --bezel-edge: rgba(255, 255, 255, 0.14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b0e12;
  --panel: #12171d;
  --ink: #eef2f6;
  --muted: #9aa5b2;
  --rule: #27303a;
  --lift: #ff6a33;
  --lift-ink: #ff8656;
  --sink: #6d93ff;
  --taken: #3fb36a;
  --map: #1a2219;
  --map-sea: #142333;
  --contour: #2c3a2a;
  --halo: #0b0e12;
  --bezel-edge: rgba(255, 255, 255, 0.14);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--lift-ink); }
:focus-visible { outline: 2px solid var(--lift); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* Header */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; flex-wrap: wrap; }
.mark { position: relative; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); line-height: 1; }
aeromigo-logo { display: block; color: var(--ink); }
aeromigo-logo:not(:defined) { display: none; }
.mark aeromigo-logo { height: 40px; }
.mark.small aeromigo-logo { height: 30px; }
.mark-text { font-family: var(--body); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.01em; }
.mark.small .mark-text { font-size: 1.2rem; }
.mark:has(aeromigo-logo:defined) .mark-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav { display: flex; gap: 6px 20px; flex-wrap: wrap; margin-left: auto; font-size: var(--step--1); }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .lang { color: var(--ink); border: 1px solid var(--rule); padding: 1px 8px; border-radius: 99px; }
.langs { display: inline-flex; border: 1px solid var(--rule); border-radius: 99px; overflow: hidden; }
.langs a { padding: 1px 8px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { background: var(--ink); color: var(--paper); }
@media (max-width: 640px) { .nav .opt { display: none; } }

/* Shared type */
.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.h2 { font-family: var(--display); font-weight: 800; font-size: var(--step-3); line-height: 0.98; letter-spacing: -0.005em; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink); max-width: 36em; }
.prose { max-width: 38em; display: grid; gap: 14px; }
.prose p { color: var(--ink); }
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before {
  content: "";
  position: absolute; left: 2px; top: 0.62em;
  width: 9px; height: 9px;
  border: 2px solid var(--lift);
  border-radius: 50%;
}
.num { font-variant-numeric: tabular-nums; }

/* Hero */
.hero { padding-block: 44px 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin-block: 14px 20px;
}
.hero h1 em { font-style: normal; color: var(--lift); }
.hero-text { display: grid; align-content: start; min-width: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1rem;
  padding: 12px 20px;
  border-radius: 99px;
  text-decoration: none;
  border: 2px solid var(--ink);
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--lift); border-color: var(--lift); color: #fff; }
.btn.ghost:hover { border-color: var(--lift); color: var(--lift-ink); }
.fine { margin-top: 18px; font-size: var(--step--1); color: var(--muted); }

/* Device mocks: the app in its light theme, drawn live from a real flight (assets/screens.js) */
.device {
  container-type: inline-size;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2.17 / 1;
  background: var(--bezel);
  border-radius: 7.5cqw;
  padding: 2.1cqw;
  box-shadow: 0 30px 60px -30px rgba(11, 16, 22, 0.45), 0 0 0 1px var(--bezel-edge) inset;
  position: relative;
}
.device::before { /* Dynamic Island on the left in landscape */
  content: "";
  position: absolute;
  left: 3.6cqw; top: 50%;
  width: 1.7cqw; height: 9cqw;
  transform: translateY(-50%);
  background: var(--bezel);
  border-radius: 99px;
  z-index: 3;
}
.screen {
  position: relative;
  width: 100%; height: 100%;
  background: var(--screen);
  color: var(--screen-ink);
  border-radius: 5.6cqw;
  overflow: hidden;
  font-family: var(--display);
  isolation: isolate;
}
.pages { display: flex; width: 200%; height: 100%; transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.5s ease; }
.pages[data-page="1"] { transform: translateX(-50%); }
.pages.fade { opacity: 0; }
.page { width: 50%; height: 100%; min-width: 0; }
.page.solo { width: 100%; }
.field {
  border: 1px solid var(--screen-rule);
  margin: -1px 0 0 -1px;
  position: relative;
  display: grid;
  align-content: end;
  justify-items: end;
  padding: 0.5cqw 1cqw 0.2cqw;
  min-width: 0; min-height: 0;
  overflow: hidden;
  background: var(--screen);
}
.field .t {
  position: absolute; left: 0.9cqw; top: 0.4cqw;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.45cqw;
  color: var(--screen-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.field .v {
  font-weight: 900;
  font-size: 5.6cqw;
  line-height: 0.84;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.field .v small { font-family: var(--body); font-size: 1.45cqw; font-weight: 700; margin-left: 0.3cqw; }
.num.up { color: var(--screen-up); }
.num.down { color: var(--screen-down); }

/* Phone turned the other way: the Dynamic Island sits on the right, over the map */
.device.island-right::before { left: auto; right: 3.6cqw; }
.island-right .page.xc .left { padding-left: 0; }
.island-right .page.th { grid-template-columns: minmax(0, 1fr) 57%; padding-left: 0; padding-right: 3.4cqw; }
.island-right .page.th .side { order: -1; }

/* Flight map page */
.page.xc { display: grid; grid-template-columns: 19% minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 23%; }
.page.xc .left { grid-row: 1 / 3; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); padding-left: 3.6cqw; background: var(--screen); }
.mapbox { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.mapbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapbox .clock {
  position: absolute; top: 0; right: 0;
  background: var(--screen); padding: 0 1cqw 0.3cqw;
  font-weight: 900; font-size: 5.4cqw; line-height: 1; font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--screen-rule); border-bottom: 1px solid var(--screen-rule);
}
.mapbtn { position: absolute; left: 2.6cqw; font-family: var(--body); font-weight: 300; font-size: 4.2cqw; line-height: 1; color: var(--screen-ink); }
.mapbtn.plus { top: 14%; }
.mapbtn.minus { top: 38%; }
.mapbtn.move { top: auto; bottom: 8%; width: 3.6cqw; height: 3.6cqw; }
.mapbtn.move path { fill: var(--screen-ink); }
.page.xc .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page.xc .row .v { font-size: 6cqw; }

/* Thermal page */
.page.th { display: grid; grid-template-columns: 57% minmax(0, 1fr); padding-left: 3.4cqw; background: #fbfaf6; }
.page.th .ta { position: relative; min-width: 0; min-height: 0; }
.page.th .ta canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.page.th .side { display: grid; grid-template-rows: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); min-width: 0; }
.page.th .pair { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
.page.th .graph { position: relative; border: 1px solid var(--screen-rule); margin: -1px 0 0 -1px; background: var(--screen); }
.page.th .graph canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; }
.page.th .graph .clock { position: absolute; left: 1cqw; top: 0.3cqw; font-weight: 900; font-size: 4.4cqw; line-height: 1; font-variant-numeric: tabular-nums; }
.page.th .v { font-size: 5.4cqw; }

/* Portrait phone: the task editor map */
.phone { width: min(100%, 320px); margin-inline: auto; container-type: inline-size; }
.device.portrait { aspect-ratio: 1 / 2.1; border-radius: 16cqw; padding: 3.4cqw; }
.device.portrait::before { left: 50%; top: 5.6cqw; width: 28cqw; height: 8cqw; transform: translateX(-50%); }
.device.portrait .screen { border-radius: 12.5cqw; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; font-family: var(--body); }
.editor .navbar { position: relative; display: grid; place-items: center; padding: 17cqw 4cqw 3.5cqw; font-weight: 700; font-size: 5.2cqw; background: var(--screen); border-bottom: 1px solid var(--screen-rule); }
.editor .navbar .back { position: absolute; left: 4cqw; bottom: 2.6cqw; width: 10cqw; height: 10cqw; border-radius: 50%; border: 1px solid var(--screen-rule); display: grid; place-items: center; font-size: 6cqw; line-height: 1; }
.editor .edmap { position: relative; min-height: 0; overflow: hidden; }
.editor .edmap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.editor .finger {
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  opacity: 0; pointer-events: none;
  transition: transform 0.08s linear;
}
.editor .hint { background: #c4ecfb; color: #0b1016; font-size: 4.1cqw; line-height: 1.3; padding: 3.5cqw 4.5cqw 9cqw; min-height: 24cqw; }
.phone-fig { display: grid; justify-items: center; gap: 12px; }
.live-fig { display: grid; gap: 12px; min-width: 0; container-type: inline-size; }
.caption { margin-top: 12px; font-size: var(--step--1); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .pages { transition: none; } .editor .finger { transition: none; } }

/* Facts band: field cells with big numbers */
.facts { border-block: 1px solid var(--rule); background: var(--panel); }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.fact { padding: 22px 20px 24px; border-left: 1px solid var(--rule); display: grid; gap: 6px; align-content: start; min-width: 0; }
.fact:first-child { border-left: 0; }
@media (max-width: 999px) { .fact { border-left: 0; border-top: 1px solid var(--rule); } .fact:first-child { border-top: 0; } }
@media (min-width: 520px) and (max-width: 999px) {
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-top: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--rule); }
}
.fact .big { font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 2rem + 2.4vw, 3.8rem); line-height: 0.9; font-variant-numeric: tabular-nums; }
.fact .big small { font-size: 0.42em; font-weight: 700; margin-left: 4px; color: var(--muted); }
.fact p { color: var(--muted); font-size: var(--step--1); line-height: 1.45; }

/* Feature sections */
.section { padding-block: 72px; border-bottom: 1px solid var(--rule); }
.section .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) {
  .section .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .section.flip .text { order: 2; }
}
.text { display: grid; gap: 18px; min-width: 0; align-content: start; }
.figure { min-width: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px; }
.figure svg { width: 100%; height: auto; }
.figure figcaption { font-size: var(--step--1); color: var(--muted); padding: 10px 4px 2px; }
figure { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chips li { font-size: 0.82rem; font-weight: 700; border: 1px solid var(--rule); background: var(--panel); padding: 3px 10px; border-radius: 99px; }

/* SVG map colours */
.m-land { fill: var(--map); }
.m-sea { fill: var(--map-sea); }
.m-contour { fill: none; stroke: var(--contour); stroke-width: 1.2; }
.m-route { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 2 5; stroke-linecap: round; opacity: 0.55; }
.m-halo { fill: none; stroke: var(--halo); stroke-width: 7; opacity: 0.9; }
.m-taken { fill: none; stroke: var(--taken); stroke-width: 2.5; stroke-dasharray: 7 6; }
.m-target { fill: none; stroke: var(--lift); stroke-width: 5; }
.m-next { fill: none; stroke: var(--sink); stroke-width: 3; }
.m-badge-taken { fill: var(--taken); }
.m-badge-target { fill: var(--lift); }
.m-badge-next { fill: var(--sink); }
.m-badge-text { fill: #ffffff; font: 800 15px var(--display); }
.m-label { fill: var(--ink); font: 700 12px var(--body); }
.m-muted { fill: var(--muted); font: 700 11px var(--body); letter-spacing: 0.06em; }
.m-track { fill: none; stroke: var(--lift); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.m-sector { fill: var(--taken); opacity: 0.22; stroke: var(--taken); stroke-width: 1.5; }
.m-close { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 4 4; opacity: 0.7; }
.m-pilot { fill: var(--ink); stroke: var(--halo); stroke-width: 2; }
.m-pill { fill: var(--paper); font: 800 17px var(--display); }
.m-tri { fill: none; stroke: var(--taken); stroke-width: 2; stroke-dasharray: 8 6; }

/* Field-cell grid for the rest of the features */
.cells { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); background: var(--panel); }
@media (min-width: 640px) { .cells { grid-template-columns: 1fr 1fr; } .cell:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .cells { grid-template-columns: repeat(3, 1fr); } .cell:last-child:nth-child(odd) { grid-column: auto; } }
.cell { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 20px 20px 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.cell h3 { font-family: var(--display); font-weight: 800; font-size: 1.85rem; line-height: 1; }
.cell p { color: var(--muted); }
.cell .label { color: var(--lift-ink); }
.all { padding-block: 72px; border-bottom: 1px solid var(--rule); }
.all .head { display: grid; gap: 14px; margin-bottom: 32px; }

/* Privacy and beta bands */
.band { padding-block: 72px; border-bottom: 1px solid var(--rule); }
.band .wrap { display: grid; gap: 28px; }
@media (min-width: 960px) { .band .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.band.ink { background: var(--ink); color: var(--paper); border-bottom: 0; }
.band.ink .prose p { color: var(--paper); }
.band.ink .prose p.muted, .band.ink .label, .band.ink .muted { color: color-mix(in srgb, var(--paper) 68%, var(--ink)); }
.band.ink a:hover { color: var(--lift); }
.band.ink .btn { border-color: var(--paper); color: var(--paper); }
.band.ink .btn:hover { border-color: var(--lift); color: var(--lift); }
.band.ink .btn.primary { background: var(--lift); border-color: var(--lift); color: #fff; }
.band.ink .btn.primary:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.signup { display: grid; gap: 10px; margin-top: 8px; max-width: 34em; }
.signup .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input[type="email"] {
  flex: 1 1 14em; min-width: 0;
  font: inherit; font-size: 1.0625rem;
  padding: 12px 16px;
  border-radius: 99px;
  border: 2px solid transparent;
  background: var(--paper); color: var(--ink);
}
.signup input[type="email"]::placeholder { color: var(--muted); }
.signup input[type="email"]:focus-visible { outline: 2px solid var(--lift); outline-offset: 2px; }
.signup button[disabled] { opacity: 0.6; cursor: default; }
.signup-status { font-size: var(--step--1); color: color-mix(in srgb, var(--paper) 72%, var(--ink)); min-height: 1.5em; }
.signup-status[data-state="ok"], .signup-status[data-state="saved"] { color: var(--paper); font-weight: 700; font-size: 1rem; }
.signup-status[data-state="invalid"], .signup-status[data-state="busy"], .signup-status[data-state="error"] { color: var(--lift); font-weight: 700; }
.signup.is-done .signup-row { display: none; }
.notyet { display: grid; gap: 10px; }
.notyet ul { list-style: none; display: grid; gap: 6px; }
.notyet li { padding-left: 20px; position: relative; }
.notyet li::before { content: "–"; position: absolute; left: 2px; }
.muted { color: var(--muted); }

/* Footer */
.foot { padding-block: 32px 40px; font-size: var(--step--1); color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }

/* Policy page */
.doc { padding-block: 48px 72px; }
.doc .wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .doc .wrap { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; } }
.toc { display: grid; gap: 8px; align-content: start; font-size: var(--step--1); }
@media (min-width: 960px) { .toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); } }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.policy { max-width: 42em; display: grid; gap: 16px; min-width: 0; }
.policy h1 { font-family: var(--display); font-weight: 800; font-size: var(--step-3); line-height: 1; }
.policy h2 { font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1.05; margin-top: 18px; }
.policy ul { padding-left: 1.2em; display: grid; gap: 10px; }
.policy .summary { font-size: var(--step-1); border-left: 3px solid var(--lift); padding-left: 16px; }
.policy + .policy { border-top: 1px solid var(--rule); padding-top: 40px; margin-top: 24px; }
.policy a { overflow-wrap: anywhere; }
.todo { background: color-mix(in srgb, var(--lift) 18%, transparent); padding: 0 4px; border-radius: 3px; }

/* iPhone Duo announcement */
.news {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 700;
  padding: 4px 12px 4px 8px;
  border-radius: 99px;
  border: 1px solid var(--rule);
  background: var(--panel);
  text-decoration: none;
  margin-bottom: 14px;
}
.news::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lift); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lift) 22%, transparent); }
.news:hover { border-color: var(--lift); }
.news-label { color: var(--lift-ink); }
.duo-band { background: color-mix(in srgb, var(--panel) 70%, var(--paper)); }
.duo-fig { min-width: 0; display: grid; gap: 12px; justify-items: center; }
.duo-stage { position: relative; width: min(100%, 400px); aspect-ratio: 669 / 951; container-type: inline-size; }
.duo {
  container-type: inline-size;
  position: absolute; left: 50%; top: 50%;
  width: 69.66%; height: 71.29%;
  transform: translate(-50%, -50%);
  background: var(--bezel);
  border-radius: 6.5cqw;
  padding: 2.2cqw;
  box-shadow: 0 30px 60px -30px rgba(11, 16, 22, 0.45), 0 0 0 1px var(--bezel-edge) inset;
  transition: width 0.9s cubic-bezier(0.3, 0.7, 0.2, 1), height 0.9s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.duo.open { width: 100%; height: 100%; }
.duo .screen { display: grid; grid-template-rows: minmax(0, 15%) minmax(0, 1fr) minmax(0, 15%); border-radius: 4.6cqw; }
.duo .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 0; }
.duo .field .t { font-size: 3.4cqw; left: 2cqw; top: 1cqw; }
.duo .field .v { font-size: 10.5cqw; }
.duo .field .v small { font-size: 3.2cqw; }
.duo .field { padding: 1cqw 2cqw 0.5cqw; }
.duo .mapbox .clock { font-size: 9cqw; padding: 0 2cqw 0.6cqw; }
.duo .crease {
  position: absolute; left: 50%; top: 2.2cqw; bottom: 2.2cqw; width: 2px; margin-left: -1px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.16) 20%, rgba(0, 0, 0, 0.16) 80%, rgba(0, 0, 0, 0));
  opacity: 0; transition: opacity 0.4s ease 0.6s; pointer-events: none;
}
.duo.open .crease { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .duo { transition: none; } .duo .crease { transition: none; } }
