/* ============================================================
   PreschoolOS — Vision Prototype
   Design system: Paper & Blue · Inter · 8pt spacing
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* color */
  --paper: #ffffff;
  --chaos: #f6f4f0;
  --ink-900: #0b1220;
  --ink-600: #4b5568;
  --ink-400: #8a94a6;
  --mist: #eef1f6;
  --cloud: #f7f9fc;
  --blue-600: #2e5bff;
  --blue-500: #4d74ff;
  --blue-100: #e4ebff;
  --blue-50: #f2f6ff;
  --green-500: #17a56b;
  --green-50: #e9f7f1;
  --amber-500: #d98a00;
  --amber-50: #fdf3e3;
  --violet-500: #7c5cff;
  --violet-50: #f3f0ff;

  /* shape */
  --r-chip: 999px;
  --r-btn: 14px;
  --r-card: 20px;
  --r-frame: 24px;
  --r-phone: 44px;

  /* elevation */
  --shadow-rest: 0 1px 2px rgba(11, 18, 32, .04), 0 12px 32px rgba(11, 18, 32, .06);
  --shadow-lift: 0 2px 4px rgba(11, 18, 32, .05), 0 24px 64px rgba(11, 18, 32, .10);
  --glass-bg: rgba(255, 255, 255, .65);
  --glass-border: rgba(255, 255, 255, .8);

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* responsive spacing (desktop values — media tiers override the variables only) */
  --sec-pad: 160px;
  --edge: 24px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* hard stop for any horizontal overflow — prevents mobile zoom-out-to-fit
     (clip doesn't create a scroll container, so sticky/pinned still work;
     hidden is the fallback for older engines) */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--blue-100); }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Layout primitives ---------- */
.container { max-width: 1140px; margin-inline: auto; padding-inline: var(--edge); }
.center { text-align: center; }
.sec { padding: var(--sec-pad) 0; position: relative; }
.chaos { background: var(--chaos); }

.sec-head { max-width: 720px; margin-bottom: 64px; }
.center.sec-head, .sec-head.center { margin-inline: auto; }

/* ---------- Typography ---------- */
.display {
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lead {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-600);
  margin-top: 20px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 16px;
}
.eyebrow.blue { color: var(--blue-600); }
.eyebrow.vio { color: var(--violet-500); }

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-chip);
  padding: 8px 18px;
}

/* tabular numerals everywhere numbers animate */
.kpi-num, .att-count, .unread, .clock-time, .k, .q-num, .lock-time { font-variant-numeric: tabular-nums; }

/* ---------- Buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 600;
  border-radius: var(--r-btn);
  padding: 14px 24px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 24px rgba(46, 91, 255, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(46, 91, 255, .35); }
.btn-ghost { border: 1px solid var(--mist); color: var(--ink-600); background: #fff; }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-soft { background: var(--blue-50); color: var(--blue-600); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-cta { font-size: 17px; padding: 18px 32px; border-radius: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--r-chip);
  background: var(--cloud);
  border: 1px solid var(--mist);
  color: var(--ink-600);
  transition: all .18s;
}
.chip.active { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-600); font-weight: 600; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: grid; place-items: center;
}
.loader-inner { text-align: center; }
.loader-mark { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.loader-mark span { color: var(--blue-600); }
.loader-mark i { color: var(--blue-600); font-style: normal; }
.loader-bar { width: 180px; height: 2px; background: var(--mist); border-radius: 2px; margin: 24px auto 16px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--blue-600); border-radius: 2px; }
.loader-time { font-size: 13px; color: var(--ink-400); font-variant-numeric: tabular-nums; }

/* ---------- Chrome ---------- */
.chrome {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }
.wordmark { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.wordmark span { color: var(--blue-600); }
.wordmark i { color: var(--blue-600); font-style: normal; }
.clock-chip {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--r-chip);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(11, 18, 32, .06), var(--shadow-rest);
  transition: opacity .6s;
  overflow: hidden;
}
.clock-chip .icon { width: 15px; height: 15px; color: var(--blue-600); }
.clock-chip.faded { opacity: .15; }

/* ---------- Progress ticks ---------- */
.ticks {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 40;
  display: flex; flex-direction: column; gap: 10px;
}
.ticks button {
  width: 16px; height: 2px;
  background: var(--ink-400); opacity: .35;
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.ticks button.active { width: 26px; background: var(--blue-600); opacity: 1; }
.ticks button:hover { opacity: .8; }

/* ============================================================
   1 · HERO
   ============================================================ */
.sec-hero {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 120px 0;
  background:
    radial-gradient(58% 42% at 50% 0%, var(--blue-50) 0%, transparent 70%),
    var(--paper);
}
.hero-inner { text-align: center; }
.hero-badge { margin-bottom: 40px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: inline-block; }
.hero-lead { max-width: 560px; margin-inline: auto; margin-top: 28px; }
.scroll-cue { margin-top: 96px; display: inline-block; color: var(--ink-400); animation: cue 2.2s var(--ease) infinite; }
.scroll-cue .icon { width: 22px; height: 22px; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(10px); opacity: 1; } }

.seed-card {
  position: absolute; right: 8%; bottom: 14%;
  width: 96px; height: 120px;
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(11, 18, 32, .05), var(--shadow-rest);
  display: grid; place-items: center;
  color: var(--blue-600);
  opacity: .45;
  animation: drift 6s ease-in-out infinite;
}
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-8px) rotate(-1deg); } }

/* ============================================================
   2 · MORNING (pinned vignette stage)
   ============================================================ */
