/* Imara's public website. The look is the app's own (docs/design-v9b/README.md
   in the Imara repo): Jost, the stone ground, off-white cards with radius 30,
   big lowercase titles, small spaced capitals above sections, burnt orange as
   the one action colour, colour carried by the shapes, flat (no shadows, no
   gradients).

   Every colour below is a value of app/lib/theme/palette.dart: Palette.light,
   and Palette.dark under prefers-color-scheme. Change a colour there first,
   then here. The one value of our own is --frame, the phone drawn around a
   screen of the app.

   The page assumes its script ran; assets/nojs.css (loaded in <noscript>)
   lays out what the script would have done when it did not. */

:root {
  color-scheme: light dark;
  --ink: #1C1A1F;
  --muted: #5F5B63;
  --label: #75716B;
  --ground: #EDEBE7;
  --card: #FAF9F7;
  --field: #F3F1ED;
  --raised: #FFFFFF;
  --line: #E4E1DB;
  --ember: #C2531B;
  --ember-deep: #A3441A;
  --ember-tint: #F6DDD0;
  --plum: #6B47C8;
  --plum-tint: #E9E3F5;
  --green: #0E8A66;
  --green-mark: #0E8A66;
  --green-tint: #DDF3EA;
  --butter: #F2C14E;
  --rose: #C9658F;
  --on-ink: #FFFFFF;
  --white: #FFFFFF;
  --ink-fixed: #1C1A1F;
  --frame: #1C1A1F;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F5F5F7;
    --muted: #B4B4B6;
    --label: #A2A2A4;
    --ground: #000000;
    --card: #1C1C1E;
    --field: #2C2C2E;
    --raised: #363638;
    --line: #3A3A3C;
    --ember: #C2531B;
    --ember-deep: #F0895A;
    --ember-tint: #441D09;
    --plum: #8466D6;
    --plum-tint: #281F40;
    --green: #188E6B;
    --green-mark: #63CBA8;
    --green-tint: #083225;
    --butter: #E0B347;
    --rose: #CE6C95;
    --on-ink: #000000;
    --frame: #2C2C2E;
  }
  /* The lion is ink lines on nothing: on dark his lines are drawn in the
     page's ink by the same colour matrix the app uses (lionOnDark). */
  .lion { filter: url(#lion-on-dark); }
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 Jost, "Avenir Next", system-ui, sans-serif;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
p { margin: 0 0 14px; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible, .nav-link:focus-visible, .chip:focus-visible, .tab:focus-visible, .round:focus-visible, .menu-btn:focus-visible { border-radius: 999px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.nojs-only { display: none !important; }
.nojs-inline { display: none; }

.skip {
  position: absolute; left: 20px; top: -80px; z-index: 50;
  background: var(--ink); color: var(--on-ink); padding: 12px 20px;
  border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 900px) { :root { --gutter: 40px; } }

.i { width: 20px; height: 20px; flex: none; }

/* ── Type ─────────────────────────────────────────────── */
.title, .h1 {
  font-weight: 700; line-height: 0.95; letter-spacing: -0.025em;
  font-size: clamp(48px, 9vw, 96px); text-wrap: balance;
}
.h1 { font-size: clamp(40px, 6.4vw, 72px); }
.h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1; letter-spacing: -0.025em; margin: 0 0 14px; text-wrap: balance; }
.h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; font-weight: 600; }
.line {
  font-weight: 500; font-size: 13px; line-height: 1.5; letter-spacing: 0.14em;
  color: var(--muted); text-transform: lowercase; margin: 16px 0 0;
}
.caps {
  font-weight: 500; font-size: 12px; line-height: 1.4; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 14px;
}
.card .caps { color: var(--label); }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 34em; color: var(--muted); text-wrap: pretty; }
.muted { color: var(--muted); }
.h1 + .lead, .title + .lead, .h1 + p, .line + .lead { margin-top: 20px; }
.small { font-size: 15px; }
.center { text-align: center; }
.link { color: var(--ember-deep); font-weight: 600; }
.more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; text-decoration: underline;
}
.more .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.more:hover .i { transform: translateX(3px); }

