/* Fonts are served from this site, so visiting it contacts no one else */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-var.woff2") format("woff2"); }

/* UrbanMetrica — site styles */
:root {
  --blue-300: #6fd6f7;
  --blue-400: #14caf0;
  --blue-500: #0a99d8;
  --blue-600: #0a7cc4;
  --blue-700: #075f9a;
  --orange: #f7931e;
  --orange-deep: #e5700a;
  --green: #1fae6a;
  /* text-safe versions of the brand colours (at least 4.5:1) */
  --link: #096cab;
  --green-text: #0e7a48;
  --new-pill: #b85400;

  --bg: #f6f9fc;
  --bg-alt: #eef4fa;
  --surface: #ffffff;
  --surface-2: #f2f6fb;
  --ink: #0b1a2b;
  --ink-2: #33475b;
  --muted: #586c80;
  --line: #dde6ef;
  --line-strong: #c6d4e2;
  --shadow-sm: 0 1px 2px rgba(11, 26, 43, .06), 0 2px 8px rgba(11, 26, 43, .04);
  --shadow-md: 0 8px 24px rgba(11, 26, 43, .08), 0 2px 6px rgba(11, 26, 43, .05);
  --shadow-lg: 0 30px 60px -20px rgba(7, 60, 110, .28), 0 12px 24px -12px rgba(11, 26, 43, .18);
  --drop: drop-shadow(0 22px 26px rgba(7, 60, 110, .22)) drop-shadow(0 6px 8px rgba(11, 26, 43, .12));
  --grad: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-600) 100%);
  /* behind white text: at least 4.5:1 at both ends */
  --grad-btn: linear-gradient(135deg, #0877bb 0%, #075a95 100%);
  /* large coloured headings: at least 3:1 at both ends */
  --grad-text: linear-gradient(135deg, #088fcb 0%, #075f9a 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", var(--font);
  color-scheme: light;
}

/* Light is the default for everyone; dark only when chosen with the toggle */
:root[data-theme="dark"] {
  --bg: #07121e;
  --bg-alt: #0b1928;
  --surface: #0f2133;
  --surface-2: #132a40;
  --ink: #eaf3fb;
  --ink-2: #c3d3e3;
  --link: #4fb9f2;
  --green-text: #34c987;
  --grad-text: linear-gradient(135deg, #14caf0 0%, #3aa5ea 100%);
  --muted: #8ea5bb;
  --line: #1c344c;
  --line-strong: #27445f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .6);
  --drop: drop-shadow(0 22px 28px rgba(0, 0, 0, .55)) drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
.only-dark, :root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1, h2, h3 { text-wrap: balance; }
.section-head p, .hero .lede, .page-hero p, .cta p, .card p, .survey-list p { text-wrap: pretty; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; position: relative; }
.section.alt { background: var(--bg-alt); }
/* panels and closing banners sit on the page background, so they share one gap instead of adding two together */
.section.band { padding-bottom: 48px; }
.section.closing { padding-top: 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--link); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--orange); border-radius: 2px; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 4px 12px rgba(10, 124, 196, .3); }
.brand span b { color: var(--blue-500); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--link); background: color-mix(in srgb, var(--blue-400) 12%, transparent); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px;
  background: transparent; border: 1px solid var(--line); color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn, .menu-cta { display: none; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 24px -8px rgba(10, 124, 196, .6); }
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(10, 124, 196, .7); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
/* before launch: a label, not a link */
/* before launch: a plain label, not Apple's badge */
.soon-label { display: inline-flex; align-items: center; gap: 8px; padding: 12px 6px 12px 0; color: var(--ink); font-weight: 600; }
.soon-label svg { width: 20px; height: 20px; color: var(--link); }
.cta .soon-label { color: #fff; }
.cta .soon-label svg { color: #fff; }
/* after launch: Apple's own badge file, unchanged */
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 48px; width: auto; }
.footer-legal { flex-basis: 100%; font-size: .8rem; }
.hero-cta .explore { padding-inline: 10px; background: none; border-color: transparent; color: var(--link); }
.hero-cta .explore:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-soon { background: var(--surface-2); color: var(--muted); border-color: var(--line); cursor: default; }
.btn-soon:hover { transform: none; }
.cta .btn-primary { background: #fff; color: #075f9a; box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 84px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 85% 20%, color-mix(in srgb, var(--blue-400) 22%, transparent), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, color-mix(in srgb, var(--orange) 14%, transparent), transparent 70%);
}
.hero-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-bg .street { stroke: var(--line-strong); }
.hero-bg .route { stroke: var(--blue-400); stroke-dasharray: 2 14; stroke-linecap: round; animation: walk 40s linear infinite; }
@keyframes walk { to { stroke-dashoffset: -800; } }
.hero-bg .walker-dot { fill: var(--orange); stroke: #fff; stroke-width: 3; }
.hero-bg .walker-halo { fill: var(--orange); opacity: .22; animation: halo 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { from { transform: scale(.5); opacity: .45; } to { transform: scale(1.6); opacity: 0; } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .88rem; font-weight: 500; color: var(--ink-2); margin-bottom: 26px;
}
.pill b { background: var(--grad-btn); color: #fff; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pills .pill { margin-bottom: 0; }
.pill-link { color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.pill-link:hover { border-color: var(--blue-500); transform: translateY(-1px); }
.pill-link b { background: var(--new-pill); }
.pill-link svg { width: 15px; height: 15px; margin-left: -3px; color: var(--blue-500); }
#iphone-duo { scroll-margin-top: 10px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { font-size: 1.22rem; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--ink-2); font-weight: 500; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--green); }
.footer-grid p.footer-credit { margin-top: 10px; font-size: .9rem; }
.footer-credit a { color: var(--ink-2); font-weight: 600; }
.footer-credit a:hover { color: var(--link); }
#developer { scroll-margin-top: 90px; }

.device-stage { position: relative; height: 610px; }
/* plain app screens (no drawn device frame): CSS rounds the corners like the screen itself and lifts them with a shadow */
.phone {
  position: absolute; width: 270px; aspect-ratio: 1320 / 2868;
  isolation: isolate;
}
/* Safari leaves pale strips when filters animate, so moving phones get a plain box-shadow behind them instead */
.phone img, .layer img, .slide img {
  border-radius: 13.5% / 6.2%;
  box-shadow: 0 0 0 1px rgba(11, 26, 43, .1), var(--shadow-lg);
}
:root[data-theme="dark"] .phone img, :root[data-theme="dark"] .layer img, :root[data-theme="dark"] .slide img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), var(--shadow-lg); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
/* --hp (0 → 1) is set from scroll position in main.js, so the phones fan out slightly as the hero scrolls away */
.device-stage .phone.p1 { left: 50%; top: 0; transform: translateX(-50%) translateY(calc(var(--hp, 0) * -40px)); z-index: 3; }
/* one screen leads; the other two lean out behind it and fan further as the hero scrolls away (--hp, set in main.js) */
.device-stage .phone.p2 { left: 0; top: 56px; transform: translate(calc(var(--hp, 0) * -26px), calc(var(--hp, 0) * 24px)) rotate(calc(-7deg - var(--hp, 0) * 6deg)) scale(.84); z-index: 2; }
.device-stage .phone.p3 { right: 0; top: 56px; transform: translate(calc(var(--hp, 0) * 26px), calc(var(--hp, 0) * 24px)) rotate(calc(7deg + var(--hp, 0) * 6deg)) scale(.84); z-index: 2; }
/* on load the screens rise into place, the front one last */
.js .device-stage .phone img { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.js .device-stage .phone.p2 img { animation-delay: .1s; }
.js .device-stage .phone.p3 img { animation-delay: .2s; }
.js .device-stage .phone.p1 img { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
/* the fact cards float gently, out of step with each other */
.hero-facts li { animation: bob 6s ease-in-out infinite; }
.hero-facts li:nth-child(2) { animation-delay: -2s; }
.hero-facts li:nth-child(3) { animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-7px); } }
.hero-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-facts li {
  display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 16px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .74rem; line-height: 1.3; color: var(--muted);
}
.hero-facts strong { display: block; white-space: nowrap; font-family: var(--display); font-size: .82rem; color: var(--ink); line-height: 1.2; }
.hero-facts .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--grad-btn); flex: none; }
.hero-facts .ic.orange { background: linear-gradient(135deg, #f7931e, var(--orange-deep)); }
.hero-facts .ic.green { background: linear-gradient(135deg, #1fae6a, #12925a); }
.hero-facts .ic svg { width: 18px; height: 18px; }

/* ---------- Audience strip ---------- */
.audience { border-block: 1px solid var(--line); background: var(--surface); padding: 26px 0; }
.audience .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 34px; }
.audience p { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.audience ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; list-style: none; margin: 0; padding: 0; }
.audience li { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; color: var(--ink); }
.audience li svg { width: 20px; height: 20px; color: var(--blue-500); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(6, 1fr); }
.grid-5 > * { grid-column: span 2; }
.grid-5 > :nth-child(4) { grid-column: 2 / span 2; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--blue-400) 14%, transparent); color: var(--link); margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.orange { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange-deep); }
.card-icon.green { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
:root[data-theme="dark"] .card-icon { color: var(--blue-300); }

/* ---------- Survey layers ---------- */
.survey-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.layer-stage {
  position: relative; padding: 36px 20px 28px; border-radius: 32px; border: 1px solid var(--line);
  background:
    radial-gradient(60% 50% at 50% 40%, color-mix(in srgb, var(--blue-400) 16%, transparent), transparent 70%),
    linear-gradient(160deg, var(--surface), var(--surface-2));
  overflow: hidden;
}
.layer-stack { position: relative; height: 560px; }
.layer { position: absolute; left: 50%; top: 0; width: 240px; margin: 0 0 0 -120px; transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .7s; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.layer .frame { position: relative; isolation: isolate; }
.layer img { width: 100%; }
.survey-split.reverse { grid-template-columns: .95fr 1.05fr; }
.survey-split.reverse .layer-stage { order: 2; }
.layer.pos-0 { transform: translate(0, 0) rotate(0); z-index: 3; }
.layer.pos-1 { transform: translate(-128px, 34px) rotate(-9deg) scale(.86); z-index: 2; }
.layer.pos-2 { transform: translate(128px, 34px) rotate(9deg) scale(.86); z-index: 2; }
/* layers beyond the two neighbours wait hidden behind the front phone */
.layer.pos-3, .layer.pos-4 { transform: translate(0, 46px) scale(.72); z-index: 1; opacity: 0; }
/* one upright screen at a time, cross-fading */
.layer-stage.solo .layer { transition: opacity .5s; }
.layer-stage.solo .layer.pos-1, .layer-stage.solo .layer.pos-2, .layer-stage.solo .layer.pos-3, .layer-stage.solo .layer.pos-4 { transform: none; opacity: 0; z-index: 1; }
.pause-btn {
  position: absolute; right: 14px; top: 14px; z-index: 6; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.pause-btn[hidden], .pause-btn .play, .pause-btn.paused .pause { display: none; }
.pause-btn.paused .play { display: block; }
.pause-btn:hover { color: var(--link); border-color: var(--blue-400); }
.pause-btn svg { width: 17px; height: 17px; fill: currentColor; }
.layer-tabs { position: relative; z-index: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.layer-tabs button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font: 600 .85rem var(--font); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: background .2s, color .2s, border-color .2s;
}
.layer-tabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--blue-400); background: color-mix(in srgb, var(--blue-400) 12%, var(--surface)); }
.layer-tabs .dot { width: 10px; height: 10px; border-radius: 50%; }
.layer-tabs .dot.light { background: linear-gradient(90deg, #4a2c0a, #f5c400); }
.layer-tabs .dot.noise { background: linear-gradient(90deg, #f2b705, #e2241b); }
.layer-tabs .dot.flow { background: #1fae4f; }
.layer-tabs .dot.footpath { background: linear-gradient(90deg, #e2241b, #f2b705, #1fae4f); }
.layer-tabs .dot.features { background: linear-gradient(90deg, #8e8e93, #e2241b); }
.survey-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.survey-list li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 18px 20px; border-radius: 20px; border: 1px solid transparent; transition: background .25s, border-color .25s; }
.survey-list li[data-show] { cursor: pointer; }
.survey-list li:hover, .survey-list li.active { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.survey-list .card-icon { margin: 0; }
.survey-list h3 { font-size: 1.12rem; margin-bottom: 4px; }
.survey-list p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Device slider ---------- */
.carousel {
  position: relative; max-width: 940px; margin: 0 auto; padding: 40px 20px 30px; border-radius: 32px; border: 1px solid var(--line);
  background:
    radial-gradient(60% 50% at 50% 40%, color-mix(in srgb, var(--blue-400) 14%, transparent), transparent 70%),
    linear-gradient(160deg, var(--surface), var(--surface-2));
  overflow: hidden; touch-action: pan-y; user-select: none;
}
.carousel[hidden] { display: none; }
.carousel-stage { position: relative; height: 580px; }
.slide {
  position: absolute; left: 50%; top: 0; width: 260px; margin: 0 0 0 -130px; cursor: pointer;
  transition: transform .75s cubic-bezier(.2, .8, .2, 1), opacity .75s; isolation: isolate; -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.slide img { width: 100%; pointer-events: none; }
.slide.pos-0 { transform: none; z-index: 3; cursor: default; }
/* neighbours tilt out behind the front screen; the rest wait hidden behind it */
.slide.pos-1 { transform: translate(-64%, 34px) rotate(-9deg) scale(.86); z-index: 2; }
.slide.pos-2 { transform: translate(64%, 34px) rotate(9deg) scale(.86); z-index: 2; }
.slide.pos-3, .slide.pos-4 { transform: translate(0, 50px) scale(.7); z-index: 1; opacity: 0; pointer-events: none; }
.carousel.tablets .carousel-stage { height: 580px; }
.carousel.tablets .slide { width: 380px; margin-left: -190px; }
.carousel.tablets .slide img { border-radius: 3.2% / 2.2%; }
.carousel.tablets .slide.pos-1 { transform: translate(-58%, 30px) rotate(-7deg) scale(.84); }
.carousel.tablets .slide.pos-2 { transform: translate(58%, 30px) rotate(7deg) scale(.84); }
.carousel-ui { position: relative; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.carousel-caption { margin: 0; min-width: 0; flex: 0 1 460px; min-height: 3.4em; display: grid; grid-template-columns: minmax(0, 1fr); }
/* every caption shares one cell (see main.js), so the box is always as tall as the longest one */
.carousel-caption > .caption-now, .carousel-caption > .caption-size { grid-area: 1 / 1; }
.carousel-caption > .caption-size { visibility: hidden; }
.carousel-caption strong { display: block; font-family: var(--display); color: var(--ink); font-size: 1.15rem; margin-bottom: 2px; }
.carousel-caption span { color: var(--muted); font-size: .96rem; }
.carousel-btn {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: background .2s, color .2s, border-color .2s;
}
.carousel-btn:hover { background: color-mix(in srgb, var(--blue-400) 12%, var(--surface)); color: var(--link); border-color: var(--blue-400); }
.carousel-btn svg { width: 20px; height: 20px; transform: rotate(90deg); }
.carousel-btn.next svg { transform: rotate(-90deg); }
.carousel-dots { display: flex; justify-content: center; margin-top: 8px; }
/* 24px to tap, 8px to look at */
.carousel-dots button { min-width: 24px; height: 24px; padding: 0 8px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carousel-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--line-strong); transition: width .3s, background .3s; }
.carousel-dots button[aria-current="true"]::before { width: 26px; background: var(--grad-btn); }

/* ---------- App video ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr minmax(0, 360px); gap: 64px; align-items: center; max-width: 1000px; }
.demo-copy h2 { margin-bottom: 14px; }
.demo-copy > p { color: var(--muted); font-size: 1.08rem; margin-bottom: 26px; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: ch; }
.chapters button {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer; padding: 12px 16px 12px 52px; border-radius: 16px;
  font: 400 .93rem/1.4 var(--font); color: var(--muted); background: none; border: 1px solid transparent; transition: background .25s, border-color .25s;
}
.chapters button b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.chapters li { counter-increment: ch; }
.chapters button::before {
  content: counter(ch); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 700 .8rem var(--font); color: var(--link); background: color-mix(in srgb, var(--blue-400) 14%, transparent);
}
/* a thin bar fills as each step plays */
.chapters button::after { content: ""; position: absolute; left: 52px; right: 16px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--grad-btn); transform: scaleX(var(--p, 0)); transform-origin: left; opacity: 0; }
.chapters button:hover { background: var(--surface-2); }
.chapters button[aria-current="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.chapters button[aria-current="true"]::before { color: #fff; background: var(--grad-btn); }
.chapters button[aria-current="true"]::after { opacity: 1; }
/* the phone screen always fits the window height, and stays in view while the steps beside it scroll */
.demo-stage { position: sticky; top: 92px; align-self: start; width: min(100%, calc((100vh - 130px) * 660 / 1434)); justify-self: center; }
.demo-screen { display: block; width: 100%; height: auto; aspect-ratio: 660 / 1434; border-radius: 13.5% / 6.2%; background: #eef2f6; box-shadow: 0 0 0 1px rgba(11, 26, 43, .1), var(--shadow-lg); }
:root[data-theme="dark"] .demo-screen { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), var(--shadow-lg); }
.demo-stage .pause-btn { right: -54px; top: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 16%; right: 16%; height: 2px;
  background-image: linear-gradient(90deg, var(--blue-400) 50%, transparent 0);
  background-size: 14px 2px; opacity: .7;
}
.step { text-align: center; padding: 0 12px; position: relative; }
.step-num {
  width: 68px; height: 68px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--blue-400);
  color: var(--link); font-family: var(--display); font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 0 0 8px var(--bg-alt), var(--shadow-md); position: relative;
}
.step:nth-child(2) .step-num { border-color: var(--orange); color: var(--orange-deep); }
.step:nth-child(3) .step-num { border-color: var(--green); color: var(--green-text); }
.step p { color: var(--muted); }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px dashed var(--line); }
.feature.reverse .feature-media { order: 2; }
.feature-media {
  position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 22px; padding: 44px 20px;
  border-radius: 32px; background: linear-gradient(160deg, color-mix(in srgb, var(--blue-400) 16%, var(--surface)), var(--surface-2));
  border: 1px solid var(--line); overflow: hidden;
}
.feature-media.warm { background: linear-gradient(160deg, color-mix(in srgb, var(--orange) 16%, var(--surface)), var(--surface-2)); }
.feature-media.cool { background: linear-gradient(160deg, color-mix(in srgb, var(--green) 14%, var(--surface)), var(--surface-2)); }
.feature-media .phone { position: relative; width: min(220px, 42%); }
.feature-media .phone:nth-child(2) { margin-top: 50px; }
.feature-media .phone.solo { width: min(250px, 60%); }
.feature-copy .tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--link); background: color-mix(in srgb, var(--blue-400) 12%, transparent); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; letter-spacing: .02em; }
.feature-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.feature-copy > p { font-size: 1.08rem; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--ink-2); font-size: .98rem; }
.checks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--grad) center / 12px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"), var(--grad);
  background-size: 12px, cover; background-position: center; background-repeat: no-repeat;
}
.checks li b { color: var(--ink); font-weight: 600; }

.feature { scroll-margin-top: 126px; }
.section-nav { position: sticky; top: 70px; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.section-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 7px 0; overflow-x: auto; scrollbar-width: none; }
.section-nav ul::-webkit-scrollbar { display: none; }
.section-nav li { flex: none; }
.section-nav li:first-child { margin-left: auto; }
.section-nav li:last-child { margin-right: auto; }
.section-nav a { display: block; padding: 7px 10px; border-radius: 999px; font-size: .87rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.section-nav a:hover { background: var(--surface-2); text-decoration: none; }
.section-nav a[aria-current="true"] { color: #fff; background: var(--grad-btn); }

/* ---------- Gallery ---------- */
.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 44px; }
.tabs button { border: 0; background: transparent; padding: 10px 24px; border-radius: 999px; font: 600 .95rem var(--font); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tabs button svg { width: 17px; height: 17px; }
.tabs button[aria-selected="true"] { background: var(--grad-btn); color: #fff; box-shadow: 0 6px 16px -6px rgba(10, 124, 196, .6); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: start; }
.gallery[hidden] { display: none; }
.shot { text-align: center; margin: 0; }
.shot .phone { position: relative; width: min(250px, 100%); margin: 0 auto 22px; }
.shot .tablet { margin: 0 auto 22px; }
.shot figcaption strong { display: block; font-family: var(--display); color: var(--ink); font-size: 1.1rem; margin-bottom: 4px; }
.shot figcaption span { color: var(--muted); font-size: .95rem; }

/* ---------- Privacy band ---------- */
.dark-band {
  background: radial-gradient(80% 120% at 100% 0%, #0d4c80 0%, transparent 60%), radial-gradient(60% 100% at 0% 100%, #3a2410 0%, transparent 60%), #06111d;
  color: #c3d3e3; border-radius: 36px; padding: 72px 64px; position: relative; overflow: hidden;
}
:root[data-theme="dark"] .dark-band { background-color: #0d2238; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band .eyebrow { color: var(--blue-300); }
.dark-band-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.privacy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.privacy-item { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); border-radius: 18px; padding: 22px; }
.privacy-item svg { width: 26px; height: 26px; color: var(--blue-300); margin-bottom: 12px; }
.privacy-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.privacy-item p { margin: 0; font-size: .92rem; color: #9fb4c8; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 34px 30px; box-shadow: var(--shadow-sm); }
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.plan .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad-btn); color: #fff; font-size: .75rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; letter-spacing: .04em; white-space: nowrap; }
.plan-name { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.15rem; margin-bottom: 4px; }
.plan-name svg { width: 22px; height: 22px; color: var(--blue-500); }
.plan-sub { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.price { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 3rem; letter-spacing: -.04em; line-height: 1; margin-bottom: 6px; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-name .save { margin-left: auto; padding: 5px 10px; border-radius: 999px; font: 700 .76rem var(--font); letter-spacing: 0; color: var(--green-text); background: color-mix(in srgb, var(--green) 14%, transparent); white-space: nowrap; }
.plan .note { font-size: .88rem; color: var(--green-text); font-weight: 600; min-height: 1.4em; margin-bottom: 18px; }
.plan > p { color: var(--muted); font-size: .96rem; flex: 1; }
.plan .btn { width: 100%; margin-top: 10px; }
.fine { font-size: .88rem; color: var(--muted); text-align: center; max-width: 760px; margin: 34px auto 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 36px; padding: 72px 48px; text-align: center; color: #e8f6ff;
  background: linear-gradient(135deg, #0770b0 0%, #0667a4 50%, #05497a 100%);
  box-shadow: var(--shadow-lg);
}
.cta::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 340px; height: 340px; opacity: .14;
  background: url("../img/logo.png") center / contain no-repeat; border-radius: 60px; transform: rotate(-12deg);
}
.cta h2 { color: #fff; }
.cta p { font-size: 1.15rem; max-width: 620px; margin: 0 auto 30px; color: #dff3ff; }
.cta p a { color: #fff; text-decoration: underline; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; position: relative; z-index: 1; }
.cta .btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.cta-credit { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .22); color: #dff3ff; font-size: .98rem; text-align: left; }
.cta-credit img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.cta-credit b { color: #fff; font-weight: 600; }
.cta-credit svg { width: 16px; height: 16px; flex: none; transition: transform .2s; }
.cta-credit:hover span { text-decoration: underline; text-underline-offset: 3px; }
.cta-credit:hover svg { transform: translateX(3px); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 50% 0%, color-mix(in srgb, var(--blue-400) 20%, transparent), transparent 70%);
}
.page-hero p { font-size: 1.2rem; color: var(--muted); max-width: 680px; margin: 0 auto; }

/* ---------- Info boxes ---------- */
.callout { display: flex; gap: 16px; align-items: flex-start; background: color-mix(in srgb, var(--orange) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--orange) 30%, var(--line)); border-radius: 18px; padding: 20px 24px; color: var(--ink-2); font-size: .97rem; }
.callout svg { width: 24px; height: 24px; color: var(--orange-deep); flex: none; margin-top: 2px; }
.callout p { margin: 0; }
.callout.blue { background: color-mix(in srgb, var(--blue-400) 9%, var(--surface)); border-color: color-mix(in srgb, var(--blue-400) 30%, var(--line)); }
.callout.blue svg { color: var(--link); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 26px; box-shadow: var(--shadow-sm); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { display: flex; align-items: center; gap: 14px; }
.faq summary .q svg { width: 22px; height: 22px; color: var(--blue-500); flex: none; }
.faq summary .chev { width: 20px; height: 20px; color: var(--muted); transition: transform .25s; flex: none; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details > div { padding: 0 0 22px 36px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact-card { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 30px 34px; box-shadow: var(--shadow-md); max-width: 820px; margin: 0 auto 50px; }
.contact-card .card-icon { margin: 0; width: 60px; height: 60px; border-radius: 18px; background: var(--grad); color: #fff; }
.contact-card h3 { margin-bottom: 4px; }
.contact-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- About: why it exists ---------- */
/* a light, left-aligned white panel with a warm accent, so it reads as a different voice from the centred page hero */
.story-panel {
  position: relative; overflow: hidden; border-radius: 32px; padding: 64px 64px 52px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.story-panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--orange), var(--orange-deep)); }
.story-head { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px 56px; align-items: end; margin-bottom: 48px; }
.story-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.story-head h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.story-head h2 span { color: var(--orange-deep); }
:root[data-theme="dark"] .story-head h2 span { color: var(--orange); }
.story-lead { margin: 0; font-size: 1.12rem; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.story-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.story-step { padding: 30px 30px 6px; }
.story-step:first-child { padding-left: 0; }
.story-step + .story-step { border-left: 1px solid var(--line); }
.story-num { display: inline-block; font: 700 .78rem var(--font); letter-spacing: .12em; padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; color: var(--link); background: color-mix(in srgb, var(--blue-400) 12%, transparent); }
.story-step:nth-child(1) .story-num { color: var(--orange-deep); background: color-mix(in srgb, var(--orange) 14%, transparent); }
.story-step:nth-child(3) .story-num { color: var(--green-text); background: color-mix(in srgb, var(--green) 14%, transparent); }
.story-step h3 { margin-bottom: 8px; }
.story-step p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.7; text-wrap: pretty; }
.story-close { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 40px; padding: 26px 30px; border-radius: 20px; background: var(--surface-2); }
.story-close p { margin: 0; max-width: 640px; font: 600 1.1rem/1.6 var(--display); color: var(--ink); letter-spacing: -.01em; text-wrap: pretty; }
.story-sign { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--muted); font-size: .86rem; }
.story-sign:hover { text-decoration: none; }
.story-sign img { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 30%, transparent); }
.story-sign b { display: block; font-family: var(--display); color: var(--ink); font-size: 1rem; }
#why { scroll-margin-top: 80px; }

/* ---------- Developer ---------- */
.dev { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px; box-shadow: var(--shadow-md); max-width: 960px; margin: 0 auto; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--display); font-weight: 800; font-size: 2rem; box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue-400) 18%, transparent); }
.dev h3 { font-size: 1.5rem; margin-bottom: 2px; }
.dev .role { color: var(--link); font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.dev p { color: var(--muted); margin-bottom: 8px; }
.dev-actions { display: grid; gap: 10px; min-width: 180px; }
.dev-actions .btn { width: 100%; }

/* ---------- Legal ---------- */
.legal-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 100px; font-size: .92rem; }
.toc h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 10px; color: var(--muted); border-radius: 8px; margin-left: -16px; border-left: 2px solid transparent; }
.toc a:hover, .toc a.active { color: var(--link); text-decoration: none; border-left-color: var(--blue-500); background: color-mix(in srgb, var(--blue-400) 8%, transparent); }
.legal { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 50px 56px; box-shadow: var(--shadow-sm); }
.legal h2 { font-size: 1.6rem; margin-top: 48px; padding-top: 8px; scroll-margin-top: 96px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin: 26px 0 6px; }
.legal p, .legal li { color: var(--ink-2); font-size: 1rem; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .glance { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.legal .glance li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 18px; background: var(--surface-2); border-radius: 14px; margin: 0; }
.legal .glance svg { width: 22px; height: 22px; color: var(--green); }
.meta-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-top: 20px; }
.meta-chip svg { width: 16px; height: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 64px 0 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid p { color: var(--muted); font-size: .95rem; max-width: 320px; margin-top: 14px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--ink-2); font-size: .96rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

/* ---------- iPhone Duo ---------- */
.duo { overflow: hidden; padding-bottom: 0; }
.duo ~ .band { padding-top: 56px; }
.duo .section-head { margin-bottom: 20px; }
/* The cover screen widens into the inner screen: only the app's screens move, no device is drawn */
.duo-morph { position: relative; max-width: min(860px, calc((100vh - 330px) * 1.4)); min-width: min(100%, 320px); margin: 0 auto; aspect-ratio: 1902 / 1356; }
.duo-screen {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 49%; transform: translateX(-50%);
  border-radius: 26px; overflow: hidden; background: #e9eef2;
  box-shadow: 0 0 0 1px rgba(11, 26, 43, .1), var(--shadow-lg);
  transition: width 1.4s cubic-bezier(.65, 0, .35, 1), border-radius 1.4s;
}
:root[data-theme="dark"] .duo-screen { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), var(--shadow-lg); }
.duo-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1s ease .25s; }
.duo-screen .open { opacity: 0; }
.duo-morph.is-open .duo-screen { width: 100%; border-radius: 22px; }
.duo-morph.is-open .duo-screen .open { opacity: 1; }
.duo-morph.is-open .duo-screen .shut { opacity: 0; transition-delay: 0s; }
.duo-morph .pause-btn { right: 0; top: 0; }
.duo-morph.is-open .pause-btn { right: 12px; top: 12px; }
.duo-switch { display: flex; justify-content: center; gap: 8px; margin: 26px 0 0; }
.duo-switch button {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px; min-width: 150px; padding: 9px 18px; border-radius: 16px; cursor: pointer;
  font: 500 .86rem var(--font); color: var(--muted); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .3s, background .3s;
}
.duo-switch button b { font-family: var(--display); font-size: 1rem; color: var(--ink); }
.duo-switch button[aria-pressed="true"] { border-color: var(--blue-400); background: color-mix(in srgb, var(--blue-400) 12%, var(--surface)); }
.duo-note { margin: 18px auto 0; padding-bottom: 40px; text-align: center; font-size: .86rem; color: var(--muted); }

/* ---------- Phone action bar ---------- */
.mobile-bar { display: none; }

/* ---------- Reveal ---------- */
/* content only starts hidden when the script that reveals it is running */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
/* items in a row arrive one after another */
.js :is(.steps, .grid, .plans, .privacy-list, .faq, .survey-list) > .reveal:nth-child(2) { transition-delay: .08s; }
.js :is(.steps, .grid, .plans, .privacy-list, .faq, .survey-list) > .reveal:nth-child(3) { transition-delay: .16s; }
.js :is(.steps, .grid, .plans, .privacy-list, .faq, .survey-list) > .reveal:nth-child(4) { transition-delay: .24s; }
.js :is(.steps, .grid, .plans, .privacy-list, .faq, .survey-list) > .reveal:nth-child(5) { transition-delay: .32s; }
.js :is(.steps, .grid, .plans, .privacy-list, .faq, .survey-list) > .reveal:nth-child(n+6) { transition-delay: .4s; }
/* the dashed line between the three steps draws itself in */
.js .steps::before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.65, 0, .35, 1) .3s; }
.js .steps.drawn::before { transform: none; }
/* feature screens lift a little under the pointer */
.feature-media .phone { transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.feature-media:hover .phone { transform: translateY(-8px); }
.feature-media:hover .phone:nth-child(2) { transform: translateY(-14px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .mobile-bar { transition: none; }
  .hero-bg .route, .hero-bg .walker-halo { animation: none; }
  .hero-bg .walker { display: none; }
  .layer, .device-stage .phone, .slide, .feature-media .phone { transition: none; }
  .js .device-stage .phone img, .hero-facts li { animation: none; }
  .js .reveal { transition-delay: 0s !important; }
  .js .steps::before { transform: none; transition: none; }
  .duo-screen, .duo-screen img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .pills { justify-content: center; }
  .hero .lede { margin-inline: auto; }
  .hero-cta, .trust { justify-content: center; }
  .device-stage { max-width: 620px; margin: 0 auto; width: 100%; }
  .hero-facts { max-width: 620px; margin-inline: auto; }
  .feature { grid-template-columns: 1fr; gap: 40px; }
  /* heading, then the video, then the steps */
  .story-steps { grid-template-columns: 1fr; }
  .story-step, .story-step:first-child { padding: 24px 0 6px; }
  .story-step + .story-step { border-left: 0; border-top: 1px solid var(--line); }
  .story-head { grid-template-columns: 1fr; }
  .story-close { flex-direction: column; align-items: flex-start; }
  .demo-grid { grid-template-columns: 1fr; gap: 0; }
  .demo-copy { display: contents; }
  .demo-copy > .eyebrow, .demo-copy > h2, .demo-copy > p { text-align: center; justify-self: center; }
  .demo-copy > p { max-width: 560px; }
  .demo-stage { order: 1; position: relative; top: auto; max-width: 320px; margin: 6px auto 28px; width: min(100%, calc((100vh - 120px) * 660 / 1434)); }
  .chapters { order: 2; max-width: 520px; width: 100%; justify-self: center; }
  .demo-stage .pause-btn { right: 10px; top: 10px; }
  .feature.reverse .feature-media { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 30px; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
  .grid-5 > *, .grid-5 > :nth-child(4) { grid-column: auto; }
  .plan.featured { transform: none; }
  .dark-band-grid { grid-template-columns: 1fr; }
  .survey-split { grid-template-columns: 1fr; gap: 36px; }
  .survey-split.reverse { grid-template-columns: 1fr; }
  .survey-split.reverse .layer-stage { order: 0; }
  .layer-stage { max-width: 620px; width: 100%; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 12px; }
}
/* no room in the header on phones, so "Get the app" moves into the menu */
@media (max-width: 520px) {
  .nav-actions .btn { display: none; }
  .menu-cta { display: block; margin-top: 10px; }
  .nav-links .menu-cta a { display: flex; padding: 13px 24px; border-radius: 999px; color: #fff; font-size: 1rem; font-weight: 600; }
  .nav-links .menu-cta a:hover { background: var(--grad); color: #fff; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .section.band { padding-bottom: 36px; }
  .duo ~ .band { padding-top: 40px; }
  .hero { padding: 26px 0 56px; }
  .hero-grid { gap: 30px; }
  .hero .pill-ios, .hero-cta .explore { display: none; }
  .pills { margin-bottom: 16px; }
  .hero h1 { margin-bottom: 14px; }
  .hero .lede { font-size: 1.06rem; margin-bottom: 22px; }
  .hero-cta { gap: 10px; margin-bottom: 18px; }
  .hero-cta .btn { padding: 13px 20px; }
  .trust { gap: 4px 14px; font-size: .84rem; }
  .trust svg { width: 15px; height: 15px; }
  .device-stage { height: 470px; }
  .device-stage .phone { width: 212px; }
  .device-stage .phone.p2 { left: -12%; top: 44px; }
  .device-stage .phone.p3 { right: -12%; top: 44px; }
  .duo-screen { border-radius: 16px; }
  .duo-switch button { min-width: 0; flex: 1; }
  .demo-stage .pause-btn { right: 10px; top: 10px; }
  .hero-facts { gap: 8px; margin-top: 10px; }
  .hero-facts li { flex-direction: column; gap: 6px; text-align: center; padding: 10px 6px; font-size: .74rem; }
  .hero-facts strong { font-size: .82rem; }
  .grid-3, .grid-2, .plans, .grid-5 { grid-template-columns: 1fr; }
  .layer-stage { padding: 26px 8px 20px; border-radius: 24px; }
  .carousel { padding: 28px 8px 22px; border-radius: 24px; }
  .carousel-stage, .carousel.tablets .carousel-stage { height: 430px; }
  .slide { width: 196px; margin-left: -98px; }
  .slide.pos-1 { transform: translate(-62%, 26px) rotate(-8deg) scale(.84); }
  .slide.pos-2 { transform: translate(62%, 26px) rotate(8deg) scale(.84); }
  .carousel.tablets .slide { width: 270px; margin-left: -135px; }
  .carousel.tablets .carousel-stage { height: 390px; }
  .carousel-ui { gap: 10px; }
  .carousel-btn { width: 40px; height: 40px; }
  .layer-stack { height: 430px; }
  .layer { width: 186px; margin-left: -93px; }
  .layer.pos-1 { transform: translate(-82px, 28px) rotate(-8deg) scale(.84); }
  .layer.pos-2 { transform: translate(82px, 28px) rotate(8deg) scale(.84); }
  /* descriptions swipe sideways under the phones instead of adding a screen each */
  .survey-split { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .survey-split.reverse { grid-template-columns: minmax(0, 1fr); }
  .survey-list { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 14px; scroll-padding: 16px; scrollbar-width: none; }
  .survey-list::-webkit-scrollbar { display: none; }
  .survey-list li { flex: 0 0 84%; scroll-snap-align: start; background: var(--surface); border-color: var(--line); grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; }
  .survey-list li.active { border-color: var(--blue-500); }
  .js .survey-list .reveal { opacity: 1; transform: none; }
  .survey-list .card-icon { width: 44px; height: 44px; border-radius: 13px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .gallery { grid-template-columns: 1fr; gap: 50px; }
  .tabs button { padding: 9px 16px; }
  .dark-band, .cta { padding: 52px 22px; border-radius: 26px; }
  .story-panel { padding: 40px 22px 26px 28px; border-radius: 26px; }
  .privacy-list { grid-template-columns: 1fr; }
  .feature-media { padding: 30px 12px; gap: 12px; border-radius: 24px; }
  .contact-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .dev { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 30px 22px; }
  .dev-actions { width: 100%; min-width: 0; }
  .legal { padding: 30px 22px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .faq details { padding: 0 18px; }
  .faq details > div { padding-left: 0; }
  .pause-btn { right: 10px; top: 10px; }
  .section-nav li:first-child { margin-left: 0; }
  .mobile-bar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    visibility: hidden; opacity: 0; transform: translateY(24px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .mobile-bar.show { visibility: visible; opacity: 1; transform: none; }
  .mobile-bar img { border-radius: 10px; flex: none; }
  .mobile-bar span { flex: 1; min-width: 0; font-size: .78rem; line-height: 1.25; color: var(--muted); }
  .mobile-bar b { display: block; font-family: var(--display); font-size: .95rem; color: var(--ink); }
}