.sec-morning { padding-bottom: 0; }
.morning-stage { height: 100vh; display: flex; align-items: center; }
.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px;
  align-items: center;
  width: 100%;
}
.vignettes { position: relative; min-height: 460px; }
.vignette {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(32px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  pointer-events: none;
}
.vignette.active { opacity: 1; transform: none; pointer-events: auto; }
.vg-art {
  background: #fff;
  border: 1px solid #e3ddd1;
  border-radius: var(--r-card);
  padding: 24px;
  animation: itch 3s ease-in-out infinite;
}
@keyframes itch { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(1px, -1px); } 75% { transform: translate(-1px, 1px); } }
.vg-svg { width: 100%; max-height: 320px; }
.vg-cap { margin-top: 24px; font-size: 20px; line-height: 1.5; color: var(--ink-900); }
.vg-cap em { color: var(--ink-600); }

.noti-col {
  background: #fff;
  border: 1px solid #e3ddd1;
  border-radius: var(--r-card);
  overflow: hidden;
  max-height: 520px;
  display: flex; flex-direction: column;
}
.noti-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #efe9dd;
  font-size: 14px; font-weight: 600;
}
.noti-title { color: #4e7a43; }
.unread { color: #b85c4a; font-size: 13px; }
.unread b { font-size: 16px; }
.noti-stack { padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; flex: 1; justify-content: flex-end; }
.noti {
  background: #eef4e7;
  border: 1px solid #dde8d2;
  border-radius: 14px 14px 14px 4px;
  padding: 10px 14px;
  font-size: 13px; line-height: 1.45;
  opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.noti.in { opacity: 1; transform: none; }
.noti b { display: block; font-size: 12px; color: #4e7a43; }
.noti time { float: right; font-size: 11px; color: var(--ink-400); margin-left: 8px; }

/* ---------- Pause interstitials ---------- */
.pause {
  min-height: 100vh;
  display: grid; place-items: center; align-content: center; gap: 24px;
  text-align: center;
}
.pause-line { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -.01em; color: var(--ink-600); }
.ghost-node {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-400);
  border: 1.5px dashed var(--ink-400);
  border-radius: var(--r-chip);
  padding: 10px 20px;
  margin-inline: auto;
}

/* ============================================================
   3 · COST
   ============================================================ */
.sec-cost { overflow: hidden; }
.cost-inner { position: relative; z-index: 2; text-align: center; }
.cost-inner .sec-head { margin-inline: auto; }
.tool-field { position: absolute; inset: 0; z-index: 1; }
.tool-card {
  position: absolute;
  background: #fff;
  border: 1px solid #e3ddd1;
  border-radius: 16px;
  padding: 14px 20px;
  font-size: 13px; font-weight: 600; color: var(--ink-600);
  opacity: .55;
  text-align: left;
}
.tool-card .frag { display: block; font-size: 15px; color: var(--ink-900); margin-top: 2px; font-style: normal; }
.f1 { font-family: "Comic Sans MS", cursive; }
.f2 { font-family: monospace; text-transform: lowercase; }
.f3 { font-style: italic; }
.f4 { font-family: monospace; letter-spacing: .05em; }
.f5 { text-decoration: underline wavy #b85c4a 1px; }
.f6 { font-style: italic; color: var(--ink-600) !important; }
.tf1 { top: 12%; left: 6%; } .tf2 { top: 9%; right: 7%; }
.tf3 { top: 46%; left: 3%; } .tf4 { top: 52%; right: 4%; }
.tf5 { bottom: 14%; left: 12%; } .tf6 { bottom: 18%; right: 12%; }

.beats { margin-top: 32px; display: flex; flex-direction: column; gap: 96px; }
.beat { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.45; font-weight: 500; max-width: 640px; margin-inline: auto; }
.beat .k { color: var(--ink-900); font-weight: 800; }
.beat .fn { color: var(--ink-400); font-size: .6em; vertical-align: super; }
.footnote { margin-top: 64px; font-size: 13px; color: var(--ink-400); }
.cost-outro {
  margin-top: 128px;
  text-align: center;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--ink-600);
  position: relative; z-index: 2;
  padding-bottom: 32px;
}
.cost-outro::after {
  content: "";
  display: block;
  width: 120px; height: 2px;
  margin: 40px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-600), transparent);
}

/* ============================================================
   4 · THE TURN (pinned scrub)
   ============================================================ */
.sec-turn { padding: 0; background: var(--chaos); }
.turn-stage {
  height: 100vh;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.tangle { position: absolute; inset: 0; width: 100%; height: 100%; }
.tangle path { stroke: #d8d2c6; stroke-width: 1.5; }
.t-card {
  position: absolute; left: 50%; top: 50%;
  background: #fff;
  border: 1px solid #e3ddd1;
  border-radius: 16px;
  padding: 16px 26px;
  font-size: 14px; font-weight: 600; color: var(--ink-600);
  box-shadow: var(--shadow-rest);
  will-change: transform, opacity;
}
.core-card {
  position: absolute; left: 50%; top: 50%;
  width: 320px; height: 200px;
  margin: -100px 0 0 -160px;
  border-radius: var(--r-frame);
  background: #fff;
  display: grid; place-items: center;
  color: var(--blue-600);
  box-shadow:
    inset 0 0 0 1px var(--blue-600),
    0 0 60px rgba(46, 91, 255, .25),
    var(--shadow-lift);
  opacity: 0;
  will-change: transform, opacity;
}
.core-card .icon { width: 44px; height: 44px; }
.turn-copy { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); text-align: center; width: min(90vw, 900px); }
.turn-title { font-size: clamp(36px, 5.4vw, 64px); opacity: 0; }
.turn-sub { opacity: 0; }

/* ============================================================
   5 · PROFILE (pinned orbit)
   ============================================================ */
.sec-profile { padding-bottom: 96px; }
.sec-profile .sec-head { text-align: center; margin-inline: auto; }
.profile-stage { height: 100vh; display: grid; place-items: center; }
.orbit { position: relative; width: min(880px, 92vw); height: min(640px, 80vh); display: grid; place-items: center; }

.profile-card {
  position: relative; z-index: 2;
  width: 320px;
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--r-frame);
  box-shadow: var(--shadow-rest);
  padding: 32px 28px 0;
  text-align: center;
  transition: box-shadow .6s;
}
.profile-card.beat-glow { animation: heartbeat .7s var(--ease) 1; box-shadow: 0 0 0 1px var(--blue-100), 0 0 70px rgba(46, 91, 255, .28), var(--shadow-lift); }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.018); } }
.pc-avatar { width: 72px; height: 72px; margin: 0 auto 16px; }
.pc-name { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.pc-meta { font-size: 14px; color: var(--ink-400); margin-top: 4px; }
.pc-detail { font-size: 14px; font-style: italic; color: var(--ink-600); margin-top: 10px; }
.live-strip {
  margin: 24px -28px 0;
  background: var(--cloud);
  border-top: 1px solid var(--mist);
  border-radius: 0 0 var(--r-frame) var(--r-frame);
  padding: 14px 20px;
  font-size: 13px; font-weight: 600; color: var(--blue-600);
  min-height: 48px;
  display: grid; place-items: center;
}
.live-strip span { transition: opacity .3s; }

.onode {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  padding: 11px 18px;
  border-radius: var(--r-chip);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(11, 18, 32, .06), var(--shadow-rest);
  color: var(--ink-600);
  transition: all .7s var(--ease);
  cursor: default;
}
.onode .icon { width: 15px; height: 15px; color: var(--blue-600); }
/* orbit positions */
.n1 { top: 6%; left: 16%; } .n2 { top: 4%; right: 16%; }
.n3 { top: 40%; right: 1%; } .n4 { bottom: 12%; right: 10%; }
.n5 { bottom: 6%; left: 38%; } .n6 { bottom: 14%; left: 8%; }
.n7 { top: 38%; left: 0%; }
/* docked positions hug the card rim */
.onode.docked { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-600); box-shadow: none; padding: 8px 14px; font-size: 12px; }
.n1.docked { top: 24%; left: calc(50% - 300px); }
.n2.docked { top: 24%; left: calc(50% + 168px); }
.n3.docked { top: 40%; left: calc(50% + 178px); }
.n4.docked { top: 56%; left: calc(50% + 168px); }
.n5.docked { top: 72%; left: calc(50% + 120px); }
.n6.docked { top: 72%; left: calc(50% - 250px); }
.n7.docked { top: 40%; left: calc(50% - 310px); }
.profile-outro { text-align: center; font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; color: var(--ink-600); max-width: 640px; }
.profile-outro b { color: var(--ink-900); }

