/* mileworks.app: the app's evergreen theme and its font, Inter (served from here; nothing loads from another site). */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/inter-700.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/inter-800.woff2) format("woff2"); }

:root {
  --bg: #f6f7f9;
  --bg-2: #eef0f3;
  --card: #ffffff;
  --text: #0e1114;
  --text-2: #3b434c;
  --muted: #5d6671;
  --line: #e2e5ea;
  --line-2: #d3d8de;
  --accent: #0b7a61;
  --accent-ink: #ffffff;
  --accent-soft: #e2f3ec;
  --accent-line: #b9e2d3;
  --warn-soft: #fff4dc;
  --warn-line: #f1d79a;
  --mark: #fff1b8;
  --mark-text: #4a3b00;
  --shadow: 0 1px 2px rgba(16, 24, 32, 0.05), 0 8px 24px rgba(16, 24, 32, 0.06);
  --shadow-phone: 0 30px 60px -20px rgba(16, 24, 32, 0.35), 0 12px 24px -12px rgba(16, 24, 32, 0.25);
  --top-bg: rgba(246, 247, 249, 0.82);
  --glow: rgba(11, 122, 97, 0.16);
  --glass: rgba(255, 255, 255, 0.78);
  --shadow-float: 0 18px 40px -18px rgba(16, 24, 32, 0.35);
  --c1: #0b7a61; --c2: #d97706; --c3: #2563eb; --c4: #7c3aed; --c5: #64748b;
  --radius: 22px;
  --wide: 1120px;
  --measure: 720px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #0c0d0f;
    --card: #121417;
    --text: #f3f5f7;
    --text-2: #c9ced5;
    --muted: #98a1ab;
    --line: #23262b;
    --line-2: #30343a;
    --accent: #3ccfa9;
    --accent-ink: #00261c;
    --accent-soft: #0f2a23;
    --accent-line: #1d4d40;
    --warn-soft: #2a2210;
    --warn-line: #4d3d14;
    --mark: #4a3b00;
    --mark-text: #ffe9a3;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    --shadow-phone: 0 30px 70px -20px rgba(60, 207, 169, 0.18), 0 12px 30px -12px rgba(0, 0, 0, 0.9);
    --top-bg: rgba(0, 0, 0, 0.72);
    --glow: rgba(60, 207, 169, 0.20);
    --glass: rgba(18, 20, 23, 0.78);
    --shadow-float: 0 18px 50px -16px rgba(0, 0, 0, 0.9);
    --c1: #3ccfa9; --c2: #f59e0b; --c3: #60a5fa; --c4: #a78bfa; --c5: #94a3b8;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
strong { font-weight: 700; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 20; background: var(--card); color: var(--text); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.skip:focus { left: 12px; }

.draft { background: var(--mark); color: var(--mark-text); text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--top-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  border-bottom-color: var(--line);
}
.top-in { max-width: var(--wide); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; display: block; }
.top nav { display: flex; gap: 2px; }
.top nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { color: var(--text); background: var(--bg-2); }
.top nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }

main { display: block; }

/* Shared bits */
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px; text-decoration: none;
}
.button:hover { filter: brightness(1.06); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Documents */
.page {
  max-width: var(--wide); margin: 0 auto; padding: 48px 20px 24px;
  display: grid; grid-template-columns: 240px minmax(0, var(--measure)); grid-template-areas: "head head" "toc doc"; column-gap: 56px; justify-content: center;
}
.page.single { grid-template-columns: minmax(0, var(--measure)); grid-template-areas: "head" "doc"; }
.page-head { grid-area: head; max-width: calc(240px + 56px + var(--measure)); padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.page.single .page-head { max-width: var(--measure); }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 16px; }
.dates { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; }
.dates span { font-size: 13.5px; font-weight: 600; color: var(--text-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.intro { max-width: var(--measure); font-size: 19px; color: var(--text-2); }
.intro p { margin: 0 0 12px; }
.intro p:last-child { margin-bottom: 0; }
.intro .callout { font-size: 16.5px; margin-top: 20px; }

.toc { grid-area: toc; position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 104px); overflow: auto; padding-right: 4px; }
.toc summary { list-style: none; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.toc li a:hover { color: var(--text); border-left-color: var(--accent); }

.doc { grid-area: doc; min-width: 0; }
.doc > :first-child { margin-top: 0; }
.doc h2 { font-size: 28px; font-weight: 800; margin: 56px 0 14px; padding-top: 8px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 19px; font-weight: 700; margin: 32px 0 8px; }
.doc h4 { font-size: 16px; margin: 24px 0 6px; }
.doc h2, .doc h3 { position: relative; }
.anchor { position: absolute; left: -0.9em; width: 0.9em; color: var(--muted); text-decoration: none; opacity: 0; font-weight: 600; }
h2:hover > .anchor, h3:hover > .anchor, .anchor:focus { opacity: 1; }
.doc p, .doc li { overflow-wrap: anywhere; color: var(--text-2); }
.doc p { margin: 0 0 16px; }
.doc strong { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 18px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--muted); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.doc code { font-size: 0.88em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
/* A licence's text (the licences page), wrapped as it's laid out: its own line breaks kept, long lines folded. */
.doc pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.55; }
.doc pre code { background: none; border: 0; padding: 0; font-size: inherit; }

.callout { border-radius: 18px; padding: 20px 22px; margin: 0 0 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.callout > :last-child { margin-bottom: 0; }
.callout ul { margin-bottom: 0; }
.callout-summary { background: var(--accent-soft); border-color: var(--accent-line); box-shadow: none; }
.callout-summary li, .callout-summary p { color: var(--text); }
.callout-warn { background: var(--warn-soft); border-color: var(--warn-line); box-shadow: none; }
.callout-warn p, .callout-warn li { color: var(--text); }

.table { overflow-x: auto; margin: 18px 0 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.table table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.55; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table th { background: var(--bg-2); font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.table td { color: var(--text-2); }
.table td:first-child { color: var(--text); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table.wide table { min-width: 600px; }
.table.wide th:not(:first-child), .table.wide td:not(:first-child) { white-space: nowrap; }
.table.wide th:not(:first-child) { white-space: normal; min-width: 72px; }
/* Cards: each row a card, its cells labelled by the header (long passages; and every table on a phone). */
.table.cards { border: 0; background: none; overflow: visible; }
.table.cards table { display: block; min-width: 0; }
.table.cards thead { display: none; }
.table.cards tbody { display: grid; gap: 12px; }
.table.cards tr { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px 0; box-shadow: var(--shadow); }
.table.cards td { display: block; border: 0; padding: 8px 20px; }
.table.cards td:first-child { font-size: 16px; padding-top: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.table.cards td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.table.cards td:first-child::before { display: none; }
mark.blank { background: var(--mark); color: var(--mark-text); border-radius: 4px; padding: 0 3px; }

/* Footer */
.foot { margin-top: 88px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-in { max-width: var(--wide); margin: 0 auto; padding: 40px 20px 8px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 32px; }
.foot-brand p { color: var(--muted); font-size: 15px; margin: 12px 0 0; max-width: 26em; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols h2 { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 4px 0 10px; }
.foot-cols a { display: block; color: var(--text-2); text-decoration: none; font-size: 15px; padding: 4px 0; overflow-wrap: anywhere; }
.foot-cols a:hover { color: var(--text); text-decoration: underline; }
.legal { max-width: var(--wide); margin: 0 auto; padding: 20px 20px 40px; color: var(--muted); font-size: 14px; }

/* Narrower screens */
@media (max-width: 1040px) {
  .page { grid-template-columns: minmax(0, var(--measure)); grid-template-areas: "head" "toc" "doc"; }
  .page-head { max-width: var(--measure); }
  .toc { position: static; max-height: none; margin: 0 0 32px; padding: 0; }
  .toc details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
  .toc summary { margin: 0; cursor: pointer; display: flex; justify-content: space-between; }
  .toc summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--muted); }
  .toc details[open] summary::after { content: "–"; }
  .toc details[open] summary { margin-bottom: 10px; }
}
@media (max-width: 860px) {
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top-in { padding: 10px 16px; }
  .brand { font-size: 18px; }
  .top nav a { padding: 8px 9px; font-size: 14.5px; }
  .page { padding: 32px 16px 16px; }
  .page-head { padding-bottom: 22px; margin-bottom: 24px; }
  .intro { font-size: 17.5px; }
  .doc h2 { font-size: 24px; margin-top: 44px; }
  .anchor { display: none; }
  .callout { padding: 16px 18px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-cols div:last-child { grid-column: 1 / -1; }
  /* A table's rows as cards: each cell labelled by its column. */
  .table { border: 0; background: none; overflow: visible; }
  .table table, .table.wide table { min-width: 0; display: block; }
  .table thead { display: none; }
  .table tbody { display: grid; gap: 12px; }
  .table tr { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px 0; }
  .table td { display: block; border: 0; padding: 8px 16px; }
  .table td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .table td[data-label=""]::before { display: none; }
}
@media (max-width: 370px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ───────────── Home (2026-11-02, the second design: the web's own pieces, one phone, a gallery) ───────────── */
.home main { overflow-x: clip; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0 0; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 14px; }
.section-head p { color: var(--text-2); font-size: 19px; margin: 0; }

/* Hero: the words centred, one phone rising out of a glow and fading into the page. */
.hero { position: relative; text-align: center; padding: 72px 0 0; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 62%, var(--glow), transparent 70%);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text-2);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(44px, 7.4vw, 88px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; margin: 22px auto 22px; max-width: 12em; }
.hero h1 .soft { color: var(--muted); }
.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--text-2); margin: 0 auto 24px; max-width: 36em; }
.pills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 30px; padding: 0; }
.pills li { font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--card); color: var(--text-2); border: 1px solid var(--line); }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; margin: 0; }

.stage { position: relative; display: flex; justify-content: center; margin: 64px auto 0; max-width: 980px; }
.stage .phone { width: 320px; }
/* The phone fades into the page below its middle, so it reads as rising out of it, not pasted on. */
.stage .phone-fade { -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 96%); mask-image: linear-gradient(to bottom, #000 58%, transparent 96%); }
.float {
  position: absolute; z-index: 3; text-align: left; min-width: 190px; padding: 14px 18px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.float b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.float b small { font-size: 15px; font-weight: 700; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.float span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.float .bar { display: block; height: 6px; border-radius: 3px; background: var(--bg-2); margin-top: 10px; overflow: hidden; }
.float .bar i { display: block; height: 100%; width: 93%; border-radius: 3px; background: var(--accent); }
.float.f1 { left: 2%; top: 22%; }
.float.f2 { right: 2%; top: 12%; }
.float.f3 { right: 6%; top: 52%; }
.stage-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* The phone itself: a thin dark bezel and the island. */
.phone {
  position: relative; margin: 0; aspect-ratio: 300 / 649; border-radius: 46px; padding: 10px; background: #0a0b0d; flex: none;
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px #2b2e34, inset 0 0 0 5px #0a0b0d, inset 0 0 0 6px #1b1d21;
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }

/* Promises: four short lines with their marks, no box. */
.promises { padding: 56px 0 0; }
.promises ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 980px; }
.promises li { display: flex; gap: 12px; align-items: flex-start; }
.promises .mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.promises strong { display: block; font-size: 16px; }
.promises span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* Bento: each tile a small piece of the app drawn for the web, then its words. */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.tile.wide { grid-column: span 2; }
.tile h3 { font-size: 21px; font-weight: 800; margin: 0 0 6px; }
.tile p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.tile .tag { display: inline-block; margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.viz { display: flex; flex-direction: column; justify-content: center; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); padding: 18px 20px; min-height: 150px; }
.tile.wide .viz { min-height: 170px; }
.big { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.big small { font-size: 18px; font-weight: 700; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.vrow { display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; }
.vrow > div:first-child { flex: 1 1 260px; }
.meta { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.meter { height: 8px; border-radius: 4px; background: var(--line); margin-top: 14px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.meter .m93 { width: 93%; }
.spark { flex: 1 1 240px; width: 100%; max-width: 340px; height: 80px; }
.spark .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.spark .area { fill: var(--accent-soft); }
.spark .dot { fill: var(--accent); }
.stack { display: flex; height: 22px; border-radius: 11px; overflow: hidden; margin: 8px 0 16px; }
.stack i { display: block; height: 100%; }
.stack .s1 { width: 34%; background: var(--c1); } .stack .s2 { width: 18%; background: var(--c2); } .stack .s3 { width: 16%; background: var(--c3); }
.stack .s4 { width: 17%; background: var(--c4); } .stack .s5 { width: 15%; background: var(--c5); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13.5px; color: var(--text-2); }
.legend li::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--c1); }
.legend li:nth-child(2)::before { background: var(--c2); } .legend li:nth-child(3)::before { background: var(--c3); }
.legend li:nth-child(4)::before { background: var(--c4); } .legend li:nth-child(5)::before { background: var(--c5); }
.route { width: 100%; height: 110px; }
.route .road { fill: none; stroke: var(--line-2); stroke-width: 10; stroke-linecap: round; }
.route .trip { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 0; }
.route .end { fill: var(--card); stroke: var(--accent); stroke-width: 3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text-2); }
.chips span.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stamps { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.stamp {
  display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; border: 2.5px dashed var(--accent);
  color: var(--accent); font-weight: 800; font-size: 18px; letter-spacing: 0.04em; transform: rotate(-8deg);
}
.stamp:nth-child(2) { transform: rotate(6deg); border-style: solid; }
.stamp:nth-child(3) { transform: rotate(-3deg); border-color: var(--c2); color: var(--c2); }
.stamp-side { margin-left: auto; text-align: right; }
.notes { display: grid; gap: 10px; }
.note { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; }
.note b { font-weight: 700; }
.note span { color: var(--muted); font-size: 13px; display: block; }
.note .ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.lockviz { display: grid; place-items: center; gap: 14px; text-align: center; }
.lockviz .ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); }

/* Gallery: the app's screens side by side, the same size, each with its caption; a row to swipe on a phone. */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
.gallery figure { margin: 0; text-align: center; }
.gallery .phone { width: 100%; max-width: 250px; margin: 0 auto; }
.gallery figcaption { margin-top: 18px; font-size: 15px; color: var(--text-2); }
.gallery figcaption b { display: block; color: var(--text); font-size: 16px; margin-bottom: 2px; }
.gallery-note { text-align: center; margin: 22px 0 0; font-size: 13px; color: var(--muted); }

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.plan.lead { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), var(--shadow); }
.plan h3 { font-size: 20px; font-weight: 800; margin: 0; }
.plan .price { margin: 0; font-weight: 700; color: var(--accent); font-size: 14.5px; }
.plan ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.plan li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.on-sale { display: table; margin: 26px auto 0; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); text-align: center; }
.on-sale a { font-weight: 600; }

/* Closing band */
.cta { margin-top: 96px; }
.cta-in { text-align: center; padding: 56px 24px; border-radius: 32px; background: linear-gradient(160deg, var(--accent-soft), var(--card)); border: 1px solid var(--accent-line); }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 10px; }
.cta p { color: var(--text-2); margin: 0 auto 22px; max-width: 32em; }
.cta .hero-links { justify-content: center; }
.button.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line-2); }

@media (max-width: 1040px) {
  .float.f1 { left: -1%; } .float.f2 { right: -1%; } .float.f3 { right: 1%; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.wide { grid-column: span 2; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
}
@media (max-width: 760px) {
  .section { padding-top: 72px; }
  .hero { padding-top: 40px; }
  .stage { margin-top: 44px; flex-direction: column; align-items: center; }
  .stage .phone { width: 270px; }
  /* The numbers under the phone in a row that swipes, not over it. */
  .floats { order: 2; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; width: 100%; padding: 4px 16px 10px; margin-top: -40px; position: relative; z-index: 3; }
  .float { position: static; scroll-snap-align: center; flex: none; min-width: 200px; }
  .promises ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile.wide { grid-column: auto; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  /* The screens as a row to swipe. */
  .gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 16px; margin: 0 -20px; }
  .gallery figure { flex: none; width: 230px; scroll-snap-align: center; }
  .cta { margin-top: 72px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .gallery { margin: 0 -16px; padding: 4px 16px 16px; }
  .tile { padding: 20px; border-radius: 24px; }
  .big { font-size: 44px; }
  .promises ul { grid-template-columns: minmax(0, 1fr); }
}
