/* Classroom Made Simple — website.
   Same palette and type as the app (src/styles/tokens.css), so the
   screenshots and the page read as one product. */
@font-face { font-family: 'Lexend'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/lexend-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B1, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lexend'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/lexend-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('../fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B1, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --paper: #FAF6EF; --surface: #FFFFFF; --surface-2: #F4EFE6; --surface-3: #EBE4D8;
  --ink: #1F1B16; --ink-2: #4A433A; --muted: #6E6457;
  --line: #E6DED1; --line-strong: #CDBFAC;
  --accent: #C4532D; --accent-hover: #A9441F; --on-accent: #FFFFFF; --accent-soft: #FBE4D9;
  --navy: #22408F;
  --sky: #DCEAF8; --sky-ink: #1E4E80; --sky-line: #A3C4E8;
  --blush: #F8DDE7; --blush-ink: #8A2E52; --blush-line: #E6A7BF;
  --sage: #DDEFE1; --sage-ink: #22633A;
  --rose: #F9DFDB; --rose-ink: #A3302A;
  --butter: #FBEFC7; --butter-ink: #745405; --butter-line: #E7CF7E;
  --press: #1F1B16;
  --shadow-soft: 0 1px 2px rgba(31,27,22,.06), 0 8px 24px rgba(31,27,22,.08);
  --shadow-float: 0 2px 6px rgba(31,27,22,.08), 0 24px 60px rgba(31,27,22,.16);
  --font-display: 'Bricolage Grotesque', 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --font-ui: 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #16130F; --surface: #1F1B16; --surface-2: #27221B; --surface-3: #322B22;
    --ink: #F2ECE2; --ink-2: #D0C7B9; --muted: #A3988A;
    --line: #383128; --line-strong: #52483A;
    --accent: #EE7B52; --accent-hover: #F4936F; --on-accent: #1F1B16; --accent-soft: #3B2419;
    --navy: #9DB4F0;
    --sky: #1C2C3D; --sky-ink: #B9D6F4; --sky-line: #35587C;
    --blush: #392029; --blush-ink: #F2BBCF; --blush-line: #7B4259;
    --sage: #1B3023; --sage-ink: #A9DDB8;
    --rose: #3B1F1C; --rose-ink: #F4AFA8;
    --butter: #362C12; --butter-ink: #F0D68E; --butter-line: #7A6224;
    --press: #000000;
    --shadow-soft: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-float: 0 2px 6px rgba(0,0,0,.45), 0 24px 60px rgba(0,0,0,.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font-ui); text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; font-weight: 650; }