/* ============================================================
   6 & 7 · DEVICE SCENES (teacher / parent)
   ============================================================ */
.device-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}
.device-grid.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.steps-col .sec-head { margin-bottom: 24px; }
.step {
  min-height: 62vh;
  display: flex; align-items: center;
  font-size: 19px; line-height: 1.65; color: var(--ink-600);
  max-width: 460px;
}
.step b { color: var(--ink-900); }
.device-col { position: sticky; top: 10vh; display: flex; justify-content: center; padding-top: 40px; }

/* phone frame */
.phone {
  width: min(340px, 86vw);
  aspect-ratio: 375 / 780;
  border-radius: var(--r-phone);
  border: 9px solid var(--ink-900);
  background: #fff;
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}
.phone::before {
  content: "";
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px;
  background: var(--ink-900);
  border-radius: 12px;
  z-index: 10;
}

/* teacher screens */
.screens { position: absolute; inset: 0; }
.screen {
  position: absolute; inset: 0;
  padding: 52px 18px 18px;
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translateX(28px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
  overflow-y: auto;
}
.screens[data-screen="0"] .s-att,
.screens[data-screen="1"] .s-hw,
.screens[data-screen="2"] .s-notes { opacity: 1; transform: none; pointer-events: auto; }

.app-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 4px; }
.app-head-txt b { font-size: 17px; display: block; letter-spacing: -.01em; }
.app-head-txt span { font-size: 12px; color: var(--ink-400); }
.app-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-600);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
}

.att-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kid { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0; border-radius: 12px; transition: background .18s; }
.kid:hover { background: var(--cloud); }
.kid-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  background: hsl(var(--h, 210), 60%, 92%);
  color: hsl(var(--h, 210), 45%, 32%);
  border: 2.5px solid transparent;
  transition: border-color .25s, transform .25s var(--ease);
  position: relative;
}
.kid-name { font-size: 10px; color: var(--ink-600); }
.kid.present .kid-avatar { border-color: var(--green-500); transform: scale(1.04); }
.kid.present .kid-avatar::after {
  content: "✓";
  position: absolute; right: -4px; bottom: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-500); color: #fff;
  font-size: 10px; line-height: 16px; text-align: center; font-weight: 700;
}
.kid.absent { opacity: .4; }
.kid.absent .kid-avatar { border-style: dashed; border-color: var(--ink-400); }

