/* DisplayWisp site styles.
   Concept: a light in a dark room. Dark chapters hold the glow, paper chapters hold the words.
   Order: tokens, base, shell (header, footer), components, documents, landing, download, motion. */

/* ---------------------------------------------------------------- tokens */

:root {
  /* surfaces */
  --ink-900: #0b1f2c;
  --ink: #143649;
  --sea: #23627a;
  --paper: #f5fafb;
  --mist: #dceff1;
  /* the only accent and the only glow */
  --mint: #a7f5e7;

  /* text and hairlines, per surface (see .dark and .light) */
  --on-dark: #f3f8f9;
  --on-dark-2: rgba(243, 248, 249, 0.68);
  --hair-dark: rgba(255, 255, 255, 0.08);
  --text: #143649;
  --text-2: #426271;
  --hair: #b6ced4;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --header-h: 56px;
  --gutter: 24px;
  --radius: 20px;
  --measure: 980px;
  --media: 1260px;
  --section: 112px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);


  color-scheme: light;
}

@media (max-width: 734px) {
  :root { --section: 72px; }
}

@media (max-width: 390px) {
  :root { --section: 56px; --gutter: 16px; }
}

/* surface scopes: set the text, line and focus colours that components read */
.light {
  --fg: var(--text);
  --fg-2: var(--text-2);
  --line: var(--hair);
  --link: var(--sea);
  --focus: var(--sea);
  --focus-w: 3px;
  --cap: var(--sea);
  color: var(--fg);
}

.dark {
  --fg: var(--on-dark);
  --fg-2: var(--on-dark-2);
  --line: var(--hair-dark);
  --link: var(--mint);
  --focus: var(--mint);
  --focus-w: 2px;
  --cap: rgba(167, 245, 231, 0.85);
  color: var(--fg);
}

/* ---------------------------------------------------------------- base */

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

html {
  background: var(--mist);
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-900); /* sits behind the translucent header; every section paints its own surface */
  color: var(--fg);
  font: 400 17px/1.47 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

h1, h2, h3 {
  font-weight: 600;
  text-wrap: balance;
}

h2 {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.024em;
}

h3 {
  font-size: 24px;
  line-height: 1.17;
}

@media (max-width: 734px) { h2 { font-size: 32px; } }

p, li, dd { text-wrap: pretty; }

main { scroll-margin-top: var(--header-h); }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 120ms var(--ease), text-decoration-color 120ms var(--ease);
}

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--mint); color: var(--ink-900); }

.wrap, .wrap-wide {
  width: min(100% - 2 * var(--gutter), var(--measure));
  margin-inline: auto;
}

.wrap-wide { width: min(100% - 2 * var(--gutter), var(--media)); }

.section { padding-block: var(--section); }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* mono captions: eyebrows and facts */
.cap {
  margin: 0;
  font: 400 13px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cap);
}

.cap--plain { text-transform: none; letter-spacing: 0.02em; }

/* ---------------------------------------------------------------- shell */

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--ink-900);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus { transform: none; }
.skip:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 2px; box-shadow: 0 0 0 5px var(--mint); }

/* the header: a slim sheet of ink glass that gains a hairline once the page has scrolled */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--ink-900);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(11, 31, 44, 0.82); /* enough ink over the light chapter to keep nav text well above 4.5:1 */
    -webkit-backdrop-filter: saturate(1.8) blur(20px);
    backdrop-filter: saturate(1.8) blur(20px);
  }
}

/* the hairline: drawn by a scroll timeline where supported, otherwise by wisp.js (.is-scrolled) */
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(167, 245, 231, 0.35), var(--hair-dark) 30%, var(--hair-dark) 70%, rgba(167, 245, 231, 0.35));
  opacity: 0;
  transition: opacity 240ms var(--ease);
  pointer-events: none;
}

.site-header.is-scrolled::after { opacity: 1; }

@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  .site-header::after { animation: hair-in 1ms linear both; animation-timeline: scroll(root block); animation-range: 0 80px; transition: none; }
}

@keyframes hair-in { from { opacity: 0; } to { opacity: 1; } }

.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--fg);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img { display: block; flex: none; width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 18px rgba(167, 245, 231, 0.18); }

.site-nav { display: flex; align-items: center; gap: 2px; }

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  color: rgba(243, 248, 249, 0.72);
  font-size: 14px;
  text-decoration: none;
  transition: color 120ms var(--ease);
}

.site-nav a:hover { color: var(--fg); }

.site-nav a[aria-current="page"] { color: var(--fg); }

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 9px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}

/* the header download pill: always present, its hit area padded out to 44px */
.site-nav .nav-cta {
  min-height: 34px;
  margin-left: 14px;
  padding-inline: 16px;
  border-radius: 980px;
  background: var(--mint);
  color: var(--ink-900);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(167, 245, 231, 0.2);
  transition: background-color 120ms var(--ease), box-shadow 240ms var(--ease);
}

.site-nav .nav-cta::before { content: ""; position: absolute; inset: -5px -2px; }
.site-nav .nav-cta[aria-current="page"] { color: var(--ink-900); }
.site-nav .nav-cta:hover { background: #c4f9ef; color: var(--ink-900); box-shadow: 0 0 0 4px rgba(167, 245, 231, 0.16), 0 4px 24px rgba(167, 245, 231, 0.3); }
.site-nav .nav-cta[aria-current="page"] { box-shadow: 0 0 0 3px rgba(167, 245, 231, 0.28); }
.site-nav .nav-cta[aria-current="page"]::after { display: none; }

/* phones: brand and Download only; the text links are in the footer */
@media (max-width: 600px) {
  .site-nav .nav-text { display: none; }
  .site-nav .nav-cta { margin-left: 0; }
}

@media (max-width: 400px) {
  .site-header__in { gap: 8px; }
  .brand { gap: 8px; font-size: 15px; }
}

/* the footer: a closing block in the same ink and glass, lit from below */
.site-footer {
  position: relative;
  overflow: clip;
  padding-block: clamp(56px, 7vw, 96px) 40px;
  border-top: 1px solid var(--hair-dark);
  background: var(--ink-900);
  color: var(--fg-2);
  font-size: 13px;
  line-height: 1.5;
}

.site-footer__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(50% 60% at 50% 110%, rgba(35, 98, 122, 0.45), transparent 70%), radial-gradient(30% 40% at 12% 0%, rgba(167, 245, 231, 0.08), transparent 70%);
  pointer-events: none;
}

.site-footer .wrap-wide { position: relative; z-index: 1; }

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hair-dark);
}

.site-footer__brand { font-size: 20px; }
.site-footer__brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-footer__tag { margin: 2px 0 0; font-size: 15px; color: var(--fg-2); }
.site-footer__cta { justify-content: flex-start; margin: 0; }

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px 48px;
  padding-block: 40px;
  border-bottom: 1px solid var(--hair-dark);
}

.site-footer__cols nav { display: flex; flex-direction: column; }

.site-footer__h {
  margin: 0 0 6px;
  font: 400 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cap);
}

.site-footer__cols a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
}

.site-footer__cols a:hover { color: var(--mint); text-decoration: underline; }
.site-footer__cols p { margin: 0; font-size: 14px; }
.site-footer__cols p + p { margin-top: 6px; }
.site-footer__cols div p a { display: inline; min-height: 0; font-size: 14px; color: var(--mint); text-decoration: underline; text-decoration-color: rgba(167, 245, 231, 0.4); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--fg-2);
}

.site-footer__bottom p { margin: 0; }
.site-footer__bottom p:first-child { color: var(--fg); }
.site-footer a { color: var(--link); }
.site-footer .pill { color: var(--ink-900); }
.site-footer .pill--quiet { color: var(--fg); }

@media (max-width: 734px) {
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .site-footer__cols > div { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- components */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 980px;
  background: var(--mint);
  color: var(--ink-900);
  font: 600 17px/1 var(--font);
  text-decoration: none;
  transition: background-color 120ms var(--ease), box-shadow 240ms var(--ease), transform 120ms var(--ease);
}

.pill:hover {
  background: #c4f9ef;
  box-shadow: 0 0 0 6px rgba(167, 245, 231, 0.16), 0 8px 44px rgba(167, 245, 231, 0.34);
  text-decoration: none;
}

.pill:active { transform: scale(0.98); }

.pill--quiet {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.pill--quiet:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }

.light .pill--quiet { box-shadow: inset 0 0 0 1px rgba(20, 54, 73, 0.35); }
.light .pill--quiet:hover { background: rgba(20, 54, 73, 0.06); box-shadow: inset 0 0 0 1px var(--ink); }

/* a status line, not a control: it must not look pressable */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
}

