@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --bg: #d6d6d6;
  --surface: #e2e2e2;
  --ink: #1c1c1c;
  --muted: #4f4f4f;
  --line: #b8b8b8;
  --field: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1c1c;
    --surface: #272727;
    --ink: #e6e6e6;
    --muted: #a3a3a3;
    --line: #3a3a3a;
    --field: #111111;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1c1c;
  --surface: #272727;
  --ink: #e6e6e6;
  --muted: #a3a3a3;
  --line: #3a3a3a;
  --field: #111111;
  color-scheme: dark;
}

/* One scale for the whole site (the same in page.css). Five text sizes, each with its own
   line height and used the same way on every page: display (the page's title), section (a
   home page section's heading), sub (headings within a section or a page, the lede), body,
   small (notes, captions, the footer). Spacing in multiples of 8. One button height. */
:root {
  --fs-display: clamp(2.5rem, 6vw, 4rem);      --lh-display: 1.05;
  --fs-section: clamp(1.75rem, 3.5vw, 2.25rem); --lh-section: 1.15;
  --fs-sub: 1.25rem;                            --lh-sub: 1.4;
  --fs-body: 1.0625rem;                         --lh-body: 1.6;
  --fs-small: 0.9375rem;                        --lh-small: 1.5;
  --button: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
/* The waitlist button scrolls to the signup; smoothly unless motion is reduced. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#waitlist { scroll-margin-top: 32px; }

/* Buttons: primary (filled) and secondary (outlined), one height, padding and radius. */
.button, .row button, .theme {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--button); padding: 0 24px; border-radius: 6px;
  font: inherit; font-size: var(--fs-body); font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
}
.button:hover, .row button:hover { opacity: 0.88; }
.button.secondary, .theme { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover, .theme:hover { opacity: 1; border-color: var(--muted); }
.row button:disabled { opacity: 0.5; cursor: default; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { display: block; width: 24px; height: 24px; }
.theme { font-weight: 500; padding: 0 16px; }

/* Hero: the icon centred on top, the words centred under it, at every width */
.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 48px;
  padding-block: 48px 96px;
}
/* The page's one heading names the app, a small line above the visual headline; the two are
   an hgroup, the headline a paragraph within it. */
.title { margin: 0; }
.title h1 {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 600;
  color: var(--muted);
  margin: 0 auto 16px;
  max-width: 40ch;
}
.headline {
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: -0.03em;
  margin: 0 auto 24px;
  max-width: 15ch;
}
.lede { font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--muted); max-width: 36ch; margin: 0 auto 32px; }
.lede strong { color: var(--ink); font-weight: 500; }

/* The app icon, white on its dark tile in either theme */
.hero .art { position: relative; order: -1; width: clamp(200px, 28vw, 320px); }
.hero .art { container-type: inline-size; }
.shell, .shell-tile { display: block; width: 100%; height: auto; overflow: visible; }
.shell-tile { position: relative; }
.shell { position: absolute; inset: 0; }
/* The icon's drop shadow (icon-full.svg's: 10 down, blur 10, 30% black, on the 1024 grid)
   as a box-shadow on the tile's box. An SVG blur filter here made a mobile Lighthouse run
   stall for up to 1.3 s in 2 runs of 5; without it, 10 of 10 ran clean. */
.shell-shadow {
  position: absolute; left: 9.766%; top: 9.766%; width: 80.469%; height: 80.469%;
  border-radius: 22.5%; box-shadow: 0 0.977cqw 1.953cqw rgb(0 0 0 / 0.3);
}
.shell, .shell-tile { will-change: transform; }
.shell-tile .tile { fill: #111111; }
.shell .whorl { fill: #ffffff; stroke: #ffffff; stroke-width: 8; stroke-linejoin: round; stroke-opacity: 0; }

/* The same icon in 3D, turned by icon3d.js as the hero scrolls away. The drawing itself
   turns first (a CSS transform); the canvas, larger than the icon so a turned corner isn't
   cut, fades in over it once the icon is visibly turning and the canvas has a frame up, and
   the drawing goes when the fade ends; without WebGL or motion the drawing stays. */
[data-icon3d] canvas { position: absolute; pointer-events: none; opacity: 0; transition: opacity .2s linear; }
[data-icon3d].is-live canvas { opacity: 1; }
[data-icon3d].is-live .shell-tile, [data-icon3d].is-live .shell { visibility: hidden; transition: visibility 0s .2s; }
body { overflow-x: clip; }

/* Download */
.get { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0 auto 48px; max-width: 46ch; }
.get span { color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-small); }

/* Signup */
.signup { max-width: 464px; margin: 32px auto 0; }
.hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.row { display: flex; gap: 8px; }
.row input {
  flex: 1; min-width: 0; height: var(--button);
  font: inherit; color: var(--ink);
  background: var(--field);
  border: 1px solid var(--muted); border-radius: 6px;
  padding: 0 16px;
}
.row input::placeholder { color: var(--muted); }
.note { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); margin: 8px 0 0; min-height: 1.5em; }
.note a { color: inherit; white-space: nowrap; }
.note[data-state="ok"] { color: var(--ink); }