.att-progress { display: flex; align-items: center; gap: 12px; }
.mini-bar { flex: 1; height: 7px; background: var(--mist); border-radius: 4px; overflow: hidden; }
.mini-bar i, .fill-bar { display: block; height: 100%; width: 0; background: var(--green-500); border-radius: 4px; transition: width .8s var(--ease); }
.att-count { font-size: 12px; font-weight: 600; color: var(--ink-600); white-space: nowrap; }

.toast {
  position: absolute; left: 16px; right: 16px; bottom: 18px;
  display: flex; align-items: center; gap: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(11, 18, 32, .06), var(--shadow-lift);
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--green-500);
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.toast span { color: var(--ink-400); font-weight: 500; }
.toast.in { opacity: 1; transform: none; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hw-box {
  background: var(--cloud);
  border: 1px solid var(--mist);
  border-radius: 14px;
  padding: 16px;
  font-size: 14px; line-height: 1.5; color: var(--ink-600);
  min-height: 96px;
}
.attach-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--blue-600); background: var(--blue-50); border-radius: var(--r-chip); padding: 8px 14px; align-self: flex-start; }
.switch-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-600); }
.switch { width: 40px; height: 24px; border-radius: 12px; background: var(--mist); position: relative; transition: background .25s; display: inline-block; }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .25s var(--ease); }
.switch.on { background: var(--green-500); }
.switch.on i { left: 19px; }
.switch.big { width: 52px; height: 30px; border-radius: 15px; }
.switch.big i { width: 24px; height: 24px; }
.switch.big.on { background: var(--blue-600); }
.switch.big.on i { left: 25px; }

.note-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--mist); }
.note-row > div { flex: 1; }
.note-row b { font-size: 13px; }
.note-row p { font-size: 12px; color: var(--ink-600); }
.note-time { font-size: 11px; color: var(--ink-400); }
.tags { margin-top: 8px; }

