/*
  The look of Lost Writer in 3D: Lost Island Press's colours and fonts, as on site/ (a dark navy, one blue accent, Grenze
  for headings and buttons, EB Garamond for reading, Grenze Gotisch for the L), over the 3D world in main.js.
  The site is in chapters: each .ch fills the screen and fades in when it's reached. The boxes marked .anchor are empty:
  they say where on the screen a chapter's 3D sits (main.js fits it there), so the words and the 3D never overlap.
  Nothing that holds an .anchor may have a transform, a filter, or a backdrop-filter (they would move its fixed boxes).
*/

:root {
  --base: #14181c;
  --base-2: #20252b;
  --base-3: #2e3747;
  --base-4: #1c2024;
  --text: #e8eaed;
  --text-2: #c6d0dc;
  --text-3: #9aa4b2;
  --accent: #5686ce;
  --accent-hi: #7ba4e3;
  --accent-deep: #405b93;
  --line: rgba(198, 208, 220, 0.12);
  --line-strong: rgba(198, 208, 220, 0.22);
  --rule: rgba(198, 208, 220, 0.075);
  --display: Grenze, Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
  --gotisch: "Grenze Gotisch", Grenze, Georgia, serif;
  --gutter: clamp(18px, 5vw, 80px);
  --rail: 150px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--base); color: var(--text-2); overflow: hidden;
  font-family: var(--body); font-size: 21px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--accent-hi); font-family: var(--display); font-weight: 500; text-decoration: none; cursor: pointer; }
a:hover { color: var(--text); }

/* Links in running text and buttons, as on lostislandpress.com (Mel and Non, 2026-11-08): a link inside a sentence gets a quiet
   underline that firms up when pointed at; links in menus, chips and buttons stay plain */
main p:not(.still-parts) a:not(.btn), main li a:not(.btn), main details a:not(.btn) {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
  text-decoration-color: rgba(123, 164, 227, 0.22); text-decoration-skip-ink: auto; transition: text-decoration-color 0.2s, color 0.2s;
}
main p:not(.still-parts) a:not(.btn):hover, main li a:not(.btn):hover, main details a:not(.btn):hover { text-decoration-color: currentColor; color: #fff; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-deep); color: #fff; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--text); line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(48px, 6.2vw, 100px); letter-spacing: -0.012em; line-height: 1; text-shadow: 0 4px 40px var(--base); }
h1 em { font-style: italic; color: var(--accent-hi); }
h2 { font-size: clamp(38px, 4.3vw, 68px); text-shadow: 0 3px 30px var(--base); }
h3 { font-size: clamp(28px, 2.4vw, 38px); }
p { margin: 0; }
.goth-l { font-family: var(--gotisch); font-size: 1.08em; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: 14px; }
.sub { font-size: clamp(21px, 1.7vw, 26px); color: var(--text-2); margin-top: 16px; text-wrap: pretty; text-shadow: 0 2px 20px var(--base); }
/* the Why chapter's opening: two lines, at the usual size of a line under a heading, so the box is wider than most */
.top-center h2 { font-size: clamp(32px, 3.4vw, 52px); }
.top-center:has(.sub.lead) { width: min(1280px, calc(100% - var(--gutter) * 2)); }
.sub.lead { font-size: clamp(19px, 1.55vw, 24px); margin-top: 12px; }
.sub.lead + .sub.lead { margin-top: 10px; }
.fine { font-family: var(--display); font-size: 17px; color: var(--text-3); margin-top: 16px; }
/* the three plain facts under the buttons: pills, so they read as part of the offer and not as small print */
.facts { margin: 22px 0 0; font: 500 17px var(--display); letter-spacing: 0.02em; font-variant-numeric: lining-nums; color: var(--text-3); }
.hint { font-family: var(--display); font-size: 16px; color: var(--text-3); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta.center { justify-content: center; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; touch-action: none; }
.flash { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: #cfe0ff; opacity: 0; mix-blend-mode: soft-light; }

/* Buttons, as on site/ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1;
  color: #fff; background: var(--accent); cursor: pointer;
  padding: 17px 28px 16px; border-radius: 8px; border: 1px solid transparent;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: #436ba2; color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: rgba(20, 24, 28, 0.6); color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: rgba(198, 208, 220, 0.1); border-color: var(--text-3); }
.btn-small { font-size: 17px; padding: 11px 18px 10px; border-radius: 8px; box-shadow: none; }
.btn-wide { width: 100%; }
.arrow {
  flex: none; width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  font-family: var(--display); font-size: 24px; color: var(--text);
  background: rgba(32, 37, 43, 0.8); border: 1px solid var(--line-strong); transition: background 0.15s, transform 0.15s;
}
.arrow:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }

/* Top bar */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 72px; display: flex; align-items: center; gap: 18px; padding: 0 22px 0 var(--gutter); pointer-events: none; }
.top > * { pointer-events: auto; }
.mark { display: inline-flex; margin-right: auto; }
.logo { position: relative; display: block; width: 180px; height: 34px; }
.logo i { position: absolute; inset: 0; background: var(--text); -webkit-mask: url(img/lost-writer-secondary-words.png) center / contain no-repeat; mask: url(img/lost-writer-secondary-words.png) center / contain no-repeat; }
.logo i.logo-mark { background: var(--accent); -webkit-mask-image: url(img/lost-writer-secondary-mark.png); mask-image: url(img/lost-writer-secondary-mark.png); }
.playing { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: 500 16px var(--display); color: var(--text-2); background: rgba(46, 55, 71, 0.85); border: 1px solid var(--line-strong); border-radius: 99px; padding: 7px 14px; }
.playing b { color: var(--accent-hi); font-weight: 600; }
.playing[hidden] { display: none; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--accent-hi); animation: eq 0.9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* The map of chapters, on the right */
.rail { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 25; display: grid; gap: 4px; }
.rail button {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 5px 0; cursor: pointer;
  background: none; border: 0; color: var(--text-3); font: 500 15px var(--display); letter-spacing: 0.04em;
}
.rail button span { opacity: 0; transform: translateX(6px); transition: opacity 0.2s, transform 0.2s; white-space: nowrap; text-shadow: 0 1px 8px var(--base); }
.rail button i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--text-3); transition: all 0.25s; }
.rail:hover button span, .rail button:focus-visible span { opacity: 1; transform: none; }
.rail button:hover { color: var(--text); }
.rail button.here { color: var(--text); }
.rail button.here span { opacity: 1; transform: none; }
.rail button.here i { width: 11px; height: 11px; background: var(--accent-hi); border-color: var(--accent-hi); box-shadow: 0 0 0 4px rgba(123, 164, 227, 0.2); }
.mobile-nav { display: none; }

/* The way on, at the foot of each chapter */
.onward { position: fixed; left: 50%; bottom: 14px; z-index: 25; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; cursor: pointer;
  background: none; border: 0; font: 500 14px var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); transition: opacity 0.4s; }
