/* avoid-ai-design-ignore: T2 (Geist is Loam's app face, docs/design/LOAM_DESIGN_LANGUAGE.md §3) */
/* avoid-ai-design-ignore: SD5 (chapter heads use the approved App Store headline system: neutral verb, coloured mark + noun) */
@font-face { font-family: "Geist"; src: url("fonts/Geist_400Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist_500Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist_600SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("fonts/BigShoulders_900Black.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("fonts/BigShoulders_800ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Ionicons"; src: url("fonts/ionicons-loam.woff") format("woff"); font-display: block; }

:root {
  color-scheme: dark;
  /* The captures' own ground, so bare cut-outs sit flush on the page. */
  --bg: #0b0d12;
  --surface: #16181d;
  --raised: #1b1e24;
  --text: #edf1f5;
  --t2: #c7cdd4;
  --t3: #9ba3ad;
  --border: rgba(237, 241, 245, 0.1);
  --track: rgba(237, 241, 245, 0.16);
  --ember: #e8893e;
  --sleep: #9d8cff;
  --good: #52b788;
  --body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --num: "Big Shoulders", "Geist", sans-serif;
  --gutter: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); position: relative; }
@media (min-width: 720px) { :root { --gutter: 40px; } }

.ion { font-family: "Ionicons"; font-style: normal; font-weight: 400; line-height: 1; display: inline-block; }
.spark { display: inline-block; width: 0.9em; height: 0.9em; border-radius: 50%; flex: none; background: radial-gradient(circle at 36% 32%, #ffe1c2 0, #f4a865 20%, var(--ember) 52%, #a9541b 100%); }
.ring { width: 0.82em; height: 0.82em; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke: var(--track); stroke-width: 3; }
.ring .arc { stroke: var(--ember); stroke-linecap: round; }
.flag { width: 0.6em; height: 0.82em; flex: none; }
.flag line { stroke: var(--text); stroke-width: 1.5; }
.flag rect { fill: var(--text); }
.flag .off { fill: var(--track); }

/* 1 · Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(11, 13, 18, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
.brand .logo { width: 26px; height: 25px; }
.p1 { fill: #5a3a24; } .p2 { fill: #9a5a2c; } .p3 { fill: var(--ember); } .dot { fill: var(--text); }
.nav { display: none; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { color: var(--t3); text-decoration: none; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
@media (min-width: 900px) { .nav { display: flex; } }

/* 2–3 · Hero */
.hero { position: relative; padding: 48px 0 40px; overflow: clip; }
.strata { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; pointer-events: none; }
.strata .s1 { fill: rgba(90, 58, 36, 0.1); }
.strata .s2 { fill: rgba(90, 58, 36, 0.15); }
.strata .s3 { fill: rgba(70, 45, 28, 0.24); }
.strata .s4 { fill: rgba(48, 31, 20, 0.42); }
.hero-grid { position: relative; display: grid; gap: 40px; }
h1 { font-size: clamp(44px, 9vw, 84px); line-height: 0.98; letter-spacing: -0.04em; }
h1 .line { display: block; }
.lede { margin-top: 24px; font-size: clamp(17px, 2.1vw, 20px); line-height: 1.5; color: var(--t2); max-width: 34ch; }
.launch { margin-top: 28px; font-size: 17px; color: var(--t3); }
@media (min-width: 980px) {
  .hero { padding: 80px 0 72px; }
  .hero-grid { grid-template-columns: 0.95fr 1.05fr; align-items: center; gap: 24px; }
}

/* 4 · Sources */
.sources { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sources-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 22px; padding-bottom: 22px; }
.sources-label { font-size: 14px; color: var(--t3); }
.sources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.sources li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; color: var(--t2); }
.sources .ion { font-size: 18px; }

/* Chapters */
.chapter { padding: 96px 0; }
.chapter + .chapter { border-top: 1px solid var(--border); }
.chapter-tight { padding-bottom: 72px; }
@media (min-width: 900px) { .chapter { padding: 136px 0; } }
h2 { font-size: clamp(42px, 7vw, 80px); line-height: 0.98; letter-spacing: -0.04em; }
h2 .lead { display: block; color: var(--t3); }
h2 .noun { display: flex; align-items: center; gap: 0.16em; }
h2 .noun .ion { font-size: 0.78em; }
.mark-sleep { color: var(--sleep); }
.h-plain { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; max-width: 16ch; }
.chapter-head p, .moves-copy p, .food p { margin-top: 20px; color: var(--t2); font-size: 18px; max-width: 42ch; }

/* Boards: cut-outs placed on a design grid (--bw × --bh) */
.board { position: relative; margin-top: 72px; aspect-ratio: var(--bw) / var(--bh); }
.cut {
  position: absolute; z-index: var(--z, auto);
  left: calc(var(--x) / var(--bw) * 100%);
  top: calc(var(--y) / var(--bh) * 100%);
  width: calc(var(--w) / var(--bw) * 100%);
  container-type: inline-size;
  translate: 0 calc(var(--p, 0) * var(--d, 0) * -56px);
}
.cut img {
  width: 100%; border-radius: 5.9cqw;
  box-shadow: 0 0 0 1px rgba(237, 241, 245, 0.09), 0 30px 60px -18px rgba(0, 0, 0, 0.85), 0 8px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
@media (hover: hover) {
  .cut:hover img { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(237, 241, 245, 0.14), 0 40px 70px -18px rgba(0, 0, 0, 0.9), 0 10px 22px rgba(0, 0, 0, 0.4); }
}
.cut figcaption { position: absolute; bottom: 100%; left: 2px; margin-bottom: 10px; font-size: 13px; font-weight: 500; color: var(--t3); white-space: nowrap; }
.cut-strip img { border-radius: 0; box-shadow: none; }
.board-hero { margin-top: 0; }
.board-coach { margin-top: 112px; }

@media (max-width: 759px) {
  .board-hero { --bw: var(--mbw) !important; --bh: var(--mbh) !important; }
  .board-hero .cut { --x: var(--mx) !important; --y: var(--my) !important; --w: var(--mw) !important; }
  .m-hide-hero { display: none; }
  .board:not(.board-hero) { aspect-ratio: auto; display: flex; flex-direction: column; gap: 44px; margin-top: 56px; }
  .board:not(.board-hero) .cut { position: relative; left: auto; top: auto; width: 100%; max-width: 440px; translate: none; }
  .board:not(.board-hero) .cut:nth-child(odd of .cut:not(.m-hide)) { align-self: flex-end; width: 94%; }
  .board:not(.board-hero) .cut-strip { width: 100%; }
  .m-hide { display: none; }
  .board-coach { flex-direction: row !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px !important; padding-top: 28px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .board-coach .cut { flex: 0 0 78%; scroll-snap-align: center; align-self: flex-start !important; width: auto !important; }
}

/* 5 · Life happens */
.moves { padding: 96px 0; }
.moves-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .moves { padding: 136px 0; } .moves-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.mover { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 10px 10px 28px; }
.mover-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: rgba(0, 0, 0, 0.25); border-radius: 20px; padding: 4px; }
.mover-tabs button { position: relative; overflow: hidden; border-radius: 16px; padding: 11px 8px; font-size: 14px; font-weight: 500; color: var(--t3); transition: color 0.25s, background 0.25s; }
.mover-tabs button[aria-selected="true"] { background: var(--raised); color: var(--text); }
.tick { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: transparent; transform-origin: left; transform: scaleX(0); }
.mover.is-auto button[aria-selected="true"] .tick { background: rgba(237, 241, 245, 0.5); animation: tick var(--cycle, 4.6s) linear forwards; }
@keyframes tick { to { transform: scaleX(1); } }
.scenes { padding: 28px 18px 0; display: grid; }
.scene { grid-area: 1 / 1; }
.say { font-size: clamp(22px, 3vw, 28px); font-weight: 500; letter-spacing: -0.02em; }
.slot { margin-top: 26px; display: grid; gap: 12px; }
.was, .now { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; font-weight: 600; font-size: 17px; }
.was { position: relative; color: var(--t3); background: rgba(0, 0, 0, 0.22); width: fit-content; min-width: 60%; }
.was::after { content: ""; position: absolute; left: 14px; right: 14px; top: 26px; height: 1.5px; background: var(--t3); transform-origin: left; }
.now { background: var(--raised); border: 1px solid var(--track); }
.was small, .now small { font-weight: 400; font-size: 14px; color: var(--t3); }

/* 6–7 · Coach */
.coach-grid { display: grid; gap: 56px; align-items: start; }
@media (min-width: 980px) { .coach-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.chat { display: grid; gap: 20px; max-width: 500px; width: 100%; }
@media (min-width: 980px) { .chat { justify-self: end; margin-top: 8px; } }
.ask { justify-self: end; background: var(--raised); border: 1px solid var(--border); border-radius: 20px 20px 4px 20px; padding: 12px 16px; font-size: 16px; color: var(--t2); max-width: 32ch; }
.reply { padding-top: 4px; }
.who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.who .spark { width: 18px; height: 18px; }
.stream { font-size: 18px; line-height: 28px; color: var(--t2); }
.typing { display: none; gap: 4px; margin-left: 4px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--t3); }
.exp { width: 100%; border-radius: 22px; box-shadow: 0 0 0 1px rgba(237, 241, 245, 0.09), 0 30px 60px -18px rgba(0, 0, 0, 0.85); }

/* 14 · Food */
.food { padding: 72px 0; border-top: 1px solid var(--border); }
.food-row { display: grid; gap: 4px; }
.food h2 { display: flex; align-items: center; gap: 14px; max-width: none; font-size: clamp(28px, 4vw, 40px); }
.food h2 .ion { font-size: 0.8em; color: var(--t3); }
@media (min-width: 900px) { .food-row { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; } .food p { margin-top: 0; } }

/* 15 · Pro */
.tiers { margin-top: 56px; display: grid; gap: 14px; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 30px 26px; }
.tier-pro { border-color: var(--track); }
.tier h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--t3); }
.tier h3 .spark { width: 16px; height: 16px; }
.price { margin-top: 10px; color: var(--t2); font-size: 16px; }
.price .num { font: 900 48px/1 var(--num); color: var(--text); }
.price .or { color: var(--t3); margin: 0 4px; }
.tier ul { list-style: none; margin: 26px 0 0; padding: 0; }
.tier li { padding: 13px 0; border-top: 1px solid var(--border); font-size: 16px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--t3); }
@media (min-width: 820px) { .tiers { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* 16 · Close */
.close { position: relative; overflow: clip; padding: 120px 0 150px; border-top: 1px solid var(--border); text-align: center; }
.strata-close { height: 70%; }
.close-in { position: relative; display: grid; justify-items: center; }
.logo-big { width: 72px; height: 69px; margin-bottom: 36px; }
.close-line { font-size: clamp(34px, 5.6vw, 64px); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }

/* 17 · Footer */
.foot { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--t3); }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--t2); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ── Motion: arrival only, nothing holds the scroll ── */
@media (prefers-reduced-motion: no-preference) {
  .js .logo rect, .js .logo circle { transform-box: fill-box; transform-origin: left center; }
  .js .top .logo rect { animation: bar 0.8s var(--ease) both; }
  .js .top .logo .p2 { animation-delay: 0.08s; } .js .top .logo .p3 { animation-delay: 0.16s; }
  .js .top .logo .dot { animation: drop 0.6s var(--ease) 0.34s both; }
  .js .close-in .logo rect { transform: scaleX(0); opacity: 0; }
  .js .close-in .logo .dot { opacity: 0; transform: translateY(-60%); }
  .js .close-in.in .logo rect { animation: bar 0.9s var(--ease) both; }
  .js .close-in.in .logo .p2 { animation-delay: 0.1s; } .js .close-in.in .logo .p3 { animation-delay: 0.2s; }
  .js .close-in.in .logo .dot { animation: drop 0.6s var(--ease) 0.42s both; }
  @keyframes bar { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes drop { from { transform: translateY(-80%); opacity: 0; } to { transform: none; opacity: 1; } }

  .js .hero h1 .line, .js .hero .rise { animation: rise 1s var(--ease) both; }
  .js .hero h1 .line:nth-child(2) { animation-delay: 0.08s; }
  .js .hero .lede { animation-delay: 0.2s; }
  .js .hero .launch { animation-delay: 0.3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

  .strata .s { transform-box: view-box; animation: drift 40s ease-in-out infinite alternate; }
  .strata .s2 { animation-duration: 52s; animation-direction: alternate-reverse; }
  .strata .s3 { animation-duration: 64s; }
  .strata .s4 { animation-duration: 76s; animation-direction: alternate-reverse; }
  @keyframes drift { from { transform: translateX(0); } to { transform: translateX(-160px); } }

  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 1.1s var(--ease); }
  .js [data-reveal].in { opacity: 1; transform: none; }

  .js .board .cut { opacity: 0; transform: translate3d(0, 56px, 0) scale(0.95); transition: opacity 0.8s ease, transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 60ms); }
  .js .board.in .cut { opacity: 1; transform: none; }
  .js .board-hero .cut { transition-delay: calc(var(--i, 0) * 140ms + 380ms); }

  .js .chat .ask { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease 0.2s, transform 0.6s var(--ease) 0.2s; }
  .js .chat.in .ask { opacity: 1; transform: none; }
  .js .chat .typing { display: inline-flex; }
  .js .chat .typing i { opacity: 0; }
  .js .chat.in .typing i { animation: dot 0.9s ease-in-out 0.7s 2, gone 0.01s linear 1.5s forwards; }
  .js .chat.in .typing i:nth-child(2) { animation-delay: 0.85s, 1.5s; }
  .js .chat.in .typing i:nth-child(3) { animation-delay: 1s, 1.5s; }
  @keyframes dot { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
  @keyframes gone { to { opacity: 0; width: 0; margin: 0; } }
  .js .chat .stream .w { opacity: 0; transition: opacity 0.35s ease; transition-delay: calc(var(--k) * 26ms + 1600ms); }
  .js .chat.in .stream .w { opacity: 1; }
  .js .chat .exp { opacity: 0; transform: translateY(40px) scale(0.96); transition: opacity 0.7s ease, transform 1.1s var(--ease); transition-delay: var(--done, 3.4s); }
  .js .chat.in .exp { opacity: 1; transform: none; }

  .js .scene { visibility: hidden; }
  .js .scene.is-on { visibility: visible; }
  .js .scene .say, .js .scene .was, .js .scene .now { opacity: 0; transform: translateY(12px); }
  .js .scene .was::after { transform: scaleX(0); }
  .js .scene.is-on .say { animation: rise 0.6s var(--ease) both; }
  .js .scene.is-on .was { animation: rise 0.6s var(--ease) 0.35s both; }
  .js .scene.is-on .was::after { transition: transform 0.5s var(--ease) 1.05s; transform: scaleX(1); }
  .js .scene.is-on .now { animation: slide 0.8s var(--ease) 1.4s both; }
  @keyframes slide { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cut { translate: none; }
  .js .scene { display: none; }
  .js .scene.is-on { display: block; }
}
.js .scene { grid-area: 1 / 1; }
html:not(.js) .scenes { gap: 36px; }

/* Collage positions (design-grid values; kept out of style attributes for the site CSP) */
.v1 { --bw:640;--bh:600;--mbw:360;--mbh:360; }
.v2 { --x:105;--y:118;--w:430;--i:0;--d:.2;--z:3;--mx:0;--my:74;--mw:345; }
.v3 { --x:330;--y:16;--w:300;--i:1;--d:.9;--z:4;--mx:140;--my:0;--mw:220; }
.v4 { --x:0;--y:328;--w:400;--i:2;--d:.6;--z:5; }
.v5 { --x:220;--y:462;--w:410;--i:3;--d:1;--z:6;--mx:30;--my:262;--mw:330; }
.v6 { --bw:1100;--bh:480; }
.v7 { --x:0;--y:56;--w:350;--i:0;--d:.3; }
.v8 { --x:372;--y:0;--w:360;--i:1;--d:.7; }
.v9 { --x:760;--y:30;--w:340;--i:2;--d:.4; }
.v10 { --bw:1100;--bh:700; }
.v11 { --x:0;--y:0;--w:380;--i:0;--d:.1; }
.v12 { --x:0;--y:100;--w:300;--i:1;--d:.2; }
.v13 { --x:330;--y:100;--w:400;--i:2;--d:.6; }
.v14 { --x:760;--y:60;--w:340;--i:3;--d:.9; }
.v15 { --x:790;--y:300;--w:250;--i:4;--d:.5; }
.v16 { --x:0;--y:380;--w:380;--i:5;--d:.3; }
.v17 { --x:0;--y:610;--w:380;--i:6;--d:.8; }
.v18 { --x:410;--y:380;--w:320;--i:7;--d:.4; }
.v19 { --bw:1100;--bh:470; }
.v20 { --x:0;--y:0;--w:420;--i:0;--d:.3; }
.v21 { --x:400;--y:110;--w:370;--i:1;--d:.8; }
.v22 { --x:800;--y:10;--w:300;--i:2;--d:.5; }
.v23 { --bw:1100;--bh:440; }
.v24 { --x:0;--y:0;--w:290;--i:0;--d:.2; }
.v25 { --x:20;--y:300;--w:360;--i:1;--d:.7; }
.v26 { --x:420;--y:20;--w:340;--i:2;--d:.5; }
.v27 { --x:790;--y:70;--w:310;--i:3;--d:.9; }
.v28 { --bw:1100;--bh:520; }
.v29 { --x:0;--y:0;--w:380;--i:0;--d:.2; }
.v30 { --x:410;--y:30;--w:390;--i:1;--d:.6; }
.v31 { --x:410;--y:220;--w:220;--i:2;--d:.9; }
.v32 { --x:660;--y:200;--w:330;--i:3;--d:.4; }
.v33 { --x:830;--y:0;--w:270;--i:4;--d:1; }
.v34 { --bw:1100;--bh:560; }
.v35 { --x:0;--y:0;--w:370;--i:0;--d:.3; }
.v36 { --x:20;--y:300;--w:340;--i:1;--d:.8; }
.v37 { --x:395;--y:40;--w:350;--i:2;--d:.5; }
.v38 { --x:780;--y:0;--w:320;--i:3;--d:.2; }
.v39 { --x:760;--y:320;--w:340;--i:4;--d:.9; }
.v40 { --x:395;--y:350;--w:340;--i:5;--d:.6; }
.v41 { --bw:1100;--bh:260; }
.v42 { --x:0;--y:30;--w:370;--i:0;--d:.4; }
.v43 { --x:400;--y:0;--w:330;--i:1;--d:.8; }
.v44 { --x:760;--y:40;--w:340;--i:2;--d:.3; }
