/* ---- the simple site (Plan 12 spec 3.2, rebuilt in Plan 13 spec 6, relit in Plan 20) ----
 * The second of the tree's two faces: /app, /about, /pricing and /beta, the same product told as ordinary
 * pages. One stylesheet for all four, deliberately standalone: it does NOT load ui.css (the film's handoff).
 * Plan 13: the surface-and-grid kit is gone. Each page has its own structure, built from the film's own
 * devices - Fraunces headings at real size, the italic ask, the diamond bullet, a rule with a diamond
 * between sections, the film's ink ground and periwinkle light. Plan 20 relit them: Yggdrasil's roots and
 * boughs as light at the edges, the seed's light over the hero, horizons between bands, a glass pill for the
 * nav, and arrivals played by GSAP (simple.js). Nothing lifts on hover; reduced motion gets the finished page.
 * Loaded last of the four sheets, so .glyph's 40px beats .ico's 22px by cascade order alone. */

:root {
  --ground: var(--ink);
  --accent: var(--mark-peri);
  --measure: 66rem;
  --text: 44rem;
  --rule: rgba(207, 199, 216, .22);
}

/* No background on <body>: tokens.css already paints the ink on <html>, and a body background paints AFTER
 * every negative-z-index layer, which would put the ground (and the two lights below) under an opaque
 * field and out of sight. */
body { min-height: 100vh; color: var(--ivory); }

/* The ground (Plan 15 spec 5). Two soft lights in the brand's own two marks and a grain over them, both
 * fixed: they never scroll, never animate and never repaint, so a page of them costs one paint at load.
 * The film has weather; these pages had a flat ink field, which read as a different product. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 52vh at 16% 4%, color-mix(in oklab, var(--mark-peri) 20%, transparent) 0, transparent 70%),
    radial-gradient(56vw 46vh at 88% 26%, color-mix(in oklab, var(--mark-violet) 17%, transparent) 0, transparent 72%),
    radial-gradient(70vw 40vh at 50% 104%, color-mix(in oklab, var(--mark-violet) 12%, transparent) 0, transparent 72%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* The roots and the boughs (Plan 20 spec 3): four pieces of the tree as light on transparency, fixed
 * behind the page in a box that clips them, each placed at its corner and stopping well short of the
 * text column. simple.js drifts them by transform as the page scrolls; with no script they simply stand.
 * The story page carries the roots the whole way up: it is the page about the tree. */
.ground { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
/* Half strength since Plan 21 (his note 1: "subdued"); narrower screens dim it further below. */
.ground img { position: absolute; width: clamp(180px, 26vw, 480px); height: auto; opacity: .5; will-change: transform; }
.ground .bough-left { top: -3vh; left: -2vw; }
.ground .bough-right { top: -3vh; right: -2vw; }
.ground .root-left { bottom: -6vh; left: -2vw; }
.ground .root-right { bottom: -6vh; right: -2vw; }
.ground-roots .bough { display: none; }
.ground-roots .root { top: 0; bottom: auto; height: 100%; width: clamp(200px, 30vw, 560px); object-fit: cover; object-position: 50% 0; }

/* ---- header and nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem clamp(1rem, 5vw, 4rem);
  background: linear-gradient(to bottom, rgba(9, 11, 18, .9), transparent);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); }
.brand-mark { width: 40px; height: auto; }
.brand-word { font-size: 1rem; }
.site-nav { display: flex; gap: clamp(.8rem, 2vw, 1.4rem); align-items: center; }
/* The four links gathered into one glass pill (Plan 20 spec 2). This is the one blur on the site: the
 * header bar that used to carry it is now a plain gradient, so a page of it costs what it cost before. */
.pill {
  display: inline-flex; align-items: center; gap: .15rem; padding: .3rem .4rem; border-radius: 999px;
  background: rgba(20, 18, 40, .46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(207, 199, 216, .14), 0 8px 30px -18px #000;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.site-nav a:not(.cta) {
  font: 500 .74rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--mist); text-decoration: none; padding: .5rem .8rem; border-radius: 999px;
}
.site-nav a:not(.cta):hover, .site-nav a:not(.cta):focus-visible { color: var(--ivory); }
.site-nav a[aria-current="page"] { color: var(--ivory); background: rgba(249, 244, 245, .08); box-shadow: inset 0 0 0 1px rgba(143, 163, 255, .35); }

/* ---- page frame and the devices ---- */
.page { max-width: var(--measure); margin: 0 auto; padding: 0 clamp(1rem, 5vw, 4rem) 6rem; }
.band { padding: clamp(3.6rem, 8vh, 6rem) 0; }
/* The horizon (Plan 20 spec 2): between any two bands, a band of light fading at both ends and a soft glow
 * above it, both CSS gradients. It replaces the hairline and its diamond; Patrick's note was that drawn
 * dividers detract, and a horizon is depth rather than a line. */
.band + .band { position: relative; }
.band + .band::before {
  content: ''; position: absolute; top: 0; left: 6%; right: 6%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(143, 163, 255, .5) 30%, rgba(249, 244, 245, .75) 50%, rgba(143, 163, 255, .5) 70%, transparent);
}
.band + .band::after {
  content: ''; position: absolute; top: -30px; left: 14%; right: 14%; height: 60px; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 50%, color-mix(in oklab, var(--mark-peri) 20%, transparent), transparent 70%);
}
/* The eyebrow. It used to sit in square brackets, which Patrick said did not belong to the app, and he
 * was right: the app already has this device and does not bracket it. On the Series screen
 * (reference/app/series.webp) the words THE SUNDERED REALM sit straight above The Chronicles of Eldoria -
 * small, uppercase, letterspaced, in the same periwinkle this page calls --accent, and set in the
 * interface sans rather than a mono. So this is the app's own label, brackets gone, mono gone. */