h4 { font-size: 1rem; font-weight: 650; }
p { margin: 0; }
em { font-style: normal; font-weight: 600; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons: the app's primary button, with its offset "press" shadow. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font-ui); text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: 12px; border: 1.5px solid transparent;
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out), background .2s;
}
.btn-sm { padding: 9px 16px; font-size: .92rem; border-radius: 10px; }
.btn-wide { width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--press); box-shadow: 3px 3px 0 var(--press); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active, .btn-ink:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--press); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--press); box-shadow: 3px 3px 0 var(--line-strong); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 66px; }
/* The logo kit's horizontal logo (layout.js): no tile or border, a quarter of the mark's height clear around it. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand picture { display: block; }
.brand img { width: auto; height: 44px; }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.top-nav a:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy h1 { max-width: 13ch; }
.lede { font-size: 1.15rem; color: var(--ink-2); margin-top: 22px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.fine { font-size: .9rem; color: var(--muted); margin-top: 16px; }

/* The working seat plan */
.demo {
  margin: 0; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 22px;
  box-shadow: 8px 8px 0 var(--press); padding: 18px;
}
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); }
.demo-bar strong { font: 700 1.1rem/1.2 var(--font-display); margin-right: 8px; }
.demo-bar .muted { font-size: .9rem; }
.chips { display: flex; gap: 6px; }
.chip { font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.chip-sage { background: var(--sage); color: var(--sage-ink); }
.chip-rose { background: var(--rose); color: var(--rose-ink); }
.seats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.seat {
  width: 100%; aspect-ratio: 1 / 1.05; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 2px; padding: 6px 4px 8px; border-radius: 12px; border: 1.5px solid var(--sky-line); background: var(--sky); color: var(--sky-ink);
  font: inherit; cursor: pointer; position: relative; transition: transform .25s var(--ease-spring), opacity .2s, background .2s;
}
.seat.girl { border-color: var(--blush-line); background: var(--blush); color: var(--blush-ink); }
.seat::before { /* the app's avatar placeholder */
  content: ''; width: 44%; aspect-ratio: 1; border-radius: 50%; margin-bottom: auto; margin-top: 6%;
  background: radial-gradient(circle at 50% 38%, currentColor 0 26%, transparent 27%), radial-gradient(ellipse at 50% 108%, currentColor 0 46%, transparent 47%);
  opacity: .32;
}
.seat .first { font-size: .68rem; line-height: 1.1; opacity: .85; }
.seat .last { font-size: .74rem; font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
.seat:hover { transform: translateY(-2px); }
.seat[aria-pressed="true"] { background: var(--surface-2); border-color: var(--line); color: var(--muted); opacity: .55; }
.seat[aria-pressed="true"] .last { text-decoration: line-through; }
.seat.called { background: var(--butter); border-color: var(--ink); color: var(--butter-ink); box-shadow: 3px 3px 0 var(--press); transform: translateY(-3px) scale(1.04); z-index: 1; }
.seat.scan { background: var(--butter); border-color: var(--butter-line); color: var(--butter-ink); }
.demo-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding: 2px 4px; }
.demo-called { font-size: .95rem; color: var(--ink-2); }
.demo-called strong { color: var(--ink); }

/* Sections */
section { scroll-margin-top: 80px; }
.section-lede { font-size: 1.1rem; color: var(--ink-2); margin-top: 14px; max-width: 38em; }

.day { padding: clamp(56px, 8vw, 96px) 0; background: var(--surface); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 56px 0 0; padding: 0; counter-reset: step; display: grid; gap: clamp(72px, 10vw, 128px); }
.step { counter-increment: step; }
/* Most steps: a two-column header, then the screenshot at full width. */
.step-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px clamp(28px, 5vw, 64px); align-items: start; margin-bottom: 28px; }
.step-head p:not(.step-when), .step-copy p:not(.step-when) { color: var(--ink-2); max-width: 36em; }
.step-media { display: grid; gap: 16px; }
.step-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
/* Attendance: a portrait close-up, so text and picture sit side by side. */
.step-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 64px); align-items: center; }
.step-side .step-media { max-width: 560px; justify-self: end; width: 100%; }
.step-when { display: flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.step-when::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid currentColor; font: 700 .85rem/1 var(--font-display); }
.step h2, .step h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.step-copy h2, .step-copy h3 { margin-bottom: 14px; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px; border-left: 2.5px solid var(--sage-ink); border-bottom: 2.5px solid var(--sage-ink); transform: rotate(-45deg); }

/* Screenshots: open larger on click */
.shot { display: block; padding: 0; margin: 0; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-soft); cursor: zoom-in; width: 100%; }
.shot img { width: 100%; }
.shot:hover { border-color: var(--ink-2); }
.shot-small { border-radius: 10px; }

.ai { padding: clamp(56px, 8vw, 96px) 0; }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(28px, 5vw, 64px); align-items: center; }
.facts { margin: 28px 0 0; display: grid; gap: 18px; }
.facts div { border-left: 3px solid var(--line-strong); padding-left: 16px; }
.facts dt { font: 650 1.05rem/1.3 var(--font-display); }
.facts dd { margin: 4px 0 0; color: var(--ink-2); }
.note { margin-top: 24px; display: inline-block; background: var(--sage); color: var(--sage-ink); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; }

.more { padding: 0 0 clamp(56px, 8vw, 96px); }
.more-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.more-item { padding: 22px 22px 0 0; }
.more-item + .more-item { padding-left: 22px; border-left: 1px solid var(--line); }
.more-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.more-item p { color: var(--ink-2); font-size: .97rem; }