/* parent phone */
.p-feed { position: absolute; inset: 0; padding: 52px 16px 18px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.p-item { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.p-item.in { opacity: 1; transform: none; }

.status-hero {
  display: flex; align-items: center; gap: 12px;
  background: var(--green-50);
  border: 1px solid #d3eee1;
  border-radius: 16px;
  padding: 14px 16px;
}
.status-hero .icon { color: var(--green-500); width: 22px; height: 22px; }
.status-hero b { font-size: 14px; display: block; }
.status-hero span { font-size: 12px; color: var(--ink-600); }

.moment-card { background: #fff; border: 1px solid var(--mist); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-rest); }
.moment-art { filter: blur(0); }
.moment-card.developing .moment-art { filter: blur(8px); transform: scale(1.06); }
.moment-art { transition: filter .8s var(--ease), transform .8s var(--ease); }
.moment-cap { font-size: 13px; line-height: 1.5; padding: 12px 14px 4px; }
.moment-cap span { color: var(--ink-400); }
.moment-actions { display: flex; gap: 16px; padding: 8px 14px 12px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-600); }
.link-btn .icon { width: 14px; height: 14px; }
.link-btn:hover { color: var(--blue-600); }

.feed-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 16px;
  padding: 14px;
}
.feed-card > div { flex: 1; }
.feed-card b { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.feed-card p { font-size: 12px; color: var(--ink-600); margin-top: 2px; }
.fc-i { width: 20px; height: 20px; color: var(--blue-600); }
.fc-i.amber { color: var(--amber-500); opacity: .7; }
.feed-card.fee { border-color: #f3e8d2; background: #fffdf8; }
.pill-new { font-size: 10px; font-weight: 700; text-transform: uppercase; background: var(--blue-50); color: var(--blue-600); border-radius: 6px; padding: 2px 6px; }
.check-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--mist);
  display: grid; place-items: center;
  color: transparent;
  transition: all .2s;
}
.check-btn .icon { width: 14px; height: 14px; }
.check-btn.done { background: var(--green-500); border-color: var(--green-500); color: #fff; }
.rsvp { display: flex; gap: 8px; margin-top: 8px; }

.lockscreen {
  position: absolute; inset: 0; z-index: 5;
  background: linear-gradient(180deg, #e8effc 0%, #f4f0fa 100%);
  display: flex; flex-direction: column; align-items: center;
  padding-top: 96px;
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.lockscreen.away { transform: translateY(-102%); opacity: .4; }
.lock-time { font-size: 56px; font-weight: 700; letter-spacing: -.03em; }
.lock-date { font-size: 14px; color: var(--ink-600); margin-top: 2px; }
.lock-banner {
  margin-top: 40px;
  width: calc(100% - 32px);
  display: flex; align-items: center; gap: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(11, 18, 32, .05), var(--shadow-rest);
  border-radius: 18px;
  padding: 14px 16px;
  opacity: 0; transform: translateY(-16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.lock-banner.in { opacity: 1; transform: none; }
.lock-banner .icon { color: var(--green-500); width: 24px; height: 24px; }
.lock-banner b { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-400); display: block; }
.lock-banner p { font-size: 13px; font-weight: 600; }

/* ============================================================
   8 · ADMIN DASHBOARD
   ============================================================ */
.browser {
  width: min(1040px, calc(100% - 2 * var(--edge)));
  max-width: 1040px;
  margin: 0 auto;
  border-radius: var(--r-frame);
  border: 1px solid var(--mist);
  background: #fff;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.browser-bar {
  height: 44px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--mist);
  background: #fff;
}
.b-dots { display: flex; gap: 6px; }
.b-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--mist); }
.b-url {
  font-size: 12px; color: var(--ink-400);
  background: var(--cloud);
  border-radius: var(--r-chip);
  padding: 6px 16px;
}
.dash {
  background:
    linear-gradient(var(--mist) 1px, transparent 1px),
    linear-gradient(90deg, var(--mist) 1px, transparent 1px),
    var(--cloud);
  background-size: 80px 80px, 80px 80px, auto;
  padding: 24px;
}
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.dash-hello b { font-size: 18px; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.dash-hello .sun { color: var(--amber-500); width: 18px; height: 18px; }
.dash-hello span { font-size: 12px; color: var(--ink-400); }
.dash-tabs { display: flex; background: #fff; border: 1px solid var(--mist); border-radius: 12px; padding: 4px; gap: 4px; }
.tab { font-size: 13px; font-weight: 600; color: var(--ink-600); padding: 7px 18px; border-radius: 9px; transition: all .2s; }
.tab.active { background: var(--blue-600); color: #fff; }

.dash-view { display: none; }
.dash-view.active { display: block; animation: viewin .5s var(--ease); }
@keyframes viewin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 16px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.kpi-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-400); }
.kpi-num { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.kpi-sub { font-size: 12px; color: var(--ink-600); display: flex; align-items: center; gap: 6px; }
.delta { color: var(--green-500); font-weight: 700; background: var(--green-50); border-radius: 6px; padding: 1px 6px; font-size: 11px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); display: inline-block; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(23, 165, 107, .4); } 50% { box-shadow: 0 0 0 5px rgba(23, 165, 107, 0); } }
.kpi .mini-bar { margin-top: 8px; }
.kpi .fill-bar { background: var(--blue-600); }

.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dcard { background: #fff; border: 1px solid var(--mist); border-radius: 16px; padding: 18px; }
.dcard-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-400); display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dcard-head.vio { color: var(--violet-500); }
.dcard-hint { font-weight: 500; text-transform: none; letter-spacing: 0; }
.dcard-sub { font-size: 12px; color: var(--ink-400); margin: 18px 0 8px; }
.dcard-sub b { color: var(--ink-900); }

.att-rows, .fee-rows { display: flex; flex-direction: column; }
.arow { display: grid; grid-template-columns: 92px 1fr 48px; align-items: center; gap: 12px; padding: 7px 0; font-size: 13px; }
.arow span { color: var(--ink-600); }
.arow b { text-align: right; font-variant-numeric: tabular-nums; }
.arow .fill-bar { background: var(--blue-600); }
.frow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--cloud); }
.frow span:first-child { color: var(--ink-600); }
.frow b { font-variant-numeric: tabular-nums; }
.age-chip { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 8px; }
.a5 { background: var(--cloud); color: var(--ink-600); }
.a8 { background: var(--amber-50); color: var(--amber-500); }
.a12 { background: #fbe9d2; color: #a86a00; }
.fee-rows + .btn { margin-top: 14px; }

.act-rows { display: flex; flex-direction: column; }
.actrow { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--cloud); font-size: 13px; }
.actrow .icon { width: 17px; height: 17px; color: var(--blue-600); margin-top: 2px; }
.actrow div { flex: 1; }
.actrow b { font-size: 13px; }
.actrow p { font-size: 12px; color: var(--ink-400); }
.actrow > span { font-size: 11px; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.actrow.hi { background: var(--blue-50); margin: 0 -10px; padding: 9px 10px; border-radius: 10px; border-bottom-color: transparent; }

.pipeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.pipe-col { min-width: 0; background: var(--cloud); border: 1px dashed var(--mist); border-radius: 12px; padding: 10px 12px 34px; }
.pipe-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); display: block; }
.pipe-col b { font-size: 18px; }
.pipe-card {
  position: absolute; bottom: 8px; left: 8px;
  width: calc(25% - 12px);
  background: #fff;
  border: 1px solid var(--blue-100);
  border-radius: 9px;
  box-shadow: var(--shadow-rest);
  font-size: 10px; font-weight: 600;
  padding: 7px 9px;
  line-height: 1.35;
  will-change: transform;
}

.report-banner {
  margin-top: 14px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 14px;
}
.report-banner .icon { color: var(--blue-600); width: 20px; height: 20px; }
.report-banner span { color: var(--ink-600); font-size: 13px; flex: 1; }

.trend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.trend-grid .insights { grid-column: 1 / -1; }
.chart svg { width: 100%; height: auto; }
.insights ul { display: flex; flex-direction: column; gap: 10px; }
.insights li { font-size: 14px; color: var(--ink-600); padding-left: 20px; position: relative; }
.insights li::before { content: "→"; position: absolute; left: 0; color: var(--violet-500); }

.annos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; max-width: 1040px; }
.anno { display: flex; gap: 14px; align-items: flex-start; }
.anno b {
  width: 28px; height: 28px; flex: none;
  border-radius: 50%;
  background: var(--blue-600); color: #fff;
  display: grid; place-items: center;
  font-size: 13px;
}
.anno p { font-size: 14px; color: var(--ink-600); line-height: 1.5; }

/* ============================================================
   9 · AUTOMATIONS
   ============================================================ */
