/*
  IVE public site.

  Built on the Nuvio 360 family's foundations (Geist, cool greys, pill
  controls, a faint glow and grain, as on NuViOLive and NuViO PulsCare),
  then taken down to ink and paper. One accent, cobalt, does three jobs
  only: links, the focus ring, and "bookable" in the time-zone planner.
  Primary buttons are ink. Screenshots sit on a mat, like prints.
  Kalam is used for one thing: handwriting on a whiteboard.
*/

:root, [data-theme="light"] {
  --bg: #FFFFFF;
  --mist: #F5F6F8;
  --raised: #FFFFFF;
  --text: #121828;
  --text-2: #4D5466;
  --text-3: #7A8091;
  --line: #E8EAEE;
  --line-2: #D9DCE3;
  --accent: #2563EB;
  --accent-ink: #1D4ED8;
  --btn: #121828;
  --btn-text: #FFFFFF;
  --btn-hover: #2A3245;
  --shadow-print: 0 1px 2px rgba(18, 24, 40, .06), 0 18px 40px -22px rgba(18, 24, 40, .28);
  --glow: rgba(37, 99, 235, .10);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0C101C;
  --mist: #121726;
  --raised: #151B2B;
  --text: #ECEEF3;
  --text-2: #A7ADBC;
  --text-3: #7D8496;
  --line: #222838;
  --line-2: #2E3547;
  --accent: #6E9DF9;
  --accent-ink: #8DB0FB;
  --btn: #ECEEF3;
  --btn-text: #0C101C;
  --btn-hover: #FFFFFF;
  --shadow-print: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -22px rgba(0, 0, 0, .8);
  --glow: rgba(110, 157, 249, .12);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16.5px/1.65 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent-ink); }
h1, h2, h3 { margin: 0; font-weight: 500; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(44px, 6.2vw, 84px); line-height: 1; letter-spacing: -.052em; }
h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -.042em; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.018em; }
p { margin: 0; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--btn); color: var(--btn-text); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 12px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap.narrow { max-width: 780px; }
.lead { font-size: clamp(17.5px, 1.45vw, 20px); line-height: 1.6; color: var(--text-2); max-width: 54ch; margin-top: 26px; font-weight: 400; }
.sub { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 56ch; margin-top: 16px; }
.fine { font-size: 13.5px; line-height: 1.55; color: var(--text-3); margin-top: 16px; max-width: 80ch; }
.fine a { color: var(--text-2); text-underline-offset: 3px; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 17px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 14.5px; font-weight: 500; line-height: 1.2; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
.btn.lg { padding: 14px 24px; font-size: 15.5px; }
.btn.primary { background: var(--btn); color: var(--btn-text); }
.btn.primary:hover { background: var(--btn-hover); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--text-3); }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px;
  border: 0; background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--mist); color: var(--text); }
[data-theme="light"] .icon-btn .moon, [data-theme="dark"] .icon-btn .sun { display: none; }
.text-link { display: inline-block; margin-top: 18px; color: var(--text); font-weight: 500; font-size: 15px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-decoration-color .18s; }
.text-link:hover { text-decoration-color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta-row.center { justify-content: center; }

/* ------------------------------------------------------------ header */
.head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: .02em; }
.brand img { width: 32px; height: auto; }
.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 14.5px; padding: 8px 13px; border-radius: 999px; transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { background: var(--mist); }
.nav .nav-only-menu { display: none; }
.head-actions { display: flex; align-items: center; gap: 6px; }
.head-link { color: var(--text-2); text-decoration: none; font-size: 14.5px; padding: 8px 12px; }
.head-link:hover { color: var(--text); }
.menu { display: none; }