.soon::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

@media (max-width: 480px) {
  .soon { text-align: center; }
  .soon::before { display: none; }
}

/* ---------------------------------------------------------------- documents (support, privacy, terms) */

.doc-shell {
  container-type: inline-size; /* lets wide tables size themselves against the page, not the narrow text column */
  padding-block: 0 var(--section);
  background: linear-gradient(180deg, var(--mist) 0, var(--paper) 360px);
}

.doc {
  width: min(100% - 2 * var(--gutter), 62ch); /* about 70 characters a line */
  margin-inline: auto;
  font-size: 17px;
  line-height: 1.6;
}

.doc h1 {
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin-bottom: 20px;
}
.doc__head { margin-inline: calc(50% - 50cqw); padding: clamp(40px, 6vw, 64px) calc(50cqw - 50%) clamp(32px, 4vw, 48px); background: radial-gradient(55% 140% at 18% 0, rgba(35, 98, 122, 0.6), transparent 70%), linear-gradient(180deg, var(--ink-900), var(--ink)); }
.doc .doc__head h1 { margin: 0; color: var(--on-dark); }
.doc .doc__head .intro { margin-bottom: 14px; color: rgba(167, 245, 231, 0.85); } /* beats .doc .intro below */
.doc__head + * { margin-top: 40px !important; }

@media (max-width: 734px) { .doc h1 { font-size: 36px; } }

.doc .intro {
  margin-bottom: 14px;
  font: 400 13px/1.4 var(--mono);
  letter-spacing: 0.04em;
  color: var(--sea);
}

.doc h2 {
  margin-top: 56px;
  margin-bottom: 16px;
  font-size: 32px;
  line-height: 1.15;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.doc h3 { margin-top: 32px; margin-bottom: 8px; font-size: 21px; }

.doc p, .doc ul, .doc ol, .doc dl, .doc aside, .doc .table-wrap { margin-top: 16px; }

.doc h1 + p, .doc h2 + p, .doc h3 + p { margin-top: 0; }

.doc ul, .doc ol { padding-left: 1.4em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--sea); }
.doc strong { font-weight: 600; }

.doc code {
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--mist);
  font: 400 0.9em var(--mono);
}

.doc a { overflow-wrap: anywhere; }

.doc aside {
  padding: 16px 20px;
  border-left: 2px solid var(--mint);
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--mint) 16%, var(--paper));
}

.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.doc dt { font-weight: 600; }
.doc dd { color: var(--text-2); }

/* tables may run wider than the text column, centred on it */
.doc .table-wrap {
  width: min(880px, 100cqw - 2 * var(--gutter));
  margin-inline: calc(50% - min(440px, 50cqw - var(--gutter)));
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hair);
  border-radius: 12px;
  /* edge shadows appear only while there is more to scroll to */
  background:
    linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat local,
    linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(20, 54, 73, 0.22), rgba(20, 54, 73, 0)) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(20, 54, 73, 0.22), rgba(20, 54, 73, 0)) right center / 14px 100% no-repeat scroll,
    #fff;
}

.table-wrap:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }

.table-wrap table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }

.table-wrap th, .table-wrap td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}

.table-wrap thead th {
  background: var(--mist);
  font-weight: 600;
  white-space: nowrap;
}

.table-wrap tbody th { font-weight: 600; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }

@media (max-width: 734px) {
  .table-wrap th, .table-wrap td { padding: 12px; }
  .table-wrap tbody th { width: 46%; }
}

/* phones: each row becomes a label/value block, so nothing scrolls sideways */
@media (max-width: 640px) {
  .table-wrap { background: #fff; }
  .table-wrap table { min-width: 0; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-wrap tbody tr { padding: 16px; border-bottom: 1px solid var(--hair); }
  .table-wrap tbody tr:last-child { border-bottom: 0; }
  .table-wrap th, .table-wrap td { width: auto; padding: 0; border: 0; }
  .table-wrap tbody th { width: auto; margin-bottom: 10px; font-size: 16px; }
  .table-wrap td + td { margin-top: 10px; }

  .table-wrap td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font: 400 12px/1.4 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sea);
  }
}

/* ---------------------------------------------------------------- shared page parts */

.note {
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg-2);
}

.card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 40px -28px rgba(20, 54, 73, 0.35);
}

.card__icon { width: 32px; height: 32px; margin-bottom: 28px; color: var(--sea); }
.card__icon svg { display: block; width: 100%; height: 100%; }
.card h3 { margin-bottom: 12px; }
.card__text { margin-bottom: 28px; color: var(--fg-2); }

.card__fact {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
}

/* ---------------------------------------------------------------- landing: shared */

/* chapter figures: "01", "02"... in mono, the only eyebrow the landing page uses */
.fig {
  margin: 0 0 18px;
  font: 400 14px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--cap);
}

.lede {
  max-width: 34em;
  margin-top: 20px;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.45;
  color: var(--fg-2);
}

.route h2, .reach h2, .scrub h2, .setup h2, .pricing h2, .faq h2 {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 13em;
}

/* glass: the dark surfaces that float over a glow */
.glass {
  border: 1px solid var(--hair-dark);
  border-radius: var(--radius);
  background: rgba(20, 54, 73, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 80px -40px rgba(0, 0, 0, 0.7);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: rgba(20, 54, 73, 0.42); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px); }
}

/* fact chips under a chapter's media */
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.facts span { padding: 7px 14px; border: 1px solid var(--hair-dark); border-radius: 980px; font: 400 14px/1.3 var(--mono); letter-spacing: 0.04em; color: var(--fg-2); }

