/* Helm, direction D "Paper". Serif heads on warm paper, a quiet sans for the rest, one blue accent. */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-latin-opsz.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/HankenGrotesk-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks, measured against the web faces, so nothing jumps when they load. */
@font-face {
  font-family: "Serif Fallback";
  src: local("Times New Roman"), local("Times");
  size-adjust: 100.2%;
  ascent-override: 103.4%;
  descent-override: 33.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Sans Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 100.9%;
  ascent-override: 99.1%;
  descent-override: 30%;
  line-gap-override: 0%;
}

:root {
  --p0: #FBF8F2;      /* paper */
  --p1: #F6F2E9;      /* paper, one step down (the tour band) */
  --p2: #FFFEFB;      /* paper, one step up (the price) */
  --ink: #17150F;
  --body: #55514A;
  --muted: #68635A;
  --accent: #1F55D6;  /* the app's blue, tuned for text on paper */
  --ring: rgba(23, 21, 15, .14);
  --tone-blue: #C9D1DE;
  --tone-peach: #DED1C9;
  --tone-mint: #C7DDD8;

  --serif: "Source Serif 4", "Serif Fallback", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Sans Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --g: 20px;                         /* side gutter */
  --sec: 80px;                       /* section padding */
  --ease: cubic-bezier(.215, .61, .355, 1);
}
@media (min-width: 700px)  { :root { --g: 32px; --sec: 112px; } }
@media (min-width: 1100px) { :root { --g: 64px; --sec: 152px; } }

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #CFC8B8 var(--p0);
  caret-color: var(--accent);
}
body {
  margin: 0;
  background: var(--p0);
  color: var(--body);
  font: 400 17px/28px var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: #C7D5F7; color: var(--ink); }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
section[id] { scroll-margin-top: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 2 * var(--g)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: var(--p0); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3, .mark, .proof__fact, .sentence {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-variation-settings: "opsz" 26;
  color: var(--ink);
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: 36px; line-height: 1.1; }
h2 { font-size: 31px; line-height: 1.2; }
@media (min-width: 700px)  { h1 { font-size: 56px; } h2 { font-size: 40px; line-height: 1.15; } }
@media (min-width: 1100px) { h1 { font-size: 72px; line-height: 1.1; } h2 { font-size: 48px; line-height: 1.15; } }

.lede { font-size: 18px; line-height: 28px; color: var(--body); max-width: 620px; margin-inline: auto; text-wrap: pretty; }
@media (min-width: 700px) { .lede { font-size: 20px; line-height: 32px; } }
.fine { font-size: 14px; line-height: 22px; color: var(--muted); text-wrap: pretty; }
.cap { font-size: 14px; line-height: 22px; color: var(--muted); text-align: center; margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  background: var(--ink); color: var(--p0);
  border-radius: 8px; text-decoration: none;
  font: 500 16px/1 var(--sans); height: 44px; padding: 0 24px;
  box-shadow: 0 0 0 0 var(--ink);
  transition: box-shadow .2s ease-in-out, background-color .1s ease-in-out;
}
.btn:hover { box-shadow: 0 0 0 2px var(--ink); background: #2A2720; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 15px; }

/* ---------- header ---------- */
.site { background: var(--p0); }
.site__row { display: flex; align-items: center; gap: 20px; height: 60px; }
.mark { font-size: 26px; line-height: 1; text-decoration: none; margin-right: auto; padding: 8px 0; }
.mark--sm { font-size: 22px; }
.site__nav { display: flex; gap: 18px; font-size: 15px; }
.site__nav a { text-decoration: none; color: var(--body); padding: 10px 2px; transition: color .1s; }
.site__nav a:hover { color: var(--ink); text-decoration: underline; }
.hide-sm { display: none; }
@media (min-width: 700px) {
  .site__row { height: 76px; gap: 28px; }
  .site__nav { gap: 28px; }
  .hide-sm { display: inline; }
}

/* ---------- hero ---------- */
.hero { padding: 40px 0 var(--sec); text-align: center; }
.hero h1 { margin-inline: auto; }
.hero .lede { margin-top: 20px; }
.cta { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta .btn { max-width: 100%; }
.cta .fine { max-width: 420px; }
.figure { margin-top: 48px; }
@media (min-width: 700px) {
  .hero { padding-top: 72px; }
  .hero .lede { margin-top: 24px; }
  .cta { margin-top: 32px; }
  .figure { margin-top: 72px; }
}

/* ---------- panels and windows ---------- */
[data-tone="blue"]  { --tone: var(--tone-blue); }
[data-tone="peach"] { --tone: var(--tone-peach); }
[data-tone="mint"]  { --tone: var(--tone-mint); }

.panel, .stage {
  position: relative; overflow: hidden; container-type: inline-size;
  background: var(--tone, var(--tone-blue)); border-radius: 20px;
}

/* a window on a panel: position and crop come from custom properties (fractions of the panel's width) */
.cwin {
  --l: var(--w-l); --t: var(--w-t); --w: var(--w-w); --ar: var(--w-ar); --rx: var(--w-rx); --ry: var(--w-ry); --rw: var(--w-rw);
  position: absolute; background: #fff; overflow: hidden; border-radius: 10px;
  left: calc(100cqw * var(--l)); top: calc(100cqw * var(--t));
  width: calc(100cqw * var(--w)); height: calc(100cqw * var(--w) / var(--ar));
  box-shadow: 0 0 0 1px rgba(23, 21, 15, .1), 0 16px 40px -12px rgba(60, 45, 15, .17);
}
.cwin .media {
  position: absolute; left: 0; top: 0; width: calc(100% / var(--rw)); aspect-ratio: var(--ia, 1.6);
  transform: translate(calc(var(--rx) * -100%), calc(var(--ry) * -100%));
}
.media > img, .media > video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.media > video { background: #fff; object-fit: fill; }
.media > .rest, .media > video { opacity: 0; transition: opacity .2s linear; }
@media (min-width: 700px) { .cwin[data-w="off"] { display: none; } }
@media (max-width: 699px) {
  .cwin { --l: var(--n-l); --t: var(--n-t); --w: var(--n-w); --ar: var(--n-ar); --rx: var(--n-rx); --ry: var(--n-ry); --rw: var(--n-rw); }
  .cwin[data-n="off"], .cwin--mac { display: none; }
}
.panel .soft { position: absolute; right: 14px; top: 14px; z-index: 3; background: rgba(255, 254, 251, .7); }
.panel--lives .soft { display: none; }
@media (min-width: 700px) { .panel--lives .soft { display: inline-block; top: 12px; right: 14px; } }
.panel--hero { aspect-ratio: 353 / 455; }
.panel--big { aspect-ratio: 353 / 329; }
.panel--asks { aspect-ratio: 353 / 345; }
.panel--lives { aspect-ratio: 353 / 330; }
@media (min-width: 700px) {
  .panel--hero { aspect-ratio: 1200 / 590; }
  .panel--big { aspect-ratio: 1200 / 760; }
  .panel--asks { aspect-ratio: 1200 / 367; }
  .panel--lives { aspect-ratio: 700 / 400; }
}

/* ---------- the tour ---------- */
.band { background: var(--p1); padding: var(--sec) 0; }
.head { text-align: center; }
.head .lede { margin-top: 16px; }
.tour-ui { margin-top: 48px; }
.tour-ui:empty { display: none; }
@media (min-width: 1100px) { .tour-ui { margin-top: 72px; } }

.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
.side, .main { display: contents; }

.stage { aspect-ratio: 1 / 1; touch-action: pan-y; user-select: none; -webkit-user-select: none; order: 1; }
@media (min-width: 700px) { .stage { aspect-ratio: 840 / 560; } }

.frame { position: absolute; inset: 0; visibility: hidden; }
.frame.is-active, .frame.is-leaving { visibility: visible; }
.frame.is-active { z-index: 2; }
.frame.is-leaving { z-index: 1; animation: leave .14s linear both; }
@keyframes leave { from { opacity: 1; } to { opacity: 0; } }
.frame.is-fresh .cwin { animation: rise .45s var(--ease) both; }
.frame.is-playing video { opacity: 1; }
.frame.is-rest .rest { opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.soft {
  display: inline-block; font: 500 12px/18px var(--sans); color: var(--body);
  padding: 0 8px; border-radius: 8px; box-shadow: 0 0 0 1px var(--ring); white-space: nowrap;
}
.frame .soft { display: none; position: absolute; right: 14px; top: 14px; z-index: 3; background: rgba(255, 254, 251, .7); }
@media (min-width: 700px) { .frame .soft { display: inline-block; } }

.play {
  display: none; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3;
  align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px;
  background: var(--p2); color: var(--ink); border: 0; border-radius: 8px; cursor: pointer;
  font: 500 15px/1 var(--sans); box-shadow: 0 0 0 1px var(--ring);
  transition: box-shadow .2s ease-in-out;
}
.play:hover { box-shadow: 0 0 0 2px var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .frame.is-rest .play { display: inline-flex; }
}

/* the steps: five or six bars on a phone, a timeline beside the stage on a wide screen */
.tabs { display: flex; flex-direction: row; gap: 6px; order: 2; margin-top: 20px; }
.tab {
  flex: 1; position: relative; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 400 18px/1.35 var(--sans); color: var(--muted); text-align: left;
  display: flex; align-items: center; justify-content: center; border-radius: 8px;
}
.tab::before { content: ""; display: block; width: 100%; height: 4px; border-radius: 2px; background: rgba(23, 21, 15, .16); }
.tab[data-done]::before { background: rgba(23, 21, 15, .4); }
.tab[aria-selected="true"]::before { background: var(--accent); }
.tab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.tab .soft { display: none; }

.stepline { order: 3; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.stepline__now { display: block; font-size: 14px; line-height: 20px; color: var(--muted); }
.stepline__name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 17px/24px var(--sans); color: var(--ink); }
.arrows { display: flex; gap: 8px; flex: none; }
.arrow {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--p2); color: var(--ink); box-shadow: 0 0 0 1px var(--ring); transition: box-shadow .2s ease-in-out;
}
.arrow:hover { box-shadow: 0 0 0 2px var(--ink); }
.arrow[disabled] { color: #A39D90; cursor: default; box-shadow: 0 0 0 1px rgba(23, 21, 15, .08); }
.sentence-wrap { order: 4; display: grid; margin-top: 20px; }
.sentence, .ghost { grid-area: 1 / 1; font-weight: 400; font-size: 24px; line-height: 33px; margin: 0; text-wrap: pretty; }
.sentence.is-swap { animation: fade .2s ease-out; }
.ghost { visibility: hidden; }

@media (min-width: 1000px) {
  .tour-grid { grid-template-columns: 340px minmax(0, 1fr); gap: 56px; max-width: none; align-items: start; }
  .side { display: block; }
  .main { display: flex; flex-direction: column; gap: 28px; }
  .stage, .sentence-wrap { order: 0; }
  .sentence-wrap { margin: 0; }
  .sentence, .ghost { font-size: 28px; line-height: 38px; max-width: 760px; }
  .tabs { flex-direction: column; gap: 0; margin: 0; position: relative; }
  .tabs::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 24px; width: 1px; background: rgba(23, 21, 15, .18); }
  .tab { flex: none; justify-content: flex-start; padding: 9px 0 9px 38px; gap: 12px; min-height: 48px; }
  .tab::before {
    position: absolute; left: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
    background: var(--p1); box-shadow: inset 0 0 0 1.5px #B3AC9E;
  }
  .tab[data-done]::before { left: 6px; width: 8px; height: 8px; margin-top: -4px; background: #8F897D; box-shadow: none; }
  .tab[aria-selected="true"]::before {
    left: 5px; width: 10px; height: 10px; margin-top: -5px; background: var(--accent);
    box-shadow: 0 0 0 3px var(--p1), 0 0 0 4.5px var(--accent);
  }
  .tab:hover { color: var(--ink); }
  .tab[aria-selected="true"] { color: var(--ink); font-weight: 500; }
  .tab .soft { display: inline-block; }
  .tab__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal; }
  .stepline { display: none; }
}
.cap--tour { margin-top: 40px; }

/* no-script fallback */
.plain { display: grid; gap: 56px; max-width: 640px; margin: 48px auto 0; }
.plain h3 { font-size: 24px; line-height: 1.2; margin-bottom: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.plain p { margin-top: 16px; font-family: var(--serif); font-size: 22px; line-height: 31px; color: var(--ink); }
.stage--plain .frame { visibility: visible; }

/* ---------- the computer ---------- */
.computer { padding: var(--sec) 0; }
.prose { max-width: 620px; margin-inline: auto; display: grid; gap: 18px; }
.prose p { text-wrap: pretty; }
.prose strong { font-weight: 600; color: var(--ink); }
.computer .panel--big { margin-top: 48px; }
.computer .sub { text-align: center; font-size: 26px; line-height: 1.2; margin: 56px 0 24px; }
.computer .center + .prose { margin-top: 28px; }
@media (min-width: 700px) {
  .computer .panel--big { margin-top: 64px; }
  .computer .sub { font-size: 36px; line-height: 1.2; margin: 88px 0 32px; }
}

/* ---------- asks / lives / ai ---------- */
.center { text-align: center; }
.asks { padding: var(--sec) 0; }
.lives { padding: var(--sec) 0; }
.lead { margin-top: 16px; text-align: center; }
.lead .soft { margin-left: 8px; vertical-align: 2px; }
.ai { padding: 0 0 var(--sec); }
.asks .prose { margin-top: 28px; justify-items: center; text-align: center; }
.asks .panel--asks { margin-top: 40px; }
.split { display: grid; gap: 32px; margin-top: 32px; }
.split__text { display: grid; gap: 28px; align-content: start; justify-items: start; }
.split__text p { text-wrap: pretty; }
.leaves { display: grid; gap: 10px; padding-top: 4px; }
.leaves h3 { font-size: 22px; line-height: 1.25; }
.leaves p { font-size: 16px; line-height: 26px; color: var(--body); }
.ai__text { display: grid; gap: 14px; max-width: 560px; margin: 28px auto 0; }
.ai__text p { text-wrap: pretty; }
.ai__text .fine { display: flex; align-items: center; gap: 10px; }
@media (min-width: 700px) { .split { margin-top: 48px; gap: 40px; } .leaves h3 { font-size: 24px; } .asks .panel--asks { margin-top: 56px; } }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 80px; align-items: center; margin-top: 56px; }
  .split__text { order: 2; }
  .ai__text { margin-top: 36px; }
}

/* ---------- price ---------- */
.price { background: var(--p2); padding: var(--sec) 0; }
.price h2 { text-align: center; }
.price__grid { display: grid; gap: 40px; max-width: 1000px; margin: 40px auto 0; }
.included li { display: flex; gap: 14px; padding: 7px 0; color: var(--ink); }
.included svg { flex: none; margin-top: 4px; color: var(--muted); }
.price__buy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.price__buy .btn { max-width: 100%; }
.price__soon { text-align: center; margin-top: 16px; }
.price__soon .soft { font-size: 13px; line-height: 22px; padding: 0 10px; }

/* the waitlist: one email field, one button */
.wl { width: 100%; max-width: 480px; scroll-margin-top: 96px; }
.wl__form { display: grid; gap: 10px; }
.wl__lede { color: var(--ink); text-wrap: pretty; margin-bottom: 8px; }
.wl__label { font: 500 15px/20px var(--sans); color: var(--ink); }
.wl__row { display: flex; flex-wrap: wrap; gap: 10px; }
.wl__input {
  flex: 1 1 220px; min-width: 0; height: 44px; padding: 0 14px;
  font: 400 16px/1 var(--sans); color: var(--ink); background: #fff;
  border: 0; border-radius: 8px; box-shadow: 0 0 0 1px rgba(23, 21, 15, .22);
  transition: box-shadow .2s ease-in-out;
}
.wl__input:hover { box-shadow: 0 0 0 1px rgba(23, 21, 15, .4); }
.wl__input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wl__input[aria-invalid="true"] { box-shadow: 0 0 0 1px #A4341B; }
.wl__btn { flex: 1 1 auto; border: 0; cursor: pointer; }
.wl__btn[disabled] { cursor: progress; background: #4A463E; box-shadow: none; }
.wl__msg { font-size: 15px; line-height: 22px; color: #A4341B; }
.wl__done { color: var(--ink); font: 500 22px/31px var(--serif); font-variation-settings: "opsz" 26; text-wrap: pretty; padding: 4px 0; }
.wl__done:focus { outline: none; }
.wl__done:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.wl__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 480px) { .wl__btn { flex: 0 0 auto; } }
@media (min-width: 700px) { .price__grid { margin-top: 56px; } .price__soon { margin-top: 20px; } }
@media (min-width: 1000px) { .price__grid { grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; } }

/* ---------- footer ---------- */
.foot { padding: 40px 0 48px; font-size: 14px; line-height: 22px; color: var(--muted); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.foot a { text-decoration: none; padding: 8px 0; }
.foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