.eyebrow { margin: 0 0 .9rem; font: 600 .7rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
/* Display sizes, not article sizes (Plan 15 spec 5): the film opens on 120px of Fraunces and these pages
 * opened on 44, which read as the documentation for the thing rather than the thing. */
.page h1 { font: 400 clamp(3rem, 8vw, 6rem)/1.02 var(--font-head); letter-spacing: -.015em; }
.page h2 { font: 400 clamp(2.4rem, 5vw, 3.8rem)/1.06 var(--font-head); max-width: 22ch; }
.page h3 { font: 500 1.15rem/1.3 var(--font-head); }
.page p { max-width: var(--text); }
.page p + p { margin-top: 1rem; }
/* The ask: the one line in a section that is asked rather than told, set like the film's own asks. */
.ask { font: italic 400 clamp(1.15rem, 1.8vw, 1.4rem)/1.5 var(--font-head); color: var(--ivory); }
/* The heading mark, at 40px. display, because .ico rides on a <span>: an inline box ignores a width. */
.glyph { display: block; width: 40px; height: 40px; background: var(--accent); }
.band > .glyph { margin-bottom: 1rem; }
/* The seed list: no disc, the Seed (Plan 18 round two: he picked M3 the bud here first, then on
 * 2026-09-19 swapped in the seed so one bullet serves everywhere and rhymes with the button), generated on
 * black and cut to alpha. One device for every list. 18px, judged at that size. */
.diamonds, .plan ul, .rules, .beta-list, .specs { margin: 1.3rem 0 0; padding: 0; max-width: var(--text); list-style: none; }
.diamonds li, .plan li, .rules li, .beta-list li, .specs li { position: relative; padding-left: 1.6rem; color: var(--mist); font-size: .97rem; line-height: 1.6; }
.diamonds li + li, .plan li + li, .rules li + li, .beta-list li + li, .specs li + li { margin-top: .6rem; }
.diamonds li::before, .plan li::before, .rules li::before, .beta-list li::before, .specs li::before {
  content: ''; position: absolute; left: -1px; top: .3em; width: 18px; height: 18px; background: url('../icons/lit/bullet-seed.png') center/contain no-repeat;
}
.screen { border: 1px solid var(--rule); box-shadow: 0 20px 60px -30px #000; }
.app-loop, .app-poster { display: block; width: 100%; height: auto; }
.lede { margin-top: 1.1rem; max-width: var(--text); color: var(--mist); font-size: 1.06rem; line-height: 1.75; }
.app-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---- /app: the product ---- */
/* The hero (Plan 20 spec 5): the seed's light above the wordmark, the words centred under it, and the
 * app in a window beneath, tilted back a touch and laid flat by simple.js across the first screen. */
.app-hero { padding-top: clamp(3rem, 9vh, 5.5rem); text-align: center; perspective: 1400px; }
/* Every page opens under the seed's light, so the first band is the box it is placed in. */
.page > .band:first-child { position: relative; }
/* The light over the hero: periwinkle at the heart fading to violet. It was gold until Plan 21 ("that yellowish
 * halo at the top must go"), when the depth stayed and the tone changed; the motes keep the seed's gold, as
 * on the film. It breathes on opacity alone; reduced motion holds it still. */
.hero-light {
  position: absolute; left: 50%; top: -12vh; width: min(96vw, 980px); height: 70vh; pointer-events: none; z-index: -1;
  transform: translateX(-50%);
  background: radial-gradient(48% 46% at 50% 32%, rgba(143, 163, 255, .26), rgba(181, 123, 255, .13) 46%, transparent 72%);
  animation: breathe 7s ease-in-out infinite alternate;
}
@keyframes breathe { from { opacity: .72; } to { opacity: 1; } }
/* A few motes rising through the light, the film's own device. Eight, on one keyframe, transform and
 * opacity only; each takes its own lane and its own delay from its place in the row. */
.motes { position: absolute; left: 50%; top: 0; width: min(90vw, 760px); height: 50vh; transform: translateX(-50%); pointer-events: none; z-index: -1; }
.motes span {
  position: absolute; bottom: 0; left: calc(6% + var(--lane) * 12.5%); width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px 2px rgba(211, 165, 74, .55); opacity: 0;
  animation: mote-rise 11s linear infinite; animation-delay: calc(var(--lane) * -1.4s);
}
.motes span:nth-child(1) { --lane: 0; } .motes span:nth-child(2) { --lane: 1; } .motes span:nth-child(3) { --lane: 2; } .motes span:nth-child(4) { --lane: 3; }
.motes span:nth-child(5) { --lane: 4; } .motes span:nth-child(6) { --lane: 5; } .motes span:nth-child(7) { --lane: 6; } .motes span:nth-child(8) { --lane: 7; }
@keyframes mote-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .85; } 100% { transform: translateY(-46vh); opacity: 0; } }
.app-hero-copy { position: relative; z-index: 1; max-width: 46rem; margin: 0 auto; }
.app-hero-copy .hero-blurb { margin-left: auto; margin-right: auto; }
.app-hero .app-actions { justify-content: center; }
/* The window: the loop over its still, in a frame lit from beneath. It is a 3D child so the tilt has a
 * vanishing point; overflow keeps the loop inside the frame's corners. */