/* the header progress line: how far down the page you are */
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* fog: a short tonal handoff where a dark chapter meets the light one */
.fog { position: relative; height: clamp(56px, 8vw, 120px); margin-block: -1px; pointer-events: none; }
.fog--to-mist { background: linear-gradient(180deg, var(--ink-900) 0%, #17394b 40%, #7fa5b0 75%, var(--mist) 100%); }
.fog--from-mist { background: linear-gradient(0deg, var(--ink-900) 0%, #17394b 40%, #7fa5b0 75%, var(--mist) 100%); }

/* framed devices with real captures */
.device { position: relative; }
.device img { display: block; width: 100%; height: auto; }

.device--mac {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: clamp(10px, 1.2vw, 18px);
  background: #0e1317;
  padding: clamp(6px, 0.8vw, 12px);
  box-shadow: 0 0 0 1px rgba(167, 245, 231, 0.06), 0 60px 160px -40px rgba(167, 245, 231, 0.32), 0 60px 120px -50px rgba(0, 0, 0, 0.8);
}

/* the Mac capture is mostly empty below its list: show the populated top */
.device--mac img { aspect-ratio: 2880 / 1240; object-fit: cover; object-position: top; border-radius: clamp(5px, 0.6vw, 9px); }
/* phones: the frame keeps a 16:10 window and the capture is enlarged behind it so the list fills the frame */
@media (max-width: 734px) {
  .device--mac { aspect-ratio: 16 / 10; overflow: hidden; }
  .device--mac img { position: absolute; top: clamp(6px, 0.8vw, 12px); left: -39%; width: 178%; max-width: none; aspect-ratio: auto; object-fit: fill; object-position: 0 0; border-radius: 5px; }
}

.device--phone {
  width: 100%;
  padding: 7px;
  border-radius: 12%/5.5%;
  background: #050b10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 50px 120px -40px rgba(167, 245, 231, 0.34), 0 40px 80px -30px rgba(0, 0, 0, 0.75);
}

.device--phone img, .device__screen { border-radius: 10%/4.6%; overflow: hidden; }
.device__screen { position: relative; aspect-ratio: 1320 / 2868; background: #000; }

/* ---------------------------------------------------------------- landing: hero */

@property --bx1 { syntax: "<percentage>"; inherits: false; initial-value: 18%; }
@property --by1 { syntax: "<percentage>"; inherits: false; initial-value: 22%; }
@property --bx2 { syntax: "<percentage>"; inherits: false; initial-value: 82%; }
@property --by2 { syntax: "<percentage>"; inherits: false; initial-value: 42%; }
@property --bx3 { syntax: "<percentage>"; inherits: false; initial-value: 46%; }
@property --by3 { syntax: "<percentage>"; inherits: false; initial-value: 80%; }
@property --aur { syntax: "<angle>"; inherits: false; initial-value: 200deg; }

.hero {
  position: relative;
  overflow: clip;
  padding: clamp(32px, 5svh, 72px) 0 0;
  background: var(--ink-900);
  text-align: center;
}

/* the aurora: three soft glows and one slow conic sheet on ink. The WebGL canvas fades in over this. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: clip;
  background:
    radial-gradient(46% 34% at var(--bx1) var(--by1), rgba(167, 245, 231, 0.2), transparent 72%),
    radial-gradient(62% 44% at var(--bx2) var(--by2), rgba(35, 98, 122, 0.6), transparent 72%),
    radial-gradient(74% 46% at var(--bx3) var(--by3), rgba(20, 54, 73, 0.95), transparent 76%),
    conic-gradient(from var(--aur) at 50% 120%, rgba(167, 245, 231, 0) 0deg, rgba(167, 245, 231, 0.08) 40deg, rgba(35, 98, 122, 0.26) 90deg, rgba(167, 245, 231, 0) 150deg, rgba(167, 245, 231, 0) 360deg),
    var(--ink-900);
}

.hero__gl {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 800ms var(--ease);
}

.hero__gl.is-ready { opacity: 1; }

.hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 2 * var(--gutter), 980px);
  margin-inline: auto;
  pointer-events: none; /* its empty corners pass clicks to the demo's Pause motion switch beside the price line */
}
.hero__copy > * { pointer-events: auto; }

.hero h1,
.dl-hero h1 {
  font-size: clamp(48px, 7.4vw, 96px);
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero h1 { margin: 0 0 18px; }
.hero .subhead { max-width: 34em; text-wrap: balance; }

/* each word rises out of its own clipping box; the words stay inline for wrapping */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.06em 0.04em 0.12em; margin: -0.06em -0.04em -0.12em; }
.hero h1 .w i { display: inline-block; font-style: normal; }

.subhead {
  max-width: 30em;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.45;
  color: var(--fg-2);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 24px;
}

.meta {
  margin-top: 16px;
  font: 400 14px/1.4 var(--mono);
  letter-spacing: 0.02em;
  color: var(--cap);
  text-wrap: balance;
}
@media (max-width: 480px) { .meta { font-size: 13px; letter-spacing: 0; } }
@media (max-width: 560px) {
  .sub-net { display: none; }
  .meta { font: 500 13px/1.45 var(--font); letter-spacing: 0; }
}

.availability {
  max-width: 72ch;
  margin-top: 6px;
  text-wrap: balance;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-2);
}

.hero__stage {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--gutter), 1240px);
  margin: clamp(24px, 3svh, 40px) auto 0;
}

/* the hero dissolves into ink under the devices, so the chapter below starts clean */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 160px;
  background: linear-gradient(180deg, rgba(11, 31, 44, 0), var(--ink-900));
  pointer-events: none;
}

/* the trust strip: one line of facts, no logos */
.strip {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 36px;
  width: min(100% - 2 * var(--gutter), 980px);
  margin: clamp(20px, 3svh, 40px) auto 0;
  padding: 22px 0 28px;
  border-top: 1px solid var(--hair-dark);
  list-style: none;
  font: 400 13px/1.4 var(--mono);
  letter-spacing: 0.04em;
  color: var(--fg-2);
}

.strip li { display: flex; align-items: center; gap: 10px; }
.strip a { color: inherit; text-decoration: underline; text-decoration-color: rgba(167, 245, 231, 0.5); text-underline-offset: 3px; }
/* the strip's link lands on chapter 03's privacy card clear of the header, allowing for the card's 28 px reveal rise */
#c3 { scroll-margin-top: 44px; }
.strip li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }

@media (max-width: 480px) { .strip { flex-direction: column; align-items: flex-start; gap: 8px; } }
/* ---------------------------------------------------------------- landing: the demo (see assets/demo.js) */
/* A sample Mac desktop and a phone that mirrors it. Both screens lay out in percentages of their own
   box and size type with cqw, so the phone copy is the same screen at a smaller size, not a scaled bitmap. */
.demo {
  position: relative;
  container-type: inline-size;
  --cx: 50%; --cy: 50%;
  --mx: 50%; --my: 40%;
}

/* the scene: the Mac fills the width, the phone stands in front of its right edge, the log floats bottom left */
.demo__scene {
  position: relative;
  perspective: 1800px;
}

.demo.is-reset .demo__art { opacity: 0.35; }
.demo__art { transition: opacity 320ms var(--ease); }

.demo__art {
  position: relative;
  aspect-ratio: 1000 / 640;
  container-type: inline-size;
  transform-style: preserve-3d;
}

/* a sheet of light that follows the pointer across the devices; the devices themselves stay still */
.demo__glare {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(42% 42% at var(--mx) var(--my), rgba(255, 255, 255, 0.11), transparent 70%);
  opacity: 0;
  transition: opacity 400ms var(--ease);
  pointer-events: none;
  mix-blend-mode: screen;
}

.demo.is-live .demo__glare { opacity: 1; }

.demo__mac {
  position: absolute;
  left: 0;
  top: 7%;
  width: 84%;
  transform: rotateY(4deg) rotateX(2deg);
  transform-origin: 100% 50%;
}

.demo__lid {
  position: relative;
  padding: 1.5cqw 1.5cqw 1.8cqw;
  border-radius: clamp(8px, 1.5cqw, 16px);
  background: linear-gradient(160deg, #1c2630, #0d141a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(167, 245, 231, 0.05), 0 40px 120px -30px rgba(167, 245, 231, 0.28), 0 50px 90px -40px rgba(0, 0, 0, 0.7);
}

.demo__cam { position: absolute; left: 50%; top: 0.45cqw; width: 0.7cqw; height: 0.7cqw; border-radius: 50%; background: #0a0f13; box-shadow: inset 0 0 0 0.15cqw #2a3a46; translate: -50% 0; }

.demo__base {
  height: 1.3cqw;
  margin: 0 -1.4%;
  border-radius: 0 0 1.2cqw 1.2cqw / 0 0 100% 100%;
  background: linear-gradient(180deg, #2a3640, #121a21 70%, #0b1116);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.8);
}

.demo__screen,
.demo__mirror {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  container-type: inline-size;
  font-family: var(--font);
  color: #10222d;
  background:
    radial-gradient(60% 52% at 22% 20%, rgba(167, 245, 231, 0.42), transparent 70%),
    radial-gradient(56% 64% at 84% 78%, rgba(35, 98, 122, 0.85), transparent 72%),
    linear-gradient(160deg, #244f62, #0f2a39 62%, #0b1f2c);
  user-select: none;
  -webkit-user-select: none;
}

.demo__screen { border-radius: clamp(3px, 0.7cqw, 7px); }

/* a large portrait phone in front of the Mac's right edge */
.demo__phone {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
  width: 29%;
  padding: clamp(3px, 0.8cqw, 9px);
  border-radius: 4.2cqw;
  background: #050b10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 60px 140px -40px rgba(167, 245, 231, 0.4), 0 40px 80px -24px rgba(0, 0, 0, 0.75);
  transform: rotateY(-10deg) rotateX(1deg) translateZ(70px);
  transform-origin: 0 50%;
}
@media (min-width: 561px) {
  .demo__phone::before { content: ""; position: absolute; left: 1.3cqw; top: 50%; width: 0.9cqw; height: 6.5cqw; translate: 0 -50%; border-radius: 1cqw; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); z-index: 2; }
  .demo__phone::after { content: ""; position: absolute; top: -2px; right: 16%; width: 8%; height: 3px; border-radius: 2px; background: #1b2830; }
}

/* the phone screen: the Mac fits its width, letterboxed, which is what mirroring a landscape screen looks like */
.demo__phone-screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border-radius: 3.5cqw;
  background: #000;
  color: #f3f8f9;
  font-family: var(--font);
  container-type: inline-size;
}

.demo__phone-top {
  position: absolute;
  top: 6cqw;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 1.6cqw;
  align-items: center;
  padding: 1.1cqw 2.2cqw;
  border-radius: 2em;
  background: rgba(11, 31, 44, 0.72);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18);
  translate: -50% 0;
  font-size: 3.6cqw;
  font-weight: 650;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.demo__phone-top i {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.2);
}

.demo__phone-screen .demo__mirror { position: absolute; top: 50%; left: 0; width: 100%; height: auto; aspect-ratio: 16 / 10; translate: 0 -50%; border-radius: 0; }

.demo__status {
  position: absolute;
  left: 50%;
  bottom: 7cqw;
  z-index: 2;
  margin: 0;
  padding: 1.6cqw 3cqw;
  border-radius: 2em;
  background: rgba(11, 31, 44, 0.72);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18);
  translate: -50% 0;
  font: 500 3.2cqw/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--mint);
}