.autopilot {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 64px;
  font-size: 14px; font-weight: 600; color: var(--ink-600);
}
.autopilot b { color: var(--blue-600); min-width: 34px; font-variant-numeric: tabular-nums; }
.chains { max-width: 880px; display: flex; flex-direction: column; gap: 48px; }
.chain { display: grid; grid-template-columns: 220px 1fr 220px; align-items: center; gap: 0; }
.chain-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 16px;
  padding: 18px;
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-rest);
  transition: background .3s, border-color .3s;
}
.chain-card .icon { width: 20px; height: 20px; color: var(--blue-600); }
.chain-card.lit { background: var(--blue-50); border-color: var(--blue-100); }
.wire { position: relative; height: 2px; background: var(--mist); margin: 0 18px; }
.wire .fill { position: absolute; inset: 0; background: var(--blue-600); transform: scaleX(0); transform-origin: left; }
.wire .pulse {
  position: absolute; top: 50%; left: 0;
  width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 0 12px rgba(46, 91, 255, .8);
  opacity: 0;
}
.chain-was { grid-column: 1 / -1; font-size: 12px; color: var(--ink-400); margin-top: 10px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.auto-outro { text-align: center; margin-top: 96px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; color: var(--ink-600); opacity: 0; transform: translateY(16px); transition: all .7s var(--ease); }
.auto-outro.in { opacity: 1; transform: none; }

/* ============================================================
   10 · AI
   ============================================================ */
.sec-ai {
  background:
    linear-gradient(125deg, rgba(46, 91, 255, .05) 0%, rgba(124, 92, 255, .08) 100%),
    var(--paper);
}
.ai-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; }
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(11, 18, 32, .05), var(--shadow-rest);
  border-radius: var(--r-frame);
  padding: 28px;
}
.ai-side { display: flex; flex-direction: column; gap: 24px; }
.stream { font-size: 17px; line-height: 1.7; color: var(--ink-600); min-height: 140px; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--violet-500); vertical-align: text-bottom; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-review { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 13px; color: var(--ink-400); flex-wrap: wrap; }
.circ { font-size: 15px; line-height: 1.6; color: var(--ink-600); min-height: 72px; }
.week-lines { display: flex; flex-direction: column; gap: 8px; }
.week-lines li { font-size: 14px; color: var(--ink-600); padding-left: 18px; position: relative; }
.week-lines li::before { content: "·"; position: absolute; left: 4px; color: var(--violet-500); font-weight: 800; }
.ghost-chips { display: flex; gap: 12px; justify-content: center; margin-top: 64px; flex-wrap: wrap; }
.ghost-chip {
  font-size: 13px; font-weight: 500; color: var(--ink-400);
  border: 1.5px dashed var(--ink-400);
  opacity: .7;
  border-radius: var(--r-chip);
  padding: 9px 20px;
}

/* ============================================================
   11 · REPLAY
   ============================================================ */
.sec-replay { background: linear-gradient(180deg, var(--paper) 0%, #fbfbfd 100%); }
.pairs { max-width: 880px; display: flex; flex-direction: column; gap: 40px; }
.pair { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; gap: 0; }
.pair-before {
  display: flex; align-items: center; gap: 14px;
  background: var(--chaos);
  border: 1px solid #e3ddd1;
  border-radius: var(--r-card);
  padding: 24px;
  font-size: 16px; font-weight: 500; color: var(--ink-600);
  filter: grayscale(.4);
}
.pair-before .icon { width: 22px; height: 22px; color: #8a8272; }
.pair-arrow { text-align: center; color: var(--ink-400); }
.pair-arrow .icon { width: 20px; height: 20px; margin-inline: auto; }
.pair-after {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border-radius: var(--r-card);
  padding: 24px;
  font-size: 16px; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--blue-100), 0 0 40px rgba(46, 91, 255, .07), var(--shadow-rest);
}
.pair-check {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  background: var(--green-50);
  display: grid; place-items: center;
  color: var(--green-500);
}
.pair-check .icon { width: 15px; height: 15px; stroke-width: 2.5; }
.pair-counter { color: var(--blue-600); font-variant-numeric: tabular-nums; }

.sec-finalline { min-height: 100vh; display: grid; place-items: center; padding: 0; }
.final-line { font-size: clamp(30px, 4.6vw, 56px); text-align: center; padding-inline: var(--edge); }

/* ============================================================
   12 · ERP
   ============================================================ */
.erp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; }
.erp-card { background: var(--cloud); border-radius: var(--r-card); padding: 32px; }
.erp-card b {
  display: block;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.erp-card p { font-size: 16px; line-height: 1.6; color: var(--ink-600); }

/* ============================================================
   13 · CLOSING
   ============================================================ */
.sec-closing { padding-bottom: 0; }
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.profile-card.mini { width: 190px; padding: 24px 20px 20px; }
.profile-card.mini .pc-avatar { width: 52px; height: 52px; margin-bottom: 10px; }
.profile-card.mini .pc-name { font-size: 18px; }
.q-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 960px; }
.q-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--r-card);
  padding: 32px 24px;
  min-height: 180px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  transition: border-color .25s;
  text-align: left;
}
.q-card:hover { border-color: var(--blue-600); }
.q-num {
  position: absolute; top: 8px; right: 16px;
  font-size: 64px; font-weight: 800;
  color: var(--ink-900); opacity: .07;
}
.q-card p { font-size: 17px; font-weight: 600; line-height: 1.5; position: relative; }
.honesty { font-size: 14px; color: var(--ink-400); line-height: 1.8; text-transform: lowercase; }
.footer {
  margin-top: 96px;
  padding: 32px 24px;
  border-top: 1px solid var(--mist);
  text-align: center;
  font-size: 13px; color: var(--ink-400);
}

/* ============================================================
   V2 — BUSINESS-TRANSFORMATION ADDITIONS
   ============================================================ */

/* S3 · relational-debt whisper under the money beat */
.beat-sub { display: inline-block; margin-top: 10px; font-size: .62em; font-weight: 400; color: var(--ink-400); }