.devices { padding: clamp(56px, 8vw, 96px) 0; background: var(--surface-2); border-block: 1px solid var(--line); overflow: hidden; }
.devices-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.devices-copy > p:not(.section-lede) { color: var(--ink-2); margin-top: 18px; }
.dark-shot img { margin-top: 22px; border-radius: 14px; border: 1px solid #2c2620; box-shadow: var(--shadow-float); }
.phones { display: flex; gap: 18px; justify-content: center; }
.phone { width: min(46%, 250px); border-radius: 30px; border: 8px solid var(--ink); background: var(--ink); box-shadow: var(--shadow-float); }
.phone + .phone { margin-top: 64px; }

.pricing { padding: clamp(56px, 8vw, 96px) 0; }
.plans { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; }
.plan-pro { border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--press); }
.plan h2, .plan h3 { font-size: 1.3rem; }
.price { margin-top: 10px; color: var(--ink-2); }
.price span { font: 700 2.6rem/1 var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
.price-alt { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.plan .ticks { margin-bottom: 26px; flex: 1; align-content: start; }
.pricing-note { margin-top: 24px; color: var(--muted); max-width: 46em; font-size: .97rem; }

.download { padding: clamp(56px, 8vw, 96px) 0; background: var(--surface); border-top: 1px solid var(--line); }
.dl-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dl { border: 1px solid var(--line-strong); border-radius: 18px; padding: 28px; background: var(--paper); }
.dl h2 { font-size: 1.5rem; }
.dl > .muted { margin: 4px 0 20px; }
.dl-meta { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.dl h3 { margin-top: 26px; font-size: 1rem; }
.install { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--ink-2); font-size: .97rem; }
.download .fine { margin-top: 28px; }

.faq { padding: clamp(56px, 8vw, 96px) 0; }
.faq h2 { margin-bottom: 24px; }
details { border-top: 1px solid var(--line-strong); }
details:last-of-type { border-bottom: 1px solid var(--line-strong); }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 650 1.12rem/1.35 var(--font-display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font: 400 1.6rem/1 var(--font-ui); color: var(--muted); transition: transform .2s var(--ease-out); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--ink-2); max-width: 40em; }

.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.foot-col { display: grid; gap: 8px; font-size: .95rem; align-content: start; }
.foot-col h2 { font: 650 .8rem/1.2 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.foot-col a { color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.brand-foot { margin-bottom: 8px; }
.brand-foot img { height: 40px; }
.foot .muted { font-size: .92rem; }
.foot-brand .muted + .muted { margin-top: 8px; }

/* Screenshot viewer */
.viewer { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 94vh; }
.viewer::backdrop { background: rgba(22, 19, 15, .82); }
.viewer img { max-height: 88vh; width: auto; border-radius: 12px; margin: 0 auto; }
.viewer form { text-align: right; margin-bottom: 8px; }
.viewer-close { font: 600 .95rem/1 var(--font-ui); background: var(--paper); color: var(--ink); border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; }

/* ── The multi-page site ─────────────────────────────────── */
.top-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* The top of every page but the home page */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { max-width: 18ch; }
.page-head .lede a { color: inherit; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.tag { display: inline-block; margin: 0 0 14px; font: 600 .8rem/1 var(--font-ui); padding: 6px 11px; border-radius: 999px; background: var(--butter); color: var(--butter-ink); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { font-size: .9rem; color: var(--ink-2); text-decoration: none; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.jump a:hover { border-color: var(--ink); color: var(--ink); }
.page-head + .day { border-top: 0; }
.step { scroll-margin-top: 90px; }
.center-row { justify-content: center; }
.end-cta { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.end-cta .section-lede { margin-inline: auto; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-wide { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 56px); align-items: center; }

/* Home: the CMS Interactive band, the tour, the short price list */
.ix-band { padding: clamp(56px, 8vw, 96px) 0; background: var(--surface); border-block: 1px solid var(--line); }
.ix-band-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
/* The projector with a phone in front of it */
.combo { position: relative; padding: 0 0 8% 0; }
.combo-screen { width: 88%; border-radius: 14px; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--press); }
.combo-phone { position: absolute; right: 0; bottom: 0; width: 24%; border-radius: 22px; border: 6px solid var(--ink); background: var(--ink); box-shadow: var(--shadow-float); }
.tour { padding: clamp(56px, 8vw, 96px) 0; }
.tour-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tour-card { display: flex; flex-direction: column; gap: 10px; height: 100%; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: 14px 14px 20px; transition: transform .2s var(--ease-out), border-color .2s; }
.tour-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.tour-card img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 6px; }
.tour-card h3 { font-size: 1.15rem; }
.tour-card p { color: var(--ink-2); font-size: .95rem; }
.prices-short { padding: clamp(56px, 8vw, 96px) 0; background: var(--surface-2); border-block: 1px solid var(--line); }
.ps-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ps-grid li { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: 24px; }
.ps-grid li p:last-child { color: var(--ink-2); margin-top: 10px; font-size: .97rem; }
.prices-short .cta-row { margin-top: 24px; }

/* CMS Interactive page */
.ix-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ix-hero h1 { max-width: 15ch; }
/* A slide with a game laid over it */
.stack { position: relative; padding: 0 0 18% 8%; }
.stack-back { width: 86%; border-radius: 12px; border: 1px solid var(--line-strong); box-shadow: var(--shadow-soft); transform: rotate(-2deg); }
.stack-front { position: absolute; right: 0; bottom: 0; width: 72%; border-radius: 12px; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--press); }
.how { padding: clamp(48px, 7vw, 88px) 0; background: var(--surface); border-block: 1px solid var(--line); }
.how-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: how; }
.how-grid li { counter-increment: how; }
.how-grid .shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.how-grid h3 { margin-top: 18px; display: flex; gap: 10px; align-items: center; }
.how-grid h3::before { content: counter(how); display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 .9rem/1 var(--font-display); border: 1.5px solid var(--press); }
.how-grid p { color: var(--ink-2); margin-top: 8px; }
.ix-slides { padding: clamp(56px, 8vw, 96px) 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.looks { margin-top: clamp(40px, 6vw, 64px); }
.looks h3 { font-size: 1.1rem; }
.looks-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.looks-grid img { border-radius: 10px; border: 1px solid var(--line); }
.looks-grid span { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); }
.pisara { padding: clamp(56px, 8vw, 96px) 0; background: var(--surface-2); border-block: 1px solid var(--line); }
.ix-games { padding: clamp(56px, 8vw, 96px) 0; }
.game-group { margin-top: 40px; }
.game-group h3 { font-size: 1.25rem; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.game-group h3 .muted { font: 600 .9rem/1 var(--font-ui); margin-left: 6px; }
.games { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 18px; }
.games h4 { margin-top: 10px; font-size: 1.05rem; }
.games p { color: var(--ink-2); font-size: .93rem; margin-top: 4px; }
.phones-in { padding: clamp(56px, 8vw, 96px) 0; background: var(--surface); border-block: 1px solid var(--line); }
.phones-shots { display: grid; gap: 22px; }
.phones-sm .phone { width: min(40%, 190px); border-width: 6px; border-radius: 24px; }
.phones-sm .phone + .phone { margin-top: 36px; }
.safe { padding: clamp(56px, 8vw, 96px) 0; }
.safe-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.safe-grid li { border-top: 1.5px solid var(--ink); padding-top: 16px; }
.safe-grid h3 { font-size: 1.15rem; margin-bottom: 8px; }
.safe-grid p { color: var(--ink-2); }
.safe .fine { margin-top: 24px; }
.ix-price { padding: clamp(56px, 8vw, 96px) 0; background: var(--surface-2); border-block: 1px solid var(--line); }
.ix-price + .faq { padding-top: clamp(56px, 8vw, 96px); }

/* Tables of tokens and packs */
.tokens { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; }
.tokens + .tokens { margin-top: 18px; }
.tokens caption { text-align: left; font: 650 1.05rem/1.3 var(--font-display); padding: 0 0 10px; }
.tokens th, .tokens td { padding: 13px 18px; border-top: 1px solid var(--line); text-align: left; }
.tokens tr:first-child th, .tokens tr:first-child td { border-top: 0; }
.tokens th { font-weight: 400; color: var(--ink-2); }
.tokens td { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Pricing page */
.page-head + .pricing { padding-top: 0; }
.bundle { margin-top: 20px; max-width: 1060px; display: flex; gap: 20px 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--butter); color: var(--butter-ink); border: 1px solid var(--butter-line); border-radius: 18px; padding: 24px 28px; }
.bundle h2 { font-size: 1.3rem; color: var(--ink); }
.bundle p { margin-top: 6px; max-width: 40em; }
.bundle strong { color: var(--ink); }
.tokens-sec { padding: clamp(56px, 8vw, 96px) 0; background: var(--surface); border-block: 1px solid var(--line); }
.tokens-sec .split { align-items: start; }
.pay { padding: clamp(56px, 8vw, 96px) 0; }
.pay .split { align-items: start; }
.pay-steps { margin: 24px 0 0; padding-left: 1.3em; display: grid; gap: 12px; color: var(--ink-2); }
.pay .facts { margin-top: 0; }

/* Download and Help pages */
.page-head + .download { border-top: 0; padding-top: 0; background: transparent; }
.dl-ix { margin-top: 28px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px 20px; color: var(--ink-2); }
.dl-ix strong { color: var(--ink); }
.page-head + .faq { padding-top: 0; }
.faq + .faq { padding-top: 0; }
.faq h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

/* Narrower screens */
@media (max-width: 980px) {
  .hero-grid, .ai-grid, .devices-grid, .ix-band-grid, .ix-hero-grid, .split, .split-wide { grid-template-columns: 1fr; }
  .tour-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .hero-copy h1 { max-width: 16ch; }
  .step-head, .step-side { grid-template-columns: 1fr; }
  .step-side .step-media { justify-self: start; }
  .more-grid { grid-template-columns: 1fr 1fr; }
  .more-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .more-item { padding-bottom: 22px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  /* The menu moves to its own row under the brand, and scrolls sideways if it must. */
  .top-row { flex-wrap: wrap; justify-content: space-between; gap: 0 10px; min-height: 0; padding-top: 10px; }
  .top-row .brand img { height: 38px; }
  .top-row .btn-sm { padding: 8px 12px; font-size: .88rem; }
  .top-nav { order: 3; flex-basis: 100%; margin: 6px 0 0; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav a { flex: none; padding: 7px 10px; border-radius: 8px; font-size: .9rem; }
  .top-nav a[aria-current="page"] { background: var(--surface-2); }
  .tour-grid, .ps-grid, .how-grid, .safe-grid, .looks-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .seats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .seat:nth-child(n+17) { display: none; }
  .demo { padding: 14px; box-shadow: 5px 5px 0 var(--press); }
  .plans, .dl-grid, .step-extra { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .more-item, .more-item + .more-item { padding: 18px 0; border-left: 0; }
  .more-item + .more-item { border-top: 1px solid var(--line); }
  .phone + .phone { margin-top: 36px; }
}
@media (max-width: 420px) {
  .top-row .btn-sm { padding: 7px 10px; font-size: .82rem; box-shadow: 2px 2px 0 var(--press); }
  .top-row .brand img { height: 36px; }
  .top-nav a { padding: 7px 8px; font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
.faq .narrow { margin-left: max(16px, calc((100% - var(--wrap)) / 2)); }

/* Privacy Policy and Terms pages */
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.legal-wrap { max-width: 760px; margin-left: max(16px, calc((100% - var(--wrap)) / 2)); }
.legal h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.legal-meta { color: var(--muted); margin-top: 12px; font-size: .95rem; }
.legal-notice { margin: 28px 0 8px; background: var(--butter); color: var(--butter-ink); border-radius: 12px; padding: 14px 18px; font-size: .95rem; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 10px; scroll-margin-top: 84px; display: flex; gap: 10px; align-items: baseline; }
.sec-num { color: var(--accent); text-decoration: none; font-variant-numeric: tabular-nums; min-width: 1.4em; }
.sec-num:hover { text-decoration: underline; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.25em; margin: 10px 0 0; display: grid; gap: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal-other { margin-top: 48px !important; padding-top: 20px; border-top: 1px solid var(--line); }
.top-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* A side note under a step's text (e.g. absence notes under attendance) */
.step-copy p.step-note { margin-top: 16px; background: var(--butter); color: var(--butter-ink); border-radius: 12px; padding: 12px 16px; font-size: .95rem; }
.step-copy p.step-note strong { color: inherit; }

/* CMS Interactive page: the home (Shelf), and Pisara's two pictures */
.shelf-sec { padding: clamp(56px, 8vw, 96px) 0; }
.pisara-shots { display: grid; gap: 14px; }
.pisara-shots .shot-small { width: 62%; justify-self: end; margin-top: -18%; box-shadow: var(--shadow-float); position: relative; }
.ix-band .note { margin-top: 18px; }

/* A quiet line under a step's ticks (e.g. what school accounts keep) */
.step-head p.step-note-plain { margin-top: 14px; font-size: .92rem; color: var(--muted); }

/* CMS Interactive's free trial: the bar above the header, its section, what's new and what's coming */
[hidden] { display: none !important; }
.trial-bar { background: var(--ink); color: var(--paper); font-size: .92rem; }
.trial-bar .wrap { padding-block: 9px; }
.trial-bar p { margin: 0; }
.trial-bar a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.trial, .ix-new, .soon { padding: clamp(56px, 8vw, 96px) 0; }
.trial { background: var(--butter); color: var(--butter-ink); border-block: 1px solid var(--butter-line); }
.trial h2, .trial .facts dt { color: var(--ink); }
.trial .section-lede, .trial .facts dd { color: var(--ink-2); }
.trial .facts div { border-left-color: var(--butter-line); }
.ix-hero .note { margin-top: 18px; }
.ix-hero .note a { color: inherit; }
.new-grid .shot { margin-bottom: 14px; }
.soon { background: var(--surface); border-block: 1px solid var(--line); }