.demo__status::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-right: 0.5em;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  vertical-align: 0.05em;
}

/* the session log: a glass card floating over the Mac's lower left corner, filling in as the demonstration plays */
.demo__log {
  position: absolute;
  left: -2%;
  bottom: 4%;
  z-index: 3;
  width: min(300px, 34%);
  padding: 16px 18px 14px;
  text-align: left;
  color: var(--on-dark);
  transition: opacity 320ms var(--ease);
}

/* the log's final height is reserved, so the rows that arrive later do not push the page down */
.demo__log { min-height: 192px; }
@media (max-width: 560px) { .demo__log { min-height: 210px; } }
@media (max-width: 367px) { .demo__log { min-height: 228px; } }
@media (max-width: 335px) { .demo__log { min-height: 247px; } }
@media (max-width: 327px) { .demo__log { min-height: 266px; } }
@media (max-width: 323px) { .demo__log { min-height: 285px; } }
@media (min-width: 1001px) { .demo__log { min-height: 0; } }
.demo.is-reset .demo__log { opacity: 0.35; }

/* Pause motion (WCAG 2.2.2): wisp.js makes one switch for every loop on the page and shows it in three places,
   above the hero scene's right corner and beside chapters 01 and 02. The state lives in memory only. */
.demo__pause { position: absolute; right: 0; top: -52px; z-index: 5; }
html[data-motion="paused"] .hero__bg,
html[data-motion="paused"] .pricing__glow,
html[data-motion="paused"] .route__pulse,
html[data-motion="paused"] .route__glow,
html[data-motion="paused"] .dw-caret { animation-play-state: paused !important; }
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--hair-dark);
  border-radius: 980px;
  background: rgba(20, 54, 73, 0.5);
  font: 500 13px/1 var(--font);
  color: var(--on-dark-2);
  cursor: pointer;
}
.motion-toggle:hover { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.3); }
.motion-toggle:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.motion-toggle__icon { box-sizing: border-box; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.motion-toggle[aria-pressed="true"] { background: rgba(255, 255, 255, 0.1); color: var(--on-dark); border-color: rgba(167, 245, 231, 0.7); }
.motion-toggle[aria-pressed="true"]::after { content: "paused"; content: "paused" / ""; margin-left: 2px; color: var(--cap); }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon { width: 0; height: 0; border: 0 solid transparent; border-width: 6px 0 6px 10px; border-left-color: currentColor; }
.route__copy .motion-toggle, .reach__stage .motion-toggle { display: flex; width: fit-content; margin-top: 24px; }
.reach__stage .motion-toggle { margin-inline: auto; }
@media (min-width: 901px) { .reach__stage .motion-toggle { margin-inline: 0; } }
@media (max-width: 734px) { .route__copy .motion-toggle { margin-inline: auto; } }
.route__copy .motion-toggle, .reach__stage .motion-toggle { background: transparent; border-color: transparent; padding-inline: 0; color: var(--on-dark-2); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 4px; }
.route__copy .motion-toggle[aria-pressed="true"], .reach__stage .motion-toggle[aria-pressed="true"] { background: transparent; border-color: transparent; }
@media (min-width: 1001px) { .hero .demo { margin-top: -28px; } }

.demo__log-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cap); }
.demo__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.demo__rows { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.35; }
.demo__rows li { display: grid; grid-template-columns: 5.4em 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--hair-dark); }
.demo__rows li:first-child { border-top: 0; }
.demo__t { font: 400 12px/1.5 var(--mono); color: var(--fg-2); white-space: nowrap; }