/* S6 · teacher time receipt */
.time-receipt {
  font-size: 11px; color: var(--ink-400); text-align: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.time-receipt b { color: var(--green-500); }
.time-receipt.in { opacity: 1; transform: none; }

/* S7 · trust details */
.privacy-note { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-400); padding: 0 14px 12px; }
.privacy-note .icon { width: 12px; height: 12px; }
.read-tick { display: inline-block; margin-left: 8px; font-size: 11px; color: var(--green-500); font-weight: 600; }

/* S8 · micro-stat strip + proof lines */
.stat-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sstat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--ink-600);
  background: #fff; border: 1px solid var(--mist);
  border-radius: var(--r-chip); padding: 7px 14px;
}
.sstat .icon { width: 13px; height: 13px; color: var(--blue-600); }
.kpi-sub.recovered { color: var(--green-500); font-weight: 600; }
.pipe-note { font-size: 11px; color: var(--ink-400); margin-top: 10px; }
.pipe-profile {
  position: absolute; bottom: 8px; left: 8px;
  width: calc(25% - 12px);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 9px;
  font-size: 10px; font-weight: 700; color: var(--blue-600);
  padding: 7px 9px; line-height: 1.35;
  opacity: 0;
  will-change: transform, opacity;
}

/* S9 · automation receipts ledger */
.auto-ledger {
  max-width: 880px; margin: 24px auto 0; padding: 0 var(--edge);
  text-align: center; font-size: 14px; color: var(--ink-400);
  opacity: 0; transition: opacity .6s var(--ease);
}
.auto-ledger.in { opacity: 1; }
.auto-ledger span { display: inline-block; color: var(--ink-900); font-weight: 600; white-space: nowrap; }
.auto-ledger span + span::before { content: "·"; color: var(--ink-400); font-weight: 400; margin: 0 8px; }

/* S10 · human-in-charge line */
.ai-ethos { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--violet-500); }

/* S12 · onboarding & data-ownership footnote */
.erp-note {
  max-width: 880px; margin: 32px auto 0; padding: 0 var(--edge);
  text-align: center; font-size: 14px; color: var(--ink-400); line-height: 1.7;
}

@media (max-width: 900px) {
  .pipeline { gap: 6px; }
  .pipe-label { font-size: 9px; }
  .sstat { font-size: 11px; padding: 6px 10px; }
}

/* ============================================================
   RESPONSIVE
   Tiers (desktop ≥1281 untouched):
   ≤1280 · ≤1100 · ≤1024 laptop/tablet-landscape · ≤900 tablet-portrait/mobile
   ≤768 · ≤480 large mobile · ≤360 small mobile
   ============================================================ */

/* ---------- ≤1100 · progress ticks off (touch scrolling replaces dot-nav) */
@media (max-width: 1100px) {
  .ticks { display: none; }
}

/* ---------- ≤1024 · laptop / tablet landscape */
@media (max-width: 1024px) {
  :root { --sec-pad: 128px; }
  .device-grid, .device-grid.flip { gap: 48px; }
  .annos { gap: 20px; }
  .kpis { gap: 12px; }
  .dash-grid, .trend-grid { gap: 12px; }
}

/* ---------- ≤900 · tablet portrait / mobile — layout collapse */
@media (max-width: 900px) {
  :root { --sec-pad: 96px; }
  .sec-head { margin-bottom: 40px; }

  /* stable viewport units — pinned stages don't jump when the URL bar hides */
  .sec-hero, .pause, .sec-finalline { min-height: 100svh; }
  .morning-stage, .turn-stage { height: 100svh; }

  .stage-grid { grid-template-columns: 1fr; gap: 24px; align-content: center; }
  .vignettes { min-height: 330px; }
  .vg-svg { max-height: 180px; }
  .vg-cap { font-size: 16px; margin-top: 16px; }
  .noti-col { max-height: 190px; }

  .tool-card { position: static; display: inline-block; margin: 6px; }
  .tool-field { position: relative; inset: auto; text-align: center; padding: 0 24px 32px; }
  .beats { gap: 64px; }

  .t-card { padding: 10px 16px; font-size: 12px; }
  .core-card { width: 220px; height: 140px; margin: -70px 0 0 -110px; }

  .orbit { height: auto; min-height: 70vh; }
  .onode { position: static; margin: 4px; }
  .onode.docked { position: static; }
  .orbit { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 24px 0; }
  .orbit .profile-card { order: -1; }
  .profile-stage { height: auto; padding: 24px 0 48px; }

  .device-grid, .device-grid.flip { grid-template-columns: 1fr; gap: 24px; }
  .device-col { position: relative; top: 0; order: -1; padding-top: 0; }
  .device-grid.flip .device-col { order: -1; }
  .step { min-height: 0; padding: 24px 0; }

  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-grid, .trend-grid { grid-template-columns: 1fr; }
  .annos { grid-template-columns: 1fr; gap: 16px; }

  .chain { grid-template-columns: 1fr; gap: 0; justify-items: center; text-align: center; }
  .chain-card { width: 100%; max-width: 340px; justify-content: center; }
  .wire { width: 2px; height: 44px; margin: 0; }
  .wire .fill { transform-origin: top; }
  .chain-was { margin-top: 12px; }

  .ai-grid { grid-template-columns: 1fr; }

  .pair { grid-template-columns: 1fr; gap: 10px; }
  .pair-arrow { transform: rotate(90deg); padding: 2px 0; }

  .erp-grid { grid-template-columns: 1fr; }
  .q-cards { grid-template-columns: 1fr; }
  .seed-card { width: 64px; height: 80px; right: 6%; bottom: 10%; }
}

