:root {
  --paper: #F7F4EC; --surface: #FFFFFF; --ink: #16302F; --muted: #4A5B5A;
  --teal: #245E5B; --teal-deep: #193F40; --apricot: #F2B58F; --sage: #DDE9DF; --line: rgba(22,48,47,.10);
  --radius: 22px; --max: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0F1A1A; --surface: #172524; --ink: #EEF3F1; --muted: #A9BAB7; --teal: #5FB3AC; --teal-deep: #9ED8D1; --sage: #1F3432; --line: rgba(238,243,241,.12); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
a { color: var(--teal); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
header.site { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav a { margin-left: 18px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--ink); }
h1, h2, h3 { font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 14px; }
h1 { font-size: clamp(38px, 7vw, 64px); }
h2 { font-size: clamp(28px, 4.4vw, 40px); }
h3 { font-size: 20px; }
p.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 34em; }
.hero { padding: 40px 0 56px; display: grid; gap: 36px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero .badge { display: inline-block; background: var(--sage); color: var(--teal-deep); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 16px; font-weight: 700; text-decoration: none; font-size: 17px; border: 0; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--teal); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0F1A1A; } }
.btn.ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.btn:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--apricot); outline-offset: 2px; }
.small { font-size: 14px; color: var(--muted); }
.phone { background: var(--surface); border-radius: 40px; padding: 14px; box-shadow: 0 30px 60px rgba(25,63,64,.18); border: 1px solid var(--line); max-width: 330px; margin: 0 auto; }
.phone img { border-radius: 28px; }
section { padding: 56px 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--sage); margin-bottom: 14px; }
.steps { counter-reset: step; }
.steps .card h3::before { counter-increment: step; content: counter(step) ". "; color: var(--teal); }
.price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.tag { display: inline-block; background: var(--teal); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
@media (prefers-color-scheme: dark) { .tag { color: #0F1A1A; } }
ul.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
ul.ticks li { padding-left: 28px; position: relative; margin: 8px 0; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 10px 0; }
summary { font-weight: 700; cursor: pointer; }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); margin-right: 18px; }
.doc { max-width: 760px; padding: 24px 0 64px; }
.doc h2 { font-size: 24px; margin-top: 32px; }
/* Memory test */
.test { max-width: 640px; margin: 0 auto; padding: 24px 0 64px; text-align: center; }
.words { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0; }
.word { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 20px; font-weight: 700; }
.timer { font-size: 15px; font-weight: 700; color: var(--teal); }
textarea { width: 100%; min-height: 160px; font: inherit; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); }
.score { font-size: 64px; font-weight: 800; color: var(--teal); }
.hidden { display: none !important; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
  nav a.hide-sm { display: none; }
}

/* ---------- v2: Memory Trips, motion and the new home page (8 Nov 2026) ---------- */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-normal-v1.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic-v1.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
:root { --band: #193F40; --coral: #E4694B; --ease: cubic-bezier(.2,.8,.2,1); --display: "Fraunces", ui-serif, Georgia, serif; }
html { scroll-behavior: smooth; }
h1, h2 { font-family: var(--display); font-weight: 480; font-optical-sizing: auto; letter-spacing: -.025em; text-wrap: balance; }
h1 em, h2 em { color: var(--teal); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.trap { position: absolute; left: -9999px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--teal); margin: 0 0 12px; }
.eyebrow a { color: inherit; }
.text-link { font-weight: 700; color: var(--teal); text-decoration: none; background: linear-gradient(currentColor,currentColor) 0 100%/0 2px no-repeat; transition: background-size .35s var(--ease); }
.text-link:hover { background-size: 100% 2px; }

/* Page-to-page transition: the next page opens like a door */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-back .42s var(--ease) both; }
::view-transition-new(root) { animation: vt-door .62s var(--ease) both; }
@keyframes vt-back { to { transform: scale(.94); opacity: .3; filter: blur(4px); } }
@keyframes vt-door { from { clip-path: inset(0 50% 0 50% round 28px); } to { clip-path: inset(0 0 0 0 round 0); } }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease); }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; background: var(--coral); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; display: none; }
@supports (animation-timeline: scroll()) { .progress { display: block; animation: grow linear both; animation-timeline: scroll(root); } @keyframes grow { to { transform: scaleX(1); } } }