.onward:hover { color: var(--text); }
.onward i { width: 1px; height: 30px; background: linear-gradient(var(--accent-hi), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
.onward.gone { opacity: 0; pointer-events: none; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Chapters: one on the screen at a time */
main { position: relative; z-index: 2; }
.ch { position: fixed; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.55s ease, visibility 0.55s; pointer-events: none; }
.ch.on { opacity: 1; visibility: visible; transition-delay: 0.35s; }
.ch.on > *:not(.anchor), .ch.on .step.on > *:not(.anchor) { pointer-events: auto; }
.step { opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s; }
.step.on { opacity: 1; visibility: visible; transition-delay: 0.15s; }
.ch.on .rise, .step.on .rise { animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.anchor { position: fixed; pointer-events: none; }
.fallback, .fallback-img { display: none; }

/* HOME (layout B, chosen 2026-10-23): the words large on the left; the compass in stars on the right, its bright stars
   the parts of the app, each named beside it (2026-10-26) */
.hero { position: absolute; left: var(--gutter); top: 0; bottom: 0; width: min(760px, 52vw); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(54px, 6.3vw, 104px); }
.hero .cta { justify-content: flex-start; }
.lede { font-size: clamp(22px, 1.9vw, 29px); max-width: 28em; margin-top: 26px; text-wrap: pretty; text-shadow: 0 2px 20px var(--base); }
.hero-visual { left: 58vw; top: 16vh; width: calc(42vw - var(--rail) - 40px); height: 64vh; }
.star-hint { position: absolute; left: 58vw; width: calc(42vw - var(--rail) - 40px); top: 81vh; text-align: center; font: 500 16px var(--display); letter-spacing: 0.02em; color: var(--text-3); }
.star-hint b { color: var(--accent-hi); font-weight: 600; }
.star-names { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.8s ease; }
.star-names.on { opacity: 1; }
.star-names span { position: absolute; left: 0; top: 0; white-space: nowrap; font: 500 15px var(--display); letter-spacing: 0.03em; color: var(--text-3); text-shadow: 0 1px 8px var(--base), 0 0 2px var(--base); transition: color 0.2s; }
.star-names span.lit { color: var(--text); }
.thanks { position: absolute; left: 50%; top: 66vh; width: 520px; margin-left: -260px; text-align: center;
  font: italic 500 clamp(22px, 1.9vw, 30px)/1.15 var(--display); color: var(--text); text-shadow: 0 2px 20px var(--base); }
.thanks small { display: block; margin-top: 8px; font: normal 500 15px/1.35 var(--display); letter-spacing: 0.02em; color: var(--text-3); }
.phone-only { display: none; }
.send { margin-top: 18px; padding: 12px 16px; cursor: pointer; text-align: left; font: 500 16px/1.3 var(--display); color: var(--text-2); background: rgba(46, 55, 71, 0.6); border: 1px dashed var(--line-strong); border-radius: 10px; }
.send b { display: block; color: var(--accent-hi); font-weight: 700; font-size: 18px; }

/* a star, opened: a writer's words, or a part of the app with its picture */
.star-pop { position: fixed; z-index: 36; width: min(380px, calc(100vw - 24px)); padding: 18px 20px 16px; border-radius: 12px; background: rgba(32, 37, 43, 0.97); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -20px #000; animation: fade 0.25s ease; }
.star-pop[hidden] { display: none; }
.star-pop p { font-size: 18px; line-height: 1.45; font-style: italic; color: var(--text); }
.star-pop footer { margin-top: 10px; font: 15px var(--display); color: var(--text-3); }
.star-pop footer b { color: var(--accent-hi); font-weight: 600; }
.star-pop.part { padding: 10px 10px 16px; }
.star-pop.part img { width: 100%; border-radius: 7px; aspect-ratio: 1.75; object-fit: cover; object-position: top left; }
.star-pop.part h3 { margin: 14px 8px 0; font-size: 26px; }
.star-pop.part p { margin: 4px 8px 14px; font-style: normal; font-size: 17px; color: var(--text-2); }
.star-pop.part .btn { margin-left: 8px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* WHY */
.top-center { position: absolute; top: 10.7vh; left: 0; right: 0; margin: 0 auto; width: min(1000px, calc(100% - var(--gutter) * 2)); text-align: center; }
.side-left { position: absolute; left: var(--gutter); top: 0; bottom: 0; width: min(600px, 44vw); display: flex; flex-direction: column; justify-content: center; }
.big { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.5; margin-top: 22px; color: var(--text); text-shadow: 0 2px 20px var(--base); }
.who { margin-top: 18px; font-family: var(--display); font-size: 19px; color: var(--accent-hi); }

/* It happened to us too, as on site/: Mel round, a speech bubble pointing at her, the photo taped on its corner */
.mel-step { --ph: clamp(280px, 27vw, 400px); position: absolute; left: var(--gutter); right: calc(var(--rail) + 80px); top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; max-width: 1300px; }
.mel-says { --hang: 60px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: start; margin: 8px var(--hang) 0 0; }
.mel-face { width: 172px; height: 172px; max-width: none; border-radius: 50%; object-fit: cover; object-position: center 28%; border: 2px solid var(--line-strong); box-shadow: 5px 6px 0 -1px var(--base-4), 5px 6px 0 0 var(--line); }
.mel-bubble { position: relative; margin: 0; padding: 26px 32px 24px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--base-2); font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: var(--text-2); }
.mel-bubble::before { content: ""; position: absolute; left: -10px; top: 76px; width: 18px; height: 18px; background: var(--base-2); border-left: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); transform: rotate(45deg); }
.mel-bubble p + p { margin-top: 14px; }
.mel-bubble .mel-why { margin-top: 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(27px, 2.6vw, 36px); line-height: 1.2; color: var(--text); }
.non-step { --ph: clamp(270px, 23.5vw, 360px); }
/* the bubble is only as tall as its words; the taped-up photo hangs over its top right corner, not inside it */
.mel-story { margin-top: 16px; }
.mel-step .mel-bubble { padding-right: calc(var(--ph) * 0.7 + 28px); }
.mel-photo.portrait img { aspect-ratio: 1; object-position: center 40%; }
.mel-bubble footer { margin-top: 18px; font-family: var(--body); font-size: 19px; line-height: 1.4; letter-spacing: 0.02em; color: var(--text-3); text-wrap: balance; }
.mel-bubble footer::before { content: "— "; }
.mel-photo { position: absolute; top: -48px; right: calc(var(--ph) * -0.3); width: var(--ph); margin: 0; padding: 8px 8px 0; background: #e8eaed; border-radius: 2px; box-shadow: 5px 6px 0 -1px var(--base-4), 5px 6px 0 0 var(--line), 0 18px 30px -18px rgba(0, 0, 0, 0.8); transform: rotate(3deg); }
.mel-photo::before { content: ""; position: absolute; top: -11px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: rgba(198, 208, 220, 0.34); border-left: 1px dashed rgba(198, 208, 220, 0.5); border-right: 1px dashed rgba(198, 208, 220, 0.5); transform: rotate(-4deg); }
.mel-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.mel-photo figcaption { padding: 6px 0 8px; font-family: var(--display); font-size: 14.5px; line-height: 1.35; text-align: center; color: #2e3747; }
/* Not just our opinion: the words on the left, the 4:43 a.m. photo taped up on the right, and under the words the testers' faces */
.beta-step { position: absolute; left: var(--gutter); right: calc(var(--rail) + 70px); top: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr); gap: clamp(30px, 4vw, 64px); align-items: center; }
.beta-text h2 { font-size: clamp(32px, 3.5vw, 54px); }
.beta-text .big { font-size: clamp(17px, 1.3vw, 20px); margin-top: 14px; max-width: 34em; color: var(--text-2); }
.beta-text .big + .big { margin-top: 12px; }
.beta-stats { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px clamp(22px, 3vw, 48px); }
.beta-stats b { display: block; font: 600 clamp(30px, 3vw, 46px)/1.05 var(--display); color: var(--accent-hi); }
.beta-stats span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.3; color: var(--text-2); white-space: nowrap; }
.beta-note { margin-top: 18px; font-size: clamp(17px, 1.3vw, 20px); color: var(--text-2); }
.beta-faces { display: flex; align-items: center; margin-top: 22px; width: fit-content; color: var(--text); text-decoration: none; }
.beta-faces img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--base); margin-left: -13px; }
.beta-faces img:first-child { margin-left: 0; }
.beta-faces .more { margin-left: 16px; display: flex; flex-direction: column; font-size: 14px; line-height: 1.25; color: var(--text-3); }
.beta-faces .more b { font: 400 18px var(--body); color: var(--text-3); }
.beta-quote { display: none; }
.nogl .beta-quote { display: block; }
.beta-quote { --u: clamp(9px, min(0.97vw, 1.5vh), 14px); position: relative; justify-self: center; margin: 0 0 calc(var(--u) * 3.5); width: min(calc(var(--u) * 46), 100%); padding: calc(var(--u) * 4.6) calc(var(--u) * 3) calc(var(--u) * 17.5) calc(var(--u) * 5.4); background: var(--base-2); border-radius: 4px; transform: rotate(1.2deg); color: var(--text); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
.beta-quote::before { content: ""; position: absolute; inset: 0 0 auto 0; height: calc(var(--u) * 3.4); border-radius: 4px 4px 0 0; background: radial-gradient(circle 7px at 50% 50%, var(--base) 98%, transparent) 0 0 / 34px 44px repeat-x, var(--base-3); }
.beta-quote::after { content: ""; position: absolute; z-index: 0; top: calc(var(--u) * 3.4); bottom: 0; left: calc(var(--u) * 3.4); width: 2px; background: rgba(86, 134, 206, 0.55); }
.bq-photo { position: absolute; z-index: 2; right: calc(var(--u) * -2.5); bottom: calc(var(--u) * -3); padding: calc(var(--u) * 0.65) calc(var(--u) * 0.65) calc(var(--u) * 1.7); background: var(--base-3); border: 1px solid rgba(198, 208, 220, 0.18); border-radius: 3px; transform: rotate(-4deg); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55); }
.bq-photo::before { content: ""; position: absolute; top: -13px; left: 50%; width: 72px; height: 24px; margin-left: -36px; transform: rotate(4deg); background: rgba(198, 208, 220, 0.36); }
.bq-face { display: block; width: calc(var(--u) * 15); height: calc(var(--u) * 18.75); object-fit: cover; }
/* her book, bottom left, as the app draws a cover on Home and the Library: turned a touch, a spine's crease and shine down its left, the pages' edges at its right, floating on a soft shadow */
/* her book stands beside her picture, the same height, in front of its left edge (the same height as Kara's book and photo are on the pad) */
.bq-book { position: absolute; z-index: 3; left: calc(var(--u) * 19); bottom: calc(var(--u) * -3); width: calc(var(--u) * 14.1); height: calc(var(--u) * 21.2); transform: perspective(700px) rotateY(-14deg) rotateX(2deg) rotate(-6deg); transform-origin: left center; box-shadow: 0 0 0 1px rgba(198, 208, 220, 0.22), 1px 0 0 0 #e9e4da, 2px 1px 0 0 #d9d3c7, 3px 1px 0 0 #eee9df, 4px 2px 0 0 #d4cdbf, 5px 2px 0 0 #e6e0d4, 6px 8px 10px -2px rgba(0, 0, 0, 0.35), 18px 26px 34px -10px rgba(0, 0, 0, 0.45); }
.bq-book img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bq-book::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0, rgba(0, 0, 0, 0.08) 2.5%, rgba(255, 255, 255, 0.22) 4%, rgba(0, 0, 0, 0.14) 6.5%, transparent 10%), linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0, transparent 40%, transparent 70%, rgba(0, 0, 0, 0.1) 100%); }
.step.on .bq-book { animation: shelf 0.9s 4.7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes shelf { from { opacity: 0; transform: perspective(700px) rotateY(-14deg) rotateX(2deg) rotate(-1deg) translateY(-26px) scale(1.08); } to { opacity: 1; transform: perspective(700px) rotateY(-14deg) rotateX(2deg) rotate(-6deg); } }
/* taped on after the card has arrived, as Kara's photo is on the pad */
.step.on .bq-photo { animation: tape 0.9s 4.3s cubic-bezier(.2,.8,.2,1) both; }
.step.on .beta-quote figcaption { animation: rise 0.9s 4.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes tape { from { opacity: 0; transform: translate(18px, -30px) rotate(-1deg) scale(1.1); } to { opacity: 1; transform: rotate(-4deg); } }
.beta-quote blockquote { margin: 0; font-size: calc(var(--u) * 1.7); line-height: 1.45; font-style: italic; color: var(--text); background: linear-gradient(transparent calc(100% - 1px), var(--rule) 0) 0 0 / 100% 1.45em; }
.beta-quote figcaption { margin-top: calc(var(--u) * 1.3); font-family: var(--body); font-size: calc(var(--u) * 1.4); line-height: 1.35; text-align: left; color: var(--text-3); }
.beta-quote figcaption b { display: block; font-size: calc(var(--u) * 1.7); color: var(--text); }
/* Our story's words come in line by line as a page arrives (the taped-up pictures stay still) */
.step.on :is(.mel-why, .beta-text .eyebrow, .beta-text h2) { animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both; }
.step.on :is(.mel-story p, .beta-text .big:first-of-type) { animation: rise 0.9s 0.3s cubic-bezier(.2,.8,.2,1) both; }
.step.on .mel-story p + p, .step.on .beta-text .big + .big, .step.on .beta-stats { animation: rise 0.9s 0.5s cubic-bezier(.2,.8,.2,1) both; }
.step.on :is(.mel-bubble footer, .beta-faces) { animation: rise 0.9s 0.75s cubic-bezier(.2,.8,.2,1) both; }
.step.on :is(.mel-photo, .beta-quote) { animation: fade 1s 0.5s ease both; }
.step.on .beta-text h2 { animation-delay: 0.1s; }
@media (prefers-reduced-motion: reduce) { .step.on :is(.mel-why, .mel-story p, .mel-bubble footer, .mel-photo, .beta-text > *, .beta-quote, .beta-quote figcaption, .bq-photo, .bq-book) { animation: none; } }
.moves { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; }
.moves button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: baseline; width: 100%; padding: 10px 14px; cursor: pointer; text-align: left;
  background: none; border: 0; border-radius: 10px; font: inherit; font-size: 18px; transition: background 0.3s; }
.moves button:hover { background: rgba(46, 55, 71, 0.45); }
.moves button.on { background: rgba(46, 55, 71, 0.85); box-shadow: inset 3px 0 0 var(--accent-hi); }
.moves s { color: var(--text-3); font-style: italic; text-decoration-color: rgba(154, 164, 178, 0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moves b { font: 600 20px var(--display); color: var(--text-2); transition: color 0.3s; }
.moves b::before { content: "→ "; color: var(--text-3); font-weight: 400; }
.moves button.on b { color: var(--accent-hi); }
#inside .side-left { width: min(520px, 36vw); }
/* the deck: the five pages, the chosen one in front, the rest stepped back behind it */
.deck { position: fixed; left: 40vw; top: calc(52vh - (60vw - var(--rail) - 40px) / 3.5); width: calc(60vw - var(--rail) - 40px); aspect-ratio: 1.75; }
.deck figure { position: absolute; inset: 0; margin: 0; border-radius: 12px; overflow: hidden; background: #f6f7f9;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 40px 90px -20px #000; transition: transform 0.7s cubic-bezier(.2,.8,.2,1), opacity 0.7s, filter 0.7s; }
.deck img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.deck figcaption { position: absolute; left: 14px; bottom: 12px; padding: 6px 12px 5px; border-radius: 99px; font: 600 15px var(--display); color: #fff; background: var(--accent); opacity: 0; transition: opacity 0.4s 0.3s; }
.deck figure.on figcaption { opacity: 1; }
.makers { position: absolute; inset: 0 var(--gutter) 9vh calc(var(--gutter)); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.makers h2 { margin-bottom: 30px; }
.maker-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 90px); width: min(1100px, 100%); }
.maker { display: grid; grid-template-columns: 22vh minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 30px; align-items: start; }
.maker-photo { position: relative; grid-row: 1 / span 3; width: 22vh; height: 27vh; }
.maker h3 { font-size: clamp(30px, 2.6vw, 42px); }
.role { font-family: var(--display); font-size: 17px; color: var(--accent-hi); margin: 6px 0 12px; }
.maker p:not(.role) { font-size: clamp(19px, 1.45vw, 22px); }

/* WRITERS */
.why-cards { left: 5vw; right: calc(5vw + var(--rail) * 0.6); top: 32.3vh; height: 57vh; }
.faces { display: flex; margin-bottom: 18px; }
.faces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--base); margin-left: -8px; }
.faces img:first-child { margin-left: 0; }
.writers-top { position: absolute; top: 12.5vh; left: var(--gutter); right: var(--gutter); display: flex; flex-direction: column; align-items: center; text-align: center; }
.writers-top .eyebrow { margin: 0 0 10px; }
.writers-top .intro { max-width: none; }
.intro { max-width: 26em; font-size: clamp(18px, 1.35vw, 21px); color: var(--text-2); text-shadow: 0 2px 20px var(--base); }
.stat { text-align: right; }
.stat b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(48px, 4.4vw, 72px); line-height: 0.95; color: var(--accent-hi); }
.stat span { display: block; margin-top: 6px; font-size: clamp(17px, 1.3vw, 20px); color: var(--text-2); }
.writers-ring { left: 0; right: 0; top: 29vh; height: 33vh; }
.quote-stage { position: absolute; left: 0; right: 0; top: 70vh; margin: 0 auto; width: min(1000px, calc(100% - var(--gutter) * 2 - var(--rail))); display: flex; align-items: flex-start; gap: 28px; }
.say { flex: 1; margin: 0; min-height: 20vh; display: flex; flex-direction: column; justify-content: flex-start; text-align: center; transition: opacity 0.4s ease, transform 0.4s ease; }
.say p { font-size: clamp(19px, 1.5vw, 24px); line-height: 1.5; font-style: normal; color: var(--text); text-shadow: 0 2px 20px var(--base); }
.say footer { margin-top: 12px; font-family: var(--body); font-size: 20px; color: var(--text-3); }
.say footer b { color: var(--accent-hi); font-weight: 600; }
.say.swap { opacity: 0; transform: translateY(8px); }

/* INSIDE: the window, its parts numbered, and the numbers' words in one even row under it */
.inside-head { position: absolute; top: 10vh; left: 0; right: 0; text-align: center; padding: 0 var(--gutter); }
.inside-head h2 { font-size: clamp(34px, 3.6vw, 58px); }
.inside-head .sub { margin-top: 10px; font-size: clamp(18px, 1.4vw, 21px); }
.inside-head .sub a { font-size: 0.95em; }
.inside-screen { left: 0; right: 0; margin: 0 auto; top: 28vh; height: 47vh; width: calc(47vh * 1.75); max-width: 74vw; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; pointer-events: none;
  font: 700 17px var(--display); color: #fff; background: var(--accent); box-shadow: 0 0 0 6px rgba(86, 134, 206, 0.28), 0 6px 18px rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.5s; }
.ch.on .pin { opacity: 1; animation: pin 2.4s ease-in-out infinite; }
.ch.on .pin:nth-child(1) { transition-delay: 0.9s; } .ch.on .pin:nth-child(2) { transition-delay: 1.1s; } .ch.on .pin:nth-child(3) { transition-delay: 1.3s; } .ch.on .pin:nth-child(4) { transition-delay: 1.5s; } .ch.on .pin:nth-child(5) { transition-delay: 1.7s; }
@keyframes pin { 0%, 100% { box-shadow: 0 0 0 6px rgba(86, 134, 206, 0.28), 0 6px 18px rgba(0, 0, 0, 0.45); } 50% { box-shadow: 0 0 0 11px rgba(86, 134, 206, 0.12), 0 6px 18px rgba(0, 0, 0, 0.45); } }
.legend { position: absolute; left: 0; right: 0; top: calc(28vh + 47vh + 3.5vh); margin: 0 auto; padding: 0; list-style: none; width: min(1180px, calc(100% - var(--gutter) * 2 - var(--rail))); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.legend li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 17px; line-height: 1.35; color: var(--text-2); }
.legend b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--display); color: #fff; background: var(--accent); margin-top: 1px; }

/* INSPIRATION: a short head, then the cassette and the desk, side by side and the same height, as in the app */
.insp-head { position: absolute; top: 10vh; left: 0; right: 0; text-align: center; padding: 0 var(--gutter); }
.insp-try { position: fixed; left: 79vw; top: 34vh; width: 13vw; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; text-align: center; pointer-events: none; color: var(--accent-hi); }
.insp-try span { display: inline-block; padding: 6px 16px 7px; border: 1.5px dashed rgba(122, 162, 224, 0.55); border-radius: 20px; font: italic 500 20px var(--body); letter-spacing: 0.01em; transform: rotate(4deg); }
.insp-try svg { display: block; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, 5px); } }
@media (prefers-reduced-motion: reduce) { .insp-try svg { animation: none; } }
.plain .insp-try, .nogl .insp-try { display: none; }
@media (max-width: 1100px) { .insp-try { display: none; } }
.insp-stage { left: 8vw; right: calc(8vw + var(--rail)); top: 34vh; height: 52vh; }