.app-window {
  position: relative; z-index: 1; margin: clamp(2.4rem, 6vh, 4rem) auto 0; max-width: 62rem; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: var(--ink); transform-style: preserve-3d; transform-origin: 50% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 1px rgba(207, 199, 216, .18), 0 -30px 90px -40px rgba(143, 163, 255, .55), 0 50px 90px -40px #000;
}
.app-window .app-poster, .app-window .app-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* .page h1 (0,1,1) beats .wordmark (0,1,0), so the hero's <h1 class="wordmark"> restates the shorthand -
 * the tracking included, or .page h1's -.01em would quietly loosen the wordmark's own -.02em. */
.app-hero .wordmark { font: 300 clamp(56px, 9vw, 120px)/.88 var(--font-head); letter-spacing: -.02em; }
.app-hero .tagline { margin-top: 1rem; font: italic 400 clamp(1.05rem, 2vw, 1.35rem)/1.4 var(--font-head); color: var(--mist); }
.app-hero .hero-line { margin-top: .5rem; font: 500 clamp(1.05rem, 2vw, 1.3rem)/1.4 var(--font-head); }
.app-hero .hero-blurb { margin-top: 1.4rem; color: var(--mist); line-height: 1.75; }

/* The question: three answers side by side, each with its mark, and one line under all three. */
.asks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 2.8rem); margin-top: 2.2rem; }
.ask-block h3 { margin: .9rem 0 .6rem; font-size: 1.4rem; }
.ask-block p { color: var(--mist); font-size: .97rem; line-height: 1.65; }
.ask-block p:first-of-type { color: var(--ivory); font: italic 400 1.08rem/1.5 var(--font-head); }
.either { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); font: italic 400 1.15rem/1.5 var(--font-head); color: var(--ivory); }

