/* ============================================================================
   Plot45 — Landing · "The Suite Edition" (rebuild, Marking era)
   The story: the whole practical cycle — Sketch → Collect → Plot → Write →
   Mark. Broadsheet DNA: achromatic ink on cool paper, hairlines for depth,
   3px corners, system grotesk, the yellow 45 as the one brand spark.
   Zero dependencies; all motion reduced-motion-aware + fail-open.
   ========================================================================== */

:root {
  --bg: #fafbfb;
  --bg-subtle: #eef0f1;
  --panel: #ffffff;
  --text: #15171a;
  --muted: #5b6166;
  --faint: #8b9197;
  --line: rgba(20, 24, 28, 0.12);
  --line-strong: #d4d8da;
  --accent: #15171a;
  --brand-45: #ffdb00;
  --brand-45-ink: #1a1a1a;
  --ink: #101216;            /* the schools band — the app's spine ink */
  --ink-text: #eef0f2;
  --ink-muted: #9ba2a8;
  --radius: 3px;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --maxw: 1150px;
  --gutter: clamp(20px, 5vw, 60px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #131417;
  --bg-subtle: #191c20;
  --panel: #1b1e22;
  --text: #eef0f2;
  --muted: #9ba2a8;
  --faint: #6b7178;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #eceef0;
  --ink: #0c0e11;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ── header ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: 62px; display: flex; align-items: center; gap: 22px;
}
.logo { display: inline-flex; align-items: baseline; text-decoration: none; margin-right: auto; }
.logo img { display: block; height: 30px; width: auto; }
.logo img.logo__dark { display: none; }
[data-theme="dark"] .logo img.logo__light { display: none; }
[data-theme="dark"] .logo img.logo__dark { display: block; }
.nav__links { display: flex; gap: 18px; align-items: center; }
.nav__link {
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  text-decoration: none; letter-spacing: 0.01em;
}
.nav__link:hover { color: var(--text); }
.nav__cta {
  font-size: 13.5px; font-weight: 650; text-decoration: none;
  padding: 8px 16px; border-radius: var(--radius);
  background: var(--accent); color: var(--bg); white-space: nowrap;
}
.nav__cta:hover { opacity: 0.92; }
.theme-btn {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--muted); cursor: pointer; padding: 0;
}
.theme-btn:hover { color: var(--text); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn__moon { display: none; }
[data-theme="dark"] .theme-btn__sun { display: none; }
[data-theme="dark"] .theme-btn__moon { display: block; }
@media (max-width: 860px) {
  .nav__links .nav__link--page { display: none; } /* anchors drop; Pricing/Sign in stay */
}
@media (max-width: 560px) {
  .nav__inner { gap: 12px; }
  .nav__link--signin { display: none; } /* the hero + login page still carry it */
}

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { padding: clamp(52px, 9vw, 104px) 0 clamp(30px, 5vw, 56px); text-align: center; }
.eyebrow {
  font-size: 12px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}
.eyebrow em { font-style: normal; background: var(--brand-45); color: var(--brand-45-ink); padding: 1px 6px; border-radius: 2px; }
.hero h1 {
  font-size: clamp(34px, 6.2vw, 62px); font-weight: 750; letter-spacing: -0.025em;
  line-height: 1.06; margin: 0 auto 20px; max-width: 17ch;
}
.hero__dek {
  font-size: clamp(16px, 2vw, 19px); line-height: 1.6; color: var(--muted);
  max-width: 620px; margin: 0 auto 30px;
}
.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 650; font-size: 15px;
  padding: 12px 24px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  color: var(--text); background: var(--panel);
}
.btn--primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn:hover { opacity: 0.92; }
.hero__note { font-size: 13px; color: var(--faint); margin: 0; }

/* ── the cycle strip ─────────────────────────────────────────────────────── */
.cycle {
  list-style: none; margin: clamp(36px, 6vw, 64px) 0 0; padding: 0;
  display: flex; align-items: stretch; justify-content: center; gap: 0;
}
.cycle__step { display: flex; align-items: center; flex: 0 1 auto; }
.cycle__link {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-decoration: none; padding: 14px 18px; border-radius: var(--radius);
}
.cycle__link:hover { background: var(--bg-subtle); }
.cycle__box {
  width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--panel); display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.cycle__box svg { width: 24px; height: 24px; }
.cycle__n { font-size: 10.5px; font-weight: 650; letter-spacing: 0.12em; color: var(--faint); }
.cycle__name { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; margin-top: -5px; }
.cycle__tool { font-size: 11.5px; color: var(--muted); margin-top: -7px; }
.cycle__joint {
  width: clamp(14px, 3.5vw, 44px); height: 1px; background: var(--line-strong);
  flex: none; align-self: flex-start;
  margin-top: 40px; /* link pad 14 + half the 52px box → the icon's midline */
}
@media (max-width: 760px) {
  .cycle { flex-direction: column; align-items: center; }
  .cycle__step { flex-direction: column; }
  .cycle__joint { width: 1px; height: 18px; align-self: center; margin-top: 0; }
}

