/* Greenling website. Built on greenling-tokens.css (the brand's one source of values). */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.gl, html, body.gl-site { height: auto !important; min-height: 0; }
body.gl-site { margin: 0; background: var(--gl-paper); color: var(--gl-ink); font: 600 17px/1.55 var(--gl-font-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.gl-site * { box-sizing: border-box; }
.gl-site a { color: inherit; }
.gl-site :focus-visible { outline: 3px solid var(--gl-leaf); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gl-card); padding: 8px 14px; border-radius: 12px; }
.skip:focus { left: 16px; }

/* type roles (from the tokens) */
.gl-hero, .gl-h1, .gl-h2 { font-family: var(--gl-font-display); font-weight: 400; text-transform: uppercase; margin: 0; letter-spacing: 0.005em; text-wrap: balance; }
.gl-hero { font-size: clamp(48px, 9.6vw, 156px); line-height: .9; }
.gl-h1 { font-size: clamp(40px, 6.4vw, 96px); line-height: .92; }
.gl-h2 { font-size: clamp(30px, 4.2vw, 60px); line-height: .95; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 30em; margin: 18px 0 0; color: var(--gl-ink); font-weight: 600; }
.small { font-size: 14px; color: var(--gl-muted); margin: 14px 0 0; }
.eyebrow { font-family: var(--gl-font-rounded); font-weight: 600; font-size: 20px; margin: 0 0 12px; color: var(--gl-leaf-edge); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 800 13px/1 var(--gl-font-text); letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: var(--gl-card); color: var(--gl-ink); }
.chip.s-gold { background: var(--gl-gold-soft); color: var(--gl-gold-ink); }
.chip.s-leaf { background: var(--gl-leaf-soft); color: var(--gl-leaf-edge); }
.s-ic { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* buttons: straight, rounded, standing on a hard ledge */
.gl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-family: var(--gl-font-rounded); font-weight: 600; font-size: 18px; height: 54px; padding: 0 24px; border: 0; border-radius: var(--gl-radius-button); background: var(--gl-card); color: var(--gl-ink); box-shadow: 0 var(--gl-ledge-md) 0 var(--gl-fill-edge); transition: transform var(--gl-dur-press) var(--gl-ease-standard), box-shadow var(--gl-dur-press) var(--gl-ease-standard); cursor: pointer; white-space: nowrap; }
.gl-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--gl-fill-edge); }
.gl-btn--leaf, .gl-site .gl-btn--leaf { background: var(--gl-leaf); color: #fff; box-shadow: 0 var(--gl-ledge-md) 0 var(--gl-leaf-edge); }
.gl-btn--leaf:active { box-shadow: 0 1px 0 var(--gl-leaf-edge); }
.gl-btn--gold, .gl-site .gl-btn--gold { background: var(--gl-gold); color: #1F2A22; box-shadow: 0 var(--gl-ledge-md) 0 var(--gl-gold-edge); }
.gl-btn[aria-disabled="true"] { cursor: default; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 3vw, 40px); transition: background .3s, box-shadow .3s; }
.home .nav::before { content: ''; position: absolute; inset: 0 0 -36px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s; background: linear-gradient(to bottom, var(--s-mist, var(--gl-mist)) 0%, color-mix(in srgb, var(--s-mist, var(--gl-mist)) 82%, transparent) 55%, color-mix(in srgb, var(--s-mist, var(--gl-mist)) 0%, transparent) 100%); }
.home .nav.s-down::before { opacity: 1; }
.nav .logo { display: block; height: 36px; }
.nav .logo svg { height: 100%; width: auto; display: block; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav ul a { display: block; text-decoration: none; padding: 10px 14px; border-radius: 14px; font-weight: 700; }
.nav ul a:hover { background: color-mix(in srgb, var(--gl-card) 70%, transparent); }
.nav .gl-btn { height: 44px; font-size: 16px; padding: 0 18px; }
.nav .menu { display: none; }
@media (max-width: 860px) {
  .nav ul { display: none; }
  .nav .gl-btn.get { display: none; }
  .nav .menu { display: inline-flex; height: 44px; padding: 0 16px; }
  .nav.s-open ul { display: grid; position: absolute; top: 64px; right: 16px; background: var(--gl-card); border-radius: 22px; padding: 10px; box-shadow: 0 8px 0 var(--gl-fill-edge); }
}

/* ---------- the layers the story plays over ---------- */
/* (bottom to top: the world, the mist behind the phone, the words, the phone, the mist that drifts past it) */
.world-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--s-mist, var(--gl-mist)); }
.world-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.still { position: fixed; inset: 0; z-index: 0; background: var(--gl-mist) center/cover no-repeat; opacity: 0; transition: opacity .4s; pointer-events: none; }
.mist { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.mist-back { z-index: 2; }
.mist-front { z-index: 6; }
.phone-layer { position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none; }
.phone-layer .holder { position: absolute; left: 0; top: 0; width: 438px; height: 910px; transform-origin: 0 0; will-change: transform; perspective: 2600px; }
.phone-layer .phone { transform: rotateY(var(--tilt, 0deg)) !important; transform-style: preserve-3d; cursor: default; }
.phone-layer .screen { pointer-events: none; }
/* (Safari drops overflow's rounded clip for the canvas and the frosted tab bar inside the tilted phone, and they
showed square past its corners: a clip-path it keeps) */
.phone-layer .screen { clip-path: inset(0 round 55px); }
/* the phone: a real phone's proportions in a deep leaf-green metal finish, a slim black border round the screen, and a
   soft shadow. Frame and border are rings, so over the world (where the screen is a window) nothing shows through */
.phone-layer .body { inset: 0; border-radius: 72px; padding: 5px; box-sizing: border-box; box-shadow: none;
  background: linear-gradient(160deg, #5C9677 0%, #2B6148 9%, #1C4634 24%, #2E654B 41%, #1A4231 58%, #24573F 76%, #4F8A6B 92%, #2B6148 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.phone-layer .body::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), inset 0 2px 1px rgba(255, 255, 255, .16); }
.phone-layer .bezel { inset: 5px; border-radius: 67px; padding: 13px; box-sizing: border-box; background: #0C110E;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.phone-layer .phone::before { content: none; }
.phone-layer .phone::after { content: ''; position: absolute; inset: 0; border-radius: 72px; box-shadow: 0 46px 80px -34px rgba(24, 48, 34, .42), 0 14px 28px -14px rgba(24, 48, 34, .26); z-index: -1; }
.phone-layer .btn-side { width: 4px; border-radius: 2px; background: linear-gradient(90deg, #1A4231, #4F8A6B 55%, #24573F); }
/* the phone's empty frame over the world: its screen is a window */
body.s-over .phone-layer .screen { background: transparent; }
body.s-over .phone-layer .screen > canvas { visibility: hidden; }
.app-root { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); left: -9999px; top: 0; }
.app-root .controls, .app-root .intro { display: none; }

/* ---------- chapters ---------- */
.s-story { position: relative; z-index: 4; }
.ch { position: relative; height: var(--len, 200vh); }
/* each chapter's pinned screen takes over exactly as the last one's lets go: no stretch of scrolling where nothing happens */
.ch + .ch { margin-top: -100vh; margin-top: -100svh; }
.s-pin { pointer-events: none; }
.s-pin .copy.s-shown, .s-pin .copy.s-shown * { pointer-events: auto; }
.s-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; padding: 96px clamp(16px, 5vw, 80px) 48px; }
.copy { position: relative; z-index: 6; align-self: center; max-width: 760px; transition: opacity .5s var(--gl-ease-standard), transform .6s var(--gl-ease-standard); }
/* once the story is live the director moves the words every frame, already eased: a CSS transition on top makes them trail */
.s-live .copy { transition: none; will-change: transform, opacity; }
[data-show] { transition: opacity .5s var(--gl-ease-standard), transform .6s var(--gl-ease-standard); }
.js [data-show]:not(.s-shown) { opacity: 0; transform: translateY(24px); pointer-events: none; }
/* (once the story is live, the director fades them with the scroll itself) */
body.s-live [data-show] { transition: none; }
/* without the 3D (no WebGL, or no script): each chapter shows a still from the same world */
body.static .world-layer, body.static .phone-layer, body.static .mist { display: none; }
body.static .still { opacity: 1; }
body.static .nav .s-sound { display: none; }
/* without the 3D, the words bring their own bank of mist */
body.static .in-mist::before { content: ''; position: absolute; inset: -18% -12%; z-index: -1; background: radial-gradient(closest-side, var(--gl-mist) 58%, color-mix(in srgb, var(--gl-mist) 70%, transparent) 80%, transparent); }
/* until the engine draws its first frame, the hero shows its still */
body:not(.s-live):not(.static) .still { opacity: 1; background-image: url(../img/stills/home-open.jpg); transition: none; }
.copy.center { justify-self: center; text-align: center; }
.copy.center .lede { margin-inline: auto; }
.copy.center .ctas { justify-content: center; }
.copy.s-left { justify-self: start; }
.copy.right { justify-self: end; }
.copy.top { align-self: start; margin-top: 4vh; }
.s-pin > .copy { grid-area: 1 / 1; }
/* the words sit in the mist itself: the director draws a bank of it behind each block (no card, no edge) */
.in-mist { max-width: 640px; }
.statement { max-width: 820px; }
.statement .lede { max-width: 34em; }
.scroll-cue { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; margin: 0; /* (centred without a transform: the director moves the words by theirs) */ font-family: var(--gl-font-rounded); font-size: 18px; color: var(--gl-leaf-edge); opacity: 0; transition: opacity .5s; }
.scroll-cue.s-shown { opacity: 1; }
.open-copy { align-self: center; max-width: 1100px; margin-top: -2vh; }
.open-copy .gl-hero { font-size: clamp(44px, 7.2vw, 116px); }
.day-copy .gl-h1, .habits-copy .gl-h1, .loop-copy .gl-h1 { font-size: clamp(34px, 4.8vw, 76px); }
.habits-copy, .loop-copy { max-width: min(520px, 34vw); }
.end-card .gl-hero { font-size: clamp(48px, 7vw, 112px); }
.open-copy .gl-hero { color: var(--gl-leaf-edge); }
.open-copy .lede { max-width: 34em; }
.seed-copy { align-self: center; }
.seed-copy .gl-h1 { color: var(--gl-leaf-edge); }

/* steps that follow the phone: the one it's showing is lit, and opens to say more */
.s-steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; max-width: 30em; }
/* (numbered by place, so a list that only shows its current step on a phone keeps its numbers) */
.s-steps li:nth-child(2)::before { content: '2'; } .s-steps li:nth-child(3)::before { content: '3'; } .s-steps li:nth-child(4)::before { content: '4'; }
.s-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: center; opacity: .42; transition: opacity .45s var(--gl-ease-standard); }
.s-steps li::before { content: '1'; grid-row: span 2; align-self: start; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 400 22px/1 var(--gl-font-display); background: var(--gl-fill); color: var(--gl-muted); box-shadow: 0 4px 0 var(--gl-fill-edge); transition: background .3s, color .3s, box-shadow .3s; }
.s-steps li.s-done { opacity: .62; }
.s-steps li.s-done::before { background: var(--gl-leaf-soft); color: var(--gl-leaf-edge); box-shadow: 0 4px 0 #B9D3C1; }
.s-steps li.s-now { opacity: 1; }
.s-steps li.s-now::before { background: var(--gl-leaf); color: #fff; box-shadow: 0 4px 0 var(--gl-leaf-edge); }
.s-steps b { font: 600 24px/1.2 var(--gl-font-rounded); min-height: 44px; display: flex; align-items: center; }
.s-steps span { display: block; font-size: 18px; line-height: 1.45; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--gl-ease-standard), opacity .4s; }
.s-steps li.s-now span { max-height: 7em; opacity: 1; }

/* the week of habits, inside the app (in the app's own colours and type) */
.s-week { display: none; }
.s-week.in-app { display: grid; gap: 9px; margin: 2px 0 16px; background: var(--app-card, #fff); border-radius: 22px; padding: 14px 14px 12px; box-shadow: 0 1px 0 var(--app-line, #E2E5DD); }
.s-week .wk-head, .s-week .s-hrow { display: grid; grid-template-columns: minmax(0, 1fr) repeat(7, 28px); gap: 5px; align-items: center; }
.s-week .wk-head b { font: 600 17px/1 var(--display, var(--gl-font-rounded)); }
.s-week .wk-head span { text-align: center; font: 700 12px/1 var(--gl-font-text); color: var(--app-muted, var(--gl-muted)); }
.s-week .s-hrow .nm { font: 600 15px/1.2 var(--gl-font-rounded); color: var(--app-ink, var(--gl-ink)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-week .s-hrow .d { width: 28px; height: 28px; border-radius: 9px; background: var(--app-fill, var(--gl-fill)); display: grid; place-items: center; color: var(--gl-gold); transition: background .3s; }
.s-week .s-hrow .d svg { width: 19px; height: 19px; fill: currentColor; transform: scale(0); transition: transform .45s var(--gl-ease-pop); }
.s-week .s-hrow .d.s-on { background: var(--gl-gold-soft); }
.s-week .s-hrow .d.s-on svg { transform: none; }
.s-week .s-hrow .d.s-rest { background: var(--gl-clay-soft); color: var(--gl-clay); }
.s-week .s-hrow .d.s-rest svg { transform: none; }
#habitsPage .addrow { display: none; }
/* (without the 3D, the chapter's still already shows the phone with the week in it) */
.no-shame { display: flex; gap: 12px; align-items: flex-start; margin: 0; max-width: 24em; font-size: 18px; }
.no-shame .s-ic { color: var(--gl-clay); margin-top: 2px; }
.rest-copy { align-self: end; margin-bottom: 14vh; max-width: min(290px, 20vw); }
.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px); }
@media (max-width: 860px) { .s-pin { padding-top: 84px; } }

/* 9 · world chips */
.world-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 24px 0 0; }
.w-grass { background: var(--gl-sprout); color: var(--gl-leaf-edge); } .w-reef { background: var(--gl-lagoon); color: var(--gl-lagoon-deep); }
.w-forest { background: var(--gl-moss); color: var(--gl-moss-deep); } .w-peaks { background: var(--gl-snow); color: var(--gl-slate); }

/* 10 · find them all: a wall of square illustrations at every angle, floating in the mist and fading into it */
.ch-find .s-pin { place-items: center; }
.tile-wall { position: absolute; inset: -10% -6%; display: grid; grid-template-columns: repeat(9, 1fr); gap: clamp(10px, 1.4vw, 22px); align-content: center; transform: rotate(-8deg); opacity: 0;
  -webkit-mask-image: radial-gradient(56% 58% at 50% 50%, #000 35%, transparent 92%); mask-image: radial-gradient(56% 58% at 50% 50%, #000 35%, transparent 92%); }
.tile-wall img { width: 100%; height: auto; display: block; border-radius: 22%; box-shadow: 0 8px 0 rgba(30, 58, 46, .12); transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px)); transition: transform .2s linear; }
.find-copy { max-width: 900px; position: relative; }
/* (the tiles sit over the page's mist, so these words bring their own bank of it) */
.find-copy::before { content: ''; position: absolute; inset: -22% -16%; z-index: -1; background: radial-gradient(closest-side, var(--s-mist, var(--gl-mist)) 62%, color-mix(in srgb, var(--s-mist, var(--gl-mist)) 70%, transparent) 80%, transparent); }
.find-copy .gl-hero { color: var(--gl-leaf-edge); font-size: clamp(44px, 7.6vw, 120px); }
.find-copy .gl-hero span { color: inherit; }
body.static .tile-wall { transition: opacity .5s; }
body.static .ch-find.s-here .tile-wall { opacity: 1; }
@media (max-width: 860px) { .tile-wall { grid-template-columns: repeat(5, 1fr); inset: -4% -30%; } }

/* 11 · end: in the mist */
.end-card { align-self: center; max-width: 1000px; }
.end-card .gl-hero { color: var(--gl-leaf-edge); }

/* ---------- footer ---------- */
.s-foot.on-mist { background: transparent; color: var(--gl-ink); padding-top: 24px; }
.s-foot.on-mist nav a { color: var(--gl-ink); }
.s-foot.on-mist nav a:hover { color: var(--gl-leaf); }
.s-foot.on-mist .fine { color: var(--gl-muted); }
.s-foot.on-mist .tag { color: var(--gl-leaf-edge); }
.s-foot { position: relative; z-index: 6; background: var(--gl-deep); color: #EAF2EC; padding: 64px clamp(16px, 5vw, 80px) 40px; }
.s-foot .s-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.s-foot .logo svg { height: 34px; width: auto; display: block; }
.s-foot nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(140px, auto)); }
.s-foot nav a { text-decoration: none; font-weight: 700; color: #EAF2EC; }
.s-foot nav a:hover { color: var(--gl-sun); }
.s-foot .fine { margin-top: 40px; font-size: 14px; color: #A9C3B2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.s-foot .tag { font-family: var(--gl-font-rounded); font-size: 20px; margin: 14px 0 0; color: #CFE6C8; }

/* ---------- inner pages ---------- */
.page-hero { padding: 140px clamp(16px, 5vw, 80px) 56px; position: relative; overflow: hidden; }
.page-hero > * { position: relative; z-index: 1; }
/* the page's top band ends in soft mist, not a line */
.page-hero::after { content: ''; position: absolute; left: -4%; right: -4%; bottom: -1px; height: 150px; z-index: 0; pointer-events: none; background: radial-gradient(170px 70px at 4% 78%, var(--gl-paper) 38%, color-mix(in srgb, var(--gl-paper) 0%, transparent) 72%), radial-gradient(240px 90px at 17% 88%, var(--gl-paper) 38%, color-mix(in srgb, var(--gl-paper) 0%, transparent) 72%), radial-gradient(200px 80px at 31% 74%, var(--gl-paper) 38%, color-mix(in srgb, var(--gl-paper) 0%, transparent) 72%), radial-gradient(280px 100px at 46% 90%, var(--gl-paper) 38%, color-mix(in srgb, var(--gl-paper) 0%, transparent) 72%), radial-gradient(210px 80px at 60% 76%, var(--gl-paper) 38%, color-mix(in srgb, var(--gl-paper) 0%, transparent) 72%), radial-gradient(260px 96px at 74% 88%, var(--gl-paper) 38%, color-mix(in srgb, var(--gl-paper) 0%, transparent) 72%), radial-gradient(190px 76px at 87% 74%, var(--gl-paper) 38%, color-mix(in srgb, var(--gl-paper) 0%, transparent) 72%), radial-gradient(230px 90px at 98% 86%, var(--gl-paper) 38%, color-mix(in srgb, var(--gl-paper) 0%, transparent) 72%), linear-gradient(to bottom, color-mix(in srgb, var(--gl-paper) 0%, transparent) 0%, color-mix(in srgb, var(--gl-paper) 60%, transparent) 55%, var(--gl-paper) 92%); }
.page-hero { padding-bottom: 170px; }
.page-hero::before { content: ''; position: absolute; inset: 0; opacity: .35; pointer-events: none; background-size: 520px auto; }
.page-hero.sprout { background: var(--gl-sprout); } .page-hero.sprout::before { background-image: url(../patterns/leaves-grasslands.svg); }
.page-hero.lagoon { background: var(--gl-lagoon); } .page-hero.lagoon::before { background-image: url(../patterns/facets-reef.svg); background-size: 480px auto; opacity: .6; }
.page-hero.moss { background: var(--gl-moss); } .page-hero.moss::before { background-image: url(../patterns/facets-forest.svg); background-size: 480px auto; opacity: .6; }
.page-hero.snow { background: var(--gl-snow); } .page-hero.snow::before { background-image: url(../patterns/facets-peaks.svg); background-size: 480px auto; opacity: .7; }
.page-hero.paper { background: #EAF4E4; } .page-hero.paper::before { background-image: url(../patterns/contours-grasslands.svg); background-size: 600px auto; opacity: .55; }
.page-hero.deep { background: var(--gl-deep); color: #fff; } .page-hero.deep::before { background-image: url(../patterns/seeds-deep.svg); background-size: 480px auto; opacity: .3; }
.page-hero.deep .lede { color: #DCEBE1; }
.page-hero .gl-h1 { max-width: 14ch; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 80px); }
.section { padding: 64px 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.tiles figure { margin: 0; text-align: center; }
.tiles img { width: 100%; height: auto; display: block; border-radius: 22%; box-shadow: 0 5px 0 rgba(0, 0, 0, .12); }
.tiles figcaption { font-family: var(--gl-font-rounded); font-weight: 600; margin-top: 10px; font-size: 17px; }
.tiles figcaption small { display: block; font-family: var(--gl-font-text); font-weight: 700; font-size: 13px; color: var(--gl-muted); }
.world-still { width: 100%; height: auto; display: block; border-radius: var(--gl-radius-section); box-shadow: 0 8px 0 rgba(0, 0, 0, .12); }

/* ---------- the inner pages in the home page's manner: the game's pictures, the words in banks of mist ---------- */
body.m-page { background: var(--gl-mist); }
.m-page .s-foot.on-mist { background: var(--gl-mist); }
.gl-site .s-ic { width: 24px; height: 24px; flex: none; }
.gl-btn .s-ic { width: 20px; height: 20px; }
/* words come up out of the mist as they come into view (inner.js) */
.js [data-rise] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--gl-ease-standard), transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .9s var(--gl-ease-standard); }
.js [data-rise].s-in { opacity: 1; transform: none; filter: none; }
/* (the game's pictures drift a little against the scroll: --k is where they are on the screen, -0.5 to 0.5) */
[data-drift] { --k: 0; }
.m-pic { display: block; }
/* the top of the page: a picture from the game, page-wide, and the words over it in a bank of mist */
.m-hero { position: relative; min-height: min(92vh, 900px); display: grid; align-items: center; padding: 120px 0 160px; overflow: hidden; isolation: isolate; }
.m-hero .m-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* (and it dissolves into the mist at the bottom, in puffs, as the home page's chapters do) */
.m-hero::after, .m-scene::before, .m-scene::after { content: ''; position: absolute; left: -4%; right: -4%; height: 190px; z-index: -1; pointer-events: none;
  background: radial-gradient(180px 80px at 4% 76%, var(--gl-mist) 40%, transparent 72%), radial-gradient(260px 100px at 18% 88%, var(--gl-mist) 40%, transparent 72%), radial-gradient(220px 90px at 32% 72%, var(--gl-mist) 40%, transparent 72%), radial-gradient(300px 110px at 47% 90%, var(--gl-mist) 40%, transparent 72%), radial-gradient(230px 90px at 61% 74%, var(--gl-mist) 40%, transparent 72%), radial-gradient(280px 104px at 75% 88%, var(--gl-mist) 40%, transparent 72%), radial-gradient(210px 84px at 88% 72%, var(--gl-mist) 40%, transparent 72%), radial-gradient(250px 96px at 99% 86%, var(--gl-mist) 40%, transparent 72%), linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--gl-mist) 55%, transparent) 50%, var(--gl-mist) 90%); }
.m-hero::after, .m-scene::after { bottom: -1px; }
.m-bank { position: relative; max-width: 640px; }
.m-bank > * { position: relative; }
/* (the bank: soft mist behind the words, so they read over any picture) */
.m-bank::before { content: ''; position: absolute; inset: -26% -22% -30% -30%; border-radius: 50%; background: radial-gradient(closest-side, var(--gl-mist) 58%, color-mix(in srgb, var(--gl-mist) 82%, transparent) 72%, transparent 100%); filter: blur(4px); }
.m-bank .gl-h1 { margin-top: 18px; }
.m-bank.center { text-align: center; margin: 0 auto; }
.m-bank.center .lede { margin-inline: auto; }
html.gl-wait .m-bank { opacity: 0; }
.m-bank { transition: opacity .45s ease; }
.m-hero .m-pic { transform: scale(1.04); animation: m-settle 2.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes m-settle { from { transform: scale(1.12); filter: blur(10px); opacity: .4; } to { transform: scale(1.04); filter: none; opacity: 1; } }
/* a scene: a page-wide picture with something over it, dissolving into the mist at both ends */
.m-scene { position: relative; padding: 200px 0; overflow: hidden; isolation: isolate; }
.m-scene .m-pic { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; z-index: -2; transform: translate3d(0, calc(var(--k) * -70px), 0); }
.m-scene::before { top: -1px; transform: scaleY(-1); }
/* (round windows onto the worlds, for the small pictures) */
.m-thumb { display: block; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: none; background: var(--w-soft, var(--gl-fill)); box-shadow: 0 0 0 4px #fff, 0 10px 20px -10px rgba(24, 48, 34, .4); }
.m-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); }
.m-thumbs { display: flex; }
.m-thumbs .m-thumb { width: 52px; height: 52px; }
.m-thumbs .m-thumb + .m-thumb { margin-left: -18px; }
.m-art { margin: 0; display: grid; justify-items: center; gap: 8px; text-align: center; }
.m-art figcaption { font: 700 13px/1.2 var(--gl-font-text); color: var(--gl-ink); }
.m-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--gl-leaf); box-shadow: 0 10px 20px -12px rgba(24, 48, 34, .45); }
.m-badge .s-ic { width: 36px; height: 36px; }
.m-arts { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.m-arts .m-thumb { width: 54px; height: 54px; }
.m-arts:has(.m-thumb) { gap: 10px; }
/* (frosted mist panels over a scene) */
.m-glasses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.m-glass { background: color-mix(in srgb, var(--gl-mist) 84%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); border-radius: 34px; padding: 28px; box-shadow: 0 30px 60px -36px rgba(24, 48, 34, .5); }
.m-glass h3 { font-family: var(--gl-font-rounded); font-weight: 600; font-size: 24px; line-height: 1.15; margin: 4px 0 8px; }
.m-glass p { margin: 0; font-size: 16px; color: #3B463F; }
.m-glasses .m-glass:nth-child(2) { transition-delay: .12s; } .m-glasses .m-glass:nth-child(3) { transition-delay: .24s; }

/* ---------- how it works ---------- */
.hw-hero { min-height: min(96vh, 920px); }
.hw-hero .m-pic { object-position: 70% 60%; }
.hw-flow { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hw-flow a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gl-ink); background: #fff; border-radius: var(--gl-radius-pill); padding: 8px 18px 8px 8px; font-family: var(--gl-font-rounded); font-weight: 600; font-size: 17px; box-shadow: 0 10px 22px -14px rgba(24, 48, 34, .5); transition: transform var(--gl-dur-quick) var(--gl-ease-spring); }
.hw-flow a:hover { transform: translateY(-3px); }
.hw-flow b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gl-leaf); color: #fff; font: 400 15px/1 var(--gl-font-display); }
.hw-steps { padding: 0 0 40px; margin-top: -40px; position: relative; }
.hw-more { margin-top: 0; padding: 60px 0 80px; }
.hw-more .m-bank { margin-bottom: 24px; }
.w-paths { margin-top: 0; padding: 72px 0 0; }
.hw-step { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: 20px 0; scroll-margin-top: 80px; }
.hw-step:nth-child(even) .hw-shot { order: 2; }
.hw-shot { position: relative; display: grid; place-items: center; padding: 48px 0; }
/* (each phone stands in front of a round window onto one of the worlds, its edge lost in mist) */
.hw-window { position: absolute; width: min(560px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; transform: translate3d(0, calc(var(--k) * 40px), 0);
  -webkit-mask: radial-gradient(closest-side, #000 62%, transparent 100%); mask: radial-gradient(closest-side, #000 62%, transparent 100%); }
.hw-window img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.25); }
.hw-phone { position: relative; width: min(290px, 66vw); aspect-ratio: 402 / 874; padding: 9px; border-radius: 52px; box-sizing: content-box;
  background: linear-gradient(160deg, #5C9677 0%, #2B6148 9%, #1C4634 24%, #2E654B 41%, #1A4231 58%, #24573F 76%, #4F8A6B 92%, #2B6148 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 50px 80px -36px rgba(24, 48, 34, .55), 0 14px 26px -14px rgba(24, 48, 34, .3);
  transform: perspective(1600px) translate3d(0, calc(var(--k) * -36px), 0) rotateY(calc(var(--k) * -14deg)) rotateX(calc(var(--k) * 4deg)); }
.hw-step:nth-child(even) .hw-phone { transform: perspective(1600px) translate3d(0, calc(var(--k) * -36px), 0) rotateY(calc(var(--k) * 14deg)) rotateX(calc(var(--k) * 4deg)); }
.hw-phone img { display: block; width: 100%; height: 100%; border-radius: 44px; border: 5px solid #0C110E; box-sizing: border-box; background: #e8ece4; }
.hw-n { display: block; font: 400 clamp(72px, 9vw, 128px)/.85 var(--gl-font-display); color: var(--gl-leaf); }
.hw-text .gl-h2 { margin-top: 10px; }
.hw-facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; max-width: 30em; }
.hw-facts li { position: relative; padding-left: 34px; font-size: 18px; }
/* (a small seed, the brand's own mark, for each point) */
.hw-facts li::before { content: ''; position: absolute; left: 0; top: .22em; width: 20px; height: 20px; border-radius: 50% 50% 50% 8%; transform: rotate(-45deg); background: var(--gl-leaf); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .12); }
.hw-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin-top: 36px; }
.hw-rule { border-top: 3px solid color-mix(in srgb, var(--gl-leaf) 30%, transparent); padding-top: 18px; }
.hw-rule h3 { font-family: var(--gl-font-rounded); font-weight: 600; font-size: 24px; margin: 0 0 8px; }
.hw-rule p { margin: 0; color: #4F5952; font-size: 17px; }
.hw-rules .hw-rule:nth-child(even) { transition-delay: .1s; }
.m-next { padding: 220px 0 240px; }
.m-next .m-pic { object-position: 50% 50%; }
.m-next .gl-h2 { margin: 16px 0 0; }
.m-next .lede { margin-bottom: 26px; }
.small.center, .m-bank .small { margin-top: 18px; }
@media (max-width: 860px) {
  .hw-step { grid-template-columns: 1fr; gap: 0; padding: 12px 0 36px; }
  .hw-step:nth-child(even) .hw-shot { order: 0; }
  .m-glasses, .hw-rules { grid-template-columns: 1fr; }
  /* (on a phone the words come first, on the mist, and the picture below them, rising out of it) */
  .m-hero, .w-all { min-height: 0; padding: 112px 0 calc(64vw + 40px); align-items: start; }
  .m-hero .m-pic, .w-all .m-pic { top: auto; bottom: 0; height: calc(64vw + 150px); object-position: 55% 50%;
    -webkit-mask: linear-gradient(to bottom, transparent 0, #000 34%); mask: linear-gradient(to bottom, transparent 0, #000 34%); }
  .m-bank::before { inset: -14% -8% -20% -8%; }
}

/* ---------- worlds ---------- */
.wl-grasslands { --w-surface: var(--gl-grasslands-surface); --w-ink: var(--gl-grasslands-ink); --w-soft: #E7F5E3; }
.wl-reef { --w-surface: var(--gl-reef-surface); --w-ink: var(--gl-reef-ink); --w-soft: #E2F2F5; }
.wl-forest { --w-surface: var(--gl-forest-surface); --w-ink: var(--gl-forest-ink); --w-soft: #E2EEDC; }
.wl-peaks { --w-surface: var(--gl-peaks-surface); --w-ink: var(--gl-peaks-ink); --w-soft: #EEF3F8; }
.w-all { align-items: start; padding-top: 130px; min-height: min(100vh, 980px); }
/* (the strip of worlds runs across the page under the title, in the mist) */
.w-all .m-pic { top: 22%; height: 88%; object-position: 50% 45%; }
.w-all .m-bank { max-width: 980px; }
.w-all .m-bank::before { inset: -30% -12% -40% -18%; }
.w-all .lede { max-width: 34em; }
.w-track-wrap { position: relative; margin-top: -120px; z-index: 2; }
.w-track { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; position: relative; }
.w-track::before { content: ''; position: absolute; left: 48px; right: 22%; top: 46px; border-top: 3px dashed color-mix(in srgb, var(--gl-leaf) 40%, transparent); }
.w-track li { position: relative; }
.w-track a { display: grid; gap: 2px; text-decoration: none; color: var(--gl-ink); }
.w-track .m-thumb { width: 96px; height: 96px; margin-bottom: 14px; transition: transform var(--gl-dur-quick) var(--gl-ease-spring); }
.w-track a:hover .m-thumb, .w-hop:hover .m-thumb { transform: translateY(-4px) scale(1.04); }
.w-track small, .w-hop small { font: 800 12px/1.2 var(--gl-font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--gl-muted); }
.w-track b { font-family: var(--gl-font-rounded); font-weight: 600; font-size: 22px; }
.w-track span:last-child { font-size: 14px; color: var(--gl-muted); }
.w-feats { padding-top: 40px; }
.w-feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: 24px 0; }
.w-feat:nth-child(even) .w-pic { order: 2; }
/* (each world floats in the mist, its edges lost in it, as the land does in the game) */
.w-pic { display: block; transform: translate3d(0, calc(var(--k) * 30px), 0); -webkit-mask: radial-gradient(ellipse closest-side, #000 66%, transparent 100%); mask: radial-gradient(ellipse closest-side, #000 66%, transparent 100%); }
.w-pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.w-pic:hover img { transform: scale(1.04); }
.w-text .chip, .w-one .chip { background: var(--w-surface); color: var(--w-ink); }
.w-text .gl-h2 { margin-top: 16px; color: var(--w-ink); }
.w-count { margin: 18px 0 10px; font: 800 13px/1.2 var(--gl-font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--gl-muted); }
.w-minis { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.w-minis img { width: 60px; height: 60px; border-radius: 22%; box-shadow: 0 8px 14px -10px rgba(0, 0, 0, .45); }
@media (max-width: 860px) {
  .w-track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .w-track::before { display: none; }
  .w-track-wrap { margin-top: -80px; }
  .w-feat { grid-template-columns: 1fr; gap: 0; padding: 16px 0 28px; }
  .w-feat:nth-child(even) .w-pic { order: 0; }
}
/* a world's own page */
.w-one .m-pic { object-position: 60% 50%; }
.w-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px; text-decoration: none; color: var(--gl-ink); font-family: var(--gl-font-rounded); font-weight: 600; font-size: 17px; }
.w-back .s-ic { width: 20px; height: 20px; }
.w-one .m-bank { display: flex; flex-direction: column; align-items: flex-start; }
.w-one .gl-h1 { color: var(--w-ink); }
.w-head { display: flex; align-items: center; gap: 14px; }
.w-head .chip { background: var(--w-surface); color: var(--w-ink); font-size: 17px; padding: 9px 15px; }
.w-sub { margin: 10px 0 26px; color: var(--gl-muted); max-width: 36em; }
.p-world .tiles figure { background: #fff; border-radius: 26px; padding: 12px 12px 14px; box-shadow: 0 18px 30px -22px rgba(24, 48, 34, .45); }
.p-world .tiles img { box-shadow: none; }
.p-world .tiles figcaption { font-size: 16px; }
.w-hops { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 72px; }
.w-hop { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--gl-ink); background: var(--w-soft); border-radius: 34px; padding: 18px 24px; }
.w-hop .m-thumb { width: 64px; height: 64px; }
.w-hop b { display: block; font-family: var(--gl-font-rounded); font-weight: 600; font-size: 22px; }
.w-hop:last-child { flex-direction: row-reverse; text-align: right; }
@media (max-width: 560px) { .w-hops { grid-template-columns: 1fr; } .w-hop:last-child { flex-direction: row; text-align: left; } }
@media (prefers-reduced-motion: reduce) { .m-hero .m-pic { animation: none; } [data-drift], .hw-phone, .hw-window, .w-pic, .m-scene .m-pic { transform: none !important; } }
.prose { max-width: 720px; }
.prose h2 { font-family: var(--gl-font-rounded); font-weight: 600; font-size: 28px; margin: 40px 0 8px; }
.prose p, .prose li { font-size: 18px; }
.draft { background: var(--gl-gold-soft); color: var(--gl-gold-ink); border-radius: 18px; padding: 14px 18px; font-weight: 700; }
.faq details { background: var(--gl-card); border-radius: 22px; padding: 18px 22px; margin: 0 0 14px; box-shadow: 0 4px 0 var(--gl-fill-edge); }
.faq summary { font-family: var(--gl-font-rounded); font-weight: 600; font-size: 21px; cursor: pointer; }
.faq p { margin: 10px 0 0; }
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.dl a { display: block; background: var(--gl-card); border-radius: 24px; padding: 18px; text-decoration: none; box-shadow: 0 5px 0 var(--gl-fill-edge); }
.dl a .art { height: 140px; display: grid; place-items: center; border-radius: 18px; background: var(--gl-paper); margin-bottom: 12px; overflow: hidden; }
.dl a .art.dark { background: var(--gl-deep); }
.dl a .art img, .dl a .art svg { max-width: 80%; max-height: 110px; }
.dl a b { display: block; font-family: var(--gl-font-rounded); font-weight: 600; font-size: 19px; }
.dl a span { font-size: 14px; color: var(--gl-muted); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sw { border-radius: 22px; overflow: hidden; background: var(--gl-card); box-shadow: 0 4px 0 var(--gl-fill-edge); }
.sw i { display: block; height: 90px; }
.sw b, .sw span { display: block; padding: 0 14px; }
.sw b { font-family: var(--gl-font-rounded); font-weight: 600; padding-top: 10px; }
.sw span { font-size: 14px; color: var(--gl-muted); padding-bottom: 12px; }
.inner .nav { background: color-mix(in srgb, var(--gl-paper) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

.ch-life .statement { max-width: 760px; justify-self: start; }
.ch-life .statement .gl-h1 { font-size: clamp(36px, 5.2vw, 84px); line-height: .95; }

@media (max-width: 860px) {
  .copy.s-left, .copy.right { align-self: start; margin-top: 1vh; justify-self: stretch; }
  .rest-copy { display: none; }
  .gl-h1 { font-size: clamp(34px, 10vw, 60px); }
  .ch-end .gl-hero, .open-copy .gl-hero { font-size: clamp(40px, 12vw, 72px); }
  .open-copy { align-self: center; }
  .s-steps { margin-top: 16px; gap: 8px; }
  .s-steps b { font-size: 19px; min-height: 36px; }
  .s-steps li { grid-template-columns: 36px 1fr; column-gap: 12px; }
  .s-steps li::before { width: 36px; height: 36px; border-radius: 12px; font-size: 18px; }
  .s-steps span { font-size: 16px; }
  .ch-day .lede, .ch-habits .lede, .ch-loop .lede { display: none; }
  .habits-copy, .loop-copy { max-width: none; }
  .loop-copy .s-steps li:not(.s-now) { display: none; }
  body.static .loop-copy .s-steps li { display: grid; }
}
/* the seed can be dragged down with a mouse in the first two chapters */
body.s-grab .s-story { cursor: grab; } body.s-dragging, body.s-dragging * { cursor: grabbing !important; user-select: none; }
/* press clips */
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.clip { margin: 0; background: #fff; border-radius: var(--gl-radius-card, 28px); overflow: hidden; box-shadow: 0 4px 0 var(--gl-line, #E2E5DD); }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #E9ECE4; }
.clip figcaption { padding: 14px 18px 18px; display: grid; gap: 4px; }
.clip b { font-family: var(--gl-font-rounded); font-weight: 600; font-size: 20px; }
.clip span { color: var(--gl-muted); font-size: 15px; }
@media (max-width: 860px) { .clips { grid-template-columns: 1fr; } }
/* the app icon on the last chapter */
.end-icon { display: block; width: 104px; height: 104px; border-radius: 23%; box-shadow: 0 5px 0 rgba(27, 33, 29, .14); margin: 0 auto 22px; }
@media (max-width: 860px) { .end-icon { width: 76px; height: 76px; margin-bottom: 14px; } }
/* the sound switch in the home page's nav */
.nav .s-sound { height: 44px; padding: 0 14px; gap: 8px; font-size: 16px; }
.nav .s-sound .s-ic { width: 20px; height: 20px; fill: currentColor; }
.nav .s-sound[aria-pressed="true"] { background: var(--gl-leaf-soft, #DCE9DF); }
@media (max-width: 860px) { .nav .s-sound span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .nav .s-sound { padding: 0 12px; } .nav .get { display: none; } }

/* until the fonts are in (see the page head), the words wait, then fade in once in their own type */
html.gl-wait .s-story [data-show], html.gl-wait .page-hero > .wrap { opacity: 0 !important; }
.page-hero > .wrap { transition: opacity .45s ease; }

/* the story's words, a size down from the brand's display sizes: the pictures carry the page */
.s-story .gl-h1 { font-size: clamp(32px, 5.1vw, 78px); }
.s-story .lede { font-size: clamp(17px, 1.3vw, 19px); }
.open-copy .gl-hero { font-size: clamp(40px, 6vw, 96px); }
.day-copy .gl-h1, .habits-copy .gl-h1, .loop-copy .gl-h1 { font-size: clamp(30px, 4vw, 62px); }
.end-card .gl-hero { font-size: clamp(40px, 5.8vw, 92px); }
.find-copy .gl-hero { font-size: clamp(38px, 6.2vw, 98px); }
.ch-life .statement .gl-h1 { font-size: clamp(32px, 4.3vw, 68px); }
@media (max-width: 860px) {
  .s-story .gl-h1 { font-size: clamp(30px, 8.6vw, 50px); }
  .ch-end .gl-hero, .open-copy .gl-hero, .find-copy .gl-hero { font-size: clamp(36px, 10.4vw, 62px); }
  .day-copy .gl-h1, .habits-copy .gl-h1, .loop-copy .gl-h1 { font-size: clamp(28px, 7.6vw, 44px); }
}

/* every headline in the story in the same deep leaf green */
.s-story .gl-hero, .s-story .gl-h1, .s-story .gl-h2 { color: var(--gl-leaf-edge); }

/* our habits' week: a day over the usual earns nothing (and costs nothing); a new habit's week is spent learning */
.s-week .s-hrow .d.s-rest { background: var(--app-fill, var(--gl-fill)); }
.s-week .s-hrow .d.learn.s-on { background: transparent; box-shadow: inset 0 0 0 2px var(--gl-line); }
.s-week .s-hrow .nm small { display: block; font: 700 11px/1.2 var(--gl-font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--gl-muted); }

/* the legal pages: Privacy, Terms and the legal notice, in the site's prose */
.legal-doc h2 { font-size: 24px; margin-top: 44px; }
.legal-doc h3 { font: 600 19px/1.3 var(--gl-font-rounded); margin: 28px 0 6px; }
.legal-doc p, .legal-doc li { font-size: 17px; line-height: 1.6; }
.legal-doc a { color: var(--gl-leaf); }
.legal-doc .note { background: var(--gl-card); border-radius: var(--gl-radius-card, 28px); padding: 22px 24px; margin: 24px 0; }
.legal-doc .note .k, .legal-doc .note > span.k { display: block; font: 800 12px/1 var(--gl-font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--gl-leaf); margin-bottom: 10px; }
.legal-doc .note p { margin: 8px 0 0; }
.legal-doc dl.facts { margin: 18px 0; display: grid; grid-template-columns: 200px 1fr; background: var(--gl-card); border-radius: 20px; padding: 6px 22px; }
.legal-doc dl.facts dt { font: 800 12px/1.3 var(--gl-font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--gl-muted); padding: 14px 0; border-top: 1px solid var(--gl-line); }
.legal-doc dl.facts dd { margin: 0; font-size: 16px; padding: 12px 0; border-top: 1px solid var(--gl-line); }
.legal-doc dl.facts dt:first-of-type, .legal-doc dl.facts dd:first-of-type { border-top: 0; }
.legal-doc .todo { background: var(--gl-clay-soft); color: var(--gl-clay); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.page-hero .updated { font-size: 15px; color: var(--gl-muted); margin-top: 14px; max-width: 60ch; }
@media (max-width: 640px) { .legal-doc dl.facts { grid-template-columns: 1fr; } .legal-doc dl.facts dt { padding-bottom: 0; } .legal-doc dl.facts dd { border-top: 0; padding-top: 4px; } }

/* Next: glides to the story's next resting point (a chapter's words, or the next step on the phone) */
.next-part { position: fixed; right: 28px; bottom: 28px; z-index: 40; height: 52px; padding: 0 20px 0 16px; font-size: 17px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s var(--gl-ease-standard), transform .35s var(--gl-ease-standard), box-shadow var(--gl-dur-press) var(--gl-ease-standard); }
.next-part.on { opacity: 1; transform: none; pointer-events: auto; }
.next-part.on:active { transform: translateY(3px); }
.next-part svg { width: 22px; height: 22px; transition: transform .3s var(--gl-ease-standard); }
.next-part.up svg { transform: rotate(180deg); }
.next-part:focus-visible { outline: 3px solid var(--gl-leaf-edge); outline-offset: 3px; }
@media (max-width: 760px) { .next-part { right: 16px; bottom: 16px; height: 48px; padding: 0 16px 0 12px; font-size: 16px; } .scroll-cue { bottom: 84px; } }

/* ---------- become a tester: the sign-up card, the invite, and how to test ---------- */
.t-hero { min-height: min(84vh, 780px); }
.t-hero .m-pic { object-position: 60% 55%; }
.t-hero .m-bank .gl-btn { margin-top: 28px; }
.t-join { padding-top: 24px; }
.t-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.t-why .gl-h2 { margin-top: 16px; }
.t-card { background: var(--gl-card); border-radius: 34px; padding: clamp(22px, 3.4vw, 40px); box-shadow: 0 6px 0 var(--gl-fill-edge), 0 40px 70px -44px rgba(24, 48, 34, .55); scroll-margin-top: 96px; }
.t-card h2 { font-family: var(--gl-font-rounded); font-weight: 600; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.06; letter-spacing: -.01em; margin: 0; }
.t-sub { margin: 8px 0 0; color: #4F5952; }
.t-field { display: block; margin-top: 22px; }
.t-field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--gl-font-rounded); font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.t-field em { font: 800 11px/1 var(--gl-font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--gl-leaf); }
.t-field em.opt { color: var(--gl-muted); }
.t-field input { display: block; width: 100%; height: 56px; padding: 0 18px; border: 2px solid var(--gl-fill-edge); border-radius: 18px; background: var(--gl-paper); color: var(--gl-ink); font: 600 18px/1 var(--gl-font-text); -webkit-appearance: none; appearance: none; transition: border-color var(--gl-dur-quick, .2s), background var(--gl-dur-quick, .2s); }
.t-field input::placeholder { color: #9AA39C; }
.t-field input:focus { outline: none; border-color: var(--gl-leaf); background: #fff; }
.t-field input[aria-invalid="true"] { border-color: var(--gl-clay); background: var(--gl-clay-soft); }
.t-field small { display: block; margin-top: 8px; font-size: 14px; color: var(--gl-muted); }
.t-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.t-err { margin: 16px 0 0; padding: 12px 16px; border-radius: 16px; background: var(--gl-clay-soft); color: var(--gl-clay-edge); font-size: 16px; }
.t-form .gl-btn { width: 100%; margin-top: 24px; }
.t-form .gl-btn[disabled] { opacity: .6; cursor: progress; }
.t-form .gl-btn .s-ic, .t-open .s-ic { width: 22px; height: 22px; }
.t-done { text-align: center; outline: none; animation: t-pop .6s var(--gl-ease-pop, cubic-bezier(.3, 1.4, .5, 1)) both; }
@keyframes t-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.t-done .t-sub { max-width: 26em; margin-left: auto; margin-right: auto; }
.t-seed { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--gl-leaf-soft); color: var(--gl-leaf); }
.t-seed .s-ic { width: 40px; height: 40px; }
.t-open { width: 100%; margin-top: 24px; }
.t-link { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 8px 8px 18px; border-radius: 20px; background: var(--gl-paper); border: 2px solid var(--gl-line); }
.t-link code { flex: 1; min-width: 0; text-align: left; font: 700 15px/1.3 ui-monospace, 'SF Mono', Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.t-link .gl-btn { height: 42px; font-size: 16px; padding: 0 16px; box-shadow: 0 3px 0 var(--gl-fill-edge); flex: none; }
.t-how { padding-top: 40px; }
.t-head .gl-h2 { margin-top: 16px; }
.t-steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.t-step { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; background: var(--gl-card); border-radius: 30px; padding: 26px; box-shadow: 0 5px 0 var(--gl-fill-edge); }
.t-step:nth-child(even) { transition-delay: .1s; }
.t-n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--gl-leaf); color: #fff; font: 400 26px/1 var(--gl-font-display); box-shadow: 0 4px 0 var(--gl-leaf-edge); }
.t-step h3 { font-family: var(--gl-font-rounded); font-weight: 600; font-size: 24px; line-height: 1.15; margin: 2px 0 6px; }
.t-step p { margin: 0; color: #3B463F; }
.t-step .t-note { margin-top: 10px; font-size: 15px; color: var(--gl-muted); }
.t-look { padding: 200px 0 220px; }
.t-glasses { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.t-glasses .m-glass:nth-child(4) { transition-delay: .36s; }
@media (max-width: 1080px) { .t-glasses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .t-grid, .t-steps, .t-glasses { grid-template-columns: 1fr; }
  .t-join { padding-top: 48px; }
  .t-step { padding: 20px; gap: 16px; }
  .t-n { width: 46px; height: 46px; border-radius: 15px; font-size: 22px; }
  .t-look { padding: 140px 0 160px; }
}
@media (prefers-reduced-motion: reduce) { .t-done { animation: none; } }
.end-cta { margin: 26px 0 0; }
.nav ul a { white-space: nowrap; }
@media (max-width: 1040px) and (min-width: 861px) { .nav { gap: 10px; } .nav ul { gap: 0; } .nav ul a { padding: 10px 9px; font-size: 16px; } }
.t-gift { margin: 18px 0 0; padding: 12px 16px; border-radius: 16px; background: var(--gl-gold-soft); color: var(--gl-gold-ink); font-size: 16px; }