/* The split: words beside a figure (#space). */
.app-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; margin-top: 2rem; }
/* Start anywhere as one plane (Plan 21, his note 4: "not a list"). The four places a story can begin lie
 * side by side on one surface, which is tilted back a touch and laid flat by simple.js as it comes up the
 * screen, the way the hero's window is; a line of light runs across the top and lights a point on each
 * tile. Under the plane, the other way in: what a writer already has, brought with them. */
.plane { margin-top: 2.4rem; perspective: 1400px; }
.plane-label { position: relative; margin: 0 0 1.1rem; text-align: center; font: 600 .68rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.plane-label::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(143, 163, 255, .35) 20%, rgba(143, 163, 255, .35) 80%, transparent); }
.plane-label span { position: relative; padding: 0 1rem; background: var(--ground); }
.starts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none;
  transform-style: preserve-3d; transform-origin: 50% 100%;
}
.start {
  position: relative; padding: 1.3rem 1.2rem 1.4rem; border-radius: 16px;
  background: color-mix(in oklab, var(--mark-violet) 7%, rgba(20, 18, 40, .42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), inset 0 0 0 1px rgba(207, 199, 216, .09), 0 1px 3px rgba(0, 0, 0, .45);
}
/* The tile's light: a point on its top edge, where the plane's line passes through it. */
.start::before { content: ''; position: absolute; left: 50%; top: -1px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px rgba(143, 163, 255, .55); }
.start .glyph { width: 32px; height: 32px; }
.start h3 { margin: 1rem 0 .5rem; font-size: 1.2rem; }
.start p { color: var(--mist); font-size: .93rem; line-height: 1.6; }
.bring { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.bring-lead { font: italic 400 1.25rem/1.4 var(--font-head); color: var(--ivory); }
.bring-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem clamp(1.2rem, 3vw, 2.4rem); margin: 1.2rem 0 0; padding: 0; list-style: none; }
.bring-list li { display: grid; grid-template-columns: 28px 1fr; gap: 0 .8rem; align-items: start; }
.bring-list .glyph { width: 28px; height: 28px; margin-top: .1rem; }
.bring-list b { display: block; font: 500 1.02rem/1.3 var(--font-head); color: var(--ivory); }
.bring-list span { display: block; margin-top: .3rem; color: var(--mist); font-size: .9rem; line-height: 1.55; }
.bring-formats { margin-top: 1.2rem; font: 500 .68rem/1.6 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(200, 184, 219, .7); }
.app-copy { margin-top: 1.1rem; color: var(--mist); line-height: 1.75; }
.app-copy b { color: var(--ivory); }
.app-figure { margin: 1.1rem 0 0; }
.app-figure img { display: block; width: 100%; height: auto; }
.app-figure figcaption { margin-top: .8rem; font: 500 .66rem/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(200, 184, 219, .7); }
.app-wide { margin-top: 2.2rem; }

/* The bento (Plan 15 spec 5; since Plan 21 the toolbox's five sets of tools, one card each, full width)..bento { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.bento > * {
  position: relative; isolation: isolate; border-radius: 18px; padding: 1.4rem;
  background: color-mix(in oklab, var(--mark-violet) 7%, rgba(20, 18, 40, .42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), inset 0 0 0 1px rgba(207, 199, 216, .09), 0 1px 3px rgba(0, 0, 0, .45);
}
/* The glow under the pointer. --px/--py are written by the plain pages' simple.js while a pointer is over the card and
 * are never written at all otherwise, so the default centres it and the opacity keeps it off until hover:
 * a page nobody touches paints none of this. */
.bento > *::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .28s ease;
  background: radial-gradient(15rem 15rem at var(--px, 50%) var(--py, 50%), color-mix(in oklab, var(--mark-peri) 30%, transparent) 0, transparent 68%);
}
.bento > *:hover::after, .bento > *:focus-within::after { opacity: 1; }
.bento > .wide { grid-column: 1 / -1; }

