/* ==========================================================================
   Crease — home page. Loads after base.css and player.css.
   Sections: hero · features · listen · social · private · plans · books · cta
   Inside phones everything is sized in em, so mockups scale with --phone-w.
   ========================================================================== */

mark {
  background: var(--olive-soft); color: inherit;
  padding: 0.06em 0.14em; border-radius: 0.2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- 1. Hero ---------- */
.hero { padding: clamp(36px, 5vw, 72px) 0 clamp(72px, 9vw, 128px); }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy .display { margin-top: 0; max-width: 13ch; font-size: clamp(44px, 6.2vw, 84px); }
.hero-copy .lead { margin-top: 14px; text-wrap: balance; }
.hero-form { width: 100%; margin-top: 24px; display: flex; flex-direction: column; align-items: center; }
.hero-status { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Store badges: official Apple and Google artwork, never altered. Beta: a "Coming soon" label sits
   above them and they are not links. Live: they link to the stores from config. */
.store-wrap { margin-top: 18px; display: grid; justify-items: center; gap: 10px; }
.store-soon { font-size: 13px; font-weight: 600; color: var(--muted); }
.night .store-soon { color: var(--night-muted); }
.store-row { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.store-btn { display: block; line-height: 0; border-radius: 8px; transition: transform 0.2s var(--ease); }
.store-btn img { height: 44px; width: auto; }
a.store-btn[href]:hover { transform: translateY(-1px); }
.store-btn.is-soon { cursor: default; }
.hero-status .strong { font-weight: 600; }

/* Drifting rows of covers with the app on top */
.stage {
  --cw: clamp(92px, 11vw, 148px);
  --gap: clamp(12px, 1.6vw, 20px);
  position: relative; display: grid; place-items: center;
  margin-top: clamp(8px, 1.6vw, 20px);
}
.stage > * { grid-area: 1 / 1; }

.marquee {
  width: 100%; overflow: hidden; display: grid; gap: var(--gap);
  padding-block: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.marquee-row {
  display: flex; width: max-content;
  animation: drift var(--dur, 80s) linear var(--start, 0s) infinite;
  will-change: transform;
}
.marquee-row.is-rev { animation-direction: reverse; }
.marquee:hover .marquee-row, .stage.is-off .marquee-row { animation-play-state: paused; }
/* With JS the rows are moved by home.js and can be dragged. */
.marquee.is-js .marquee-row { animation: none; will-change: transform; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.marquee.is-js.is-grabbing .marquee-row { cursor: grabbing; }
.marquee-set { display: flex; gap: var(--gap); padding: 0 var(--gap) 0 0; margin: 0; list-style: none; flex: none; }
.marquee-set li { width: var(--cw); flex: none; }
@keyframes drift { to { transform: translate3d(-50%, 0, 0); } }

.hero-phone {
  --phone-w: clamp(220px, 22vw, 290px);
  position: relative; z-index: 2;
  animation: rise-phone 1.2s var(--ease) 0.25s both;
}
@keyframes rise-phone { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  }
}

/* ---------- App screens (inside .phone-screen) ---------- */
.scr {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: 3.7em 1.4em 0; background: var(--paper); color: var(--ink); line-height: 1.3;
}
.scr svg { flex: none; }
.scr .cover { border-radius: 0.3em; box-shadow: 0 1px 2px rgb(0 0 0 / 0.18), 0 0.5em 1em -0.4em rgb(0 0 0 / 0.38); }

.st {
  position: absolute; top: 0.72em; left: 0; right: 0; height: 1.79em; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; padding: 0 2.1em 0 2.3em;
  font-size: 0.92em; font-weight: 650; letter-spacing: -0.01em;
}
.st svg { width: 3.4em; height: auto; }

.app-h { display: flex; align-items: center; justify-content: space-between; margin: 0.2em 0 1.1em; }
.app-title { font-family: var(--font-book); font-size: 2.35em; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.app-plus { width: 2.1em; height: 2.1em; padding: 0.5em; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.app-label { margin: 0 0 0.6em; font-size: 0.92em; font-weight: 650; }

.bar { display: block; height: 0.34em; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--olive); }

/* Library */
.resume {
  display: flex; align-items: center; gap: 1em; margin-bottom: 1.5em; padding: 0.9em;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1.2em; box-shadow: var(--shadow-sm);
}
.resume .cover { width: 3.9em; flex: none; }
.resume-body { display: grid; gap: 0.25em; min-width: 0; flex: 1; }
.resume-title { font-size: 1.02em; font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; }
.resume-meta { font-size: 0.82em; color: var(--muted); }
.resume .bar { margin-top: 0.45em; }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85em; }
.tabs {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: space-around; padding: 0.85em 0.6em 2em;
  background: rgb(244 241 234 / 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.tabs::after {
  content: ""; position: absolute; left: 50%; bottom: 0.65em; transform: translateX(-50%);
  width: 34%; height: 0.36em; border-radius: 99px; background: var(--ink);
}
.tab { display: grid; justify-items: center; gap: 0.3em; font-size: 0.74em; font-weight: 600; color: var(--muted); }
.tab svg { width: 2em; height: 2em; }
.tab.is-on { color: var(--ink); }

/* Reader / speed read shared top bar */
.read-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 0.2em 0 1.4em; color: var(--muted); }
.read-top svg { width: 1.5em; height: 1.5em; }
.read-chap { font-size: 0.85em; font-weight: 650; color: var(--ink); }
.read-aa { justify-self: end; font-size: 0.95em; font-weight: 650; color: var(--ink-2); }

/* Screen: reader */
.page { font-family: var(--font-book); font-size: 1.22em; line-height: 1.52; color: #26251f; }
.page p + p { margin-top: 0.7em; }
.read-foot { position: absolute; left: 1.4em; right: 1.4em; bottom: 1.9em; display: grid; gap: 0.7em; }
.read-pg { display: flex; justify-content: space-between; font-size: 0.8em; color: var(--muted); }

/* Screen: speed read */
.rsvp-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 2em; }
.rsvp-word {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: baseline;
  padding: 0.55em 0; border-block: 1px solid var(--line-2);
  font-family: var(--font-book); font-size: 3.2em; font-weight: 500; line-height: 1; letter-spacing: -0.01em;
}
.rsvp-word::before, .rsvp-word::after { content: ""; position: absolute; left: 50%; width: 1px; height: 0.4em; background: var(--olive); }
.rsvp-word::before { top: 0; }
.rsvp-word::after { bottom: 0; }
.rsvp-l { text-align: right; }
.rsvp-word.is-long { font-size: 2.5em; }
.rsvp-l, .rsvp-p, .rsvp-r { white-space: pre; }
.rsvp-p { color: var(--olive); }
.rsvp-meta { margin-top: 1.2em; text-align: center; font-size: 0.8em; color: var(--muted); }
.rsvp-ctl { padding-bottom: 2.9em; }
.wpm {
  display: flex; align-items: center; justify-content: center; gap: 0.2em; width: max-content; margin: 0 auto; padding: 0.3em;
  background: var(--surface); border: 1px solid var(--line); border-radius: 99px;
}
.wpm-btn { display: grid; place-items: center; width: 2.4em; height: 2.4em; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; transition: background-color 0.2s; }
.wpm-btn:hover { background: var(--paper-2); }
.wpm-btn:active { transform: scale(0.94); }
.wpm-btn svg { width: 1.2em; height: 1.2em; }
.wpm-val { padding: 0 0.7em; font-size: 0.95em; font-weight: 650; font-variant-numeric: tabular-nums; }
.play { display: grid; place-items: center; width: 4.6em; height: 4.6em; margin: 1.4em auto 0; padding: 0; border: 0; border-radius: 50%; background: var(--olive); color: #fff; cursor: pointer; transition: transform 0.2s var(--ease), background-color 0.2s; }
.play:hover { background: var(--olive-2); }
.play:active { transform: scale(0.95); }
.play .i-play, .scr-rsvp.is-paused .play .i-pause { display: none; }
.scr-rsvp.is-paused .play .i-play { display: block; }
.play svg { width: 1.9em; height: 1.9em; }

/* Screen: notes */
.seg { display: flex; margin-bottom: 1em; padding: 0.25em; border-radius: 99px; background: var(--paper-2); font-size: 0.86em; }
.seg span { flex: 1; padding: 0.55em 0; border-radius: 99px; text-align: center; font-weight: 600; color: var(--muted); }
.seg .is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.notes { display: grid; gap: 0.9em; }
.note { padding: 1.1em 1.1em 1em; background: var(--surface); border: 1px solid var(--line); border-radius: 1.1em; }
.note-q { font-family: var(--font-book); font-size: 1.2em; line-height: 1.45; }
.note-m { display: flex; justify-content: space-between; gap: 0.6em; margin-top: 0.85em; font-size: 0.8em; color: var(--muted); }
.note-m span:first-child { font-weight: 650; color: var(--ink-2); }

/* Screen: import */
.imp-list { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 1.1em; overflow: hidden; }
.imp-row { display: flex; align-items: center; gap: 0.85em; padding: 0.85em 1em; }
.imp-row + .imp-row { border-top: 1px solid var(--line); }
.imp-ico { width: 2.3em; height: 2.3em; flex: none; display: grid; place-items: center; border-radius: 0.7em; background: var(--paper-2); color: var(--ink); }
.imp-ico svg { width: 1.3em; height: 1.3em; }
.imp-ico-txt { font-weight: 700; font-size: 1.05em; }
.imp-t { display: grid; gap: 0.15em; min-width: 0; }
.imp-name { font-size: 0.98em; font-weight: 650; letter-spacing: -0.01em; }
.imp-sub { font-size: 0.8em; color: var(--muted); }
.imp-card { display: flex; align-items: center; gap: 1em; margin-top: 1.1em; padding: 0.9em 1em; background: var(--surface); border: 1px solid var(--line); border-radius: 1.1em; box-shadow: var(--shadow-sm); }
.imp-covers { display: flex; flex: none; }
.imp-covers .cover { width: 2.2em; }
.imp-covers .cover + .cover { margin-left: -0.9em; }
.imp-card-t { display: grid; gap: 0.55em; flex: 1; min-width: 0; }
.imp-label { margin-top: 1.4em; }
.scr-import > *, .scr-theme > * { flex: none; }

/* Screen: themes. Palettes mirror the app (src/theme/tokens.ts). JS cycles data-t. */
.scr-theme {
  --t-bg: #f4f1ea; --t-ink: #26251f; --t-muted: #6b6b63; --t-surface: #fbfaf6; --t-line: #e1dcd1; --t-accent: #526348;
  background: var(--t-bg); color: var(--t-ink);
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}
.scr-theme[data-t="forest"] { --t-bg: #20271f; --t-ink: #f4f1e9; --t-muted: #c0c9b6; --t-surface: #2b3427; --t-line: #495342; --t-accent: #a7b994; }
.scr-theme[data-t="dark"] { --t-bg: #111111; --t-ink: #ffffff; --t-muted: #a7a7a7; --t-surface: #242424; --t-line: #3a3a3a; --t-accent: #f2f1ed; }
.scr-theme[data-t="eink"] { --t-bg: #f4f3ed; --t-ink: #090909; --t-muted: #45443f; --t-surface: #faf9f4; --t-line: #282825; --t-accent: #090909; transition: none; }
.scr-theme .read-top, .scr-theme .read-aa { color: var(--t-muted); }
.scr-theme .read-chap { color: var(--t-ink); }
.scr-theme .page { color: var(--t-ink); transition: color 0.6s var(--ease); }
.scr-theme[data-t="eink"] .page { transition: none; }
.th-sheet {
  position: absolute; left: 0.8em; right: 0.8em; bottom: 1.6em; padding: 1em 1em 1.1em;
  background: var(--t-surface); border: 1px solid var(--t-line); border-radius: 1.3em;
  box-shadow: 0 0.8em 2em -0.8em rgb(0 0 0 / 0.35);
  transition: background-color 0.6s var(--ease), border-color 0.6s var(--ease);
}
.scr-theme[data-t="eink"] .th-sheet { box-shadow: none; transition: none; }
.th-h { margin: 0 0 0.75em; font-size: 0.86em; font-weight: 650; }
.th-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4em; }
.th-sw { display: grid; justify-items: center; gap: 0.4em; padding: 0; border: 0; background: none; font: inherit; font-size: 0.72em; font-weight: 600; color: var(--t-muted); cursor: pointer; }
.th-sw:hover .th-dot { transform: scale(1.06); }
.th-dot { transition: box-shadow 0.3s, transform 0.2s var(--ease); }
.th-dot { width: 2.6em; height: 2.6em; border-radius: 50%; border: 1px solid rgb(0 0 0 / 0.12); box-shadow: 0 0 0 0.18em transparent; transition: box-shadow 0.3s; }
.th-sw[data-t="crease"] .th-dot { background: #f4f1ea; }
.th-sw[data-t="forest"] .th-dot { background: #20271f; }
.th-sw[data-t="dark"] .th-dot { background: #111111; }
.th-sw[data-t="eink"] .th-dot { background: #f4f3ed; border: 0.2em solid #090909; }
.th-sw.is-on { color: var(--t-ink); }
.th-sw.is-on .th-dot { box-shadow: 0 0 0 0.18em var(--t-surface), 0 0 0 0.32em var(--t-accent); }
.th-size { display: flex; align-items: center; gap: 0.8em; margin-top: 1em; color: var(--t-ink); font-family: var(--font-book); }
.th-size .bar { flex: 1; background: var(--t-line); }
.th-size .bar-fill { background: var(--t-accent); }
.th-a1 { font-size: 0.8em; }
.th-a2 { font-size: 1.3em; }

/* Screen: goals */
.goal, .streak, .cal { background: var(--surface); border: 1px solid var(--line); border-radius: 1.2em; }
.goal { display: grid; place-items: center; padding: 1.1em; }
.ring { position: relative; width: 8.8em; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num { font-size: 2.7em; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.ring-sub { margin-top: 0.25em; font-size: 0.82em; color: var(--muted); }
.streak { display: flex; align-items: center; gap: 0.9em; margin-top: 0.8em; padding: 0.9em 1.05em; }
.streak-ico { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--olive-soft); color: var(--olive); }
.streak-ico svg { width: 1.4em; height: 1.4em; }
.streak-text { display: grid; line-height: 1.2; }
.streak-num { font-size: 1.35em; font-weight: 700; letter-spacing: -0.02em; }
.streak-sub { font-size: 0.8em; color: var(--muted); }
.cal { margin-top: 0.8em; padding: 0.95em 1em 1em; }
.cal-h { margin-bottom: 0.6em; font-weight: 650; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.2em 0; text-align: center; }
.cal-d { padding-bottom: 0.3em; font-size: 0.7em; font-weight: 600; color: var(--muted); }
.cal-c, .cal-x { place-self: center; width: 88%; aspect-ratio: 1; }
.cal-c { display: grid; place-items: center; border-radius: 50%; font-size: 0.78em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cal-c.is-read { background: var(--olive); color: #fff; font-weight: 600; }
.cal-c.is-today { outline: 0.1em solid var(--ink); outline-offset: 0.1em; }
.cal-c.is-future { color: var(--line-2); }

/* ---------- 2. Features (sticky phone, four steps) ---------- */
.features-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.features-visual {
  position: sticky; top: 15vh; height: 70vh;
  display: flex; align-items: center; justify-content: center;
}
.feature-phone { --phone-w: min(310px, calc((100vh - var(--nav-h) * 2 - 16px) * 0.4615)); }
/* Outgoing screen leaves quickly, the next one settles in just after, so two pages never overlap for long. */
.features-visual .scr { transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s; }
.features-visual .scr:not(.is-on) { opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.985); }
.features-visual .scr.is-on { transition: opacity 0.55s var(--ease) 0.12s, transform 0.55s var(--ease) 0.12s, visibility 0s; }

.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 70vh; display: flex; align-items: center; }
.step-copy { max-width: 440px; }
.step-copy .lead { margin-top: 16px; }
.step-phone { display: none; }
.no-js .step-phone { display: none !important; }
.steps.is-ready .step { opacity: 0.25; transition: opacity 0.5s var(--ease); }
.steps.is-ready .step.is-active { opacity: 1; }

@media (max-width: 899px) {
  .features-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .features-visual { display: none; }
  .steps.is-ready .step { opacity: 1; }
  .step { min-height: 0; display: block; padding-block: 40px 56px; text-align: center; }
  .step-copy { max-width: 28rem; margin-inline: auto; }
  .step-phone { display: block; margin: 36px auto 0; --phone-w: min(260px, 72vw); text-align: left; }
}

/* ---------- 3. Listen ---------- */
.listen .section-head .lead { max-width: 52ch; }
#player { min-height: 560px; }
#player:empty { border: 1px solid var(--night-line); border-radius: var(--radius-lg); }
.facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  margin: 44px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--night-muted);
}
.facts li { display: flex; align-items: center; gap: 22px; }
.facts li + li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.7; }
@media (max-width: 720px) { #player { min-height: 720px; } }

/* ---------- 4. Read together ---------- */
.social-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(48px, 8vw, 128px); align-items: center; }
.social-copy .lead { margin-top: 18px; max-width: 26ch; }
.checks { display: grid; gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--ink-2); }
.check-ico { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--olive-soft); color: var(--olive); }
.check-ico svg { width: 14px; height: 14px; }

.share-card {
  width: 100%; max-width: 520px; justify-self: end;
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.share-book { display: flex; align-items: center; gap: 12px; }
.share-book .cover { width: 34px; flex: none; border-radius: 4px; box-shadow: var(--shadow-sm); }
.share-book-t { display: grid; line-height: 1.25; font-size: 15px; }
.share-passage { margin-top: 20px; font-family: var(--font-book); font-size: clamp(20px, 2vw, 24px); line-height: 1.55; }
.share-msg { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--olive); color: #fff; font-size: 15px; font-weight: 650; }
.share-body { min-width: 0; flex: 1; }
.share-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 6px; font-size: 15px; }
.bubble { padding: 14px 14px 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px 20px 20px 20px; }
.bubble > p { font-size: 16px; line-height: 1.45; }
.vn {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 5px 16px 5px 5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill);
}
.vn-play {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%; background: var(--olive); color: #fff;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.vn-play:hover { transform: scale(1.05); background: var(--ink); }
.vn-play svg { width: 18px; height: 18px; }
.vn-play .i-pause { display: none; }
.vn.is-playing .i-play { display: none; }
.vn.is-playing .i-pause { display: block; }
.vn-wave { flex: 1; min-width: 0; height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.vn-wave span { flex: 1 1 0; min-width: 0; max-width: 4px; height: var(--h, 40%); border-radius: 2px; background: var(--line-2); transition: background-color 0.15s; }
.vn-wave span.is-done { background: var(--olive); }
.vn-time { min-width: 2.4em; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); }
.chips { display: flex; gap: 8px; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.chip svg { width: 14px; height: 14px; }
.chip:first-child svg { color: var(--olive); }

/* ---------- 5. Private by default ---------- */
.private { padding-block: calc(var(--section) * 0.7); }
.private-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px);
  max-width: 960px; margin: clamp(40px, 5vw, 64px) auto 0; text-align: center;
}
.private-item svg { margin: 0 auto 16px; color: var(--ink); }
.private-item .small { margin-top: 6px; }

/* ---------- 6. Plans teaser ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 960px; margin-inline: auto; }
.plan { display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.plan.is-featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; }
.plan-badge { padding: 4px 10px; border-radius: var(--pill); background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; }
.plan-price { margin: 14px 0 6px; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.plan-per { margin-left: 2px; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan-note { margin-bottom: 20px; }
ul.plan-list { list-style: none; padding: 20px 0 0; margin: 0 0 26px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.plan-list svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--olive); }
.plan-cta { margin-top: auto; }
.plans-foot { margin-top: 32px; }
.plans-foot .link { margin-left: 6px; }

/* ---------- 7. Books teaser ---------- */
.books-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.books-copy .lead { margin-top: 18px; }
.books-copy .link { margin-top: 28px; }
.cluster {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px);
  width: 100%; max-width: 560px; justify-self: end; margin: 0; padding: 0 0 clamp(18px, 2.4vw, 32px); list-style: none;
}
.cluster li:nth-child(even) { transform: translateY(clamp(18px, 2.4vw, 32px)); }
.cluster a { display: block; border-radius: 6px; }
.cluster .cover { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.cluster a:hover .cover, .cluster a:focus-visible .cover {
  transform: translateY(-8px);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.14), 0 22px 36px -14px rgb(0 0 0 / 0.45);
}

/* ---------- 8. Final call to action ---------- */
.cta .h1 { max-width: 14ch; margin-inline: auto; }
.cta-form { display: flex; flex-direction: column; align-items: center; margin-top: 36px; }
.cta .beta-note { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .social-grid, .books-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .social-copy, .books-copy { text-align: center; }
  .social-copy .lead, .books-copy .lead { margin-inline: auto; }
  .checks { width: fit-content; margin-inline: auto; justify-items: start; }
  .share-card { justify-self: center; }
  .cluster { justify-self: center; }
  .private-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
}
@media (max-width: 520px) {
  .share-msg { gap: 10px; }
  .bubble { padding: 12px 12px 12px 14px; }
  .vn { gap: 8px; padding-right: 12px; }
  .plan { padding: 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-row { animation: none; transform: translateX(var(--rest, -6%)); }
  .marquee-row:nth-child(2) { --rest: -16%; }
  .marquee-row:nth-child(3) { --rest: -10%; }
  .hero-phone { animation: none; }
  .features-visual .scr { transition: none; }
}