/* FEATURES: the app itself on the left, as a page with no frame; the features listed on the right, the open one with its
   pages and a few words (Non, 2026-10-26) */
.feat-head { position: absolute; top: 8vh; left: var(--gutter); right: calc(var(--rail) + 40px); }
.feat-head h2 { font-size: clamp(28px, 2.7vw, 42px); }
.feat-head .eyebrow { margin-bottom: 8px; }
/* the app as wide as the page allows: the features are a row of names above it, the chosen one's words under it, and
   Full screen takes it over the whole window */
.demo { position: absolute; left: var(--gutter); right: calc(var(--rail) + 40px); top: calc(8vh + 112px); bottom: 84px; display: flex; flex-direction: column; }
.demo-screen { position: relative; flex: 1; min-height: 0; border-radius: 12px; overflow: hidden; background: #14181c; box-shadow: 0 40px 90px -30px #000, 0 0 0 1px rgba(255, 255, 255, 0.04); }
.demo-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity 0.4s; }
/* on a big screen the live app opens in its dark look, so the picture (made in the light look, from an older version of the app) is not shown while it loads: a dark panel that already matches, then the app fades in. A phone has no live app, so it still shows the pictures. */
.demo-screen:not(.live)::after { content: "Opening Lost Writer…"; position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font: 500 13px var(--display); letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.32); pointer-events: none; }
.demo-screen:has(.demo-start:not([hidden]))::after { display: none; }   /* (not while it waits for a click) */
#demo-frame { position: absolute; left: 0; top: 0; border: 0; width: 100%; height: 100%; transform-origin: 0 0; opacity: 0; transition: opacity 0.4s; background: #14181c; }
.demo-screen.live #demo-frame { opacity: 1; }
.demo-screen.live .demo-shot { opacity: 0; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; font: 500 15px var(--display); color: var(--text-3); }
.demo-foot button { flex: none; cursor: pointer; background: none; border: 0; padding: 4px 0; font: 600 15px var(--display); color: var(--accent-hi); }
.demo-foot button:hover { color: var(--text); }
.flist { display: none; position: absolute; left: var(--gutter); right: calc(var(--rail) + 40px); top: calc(8vh + 78px); flex-wrap: nowrap; flex-direction: row; gap: 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding-bottom: 4px; }
.flist::-webkit-scrollbar { display: none; }
.fl { flex: none; }
.fl-name { cursor: pointer; background: none; padding: 6px 14px 5px; border: 1px solid var(--line-strong); border-radius: 99px; font: 500 16px var(--display); color: var(--text-2); white-space: nowrap; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.fl-name:hover { color: var(--text); border-color: var(--text-3); }
.fl.on .fl-name { background: var(--accent); border-color: var(--accent); color: #fff; }
.fl-more { display: none; }
.fl-now { display: none; position: absolute; left: var(--gutter); right: calc(var(--rail) + 40px); bottom: 62px; height: 56px; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; align-items: center; overflow: hidden; }
.fl-now .fl-line { grid-column: 1; font-size: 19px; line-height: 1.35; color: var(--text); padding: 0; }
.fl-now .fl-subs { grid-column: 2; margin: 0; }
.fl-now ul { display: none; }
.demo-foot { justify-content: flex-end; gap: 18px; }
.demo-foot > span { display: none; }
.demo-close { display: none; }
/* Full screen: the same three pieces, over the whole window (Esc, or the cross, to come back) */
#features.full { position: fixed; inset: 0; z-index: 120; background: var(--base); opacity: 1; visibility: visible; }
/* (the top bar, the map, and the way on step aside, which sit above the page) */
.demo-full :is(.top, .rail, .onward, .mobile-nav, .playing) { display: none !important; }
#features.full .feat-head { display: none; }
#features.full .demo { top: 66px; left: 24px; right: 24px; bottom: 56px; }
#features.full .demo-close { display: grid; place-items: center; position: absolute; top: 12px; right: 22px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; border: 1px solid var(--line-strong); background: var(--base-2); color: var(--text); font: 400 26px/1 var(--display); }
#features.full .demo-close:hover { border-color: var(--text-3); }
.fl-line { font-size: 16px; line-height: 1.4; color: var(--text-2); padding: 0 2px; }
.fl-subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.fl-subs button { cursor: pointer; background: none; border: 1px solid var(--line-strong); border-radius: 99px; padding: 4px 12px 3px; font: 500 14px var(--display); color: var(--text-2); }
.fl-subs button:hover { color: var(--text); border-color: var(--text-3); }
.fl-subs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.fl ul { list-style: none; margin: 6px 0 10px; padding: 0 2px; }
.fl li { position: relative; padding: 2px 0 2px 18px; font-size: 15px; line-height: 1.35; color: var(--text-3); }
.fl li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* YOUR BOOK */
#yours .side-left { width: min(560px, 42vw); }
.promises { list-style: none; margin: 22px 0 0; padding: 0; }
.promises li { padding: 14px 0; border-top: 1px dashed var(--line-strong); font-size: clamp(19px, 1.45vw, 22px); text-shadow: 0 2px 16px var(--base); }
.promises b { display: block; font-family: var(--display); font-weight: 600; color: var(--text); font-size: clamp(23px, 1.8vw, 28px); }
.page-anchor { left: 50vw; width: 38vw; top: 11vh; height: 78vh; }
.quote-anchor { left: 50vw; width: 38vw; top: 8vh; height: 80vh; }

/* PRICE */
.price-wrap { position: absolute; left: var(--gutter); right: calc(var(--rail) + 20px); top: 0; bottom: 0; width: auto; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; align-content: center; }
.price-card {
  position: relative; padding: 54px 34px 32px; text-align: center; border-radius: 6px 6px 16px 16px;
  background: repeating-linear-gradient(180deg, transparent 0 33px, var(--rule) 33px 34px), var(--base-2); border: 1px solid var(--line-strong);
  box-shadow: 10px 10px 0 -1px var(--base-4), 10px 10px 0 0 var(--line-strong), 0 40px 70px -30px rgba(0, 0, 0, 0.9);
}
.price-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34px; border-bottom: 1px dashed var(--line-strong); border-radius: 6px 6px 0 0;
  background: radial-gradient(circle at 50% 50%, var(--base) 0 6px, var(--line-strong) 6px 7px, transparent 7.5px) 0 0 / 34px 34px space no-repeat, var(--base-3); }
.price-card .eyebrow { font-size: 15px; }
.price-num { font-family: var(--display); font-weight: 500; font-size: clamp(90px, 9vw, 130px); line-height: 0.9; color: var(--text); margin-top: 6px; }
.price-num span { font-size: 0.42em; vertical-align: 0.9em; color: var(--text-3); margin-right: 4px; }
.price-once { font-family: var(--display); font-size: 19px; color: var(--text-3); margin: 6px 0 18px; }
.price-try { margin: 14px 0 10px; font-size: 17px; color: var(--text-3); }
.price-os { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-os .btn { font-size: 17px; padding: 13px 8px 12px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 15px 0 15px 34px; border-top: 1px dashed var(--line-strong); font-size: 22px; color: var(--text); text-shadow: 0 2px 12px var(--base); }
.checks li:first-child { border-top: 0; }
.checks li::before { content: ""; position: absolute; left: 3px; top: 24px; width: 14px; height: 8px; border-left: 2px solid var(--accent-hi); border-bottom: 2px solid var(--accent-hi); transform: rotate(-45deg); }

/* QUESTIONS */
.faq { position: absolute; top: 14vh; bottom: 84px; left: 0; right: 0; margin: 0 auto; width: min(1180px, calc(100% - var(--gutter) * 2 - var(--rail) - 20px)); display: flex; flex-direction: column; }
.faq-col { min-width: 0; }
.faq-list { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; align-items: start; align-content: start; overflow-y: auto; min-height: 0; }
details { border-top: 1px dashed var(--line-strong); background: transparent; }

summary { cursor: pointer; list-style: none; position: relative; padding: 16px 46px 16px 4px; font: 500 clamp(20px, 1.5vw, 24px) var(--display); color: var(--text); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 10px; top: 14px; font-size: 30px; color: var(--accent-hi); }
details[open] summary::after { content: "–"; }
details p { padding: 0 4px 18px; font-size: 19px; max-width: 40em; color: var(--text-2); }
.faq-more { margin-top: 16px; font-size: 19px; }

/* MORE: the last word and its buttons; the compass in stars under them, the thank-you under it; the press and the
   small print along the foot (Non, 2026-10-26: the compass lower, the words never over it) */
.last { position: absolute; top: 10vh; left: 0; right: 0; text-align: center; padding: 0 var(--gutter); }
.last h2 { font-size: clamp(36px, 4vw, 62px); max-width: 16em; margin: 0 auto; }
.last .cta { margin-top: 24px; }
.end-compass { left: calc(50% - 15vh); top: 41vh; width: 30vh; height: 30vh; }
#more .thanks { top: 73vh; }
.end-row { position: absolute; left: var(--gutter); right: calc(var(--rail) + 40px); bottom: 34px; display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; }
.press img { width: 170px; height: auto; opacity: 0.85; }
.press p { margin-top: 8px; font-size: 16px; color: var(--text-3); }
.small-print { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; font-size: 16px; }
.small-print a { color: var(--text-2); }
.small-print a:hover { color: var(--text); }
.small-print span { flex-basis: 100%; text-align: right; font: 14px var(--display); color: var(--text-3); }

/* the tip that names things in the 3D */
.tip { position: fixed; z-index: 35; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); font: 500 15px var(--display); color: var(--text); white-space: nowrap; background: var(--base-3); border: 1px solid var(--line-strong); border-radius: 6px; padding: 5px 10px 4px; }

/* The loader */
.loader { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--base); transition: opacity 0.9s ease, visibility 0.9s; }
/* (Mel and Non, 2026-11-08: the loader only appears when loading takes a while: for the first 0.7 s it is clear, so a fast load goes straight to the page) */
.loader:not(.done) { animation: loader-in 0.4s ease 0.7s both; }
@keyframes loader-in { from { opacity: 0; } to { opacity: 1; } }
.loader.done { opacity: 0; visibility: hidden; }
.loader-word { font-family: var(--display); font-size: 34px; color: var(--text); }
.loader-bar { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--accent-hi); transition: width 0.3s; }

/* Tablets and small laptops (iPad on its side, up to 1200 wide): the map keeps only its dots; Features puts its names in
   a row above the app, and the chosen one's words under it, so the app itself is as wide as can be */