/* The toolbox (Plan 21, his note 5: "a writer's toolbox divided into categories"). Each set of tools is one
 * card of the bento, full width: its screen on one side, its words on the other, and the tools inside it
 * named in two columns under the paragraph. .flip puts the screen on the right; .bare has no screen. The
 * two .more cards are folded away by simple.js behind the button under the grid, and only there: with no
 * script the button never shows (it is display: none until .js-motion) and the whole box is open. */
.kit { margin-top: 2.4rem; grid-template-columns: 1fr; }
/* A set's card is a shade fuller and its edge a shade brighter than the bento's default: with five of them
 * stacked, and two with no screen at all, the edge is what says where one set ends. */
.kit-group {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); align-items: center; perspective: 1200px;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  background: color-mix(in oklab, var(--mark-violet) 9%, rgba(20, 18, 40, .55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(207, 199, 216, .14), 0 1px 3px rgba(0, 0, 0, .45);
}
.kit-group.flip .room-shot { order: 2; }
.kit-group.bare { grid-template-columns: 1fr; }
.kit-group .room-shot { margin: 0; }
.kit-group .room-shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rule); box-shadow: 0 20px 60px -30px #000; }
.kit-eyebrow { margin: 0 0 .5rem; font: 600 .68rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.kit-copy h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.kit-copy p { color: var(--mist); font-size: .97rem; line-height: 1.6; }
.kit-copy h3 + p { color: var(--ivory); font: italic 400 1.1rem/1.5 var(--font-head); }
.kit-copy p + p { margin-top: .5rem; }
/* The set's illustration, top right of the words, the words wrapping under it; a second, smaller one
 * leads the line about the set's other screen. */
.room-art { float: right; width: clamp(84px, 9vw, 128px); height: auto; margin: -.2rem 0 .5rem 1rem; }
.room-art.small { float: left; width: 56px; margin: 0 .8rem 0 0; }
.kit-copy::after { content: ''; display: block; clear: both; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.2rem; margin: 1.2rem 0 0; padding: 1rem 0 0; list-style: none; border-top: 1px solid var(--rule); clear: both; }
.tools li { position: relative; padding-left: 1.1rem; }
.tools li::before { content: ''; position: absolute; left: 0; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px rgba(143, 163, 255, .6); }
.tools b { display: block; font: 500 .98rem/1.3 var(--font-head); color: var(--ivory); }
.tools span { display: block; margin-top: .15rem; color: var(--mist); font-size: .86rem; line-height: 1.5; }
.kit-more-line { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--mist); font-size: .9rem; line-height: 1.55; }
.kit-ask { display: none; margin: 1.4rem 0 0; text-align: center; }
.js-motion .kit-ask:not([hidden]) { display: block; }
/* The heading the unfold hands focus to: a ring only for a keyboard, as everywhere else. */
.kit-copy h3:focus:not(:focus-visible) { outline: none; }
.js-motion .kit.is-folded > .more { display: none; }

/* Core, as a two-column list of what it is. */
.core-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem clamp(1.6rem, 4vw, 3.4rem); margin-top: 2rem; }
.core-item { padding-top: 1rem; border-top: 1px solid var(--rule); }
.core-item h3 { margin-bottom: .5rem; }
.core-item p { color: var(--mist); font-size: .95rem; line-height: 1.65; }
/* The facts (Plan 21, his note 8: "the cards just don't look neat"): six tiles of one height on three
 * columns, each seed centred on its tile's left edge, and the import line as a strip under them. */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; max-width: none; }