/* ---------- ≤768 · tablet portrait */
@media (max-width: 768px) {
  :root { --sec-pad: 88px; }
  .beats { gap: 72px; }
  .autopilot { margin-bottom: 48px; }
  .chains { gap: 40px; }
  .pairs { gap: 32px; }
}

/* ---------- ≤480 · large mobile */
@media (max-width: 480px) {
  :root { --sec-pad: 72px; --edge: 20px; }

  /* chrome */
  .chrome { padding: 12px 16px; }
  .wordmark { font-size: 14px; }
  .clock-chip { padding: 7px 12px; font-size: 12px; }

  /* hero */
  .hero-title { font-size: clamp(34px, 11vw, 44px); }
  .hero-lead br { display: none; }
  .hero-badge { font-size: 11px; padding: 7px 14px; margin-bottom: 32px; }
  .scroll-cue { margin-top: 56px; }
  .seed-card { width: 52px; height: 64px; opacity: .3; }

  /* morning */
  .vg-svg { max-height: 150px; }
  .vg-art { padding: 16px; }
  .vg-cap { font-size: 14px; margin-top: 12px; }
  .vignettes { min-height: 290px; }
  .noti-col { max-height: 170px; }
  .noti { font-size: 12px; padding: 8px 12px; }

  /* cost */
  .beat { font-size: 19px; }
  .beats { gap: 48px; }
  .tool-card { padding: 10px 14px; font-size: 11px; }
  .tool-card .frag { font-size: 13px; }
  .footnote { margin-top: 48px; }

  /* turn */
  .turn-title { font-size: clamp(26px, 8vw, 36px); }
  .turn-copy { top: 9%; }
  .core-card { width: 190px; height: 122px; margin: -61px 0 0 -95px; }
  .core-card .icon { width: 34px; height: 34px; }

  /* profile */
  .profile-card { width: min(320px, 100%); }
  .onode { font-size: 12px; padding: 9px 14px; }

  /* phones */
  .phone { border-width: 7px; }
  .screen { padding: 46px 14px 14px; gap: 12px; }
  .p-feed { padding: 46px 12px 14px; gap: 10px; }
  .step { font-size: 17px; }

  /* dashboard */
  .kpis { grid-template-columns: 1fr; }
  .kpi { padding: 14px 16px; }
  .kpi-num { font-size: 30px; }
  .dash { padding: 16px; }
  .dcard { padding: 16px; }
  .dash-hello b { font-size: 16px; }
  .arow { grid-template-columns: 76px 1fr 44px; font-size: 12px; gap: 8px; }
  .actrow { font-size: 12px; }
  .actrow b { font-size: 12px; }
  .report-banner { padding: 12px 14px; font-size: 13px; }
  .pipe-card, .pipe-profile { font-size: 9px; padding: 6px; }
  .pipe-col { padding: 8px 6px 28px; }
  .pipe-col b { font-size: 15px; }
  .b-url { font-size: 11px; padding: 5px 12px; }
  .anno p { font-size: 13px; }

  /* automations */
  .chain-card { padding: 14px; font-size: 13px; }
  .chain-was { font-size: 11px; }
  .auto-ledger { font-size: 13px; }
  .auto-outro { margin-top: 64px; }

  /* ai */
  .glass-panel { padding: 20px; }
  .stream { font-size: 15px; min-height: 120px; }
  .ghost-chip { font-size: 12px; padding: 8px 14px; }

  /* replay / erp / closing */
  .pair-before, .pair-after { padding: 18px; font-size: 15px; }
  .erp-card { padding: 24px; }
  .erp-note br { display: none; }
  .q-card { min-height: 150px; padding: 24px 20px; }
  .q-num { font-size: 52px; }
  .sec-closing .display { font-size: clamp(30px, 9vw, 44px); }
  .btn-cta { width: 100%; font-size: 15px; padding: 16px 20px; }
  .closing-inner { gap: 32px; }
  .honesty { font-size: 13px; }
  .footer { margin-top: 64px; }
}

/* ---------- ≤360 · small mobile */
@media (max-width: 360px) {
  :root { --edge: 16px; }
  .hero-title { font-size: clamp(30px, 11.5vw, 40px); }
  .kid-avatar { width: 40px; height: 40px; font-size: 12px; }
  .att-grid { gap: 6px; }
  .kpi-num { font-size: 26px; }
  .sstat { font-size: 10px; padding: 5px 9px; }
  .stat-strip { gap: 6px; }
  .beat { font-size: 18px; }
  .step { font-size: 16px; }
  .pause-line { font-size: 22px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .vignette { position: static; opacity: 1; transform: none; margin-bottom: 32px; }
  .vignettes { min-height: 0; }
  .morning-stage { height: auto; padding: 48px 0; }
  .noti .in, .noti { opacity: 1; transform: none; }
  .p-item { opacity: 1; transform: none; }
  .lockscreen { display: none; }
  .turn-stage { height: auto; padding: 128px 24px; }
  .t-card { display: none; }
  .tangle { display: none; }
  .core-card { position: static; margin: 48px auto 0; opacity: 1; }
  .turn-copy { position: static; transform: none; }
  .turn-title, .turn-sub { opacity: 1; }
  .profile-stage { height: auto; }
  .onode { position: static; margin: 4px; }
  .toast { opacity: 1; transform: none; }
  .auto-outro { opacity: 1; transform: none; }
  .caret { display: none; }
}