/* Nav */
.nav { position: fixed; top: 12px; left: 50%; translate: -50% 0; z-index: 50; width: min(1040px, calc(100vw - 24px)); display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 16px; border-radius: 20px; background: color-mix(in oklab, var(--paper) 72%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--line); view-transition-name: nav; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a { margin: 0; padding: 10px 12px; font-size: 15px; color: var(--muted); text-decoration: none; border-radius: 12px; transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--ink); background: var(--line); }
.nav nav a.nav-cta { background: var(--teal); color: #fff; font-weight: 700; padding: 10px 16px; }
@media (prefers-color-scheme: dark) { .nav nav a.nav-cta { color: #0F1A1A; } }
main, body:not(.home) > div.wrap { padding-top: 84px; }
.home main { padding-top: 0; }

/* Forms */
.signup { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px; max-width: 480px; margin: 24px 0 10px; padding: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 40px -22px rgba(22,48,47,.4); transition: border-color .25s, box-shadow .25s; }
.signup:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in oklab, var(--teal) 24%, transparent), 0 18px 40px -22px rgba(22,48,47,.4); }
.signup input[type=email] { min-width: 0; min-height: 50px; border: 0; background: transparent; padding: 0 14px; font: inherit; color: var(--ink); outline: 0; }
.signup button { min-height: 50px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--teal); color: #fff; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), background .3s; }
@media (prefers-color-scheme: dark) { .signup button { color: #0F1A1A; } }
.signup button:hover { transform: translateY(-1px) scale(1.02); }
.signup button:active { transform: scale(.97); }
.signup.busy button { opacity: .75; }
.signup.done { border-color: var(--teal); }
.signup.done button { background: var(--coral); color: #fff; animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.08); } }
.signup-note { grid-column: 1 / -1; margin: 2px 8px 2px; font-size: 14px; color: var(--muted); }
.signup.bad .signup-note { color: var(--coral); }
.signup.on-dark { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); box-shadow: none; margin-inline: auto; }
.signup.on-dark input[type=email] { color: #fff; }
.signup.on-dark input::placeholder { color: rgba(255,255,255,.65); }
.signup.on-dark button { background: #F2B58F; color: #193F40; }
.signup.on-dark .signup-note { color: rgba(255,255,255,.72); }

/* Hero */
.h-hero { min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; padding-top: 96px; padding-bottom: 40px; }
.h-copy h1 { font-size: clamp(44px, 6.6vw, 82px); line-height: 1.02; margin-bottom: 18px; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; }
.split-on .w > span { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 80ms); }
@keyframes rise { from { transform: translateY(112%) rotate(4deg); } }
.h-visual { position: relative; display: grid; place-items: center; perspective: 1200px; }
.device { position: relative; aspect-ratio: 1320/2868; border-radius: 13% / 6%; background: #0c1212; padding: 2.4%; box-shadow: 0 50px 90px -35px rgba(22,48,47,.55), 0 0 0 1px rgba(255,255,255,.08) inset; overflow: hidden; }
.device video { position: absolute; inset: 2.4%; width: 95.2%; height: 95.2%; object-fit: cover; border-radius: 11% / 5%; background: var(--paper); }
.hero-device { width: min(320px, 74vw); transform: rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition: transform .5s var(--ease); }
.h-visual .hero-device { transform: rotateX(var(--rx,0deg)) rotateY(calc(var(--ry,0deg) - 7deg)) rotateZ(2deg); animation: float-in 1.2s var(--ease) both .25s; }
@keyframes float-in { from { opacity: 0; translate: 0 70px; scale: .92; } }
.tile { position: absolute; z-index: 4; display: grid; justify-items: center; gap: 2px; padding: 12px 16px; background: var(--surface); border-radius: 18px; font-weight: 700; font-size: 14px; box-shadow: 0 18px 34px -18px rgba(22,48,47,.45); animation: bob 6s ease-in-out infinite; }
.tile span { font-size: 34px; line-height: 1.1; }
.t1 { top: 8%; left: 3%; } .t2 { top: 30%; right: 1%; animation-delay: -2s; } .t3 { bottom: 26%; left: 0; animation-delay: -4s; } .t4 { bottom: 6%; right: 8%; animation-delay: -1s; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-2deg); } }

/* Pinned stages */
.stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.walk { height: 480vh; background: var(--sage); }
.stage-head { width: min(1040px, calc(100% - 40px)); margin: 92px auto 8px; }
.stage-head h2 { font-size: clamp(26px, 3.8vw, 46px); margin: 0; }
.plan-wrap { width: min(1040px, calc(100% - 28px)); margin: 0 auto; flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; }
.plan { width: 100%; height: 100%; min-height: 0; overflow: visible; }
.walls * { fill: none; stroke: var(--teal-deep); stroke-width: 3; opacity: .34; }
.labels text { font: 600 21px -apple-system, "Segoe UI", sans-serif; fill: var(--muted); text-anchor: middle; }
.route-base { fill: none; stroke: var(--teal-deep); stroke-width: 3; stroke-dasharray: 2 13; stroke-linecap: round; opacity: .45; }
.route-live { fill: none; stroke: var(--coral); stroke-width: 6; stroke-linecap: round; }
.walker { fill: var(--coral); stroke: #fff; stroke-width: 4; filter: drop-shadow(0 4px 8px rgba(0,0,0,.3)); }
.stop { transform-box: fill-box; transform-origin: center; transform: scale(0) rotate(-30deg); opacity: 0; transition: transform .65s cubic-bezier(.3,1.6,.5,1), opacity .25s; }
.stop.on { transform: none; opacity: 1; }
.stop circle { fill: var(--surface); filter: drop-shadow(0 12px 16px rgba(22,48,47,.22)); }
.stop text { font-size: 50px; text-anchor: middle; }
.caption { min-height: 112px; padding: 8px 12px 26px; text-align: center; }
.caption.swap p { animation: cap .5s var(--ease) both; }
.caption .cap-text { animation-delay: 60ms; }
@keyframes cap { from { opacity: 0; transform: translateY(14px); filter: blur(5px); } }
.cap-step { font-weight: 700; color: var(--teal); margin: 0 0 2px; font-size: 15px; }
.cap-text { font-family: var(--display); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.2; margin: 0 auto; max-width: 26em; text-wrap: balance; }
.finale { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; margin: 0; padding: 20px; font-family: var(--display); font-size: clamp(38px, 7.4vw, 92px); line-height: 1.03; letter-spacing: -.03em; color: #fff; background: var(--band); clip-path: circle(0 at 80.5% 66%); transition: clip-path .95s var(--ease); pointer-events: none; }
.finale span { color: #F2B58F; font-style: italic; }
.walk.end .finale { clip-path: circle(150% at 80.5% 66%); }

.app-show { height: 440vh; }
.app-grid { width: min(1040px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; height: 100%; padding-top: 70px; }
.app-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.app-steps li { grid-area: 1/1; opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .5s, transform .6s var(--ease), filter .5s; pointer-events: none; }
.app-steps li.active { opacity: 1; transform: none; filter: none; }
.app-steps h2 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.05; }
.app-steps p { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 26em; }
.app-phone { perspective: 1300px; display: grid; place-items: center; min-height: 0; }
.device.big { height: min(76svh, 720px); transform: rotateY(var(--spin,0deg)); transition: transform .35s linear; }
.device.big video { opacity: 0; clip-path: inset(100% 0 0 0 round 11% / 5%); transition: clip-path .7s var(--ease), opacity 0s .7s; }
.device.big video.on { opacity: 1; clip-path: inset(0 0 0 0 round 11% / 5%); transition: clip-path .7s var(--ease), opacity 0s; z-index: 2; }

/* Sections */
.band-top { padding-top: 96px; padding-bottom: 12px; }
.band-top > h2, .split-head h2 { font-size: clamp(34px, 5vw, 60px); }
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(34px) scale(.985); transition: opacity .7s var(--d,0ms), transform .9s var(--ease) var(--d,0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.games { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 26px; }
.game { position: relative; overflow: hidden; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.game::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx,50%) var(--my,0), color-mix(in oklab, var(--apricot) 42%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; }
.game:hover::before { opacity: 1; }
.game > * { position: relative; }
.game span { font-size: 36px; }
.game h3 { margin: 10px 0 4px; }
.game p { margin: 0; color: var(--muted); }
.split-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 22px; }
.post-card { display: block; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.js .post-card.in { transition: transform .4s var(--ease), box-shadow .4s; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 24px 40px -26px rgba(22,48,47,.5); }
.post-emoji { font-size: 34px; display: block; }
.post-kicker { font-size: 14px; font-weight: 700; color: var(--teal); }
.post-card h3 { font-family: var(--display); font-weight: 500; font-size: 25px; line-height: 1.14; margin: 6px 0; }
.post-card p { margin: 0; color: var(--muted); font-size: 16px; }

.join { margin-top: 96px; background: var(--band); color: #fff; padding: 0 0 92px; overflow: hidden; text-align: center; }
.marquee { font-family: var(--display); font-style: italic; font-size: clamp(44px, 8vw, 104px); white-space: nowrap; padding: 26px 0; color: #F2B58F; opacity: .9; }
.marquee div { display: inline-block; animation: slide 32s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }
.join-inner h2 { font-size: clamp(36px, 6vw, 68px); color: #fff; margin-bottom: 8px; }
.join-inner > p { color: rgba(255,255,255,.78); font-size: 19px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.foot { margin-top: 96px; border-top: 1px solid var(--line); padding: 26px 0 34px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot p { margin: 0; color: var(--muted); font-size: 14px; }

/* Blog */
.blog-head { padding-top: 34px; }
.blog-head h1 { font-size: clamp(48px, 9vw, 104px); margin-bottom: 8px; }
.post { max-width: 680px; margin: 0 auto; padding-top: 34px; }
.post h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.06; }
.prose { font-size: 19px; line-height: 1.65; margin-top: 26px; }
.prose h2 { font-size: 30px; margin: 36px 0 10px; }
.prose li { margin-bottom: 8px; }
.post-signup { margin-top: 46px; padding: 28px; background: var(--sage); border-radius: var(--radius); }
.post-signup h2 { font-size: 30px; margin: 0; }
.next-post { display: block; margin-top: 18px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 25px; }
.next-post span { display: block; font: 700 14px -apple-system, sans-serif; color: var(--teal); }
.confirm { min-height: 62vh; display: grid; align-content: center; justify-items: center; text-align: center; }
.confirm h1 { font-size: clamp(44px, 8vw, 84px); }

@media (max-width: 860px) {
  .hide-sm { display: none; }
  .h-hero { grid-template-columns: 1fr; padding-top: 100px; min-height: 0; gap: 40px; }
  .h-visual { padding: 10px 0; }
  .tile { padding: 9px 12px; font-size: 13px; } .tile span { font-size: 26px; }
  .app-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); gap: 10px; padding: 78px 0 12px; }
  .app-steps h2 { font-size: 27px; margin-bottom: 4px; }
  .app-steps p { font-size: 16px; margin: 0; }
  .device.big { height: 100%; max-height: 62svh; }
  .app-phone { height: 100%; }
  .games, .post-grid { grid-template-columns: 1fr; }
  .labels text { font-size: 28px; }
  .caption { min-height: 132px; }
}
@media (max-width: 560px) {
  .hide-xs { display: none; }
  .signup { grid-template-columns: 1fr; }
  .signup button { width: 100%; }
}
.still .stage, .still .walk, .still .app-show { position: static; height: auto; }
.still .finale { position: static; clip-path: none; }
.still .app-steps { gap: 28px; }
.still .app-steps li { grid-area: auto; opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; transition: none !important; }
}
@media (max-width: 860px) { .stop { scale: 1.3; } .walker { r: 14px; } }