.specs li {
  display: flex; align-items: center; min-height: 4.6rem; padding: 1rem 1.2rem 1rem 3rem; border-radius: 12px;
  background: color-mix(in oklab, var(--mark-violet) 6%, rgba(20, 18, 40, .4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(207, 199, 216, .08);
}
.specs li + li { margin-top: 0; }
.specs li::before { left: 1.1rem; top: 50%; margin-top: -9px; }
.imports { margin-top: 1.4rem; padding: .9rem 1.2rem; border-radius: 12px; border: 1px solid var(--rule); color: var(--mist); font-size: .95rem; line-height: 1.6; }
.app-beta { text-align: center; }
/* .page h2 is capped at 22ch, so the centred band's heading needs the margins to be centred at all. */
.app-beta h2 { margin-left: auto; margin-right: auto; }
.app-beta .lede { margin-left: auto; margin-right: auto; }
.app-beta .app-actions { justify-content: center; }

/* ---- /about: the story ---- */
.about-copy { margin-top: 1.1rem; max-width: var(--text); color: var(--mist); line-height: 1.75; font-size: 1.04rem; }
.about-copy h3 { margin-bottom: .7rem; color: var(--ivory); }
.about-copy .ask { margin-top: 1.6rem; }
.about-copy .closing { margin-top: 1.8rem; font-style: italic; color: var(--silver); }
.lore { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem clamp(1.6rem, 4vw, 3.4rem); margin-top: 2rem; }
.lore-item { padding-top: 1rem; border-top: 1px solid var(--rule); }
.lore-item h3 { margin: .8rem 0 .5rem; font-size: 1.3rem; }
.lore-item p { color: var(--mist); font-size: .95rem; line-height: 1.65; }
/* The road ahead as a stepped list: it is a sequence, so it reads down one line, each step a seed on it. */
.steps { margin: 2rem 0 0; padding: 0 0 0 1.6rem; list-style: none; border-left: 1px solid var(--rule); max-width: var(--text); }
.step { position: relative; padding: .2rem 0 1.6rem; }
.step::before { content: ''; position: absolute; left: calc(-1.6rem - 10px); top: .55rem; width: 20px; height: 20px; background: url('../icons/lit/bullet-seed.png') center/contain no-repeat; }
.step:last-child { padding-bottom: 0; }
.step .glyph { width: 28px; height: 28px; margin-bottom: .5rem; }
.step h3 { margin-bottom: .4rem; font-size: 1.25rem; }
.step p { color: var(--mist); font-size: .97rem; line-height: 1.65; }
.about-platforms { margin-top: 2rem; max-width: 52rem; color: var(--mist); line-height: 1.75; }

/* ---- /pricing ---- */
.pricing-free { margin-top: 1.1rem; max-width: var(--text); color: var(--mist); line-height: 1.75; }
.pricing-free a { color: var(--accent); }
.plans { margin-top: 2.2rem; }
.plan { padding-top: 1.6rem; }
.plan > .plan-head > :first-child, .plan > :first-child { margin-top: 0; }
/* The one plan, with its facts beside the price rather than under it; the other two under it, side by side.
 * The facts sit in their own <div class="plan-head"> sibling rather than being pulled across by a grid row
 * span: the old rule said `grid-row: 1 / span 4`, which was the number of things before the list and broke
 * the moment a line was added to it (Plan 15 spec 5). Two children, whatever either contains. */
.plans .plan.wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }
.plans .plan.wide > ul { margin-top: .4rem; }
.plan .glyph { margin-bottom: 1.1rem; }
.plan-tag { margin: 0; font: 500 .62rem/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(200, 184, 219, .7); }
.plan h3 { margin-top: .55rem; font-size: 1.4rem; }
.plan-first { position: absolute; top: 1.4rem; right: 1.4rem; font: 500 .58rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.plan-price { margin-top: .9rem; font: 300 clamp(2.4rem, 4vw, 3.4rem)/1 var(--font-head); }
.plan-price small { font-size: .3em; letter-spacing: .04em; color: var(--mist); }
/* Every plan's top edge is lit (Plan 20 spec 5), the Founding card's brighter and in the accent. */
.plan { box-shadow: inset 0 1px 0 rgba(143, 163, 255, .38), inset 0 0 0 1px rgba(207, 199, 216, .09), 0 1px 3px rgba(0, 0, 0, .45); }
.plan-founding { box-shadow: inset 0 1px 0 var(--accent), inset 0 0 0 1px rgba(207, 199, 216, .09), 0 1px 3px rgba(0, 0, 0, .45); }
/* And once, as its band finishes arriving, the Founding card breathes gold at the edge: simple.js adds
 * .lit when the timeline completes, and this one keyframe on opacity does the rest. ::before, because the
 * card's ::after is the pointer glow every bento card carries. */
.plan-founding::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 1px rgba(211, 165, 74, .8), inset 0 1px 0 var(--gold), 0 0 34px -4px rgba(211, 165, 74, .55);
}
.plan-founding.lit::before { animation: founding-breathe 2s ease-in-out 1; }
@keyframes founding-breathe { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
.pricing-note { margin-top: 2.6rem; font: italic 400 clamp(1.15rem, 2vw, 1.4rem)/1.5 var(--font-head); }

/* ---- /beta ---- */
/* The facts, each on its own line at display size: this is what the page has to say first. */
.facts { margin: 1.6rem 0 0; padding: 0; list-style: none; }
.facts li { font: 400 clamp(1.4rem, 3vw, 2.2rem)/1.25 var(--font-head); color: var(--ivory); }
.facts li + li { margin-top: .2rem; }
/* The process is a sequence, so it is numbered: a Fraunces numeral on a hairline, then the step. */
.process { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: step; max-width: var(--text); }
/* The numeral sits in a 3.4rem gutter rather than a grid column: the step is "<b>Apply.</b> the rest",
   and a grid would make the bold and the text two items, dropping the text into the numeral's column. */
.process li { counter-increment: step; position: relative; padding: 1rem 0 1rem 3.4rem; border-top: 1px solid var(--rule); color: var(--mist); line-height: 1.6; }
.process li:last-child { border-bottom: 1px solid var(--rule); }
.process li::before { content: counter(step); position: absolute; left: 0; top: 1.1rem; font: 300 1.8rem/1 var(--font-head); color: var(--accent); }
.process b { color: var(--ivory); font-weight: 500; }
/* The lit path (Plan 20 spec 5): a line down the gutter between the numerals and the steps, in the seed's
 * gold fading to the accent. simple.js draws it down by scaleY as the steps come into view; with no script
 * it is simply there. */
.process-wrap { position: relative; max-width: var(--text); }
.process-line {
  position: absolute; left: 2.55rem; top: 1.2rem; bottom: 1.2rem; width: 1px; pointer-events: none;
  background: linear-gradient(to bottom, var(--gold), var(--accent) 40%, rgba(143, 163, 255, .25));
  box-shadow: 0 0 10px rgba(143, 163, 255, .55);
}
.beta-genres { margin: 1.2rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; }
.beta-genres li { font: 500 clamp(1.15rem, 2.2vw, 1.5rem)/1.3 var(--font-head); color: var(--ivory); }
.beta-genres + p, .beta-list + p { margin-top: 1rem; }
.beta-cost { margin-top: 1rem; font-size: .9rem; color: rgba(200, 184, 219, .7); }
.beta-cost a { color: var(--accent); }
.contact-mail {
  display: inline-block; margin-top: 1.4rem; font: 500 clamp(1.15rem, 2.6vw, 1.6rem)/1.2 var(--font-head);
  color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(143, 163, 255, .35);
}
.contact-mail:hover, .contact-mail:focus-visible { color: var(--ivory); border-bottom-color: var(--silver); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--rule); padding: 2.4rem clamp(1rem, 5vw, 4rem); }
.site-footer-inner { max-width: var(--measure); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.site-footer nav a { font: 500 .7rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); text-decoration: none; padding-bottom: .3rem; border-bottom: 1px solid var(--silver-dim); }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: var(--ivory); border-bottom-color: var(--silver); }
/* The copyright line is small text, so 4.5:1 is its floor. At .55 over this ground it measures 3.8:1;
 * at .7 - the alpha the other quiet labels wear - it measures 5.6:1 and is still the quietest line here. */