@media (max-width: 1200px) and (min-width: 901px) {
  :root { --rail: 44px; }
  .rail button.here span { opacity: 0; }
  .rail:hover button span { opacity: 1; }
  .hero { width: min(640px, 50vw); }
  .hero-visual, .star-hint { left: 56vw; width: calc(44vw - var(--rail) - 60px); }
  .flist { left: var(--gutter); right: calc(var(--rail) + 30px); width: auto; top: calc(9vh + 82px); bottom: auto; flex-direction: row; justify-content: flex-start; gap: 6px; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
  .fl, .fl:last-child { border: 0; flex: none; }
  .fl-name { padding: 6px 14px 5px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 16px; }
  .fl-name::after { display: none; }
  .fl.on .fl-name { font-size: 16px; background: var(--accent); border-color: var(--accent); color: #fff; }
  .fl-more { display: none; }
  .demo { left: var(--gutter); right: calc(var(--rail) + 30px); top: calc(9vh + 132px); bottom: 196px; }
  .demo-foot { display: none; }
  .fl-now { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; align-items: start; position: absolute; left: var(--gutter); right: calc(var(--rail) + 30px); bottom: 66px; height: 116px; overflow: hidden; }
  .fl-now .fl-line { grid-column: 1; grid-row: 1; font-size: 18px; color: var(--text); padding: 0; }
  .fl-now ul { grid-column: 1; grid-row: 2; margin: 6px 0 0; padding: 0; list-style: none; }
  .fl-now li { position: relative; padding: 1px 0 1px 16px; font-size: 15px; color: var(--text-3); }
  .fl-now li::before { content: ""; position: absolute; left: 1px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  .fl-now .fl-subs { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-items: flex-start; }
  .legend { gap: 18px; }
  .legend li { font-size: 15px; }
  .flist, .fl-now { display: none; }
  .demo { top: calc(8vh + 44px); bottom: 84px; }
  .demo-foot { display: flex; }
}

/* Phones and narrow windows: the map becomes a bar along the bottom; the words above, the 3D below them; nothing that
   matters small, and nothing to scroll sideways but the app's pictures */
@media (max-width: 900px) {
  :root { --rail: 0px; --gutter: 20px; }
  body { font-size: 18px; }
  .phone-only { display: block; }
  .rail { display: none; }
  .rail.open { display: grid; right: 12px; left: 12px; top: auto; bottom: 74px; transform: none; padding: 14px 18px; background: rgba(20, 24, 28, 0.97); border: 1px solid var(--line-strong); border-radius: 14px; }
  .rail.open button { justify-content: flex-start; flex-direction: row-reverse; font-size: 18px; padding: 8px 0; }
  .rail.open button span { opacity: 1; transform: none; }
  .mobile-nav { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 26; display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; }
  .mobile-nav button { height: 50px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(32, 37, 43, 0.94); color: var(--text); font: 600 17px var(--display); cursor: pointer; }
  .onward { display: none; }
  .logo { width: 140px; height: 26px; }
  .top { height: 60px; padding-right: 14px; }
  .btn { font-size: 19px; padding: 14px 20px 13px; }
  .btn-small { font-size: 16px; padding: 10px 14px 9px; }
  h2 { font-size: clamp(28px, 7.4vw, 36px); }
  .eyebrow { font-size: 14px; margin-bottom: 10px; }
  .sub { font-size: 17px; margin-top: 10px; }
  .sub.lead { font-size: 17px; }

  /* home: the words, then the compass with its names */
  .hero { left: var(--gutter); right: var(--gutter); top: 72px; bottom: auto; width: auto; text-align: center; display: block; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: clamp(36px, 10vw, 50px); }
  .hero .cta { justify-content: center; margin-top: 18px; gap: 10px; }
  .lede { margin: 12px auto 0; font-size: 17px; }
  .fine { font-size: 15px; margin-top: 10px; }
  .hero .fine, .hero .facts { display: none; }
  .send { margin: 14px auto 0; padding: 0; border: 0; background: none; text-align: center; font-size: 15px; }
  .send b { display: inline; font-size: 15px; margin-left: 4px; }
  .send b::after { content: " →"; }
  .hero-visual { left: 20vw; width: 60vw; bottom: auto; }
  .star-hint { display: none; }
  .star-names span { font-size: 12px; }
  .star-pop { left: 12px !important; right: 12px; top: auto !important; bottom: 74px; width: auto; max-height: calc(100vh - 150px); overflow-y: auto; }
  .star-pop.part { display: grid; grid-template-columns: 42% minmax(0, 1fr); column-gap: 12px; align-items: start; }
  .star-pop.part img { grid-row: 1 / span 3; }
  .star-pop.part h3 { margin: 2px 0 0; font-size: 21px; }
  .star-pop.part p { margin: 2px 0 8px; font-size: 15px; }
  .star-pop.part .btn { margin: 0; justify-self: start; }
  .thanks { top: 66vh; width: 300px; margin-left: -150px; font-size: 19px; }
  .thanks small { font-size: 13px; }

  /* why */
  .side-left, #yours .side-left, #inside .side-left { left: var(--gutter); right: var(--gutter); width: auto; top: 72px; bottom: auto; justify-content: flex-start; }
  .top-center { top: 72px; }
  .big { font-size: 17px; margin-top: 12px; }
  /* (the whole bubble and its photo on one screen: Mel smaller, the photo beside her name at the foot) */
  .mel-step { left: var(--gutter); right: var(--gutter); top: 72px; bottom: 80px; justify-content: center; }
  .mel-step .eyebrow { margin-bottom: 8px; }
  .beta-step { left: var(--gutter); right: var(--gutter); top: 72px; bottom: 80px; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 14px; }
  .beta-text h2 { font-size: 26px; }
  .beta-text .big { font-size: 15px; margin-top: 8px; }
  .beta-stats { margin-top: 12px; gap: 8px 18px; }
  .beta-stats b { font-size: 24px; }
  .beta-stats span { font-size: 13px; }
  .beta-note { display: none; }
  .beta-faces { margin-top: 12px; }
  .beta-faces img { width: 40px; height: 40px; margin-left: -10px; }
  .beta-quote { width: min(260px, 70vw); padding: 34px 14px 70px 30px; margin-bottom: 26px; justify-self: end; margin-top: -4px; }
  .bq-photo { right: -14px; bottom: -22px; padding: 5px 5px 12px; }
  .bq-photo::before { top: -8px; width: 40px; height: 14px; margin-left: -20px; }
  .bq-face { width: 84px; height: 105px; }
  .bq-book { width: 60px; height: auto; aspect-ratio: 2 / 3; left: -12px; bottom: -16px; }
  .beta-quote::before { height: 26px; }
  .beta-quote::after { top: 26px; left: 18px; }
  .beta-quote blockquote { font-size: 13px; }
  .beta-quote figcaption { font-size: 11px; margin-top: 8px; }
  .beta-quote figcaption b { font-size: 13px; }
  .mel-says { --hang: 0px; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; }
  .mel-face { width: 58px; height: 58px; }
  .mel-bubble { padding: 16px 16px 14px; font-size: clamp(14px, 2vh, 15.5px); line-height: 1.45; }
  .mel-bubble::before { left: 22px; top: -10px; transform: rotate(135deg); }
  .mel-bubble .mel-why { font-size: 21px; }
  .mel-bubble p + p { margin-top: 10px; }
  .mel-story { margin-top: 8px; }
  .mel-step .mel-bubble { padding-right: 16px; }
  .mel-bubble footer { font-size: 13px; margin-top: 10px; max-width: 54%; }
  .mel-photo { position: relative; top: auto; right: auto; width: min(150px, 42%); margin: -64px -8px -22px auto; padding: 5px 5px 0; }
  .mel-photo.portrait { width: min(120px, 34%); margin: -40px -8px -22px auto; }
  .mel-photo::before { width: 54px; height: 16px; margin-left: -27px; top: -8px; }
  .mel-photo figcaption { font-size: 10.5px; padding: 4px 0 5px; }
  .moves { margin-top: 14px; gap: 0; }
  .moves button { padding: 6px 10px; font-size: 15px; }
  .moves b { font-size: 16px; }
  .deck { left: 6vw; width: 88vw; top: auto; bottom: 80px; }
  .why-cards { left: 4vw; right: 4vw; }
  .makers { inset: 72px var(--gutter) 80px; overflow-y: auto; }
  .makers h2 { margin-bottom: 18px; }
  .maker-row { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .maker { grid-template-columns: 100px minmax(0, 1fr); column-gap: 16px; }
  .maker-photo { width: 100px; height: 122px; }
  .maker h3 { font-size: 26px; }
  .maker p:not(.role) { font-size: 16px; }

  /* writers */
  .writers-top { top: 72px; right: var(--gutter); }
  .intro { font-size: 15px; line-height: 1.4; }
  .stat { text-align: left; margin-top: 10px; }
  .stat b { display: inline; font-size: 34px; }
  .stat span { display: inline; margin-left: 6px; font-size: 15px; }
  /* the words, the cards, the quote: the same space between each (Non, 2026-10-26) */
  .writers-ring { top: calc(130px + clamp(16px, 6vh - 10px, 60px)); height: 200px; }
  .quote-stage { top: calc(356px + 2 * clamp(16px, 6vh - 10px, 60px)); bottom: 80px; gap: 8px; align-items: flex-start; width: calc(100% - 24px); }
  .say { min-height: 0; max-height: 100%; overflow-y: auto; justify-content: flex-start; }
  .say p { font-size: 16px; }
  .say footer { font-size: 14px; }
  .arrow { width: 44px; height: 44px; font-size: 20px; }
  /* a shorter phone: smaller cards, so the longest quote still fits under them */
  @media (max-height: 800px) {
    .writers-ring { top: calc(120px + clamp(14px, 5.2vh - 8px, 40px)); height: 160px; }
    .quote-stage { top: calc(303px + 2 * clamp(14px, 5.2vh - 8px, 40px)); }
    .say p { font-size: 15px; line-height: 1.42; }
  }

  /* inside: the window full width, its numbers' words one under another */
  .inside-head { top: max(72px, calc(50vh - 300px)); }
  .inside-head h2 { font-size: clamp(26px, 7vw, 34px); }
  .inside-head .sub { font-size: 15px; }
  .inside-screen { left: 3vw; right: auto; margin: 0; top: calc(max(72px, calc(50vh - 300px)) + 150px); width: 94vw; height: calc(94vw / 1.75); max-width: none; }
  .pin { width: 22px; height: 22px; font-size: 12px; box-shadow: 0 0 0 4px rgba(86, 134, 206, 0.28); }
  .ch.on .pin { animation: none; }
  .legend { top: calc(max(72px, calc(50vh - 300px)) + 150px + 94vw / 1.75 + 40px); width: auto; left: var(--gutter); right: var(--gutter); grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .legend li { grid-template-columns: 24px minmax(0, 1fr); font-size: 15px; }
  .legend b { width: 22px; height: 22px; font-size: 12px; }

  /* inspiration: the cassette above the desk */
  .insp-head { top: 72px; }
  .insp-stage { left: 3vw; right: 3vw; }

  /* features: a row of names, the app's picture to swipe across, the chosen one's words */
  .feat-head { top: 72px; left: var(--gutter); right: var(--gutter); }
  .feat-head { display: none; } /* (on a phone, every feature's name instead, all in sight) */
  .flist { display: flex; left: var(--gutter); right: var(--gutter); width: auto; top: 72px; bottom: auto; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 7px 6px; overflow: visible; padding: 0; }
  .fl, .fl:last-child { border: 0; flex: none; }
  .fl-name { padding: 6px 12px 5px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 15px; }
  .fl-name::after { display: none; }
  .fl.on .fl-name { font-size: 15px; background: var(--accent); border-color: var(--accent); color: #fff; }
  .fl-more { display: none; }
  /* (the whole page, fitted, in a frame with room either side; tap it to see it up close; then its words) */
  .demo { left: var(--gutter); right: var(--gutter); top: var(--demo-top, 230px); bottom: auto; height: auto; }
  .demo-screen { flex: none; aspect-ratio: 1.75; border-radius: 10px; }
  .demo-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 1; }
  .demo-screen:not(.live)::after { display: none; }
  #demo-frame { display: none; }
  .demo-foot { display: none; }
  .fl-now { display: block; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--demo-top, 230px) + (100vw - 40px) / 1.75 + 16px); bottom: 78px; overflow-y: auto; }
  .fl-now .fl-line { font-size: 18px; color: var(--text); padding: 0; }
  .fl-now .fl-subs { margin: 10px 0 0; }
  .fl-now .fl-subs button { font-size: 15px; padding: 6px 14px 5px; }
  .fl-now ul { margin: 10px 0 0; padding: 0; list-style: none; }
  .fl-now li { position: relative; padding: 3px 0 3px 16px; font-size: 15px; line-height: 1.4; color: var(--text-2); }
  .fl-now li::before { content: ""; position: absolute; left: 1px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

  /* your book, the price, the questions, the end */
  .page-anchor { left: 10vw; width: 80vw; }
  .quote-anchor { left: 8vw; width: 84vw; }
  #yours .promises li { padding: 7px 0; font-size: 14px; line-height: 1.4; }
  #yours .promises b { font-size: 20px; }
  /* (everything on one screen, nothing to scroll: Non, 2026-10-26) */
  .price-wrap { left: var(--gutter); right: var(--gutter); width: auto; top: 66px; bottom: 76px; grid-template-columns: minmax(0, 1fr); gap: 10px; overflow: hidden; align-content: center; }
  .price-card { padding: 44px 18px 16px; box-shadow: 6px 6px 0 -1px var(--base-4), 6px 6px 0 0 var(--line-strong); }
  .price-card::before { height: 28px; background-size: 28px 28px, auto; }
  .price-card .eyebrow { font-size: 12px; margin-bottom: 0; }
  .price-num { font-size: clamp(56px, 9vh, 76px); }
  .price-once { font-size: 15px; margin: 2px 0 10px; }
  .price-card .btn-wide { font-size: 17px; padding: 12px 10px 11px; }
  .price-try { font-size: 13.5px; margin: 8px 0 6px; }
  .price-os .btn { font-size: 15px; padding: 10px 6px 9px; }
  .checks li { font-size: clamp(13.5px, 2vh, 15px); padding: clamp(3px, 0.8vh, 7px) 0 clamp(3px, 0.8vh, 7px) 26px; }
  .checks li::before { top: calc(50% - 6px); width: 12px; height: 7px; }
  .price-wrap .send { margin: 0; font-size: 13.5px; }
  .price-wrap .send b { font-size: 13.5px; }
  .faq { width: auto; left: var(--gutter); right: var(--gutter); top: 72px; bottom: 74px; }
  .faq-list { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
  summary { font-size: 18px; padding: 13px 40px 13px 2px; }
  details p { font-size: 16px; }
  .faq-more { font-size: 16px; }
  .last { top: 72px; }
  .last h2 { font-size: clamp(26px, 7vw, 34px); }
  .end-compass { top: 36vh; left: calc(50% - 12vh); width: 24vh; height: 24vh; }
  #more .thanks { top: 62vh; }
  .end-row { left: var(--gutter); right: var(--gutter); bottom: 74px; display: block; }
  .press { display: none; }
  .small-print { justify-content: center; font-size: 15px; }
  .small-print span { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ch, .step, .callout { transition-duration: 0.01s !important; transition-delay: 0s !important; }
  .rise, .eq i, .onward i { animation: none !important; }
}

/* (the headline's box reaches over the compass: only its words and buttons take clicks, the rest goes to the stars) */
.ch.on > .hero { pointer-events: none; }
.ch.on > .hero > * { pointer-events: auto; }


/* The simple view (the switch in the top bar; or ?view=simple; or a computer set to reduce motion): the same night, the
   same 3D (the compass of stars, the desk, the weather), but one page that scrolls, with no flying and nothing moving by
   itself (Non, 2026-10-26). The chapters stack; each .anchor is a box in the page, and the 3D follows it as it scrolls.
   Without WebGL (.nogl) the .still-only parts stand in for the 3D. */
.still-only { display: none !important; }
.nogl .still-only { display: block !important; }
.plain body { overflow: auto; height: auto; }
.plain .rail, .plain .onward, .plain .mobile-nav { display: none !important; }
.nogl #gl, .nogl .flash, .nogl .loader, .nogl .tip, .nogl .star-pop, .nogl .star-names, .nogl .gl-only, .nogl .thanks, .nogl .playing,
.nogl .writers-ring, .nogl .quote-stage, .nogl .hint, .nogl .anchor:not(.inside-screen):not(.maker-photo) { display: none !important; }
.plain .top { position: sticky; background: rgba(20, 24, 28, 0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); pointer-events: auto; }
/* (the page lets the pointer through to the 3D, except where there are words and buttons) */
.plain .ch { position: relative; inset: auto; opacity: 1; visibility: visible; pointer-events: none; max-width: 1240px; margin: 0 auto; padding: 96px var(--gutter); }
.plain .ch > :not(.anchor):not(.step), .plain .step > :not(.anchor) { pointer-events: auto; }
.nogl .ch { pointer-events: auto; }
.plain .step { opacity: 1; visibility: visible; pointer-events: none; }
.plain :is(.cmp, .hero, .step, .top-center, .side-left, .makers, .mel-step, .writers-top, .quote-stage, .inside-head, .legend, .insp-head, .feat-head, .demo, .flist, .fl-now, .price-wrap, .faq, .last, .end-row, .anchor, .deck, .star-hint, .thanks, .still-hero) {
  position: relative !important; inset: auto !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; width: auto !important; max-width: none; margin-left: 0; margin-right: 0; transform: none; }
.plain .anchor { display: block; }
.plain .ch > * + *, .plain .step + .step { margin-top: 40px; }
.plain .step + .step { padding-top: 96px; }
.plain .center, .plain .top-center { text-align: center; }
.plain .star-hint, .plain .thanks { text-align: center; margin-top: 16px; }
.view-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 9px 14px 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(20, 24, 28, 0.6); font: 600 15px var(--display); color: var(--text-2); }
.view-switch:hover { color: var(--text); border-color: var(--text-3); }
.view-switch i { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.view-switch i::after { content: ""; position: absolute; left: 2px; right: 2px; top: 3px; height: 1.5px; background: currentColor; box-shadow: 0 3px 0 currentColor; }
.plain .view-switch i { border-radius: 50%; }
.plain .view-switch i::after { inset: 3px; height: auto; border-radius: 50%; background: currentColor; box-shadow: none; }

/* each 3D picture's box in the page */
.plain #home { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 40px; align-items: center; min-height: calc(100vh - 72px); padding-top: 30px; padding-bottom: 30px; }
.plain #home > * + * { margin-top: 0; }
.plain .hero { display: block; grid-row: 1 / span 2; height: auto !important; }
.plain .hero h1 { font-size: clamp(46px, 5.6vw, 92px); }
.plain .hero-visual { height: min(62vh, 520px) !important; }
.plain #home .star-hint { align-self: start; }
.plain .why-cards { height: 520px !important; margin-top: 30px; }
.plain .top-center .fallback { display: none; }
.plain .mel-step { display: block; max-width: 1100px; height: auto !important; }
.plain .mel-says { margin-right: 60px; }
.plain #inside .step[data-step="0"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto auto auto 1fr; column-gap: 56px; height: auto !important; }
.plain #inside .step[data-step="0"] > :not(.deck) { grid-column: 1; }
.plain .deck { grid-column: 2; grid-row: 1 / span 4; align-self: center; aspect-ratio: 1.75; margin-top: 60px; height: auto !important; }
.plain .makers { display: block; height: auto !important; }
.plain .maker-row { margin: 34px auto 0; }
.plain .maker-photo { position: relative !important; width: 200px !important; height: 246px !important; }
.plain .maker { grid-template-columns: 200px minmax(0, 1fr); }
.plain .writers-top { display: flex; height: auto !important; }
.plain .writers-ring { height: 300px !important; margin-top: 30px; }
.plain .quote-stage { margin: 20px auto 0 !important; width: min(1000px, 100%) !important; height: auto !important; }
.plain .say { min-height: 9em; }
.plain .inside-head, .plain .insp-head, .plain .feat-head, .plain .last { height: auto !important; }
.plain .inside-screen { max-width: 1100px; margin: 34px auto 0 !important; height: auto !important; aspect-ratio: 1.75; }
.plain .legend { max-width: 1100px; margin: 30px auto 0 !important; height: auto !important; }
.plain .insp-stage { height: 560px !important; margin-top: 20px; }
.plain #features { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 48px; }
.plain #features > * + * { margin-top: 0; }
.plain .feat-head { grid-column: 1 / -1; margin-bottom: 30px; }
.plain .demo { grid-column: 1 / -1; display: flex; flex-direction: column; height: auto !important; }
.plain .demo-screen { flex: none; aspect-ratio: 1.6; }
.plain .flist { grid-column: 2; justify-content: flex-start; overflow: visible; height: auto !important; }
.plain #yours { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.plain #yours > * + * { margin-top: 0; }
.plain #yours .side-left { display: block; height: auto !important; }
.plain #inside .side-left { width: auto; }
.plain .page-anchor { height: 600px !important; }
.plain .quote-anchor { height: 760px !important; }
.plain #price { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "wrap"; align-items: center; }
.plain #price > * + * { margin-top: 0; }
.plain .price-wrap { grid-area: wrap; display: grid; height: auto !important; }
.plain .faq { display: block; height: auto !important; }
.plain .faq-list { overflow: visible; }
.plain #more { text-align: center; }
.plain .end-compass { width: 300px !important; height: 300px !important; margin: 30px auto 0 !important; }
.plain .end-row { margin-top: 60px; text-align: left; height: auto !important; }
.plain :is(h1, h2, .lede, .sub, .intro, .big, .promises li, .checks li) { text-shadow: 0 2px 16px var(--base); }

/* without WebGL: the still pictures */
.still-mark { display: block; width: min(320px, 70%); aspect-ratio: 1; margin: 0 auto; background: var(--accent-hi); -webkit-mask: url(img/mark.svg) center / contain no-repeat; mask: url(img/mark.svg) center / contain no-repeat; filter: drop-shadow(0 0 30px rgba(86, 134, 206, 0.55)); }
.still-parts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.still-parts a { padding: 6px 13px 5px; border-radius: 99px; border: 1px solid var(--line-strong); font: 500 15px var(--display); color: var(--text-2); }
.still-parts a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.nogl .top-center .fallback { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 34px 0 0; padding: 0; text-align: left; }
.nogl .fallback li { padding: 22px 22px 20px; border-radius: 12px; background: var(--base-2); border: 1px solid var(--line); font-size: 18px; color: var(--text-2); }
.nogl .fallback b { display: block; margin-bottom: 8px; padding-bottom: 10px; border-bottom: 3px solid rgba(86, 134, 206, 0.85); font: 600 22px var(--display); color: var(--text); }
.nogl .fallback-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; padding: 8px 8px 34px; background: #eceef1; border-radius: 2px; transform: rotate(-2deg); }
.nogl .maker-photo { height: auto !important; }
.nogl .inside-screen { aspect-ratio: auto; }
.inside-img { width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 40px 80px -30px #000; }
.nogl .pin { opacity: 1; animation: none; }
.w-row { margin-top: 36px; }
.w-list { display: grid; grid-auto-flow: column; grid-auto-columns: min(380px, 80vw); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; }
.w-card { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 24px 24px 20px; border-radius: 14px; background: var(--base-2); border: 1px solid var(--line); }
.w-card blockquote { margin: 0; font-size: 18px; line-height: 1.5; font-style: normal; color: var(--text); }
.w-card figcaption { display: flex; align-items: center; gap: 12px; font: 17px var(--body); color: var(--text-3); }
.w-card b { display: block; font-weight: 600; color: var(--accent-hi); }
.w-card small { display: block; font-size: 14px; }
.w-face { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 600 16px var(--display); color: #fff; box-shadow: 0 0 0 5px rgba(198, 208, 220, 0.05), 0 0 0 6px rgba(198, 208, 220, 0.1); margin: 6px; }
.w-arrows { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.still-insp { max-width: 1000px; margin: 34px auto 0; }
.still-insp img { width: 100%; border-radius: 12px; }
.still-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.still-keys button { cursor: pointer; padding: 10px 18px 9px; border-radius: 10px; border: 1px solid #33405a; background: #1f242c; font: 600 16px var(--display); color: #7f9fd3; }
.still-keys button[aria-pressed="true"] { background: #24324b; color: #fff; border-color: var(--accent); }
.still-note { margin-top: 14px; text-align: center; font-size: 17px; color: var(--text-3); }
.nogl #yours blockquote.fallback { display: block; margin: 0; padding: 70px 36px 34px 64px; border-radius: 6px 6px 14px 14px; font-size: 21px; line-height: 34px; font-style: italic; color: var(--text); background: repeating-linear-gradient(180deg, transparent 0 33px, var(--rule) 33px 34px) 0 2px, var(--base-2); border: 1px solid var(--line-strong); }
.nogl #yours blockquote.fallback footer { font: normal 400 18px var(--body); color: var(--text-3); }
.end-mark { width: 150px; margin: 44px auto 0; }

/* the simple view on a phone */
@media (max-width: 900px) {
  .view-switch { padding: 8px 10px 7px; font-size: 13px; }
  .view-switch span { white-space: nowrap; }
  .plain .top { height: 60px; }
  .plain .ch { padding: 56px var(--gutter); }
  .plain .step + .step { padding-top: 56px; }
  .plain #home, .plain #yours, .plain #price { display: block; min-height: 0; }
  .plain #home > * + *, .plain #yours > * + *, .plain #price > * + * { margin-top: 28px; }
  .plain .hero { text-align: center; }
  .plain .hero-visual { height: 330px !important; }
  .plain .why-cards { height: 620px !important; }
  .plain .mel-says { margin-right: 0; }
  .plain .mel-step { overflow: visible; }
  .plain #inside .step[data-step="0"] { display: block; }
  .plain .deck { margin-top: 30px; width: 100% !important; }
  .plain .maker { grid-template-columns: 110px minmax(0, 1fr); }
  .plain .maker-photo { width: 100px !important; height: 123px !important; }
  .plain .writers-top { display: block; }
  .plain .writers-ring { height: 220px !important; }
  .plain .say { min-height: 0; }
  .plain .insp-stage { height: 175vw !important; }
  .plain #features { display: flex; flex-direction: column; }
  .plain #features .flist { order: 1; margin: 0 0 16px; }
  .plain #features .demo { order: 2; margin-top: 0; }
  .plain #features .fl-now { order: 3; margin-top: 16px; }
  .plain .demo-screen { aspect-ratio: 1.75; }
  .plain .page-anchor { height: 420px !important; }
  .plain .quote-anchor { height: 560px !important; }
  .plain .end-compass { width: 220px !important; height: 220px !important; }
  .plain .end-row { margin-top: 40px; display: block; }
  .nogl .top-center .fallback { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
/* (the complaints under their heading: the 3D box comes after it in the page) */
.plain #why { display: flex; flex-direction: column; }
.plain #why > .step[data-step="0"] { order: 1; }
.plain #why > .why-cards { order: 2; margin-top: 10px !important; }
.plain #why > .step:not([data-step="0"]) { order: 3; }
@media (max-width: 900px) {
  .plain .hero-visual { width: 70% !important; margin: 10px auto 0 !important; height: 300px !important; }
  .plain .why-cards { height: 440px !important; }
  .plain .writers-ring { margin-top: 56px !important; }
  .plain .quote-stage { margin-top: 30px !important; }
}

.plain .beta-step { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.6fr); }
@media (max-width: 900px) { .plain .beta-step { display: block; } .plain .beta-quote { margin: 24px auto 48px; width: min(340px, 90%); } }
.why-cards[hidden] { display: none !important; }
.inside-screen[hidden] { display: none !important; }
.ch-off { display: none !important; }

/* Story: the old site's story beats, as three steps that fill in as you scroll (main.js: storyTyping) */
.story-head { width: min(480px, 34vw); }
.story-panel { position: absolute; left: calc(var(--gutter) + min(480px, 34vw) + 56px); right: calc(var(--rail) + 40px); top: 12vh; bottom: 12vh; }
.story-panel .step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.st-cap { margin: 0; display: flex; align-items: center; gap: 12px; font: 600 15px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-hi); }
.st-cap b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; letter-spacing: 0; }
.st-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.st-chip { display: grid; gap: 2px; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(32, 37, 43, 0.85); }
.st-chip b { font: 600 20px var(--display); color: var(--text); }
.st-chip small { font: 500 15px var(--body); color: var(--text-3); }
.st-chip.on { border-color: var(--accent); background: rgba(86, 134, 206, 0.16); }
.step.on .st-chip { animation: rise 0.7s cubic-bezier(.2,.8,.2,1) both; }
.step.on .st-chip:nth-child(2) { animation-delay: 0.15s; } .step.on .st-chip:nth-child(3) { animation-delay: 0.3s; }
.step.on .st-chip:nth-child(4) { animation-delay: 0.45s; } .step.on .st-chip:nth-child(5) { animation-delay: 0.6s; }
.st-arc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.st-note { padding: 20px 22px 24px; border-radius: 10px; background: var(--base-2, #20252b); border: 1px solid var(--line); box-shadow: 5px 5px 0 -1px var(--base-4, #1c2024); min-height: 230px; }
.st-label { margin: 0; font: 600 26px var(--display); color: var(--text); }
.st-prompt { margin: 6px 0 16px; padding-bottom: 10px; font: italic 500 17px var(--body); color: var(--text-3); border-bottom: 3px solid rgba(86, 134, 206, 0.45); }
.st-input { margin: 0; font-size: 22px; line-height: 38px; color: var(--text); background: repeating-linear-gradient(transparent 0 37px, var(--line) 37px 38px); min-height: 76px; }
.st-beats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.st-beats li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 14px 18px; border-radius: 10px; background: rgba(32, 37, 43, 0.85); border: 1px solid var(--line); }
.st-dot { display: grid; place-items: center; width: 26px; height: 26px; margin-top: 3px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 14px var(--display); }
.st-beats h4 { margin: 0; font: 600 22px var(--display); color: var(--text); }
.st-plan { margin: 4px 0 0; font-size: 19px; line-height: 1.4; color: var(--text-2); min-height: 2.8em; }
.st-scenes { margin: 8px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.st-scenes span { font: 600 14px var(--display); letter-spacing: 0.04em; color: var(--accent-hi); padding: 3px 10px; border-radius: 99px; border: 1px solid rgba(123, 164, 227, 0.4); }
.st-beats li .st-scenes, .st-beats li .st-dot { transition: opacity 0.4s; }
@media (max-width: 900px) {
  .story-head { position: absolute; top: 11vh; left: var(--gutter); right: var(--gutter); bottom: auto; width: auto; justify-content: flex-start; }
  .story-head .sub { display: none; }
  .story-panel { left: var(--gutter); right: var(--gutter); top: 30vh; bottom: 12vh; }
  .st-arc { grid-template-columns: 1fr; } .st-note { min-height: 0; }
  .st-input { font-size: 18px; line-height: 32px; background: none; min-height: 0; }
}
.plain .story-head, .plain .story-panel, .plain .story-panel .step { position: static; width: auto; }
.plain .story-panel { margin-top: 28px; }
.plain .story-panel .step { gap: 14px; }
.plain .story-panel .step + .step { padding-top: 40px; }

/* The result: one app, three parts (the binder, and what each part is for) */
.res-head { width: min(480px, 34vw); }
.res-panel { position: absolute; left: calc(var(--gutter) + min(480px, 34vw) + 56px); right: calc(var(--rail) + 40px); top: 9vh; bottom: 9vh; }
.res-panel .step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.res-row { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: center; }
.res-binder { list-style: none; margin: 0; padding: 10px 0; border-radius: 12px; background: var(--base-2, #20252b); border: 1px solid var(--line); }
.res-binder li { padding: 4px 18px; font: 500 17px var(--display); color: var(--text-2); }
.res-binder .res-head-li { padding-top: 6px; font: 600 12px var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.res-binder .on { background: rgba(86, 134, 206, 0.18); color: var(--text); border-radius: 6px; margin: 0 8px; padding-left: 10px; }
.res-binder .sub { padding-left: 34px; } .res-binder .sub2 { padding-left: 50px; }
.res-note { position: relative; margin: 0; padding-left: 38px; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.4; color: var(--text-2); }
.res-note::before { content: "←"; position: absolute; left: 0; top: -2px; font: 500 30px var(--display); color: var(--accent-hi); }
.res-note b { display: block; font: 600 clamp(26px, 2.2vw, 34px) var(--display); color: var(--text); margin-bottom: 4px; }
.step.on .res-row { animation: rise 0.8s cubic-bezier(.2,.8,.2,1) both; }
.step.on .res-row:nth-child(2) { animation-delay: 0.25s; } .step.on .res-row:nth-child(3) { animation-delay: 0.5s; }
@media (max-width: 900px) {
  .res-head { position: absolute; top: 10vh; left: var(--gutter); right: var(--gutter); bottom: auto; width: auto; justify-content: flex-start; }
  .res-head .sub { display: none; }
  .res-panel { left: var(--gutter); right: var(--gutter); top: 26vh; bottom: 8vh; }
  .res-row { grid-template-columns: 130px 1fr; gap: 14px; } .res-binder li { font-size: 14px; padding: 2px 10px; } .res-note { font-size: 16px; padding-left: 26px; } .res-note b { font-size: 20px; }
}
.plain .res-head, .plain .res-panel, .plain .res-panel .step { position: static; width: auto; }
.plain .res-panel { margin-top: 28px; }

/* The result, a little smaller so it keeps clear of "Next:" (sizes follow the window's height) */
.res-binder .sub { padding-left: 34px; } .res-binder .sub2 { padding-left: 50px; }

.st-bar { display: flex; gap: 2px; margin-top: 8px; height: 6px; }
.st-bar u { display: block; border-radius: 3px; }
.st-chips { flex-wrap: nowrap; }
.st-chip { flex: 1 1 0; min-width: 0; }
.st-chip b { font-size: clamp(17px, 1.4vw, 20px); white-space: nowrap; }
@media (max-width: 900px) { .st-chips { flex-wrap: wrap; } .st-chip { flex: 1 1 40%; } }

/* The submenu at the top, in place of the dots (as on the book pages of lostislandpress.com) */
.rail { display: none; }
.subnav { position: fixed; left: 50%; top: 0; height: 72px; transform: translateX(-50%); z-index: 31; display: flex; align-items: center; gap: 30px; }
.subnav button { background: none; border: 0; padding: 8px 2px 6px; cursor: pointer; font: 600 17px var(--display); letter-spacing: 0.02em; color: var(--text-3); border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.subnav button:hover { color: var(--text); }
.subnav button.here { color: var(--text); border-bottom-color: var(--accent-hi); }
@media (max-width: 1060px) { .subnav { display: none; } }
.plain .subnav, .demo-full .subnav { display: none !important; }

/* The binder, closer to the app's own: folders with a chevron, the scene tucked under its chapter */
.res-binder li { display: flex; align-items: center; }
.res-binder .fold::before { content: ""; flex: none; width: 6px; height: 6px; margin: -3px 10px 0 2px; border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3); transform: rotate(45deg); }
.res-binder .lv1 { padding-left: 34px; }
.res-binder .lv2 { margin-left: 30px; padding-left: 22px; border-left: 1px solid var(--line-strong); }
.res-binder .on { padding-left: 16px; }

/* The end of the page, as the footer of lostislandpress.com */
.end-row { display: block; }
.foot-brand img { width: 170px; height: auto; opacity: 0.9; }
.foot-brand p { margin-top: 10px; max-width: 30em; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.foot-legal { margin-top: 20px; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--text-3); border-top: 1px solid; border-image: linear-gradient(90deg, transparent, rgba(154, 164, 178, 0.34), transparent) 1 0 0 0; }
.foot-left { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 28px; }
.foot-legal .small-print { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px 0; font-size: 15px; }
.foot-legal .small-print a + a::before { content: "•"; margin: 0 12px; color: var(--text-3); opacity: 0.7; display: inline-block; }
.foot-legal a { color: var(--text-2); }
.foot-legal a:hover { color: var(--text); }
@media (max-width: 900px) { .foot-brand { display: none; } .foot-legal { justify-content: center; text-align: center; } .foot-left { justify-content: center; } }

/* Story, on a wide screen: what came before stays on the page, filled in, and only the new part types */
@media (min-width: 901px) {
  .story-panel { top: 8vh; bottom: 12vh; display: flex; flex-direction: column; justify-content: center; gap: 1.6vh; }
  .story-panel .step { position: relative; inset: auto; justify-content: flex-start; gap: 1vh; }
  #story .step.past { opacity: 1; visibility: visible; }
  .story-panel .st-cap { font-size: clamp(11px, 1.5vh, 14px); }
  .story-panel .st-cap b { width: 24px; height: 24px; font-size: 13px; }
  .story-panel .st-chip { padding: 0.9vh 14px; }
  .story-panel .st-chip b { font-size: clamp(15px, 2.1vh, 19px); }
  .story-panel .st-chip small { font-size: clamp(12px, 1.7vh, 15px); }
  .story-panel .st-bar { margin-top: 0.8vh; }
  .story-panel .st-note { min-height: 0; padding: 1.4vh 18px 1.6vh; }
  .story-panel .st-label { font-size: clamp(17px, 2.6vh, 24px); }
  .story-panel .st-prompt { margin: 0.4vh 0 1vh; padding-bottom: 0.8vh; font-size: clamp(13px, 1.9vh, 16px); }
  .story-panel .st-input { font-size: clamp(15px, 2.1vh, 19px); line-height: clamp(24px, 3.4vh, 32px); min-height: calc(clamp(24px, 3.4vh, 32px) * 3); background: repeating-linear-gradient(transparent 0 calc(clamp(24px, 3.4vh, 32px) - 1px), var(--line) calc(clamp(24px, 3.4vh, 32px) - 1px) clamp(24px, 3.4vh, 32px)); }
  .story-panel .st-beats { gap: 1.2vh; }
  .story-panel .st-beats li { padding: 1.1vh 16px; }
  .story-panel .st-beats h4 { font-size: clamp(16px, 2.3vh, 21px); }
  .story-panel .st-plan { font-size: clamp(14px, 2vh, 18px); min-height: 2.7em; }
  .story-panel .st-scenes { margin-top: 0.6vh; }
  .story-panel .st-scenes span { font-size: 12px; padding: 1px 9px; }
}

@media (min-width: 901px) {
  .story-panel { top: 10vh; bottom: 13vh; gap: 1.2vh; }
  .story-panel .st-input { min-height: calc(clamp(24px, 3.4vh, 32px) * 2); }
  .story-panel .st-note { padding: 1.2vh 18px 1.2vh; }
  .story-panel .st-beats li { padding: 0.9vh 16px; }
  .story-panel .st-plan { min-height: 2.7em; margin-top: 2px; }
  .story-panel .st-beats h4 { font-size: clamp(15px, 2.1vh, 20px); }
}

/* By writers. For writers.: a header above Mel's box, outside it */
.mel-top { margin: 0 0 3vh; font: 600 clamp(30px, 3.2vw, 48px) var(--display); color: var(--text); }
.res-binder .on { padding-left: 10px; }
/* Story: the stack starts in the middle and slides up as each part arrives */
@media (min-width: 901px) {
  .story-panel { display: block; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 14%); mask-image: linear-gradient(transparent, #000 14%); top: 8vh; bottom: 11vh; }
  .story-track { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; gap: 3.5vh; transition: transform 0.9s cubic-bezier(.2,.8,.2,1); }
}
.st-beats li { grid-template-columns: 1fr; border-left: 3px solid var(--accent); border-radius: 4px 10px 10px 4px; background: rgba(32, 37, 43, 0.7); }
.step.on .st-beats li { animation: rise 0.7s cubic-bezier(.2,.8,.2,1) both; }
@media (min-width: 901px) { .story-panel .st-beats li { padding: 0.8vh 16px 0.9vh 18px; } }

/* Our writers, with a header: the ring of cards a little shorter to make room */

/* The scene's guide line sits under its chapter's chevron */
.res-binder .lv2 { margin-left: 39px; padding-left: 14px; }

/* The laptop around the live app (Finish your draft). To take it out: remove the word "laptop" from class="demo laptop" in index.html */
#features.full .demo.laptop .demo-screen { border-radius: 0; box-shadow: none; }
#features.full .demo.laptop .laptop-base { display: none; }

/* Plot your book: a little more room, now that the parts fade up */
@media (min-width: 901px) {
  .story-track { gap: 4.6vh; }
  .story-panel .st-note { padding: 1.7vh 20px 1.9vh; }
  .story-panel .st-beats { gap: 1.7vh; }
  .story-panel .st-beats li { padding: 1.3vh 20px 1.4vh 22px; }
  .story-panel .st-chip { padding: 1.3vh 16px; }
}

/* The end of the page: one quiet line */
.foot-line { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-size: 14px; color: var(--text-3); }
.foot-line span { margin-right: 22px; }
.foot-line a { color: var(--text-2); }
.foot-line a:hover { color: var(--text); }
.foot-line a + a::before { content: "•"; margin: 0 12px; color: var(--text-3); opacity: 0.7; display: inline-block; }
.foot-line a { text-decoration: none; }

/* With the dots gone, the right edge gets the same margin as the left */
:root { --rail: max(0px, calc(var(--gutter) - 40px)); }
.res-head h2 em { font-style: italic; color: var(--accent-hi); }


/* The simple view, one pass (2026-11-08): the same wrap as the 3D view at the top, Mel's and Non's photos clear of each other,
   and the Story steps laid out one under another (they are a sliding stack in the 3D view) */
.plain #home { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.plain .hero h1 { font-size: clamp(46px, 5.4vw, 88px); }
.plain #why .mel-step:not(.non-step) .mel-photo { top: 50%; }
.plain #why .mel-step:not(.non-step) { padding-bottom: 140px; }
.plain #why .non-step { padding-bottom: 80px; }
.plain .quote-stage { margin-top: 70px; }
.plain .story-panel { position: static !important; overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; height: auto !important; display: block !important; margin-top: 28px; }
.plain .story-track { position: static !important; transform: none !important; display: block !important; }
.plain .story-track .step { position: static !important; opacity: 1 !important; visibility: visible !important; margin: 0 0 34px !important; padding-top: 0 !important; display: block !important; }
.plain .story-track .step > * + * { margin-top: 12px; }


/* The three groups are subsections, not heroes: no small-caps label, smaller headings */
#inspiration .insp-head h2, #story .story-head h2, #features .feat-head h2 { font-size: clamp(28px, 2.9vw, 44px); }
#inspiration .insp-head .sub { font-size: clamp(17px, 1.5vw, 21px); margin-top: 10px; }
#story .story-head .sub { font-size: clamp(17px, 1.5vw, 21px); }

/* One quiet header position for Stay motivated, the desk a little further in from the right edge */
/* The trial in the page has no Full screen or Start over: it is just the app */
.demo-foot { display: none !important; }
/* Links in running text, exactly as a.lm on lostislandpress.com: the surrounding font, the blue, and a dim underline that is always there */
main p:not(.still-parts) a:not(.btn), main li a:not(.btn), main details a:not(.btn) { font-family: inherit; font-weight: inherit; text-decoration-color: rgba(123, 164, 227, 0.22); }


/* Wide-screen layout values (the phone keeps its own, set above) */
@media (min-width: 901px) {
  .res-panel { top: 8vh; bottom: 15vh; }
  .res-panel .step { gap: 2.2vh; }
  .res-binder { padding: 0.9vh 0; }
  .res-binder li { padding: 0.3vh 18px; font-size: clamp(12px, 1.9vh, 17px); }
  .res-binder .res-head-li { font-size: clamp(10px, 1.3vh, 12px); padding-top: 0.5vh; }
  .res-row { grid-template-columns: clamp(170px, 18vw, 240px) 1fr; }
  .feat-head { top: calc(8vh + 30px); }
  .demo { top: calc(8vh + 144px); }
  .writers-top { top: 9vh; }
  .writers-top h2 { margin: 0 0 8px; font-size: clamp(28px, 2.9vw, 44px); }
  .writers-ring { top: 29vh; height: 28vh; }
  .quote-stage { top: 68vh; }
  .say p { font-size: clamp(18px, 1.4vw, 22px); }
  .laptop-base { display: none; }
  .demo.laptop .demo-screen { border-radius: 8px; background: #090b0e; box-shadow: 0 0 0 9px #090b0e, 0 0 0 10px #2b323c, 0 34px 70px -20px rgba(0, 0, 0, 0.8); }
  .demo.laptop .laptop-base { display: block; position: relative; height: 15px; margin: 9px -2.5% 0; border-radius: 0 0 18px 18px / 0 0 12px 12px; background: linear-gradient(#323a46, #171b21); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
  .demo.laptop .laptop-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 120px; height: 5px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #0e1116; }
  .end-row { bottom: 26px; }
  .writers-top { top: 12vh; }
  .say p { text-wrap: balance; }
  .say.short p { max-width: 25em; margin-left: auto; margin-right: auto; }
  .mel-step:not(.non-step) .mel-photo { top: 36px; }
  .mel-says { --hang: 96px; }
  .mel-step:not(.non-step) .mel-photo { top: 50%; transform: translateY(-50%) rotate(3deg); }
  .beta-step { right: var(--rail); }
  .last { top: 15vh; }
  .end-compass { top: 47vh; }
  .thanks { top: 72vh; }
  .beta-step { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); }
  .quote-anchor { left: 47vw; width: 46vw; top: 6vh; height: 84vh; }
  .quote-anchor { top: 0.5vh; }
  .page-anchor { left: 47vw; width: 46vw; top: 0.5vh; height: 84vh; }
  .page-anchor, .quote-anchor { top: 2.5vh; }
  .feat-head { top: calc(8vh + 40px); }
  .demo { top: calc(8vh + 112px); }
  .insp-try { top: 27vh; left: 80vw; }
  .insp-head { top: 12vh; }
  .insp-head { top: 16vh; }
  .insp-stage { right: calc(8vw + 80px); }
}

/* Phone: the Story steps sit near their heading, not centred in a tall box */
@media (max-width: 900px) {
  .story-panel { top: 17vh; }
  .story-panel .step { justify-content: flex-start; }
}

/* The top bar, as the header of lostislandpress.com: a 60 px translucent bar with a hairline under it, a smaller wordmark,
   and menu items in the same size and spacing (wide screens; the phone keeps its own) */
@media (min-width: 901px) {
  .top { height: 60px; background: rgba(32, 37, 43, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .logo { width: 148px; height: 28px; }
  .subnav { height: 60px; gap: 24px; }
  .subnav button { font: 500 14.5px var(--display); letter-spacing: 0.06em; padding: 6px 1px 5px; }
  .top .btn-small { font-size: 15px; padding: 8px 15px 7px; }
  .view-switch { font-size: 14px; padding: 7px 12px 6px; }
}

/* The top bar lines up with the header of lostislandpress.com to the pixel on a wide screen, so switching between the two tabs
   doesn't move anything: the same 61 px bar, the same 1180 px column with 24 px inside it (the logo's left edge and the last
   button's right edge sit where theirs do), the wordmark 24 px tall at the same height, and the menu in the same type, spacing,
   and place (it ends 676 px short of the column's right edge, where the Lost Island Press menu begins) */
@media (min-width: 901px) {
  .top { box-sizing: border-box; height: 61px; padding: 0 max(24px, calc((100vw - 1180px) / 2 + 24px)); gap: 12px; }
  .mark { position: relative; top: -2px; }
  .logo { width: 149px; height: 24px; }
  .logo i { -webkit-mask-position: left center; mask-position: left center; }
  .subnav { box-sizing: border-box; height: 60px; right: auto; transform: none; left: calc(100vw - max(24px, (100vw - 1180px) / 2 + 24px) - 676px); gap: 34px; }
  .subnav button { padding: 0; line-height: 22px; border-bottom: 2px solid transparent; }
}

/* The "playing" pill sits in the bottom-left corner (it used to sit in the header, over the menu) */
.playing { position: fixed; z-index: 31; left: max(24px, calc((100vw - 1180px) / 2 + 24px)); bottom: 26px; font-size: 15px; padding: 6px 13px; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.7); }
@media (max-width: 900px) { .playing { left: 16px; bottom: 86px; max-width: calc(100vw - 32px); } }

/* The wordmark file has empty rows under its letters, so a 24 px box made the letters about 21 px: sized by the letters instead
   (1000 x 183 file, letters 165 tall), so they are 24 px high and the whole mark 148 px wide, as Lost Island Press's is */
@media (min-width: 901px) {
  .mark { top: 0; }
  .logo { width: 148px; height: 27px; }
}

/* The opening's caption under the compass of stars (the beta testers) */
.home-thanks { left: calc(58vw + (42vw - var(--rail) - 40px) / 2); top: 81.5vh; margin-left: -260px; }
@media (max-width: 900px) { .home-thanks { display: none; } }

/* The rule (Mel, 2026-11-08): on a wide screen the text of every part starts where the logo does (the same 1180 px column as the
   Lost Island Press header), and the pictures (notepads, sound desk, compass, the laptop) keep their size and may run past it */
:root { --col: max(24px, calc((100vw - 1180px) / 2 + 24px)); }
@media (min-width: 901px) {
  .hero, .mel-step, .beta-step, .side-left, .feat-head { left: var(--col); }
  .price-wrap { left: var(--col); right: var(--col); max-width: 1132px; }
  .faq { width: min(1132px, calc(100% - 48px)); }
  .story-head, .res-head { width: min(430px, 30vw); }
  /* the panels start after the text column (it starts at --col, not the gutter), so on a big window the words never go behind them (Lourens, 2026-11-09) */
  .story-panel, .res-panel { left: calc(var(--col) + min(430px, 30vw) + 56px); }
  #yours .side-left { width: min(500px, 36vw); }
  .plain .ch { max-width: 1180px; padding-left: 24px; padding-right: 24px; }
}

/* The result: the explainers a little smaller, and more room between the binder and its notes */
@media (min-width: 901px) {
  .res-row { gap: 58px; }
  .res-note { font-size: clamp(16px, 1.2vw, 19px); }
  .res-note b { font-size: clamp(21px, 1.75vw, 27px); }
  .res-note::before { font-size: 26px; }
  .home-thanks small { margin-top: 0; }
}

/* The questions sit straight on the night, with a soft shadow behind the words so they read over the weather */
.faq summary, .faq details p { text-shadow: 0 1px 14px rgba(8, 10, 13, 0.9), 0 0 3px rgba(8, 10, 13, 0.6); }

/* The simple view, second pass: a bigger notepad beside Nikki's words, room under the writers' heading, and a footer with space */
@media (min-width: 901px) {
  .plain .beta-step { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px; }
  .writers-ring { top: 32vh; height: 27vh; }
  .quote-stage { top: 69vh; }
}
.plain .writers-ring { height: 380px !important; margin-top: 90px !important; }
.plain .writers-top { margin-bottom: 20px; }
.plain .end-row { margin-top: 110px !important; padding-bottom: 40px; }

/* The simple view: the app waits for a click (the picture of it shows until then) */
.demo-start { display: none; }
.plain .demo-start:not([hidden]) { display: grid; place-items: center; position: absolute; inset: 0; z-index: 3; border: 0; cursor: pointer; background: rgba(8, 10, 13, 0.5); color: #fff; font: 600 clamp(18px, 1.7vw, 24px) var(--display); letter-spacing: 0.01em; }
.plain .demo-start:hover { background: rgba(8, 10, 13, 0.38); }
@media (max-width: 900px) { .plain .demo-start { display: none !important; } }
@media (min-width: 901px) { .plain .beta-step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; } }
.plain .beta-faces + *, .plain .beta-faces span { white-space: nowrap; }
.plain .quote-stage { margin-top: 140px !important; }

/* The Home caption wraps by width, not by a forced break: the last part of the sentence stays together, so it breaks after "who" */
.home-thanks small { display: block; max-width: 320px; margin: 8px auto 0; }
.home-thanks .nw { white-space: nowrap; }

/* phones: the sixty writers, without the little pad (the cards of Our writers carry the quotes), and the faces wrap */
@media (max-width: 900px) {
  .beta-faces { flex-wrap: wrap; width: auto; max-width: 100%; row-gap: 8px; }
  .beta-faces .more { flex: 1 0 100%; margin: 6px 0 0; flex-direction: row; }
  .beta-faces .more b { font-size: 16px; }
  .beta-faces img:nth-of-type(n+9) { display: none; }
  .beta-text .big { font-size: 17px; }
  .beta-stats b { font-size: 28px; } .beta-stats span { font-size: 14px; }
}

/* wider phones and small tablets (a phone turned sideways, a narrow window): use the room, not the phone's small sizes */
@media (min-width: 561px) and (max-width: 900px) {
  .beta-text { max-width: 640px; }
  .beta-text h2 { font-size: clamp(30px, 5.4vw, 40px); }
  .beta-text .big { font-size: clamp(19px, 2.8vw, 22px); max-width: none; }
  .beta-stats b { font-size: 34px; } .beta-stats span { font-size: 16px; }
  .beta-faces img { width: 52px; height: 52px; margin-left: -13px; }
  .beta-faces .more b { font-size: 18px; }
  .writers-top { top: 80px; }
  .writers-top h2 { font-size: 36px; } .writers-top .intro { font-size: 20px; }
  .writers-ring { top: 190px; height: 300px; }
  .quote-stage { top: 520px; bottom: 90px; gap: 14px; }
  .say p { font-size: 22px; line-height: 1.5; }
  .say footer { font-size: 17px; }
}
@media (max-width: 900px) { .say p { font-size: 17px; } }

/* phones: the app's picture is too small to read at this width, so Finish your draft is the list of features and what each one does, larger */
@media (max-width: 900px) {
  #features .demo, #features .feat-head { display: none; }
  #features .flist { gap: 10px; }
  #features .flist .fl-name { font-size: 18px; padding: 10px 16px; }
  #features .fl-now { top: calc(var(--demo-top, 230px) + 8px); }
  #features .fl-now .fl-line { font-size: 22px; line-height: 1.45; color: var(--text); }
  #features .fl-now .fl-subs button { font-size: 16px; padding: 8px 14px; }
}
@media (max-width: 900px) { .faq { bottom: 92px; } }
@media (max-width: 900px) { .end-row { bottom: 88px; } .price-wrap { bottom: 130px; } }
@media (min-width: 561px) and (max-width: 900px) {
  .writers-top { top: 84px; }
  .writers-top h2 { margin: 0 0 14px; line-height: 1.15; }
  .writers-top .intro { line-height: 1.45; max-width: 34em; }
  .writers-ring { top: 238px; height: 290px; }
  .quote-stage { top: 556px; }
}

/* phones (always the simple view): the taped photo sits under the words, never over them */
@media (max-width: 900px) {
  .plain .mel-step .mel-photo, .plain .mel-step:not(.non-step) .mel-photo, .plain #why .mel-step:not(.non-step) .mel-photo {
    position: relative !important; top: auto !important; right: auto !important; left: auto !important; transform: rotate(2deg) !important;
    width: min(240px, 72%) !important; margin: 22px auto 6px !important;
  }
  .plain .mel-step .mel-photo.portrait { width: min(200px, 62%) !important; }
}

/* phones: Our writers is a row of cards to swipe, each with its quote, in place of the big ring of cards */
.phone .w-row { display: block !important; margin-top: 18px; }
.phone .writers-ring, .phone .quote-stage { display: none !important; }
.phone .w-list { grid-auto-columns: calc(100vw - 56px); gap: 12px; padding-bottom: 10px; scroll-padding-left: 2px; }
.phone .w-card { padding: 20px 20px 18px; }
.phone .w-card blockquote { font-size: 19px; }
.phone .w-arrows { display: none; }
.phone .w-list { align-items: start; }

/* narrow desktop windows (and tall ones): the ring of writers keeps to a sensible size instead of growing with the window's height */
@media (min-width: 901px) and (max-width: 1180px) {
  .writers-top { top: 9vh; }
  .writers-ring { top: calc(9vh + 130px); height: 280px; }
  .quote-stage { top: calc(9vh + 130px + 280px + 36px); }
}
/* phones: "On your phone? Send it to your computer" sits above the price card, with room above it */
@media (max-width: 900px) {
  .price-wrap { padding-top: 22px; bottom: 100px; }
  .price-wrap .send { margin: 0 auto 22px; font-size: 15px; }
  .price-wrap .send b { font-size: 15px; }
}

/* phones: the compass of stars first, then the words; "Take the tour" is left out (the tour is the part that is not on a phone) */
.phone #home { display: flex !important; flex-direction: column; }
.phone #home .hero-visual { order: -1; }
.phone #home .home-thanks { order: -1; }
.phone #home .hero { order: 0; }
.phone #home .still-hero { order: 1; }
@media (max-width: 900px) { .cta [data-go="features"] { display: none; } }

/* phones: the taped photos hang from the same place, larger */
@media (max-width: 900px) {
  .plain .mel-step .mel-photo, .plain .mel-step:not(.non-step) .mel-photo, .plain #why .mel-step:not(.non-step) .mel-photo { width: min(340px, 94%) !important; }
  .plain .mel-step .mel-photo.portrait { width: min(300px, 86%) !important; }
}

/* the plus and minus of the questions sit on the middle of the question's first line, however long it is */
summary::after { top: 50%; transform: translateY(-50%); line-height: 1; font-size: 28px; }

/* the simple view on a narrow screen (a phone, a tablet standing up, a narrow window): tighter between sections, room under the header,
   and the taped photos hang off the end of the speech bubbles instead of sitting inside them */
@media (max-width: 900px) {
  .plain .ch { padding-top: 40px; padding-bottom: 28px; }
  .plain .ch > * + *, .plain .step + .step { margin-top: 22px; }
  .plain .writers-top { padding-top: 34px; margin-bottom: 18px; }
  .plain .writers-top h2 { margin-bottom: 12px; }
  .plain .writers-top .intro { line-height: 1.5; }
  .plain .mel-step { --pw: min(340px, calc(100vw - 90px)); margin-bottom: 0; }
  .plain .mel-step .mel-bubble { padding-bottom: 20px; padding-right: 32px; }
  .plain .mel-step .mel-photo, .plain .mel-step:not(.non-step) .mel-photo, .plain #why .mel-step:not(.non-step) .mel-photo {
    position: relative !important; top: auto !important; right: auto !important; left: auto !important; transform: rotate(2deg) !important;
    width: var(--pw) !important; margin: 20px auto calc(var(--pw) * -0.75 + 14px) !important;
  }
  .plain .mel-step .mel-photo.portrait { width: calc(var(--pw) * 0.85) !important; margin-bottom: calc(var(--pw) * -0.85 + 14px) !important; }
}

/* the picture of the app that stands in until the live one is ready is the dark look too (it was light, and the app turned dark a second later) */
.demo-screen { background: #14181c; }
.demo-shot { filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.85); }

/* the simple view on a narrow screen: one even rhythm: 24px between the parts of a chapter, 68px between chapters */
@media (max-width: 900px) {
  .plain .ch > * + *, .plain .step + .step { margin-top: 24px !important; }
  .plain .end-row { margin-top: 36px !important; padding-bottom: 36px; }
  .plain .story-panel > :last-child, .plain .res-panel > :last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; }
  .plain .anchor { margin-top: 24px !important; }
}
@media (max-width: 900px) { .plain #story { padding-bottom: 0; } }
@media (max-width: 900px) { .plain #why .step { padding: 0 !important; } }

/* ---- phones: the sound mixer, and the writers' cards you swipe across ---- */
.mixer { display: none; }
.plain .mixer { display: block; margin: 20px auto 0; max-width: 560px; }
.plain .insp-stage, .plain .insp-try, .plain .page-anchor, .plain .quote-anchor { display: none !important; }
.mx-tape { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--base-2); }
.mx-tape img { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; flex: none; }
.mx-tape-text { flex: 1; min-width: 0; }
.mx-tape-text b { display: block; font: 600 20px var(--display); color: var(--text); }
.mx-tape-text small { display: block; margin-top: 3px; font-size: 15px; color: var(--text-3); }
.mx-play { flex: none; min-width: 84px; padding: 12px 18px; border-radius: 10px; border: 0; background: var(--accent-deep, #3b68ad); color: #fff; font: 700 17px var(--display); cursor: pointer; }
.mx-vol { display: flex; align-items: center; gap: 14px; margin-top: 14px; font: 500 15px var(--display); color: var(--text-2); }
.mx-vol span { flex: none; }
.mixer input[type="range"] { flex: 1; min-width: 0; width: 100%; height: 36px; accent-color: var(--accent-hi); background: transparent; }
.mx-head { margin: 26px 0 8px; font: 600 13px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.mx-list { list-style: none; margin: 0; padding: 0; }
.mx-list li { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px dashed var(--line); }
.mx-key { flex: none; display: flex; align-items: center; gap: 10px; width: 140px; padding: 10px 12px; border-radius: 10px; border: 1px solid #33405a; background: #1f242c; color: #9db6e0; font: 600 16px var(--display); cursor: pointer; }
.mx-key[aria-pressed="true"] { background: #24324b; color: #fff; border-color: var(--accent); }

.w-hint { margin: 2px 0 0; text-align: center; font: 600 15px var(--display); letter-spacing: 0.04em; color: var(--accent-hi); }
.w-hint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .w-hint span { animation: none; } }
.phone .w-list { grid-auto-columns: 78vw; gap: 12px; padding: 4px 20px 12px; scroll-padding-inline: 20px; align-items: stretch; scroll-snap-type: x mandatory; -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
.phone .w-card { scroll-snap-align: start; justify-content: space-between; min-height: 230px; }
.phone .w-card blockquote { flex: 1; display: flex; align-items: center; font-size: 19px; }
.phone .w-card figcaption { align-items: center; }
.phone .w-row { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }

/* the simple view: the two quotes are flat cards (Nikki's notepad, Kara's lined page), not 3D pages that warp as the page scrolls */
.plain .beta-quote { display: block; }
.plain #yours blockquote.fallback { display: block; margin: 24px 0 0; padding: 70px 36px 34px 64px; border-radius: 6px 6px 14px 14px; font-size: 21px; line-height: 34px; font-style: italic; color: var(--text); background: repeating-linear-gradient(180deg, transparent 0 33px, var(--rule) 33px 34px) 0 2px, var(--base-2); border: 1px solid var(--line-strong); }
.plain #yours blockquote.fallback footer { font: normal 400 18px var(--body); color: var(--text-3); }
@media (max-width: 900px) { .plain #yours blockquote.fallback { padding: 56px 22px 26px 40px; font-size: 19px; line-height: 31px; } }
.plain .beta-quote { padding-bottom: calc(var(--u) * 27); }
.plain .beta-faces { flex-wrap: wrap; width: auto; max-width: 100%; row-gap: 8px; }
.plain .beta-faces .more { flex: 1 0 100%; margin: 6px 0 0; flex-direction: row; }
.plain .beta-faces .more b { font-size: 17px; }

/* a phone: no Nikki or Kara cards (their words are in Our writers; the notepads only look right big) */
.phone .beta-quote, .phone #yours blockquote.fallback, .phone .quote-anchor, .phone .page-anchor { display: none !important; }

.view-switch { display: none !important; }
/* the simple page on a bigger window (a link with ?view=simple, or a computer without 3D): a ring of writers that is not huge */
@media (min-width: 901px) { .plain .writers-ring { height: 250px !important; } }

/* Compare: Lost Writer beside Scrivener and Google Docs (a text chapter, like the questions) */
.cmp-scroll { margin-top: 22px; overflow: auto; min-height: 0; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.35; }
.cmp-table th, .cmp-table td { text-align: left; padding: 9px 14px 9px 4px; border-top: 1px dashed var(--line-strong); vertical-align: top; color: var(--text-2); }
.cmp-table thead th { border-top: 0; font: 500 clamp(18px, 1.4vw, 22px) var(--display); color: var(--text); padding-bottom: 8px; }
.cmp-table thead th:nth-child(2), .cmp-table td:nth-child(2) { background: rgba(86, 134, 206, 0.12); padding-left: 14px; color: var(--text); }
.cmp-table tbody th { font-weight: 500; color: var(--text); width: 25%; }
.cmp-table b { font-weight: 600; color: var(--accent-hi); }
.cmp .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cmp-line { margin-top: 18px; font-size: 19px; color: var(--text-2); }
.cmp-line a { color: var(--accent-hi); }
.cmp-table, .cmp-line { text-shadow: 0 1px 14px rgba(8, 10, 13, 0.9), 0 0 3px rgba(8, 10, 13, 0.6); }
@media (max-width: 900px) { .cmp-table { font-size: 14px; } .cmp-table th, .cmp-table td { padding: 6px 8px 6px 2px; } .cmp-table tbody th { width: 28%; } .cmp-line { font-size: 15px; } }
.cmp { top: 10vh; }
.cmp-scroll { margin-top: 12px; }
.cmp-table th, .cmp-table td { padding-top: 6px; padding-bottom: 6px; }
.cmp-line { margin-top: 12px; }

/* Compare, fitted: roomier columns, and it shrinks with the window's height so nothing is cut off */
.cmp-table { font-size: clamp(14px, 2.1vh, 17px); }
.cmp-table th, .cmp-table td { padding: clamp(3px, 0.8vh, 7px) 24px clamp(3px, 0.8vh, 7px) 24px; }
.cmp-table thead th:first-child, .cmp-table tbody th { padding-left: 4px; }
.cmp-table thead th:nth-child(2), .cmp-table td:nth-child(2) { padding-left: 24px; padding-right: 24px; }
@media (max-width: 900px) { .cmp-table { font-size: 13.5px; } .cmp-table th, .cmp-table td { padding: 6px 10px; } .cmp-table thead th:first-child, .cmp-table tbody th { padding-left: 2px; } .cmp-table thead th:nth-child(2), .cmp-table td:nth-child(2) { padding-left: 10px; padding-right: 10px; } }
/* Compare: centred between the top bar and the "Next" cue instead of hugging the top (desktop) */
@media (min-width: 901px) {
  .cmp { top: 64px; bottom: 84px; }
  .cmp > :first-child { margin-top: auto; }
  .cmp-scroll { margin-bottom: auto; flex: 0 1 auto; }
}

/* every button sits on a rounded bottom edge: blue on a deeper blue, gray on a darker gray, so side by side they are the same height */
.btn, .btn-small, .mx-play { box-shadow: 0 3px 0 var(--accent-deep); }
.btn-ghost { background: #2b3039; color: #c3cad5; border-color: transparent; box-shadow: 0 3px 0 #3a414d; }   /* the gray of the Book Nook popup's Dismiss */
.btn-ghost:hover { background: #20252b; color: #fff; border-color: transparent; }
.btn:active, .btn-small:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-deep); }
.btn-ghost:active { box-shadow: 0 1px 0 #3a414d; }

/* small blue buttons use the deeper blue so white text passes contrast */
.btn-small:not(.btn-ghost) { background: var(--accent-deep); box-shadow: 0 3px 0 #2f4573; } .btn-small:not(.btn-ghost):hover { background: #324876; } .btn-small:not(.btn-ghost):active { box-shadow: 0 1px 0 #2f4573; }

/* ---------- buttons: the one style shared with lostislandpress.com ----------
   The brand blue #5686ce at rest, the deeper #436ba2 on hover, #3a5d90 pressed (sinks 1px); no underline, no lift, no glow.
   White words on #5686ce are 3.7:1: fine for large bold text, which the 19-21px labels are. The small buttons (the top bar's Try it free, the price
   cards') keep small labels, so they rest at the deeper blue and darken further. The gray button is the same blue turned down. */
.btn { background: #5686ce; color: #fff; border-color: transparent; box-shadow: none; transform: none; transition: background-color .18s ease, color .15s ease, transform .15s ease; }
.btn:hover { background: #436ba2; color: #fff; box-shadow: none; transform: none; }
.btn:active { background: #3a5d90; box-shadow: none; transform: translateY(1px); }
.btn-small:not(.btn-ghost), .price-os .btn:not(.btn-ghost), .price-card .btn-wide:not(.btn-ghost) { background: #436ba2; box-shadow: none; }
.btn-small:not(.btn-ghost):hover, .price-os .btn:not(.btn-ghost):hover, .price-card .btn-wide:not(.btn-ghost):hover { background: #3a5d90; box-shadow: none; }
.btn-small:not(.btn-ghost):active, .price-os .btn:not(.btn-ghost):active, .price-card .btn-wide:not(.btn-ghost):active { background: #33527f; box-shadow: none; }
.btn-ghost { background: rgba(86,134,206,.22); color: #cfe0fb; border-color: transparent; box-shadow: none; transform: none; }
.btn-ghost:hover { background: rgba(86,134,206,.12); color: #fff; border-color: transparent; box-shadow: none; transform: none; }
.btn-ghost:active { background: rgba(86,134,206,.08); color: #fff; box-shadow: none; transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn-ghost { transition: none; } }