/* Sections: one centred column each; long text stays left-aligned inside it. */
section { border-top: 1px solid var(--line); padding-block: 96px; text-align: center; }
h2 {
  font-weight: 700;
  font-size: var(--fs-section);
  line-height: var(--lh-section);
  letter-spacing: -0.02em;
  margin: 0;
}

.terms { margin: 48px auto 0; display: grid; gap: 0; max-width: 624px; }
.terms div { padding-block: 24px; border-bottom: 1px solid var(--line); }
.terms div:first-child { padding-top: 0; }
.terms div:last-child { border-bottom: 0; }
.terms dt { font-weight: 600; font-size: var(--fs-sub); line-height: var(--lh-sub); margin-bottom: 8px; }
.terms dd { margin: 0 auto; color: var(--muted); max-width: 54ch; }

/* Chambers: the app's four places */
.chambers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 48px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.chamber { padding: 32px 24px; background: var(--surface); }
.chamber + .chamber { border-left: 1px solid var(--line); }
.chamber h3 { font-size: var(--fs-sub); line-height: var(--lh-sub); font-weight: 600; margin: 0 0 8px; }
.chamber p { margin: 0; color: var(--muted); }
.chamber svg { display: block; width: 32px; height: 32px; margin: 0 auto 16px; color: var(--ink); }

/* Price */
.price { margin: 32px auto 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; max-width: 44ch; }
.price p { margin: 0; }
.price .beta { font-size: var(--fs-sub); line-height: var(--lh-sub); }
.price .beta strong { font-weight: 600; }
.price .later { color: var(--muted); margin-top: 8px; }
.price .sale { color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-small); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.price .sale a { color: var(--ink); }
.price .platforms { color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-small); margin-top: 8px; }

/* The questions: a centred column, read left to right. */
.faq { max-width: 680px; margin: 32px auto 0; text-align: left; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none;
  padding-block: 24px; font-weight: 600; font-size: var(--fs-sub); line-height: var(--lh-sub);
  display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 24px; color: var(--muted); max-width: 58ch; }


footer {
  border-top: 1px solid var(--line); padding-block: 48px 64px;
  color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-small);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.social a { color: var(--muted); text-decoration: none; }
.social a:hover { color: var(--ink); text-decoration: underline; }

/* Single orchestrated moment: the shell's outline draws itself once on load, from the
   notch out round the whorl to the tail, then fills, and it is the icon. */
@media (prefers-reduced-motion: no-preference) {
  .shell .whorl {
    fill-opacity: 0; stroke-opacity: 1; stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: draw 2.4s cubic-bezier(.55,.1,.25,1) .15s forwards, fill .6s ease-out 2.45s forwards;
  }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes fill { 85% { stroke-opacity: 1; } to { fill-opacity: 1; stroke-opacity: 0; } }
}

/* Phones: one thing at a time, more air between sections, nothing side by side. */
@media (max-width: 860px) {
  .hero { gap: 32px; padding-block: 32px 80px; }
  .hero .art { width: 200px; }
  .chambers { grid-template-columns: 1fr; }
  .chamber + .chamber { border-left: 0; border-top: 1px solid var(--line); }
  section { padding-block: 80px; }
}
@media (max-width: 600px) {
  .row { flex-direction: column; }
  .row button { width: 100%; }
  .row input { flex: none; }
}
