@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

/* The app's own tokens (src/app/globals.css): warm canvas, warm ink, five pastels each with its ink. */
:root {
  --canvas: #f5f3ef;
  --line: #e3e1dd;
  --line-soft: #edebe7;
  --ink: #2d2323;
  --body: #4a3e3e;
  --muted: #6a6262;
  --mint: #e4f5ec;     --mint-ink: #1e5a3c;
  --sky: #e3f0fb;      --sky-ink: #1d4e78;
  --lavender: #eeeafc; --lavender-ink: #4a3c8c;
  --peach: #fdebe2;    --peach-ink: #8a3a17;
  --butter: #fcf3cf;   --butter-ink: #6a4f06;
  --night: #15111d;
  /* The sample school's brand */
  --school: #1d4e78;
  --gold: #f4a62a;
  --card: 0 2px 0 var(--line);
  --float: 0 1px 2px rgb(45 35 35 / .08), 0 24px 48px -16px rgb(45 35 35 / .28);
  --header: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 64px); }
body {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.6; color: var(--body); background: var(--canvas);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
/* Icons drawn from the sprite are square; the crest is a little taller than wide. */
svg:has(> use) { aspect-ratio: 1; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
i, em, u { font-style: normal; text-decoration: none; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* Buttons: soft pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; white-space: nowrap; flex: none;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none;
  box-shadow: 0 1px 0 rgb(255 255 255 / .12) inset, 0 6px 16px -6px rgb(45 35 35 / .5);
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: #1a1414; }
.btn:active { transform: scale(.98); }
.btn-small { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-big { height: 56px; padding: 0 30px; font-size: 17px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 12px 6px; }
.link svg { width: 16px; height: 16px; transition: translate .2s ease; }
.link:hover svg { translate: 3px 0; }

.kicker { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.kicker.light { color: #bfe3cf; }
.section-head { text-align: center; max-width: 740px; margin-inline: auto; }
.section-head h2, .faq-wrap h2, .closing h2 {
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.038em; font-weight: 700;
}
.section-head > p:last-child { font-size: clamp(17px, 1.6vw, 20px); margin-top: 18px; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgb(245 243 239 / .85); backdrop-filter: saturate(1.4) blur(14px); }
.top-row { display: flex; align-items: center; gap: 24px; height: var(--header); }
.brand img { width: 122px; }
.top nav { margin-left: auto; }
.nav { display: flex; gap: 2px; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; color: var(--body); padding: 8px 14px; border-radius: 999px; transition: background .2s ease; }
.nav a:hover { background: var(--line-soft); color: var(--ink); }

/* Hero */
.hero { padding-top: clamp(48px, 7vw, 96px); overflow-x: clip; }
.hero-text { text-align: center; max-width: 920px; }
h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: 0.97; letter-spacing: -0.048em; font-weight: 700; }
.lede { font-size: clamp(18px, 1.8vw, 21px); max-width: 620px; margin: 26px auto 0; }
.ctas { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 34px; }

.demo-wrap { position: relative; margin-top: clamp(48px, 6vw, 80px); }
.demo-wrap::before {
  content: ""; position: absolute; z-index: -1; inset: -220px -50vw -220px; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  background:
    radial-gradient(30% 45% at 22% 40%, rgb(201 189 253 / .75), transparent 70%),
    radial-gradient(28% 40% at 80% 35%, rgb(255 195 166 / .7), transparent 70%),
    radial-gradient(35% 35% at 55% 70%, rgb(255 217 120 / .55), transparent 70%);
}
.demo { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 21vw, 260px); gap: clamp(20px, 3vw, 40px); align-items: center; }
.demo-app { position: relative; min-width: 0; }
.stage-app { box-shadow: 0 1px 2px rgb(45 35 35 / .08), 0 40px 80px -30px rgb(45 35 35 / .35), 0 0 0 1px rgb(45 35 35 / .04); }
.stage-app .app-in { aspect-ratio: 16 / 10.6; font-size: 1.3cqi; }
.view-board { position: absolute; inset: 0; display: flex; flex-direction: column; }
.view-board .board { flex: 1; min-height: 0; align-items: stretch; }
.stage-app .a-main { position: relative; overflow: hidden; }
.demo-fam { display: grid; justify-items: center; gap: 14px; }
.fam-label { font-size: 14px; color: var(--muted); text-align: center; }
.fam-label b { color: var(--ink); font-weight: 600; }
.demo-fam .phone { max-width: 260px; }
.ph-body > * { animation: fade .4s ease both; }
@keyframes fade { from { opacity: 0; translate: 0 6px; } }
.sample { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 40px; }

/* Little notes: a white card, a pastel dot, one line of detail. */
.note {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  background: #fff; border-radius: 18px; box-shadow: var(--float); white-space: nowrap;
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
}
.note b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.3; }
.note small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.note-dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.note-dot svg { width: 20px; height: 20px; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }

.sky { background: var(--sky); color: var(--sky-ink); }
.mint { background: var(--mint); color: var(--mint-ink); }
.lavender { background: var(--lavender); color: var(--lavender-ink); }
.peach { background: var(--peach); color: var(--peach-ink); }
.butter { background: var(--butter); color: var(--butter-ink); }

/* ---------- Drawn screens: the staff app ---------- */
.school { display: inline-flex; align-items: center; gap: .5em; color: var(--ink); }
.school svg { width: 1.7em; flex: none; aspect-ratio: 1; }
.school b { font-weight: 700; letter-spacing: -0.02em; font-size: 1em; white-space: nowrap; }

.av { display: inline-grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; font-size: .72em; font-weight: 700; flex: none; letter-spacing: 0; }

.app { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; container-type: inline-size; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--float); text-align: left; }
.app-in { font-size: 1.32cqi; display: grid; grid-template-columns: 12.5em minmax(0, 1fr); color: var(--body); line-height: 1.35; }
.a-side { background: var(--canvas); padding: 1.4em 1em 1.2em; display: flex; flex-direction: column; gap: 1.6em; border-right: 1px solid var(--line); }
.a-side .school { font-size: 1.05em; padding-left: .3em; }
.a-nav { display: grid; gap: .2em; font-size: .95em; }
.a-nav li { display: flex; align-items: center; gap: .6em; padding: .45em .6em; border-radius: .6em; color: var(--body); }
.a-nav li svg { width: 1.25em; }
.a-nav li.on { background: var(--line); color: var(--ink); font-weight: 600; }
.a-nav em { margin-left: auto; font-size: .8em; color: var(--muted); }
.a-foot { margin-top: auto; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); font-size: 1.1em; padding-left: .3em; }

.a-main { min-width: 0; }
.a-main.pad { padding: 1.6em 1.8em 1.8em; }
.a-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 1.1em 1.4em; border-bottom: 1px solid var(--line-soft); }
.a-head b { font-size: 1.3em; color: var(--ink); font-weight: 500; }
.a-tools { display: flex; gap: .5em; font-size: .82em; }
.a-tools i { padding: .35em .8em; border: 1px solid var(--line); border-radius: .55em; white-space: nowrap; }
.a-tools .a-search { min-width: 9em; color: var(--muted); }
.a-tools .dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7em; padding: 1em 1.2em 1.4em; background: #fff; }
.col { background: #faf9f7; border-radius: .9em; padding: .6em; display: grid; gap: .5em; align-content: start; }
.col > p { font-size: .85em; font-weight: 500; color: var(--ink); padding: .1em .3em .2em; }
.col > p span { color: var(--muted); font-weight: 500; margin-left: .2em; }
.kid { font: inherit; color: inherit; border: 0; width: 100%; text-align: left; cursor: pointer; transition: translate .15s ease, box-shadow .15s ease;
  display: grid; grid-template-columns: auto 1fr; column-gap: .55em; align-items: center; background: #fff; border-radius: .7em; padding: .6em; box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line-soft); }
.kid .av { grid-row: span 2; }
.kid:hover { translate: 0 -1px; box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line), 0 6px 14px -6px rgb(45 35 35 / .25); }
.kid:focus-visible { outline: 2px solid var(--school); outline-offset: 1px; border-radius: .7em; }
.kid.on { box-shadow: 0 0 0 2px var(--school); }
.own { grid-column: 1 / -1; display: flex; align-items: center; gap: .45em; margin-top: .55em; padding-top: .5em; border-top: 1px solid var(--line-soft); font-size: .68em; color: var(--muted); }
.own i { width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; background: var(--lavender); color: var(--lavender-ink); font-size: .85em; }
.kid b { font-size: .84em; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kid small { font-size: .7em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kid u { grid-column: 2; justify-self: start; font-size: .66em; font-weight: 500; border-radius: 999px; padding: .1em .6em; margin-top: .35em; }
.kid.glow { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 3px #b7d4ef, 0 8px 24px -8px rgb(29 78 120 / .45); } }

.h-date { font-size: .82em; color: var(--muted); }
.h-title { font-size: 2em; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; margin-top: .1em; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7em; margin-top: 1.1em; }
.tiles div { background: var(--canvas); border-radius: .8em; padding: .8em .9em; }
.tiles b { display: block; font-size: 1.6em; color: var(--ink); font-weight: 600; }
.tiles span { font-size: .72em; color: var(--muted); }
.h-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; margin-top: .8em; }
.h-card { border: 1px solid var(--line); border-radius: .8em; padding: .8em .9em; }
.h-card > p { font-size: .9em; font-weight: 600; color: var(--ink); margin-bottom: .5em; }
.h-card > p span { color: var(--muted); font-weight: 500; }
.h-card .row { display: grid; grid-template-columns: auto 1fr; column-gap: .55em; align-items: center; padding: .35em 0; }
.h-card .row .av { grid-row: span 2; }
.h-card .row b { font-size: .82em; font-weight: 600; color: var(--ink); }
.h-card .row small { font-size: .7em; color: var(--muted); }
.h-card .row.kd { grid-template-columns: 1fr auto; border-top: 1px solid var(--line-soft); }
.h-card .row.kd b { font-weight: 500; color: var(--body); }

.decide .app-in { grid-template-columns: 1fr; }
.seats { display: flex; align-items: center; gap: .8em; font-size: .85em; margin-top: .6em; }
.seats i { border: 1px solid var(--line); border-radius: .5em; padding: .25em .7em; color: var(--ink); font-weight: 500; }
.bar { height: .5em; border-radius: 999px; background: var(--line-soft); margin-top: .9em; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--mint-ink); border-radius: 999px; }
.tbl { margin-top: 1.1em; font-size: .85em; }
.tbl p { display: grid; grid-template-columns: 1.5fr 1fr 1fr .8fr; align-items: center; padding: .6em .4em; border-top: 1px solid var(--line-soft); }
.tbl p span:first-child { display: flex; align-items: center; gap: .55em; color: var(--ink); font-weight: 500; }
.tbl .th { background: #faf9f7; color: var(--muted); font-size: .9em; font-weight: 500; }
.tbl .th.sub { background: none; color: var(--ink); font-weight: 600; font-size: 1.05em; padding-top: 1em; }
.tbl u { background: var(--line-soft); border-radius: 999px; padding: .1em .7em; font-size: .9em; }
.tbl em { border: 1px solid var(--line); border-radius: .5em; padding: .25em .6em; font-size: .9em; color: var(--ink); justify-self: end; white-space: nowrap; }
.tbl .hl { background: #fffaf0; }

/* ---------- Drawn screens: the family's phone ---------- */
.phone { container-type: inline-size; width: 100%; max-width: 290px; background: #1c1717; border-radius: 42px; padding: 6px; box-shadow: var(--float), inset 0 0 0 1.5px #3a3232; }
.ph-in { position: relative; font-size: 5.1cqi; aspect-ratio: 9 / 18.6; overflow: hidden; background: #faf8f4; border-radius: 36px; color: var(--ink); line-height: 1.35; text-align: left; }
.ph-bar { display: flex; align-items: center; justify-content: space-between; padding: 1.3em 1.2em .9em; border-bottom: 1px solid #ece8e0; background: #fff; }
.ph-bar .school { font-size: .95em; }
.ph-bar .av { font-size: .7em; }
.ph-body { padding: .9em; display: grid; gap: .7em; }
.p-card { background: #fff; border: 1px solid #ebe7df; border-radius: 1em; padding: .85em .9em .95em; }
.p-h { font-size: .8em; font-weight: 700; }
.p-child { display: flex; align-items: center; gap: .6em; margin-top: .6em; }
.p-child .av { font-size: .8em; }
.p-child b { display: block; font-size: 1.15em; font-weight: 700; line-height: 1.15; }
.p-child small { display: block; font-size: .7em; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: .75em; position: relative; }
.steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: .6em; height: 2px; background: #e3e0d8; }
.steps li { position: relative; display: grid; justify-items: center; gap: .4em; font-size: .52em; color: var(--muted); letter-spacing: -0.01em; white-space: nowrap; }
.steps li::before { content: ""; width: 2.3em; height: 2.3em; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #d8d4cc; position: relative; z-index: 1; }
.steps li.ok, .steps li.here { color: var(--ink); }
.steps li.ok::before { box-shadow: none; background: var(--school) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.5 2.5 4.5-5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.steps li.here { font-weight: 700; }
.steps li.here::before { background: var(--school); box-shadow: 0 0 0 .4em #dbe8f5; }
.steps:has(.here:last-child)::before, .steps:has(.ok + .here)::before { background: linear-gradient(90deg, var(--school) var(--fill, 66%), #e3e0d8 0); }
.steps:has(.here:last-child)::before { --fill: 100%; }
.p-big { font-size: 1.02em; font-weight: 700; margin-top: .45em; line-height: 1.25; }
.p-sub { font-size: .72em; color: var(--muted); margin-top: .15em; }
.p-btns { display: flex; align-items: center; gap: 1em; margin-top: .8em; }
.p-btn { background: var(--school); color: #fff; font-weight: 600; font-size: .8em; padding: .6em 1.3em; border-radius: .6em; }
.p-link { font-size: .8em; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.p-step { font-size: .72em; color: var(--muted); margin-top: .2em; }
.p-title { font-size: 1.5em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.p-h2 { font-size: 1em; font-weight: 700; margin-top: .4em; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3em; }
.seg i { height: .3em; border-radius: 999px; background: #e3e0d8; }
.seg i.on { background: var(--school); }
.p-next { display: flex; justify-content: flex-end; margin-top: .2em; }
.day { font-size: .74em; font-weight: 700; margin-top: .2em; }
.slot { display: flex; align-items: center; gap: .6em; background: #fff; border: 1px solid #dcd8d0; border-radius: .6em; padding: .5em .7em; font-size: .78em; }
.slot i { width: 1em; height: 1em; border-radius: 50%; border: 1.5px solid #b0aca4; }
.slot.on { border-color: var(--school); box-shadow: 0 0 0 .2em #dbe8f5; }
.slot.on i { border: .3em solid var(--school); }

/* Scorecard, thread and dialog: loose cards in the app's style */
.score { width: 80%; max-width: 430px; background: #fff; border-radius: 20px; padding: 22px 22px 18px; box-shadow: var(--float); color: var(--ink); text-align: left; }
.s-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.s-sub { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.s-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; font-weight: 500; }
.stars { font-size: 15px; letter-spacing: 2px; flex: none; }
.stars::before { content: "★★★★★"; background: linear-gradient(90deg, var(--gold) calc(var(--n) * 20%), #e3e1dd 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-note { font-size: 13px; color: var(--body); background: var(--canvas); border-radius: 10px; padding: 9px 11px; margin-top: 4px; }
.s-btns, .m-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 600; }
.s-btns span, .m-btns span { border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px; }
.s-btns .dark, .m-btns .dark { background: var(--ink); color: #fff; border-color: var(--ink); }

.thread { position: absolute; right: 5%; bottom: 0; width: 40%; background: #fff; border-radius: 16px 16px 0 0; box-shadow: var(--float); padding: 14px 14px 12px; color: var(--ink); text-align: left; font-size: 12.5px; line-height: 1.45; }
.t-head b { display: block; font-size: 13px; }
.t-head small { color: var(--muted); font-size: 11.5px; }
.bubble { background: var(--canvas); border-radius: 12px 12px 12px 4px; padding: 9px 11px; margin-top: 10px; color: var(--body); }
.bubble.mine { background: var(--sky); color: var(--sky-ink); border-radius: 12px 12px 4px 12px; margin-left: 14%; }
.t-write { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 11px; margin-top: 10px; color: var(--muted); }
.t-write i { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.t-write svg { width: 14px; }

.modal { position: absolute; right: 6%; bottom: 9%; z-index: 2; width: min(300px, 56%); background: #fff; border-radius: 18px; padding: 18px 18px 16px; box-shadow: 0 30px 60px -20px rgb(45 35 35 / .45), 0 0 0 1px rgb(45 35 35 / .04); color: var(--body); font-size: 13px; line-height: 1.55; text-align: left; }
.m-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }

/* The child's page, opened from the board: drawn from the real one */
.view-child { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; animation: slide .35s cubic-bezier(.2, .7, .2, 1) both; }
.view-child[hidden] { display: none; }
@keyframes slide { from { opacity: 0; translate: 2.5em 0; } }
.cp-top { display: flex; align-items: center; justify-content: space-between; padding: .8em 1.6em; border-bottom: 1px solid var(--line); }
.cp-back { display: inline-flex; align-items: center; gap: .5em; font: inherit; font-size: 1.25em; color: var(--ink); background: none; border: 0; cursor: pointer; padding: .2em .4em .2em 0; border-radius: .5em; }
.cp-back svg { width: .9em; rotate: 180deg; }
.cp-back:hover { color: var(--school); }
.cp-nav { display: flex; align-items: center; gap: .9em; font-size: .95em; color: var(--muted); }
.cp-arrows { display: flex; border: 1px solid var(--line); border-radius: .7em; overflow: hidden; }
.cp-arrows button { font: inherit; width: 2.6em; height: 2.4em; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.cp-arrows button + button { border-left: 1px solid var(--line); }
.cp-arrows button:hover { background: var(--canvas); }
.cp-arrows svg { width: 1em; }
.cp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21em; flex: 1; min-height: 0; }
.cp-main { padding: 1.8em 2.2em; overflow: hidden; }
.cp-head { display: flex; align-items: center; gap: 1.2em; }
.cp-av { width: 4.6em; height: 4.6em; border-radius: 1.1em; display: grid; place-items: center; font-size: 1.15em; font-weight: 500; flex: none; }
.cp-head h4 { font-size: 2.1em; line-height: 1.1; color: var(--ink); font-weight: 600; }
.cp-head p { font-size: .95em; color: var(--body); margin-top: .3em; }
.cp-acts { display: flex; flex-wrap: wrap; gap: .5em; margin-top: 1.4em; font-size: .9em; }
.cp-acts span { display: inline-flex; align-items: center; gap: .45em; border: 1px solid var(--line); border-radius: .6em; padding: .5em .9em; color: var(--ink); }
.cp-acts svg { width: 1.1em; }
.cp-acts .dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.cp-acts .line { border: 1.5px solid var(--ink); }
.cp-stages { margin-top: 1.4em; background: var(--canvas); border: 1px solid var(--line); border-radius: 1em; padding: .5em; display: grid; gap: .1em; }
.cp-st { display: grid; grid-template-columns: 1.4em 1fr; column-gap: .8em; padding: .55em .8em; font-size: .95em; color: var(--body); }
.cp-st > i { width: 1.2em; height: 1.2em; margin-top: .1em; border-radius: 50%; display: grid; place-items: center; }
.cp-st.done > i::before { content: ""; width: .9em; height: .5em; border-left: 2px solid var(--body); border-bottom: 2px solid var(--body); rotate: -45deg; translate: 0 -.15em; }
.cp-st.now { background: #fff; border-radius: .8em; box-shadow: 0 1px 0 var(--line); }
.cp-st.now > i { box-shadow: inset 0 0 0 2px var(--sky-ink); }
.cp-st.now > i::before { content: ""; width: .38em; height: .38em; border-radius: 50%; background: var(--sky-ink); }
.cp-st.next > i { border: 2px dashed #a8a39b; }
.cp-st small { color: var(--muted); font-size: 1em; }
.cp-st .sub { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .45em; margin-top: .5em; color: var(--body); }
.cp-st .sub .av { font-size: .72em; position: relative; }
.cp-st .sub .av.ok::after { content: "✓"; position: absolute; right: -.35em; bottom: -.35em; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--mint-ink); color: #fff; font-size: .8em; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.cp-st .btn-line { grid-column: 2; justify-self: start; border: 1.5px solid var(--ink); color: var(--ink); border-radius: .55em; padding: .3em .8em; margin-top: .6em; }
.cp-more { display: flex; align-items: center; gap: .8em; padding: .5em .8em; font-size: .95em; color: var(--body); }
.cp-more svg { width: 1.1em; }
.cp-h { font-size: 1.25em; color: var(--ink); font-weight: 500; margin-top: 1.4em; }
.cp-where { margin-top: .7em; border: 1px solid var(--line); border-radius: 1em; padding: .4em 1.2em; font-size: .95em; }
.cp-where p { display: grid; grid-template-columns: 8em 1fr; align-items: center; padding: .55em 0; }
.cp-where span { color: var(--muted); }
.cp-where b { font-weight: 400; color: var(--ink); }
.cp-where .pick { justify-self: start; display: inline-flex; align-items: center; gap: 1.4em; background: var(--canvas); border-radius: .6em; padding: .35em .8em; color: var(--ink); }
.cp-where .pick svg { width: .9em; }
.cp-where .plus { width: 1.6em; height: 1.6em; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.cp-where u { justify-self: start; background: var(--peach); color: var(--peach-ink); border-radius: 999px; padding: .05em .6em; }
.cp-side { background: #fff; border-left: 1px solid var(--line); padding: 1.3em 1.2em; overflow: hidden; }
.cp-tabs { display: flex; gap: .2em; background: var(--canvas); border-radius: .8em; padding: .25em; font-size: .9em; }
.cp-tabs span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .4em; border-radius: .6em; color: var(--body); }
.cp-tabs svg { width: 1.05em; }
.cp-tabs .on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(45 35 35 / .1); }
.cp-note { margin-top: .9em; background: #fff; border-radius: 1em; box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line-soft); padding: .7em; font-size: .9em; }
.cp-note p { background: var(--canvas); border-radius: .6em; padding: .55em .7em; color: var(--muted); height: 3.4em; }
.cp-note div { display: flex; justify-content: space-between; margin-top: .6em; }
.cp-note span { display: inline-flex; align-items: center; gap: .35em; background: var(--canvas); border-radius: .5em; padding: .3em .6em; color: var(--body); }
.cp-note span svg { width: 1em; }
.cp-note em { background: #c9c5be; color: #fff; border-radius: .5em; padding: .3em .8em; }
.cp-act { margin-top: 1em; font-size: .88em; }
.cp-act > p { color: var(--muted); padding-bottom: .35em; border-bottom: 1px solid var(--line); margin: 1em 0 .5em; }
.cp-act div { display: grid; grid-template-columns: 1.5em 1fr; gap: .5em; padding: .4em 0; color: var(--ink); line-height: 1.4; }
.cp-act div svg { width: 1.2em; color: var(--body); margin-top: .1em; }
.cp-act small { display: block; color: var(--muted); font-size: 1em; }

/* The family's home page, drawn from the real portal */
.pt { gap: .9em; padding: 1em 1em 1.2em; }
.pt-banner {
  position: relative; border-radius: 1.1em; padding: 4.2em 1.1em 1em; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, rgb(10 25 40 / .05) 0%, rgb(10 25 40 / .35) 40%, rgb(10 25 40 / .88) 100%), url("img/school-cover.webp") center 35% / cover;
}
.pt-banner b { display: block; font-size: 1.45em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; position: relative; }
.pt-banner p { font-size: .74em; line-height: 1.4; margin-top: .4em; position: relative; opacity: .95; }
.pt-h { font-size: 1.15em; font-weight: 600; letter-spacing: -0.01em; margin-top: .2em; }
.pt-card { background: #fff; border-radius: 1.1em; box-shadow: 0 1px 0 #ebe7df, 0 0 0 1px #f0ece5; padding: .95em 1em 1em; }
.pt-child { display: flex; align-items: center; gap: .7em; }
.pt-child .av { font-size: .82em; }
.pt-child b { display: block; font-size: 1em; font-weight: 600; }
.pt-child small { display: block; font-size: .74em; color: var(--muted); }
.pt-stage { font-size: 1.05em; font-weight: 700; margin-top: .7em; }
.dots { position: relative; height: 1.1em; margin: .7em .5em 0; }
.dots::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; translate: 0 -50%; border-radius: 2px; background: linear-gradient(90deg, var(--school) calc(var(--n) * 20%), #e6e2da 0); }
.dots i { position: absolute; top: 50%; left: calc(var(--i) * 20%); translate: -50% -50%; width: .55em; height: .55em; border-radius: 50%; background: #e6e2da; }
.dots i.ok { background: var(--school); }
.dots i.here { width: 1em; height: 1em; background: var(--school); box-shadow: 0 0 0 .28em #dbe8f5; }
.pt-line { font-size: .78em; color: var(--body); margin-top: .7em; }
.pt-card .p-btn { display: inline-block; margin-top: .8em; font-size: .82em; padding: .65em 1.2em; border-radius: .6em; }
.pt-msgs { background: #fff; border-radius: 1.1em; box-shadow: 0 1px 0 #ebe7df, 0 0 0 1px #f0ece5; overflow: hidden; }
.pt-msgs div { display: flex; align-items: center; gap: .6em; padding: .7em .9em; font-size: .78em; }
.pt-msgs div + div { border-top: 1px solid #f0ece5; }
.pt-msgs .av { font-size: .82em; }
.pt-msgs b { flex: 1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-msgs small { color: var(--muted); white-space: nowrap; }

/* The enquiry form, drawn from the real one: the label sits inside each box */
.phone.big { max-width: 330px; }
.ch-pic .phone.big { width: 64%; }
.enq { gap: .75em; padding: 1.4em 1.2em 1.2em; }
.enq .p-step { font-size: .85em; margin: 0; }
.enq .p-title { font-size: 1.9em; margin-bottom: .2em; }
.fl { background: #fff; border: 1.5px solid #d9d5cd; border-radius: .9em; padding: .55em .9em .6em; }
.fl span { display: block; font-size: .7em; color: var(--muted); }
.fl em { display: block; font-size: 1em; color: var(--ink); margin-top: .1em; }
.fl.on { border-color: var(--school); box-shadow: 0 0 0 .25em #dbe8f5; }
.fl.sel em { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2323' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 1.1em no-repeat; }
.fl.date em { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2323' stroke-width='2'%3E%3Crect x='4' y='5.5' width='16' height='14.5' rx='2'/%3E%3Cpath d='M4 10h16M8 3.5v4M16 3.5v4' stroke-linecap='round'/%3E%3C/svg%3E") right center / 1.1em no-repeat; }
.caret { display: inline-block; width: 1.5px; height: 1em; background: var(--school); margin-left: 1px; vertical-align: -.12em; animation: blink 1s steps(1) infinite; }
.enq .seg { margin-top: .6em; }
.enq .p-next .p-btn { font-size: .9em; padding: .65em 1.4em; border-radius: .7em; }

/* ---------- The story ---------- */
.story { padding-top: clamp(96px, 12vw, 160px); }
.tracker-wrap { position: sticky; top: calc(var(--header) + 4px); z-index: 20; display: flex; justify-content: center; margin-top: 40px; padding: 0 20px; }
.tracker {
  display: flex; gap: 4px; padding: 6px; background: #fff; border-radius: 999px; box-shadow: var(--float);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tracker::-webkit-scrollbar { display: none; }
.tracker li {
  flex: none; display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--muted); transition: background .3s ease, color .3s ease;
}
.tracker li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .3s ease; }
.tracker li.done { color: var(--ink); }
.tracker li.done::before { background: var(--mint-ink); }
.tracker li.now { background: var(--ink); color: #fff; }
.tracker li.now::before { background: #8be0b0; }

.chapters { padding-bottom: clamp(48px, 7vw, 96px); }
.chapter {
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(56px, 8vw, 104px) 0;
}
.chapter:nth-child(even) { grid-template-columns: 1.18fr 0.82fr; }
.chapter:nth-child(even) .ch-text { order: 2; }
.when { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--muted); }
.when::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.ch-text h3 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.038em; font-weight: 700; margin: 12px 0 18px; }
.ch-text > p:not(.when) { max-width: 470px; }
.ch-text > p + p { margin-top: 14px; }
.before { color: var(--muted); font-size: 16px; }
.before span {
  display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--body); background: #fff; box-shadow: var(--card);
  border-radius: 999px; padding: 1px 9px; margin-right: 8px; vertical-align: 1px;
}
.ai-line {
  display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600;
  background: linear-gradient(90deg, #5b47d6, #c2547a); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ai-line svg { width: 16px; height: 16px; color: #6b56e0; flex: none; }

/* Two chapters with wide screens get the full width: words on top, the screen below with room to breathe. */
.chapter.full, .chapter.full:nth-child(even) { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
.chapter.full .ch-text { order: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px); align-items: end; }
.chapter.full .ch-text > .when, .chapter.full .ch-text > h3 { grid-column: 1; }
.chapter.full .ch-text > h3 { margin-bottom: 0; }
.chapter.full .ch-text > p:not(.when) { grid-column: 2; max-width: 520px; }
.chapter.full .ch-text > .when { grid-row: 1; }
.chapter.full .ch-text > h3 { grid-row: 2 / span 3; align-self: start; }
.chapter.full .ch-text > p.before { grid-row: 2; margin-top: 12px; }
.chapter.full .ch-text > p:not(.when):not(.before) { grid-row: 3; }
.chapter.full .ch-pic { height: auto; padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px) clamp(140px, 14vw, 200px); }
.chapter.full .ch-pic.wide > .app { width: 100%; }
.chapter.full .ch-pic .app-in { font-size: 1.45cqi; }
.chapter.full .ch-pic .decide .app-in { font-size: 1.75cqi; }
.chapter.full .ch-pic.peach.wide > .app { width: 88%; }
.chapter.full .thread { width: 34%; right: 4%; bottom: clamp(24px, 3vw, 40px); border-radius: 16px; font-size: 13.5px; }
.chapter.full .modal { right: 4%; bottom: clamp(28px, 3vw, 44px); width: 330px; font-size: 14px; }

/* The coloured rooms behind each screen: the app's pastels, turned up. */
.ch-pic {
  position: relative; border-radius: 36px; height: clamp(400px, 44vw, 580px); overflow: hidden;
  display: flex; justify-content: center; align-items: flex-start; padding-top: clamp(32px, 4vw, 56px);
}
.ch-pic::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
.ch-pic.butter { background: radial-gradient(70% 60% at 25% 15%, #fff1c2 0, transparent 70%), linear-gradient(160deg, #ffe08a, #ffc36b); }
.ch-pic.sky { background: radial-gradient(70% 60% at 25% 15%, #e3f0ff 0, transparent 70%), linear-gradient(160deg, #b4d6ff, #8fb9f5); }
.ch-pic.lavender { background: radial-gradient(70% 60% at 25% 15%, #ece7ff 0, transparent 70%), linear-gradient(160deg, #cbbdff, #a996f5); }
.ch-pic.peach { background: radial-gradient(70% 60% at 25% 15%, #ffe6da 0, transparent 70%), linear-gradient(160deg, #ffc4a6, #ff9f7c); }
.ch-pic.mint { background: radial-gradient(70% 60% at 25% 15%, #e2f8ec 0, transparent 70%), linear-gradient(160deg, #aee6c6, #7fcfa5); }
.ch-pic .phone { width: 56%; }
.ch-pic.wide { justify-content: flex-start; padding-left: clamp(24px, 4vw, 48px); }
.ch-pic.wide > .app { width: 125%; max-width: none; flex: none; }
.ch-pic.peach.wide > .app { width: 118%; }
/* In a chapter the screen is narrower, so its text is drawn larger to stay readable. */
.ch-pic .app-in { font-size: 2.15cqi; }
.ch-pic .decide .app-in { font-size: 1.9cqi; }
.note-pic { left: 6%; bottom: 12%; }
.note-pic.low { bottom: 5%; }
.ch-pic:has(.phone.big) .note-pic { left: 4%; bottom: 6%; }

/* Things rise into place as you reach them. */
.js .reveal > .ch-pic > * { opacity: 0; translate: 0 28px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal > .ch-pic > .note { transition-delay: .35s; animation: none; }
.js .reveal.in > .ch-pic > * { opacity: 1; translate: 0 0; }

/* ---------- AI (coming soon): the one dark room on the page ---------- */
.ai {
  color: #e9e4f5; padding: clamp(88px, 11vw, 144px) 0;
  background:
    radial-gradient(45% 50% at 12% 0%, rgb(124 104 240 / .45), transparent 70%),
    radial-gradient(40% 45% at 95% 30%, rgb(255 140 110 / .25), transparent 70%),
    radial-gradient(60% 50% at 50% 110%, rgb(90 70 200 / .35), transparent 70%),
    var(--night);
}
.ai h2 { color: #fff; }
.ai .section-head > p:last-child { color: #c9c1de; }
.ai-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #fff;
  padding: 6px 14px 6px 12px; border-radius: 999px; margin-bottom: 22px;
  background: linear-gradient(#211a2e, #211a2e) padding-box, linear-gradient(90deg, #8f7cff, #ff9a78) border-box;
  border: 1px solid transparent;
}
.ai-chip svg { width: 15px; height: 15px; color: #b3a6ff; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.tile {
  position: relative; border-radius: 28px; padding: 22px; overflow: hidden;
  background: linear-gradient(rgb(255 255 255 / .07), rgb(255 255 255 / .025));
  border: 1px solid rgb(255 255 255 / .1); box-shadow: inset 0 1px 0 rgb(255 255 255 / .07);
}
.t-label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.t-label svg { width: 17px; height: 17px; color: #b3a6ff; }
.t-ask { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; }
.t-morning, .t-nudge { grid-column: span 2; }
.t-reply, .t-sum { grid-column: span 3; }

/* The Ask tile wears a slow, glowing edge. */
.t-ask::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), transparent 0 55%, #8f7cff 70%, #ff9a78 80%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.askbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; color: var(--ink);
  border-radius: 16px; padding: 14px 14px 14px 18px; font-size: clamp(15px, 1.5vw, 18px); font-weight: 600; min-height: 60px;
}
.askbar i { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #6b56e0, #c2547a); color: #fff; display: grid; place-items: center; flex: none; }
.askbar svg { width: 16px; }
.askbar span.typing::after, .c-text.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; background: currentColor; vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.answer { margin-top: 14px; flex: 1; background: #fff; border-radius: 20px; padding: 22px; color: var(--body); transition: opacity .5s ease, translate .5s ease; }
.answer.wait { opacity: 0; translate: 0 10px; }
.ans-seat { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.ring { width: 132px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; position: relative;
  background: conic-gradient(#6b56e0 calc(var(--p) * 1%), #ece9f7 0); }
.ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.ring b, .ring small { position: relative; }
.ring b { font-size: 34px; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.ring small { font-size: 12.5px; color: var(--muted); }
.ans-h { font-size: 13px; font-weight: 600; color: var(--muted); }
.ans-p { font-size: 17px; color: var(--ink); margin-top: 4px; line-height: 1.5; }
.ans-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ans-chips span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; background: var(--canvas); border-radius: 999px; padding: 4px 12px 4px 4px; color: var(--ink); }
.ans-chips .av { font-size: 10px; }

.brief { background: #fff; border-radius: 18px; padding: 16px 18px; color: var(--ink); }
.brief-hi { font-weight: 700; font-size: 16px; }
.brief ul { display: grid; gap: 8px; margin-top: 10px; font-size: 14.5px; color: var(--body); }
.brief li { display: flex; align-items: center; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.sky { background: #5b9be8; } .dot.peach { background: #f08a5d; } .dot.mint { background: #3fb27a; }

.compose { background: #fff; border-radius: 18px; padding: 16px 18px; color: var(--body); }
.c-to { font-size: 12.5px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.c-text { font-size: 15px; line-height: 1.55; margin-top: 10px; color: var(--ink); min-height: 4.7em; }
.c-tones { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; font-weight: 600; }
.c-tones span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.c-tones span.on { background: var(--lavender); border-color: var(--lavender); color: var(--lavender-ink); }
.c-tones em { margin-left: auto; background: var(--ink); color: #fff; border-radius: 8px; padding: 5px 12px; }

.sum { background: #fff; border-radius: 18px; padding: 16px 18px; color: var(--ink); font-size: 15px; line-height: 1.55; }
.sum-who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.sum-who .av { font-size: 10px; }
.sum-tags { display: flex; gap: 6px; margin-top: 12px; }
.sum-tags span { font-size: 12.5px; font-weight: 600; background: var(--butter); color: var(--butter-ink); border-radius: 999px; padding: 3px 10px; }

.nudge { display: grid; gap: 8px; }
.nudge li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; color: var(--ink); }
.nudge .av { font-size: 11px; }
.nudge b { display: block; font-size: 14px; font-weight: 600; }
.nudge small { display: block; font-size: 12px; color: var(--muted); }
.nudge em { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--lavender-ink); background: var(--lavender); border-radius: 999px; padding: 3px 10px; }
.ask-note { text-align: center; font-size: 14px; color: #a59cbc; margin-top: 24px; }

/* For your team */
.everyone { background: #fff; padding: clamp(88px, 11vw, 136px) 0; }
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.roles > li { border-radius: 28px; padding: 28px 24px 32px; }
.roles > li.sky { background: linear-gradient(160deg, #e3f0fb, #cfe3fa); }
.roles > li.butter { background: linear-gradient(160deg, #fcf3cf, #fbe6a4); }
.roles > li.lavender { background: linear-gradient(160deg, #eeeafc, #ddd5fb); }
.roles > li.peach { background: linear-gradient(160deg, #fdebe2, #fcd6c3); }
.role-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: #fff; box-shadow: 0 2px 0 rgb(45 35 35 / .06); }
.role-ic svg { width: 24px; height: 24px; }
.roles h3 { font-size: 20px; letter-spacing: -0.02em; font-weight: 700; margin-top: 28px; }
.roles p { font-size: 16px; margin-top: 6px; color: var(--body); }
.role-list { display: grid; gap: 8px; margin-top: 22px; }
.role-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; color: var(--ink); background: rgb(255 255 255 / .72); border-radius: 14px; padding: 10px 12px; box-shadow: 0 1px 0 rgb(45 35 35 / .05); }
.role-list svg { width: 20px; flex: none; padding: 4px; border-radius: 50%; color: #fff; margin-top: -1px; }
.roles > li.sky .role-list svg { background: var(--sky-ink); }
.roles > li.butter .role-list svg { background: var(--butter-ink); }
.roles > li.lavender .role-list svg { background: var(--lavender-ink); }
.roles > li.peach .role-list svg { background: var(--peach-ink); }
.roles > li.sky .role-ic { color: var(--sky-ink); }
.roles > li.butter .role-ic { color: var(--butter-ink); }
.roles > li.lavender .role-ic { color: var(--lavender-ink); }
.roles > li.peach .role-ic { color: var(--peach-ink); }

/* Contact */
.contact-wrap { padding: clamp(88px, 11vw, 136px) 0 0; }
.contact {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  background: radial-gradient(70% 90% at 100% 0%, #2f8a5c 0, transparent 60%), radial-gradient(50% 70% at 0% 100%, #174a31 0, transparent 70%), var(--mint-ink);
  color: #d7efe1; border-radius: 40px; padding: clamp(28px, 6vw, 72px);
}
.contact h2 { color: #fff; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -0.038em; font-weight: 700; }
.contact-text > p:not(.kicker) { font-size: 18px; margin-top: 16px; max-width: 460px; }
.contact-text ul { display: grid; gap: 12px; margin-top: 24px; }
.contact-text li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.contact-text li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: #8be0b0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #fff; border-radius: 28px; padding: clamp(20px, 3vw, 32px); color: var(--ink); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45); }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--canvas); border: 1px solid transparent;
  border-radius: 14px; padding: 12px 14px; width: 100%; resize: vertical; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.form input:hover, .form textarea:hover { border-color: var(--line); }
.form input:focus, .form textarea:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px var(--line-soft); }
.form .btn { width: 100%; border: 0; cursor: pointer; margin-top: 4px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.soon { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 28px; }
.soon-label { font-size: 15px; font-weight: 600; color: var(--muted); }
.soon ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.soon li { background: #fff; box-shadow: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 14.5px; font-weight: 500; color: var(--body); }

/* Questions */
.faq-wrap { padding: clamp(88px, 11vw, 136px) 0; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 20px; box-shadow: var(--card); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px;
  cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; color: var(--ink); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: rotate .25s ease; }
.faq details[open] summary svg { rotate: 45deg; }
.faq details p { padding: 0 24px 22px; max-width: 600px; }

/* Closing */
.closing {
  text-align: center; padding: clamp(96px, 12vw, 160px) 0;
  background: radial-gradient(40% 60% at 50% 100%, #ffe08a 0, transparent 70%), radial-gradient(35% 50% at 15% 60%, #d9d0ff 0, transparent 70%), radial-gradient(30% 45% at 88% 40%, #ffd2bd 0, transparent 70%);
}
.closing h2 { max-width: 780px; margin-inline: auto; }
.closing p { font-size: 20px; margin: 20px 0 30px; }
.mail { display: block; width: fit-content; margin: 16px auto 0; color: var(--muted); font-weight: 500; text-decoration: none; }
.mail:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 15px; color: var(--muted); }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-row img { width: 108px; }
.foot-row span { margin-left: auto; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .t-ask { grid-column: span 2; grid-row: auto; }
  .t-morning, .t-nudge, .t-reply, .t-sum { grid-column: span 1; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .top-row { justify-content: space-between; }
  .chapter, .chapter:nth-child(even), .contact, .faq-grid { grid-template-columns: 1fr; }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo-fam .phone { max-width: 240px; }
  .chapter { gap: 28px; padding: 48px 0; }
  .chapter:nth-child(even) .ch-text { order: 0; }
  .chapter.full .ch-text { display: block; }
  .chapter.full .ch-pic .app-in { font-size: 1.9cqi; }
  .chapter.full .thread { width: 52%; }
  .chapter.full .modal { width: 62%; }
  .roles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand img { width: 108px; }
  .btn-small { padding: 0 14px; font-size: 14px; }
  .ctas .btn-big { width: 100%; }
  .stage-app .app-in { font-size: 10.5px; aspect-ratio: auto; height: 470px; grid-template-columns: minmax(0, 1fr); }
  .stage-app .a-side { display: none; }
  .stage-app .a-tools i:not(.dark) { display: none; }
  .stage-app .board { overflow-x: auto; grid-template-columns: repeat(5, 150px); scrollbar-width: none; }
  .cp-grid { grid-template-columns: 1fr; }
  .cp-side { display: none; }
  .note { padding: 8px 12px 8px 8px; gap: 9px; border-radius: 14px; }
  .note b { font-size: 13px; }
  .note small { font-size: 11.5px; }
  .note-dot { width: 28px; height: 28px; border-radius: 9px; }
  .note-dot svg { width: 16px; height: 16px; }
  .sample { margin-top: 20px; }
  .tracker-wrap { justify-content: flex-start; padding: 0 12px; }
  .tracker li { font-size: 13px; padding: 6px 11px; }
  .ch-pic { border-radius: 26px; height: 420px; }
  .ch-pic .phone { width: 70%; }
  .ch-pic.wide > .app { width: 190%; }
  .ch-pic.peach.wide > .app { width: 160%; }
  .thread { width: 62%; right: 4%; font-size: 11px; padding: 10px; }
  /* On a phone the wide chapters stack: the screen, then its card tucked under it. */
  .chapter.full .ch-pic { flex-direction: column; padding: 24px 16px 20px; }
  .chapter.full .ch-pic.wide > .app, .chapter.full .ch-pic.peach.wide > .app { width: 150%; }
  .chapter.full .ch-pic .app-in { font-size: 1.9cqi; }
  .chapter.full .ch-pic .decide .app-in { font-size: 2.1cqi; }
  .chapter.full .modal { font-size: 12px; }
  .chapter.full .thread, .chapter.full .modal { position: relative; right: auto; bottom: auto; width: 86%; align-self: flex-end; margin-top: -28px; }
  .t-head b { font-size: 12px; }
  .bubble { padding: 7px 9px; margin-top: 7px; }
  .modal { width: 68%; right: 5%; bottom: 7%; font-size: 11.5px; padding: 13px; }
  .m-title { font-size: 14px; }
  .m-btns { font-size: 12px; margin-top: 10px; }
  .score { width: 90%; padding: 16px; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .t-ask, .t-morning, .t-nudge, .t-reply, .t-sum { grid-column: auto; }
  .ans-seat { grid-template-columns: 1fr; justify-items: start; gap: 16px; }
  .ring { width: 104px; }
  .ring b { font-size: 28px; }
  .roles { grid-template-columns: 1fr; }
  .roles h3 { margin-top: 24px; }
  .contact { border-radius: 28px; }
  .form { grid-template-columns: 1fr; border-radius: 22px; }
  .foot-row span { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal > .ch-pic > * { opacity: 1; translate: 0 0; }
}