/* the sample desktop */
.dw-menubar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  gap: 2cqw;
  align-items: center;
  height: 4.4cqw;
  padding: 0 1.8cqw;
  font-size: 1.9cqw;
  font-weight: 500;
  color: #fff;
  background: rgba(11, 31, 44, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dw-menubar__apple { width: 1.9cqw; height: 2.2cqw; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 20' fill='%23fff'%3E%3Cpath d='M14.1 10.6c0-2.3 1.9-3.4 2-3.5-1.1-1.6-2.8-1.8-3.4-1.8-1.4-.2-2.8.9-3.5.9s-1.8-.8-3-.8C4.7 5.4 3.2 6.3 2.4 7.7c-1.7 3-.4 7.3 1.2 9.7.8 1.2 1.8 2.5 3 2.4 1.2 0 1.7-.8 3.1-.8s1.9.8 3.1.8c1.3 0 2.1-1.2 2.9-2.4.9-1.3 1.3-2.6 1.3-2.7 0 0-2.6-1-2.6-4.1zM11.8 3.8c.6-.8 1.1-1.9.9-3-.9 0-2.1.6-2.7 1.4-.6.7-1.1 1.8-1 2.9 1.1.1 2.1-.5 2.8-1.3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.dw-menubar__app { font-weight: 700; }
.dw-menubar__right { display: flex; gap: 1.5cqw; align-items: center; margin-left: auto; }
.dw-menubar__wisp { display: inline-block; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff, var(--mint) 45%, transparent 70%); box-shadow: 0 0 6px var(--mint); }
.dw-menubar__wifi { width: 2.2cqw; height: 1.7cqw; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M2 6a15 15 0 0 1 20 0'/%3E%3Cpath d='M6 10a9.5 9.5 0 0 1 12 0'/%3E%3Ccircle cx='12' cy='15' r='1.6' fill='%23fff' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat; }
.dw-menubar__batt { position: relative; width: 3.2cqw; height: 1.5cqw; border: 0.18cqw solid rgba(255, 255, 255, 0.7); border-radius: 0.4cqw; }
.dw-menubar__batt::before { content: ""; position: absolute; inset: 0.22cqw; width: 82%; border-radius: 0.2cqw; background: #fff; }
.dw-menubar__batt::after { content: ""; position: absolute; right: -0.5cqw; top: 30%; width: 0.3cqw; height: 40%; border-radius: 0 0.2cqw 0.2cqw 0; background: rgba(255, 255, 255, 0.7); }
.dw-clock { font-variant-numeric: tabular-nums; white-space: pre; }

.dw-win {
  position: absolute;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.4cqw;
  background: #f5fafb;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.35), 0 2cqw 5cqw -1cqw rgba(0, 0, 0, 0.5);
}

.dw-win__bar {
  display: flex;
  flex: none;
  gap: 1cqw;
  align-items: center;
  height: 4.4cqw;
  padding: 0 1.6cqw;
  font-size: 1.9cqw;
  font-weight: 600;
  color: #426271;
  background: #e6eff1;
}

.dw-win__bar i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #d8dee1; }
.dw-win__bar i:nth-child(1) { background: #ff5f57; }
.dw-win__bar i:nth-child(2) { background: #febc2e; }
.dw-win__bar i:nth-child(3) { background: #28c840; }
.dw-win__bar span { margin-left: auto; margin-right: auto; }

.dw-note { padding: 2cqw 2.4cqw; font-size: 2cqw; line-height: 1.5; }
.dw-note__h { margin: 0 0 1cqw; font-size: 2.6cqw; font-weight: 700; }
.dw-note ul { margin: 0; padding: 0; list-style: none; }
.dw-note li { position: relative; padding-left: 3.2cqw; }
.dw-note li::before { content: ""; position: absolute; left: 0; top: 0.75cqw; width: 1.8cqw; height: 1.8cqw; border: 0.3cqw solid #23627a; border-radius: 50%; }
.dw-note li.is-done { color: #7a98a3; text-decoration: line-through; }
.dw-note li.is-done::before { background: #23627a; }
.dw-caret { display: inline-block; width: 0.2cqw; height: 1.1em; margin-left: 0.2cqw; background: #143649; vertical-align: -0.2em; }

.dw-stats { display: flex; flex-direction: column; flex: 1; padding: 1.8cqw 2.2cqw; font-size: 1.8cqw; }
.dw-stats__h { margin: 0 0 1cqw; font-size: 2.2cqw; font-weight: 700; }
.dw-bars { display: flex; flex: 1; gap: 1.4cqw; align-items: flex-end; min-height: 0; }
.dw-bars i { flex: 1; border-radius: 0.6cqw 0.6cqw 0 0; background: linear-gradient(180deg, #2fb39f, #23627a); }
.dw-bars i:nth-child(4) { background: linear-gradient(180deg, #a7f5e7, #2fb39f); }
.dw-days { display: flex; margin-top: 0.8cqw; color: #7a98a3; }
.dw-days span { flex: 1; text-align: center; }

.dw-files { padding: 1cqw 0; font-size: 2cqw; }
.dw-files__row { display: flex; gap: 1.4cqw; align-items: center; padding: 0.9cqw 2.2cqw; }
.dw-files__row:nth-child(odd) { background: #edf3f5; }
.dw-ic { width: 2.6cqw; height: 2.1cqw; border-radius: 0.4cqw; background: #8fc3cf; }
.dw-ic--doc { width: 1.9cqw; height: 2.4cqw; background: #d9e2e6; box-shadow: inset 0 0 0 0.3cqw #b6ced4; }

.dw-dock {
  position: absolute;
  bottom: 1.6cqw;
  left: 50%;
  z-index: 20;
  display: flex;
  gap: 1.6cqw;
  padding: 1.2cqw;
  border-radius: 2.4cqw;
  background: rgba(243, 248, 249, 0.22);
  translate: -50% 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dw-dock__i { display: block; width: 5.6cqw; height: 5.6cqw; border-radius: 1.3cqw; }
.dw-dock__i--notes { background: linear-gradient(180deg, #ffe58a, #f2b600); }
.dw-dock__i--stats { background: linear-gradient(180deg, #ff8a80, #d93f31); }
.dw-dock__i--files { background: linear-gradient(180deg, #7fd0ff, #1f78d1); }

.dw-cursor {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  z-index: 30;
  width: 3.4cqw;
  height: 4.8cqw;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 24'%3E%3Cpath d='M1 1l0 19 4.6-4.2 3 7.2 3.7-1.6-3.1-7.1 6.2-.4z' fill='%230b1f2c' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
  background-size: contain;
  filter: drop-shadow(0 0 0.7cqw rgba(167, 245, 231, 0.95)) drop-shadow(0 0.4cqw 0.8cqw rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.dw-cursor::after {
  content: "";
  position: absolute;
  left: 0.3cqw;
  top: 0.3cqw;
  width: 7cqw;
  height: 7cqw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 245, 231, 0.35), transparent 70%);
  translate: -50% -50%;
}

/* the touch marker on the phone: where a finger is, while something is being controlled */
.dw-touch {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  z-index: 29;
  width: 7cqw;
  height: 7cqw;
  border-radius: 50%;
  background: rgba(167, 245, 231, 0.35);
  box-shadow: 0 0 0 0.8cqw rgba(167, 245, 231, 0.2), 0 0 2cqw rgba(167, 245, 231, 0.6);
  translate: -50% -50%;
  opacity: 0;
  transition: opacity 200ms var(--ease);
  pointer-events: none;
}

.demo__screen .dw-touch { display: none; }
.demo.is-touch .demo__mirror .dw-touch { opacity: 1; }
.demo.is-touch .demo__mirror .dw-cursor { opacity: 0; }

/* on wider screens the phone lies sideways in front of the Mac's lower right, the way the app is held to
   work, so the mirrored desktop fills the screen instead of floating in a black bar */
@media (min-width: 561px) {
  .demo__phone { top: auto; bottom: 3%; right: -1%; width: 44%; border-radius: 3.2cqw; }
  .demo__phone-screen { aspect-ratio: 19.5 / 9; border-radius: 2.6cqw; }
  .demo__phone-screen .demo__mirror { top: 0; left: 50%; width: auto; height: 100%; translate: -50% 0; }
  .demo__phone-top { display: none; }
  .demo__status { left: auto; right: 1.4cqw; top: 1.6cqw; bottom: auto; translate: none; padding: 0.8cqw 1.6cqw; font-size: 1.9cqw; }
}

@media (max-width: 1320px) { .demo__log { left: 0; } }
/* the price line keeps clear of the Pause motion pill above the scene's right corner (195 px wide when pressed, 16 px gap) */
@media (min-width: 1001px) { .hero .meta { max-width: calc(100% - 422px); margin-inline: auto; } }

@media (max-width: 1000px) {
  .demo__log { position: relative; left: auto; bottom: auto; width: min(100%, 420px); margin: 20px auto 0; }
  .demo__pause { top: auto; bottom: -48px; }
}
@media (min-width: 561px) and (max-width: 1000px) { .demo { margin-bottom: 56px; } }

/* phones: the Mac on top, a large phone below, no perspective */
@media (max-width: 560px) {
  .demo { padding-top: 52px; }
  .demo__scene { perspective: none; }
  .demo__art { aspect-ratio: 1000 / 1150; transform: none; }
  .demo__mac { left: 0; top: 0; width: 100%; transform: none; }
  /* the phone turns sideways under the Mac, so the mirrored screen fills it instead of sitting in a black bar */
  .demo__phone { left: 4%; right: auto; top: 60%; width: 92%; transform: none; border-radius: 7cqw; }
  .demo__phone-screen { aspect-ratio: 19.5 / 9; border-radius: 6cqw; }
  .demo__phone-screen .demo__mirror { top: 50%; left: 0; width: 100%; height: auto; aspect-ratio: 16 / 10; translate: 0 -38%; }
  .demo__phone-top { display: none; }
  .demo__status { bottom: 1.6cqw; padding: 0.9cqw 2cqw; font-size: 2.2cqw; }
  .demo__glare { display: none; }
  .demo__pause { bottom: auto; top: -52px; right: 0; }
  .hero__stage { margin-top: 8px; }
}
@media (max-width: 1068px) { .demo__status { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .has-motion-switch .dw-caret { animation: dw-blink 1s steps(2, start) infinite; }
  .dw-win { transition: left 120ms linear, top 120ms linear; }
  .demo__phone { transition: scale 260ms var(--ease); }
  .demo.is-touch .demo__phone { scale: 0.985; }
}

@keyframes dw-blink { to { visibility: hidden; } }

@media (forced-colors: active) {
  .demo__screen, .demo__mirror { background: Canvas; }
  .dw-win { border: 1px solid CanvasText; }
}

/* ---------------------------------------------------------------- landing: your connection (dark, lit path) */

.route { position: relative; overflow: clip; background: var(--ink-900); }

.route__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(40% 50% at 80% 50%, rgba(35, 98, 122, 0.45), transparent 70%),
    radial-gradient(26% 36% at 20% 30%, rgba(167, 245, 231, 0.08), transparent 70%);
}

.route__grid { position: relative; z-index: 1; display: grid; gap: 40px; }

.route__pick { position: relative; margin: 0; padding: 0; border: 0; }
.route__pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.route__pick label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 8px 0 0;
  padding: 0 20px;
  border: 1px solid var(--hair-dark);
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg-2);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), box-shadow 240ms var(--ease);
}

.route__pick label:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.24); }
.route__pick input:checked + label { background: var(--mint); border-color: var(--mint); color: var(--ink-900); box-shadow: 0 0 0 4px rgba(167, 245, 231, 0.14), 0 8px 30px rgba(167, 245, 231, 0.25); }
.route__pick input:focus-visible + label { outline: 2px solid var(--mint); outline-offset: 3px; }

.route__fig { display: block; width: 100%; margin: 28px 0 0; overflow: visible; }

.route__fig text { font: 500 14px var(--font); fill: var(--on-dark-2); }
.route__end rect, .route__end path { fill: rgba(11, 31, 44, 0.9); stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.route__end path { fill: none; }
.route__glow { fill: rgba(167, 245, 231, 0.12); filter: blur(14px); }

.route__mid circle { fill: var(--ink-900); stroke: var(--mint); stroke-width: 2; }
.route__mid { opacity: 0.18; transition: opacity 360ms var(--ease); }
.route__mid text { fill: var(--on-dark); }

.route__path, .route__halo, .route__pulse { fill: none; stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms var(--ease-out), opacity 360ms var(--ease); }
.route__path { stroke-width: 2.5; opacity: 0.12; stroke-dashoffset: 0; }
.route__halo { stroke-width: 14; opacity: 0; filter: blur(8px); }
.route__pulse { stroke: #fff; stroke-width: 5; stroke-dasharray: 0.07 1; stroke-dashoffset: 0.07; opacity: 0; transition: none; }

#route-home:checked ~ .route__fig .route__path--home,
#route-net:checked ~ .route__fig .route__path--net { opacity: 1; }
#route-home:checked ~ .route__fig .route__halo--home,
#route-net:checked ~ .route__fig .route__halo--net { opacity: 0.35; stroke-dashoffset: 0; }
#route-home:checked ~ .route__fig .route__mid--home,
#route-net:checked ~ .route__fig .route__mid--net { opacity: 1; }
#route-home:checked ~ .route__fig .route__mid--home circle,
#route-net:checked ~ .route__fig .route__mid--net circle { fill: var(--mint); filter: drop-shadow(0 0 8px var(--mint)); }

.route__cap { display: none; max-width: 46em; margin-top: 18px; color: var(--fg-2); }
#route-home:checked ~ .route__cap--home, #route-net:checked ~ .route__cap--net { display: block; }

@media (min-width: 1069px) {
  .route__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
}

/* figure labels are in user units on a fluid figure: each band caps the figure's width and picks a size that
   lands between about 11 and 16 px on screen */
@media (max-width: 340px) { .route__fig text { font-size: 32px; } }
@media (min-width: 341px) and (max-width: 400px) { .route__fig text { font-size: 28px; } }
@media (min-width: 401px) and (max-width: 734px) { .route__fig { max-width: 480px; margin-inline: auto; } .route__fig text { font-size: 24px; } }
@media (min-width: 735px) and (max-width: 1068px) { .route__fig { max-width: 640px; margin-inline: auto; } .route__fig text { font-size: 16px; } }
@media (min-width: 1069px) { .route__fig text { font-size: 17px; } }
@media (max-width: 400px) { .route__mid--home text { transform: translateY(14px); } }
@media (min-width: 401px) and (max-width: 734px) { .route__mid--home text { transform: translateY(6px); } }

/* phones: chapters read centred, like the hero and the closing, instead of hugging the left edge */
@media (max-width: 734px) {
  .route .wrap-wide, .reach .wrap-wide, .scrub .wrap-wide, .setup .wrap-wide, .pricing .wrap-wide, .faq__grid { text-align: center; }
  .route h2, .reach h2, .scrub h2, .setup h2, .pricing h2, .faq h2 { max-width: none; text-wrap: balance; }
  .lede, .route__cap, .scrub .scrub__item > p:not(.scrub__n):not(.facts) { max-width: none; margin-inline: auto; text-wrap: pretty; }
  .scrub .scrub__inline { margin-inline: auto; }
  .scrub__item .facts, .plan .facts { justify-content: center; }
  .step { text-align: center; }
  .sframe { margin-inline: auto; }
  .faq__list { text-align: left; }
  .faq__grid > div:first-child .lede { margin-inline: auto; }
}

/* ---------------------------------------------------------------- landing: reach (a row of Macs) */

.reach { position: relative; overflow: clip; background: var(--ink-900); }
.reach__bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(50% 40% at 50% 75%, rgba(167, 245, 231, 0.16), transparent 70%); }
.reach .wrap-wide { position: relative; z-index: 1; }

.reach__stage { position: relative; width: min(100%, 1020px); margin: 56px auto 0; }
.reach__stage .facts { justify-content: center; margin-top: 28px; }

/* the Macs as line drawings; the strokes keep their width at any size */
.reach__fig { display: block; width: 100%; height: auto; overflow: visible; }
.reach__fig path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rf-line { stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.5; }
.rf-soft { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.25; }
.reach__fig .rf-fill { fill: rgba(167, 245, 231, 0.1); stroke: none; }
.reach__fig text { font: 400 36px var(--mono); letter-spacing: 0.06em; fill: var(--cap); }
@media (min-width: 561px) { .reach__fig text { font-size: 18px; } }
@media (min-width: 901px) {
  .reach__stage { width: 100%; margin-inline: 0; }
  .reach__stage .facts { justify-content: flex-start; }
  .reach__fig text { font-size: 11.5px; }
}

/* the sparks (swarm.js): one canvas laid over chapters 01 and 02, above their backgrounds and under their
   text and figures; it replaces the CSS pulse on the route while it runs */
.swarm { position: absolute; top: 0; left: 0; z-index: 1; display: block; width: 100%; height: 0; pointer-events: none; }
.has-swarm .route__pulse { display: none; }
.has-swarm #route-home:checked ~ .route__fig .route__path--home,
.has-swarm #route-net:checked ~ .route__fig .route__path--net { opacity: 0.4; }

/* ---------------------------------------------------------------- landing: scrub (pinned phone, two chapters) */

.scrub { position: relative; overflow: clip; background: var(--ink-900); }
.scrub__title { margin-bottom: 40px; }
.scrub__grid { display: grid; gap: 40px; }
.scrub__phone { display: none; margin: 0; }
.scrub__inline { width: min(100%, 300px); margin: 0 0 28px; }
.scrub__inline .device--phone { padding: 6px; }

.scrub__item + .scrub__item { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--hair-dark); }
.scrub__n { margin: 0 0 14px; font: 400 14px/1 var(--mono); letter-spacing: 0.06em; color: var(--cap); }
.scrub__item h3 { margin-bottom: 16px; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -0.02em; }
.scrub__item > p:not(.scrub__n):not(.facts) { max-width: 30em; font-size: 17px; color: var(--fg-2); }
.scrub__item .facts { margin-top: 22px; }

.scrub__reel { position: absolute; inset: 0 0 auto; display: grid; }
.scrub__reel img { width: 100%; height: auto; border-radius: 0; }

/* desktop with scroll timelines: the phone pins and its screen scrolls from one capture to the next */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    .scrub__grid { grid-template-columns: 340px minmax(0, 1fr); gap: 96px; align-items: start; timeline-scope: --scrub2; }
    .scrub__pin { align-self: stretch; }
    .scrub__phone { position: sticky; top: calc(var(--header-h) + 10vh); display: block; }
    .scrub__item:nth-child(2) { view-timeline-name: --scrub2; }
    .scrub__inline { display: none; }
    .scrub__item { padding-block: 22vh; }
    .scrub__item + .scrub__item { margin-top: 0; border-top: 0; }
    /* the screen slides to the second capture as the second chapter enters the viewport */
    .scrub__reel { animation: reel 1ms linear both; animation-timeline: --scrub2; animation-range: entry 45% entry 100%; }
  }
}

@keyframes reel { from { translate: 0 0; } to { translate: 0 -50%; } }

/* the two chapters with no pinned phone: plain stacked text */
.scrub__text--solo .scrub__item { padding-block: 0; }
.scrub__text--solo .scrub__item + .scrub__item { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--hair-dark); }
@media (min-width: 901px) {
  .scrub__text--solo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .scrub__text--solo .scrub__item { padding: 40px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(35, 98, 122, 0.28), rgba(20, 54, 73, 0.35)); box-shadow: inset 0 0 0 1px var(--hair-dark); }
  .scrub__text--solo .scrub__item + .scrub__item { margin-top: 0; padding-top: 40px; border-top: 0; }
  .scrub__text--solo .scrub__item { display: flex; flex-direction: column; }
  .scrub__text--solo .scrub__item .facts { margin-top: auto; padding-top: 22px; }
}

/* ---------------------------------------------------------------- landing: set up (light chapter) */

.setup { background: var(--mist); }
.setup__grid { display: grid; gap: 32px; margin-top: 44px; }

.steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }

.step {
  counter-increment: step;
  padding: 28px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 50px -36px rgba(20, 54, 73, 0.45);
  font-size: 19px;
  line-height: 1.4;
  color: var(--fg-2);
}

.step::before {
  content: "Step " counter(step);
  display: block;
  margin-bottom: 16px;
  font: 400 14px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--cap);
}

.step strong { font-weight: 600; color: var(--fg); }
.setup__more { margin-top: 36px; }

/* the three state drawings: one inside each step on phones and in browsers without scroll timelines */
.sframe { display: block; width: 100%; max-width: 300px; margin-bottom: 20px; }
.sframe rect, .sframe path, .sframe circle { fill: #fff; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sframe path { fill: none; }
.sframe .sf-soft { fill: var(--mist); stroke: var(--hair); }
.sframe .sf-stroke { stroke: var(--sea); stroke-width: 2; }
.sframe .sf-ring { fill: none; stroke: var(--hair); }
.sframe .sf-dot { fill: #2fb39f; stroke: none; filter: drop-shadow(0 0 4px rgba(47, 179, 159, 0.8)); }
.sframe .sf-dash { stroke: #2fb39f; stroke-dasharray: 4 5; }
.sframe text { font: 500 13px var(--font); fill: var(--text); }
.sframe .sf-code { font: 600 15px var(--mono); }
.sframe .sf-code--s { font-size: 9px; }
.sframe .sf-small { font: 500 11px var(--font); fill: var(--text-2); }
.sframe .sf-small--s { font-size: 8px; }
/* up to 900 px the drawing is about 300 px wide, so its small labels take more user units; on the narrowest
   phones the labels inside the drawn phone go, and the Mac's labels and the code carry the step */
@media (max-width: 900px) {
  .sframe .sf-small { font-size: 15px; }
  .sframe .sf-small--s { font-size: 11px; }
  .sframe .sf-code--s { font-size: 11px; }
}
@media (max-width: 400px) {
  .sframe .sf-small--s, .sframe .sf-code--s { display: none; }
}

.setup__fig { display: none; }

/* desktop with scroll timelines: one figure pins beside the steps; each step's own timeline shows its frame */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    .setup__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; timeline-scope: --s1, --s2, --s3; }
    .setup__pin { align-self: stretch; }
    .steps { gap: 0; }
    .step { padding-block: 14vh; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: clamp(22px, 2vw, 28px); }
    .step + .step { border-top: 1px solid var(--hair); }
    .step:nth-child(1) { view-timeline-name: --s1; }
    .step:nth-child(2) { view-timeline-name: --s2; }
    .step:nth-child(3) { view-timeline-name: --s3; }
    .step .sframe { display: none; }
    .setup__fig {
      position: sticky;
      top: calc(50svh - 150px);
      display: block;
      margin: 0;
      aspect-ratio: 280 / 160;
      border: 1px solid var(--hair);
      border-radius: var(--radius);
      background: #fff;
      box-shadow: 0 30px 60px -36px rgba(20, 54, 73, 0.5);
    }
    .setup__fig .sframe { position: absolute; inset: 8%; width: auto; max-width: none; margin: 0; opacity: 0; animation: frame-in 1ms linear both; }
    .setup__fig .sframe:nth-child(1) { opacity: 1; animation-name: frame-first; animation-timeline: --s2; animation-range: cover 29% cover 41%; }
    .setup__fig .sframe:nth-child(2) { animation-name: frame-in; animation-timeline: --s2; animation-range: cover 29% cover 41%; animation-fill-mode: both; }
    .setup__fig .sframe:nth-child(3) { animation-name: frame-in; animation-timeline: --s3; animation-range: cover 29% cover 41%; animation-fill-mode: both; }
  }
}

/* each frame crossfades halfway between its step and the one before, so the drawing matches the step being read */
@keyframes frame-first { from { opacity: 1; } to { opacity: 0; } }
@keyframes frame-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .step::before { margin-bottom: 14px; }
}

/* ---------------------------------------------------------------- landing: pricing (dark glass) */

.pricing { position: relative; overflow: clip; background: var(--ink-900); }
.pricing .wrap-wide { position: relative; z-index: 1; }

.pricing__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(40% 50% at 18% 30%, rgba(35, 98, 122, 0.55), transparent 70%),
    radial-gradient(30% 40% at 86% 70%, rgba(167, 245, 231, 0.16), transparent 70%),
    conic-gradient(from var(--aur) at 50% -20%, rgba(167, 245, 231, 0) 0deg, rgba(167, 245, 231, 0.06) 60deg, rgba(167, 245, 231, 0) 120deg);
}

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.plan { position: relative; padding: 32px; }
.plan--once { box-shadow: inset 0 0 0 1px rgba(167, 245, 231, 0.45), 0 0 0 1px rgba(167, 245, 231, 0.08), 0 40px 100px -40px rgba(167, 245, 231, 0.3); background: linear-gradient(160deg, rgba(167, 245, 231, 0.14), rgba(20, 54, 73, 0.5) 60%); }

.plan__badge {
  position: absolute;
  right: 22px;
  top: 22px;
  margin: 0;
  padding: 5px 11px;
  border-radius: 980px;
  background: var(--mint);
  box-shadow: 0 0 16px rgba(167, 245, 231, 0.5);
  font: 600 12px/1.2 var(--font);
  color: var(--ink-900);
}

.plan__name { margin: 0 0 20px; font: 400 14px/1 var(--mono); letter-spacing: 0.06em; color: var(--cap); }
.plan__price { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.plan__amt { font-size: clamp(44px, 4.8vw, 64px); font-weight: 650; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__per { font: 400 14px/1 var(--mono); color: var(--fg-2); }
.plan__sub { margin-top: 14px; font-size: 15px; color: var(--fg-2); }

.plan__inc {
  display: grid;
  gap: 14px;
  align-content: center;
  margin: 0;
  padding: 28px 32px;
  list-style: none;
  font-size: 16px;
  color: var(--fg-2);
}

.plan__inc li { display: flex; align-items: flex-start; gap: 12px; }
.pricing .hero__cta { justify-content: flex-start; margin-top: 36px; }
@media (max-width: 734px) {
  .plan, .plan__inc { text-align: left; }
  .pricing .hero__cta { justify-content: center; }
}
.plan__inc li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%230b1f2c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 9.5l3 3 6-6.5'/%3E%3C/svg%3E") center / contain no-repeat; box-shadow: 0 0 10px rgba(167, 245, 231, 0.5); }

.pricing .note { margin-top: 28px; }

@media (min-width: 1069px) {
  .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); }
}

@media (max-width: 734px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 26px; }
}

/* ---------------------------------------------------------------- landing: faq (dark) */

.faq { background: var(--ink-900); border-top: 1px solid var(--hair-dark); }
.faq__grid { display: grid; gap: 32px; }
.faq__list { border-top: 1px solid var(--hair-dark); }
.faq details { border-bottom: 1px solid var(--hair-dark); }

.faq summary {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 22px 48px 22px 0;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq__n { flex: none; width: 2.2em; font: 400 14px/1.6 var(--mono); color: var(--cap); }

.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--mint);
  border-bottom: 1.5px solid var(--mint);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 220ms var(--ease);
}

.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { max-width: 60ch; padding: 0 0 22px calc(2.2em + 20px); color: var(--fg-2); }
.faq summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 8px; }

@media (min-width: 1069px) {
  .faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
  .faq__list { border-top: 0; margin-top: 8px; }
}

/* ---------------------------------------------------------------- landing: closing chapter */

.closing { position: relative; overflow: clip; padding: var(--section) 0; background: var(--ink-900); text-align: center; }

.closing__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(46% 34% at 24% 28%, rgba(167, 245, 231, 0.14), transparent 72%),
    radial-gradient(62% 44% at 78% 54%, rgba(35, 98, 122, 0.5), transparent 72%),
    radial-gradient(74% 46% at 50% 100%, rgba(20, 54, 73, 0.95), transparent 76%),
    var(--ink-900);
}

.closing__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 2 * var(--gutter), 860px);
  margin-inline: auto;
}

.closing h2 { font-size: clamp(38px, 5.8vw, 76px); line-height: 0.98; letter-spacing: -0.03em; }
.closing .hero__cta { margin-top: 32px; }
.closing .availability { margin-top: 14px; }

.closing__stage { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), 680px); margin: 48px auto 0; }

.closing__stage::after {
  content: "";
  position: absolute;
  inset: auto -2px 0;
  height: 62%;
  background: linear-gradient(180deg, rgba(11, 31, 44, 0), rgba(11, 31, 44, 0.84) 52%, var(--ink-900) 94%);
  pointer-events: none;
}

.device--pad {
  position: relative;
  padding: 7px;
  border-radius: 26px;
  background: #050b10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 40px 100px -30px rgba(167, 245, 231, 0.28), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

.device--pad img { display: block; width: 100%; height: auto; aspect-ratio: 2064 / 1500; object-fit: cover; object-position: top; border-radius: 19px; }

/* ---------------------------------------------------------------- download */

.dl-hero {
  padding: clamp(32px, 3.6vw, 52px) 0 clamp(32px, 3.6vw, 48px);
  text-align: center;
  background:
    radial-gradient(50% 55% at 18% 32%, rgba(35, 98, 122, 0.5), transparent 70%),
    radial-gradient(30% 40% at 84% 48%, rgba(167, 245, 231, 0.12), transparent 70%),
    var(--ink-900);
}

.dl-hero h1 { font-size: clamp(40px, 6vw, 64px); }

.dl-hero__in { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dl-hero .subhead { max-width: 30em; }
.dl-hero__in > p:nth-of-type(2) { margin-top: 12px; }
.dl-hero__req { max-width: 70ch; font: 400 15px/1.5 var(--font); color: var(--fg-2); text-wrap: balance; }
.dl-hero__touch { display: none; max-width: 30em; color: var(--fg); text-wrap: balance; }
.dl-hero__next { max-width: 30em; color: var(--fg); text-wrap: balance; }

.dl { padding-top: clamp(32px, 3.6vw, 52px); background: var(--paper); }
.dl h2 { margin-bottom: 32px; }

.install {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
  counter-reset: install;
}

.install li { display: block; counter-increment: install; color: var(--fg-2); }
.install strong { font-weight: 600; color: var(--fg); }

.install li::before {
  content: "0" counter(install);
  display: block;
  margin-bottom: 24px;
  font: 400 13px/1.4 var(--mono);
  letter-spacing: 0.08em;
  color: var(--cap);
}

@media (max-width: 900px) { .install { grid-template-columns: minmax(0, 1fr); } }

.dl__more { margin-top: 72px; }
.dl__more h2 { margin: 56px 0 16px; font-size: 32px; }
.dl__more h2:first-child { margin-top: 0; }
.dl__more p { max-width: 68ch; color: var(--fg-2); }
.dl__more p + p { margin-top: 16px; }
.dl__more a { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- motion (all gated) */

/* page changes: the header stays put, the page crossfades */
@view-transition { navigation: auto; }

.site-header { view-transition-name: site-header; }

::view-transition-group(root) {
  animation-duration: 240ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .swarm { display: none; }
  .route__path, .route__halo, .route__mid, .route__pick label { transition-duration: 0.01ms; }
}

@keyframes word-up { from { transform: translateY(115%); } }
@keyframes rise-in { from { opacity: 0; translate: 0 28px; } }
@keyframes wisp-drift { to { --bx1: 34%; --by1: 12%; --bx2: 66%; --by2: 56%; --bx3: 30%; --by3: 70%; } }
@keyframes aurora { to { --aur: 560deg; } }
@keyframes route-pulse { 0% { stroke-dashoffset: 0.07; opacity: 0; } 8% { opacity: 0.9; } 92% { opacity: 0.9; } 100% { stroke-dashoffset: -1; opacity: 0; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes log-in { from { opacity: 0; translate: 0 8px; } }
@keyframes para-up { to { translate: 0 -7%; } }
@keyframes para-down { to { translate: 0 9%; } }
@keyframes glow-breathe { to { opacity: 0.75; } }

@media (prefers-reduced-motion: no-preference) {
  /* the hero headline rises word by word; transform only, so nothing is ever invisible for long */
  .hero h1 .w i { animation: word-up 820ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i) * 80ms) both; }
  .hero .subhead, .hero .hero__cta, .hero .meta { animation: rise-in 560ms var(--ease-out) both; }
  .hero .subhead { animation-delay: 160ms; }
  .hero .hero__cta { animation-delay: 240ms; }
  .hero .meta { animation-delay: 320ms; }

  /* the loops below run only under .has-motion-switch, which wisp.js sets once the Pause motion switch is up
     (WCAG 2.2.2); without scripts the page rests in its finished state */
  .has-motion-switch .hero__bg { animation: wisp-drift 20s ease-in-out infinite alternate, aurora 36s linear infinite; }
  .has-motion-switch .hero.has-gl .hero__bg { animation: aurora 36s linear infinite; }
  .has-motion-switch .pricing__glow { animation: aurora 48s linear infinite; }

  /* the lit connection: a pulse travels the chosen route */
  .has-motion-switch #route-home:checked ~ .route__fig .route__pulse--home,
  .has-motion-switch #route-net:checked ~ .route__fig .route__pulse--net { animation: route-pulse 2.4s linear 600ms infinite; }
  .has-motion-switch .route__glow { animation: glow-breathe 3s ease-in-out infinite alternate; }

  .demo__rows li { animation: log-in 360ms var(--ease-out) both; }

  /* reveals: hidden only when a script is running to reveal them (wisp.js adds .js-reveal, then .is-in) */
  .js-reveal .reveal:not(.is-in) { opacity: 0; translate: 0 28px; }
  .js-reveal .reveal { transition: opacity 640ms var(--ease-out), translate 640ms var(--ease-out); }
  .js-reveal .reveal:nth-child(2), .js-reveal .plan:nth-child(2) { transition-delay: 90ms; }
  .js-reveal .reveal:nth-child(3) { transition-delay: 180ms; }

  /* the magnetic buttons spring back when the pointer leaves (wisp.js writes --mx/--my) */
  .magnet { transition: translate 320ms cubic-bezier(0.3, 1.6, 0.5, 1), background-color 120ms var(--ease), box-shadow 240ms var(--ease), transform 120ms var(--ease); translate: calc(var(--mx, 0) * 10px) calc(var(--my, 0) * 7px); }
  .magnet.is-live { transition-duration: 60ms; }

  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    .progress { animation: grow-x 1ms linear both; animation-timeline: scroll(root block); }

    /* parallax: as the hero scrolls away, the Mac lifts and the phone and log sink, so the layers separate */
    @media (min-width: 561px) {
      .demo__mac { animation: para-up 1ms linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
      .demo__phone, .demo__log { animation: para-down 1ms linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    }
  }
}

/* forced colours: drop the painted atmosphere so text sits on the system canvas, with no boxes behind it */
@media (forced-colors: active) {
  .hero__bg, .hero::after, .closing__bg, .pricing__glow, .route__bg, .reach__bg, .closing__stage::after, .demo__glare, .fog { display: none; }
  .hero, .dl-hero, .pricing, .closing, .route, .reach, .scrub, .faq { background: Canvas; }
  .pill, .site-nav .nav-cta { border: 1px solid ButtonText; }
  .site-header::after { background: CanvasText; opacity: 1; animation: none; }
  .route__path, .sframe path { stroke: Highlight; }
  .swarm { display: none; }
  .rf-line { stroke: CanvasText; }
  .rf-soft { stroke: GrayText; }
  .reach__fig text { fill: CanvasText; }
  .reach__fig .rf-fill { fill: none; }
  .route__fig text, .route__mid text { fill: CanvasText; }
  .route__end rect { fill: Canvas; stroke: CanvasText; }
  .route__end path { stroke: CanvasText; }
  .route__mid circle { fill: Canvas; stroke: CanvasText; }
  .route__pick label { forced-color-adjust: none; background: Canvas; color: ButtonText; border: 1px solid ButtonText; }
  .route__pick input:checked + label { background: Highlight; color: HighlightText; border-color: Highlight; }
  .route__pick input:focus-visible + label { outline: 3px solid CanvasText; }
  .route__mid { opacity: 0.6; }
  .site-header { background: Canvas; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .motion-toggle { border: 1px solid ButtonText; }
  .motion-toggle[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .motion-toggle[aria-pressed="true"]::after { color: HighlightText; }
  .route__copy .motion-toggle, .reach__stage .motion-toggle { padding-inline: 14px; border-color: ButtonText; text-decoration: none; }
  .route__copy .motion-toggle[aria-pressed="true"], .reach__stage .motion-toggle[aria-pressed="true"] { background: Highlight; border-color: Highlight; }
}

/* ---------------------------------------------------------------- app store, once released */

/* The header carries one pill: Download on a pointer screen, Get the app on a touch screen (iPhone, iPad).
   Only rendered once the app is on the App Store (build_site.py, APP_ON_STORE). */
.site-nav .nav-cta--store { display: none; }

@media (hover: none) and (pointer: coarse) {
  .site-nav .nav-cta--host:has(~ .nav-cta--store) { display: none; }
  .site-nav .nav-cta--store { display: inline-flex; align-items: center; }

  /* a phone visitor needs the app before the Host: the App Store button comes first and lit */
  .hero__cta--store .cta-store {
    order: -1;
    background: var(--mint);
    color: var(--ink-900);
    box-shadow: none;
  }
  .hero__cta--store .cta-store:hover { background: #c4f9ef; }
  /* the download page on a phone: where the Host goes, then the app first and the disk image quiet */
  .dl-hero__touch { display: block; }
  .dl-hero__next { display: none; }
  .dl-hero .dl-hero__dmg { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
  .hero__cta--store .cta-host {
    background: transparent;
    color: var(--fg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  }
}