/* ------------------------------------------------------------ glow */
.glow {
  position: absolute; inset: -30% -10% auto; height: 130%; pointer-events: none; z-index: 0;
  background: radial-gradient(38% 42% at 76% 32%, var(--glow), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 92%); mask-image: linear-gradient(180deg, #000 50%, transparent 92%);
}
.glow::after {
  content: ""; position: absolute; inset: 0; opacity: .28; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; margin-bottom: 30px; }
.kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.hero-facts {
  position: relative; z-index: 1; list-style: none; padding: 0; margin: 88px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.hero-facts li { padding: 26px 24px 30px 0; color: var(--text-3); font-size: 14.5px; line-height: 1.5; }
.hero-facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-facts b { display: block; color: var(--text); font-weight: 500; font-size: 15.5px; margin-bottom: 4px; }

/* The board: the one moment on the page that moves on its own. */
.board {
  margin: 0; border-radius: 22px; background: #121828; color: #ECEEF3; padding: 14px;
  box-shadow: 0 40px 80px -40px rgba(18, 24, 40, .55), 0 0 0 1px rgba(255, 255, 255, .04);
}
.board-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 6px 6px 14px; }
.board-bar strong { display: block; font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.board-bar span { font-size: 12.5px; color: #8E95A8; }
.clock { flex: none; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .07); color: #ECEEF3 !important; padding: 5px 11px; border-radius: 999px; }
.board-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.board-paper { background: #FBFBFC; border-radius: 14px; padding: 8px; min-height: 280px; display: grid; place-items: center; }
.ink { width: 100%; height: auto; overflow: visible; }
.hw { font-family: "Kalam", "Segoe Print", cursive; font-size: 27px; fill: #1B2233; }
.hw.soft { fill: #5C6375; font-size: 22px; }
.hw-line { fill: none; stroke: #2563EB; stroke-width: 2.4; stroke-linecap: round; }
.chat { list-style: none; margin: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; line-height: 1.45; background: rgba(255, 255, 255, .035); border-radius: 14px; }
.chat b { display: block; font-weight: 500; font-size: 11.5px; color: #8E95A8; margin-bottom: 1px; letter-spacing: .01em; }
.chat .you b { color: #A9C1FB; }
.board figcaption { font-size: 13px; color: #8E95A8; padding: 12px 6px 2px; }

.motion .hw { clip-path: inset(0 100% 0 0); animation: write 1.1s steps(22, end) forwards; }
.motion .hw-line { stroke-dasharray: 320; stroke-dashoffset: 320; animation: stroke .8s ease-out forwards; }
.motion .chat li { opacity: 0; transform: translateY(6px); animation: say .5s cubic-bezier(.2,.8,.2,1) forwards; }
.motion .c1 { animation-delay: .5s !important; }
.motion .c2 { animation-delay: 1.6s !important; }
.motion .l1 { animation-delay: 2.2s; }
.motion .c3 { animation-delay: 3.5s !important; }
.motion .c4 { animation-delay: 4.7s !important; }
.motion .l2 { animation-delay: 5.2s; }
.motion .l3 { animation-delay: 6.3s; }
.motion .l4 { animation-delay: 7.5s; }
.motion .c5 { animation-delay: 7.9s !important; }
.motion .l5 { animation-delay: 8.4s; }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
@keyframes stroke { to { stroke-dashoffset: 0; } }
@keyframes say { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ sections */
.section { position: relative; padding: 128px 0; }
.band { background: var(--mist); }
.split-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 64px; }
.split-head .sub { margin-top: 0; }

/* Screenshots are prints on a mat. */
.mat { background: var(--mist); border-radius: 24px; padding: clamp(14px, 2.6vw, 36px); }
.band .mat { background: var(--bg); }
.mat img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow-print); background: #fff; }
.mat.wide { margin-top: 64px; }
.mat.crop img { aspect-ratio: 16 / 7.5; object-fit: cover; object-position: top; }

/* Who it's for */
.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--text); }
.audience article { padding: 28px 32px 8px 0; }
.audience article + article { padding-left: 32px; border-left: 1px solid var(--line); }
.audience h3 { font-size: 22px; letter-spacing: -.025em; }
.audience p { color: var(--text-2); margin-top: 12px; font-size: 15.5px; }

.ledger-wrap { margin-top: 80px; }
.ledger { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.ledger caption { text-align: left; font-size: 15px; color: var(--text-2); padding-bottom: 16px; caption-side: top; }
.ledger th, .ledger td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.ledger thead th { font-size: 13px; font-weight: 400; color: var(--text-3); border-bottom-color: var(--text); padding-top: 0; padding-bottom: 12px; }
.ledger tbody th { font-weight: 500; }
.ledger td { color: var(--text-2); }
.ledger .num { color: var(--text); font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Portal tabs: a quiet segmented control. */
.tablist { display: inline-flex; gap: 2px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 48px; }
.tablist button {
  font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1; color: var(--text-3); background: transparent; border: 0;
  padding: 11px 24px; border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s;
}
.tablist button:hover { color: var(--text); }
.tablist button[aria-selected="true"] { background: var(--btn); color: var(--btn-text); }
.tabpanel { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 64px; align-items: center; }
.tabpanel[hidden] { display: none; }
.tabpanel:not([hidden]) .mat { animation: swap .4s cubic-bezier(.2,.8,.2,1); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.role-copy h3 { font-size: clamp(24px, 2.3vw, 32px); letter-spacing: -.03em; line-height: 1.15; }

/* Lists: a short rule in front of each line, nothing louder. */
.rules { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 13px; }
.rules li { position: relative; padding-left: 28px; color: var(--text-2); }
.rules li::before { content: ""; position: absolute; left: 0; top: .82em; width: 14px; height: 1px; background: var(--text-3); }
.rules.big { gap: 0; font-size: 17px; margin-top: 0; border-top: 1px solid var(--line); }
.rules.big li { padding: 18px 0 18px 28px; border-bottom: 1px solid var(--line); color: var(--text); }
.rules.big li::before { top: 1.62em; }
.rules.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 48px; margin-top: 56px; }

/* A real sequence, so it is numbered. */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; position: relative; }
.flow::before { content: ""; position: absolute; top: 18px; left: 18px; right: 18px; height: 1px; background: var(--line-2); }
.flow li { counter-increment: step; position: relative; padding-right: 26px; }
.flow li::before {
  content: counter(step); display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font-size: 14.5px; font-variant-numeric: tabular-nums;
  margin-bottom: 22px; position: relative;
}
.band .flow li::before { background: var(--mist); }
.flow li:last-child::before { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.flow h3 { font-size: 19px; }
.flow p { color: var(--text-2); margin-top: 8px; font-size: 15px; }

/* The time-zone planner */
.tz { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 36px; }
.tz-controls { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: end; margin-bottom: 34px; }
.tz-controls > label { display: grid; gap: 8px; font-size: 13.5px; color: var(--text-3); }
.tz select {
  font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--text); background-color: var(--bg);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 40px 10px 18px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8091' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 15px;
}
.seg-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg-field legend { font-size: 13.5px; color: var(--text-3); padding: 0; margin-bottom: 8px; }
.seg { display: grid; grid-auto-flow: column; justify-content: start; gap: 2px; background: var(--mist); border-radius: 999px; padding: 4px; }
.seg label { position: relative; padding: 7px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text-3); cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(18, 24, 40, .12); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.tz-rows { display: grid; gap: 12px; }
.tz-row { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: center; }
.tz-row > span { font-size: 13.5px; color: var(--text-3); line-height: 1.35; }
.tz-row > span b { display: block; color: var(--text); font-weight: 500; font-size: 14.5px; }
.track { position: relative; height: 36px; border-radius: 10px; background: var(--mist); }
.track i { position: absolute; top: 0; bottom: 0; border-radius: 9px; transition: left .5s cubic-bezier(.2,.8,.2,1), width .5s cubic-bezier(.2,.8,.2,1); }
.track .t { box-shadow: inset 0 0 0 1.5px var(--text); }
.track .s { background: var(--line-2); }
.track .b { background: var(--accent); }
.track .lbl { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 8px; font-size: 12.5px; font-weight: 500; color: var(--text); white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.track .b + .lbl { color: #fff; }
.hours { position: relative; height: 18px; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.hours span { position: absolute; transform: translateX(-50%); }
.tz-out { margin-top: 26px; font-size: 16.5px; color: var(--text); max-width: 70ch; }
.tz-out strong { font-weight: 600; }
.tz-key { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 13.5px; color: var(--text-3); }
.tz-key li { display: flex; align-items: center; gap: 8px; }
.tz-key i { width: 14px; height: 14px; border-radius: 4px; }
.k-t { box-shadow: inset 0 0 0 1.5px var(--text); }
.k-s { background: var(--line-2); }
.k-b { background: var(--accent); }

/* The one dark room on the page: it is dark in the product too. */
.dark-band { background: #0C101C; color: #ECEEF3; }
[data-theme="dark"] .dark-band { background: #070A13; }
.dark-band h2, .dark-band h3 { color: #ECEEF3; }
.dark-band .sub, .dark-band .spec p { color: #A7ADBC; }
.spec { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.spec li { border-top: 1px solid #262C3C; padding-top: 22px; }
.spec p { margin-top: 8px; font-size: 15px; }

/* AI pair */
.ai-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.ai-card h3 { margin-top: 32px; font-size: 24px; letter-spacing: -.028em; }
.ai-card p { color: var(--text-2); margin-top: 12px; max-width: 52ch; }
.ai-card em, .steps em { font-style: normal; font-weight: 500; color: var(--text); }

/* Four short blocks, divided by rules rather than boxed. */
.between { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
h2 + .between { margin-top: 56px; }
.between > div { border-top: 1px solid var(--text); padding-top: 22px; }
.between p { color: var(--text-2); margin-top: 10px; font-size: 15px; }

/* A statement on the left, plain facts on the right */
.safe { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
.safe .btn { margin-top: 34px; }
.facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 500; color: var(--text); }
.facts dd { margin: 0; color: var(--text-2); }
.two .facts { margin-top: 32px; }

/* Film */
.film-band { padding-top: 32px; }
.film-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 64px; align-items: center; }
.film { width: 100%; border-radius: 18px; background: #0C101C; aspect-ratio: 16 / 9; box-shadow: 0 40px 80px -40px rgba(18, 24, 40, .5); }
.film.big { margin-top: 48px; }

/* Closing */
.closing { text-align: center; padding: 144px 0 152px; background: var(--mist); position: relative; }
.band + .closing { background: var(--bg); border-top: 1px solid var(--line); }
.closing-inner h2 { font-size: clamp(36px, 4.8vw, 64px); max-width: 16ch; margin: 0 auto; }
.closing-inner .sub { margin: 20px auto 0; }

/* ------------------------------------------------------------ inner pages */
.page-head { position: relative; overflow: hidden; padding: 104px 0 88px; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { max-width: 16ch; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.toc a { padding: 9px 17px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 14.5px; transition: border-color .18s; }
.toc a:hover { border-color: var(--text-3); }
.page-head + .section { padding-top: 48px; }

.two { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 72px; align-items: center; }
.two.flip > :first-child { order: 2; }
.two-text { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; }
.two-text p { color: var(--text-2); margin-top: 18px; max-width: 54ch; }

.steps { margin: 28px 0 0; padding-left: 22px; display: grid; gap: 13px; color: var(--text-2); }
.steps li { padding-left: 6px; }
.steps li::marker { color: var(--text-3); font-variant-numeric: tabular-nums; }

.ages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--text); }
.ages > div { padding: 28px 32px 0 0; }
.ages > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.ages h3 { font-size: 30px; letter-spacing: -.035em; }
.ages p { color: var(--text-2); margin-top: 12px; }

.status { display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 15px; max-width: 70ch; background: var(--bg); }
.status .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 56px; }
.problems > div { border-top: 1px solid var(--text); padding-top: 24px; }
.problems h3 { font-size: 24px; letter-spacing: -.028em; }
.problems p { color: var(--text-2); margin-top: 12px; }
.problems .answer { color: var(--text); margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

/* The chart: one series, so one ink, no legend; the caption names it. */
.chart { margin: 0; background: var(--bg); border-radius: 24px; padding: 36px; border: 1px solid var(--line); }
.chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.chart figcaption strong { font-weight: 500; font-size: 18px; letter-spacing: -.015em; }
.chart figcaption span { color: var(--text-3); font-size: 13.5px; }
.bars { display: grid; gap: 22px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; position: relative; }
.bar-row > span { font-size: 15px; color: var(--text); }
.bar-track { position: relative; height: 22px; }
.bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--text); border-radius: 0 4px 4px 0; transition: opacity .15s; }
.bar-val { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 12px; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.bars:hover .bar { opacity: .35; }
.bars .bar-row:hover .bar, .bars .bar-row:focus-within .bar { opacity: 1; }
.bar-hit { position: absolute; inset: -9px 0; cursor: default; border-radius: 6px; }
.bar-hit:focus-visible { outline-offset: 0; }
.tip {
  position: absolute; z-index: 5; pointer-events: none; background: var(--btn); color: var(--btn-text);
  font-size: 13px; line-height: 1.45; padding: 9px 12px; border-radius: 10px; max-width: 280px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .4); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.tip.on { opacity: 1; transform: none; }
.chart-table { margin-top: 26px; }
.chart-table summary { cursor: pointer; color: var(--text-2); font-size: 14px; }
.chart-table .ledger { margin-top: 14px; font-size: 14.5px; }
.context { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 56px; }
.context > div { border-top: 1px solid var(--text); padding-top: 22px; }
.context h3 { font-size: 30px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.context p { color: var(--text-2); margin-top: 10px; font-size: 15px; }
.sources { margin-top: 40px; }

.table-wrap { overflow-x: auto; border-top: 1px solid var(--text); }
.status-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 640px; }
.status-table th, .status-table td { text-align: left; padding: 17px 20px 17px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.status-table thead th { font-size: 13px; font-weight: 400; color: var(--text-3); }
.status-table tbody th { font-weight: 500; white-space: nowrap; }
.status-table td { color: var(--text-2); }
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; white-space: nowrap; color: var(--text); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.tag.ok::before { background: var(--text); }
.tag.next { color: var(--text-3); }
.tag.next::before { box-shadow: inset 0 0 0 1.5px var(--text-3); }

.numbers { margin: 26px 0 0; display: grid; border-top: 1px solid var(--line); }
.numbers > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.numbers dt { font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.numbers dd { margin: 4px 0 0; color: var(--text-2); }

.units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.units > div { background: var(--bg); padding: 24px; }
.units h3 { font-size: 15.5px; font-weight: 500; }
.units p { color: var(--text-3); font-size: 14.5px; margin-top: 4px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--text); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 44px 24px 0; font-size: 19px; font-weight: 500; position: relative; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--text-2); transition: transform .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { color: var(--text-2); padding: 0 44px 26px 0; max-width: 64ch; }

/* ------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line); padding: 80px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; }
.foot-brand p { color: var(--text-3); font-size: 14.5px; margin-top: 16px; max-width: 36ch; }
.foot nav { display: grid; gap: 10px; align-content: start; }
.foot h2 { font-size: 13.5px; font-weight: 400; letter-spacing: 0; color: var(--text-3); margin-bottom: 6px; }
.foot nav a { color: var(--text); text-decoration: none; font-size: 14.5px; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13.5px; }
.foot-base a { color: var(--text-2); text-underline-offset: 3px; }

/* ------------------------------------------------------------ the classroom, drawn */
.room { margin: 0; background: #151B2B; border-radius: 22px; padding: 14px; color: #ECEEF3; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .05); }
.room-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 4px 6px 14px; }
.room-bar strong { display: block; font-weight: 500; font-size: 15.5px; }
.room-bar span { font-size: 12.5px; color: #8E95A8; }
.room-pills { display: flex; gap: 6px; flex: none; }
.room-pills span { background: rgba(255, 255, 255, .07); color: #ECEEF3; padding: 5px 11px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.room-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.4fr); gap: 10px; }
.tiles { display: grid; gap: 10px; }
.tile { position: relative; background: #20283B; border-radius: 14px; display: grid; place-items: center; min-height: 130px; }
.face { width: 62px; height: 62px; border-radius: 50%; background: #2A3450; display: grid; place-items: center; font-size: 24px; font-weight: 500; color: #ECEEF3; }
.tile.talking .face { box-shadow: 0 0 0 3px #20283B, 0 0 0 5px #ECEEF3; }
.who { position: absolute; left: 10px; bottom: 10px; font-size: 12px; background: rgba(12, 16, 28, .7); padding: 3px 8px; border-radius: 6px; }
.room-board { background: #FBFBFC; border-radius: 14px; padding: 10px; display: grid; place-items: center; }
.room-board svg { width: 100%; height: auto; }
.room-board .hw { font-size: 34px; }
.room-board .hw.small { font-size: 22px; fill: #5C6375; }
.room-board .hw.blue { font-size: 22px; fill: #2563EB; }
.pie circle { fill: none; stroke: #1B2233; stroke-width: 2.4; }
.pie .fill { fill: rgba(37, 99, 235, .22); stroke: #1B2233; stroke-width: 2.4; }
.pie .cut { stroke: #1B2233; stroke-width: 1.4; fill: none; }
.room-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 14px; }
.room-controls span { font-size: 12.5px; font-weight: 500; padding: 8px 13px; border-radius: 10px; background: #252D42; color: #D7DBE5; }
.room-controls .on { background: #ECEEF3; color: #121828; }
.room-controls .leave { background: #3A2430; color: #F2A3AC; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .hero-grid, .tabpanel, .two, .safe, .film-grid, .two-text, .split-head { grid-template-columns: 1fr; gap: 44px; }
  .two.flip > :first-child { order: 0; }
  .split-head { gap: 0; margin-bottom: 48px; }
  .split-head .sub { margin-top: 16px; }
  .between, .spec, .units, .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .problems, .context, .ai-pair { grid-template-columns: 1fr; }
  .audience, .ages { grid-template-columns: 1fr; }
  .audience article + article, .ages > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .audience article, .ages > div { padding: 24px 0; }
  .flow { grid-template-columns: 1fr; gap: 30px; }
  .flow::before { top: 18px; bottom: 18px; left: 18px; right: auto; width: 1px; height: auto; }
  .flow li { padding: 0 0 0 62px; }
  .flow li::before { position: absolute; left: 0; top: -6px; margin: 0; }
}
@media (max-width: 880px) {
  .menu { display: inline-grid; }
  .head-actions .btn, .head-link { display: none; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { background: transparent; }
  .nav .nav-only-menu { display: block; border-bottom: 0; }
  .head-actions { margin-left: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .section { padding: 88px 0; }
  .hero { padding-top: 40px; }
  .hero-facts { margin-top: 56px; grid-template-columns: 1fr; }
  .hero-facts li, .hero-facts li + li { padding: 18px 0; border-left: 0; }
  .hero-facts li + li { border-top: 1px solid var(--line); }
  .board-body { grid-template-columns: 1fr; }
  .board-paper { min-height: 0; }
  .between, .spec, .units, .rules.cols { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .tz, .chart { padding: 22px; }
  .tz-row, .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .track .lbl { font-size: 11px; margin-left: 5px; }
  .tablist { display: flex; }
  .tablist button { flex: 1; padding: 11px 10px; }
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .ledger th, .ledger td { border: 0; padding: 2px 0; }
  .ledger td:nth-child(2) { grid-row: 2; }
  .ledger td:last-child { grid-column: 1 / -1; font-size: 13.5px; color: var(--text-3); }
  .mat.crop img { aspect-ratio: 4 / 3; }
  .room-body { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { min-height: 96px; }
  .room-pills span:last-child { display: none; }
  .closing { padding: 104px 0 112px; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------------------ second pass */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Page changes: the new page fades in, answering the click. */
main { transition: opacity .28s ease; }
main.entering { opacity: 0; transition: none; }

/* The current page is underlined, not boxed. */
.nav a[aria-current="page"] { background: transparent; color: var(--text); box-shadow: inset 0 -1px 0 var(--text); border-radius: 0; }

.hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Who it's for: a big heading across, three columns beneath. */
.for-three h2 { max-width: 14ch; margin-bottom: 56px; font-size: clamp(36px, 4.6vw, 64px); }

/* The AI statement: centred, because it is the one claim the page argues. */
.statement { text-align: center; }
.statement h2 { font-size: clamp(36px, 4.8vw, 66px); max-width: 15ch; margin: 0 auto; }
.statement .sub { margin: 22px auto 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 64px auto 48px; max-width: 980px; text-align: left; border-top: 1px solid var(--text); }
.pair > div { padding: 28px 40px 0 0; }
.pair > div + div { padding: 28px 0 0 40px; border-left: 1px solid var(--line); }
.pair h3 { font-size: 22px; letter-spacing: -.025em; }
.pair p { color: var(--text-2); margin-top: 12px; font-size: 15.5px; }

@media (max-width: 760px) {
  .pair { grid-template-columns: 1fr; }
  .pair > div, .pair > div + div { padding: 24px 0; border-left: 0; }
  .pair > div + div { border-top: 1px solid var(--line); }
  .hero-facts { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) and (min-width: 761px) {
  .hero-facts li:nth-child(3) { padding-left: 24px; border-left: 1px solid var(--line); border-top: 0; }
}
@media (max-width: 760px) {
  .hero-facts { margin-top: 56px; }
  .hero-facts li, .hero-facts li + li { padding: 18px 0; border-left: 0; }
  .hero-facts li + li { border-top: 1px solid var(--line); }
}

/* Around every lesson. The control is a diagram of a lesson: what comes
   before it, the lesson itself, what comes after, a branch for the one you
   miss, and a bracket under all of it for what is always true. Each part is
   a tab; the panel under it says who does what, beside the real screen. */
.cycle {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "before during after" ". missed ." "always always always";
  align-items: center; row-gap: 0; margin: 8px 0 56px;
}
.cycle button {
  font-family: inherit; font-size: 15.5px; font-weight: 500; color: var(--text-3);
  background: transparent; border: 0; cursor: pointer; padding: 0; transition: color .2s;
}
.cycle button:hover, .cycle button[aria-selected="true"] { color: var(--text); }
.ph-line { display: block; flex: 1; height: 1px; background: var(--line-2); transition: background-color .25s; }
.cycle [aria-selected="true"] .ph-line { background: var(--text); }

.ph-before { grid-area: before; display: flex; align-items: center; gap: 18px; height: 56px; }
.ph-after { grid-area: after; display: flex; align-items: center; gap: 18px; height: 56px; }
.ph-after .ph-label { order: 2; }

/* The lesson itself: the one solid object on the line. */
.ph-during {
  grid-area: during; position: relative; height: 56px; padding: 0 28px !important; border-radius: 999px;
  border: 1px solid var(--text) !important; color: var(--text) !important; background: var(--bg) !important;
}
.ph-during[aria-selected="true"] { background: var(--btn) !important; color: var(--btn-text) !important; border-color: var(--btn) !important; }

/* The missed lesson hangs off the lesson by a dashed thread. */
.ph-missed { grid-area: missed; position: relative; padding-top: 44px !important; padding-bottom: 6px !important; }
.ph-missed::before {
  content: ""; position: absolute; left: 50%; top: 0; height: 36px; border-left: 1px dashed var(--line-2); transition: border-color .25s;
}
.ph-missed[aria-selected="true"]::before { border-left-color: var(--text); }

/* What is always true is a bracket under the whole line. */
.ph-always { grid-area: always; position: relative; margin-top: 28px; padding-top: 22px !important; }
.ph-always::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 8px 8px; transition: border-color .25s;
}
.ph-always[aria-selected="true"]::before { border-color: var(--text); }

.phase-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.phase-panel[hidden] { display: none; }
.phase-panel:not([hidden]) { animation: swap .4s cubic-bezier(.2,.8,.2,1); }
.roles-dl { margin: 0; border-top: 1px solid var(--text); }
.roles-dl > div { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.roles-dl dt { font-weight: 500; color: var(--text); }
.roles-dl dd { margin: 6px 0 0; color: var(--text-2); font-size: 15.5px; }

/* Every frame is the same size, so changing moment never moves the page. */
.phase-shot { position: relative; aspect-ratio: 3 / 2; }
.band .phase-shot { background: var(--bg); }
.phase-shot img {
  position: absolute; inset: clamp(14px, 2.6vw, 36px);
  width: calc(100% - 2 * clamp(14px, 2.6vw, 36px)); height: calc(100% - 2 * clamp(14px, 2.6vw, 36px));
  max-width: none; object-fit: contain; background: transparent; box-shadow: none; border-radius: 0;
  filter: drop-shadow(0 1px 1px rgba(18, 24, 40, .08)) drop-shadow(0 14px 22px rgba(18, 24, 40, .14));
}

/* The AI statement on the dark band. */
.dark-band .pair { border-top-color: #ECEEF3; }
.dark-band .pair > div + div { border-left-color: #262C3C; }
.dark-band .pair p { color: #A7ADBC; }
.dark-band .btn.ghost { color: #ECEEF3; border-color: #323A55; }
.dark-band .btn.ghost:hover { border-color: #7D8496; }

@media (max-width: 1080px) {
  .phase-panel { grid-template-columns: 1fr; gap: 32px; }
}
/* On a phone the diagram becomes a plain list of the same five moments,
   with the lesson still drawn as the solid one. */
@media (max-width: 760px) {
  .cycle { display: flex; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line-2); margin-bottom: 36px; }
  .cycle button { display: flex; align-items: center; height: auto; padding: 14px 0 !important; border-bottom: 1px solid var(--line-2) !important; text-align: left; }
  .cycle .ph-line, .ph-missed::before, .ph-always::before { display: none; }
  .ph-after .ph-label { order: 0; }
  .ph-during { border: 0 !important; border-radius: 0; background: transparent !important; color: var(--text-3) !important; }
  .ph-during[aria-selected="true"], .cycle button[aria-selected="true"] { background: transparent !important; color: var(--text) !important; box-shadow: inset 3px 0 0 var(--text); padding-left: 14px !important; }
  .ph-missed, .ph-always { margin: 0; }
  .dark-band .pair > div + div { border-top-color: #262C3C; }
}
.phase-room .tile { min-height: 120px; }
.phase-room .face { width: 50px; height: 50px; font-size: 20px; }

/* The tagline: one short sentence to a line. */
.tagline span { display: block; }
.tagline { font-size: clamp(34px, 4.6vw, 66px); }
.tagline span { white-space: nowrap; }

/* A larger mark in the header and footer. */
.brand { gap: 12px; font-size: 20px; }
.brand img { width: 46px; }
.foot .brand img { width: 42px; }