/* ── chapters ────────────────────────────────────────────────────────────── */
.chapters { border-top: 1px solid var(--line); }
.chapter { padding: clamp(44px, 7vw, 84px) 0; border-bottom: 1px solid var(--line); }
.chapter__grid {
  display: grid; grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(26px, 5vw, 64px); align-items: center;
}
.chapter--flip .chapter__grid { grid-template-columns: 7fr minmax(280px, 5fr); }
.chapter--flip .chapter__copy { order: 2; }
.chapter--flip .chapter__plate { order: 1; }
@media (max-width: 900px) {
  .chapter__grid, .chapter--flip .chapter__grid { grid-template-columns: 1fr; }
  .chapter--flip .chapter__copy { order: 1; }
  .chapter--flip .chapter__plate { order: 2; }
}
.chapter__kicker {
  font-size: 12px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px;
}
.chapter__kicker .n { color: var(--brand-45-ink); background: var(--brand-45); padding: 0 5px; border-radius: 2px; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .chapter__kicker .n { color: #1a1a1a; }
.chapter h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 14px; }
.chapter__copy p { color: var(--muted); line-height: 1.65; margin: 0 0 14px; max-width: 46ch; }
.chapter__points { list-style: none; margin: 0 0 20px; padding: 0; }
.chapter__points li {
  position: relative; padding: 6px 0 6px 22px; color: var(--muted); font-size: 14.5px; line-height: 1.5;
}
.chapter__points li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 9px; height: 5px;
  border-left: 2px solid var(--text); border-bottom: 2px solid var(--text);
  transform: rotate(-45deg);
}
.chapter__more { font-size: 14.5px; font-weight: 650; color: var(--text); text-decoration: none; }
.chapter__more:hover { text-decoration: underline; }
.chapter__free {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted); margin-left: 10px; vertical-align: 2px;
}
.chapter__plate {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden; background: var(--panel);
}
.chapter__plate img { display: block; width: 100%; }
/* each plate carries a light + a dark shot; the theme picks one */
.chapter__plate img.plate--dark { display: none; }
[data-theme="dark"] .chapter__plate img.plate--light { display: none; }
[data-theme="dark"] .chapter__plate img.plate--dark { display: block; }
/* a live, scrollable document embed (the Write chapter) — one iframe serves
   both themes (the embedded page reads the shared plot45.theme itself) */
.chapter__plate--live iframe.plate--live {
  display: block; width: 100%; aspect-ratio: 1500 / 950; border: 0;
}
.plate__hint {
  padding: 8px 14px; font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line-strong); background: var(--panel);
}
.plate__hint a { color: var(--text); }

/* ── the schools band (ink) ──────────────────────────────────────────────── */
.schools { background: var(--ink); color: var(--ink-text); padding: clamp(52px, 8vw, 96px) 0; }
.schools__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .schools__grid { grid-template-columns: 1fr; } }
.schools .eyebrow { color: var(--ink-muted); }
.schools h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 750; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 16px; }
.schools__copy { color: var(--ink-muted); line-height: 1.65; margin: 0 0 24px; max-width: 46ch; }
.schools__list { list-style: none; margin: 0 0 28px; padding: 0; }
.schools__list li { position: relative; padding: 8px 0 8px 26px; color: var(--ink-text); line-height: 1.5; border-top: 1px solid rgba(255, 255, 255, 0.09); font-size: 15px; }
.schools__list li:first-child { border-top: none; }
.schools__list li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 10px; height: 6px;
  border-left: 2px solid var(--brand-45); border-bottom: 2px solid var(--brand-45);
  transform: rotate(-45deg);
}
.schools__price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; }
.schools__amount { font-size: 52px; font-weight: 750; letter-spacing: -0.03em; }
.schools__per { color: var(--ink-muted); font-size: 14px; }
.schools__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--yellow { background: var(--brand-45); color: var(--brand-45-ink); border-color: var(--brand-45); }
.btn--ghost-ink { background: transparent; color: var(--ink-text); border-color: rgba(255, 255, 255, 0.28); }
.schools__student { margin: 18px 0 0; font-size: 13px; color: var(--ink-muted); }
.schools__student a { color: var(--ink-text); }

/* ── the free note ───────────────────────────────────────────────────────── */
.free { padding: clamp(48px, 7vw, 84px) 0; text-align: center; }
.free h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 750; letter-spacing: -0.02em; margin: 0 0 12px; }
.free p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; line-height: 1.65; }

/* ── footer ──────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 30px 0 42px; }
.foot__inner { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.foot__brand { font-weight: 750; letter-spacing: -0.01em; margin-right: auto; }
.foot__brand em { font-style: normal; color: var(--faint); font-weight: 500; font-size: 13px; margin-left: 10px; }
.foot a { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ── reveal (fail-open, reduced-motion-aware — armed only by JS) ─────────── */
.reveal-on .reveal { opacity: 0; transform: translateY(16px); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

/* focus */
a:focus-visible, button:focus-visible {
  outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); border-radius: var(--radius);
}
.schools a:focus-visible { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--brand-45); }