.site-footer-copy { margin-left: auto; font-size: .82rem; color: rgba(200, 184, 219, .7); }

/* ---- the arrivals (Plan 20 spec 4) ----
 * Each band arrives on a GSAP timeline built by simple.js: label, heading, lede, then its items with a
 * stagger, played once as the band comes into view. The stylesheet's part is the start state, and it is
 * written under .js-motion and nowhere else: simple.js adds that class only after it has seen both GSAP
 * and ScrollTrigger, so with no script, or with a vendor file missing, nothing on the page is ever hidden.
 * REVEAL: this selector list is the one in site/assets/js/simple.js; change one and change the other. */
.js-motion :is(.band > .glyph, .band > .eyebrow, .band > h1, .band > h2, .band > .lede, .band > .pricing-free, .app-hero-copy > *, .app-window, .ask-block, .either, .plane-label, .start, .bring, .app-figure, .app-copy, .about-copy, .bento > *, .kit-ask, .core-item, .lore-item, .step, .about-platforms, .pricing-note, .rules, .process li, .facts li, .specs li, .imports, .app-actions, .beta-cost, .contact-mail) {
  opacity: 0;
}

/* A light passes across each screenshot as its card arrives. This one stays a scroll-driven animation
 * where the browser has them: one band, moved by transform alone, so it composites and costs the scroll
 * nothing. The wrapper has to clip it, which is why the picture's drop shadow moves up onto the wrapper
 * here - clipped at the wrapper's edge it would otherwise vanish. A browser without view() never reads
 * this block, so it is never given a band to leave parked across the picture. */