/* ── The bar at the top ───────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 30; background: var(--ground);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.word {
  font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink); padding: 6px 0; margin-right: auto;
}
.site-nav { display: contents; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; background: none; border: 0; color: var(--ink);
  font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.nav-link:hover { background: var(--field); }
.nav-link[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
.nav-link .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav-link[aria-expanded="true"] .i { transform: rotate(180deg); }
.has-menu { position: relative; }
.who-menu {
  list-style: none; display: none; position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%); width: 380px; padding: 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: 30px; z-index: 40;
}
.who-menu.open { display: grid; gap: 2px; }
.who-menu a {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 22px;
  text-decoration: none; color: var(--ink);
}
.who-menu a:hover, .who-menu a[aria-current="page"] { background: var(--field); }
.who-menu .dot { width: 34px; flex: none; }
.who-sub { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
.who-menu strong { font-weight: 600; display: block; line-height: 1.3; }
.menu-cta { display: none; }
.btn-head { height: 44px; min-width: 0; padding: 0 20px; font-size: 16px; margin-left: 8px; }

.menu-btn {
  display: none; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: none; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 14px;
}
.menu-btn .i + .i, .menu-btn[aria-expanded="true"] .i:first-child { display: none; }
.menu-btn[aria-expanded="true"] .i + .i { display: block; }

@media (max-width: 1023px) {
  .menu-btn { display: grid; }
  .btn-head { height: 44px; padding: 0 18px; font-size: 15px; }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 24px;
    background: var(--ground); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .nav-list.open { display: flex; }
  .nav-link { width: 100%; min-height: 52px; font-size: 19px; padding: 0 16px; justify-content: space-between; }
  .who-menu { position: static; transform: none; width: auto; border: 0; padding: 0 0 6px; background: none; }
  .who-menu a { padding: 10px 16px; }
  .menu-cta { display: block; padding: 16px 0 0; text-align: center; }
}

/* ── Buttons and pills ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; min-width: 210px; padding: 0 30px; border-radius: 999px; border: 0;
  background: var(--ember); color: var(--white); font-weight: 600; font-size: 17px;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #AE4917; }
.btn:active { opacity: 0.85; }
.btn-big { height: 56px; min-width: 230px; font-size: 18px; }
.btn-ghost {
  background: none; color: var(--ink); border: 1.5px solid var(--ink); min-width: 0;
}
.btn-ghost:hover { background: var(--field); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 28px 0 0; }
.round {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 50%; border: 1.5px solid var(--ink); background: none; color: var(--ink);
}
.round:hover { background: var(--field); }

/* "Coming soon" pills. Neither store's badge or logo is used before the app
   is in the store: Apple licenses its badge only for apps available on the
   App Store, and Google's badge only for content available on Google Play
   (README.md, "The store badges"). */
.stores { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 22px 8px 16px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); text-align: left;
}
.store .i { width: 22px; height: 22px; color: var(--muted); }
.store-small { display: block; font-size: 12px; line-height: 1.2; color: var(--muted); }
.store-big { display: block; font-size: 17px; line-height: 1.2; font-weight: 600; }

/* ── Cards, shapes ────────────────────────────────────── */
.card { background: var(--card); border-radius: 30px; padding: 28px 24px; }
@media (min-width: 900px) { .card { padding: 36px 38px; } }
@media (max-width: 479px) {
  .btn-head { display: none; }
  .store { padding: 8px 16px 8px 12px; gap: 10px; }
  .stores { gap: 8px; }
}
.card > :last-child { margin-bottom: 0; }

.shape {
  display: block; aspect-ratio: 1; background: var(--c, var(--ember));
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.s-circle { border-radius: 50%; }
.s-flower { -webkit-mask-image: url(shapes/flower.svg); mask-image: url(shapes/flower.svg); }
.s-cloud { -webkit-mask-image: url(shapes/cloud.svg); mask-image: url(shapes/cloud.svg); }
.s-hex { -webkit-mask-image: url(shapes/hex.svg); mask-image: url(shapes/hex.svg); }
.s-soft { -webkit-mask-image: url(shapes/soft.svg); mask-image: url(shapes/soft.svg); }
.c-plum { --c: var(--plum); }
.c-green { --c: var(--green); }
.c-butter { --c: var(--butter); }
.c-rose { --c: var(--rose); }
.c-ember { --c: var(--ember); }

/* An icon on a shape, in a box of its own so the mask does not clip it. */
.badge { position: relative; display: grid; place-items: center; width: 64px; aspect-ratio: 1; flex: none; }
.badge .shape { position: absolute; inset: 0; }
.badge .i { position: relative; width: 26px; height: 26px; color: var(--white); }
.badge.on-butter .i { color: var(--ink-fixed); }

/* ── A phone drawn around a real screen of the app ────── */
.phone {
  position: relative; width: var(--pw, 280px); max-width: 100%; padding: 9px;
  border-radius: 48px; background: var(--frame);
}
.phone::before {
  content: ""; position: absolute; z-index: 2; top: 16px; left: 50%; width: 26%; height: 18px;
  transform: translateX(-50%); border-radius: 999px; background: var(--frame);
}
.screen {
  position: relative; aspect-ratio: 540 / 1172; border-radius: 39px; overflow: hidden; background: var(--ground);
}
.screen img, .screen picture { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── Sections ─────────────────────────────────────────── */
.section { padding: 88px 0 0; }
@media (min-width: 900px) { .section { padding-top: 140px; } }
.section-head { max-width: 760px; margin: 0 0 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ── The hero ─────────────────────────────────────────── */
.hero { display: grid; gap: 48px; align-items: center; padding: 28px 0 0; }
.hero .title { font-size: clamp(46px, 7.4vw, 92px); max-width: 9.6em; }
.hero .lead { margin: 24px 0 0; color: var(--muted); }
.hero-art { position: relative; display: grid; justify-items: center; padding: 30px 0 10px; }
.hero-art .phone { --pw: min(300px, 64vw); }
.hero-art .k1 { position: absolute; width: 58%; max-width: 300px; top: 0; left: 4%; }
.hero-art .k2 { position: absolute; width: 34%; max-width: 170px; right: 2%; bottom: 14%; }
.hero-art .lion { position: absolute; z-index: 3; height: clamp(84px, 24vw, 120px); width: auto; left: max(0px, calc(50% - 32vw - 70px)); bottom: 0; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; gap: 56px; padding-top: 56px; min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); }
  .hero-art .phone { --pw: 320px; }
  .hero-art .lion { height: 150px; left: calc(50% - 290px); }
}

/* ── Tabs: one app for the whole building ─────────────── */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin: 0 auto 40px; width: max-content; max-width: 100%;
  background: var(--card); border-radius: 999px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; background: none;
  font-weight: 500; font-size: 16px; color: var(--ink); white-space: nowrap;
}
.tab:hover { background: var(--field); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.tabpanel { display: grid; gap: 36px; align-items: center; }
.tabpanel .phone { --pw: min(290px, 72vw); justify-self: center; }
.tabpanel-art { position: relative; display: grid; justify-items: center; }
.tabpanel-art .shape { position: absolute; width: 70%; max-width: 330px; top: 8%; }
.tabpanel-text .h2 { margin-bottom: 18px; }
.ticks { list-style: none; display: grid; gap: 14px; margin: 22px 0 18px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; line-height: 1.45; }
.ticks .tk {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px;
  border-radius: 50%; background: var(--field); color: var(--green-mark);
}
.ticks .tk .i { width: 16px; height: 16px; stroke-width: 2.5; }
@media (min-width: 900px) {
  .tabpanel { grid-template-columns: 1fr 1fr; gap: 72px; }
  .tabpanel .phone { --pw: 300px; }
}
@media (prefers-reduced-motion: no-preference) {
  .tabpanel.entering .tabpanel-art .phone { animation: rise .45s var(--ease) both; }
  .tabpanel.entering .tabpanel-text { animation: fade .45s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ── The story: a phone that stays while the words go by ─ */
.story { position: relative; }
.story-stage { display: none; }
.step { padding: 0 0 72px; }
.step .phone { --pw: min(270px, 70vw); margin: 26px auto 0; }
.step-num { font-weight: 600; color: var(--muted); font-size: 15px; letter-spacing: .08em; margin: 0 0 10px; display: flex; align-items: center; gap: 12px; }
.step-num .shape { width: 26px; }
.step .h2 { font-size: clamp(30px, 4vw, 44px); }
.step p { font-size: 18px; max-width: 30em; }
.step .note { font-size: 15px; color: var(--muted); }
@media (min-width: 960px) {
  .story { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
  .story-stage {
    display: grid; justify-items: center; align-items: center; position: sticky; top: 72px;
    height: calc(100vh - 72px); height: calc(100svh - 72px); order: 2;
  }
  .story-stage .stage-shape { position: absolute; width: 74%; max-width: 380px; transition: background-color .5s var(--ease); }
  .story-stage .phone { --pw: min(310px, calc((100svh - 140px) * 0.43)); }
  .story-stage .screen picture { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
  .story-stage .screen picture.on { opacity: 1; }
  .story-steps { order: 1; }
  .step { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .32; transition: opacity .4s var(--ease); }
  .step.on { opacity: 1; }
  .step .phone { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .story-stage .screen picture, .step, .story-stage .stage-shape { transition: none; }
}

/* ── The demo: the units board ────────────────────────── */
.demo { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .demo { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.board-card { padding: 26px 20px; }
@media (min-width: 900px) { .board-card { padding: 34px 34px; } }
.board-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 0 0 18px; }
@media (max-width: 520px) { .board-sum { text-align: left; } }
.board-title { font-size: 34px; line-height: 1; letter-spacing: -0.025em; font-weight: 700; }
.board-sum { text-align: right; font-size: 14px; color: var(--muted); }
.board-sum strong { display: block; color: var(--ink); font-size: 20px; }
.meter { height: 8px; border-radius: 999px; background: var(--field); overflow: hidden; margin: 0 0 20px; }
.meter span { width: 54%; display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .5s var(--ease); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: none; font-size: 15px; font-weight: 500;
}
.chip:hover { background: var(--field); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip .n { color: inherit; opacity: .7; }
.units { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.unit { display: grid; justify-items: center; gap: 6px; }
.unit button {
  display: grid; place-items: center; align-content: center; width: min(74px, 100%); aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid transparent; background: var(--raised); padding: 0; transition: transform .2s var(--ease), opacity .3s;
}
.unit button:hover { transform: scale(1.05); }
.unit .code { font-weight: 700; font-size: 17px; line-height: 1.1; }
.unit .st { font-size: 11px; line-height: 1.2; }
.unit .who { font-size: 13px; color: var(--muted); }
.unit.paid button { color: var(--muted); border-color: var(--green); }
.unit.paid .code { color: var(--ink); }
.unit.due button { background: var(--ember-tint); color: var(--ember-deep); }
.unit.due .code { color: var(--ink); }
.unit.late button { background: var(--ember-tint); border-color: var(--ember); color: var(--ember-deep); }
.unit.late .code { color: var(--ink); }
.unit.notice button { background: var(--field); color: var(--muted); }
.unit.empty button { background: none; border-color: var(--label); color: var(--muted); }
.unit button[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 3px; }
.unit.dim button { opacity: .25; }
.unit-detail { margin: 22px 0 0; padding: 20px 22px; border-radius: 22px; background: var(--field); min-height: 120px; }
.unit-detail .h3 { margin: 0 0 4px; }
.unit-detail p { margin: 0 0 12px; color: var(--muted); }
.unit-detail .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.unit-detail .done { color: var(--green-mark); font-weight: 600; }
.sample-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* ── Grids of small cards ─────────────────────────────── */
.grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.g3 { grid-template-columns: repeat(3, 1fr); } .grid.g4 { grid-template-columns: repeat(4, 1fr); } }
.grid .card { display: flex; flex-direction: column; gap: 14px; }
.grid .card p { margin: 0; color: var(--muted); }
.grid .card .h3 { margin: 0; }
.grid .card .more { margin-top: auto; }

/* ── Questions ────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 8px; }
.faq details { background: var(--card); border-radius: 22px; }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 22px; font-weight: 600; font-size: 18px; cursor: pointer; border-radius: 22px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .25s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ── The closing card ─────────────────────────────────── */
.closing { padding: 100px 0 0; }
@media (min-width: 900px) { .closing { padding-top: 150px; } }
.closing-card { text-align: center; padding: 48px 24px; }
@media (min-width: 900px) { .closing-card { padding: 64px 48px; } }
.closing-card .lead { margin: 20px auto 0; }
.closing-card .cta-row, .closing-card .stores { justify-content: center; }
.lion-line { display: grid; justify-items: center; margin: 0 0 26px; }
.lion-line::after { content: ""; width: 160px; height: 2px; background: var(--ink); }
.lion-line .lion { height: 110px; width: auto; margin-bottom: -1px; }

/* ── Page heads (the role pages and the rest) ─────────── */
.page-head { display: grid; gap: 40px; align-items: center; padding: 40px 0 0; }
.page-head .lead { margin: 22px 0 0; }
.page-head .mark { width: 120px; }
.page-head-art { position: relative; display: grid; justify-items: center; padding: 30px 0 0; }
.page-head-art .shape { position: absolute; width: 66%; max-width: 320px; top: 0; }
.page-head-art .phone { --pw: min(290px, 72vw); }
@media (min-width: 960px) {
  .page-head.with-art { grid-template-columns: 1.1fr 0.9fr; gap: 64px; padding-top: 64px; }
  .page-head-art .phone { --pw: 310px; }
}
.simple-head { padding: 48px 0 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.simple-head .mark { width: 96px; flex: none; }
@media (min-width: 900px) { .simple-head { padding-top: 72px; } .simple-head .mark { width: 140px; } }

/* A feature: words beside a phone, alternating sides. */
.feature { display: grid; gap: 32px; align-items: center; padding: 80px 0 0; }
.feature .phone { --pw: min(270px, 70vw); }
.feature-art { position: relative; display: grid; justify-items: center; padding: 20px 0 0; }
.feature-art .shape { position: absolute; width: 62%; max-width: 280px; top: 0; }
.feature-art .shape.right { right: 6%; }
.feature-art .shape.left { left: 6%; }
.feature-text .h2 { font-size: clamp(30px, 4vw, 44px); }
.feature-text p { font-size: 18px; max-width: 30em; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 80px; padding-top: 120px; }
  .feature.flip .feature-art { order: 2; }
  .feature .phone { --pw: 290px; }
}
.dots { list-style: none; margin: 8px 0 0; display: grid; gap: 8px; }
.dots li { position: relative; padding: 0 0 0 22px; color: var(--muted); }
.dots li::before {
  content: ""; position: absolute; left: 3px; top: 11px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--ink);
}
.soon-card { margin-top: 80px; }
@media (min-width: 900px) { .soon-card { margin-top: 120px; } }

/* Rows and steps */
.rows { list-style: none; display: grid; gap: 8px; margin: 0; }
.rows > li, .rows > div { background: var(--card); border-radius: 22px; padding: 18px 20px; }
.rows dt { font-weight: 600; }
.rows dd { margin: 4px 0 0; color: var(--muted); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 8px; margin: 6px 0 0; }
.steps li {
  counter-increment: s; position: relative; background: var(--field); border-radius: 22px;
  padding: 14px 18px 14px 60px; min-height: 52px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--ink); color: var(--on-ink);
  display: grid; place-items: center; font-weight: 600; font-size: 15px; line-height: 1;
}
.place { font-weight: 600; }
.duo { display: grid; gap: 14px; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
.block { padding: 56px 0 0; }
@media (min-width: 900px) { .block { padding-top: 80px; } }

/* ── Long pages of words (privacy, terms, cookies, deleting an account) ── */
.doc { display: grid; gap: 40px; padding: 32px 0 0; }
@media (min-width: 1000px) { .doc { grid-template-columns: 260px 1fr; gap: 64px; } .toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; } }
.toc { background: var(--card); border-radius: 22px; padding: 20px 22px; }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 6px 0; text-decoration: none; font-size: 15px; line-height: 1.35; }
.toc a::before { content: counter(t); color: var(--muted); min-width: 1.4em; }
.toc a:hover { text-decoration: underline; }
.prose { max-width: 46em; }
.prose h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.015em; margin: 44px 0 12px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; line-height: 1.25; margin: 24px 0 8px; font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose .card { margin: 14px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
.prose th { font-weight: 600; }
.draft {
  background: var(--ember-tint); color: var(--ember-deep); border-radius: 22px;
  padding: 16px 20px; font-weight: 600; margin: 28px 0 0;
}
.draft > span { display: block; font-weight: 400; color: var(--ink); margin-top: 4px; }
.todo { color: var(--ember-deep); font-weight: 600; }
.updated { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.kv { display: grid; gap: 0; margin: 10px 0 14px; }
.kv > div { padding: 12px 0; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; }
.kv dt { font-weight: 600; }
.kv dd { margin: 2px 0 0; color: var(--muted); }
@media (min-width: 700px) {
  .kv > div { display: grid; grid-template-columns: 14em 1fr; gap: 20px; }
  .kv dd { margin: 0; }
}

/* ── The early access form ────────────────────────────── */
.ea-page { display: grid; gap: 40px; padding: 40px 0 0; align-items: start; }
@media (min-width: 960px) { .ea-page { grid-template-columns: 0.85fr 1.15fr; gap: 64px; padding-top: 64px; } .ea-aside { position: sticky; top: 104px; } }
.ea-form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field legend { padding: 0; margin: 0 0 8px; font-weight: 600; }
.field label, .ea-form .field > label { font-weight: 600; }
.field .two label { font-weight: 500; font-size: 15px; display: block; margin: 0 0 6px; }
.two { display: grid; gap: 12px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.ea-form input[type="text"], .ea-form input[type="tel"], .ea-form input[type="email"], .ea-form select {
  width: 100%; min-height: 54px; padding: 0 18px; border-radius: 18px; border: 1.5px solid var(--line);
  background: var(--field); font-size: 17px; appearance: none; -webkit-appearance: none;
}
.ea-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2375716B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 20px; padding-right: 48px;
}
.ea-form input::placeholder { color: var(--muted); }
.ea-form input:focus-visible, .ea-form select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-radius: 18px; border-color: var(--ink); }
.ea-form [aria-invalid="true"] { border-color: var(--ember); }
.hint { font-size: 14px; color: var(--muted); font-weight: 400; margin: 0; }
.field legend .hint { margin-left: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--field); font-weight: 500; font-size: 16px;
}
.choice input:hover + span { border-color: var(--label); }
.choice input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts-box { min-height: 65px; max-width: 100%; }
.ts-box:empty { display: none; }
.ea-error {
  background: var(--ember-tint); color: var(--ink); border-radius: 18px; padding: 14px 18px; font-weight: 500;
}
.ea-form .cta-row { margin: 4px 0 0; justify-content: center; }
.ea-form button[disabled] { opacity: .6; cursor: progress; }
.ea-done { text-align: center; padding: 20px 0; }
.ea-done .lead { margin: 12px auto 0; }
.ea-done:focus { outline: none; }

.ea-dialog {
  width: min(640px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0;
  border-radius: 30px; background: var(--card); color: var(--ink); overflow: hidden;
}
.ea-dialog::backdrop { background: rgba(28, 26, 31, .45); }
.ea-sheet { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 26px 22px 30px; overscroll-behavior: contain; }
@media (min-width: 700px) { .ea-sheet { padding: 34px 38px 38px; } }
.ea-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ea-top .h2 { margin: 0; }
.ea-lead { margin: 12px 0 24px; }
.ea-dialog .ea-form input[type="text"], .ea-dialog .ea-form input[type="tel"], .ea-dialog .ea-form input[type="email"], .ea-dialog .ea-form select,
.ea-dialog .choice span { background: var(--ground); }
@media (max-width: 599px) {
  .ea-dialog { width: 100%; max-width: 100%; max-height: 92%; margin: auto 0 0; border-radius: 30px 30px 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .ea-dialog[open] { animation: rise .35s var(--ease) both; }
  .ea-dialog[open]::backdrop { animation: fade .3s ease both; }
}
html.dialog-open { overflow: hidden; }

/* ── The foot of every page ───────────────────────────── */
.site-foot { margin: 120px 0 0; padding: 48px 0 56px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-brand p { max-width: 22em; margin: 12px 0 0; }
.site-foot ul { list-style: none; display: grid; gap: 0; }
.site-foot li a { display: inline-block; padding: 9px 0; line-height: 1.35; text-decoration: none; }
.site-foot li a:hover { text-decoration: underline; }
.site-foot .fine { color: var(--muted); font-size: 14px; margin: 40px 0 0; }

/* ── 404 ──────────────────────────────────────────────── */
.lost { text-align: center; padding: 64px 0 0; }
.lost .lead { margin: 18px auto 0; }
.lost .lion-line .lion { height: 150px; }
.lost .lion-line::after { width: 220px; }
.lost .cta-row { justify-content: center; }

/* ── Showing up as you scroll (gentle; none if you asked for less motion).
   The script adds .reveal-ready only once it runs, so nothing is ever
   hidden from someone without it. ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal-ready .reveal.in { opacity: 1; transform: none; }
  .nav-link, .btn, .chip, .tab, .round, .store { transition: background-color .15s ease, opacity .15s ease, color .15s ease; }
}
@media (max-width: 479px) { #form.card { padding: 24px 16px; } }