@supports (animation-timeline: view()) {
  /* The wrapper names its own view timeline rather than the band asking for view(). It has to: clipping
   * the band makes the wrapper a scroll container, and a view() asked for from inside one resolves
   * against that box - which never scrolls, so the light would sit parked across the picture. */
  .room-shot { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 20px 60px -30px #000; view-timeline: --shot block; }
  .room-shot img { box-shadow: none; }
  .room-shot::after {
    content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 42%; pointer-events: none;
    background: linear-gradient(100deg, transparent 0, color-mix(in oklab, var(--mark-peri) 24%, transparent) 46%, transparent 100%);
    transform: translateX(-170%) skewX(-12deg);
    animation: shot-sweep linear both;
    animation-timeline: --shot;
    animation-range: entry 14% cover 46%;
  }
  @keyframes shot-sweep { to { transform: translateX(340%) skewX(-12deg); } }
}

/* ---- narrower ---- */
/* Between a phone and a wide screen the column runs nearly edge to edge, so the ground narrows, dims and
 * pulls out past the edge: only the fringe of each layer stays under the margin. */
@media (max-width: 1180px) and (min-width: 701px) {
  .ground img { width: clamp(150px, 19vw, 260px); opacity: .4; }
  .ground .bough-left, .ground .root-left { left: -7vw; }
  .ground .bough-right, .ground .root-right { right: -7vw; }
  .ground-roots .root { width: clamp(160px, 20vw, 280px); }
}
@media (max-width: 1000px) {
  .asks, .core-list, .lore { grid-template-columns: 1fr; }
  .app-split, .kit-group { grid-template-columns: 1fr; }
  .kit-group.flip .room-shot { order: 0; }
  .starts, .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bring-list, .tools { grid-template-columns: 1fr; }
  .plans .plan.wide { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; gap: .6rem; }
  .site-nav { gap: .7rem; flex-wrap: wrap; }
  .pill { padding: .2rem .25rem; }
  .site-nav a:not(.cta) { font-size: .66rem; letter-spacing: .08em; padding: .45rem .55rem; }
  /* The ground on a phone: narrower and dimmer, so the column never sits on it. */
  .ground img { width: 42vw; opacity: .3; }
  .starts, .specs { grid-template-columns: 1fr; }
  /* The glass button (cta.css) at a phone's size: the same plate, a little less of it. */
  .cta { min-height: 2.7rem; padding: .7rem 1.5rem; font-size: .8rem; }
  .cta.small { min-height: 2.1rem; padding: .5rem 1.1rem; font-size: .7rem; }
  .site-footer-copy { margin-left: 0; }
  .page h2 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* The loop goes and its still stays in the window. */
  .app-loop { display: none; }
  /* simple.js returns before it builds a timeline or arms the gate, so none of the start states below can
   * apply; this says the same thing in the stylesheet, so the script is not the only guard. A reader who
   * asked for no motion gets the finished page, not the start of one. */
  .js-motion :is(.band > .glyph, .band > .eyebrow, .band > h1, .band > h2, .band > .lede, .band > .pricing-free, .app-hero-copy > *, .app-window, .ask-block, .either, .plane-label, .start, .bring, .app-figure, .app-copy, .about-copy, .bento > *, .kit-ask, .core-item, .lore-item, .step, .about-platforms, .pricing-note, .rules, .process li, .facts li, .specs li, .imports, .app-actions, .beta-cost, .contact-mail) {
    animation: none; transition: none; opacity: 1; transform: none;
  }
  .starts { transform: none; }
  .hero-light, .motes span, .plan-founding.lit::before { animation: none; }
  .motes { display: none; }
  .ground img { transform: none; }
  .bento > *::after, .room-shot::after { display: none; }
}
