/* clefboard.com — light editorial with dark sections interleaved. Tokens
   first, then primitives, then one block per section in page order. */

:root {
  --paper: #f3f4f1;
  --paper-2: #fbfbf9;
  --line: #d9dcd6;
  --line-strong: #c5cac3;
  --ink: #0a1014;
  --ink-2: #3d4a50;
  --ink-3: #56636a;
  --teal: #2dd4bf;
  --teal-deep: #0e7c70;
  --teal-grad-to: #0891b2;

  --dark: #0a1014;
  --dark-footer: #070c10;
  --dark-card: #111b21;
  --dark-frame: #131e24;
  --dark-frame-2: #1a262d;
  --dark-ink: #f0fbff;
  --dark-ink-2: #b4c6cf;
  --dark-ink-3: #8fa4ae;
  --dark-chip: #d5e4ea;
  --dark-line: rgba(255, 255, 255, 0.12);
  --slot-ink: #7fc9bd;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --sec-pad: clamp(64px, 9vw, 120px);
}

/* ---------- base ---------- */
/* No `scroll-behavior: smooth` on html: in Chrome it stops a cross-page link
   like /#faq (clicked from /tools) from scrolling to the anchor at all. */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 72px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- primitives ---------- */
.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sec { padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); }
.stack { display: flex; flex-direction: column; }
.gap-48 { gap: 48px; }
.gap-36 { gap: 36px; }
.sec-head-wide { max-width: 820px; }
.sec-head-row-tight { gap: 16px 48px; }
.dark { background: var(--dark); color: var(--dark-ink); }
.mono { font-family: var(--mono); }

.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: 0.08em; }
.dark .eyebrow { color: var(--teal); }
.h2 { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -0.045em; font-weight: 700; line-height: 1; text-wrap: balance; }
.h3 { font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -0.04em; font-weight: 700; line-height: 1; }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.dark .lede { color: var(--dark-ink-2); }
.accent { color: var(--teal-deep); }
.dark .accent { color: var(--teal); }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.sec-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; }
.counter { font-family: var(--mono); font-size: 12px; color: var(--dark-ink-3); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 1px solid transparent; }
.btn-primary { background: var(--ink); color: var(--dark-ink); font-weight: 700; }
.btn-primary:hover { background: #1c2830; color: var(--dark-ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { padding: 16px 24px; border-radius: 10px; font-size: 16px; }
.btn-xl { padding: 18px 28px; border-radius: 10px; font-size: 17px; }
.btn-grad { background: linear-gradient(135deg, var(--teal), var(--teal-grad-to)); color: #03201c; font-weight: 700; }
.btn-grad:hover { filter: brightness(1.08); color: #03201c; }
.btn-ghost-dark { border-color: rgba(255, 255, 255, 0.22); color: var(--dark-ink); }
.btn-ghost-dark:hover { border-color: var(--dark-ink); color: var(--dark-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: inline-block; }
.dot-deep { background: var(--teal-deep); }

/* Bordered cell grids (the "ledger" motif). The wrapper clips the -1px
   margin so the outer left/top borders collapse into the frame lines. */
.cells { overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.cells-inner { display: grid; margin: -1px 0 0 -1px; }
.cell { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.dark .cells { border-top-color: rgba(255, 255, 255, 0.2); border-bottom: 0; }
.dark .cell { border-color: var(--dark-line); }

/* Device frames + placeholder slots. Real screenshots replace the .slot
   contents; keep the aspect ratios. */
.laptop { width: 100%; }
.laptop-screen { aspect-ratio: 16 / 10; border-radius: 14px 14px 0 0; padding: 1.4%; background: var(--dark-frame); border: 1px solid var(--dark-line); }
.laptop-base { height: 12px; margin: 0 -4%; border-radius: 0 0 12px 12px; background: linear-gradient(#26343c, var(--dark-frame)); }
.laptop-2 .laptop-screen { background: var(--dark-frame-2); }
.laptop-2 .laptop-base { background: linear-gradient(#2c3b44, var(--dark-frame-2)); }
.phone { aspect-ratio: 9 / 19.5; border-radius: 28px; padding: 6px; background: var(--dark-frame); border: 1px solid rgba(255, 255, 255, 0.14); }
.phone-lg { max-width: 250px; width: 100%; border-radius: 36px; padding: 8px; box-shadow: 0 0 80px -20px rgba(45, 212, 191, 0.35); }
.phone-glow { border-color: rgba(255, 255, 255, 0.18); box-shadow: 0 0 60px -10px rgba(45, 212, 191, 0.35); }
.slot {
  height: 100%;
  border-radius: 7px;
  border: 1.5px dashed rgba(45, 212, 191, 0.4);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--slot-ink);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 10px, transparent 10px 20px);
}
.phone .slot { border-radius: 22px; font-size: 10px; padding: 6px; }
.phone-lg .slot { border-radius: 29px; font-size: 11px; }
.slot-square { aspect-ratio: 1; border-radius: 12px; border-color: rgba(45, 212, 191, 0.35); }
.slot img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
/* A slot holding a real screenshot: drop the dashed placeholder look. */
.slot.slot-filled { border: 0; background: none; padding: 0; overflow: hidden; }
/* Apple's official badge (assets/img/app-store-badge.svg, from Apple's marketing
   toolbox). Apple's rules: use the artwork unmodified, keep clear space around it,
   and never render it smaller than 40px tall. */
.app-store-badge { display: inline-block; align-self: flex-start; line-height: 0; border-radius: 9px; }
.app-store-badge img { height: 48px; width: auto; display: block; }

.staff-lines { position: absolute; left: 0; right: 0; height: 57px; background: repeating-linear-gradient(to bottom, rgba(240, 251, 255, 0.08) 0 1px, transparent 1px 14px); pointer-events: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243, 244, 241, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; object-fit: contain; display: block; flex: 0 0 auto; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--teal-deep); padding-bottom: 4px; }
.nav-cta { display: flex; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; padding: 0; }
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-menu { display: none; flex-direction: column; padding: 8px var(--gutter) 24px; border-top: 1px solid var(--line); }
.mobile-menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 18px; font-weight: 600; }
.mobile-menu a[aria-current="page"] { color: var(--teal-deep); }
.mobile-menu-cta { display: flex; gap: 10px; padding-top: 18px; flex-wrap: wrap; }
.mobile-menu-cta .btn { flex: 1 1 160px; justify-content: center; padding: 14px 16px; font-size: 15px; }
@media (max-width: 899px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: flex; }
  .site-header.menu-open .mobile-menu { display: flex; }
}

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); max-width: 1440px; margin: 0 auto; }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(32px, 4vw, 56px); }
.hero-copy-inner { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1; letter-spacing: -0.045em; font-weight: 700; text-wrap: balance; }
.hero-lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 560px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts .cells-inner { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.hero-facts { border-bottom: 0; }
.fact { padding: 14px 16px 4px; display: flex; flex-direction: column; gap: 4px; }
.fact-k { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.fact-v { font-size: 15px; font-weight: 600; }
.hero-visual { position: relative; background: var(--dark); overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 40px); min-height: 480px; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(420px 360px at 70% 20%, rgba(45, 212, 191, 0.2), transparent 70%); }
.hero-visual .staff-lines { top: 12%; }
.hero-stage { position: relative; width: 100%; max-width: 620px; aspect-ratio: 5 / 4; margin: 0 auto; }
.hero-laptop { position: absolute; left: 0; top: 6%; width: 88%; }
.hero-laptop .laptop-screen { padding: 1.6%; }
.hero-laptop .laptop-base { margin: 0 -5%; }
.hero-phone { position: absolute; right: 0; bottom: 0; width: 29%; }
.hero-phone .phone { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9); border-color: rgba(255, 255, 255, 0.18); }
.hero-phone .slot { border-color: rgba(45, 212, 191, 0.5); }
.hero-caption { position: relative; font-family: var(--mono); font-size: 12px; color: var(--dark-ink-3); max-width: 620px; margin: 0 auto; width: 100%; }

/* ---------- problem ---------- */
.problem { border-top: 1px solid var(--ink); }
.problem-strip { overflow: hidden; border-bottom: 1px solid var(--line); }
.problem-strip .cells-inner { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.problem-strip p { padding: 28px var(--gutter); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.problem-fix { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); display: flex; flex-direction: column; gap: 14px; }
.problem-fix p { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; max-width: 1000px; text-wrap: balance; }

/* ---------- communicate ---------- */
.comm-body { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 112px); }
.comm-index { font-family: var(--mono); font-size: 12px; color: var(--dark-ink-3); line-height: 1.9; display: flex; flex-wrap: wrap; gap: 4px 18px; max-width: 360px; }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 48px clamp(40px, 6vw, 96px); }
.feature-rev { flex-direction: row-reverse; }
.feature-copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.feature-copy-wide { max-width: 580px; }
.feature-media { flex: 1.4 1 420px; max-width: 680px; }
.feature-media-phone { flex: 1 1 320px; display: flex; justify-content: center; }
.spec { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 15px; }
.spec li span:last-child { font-family: var(--mono); color: var(--dark-ink-3); font-size: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; }
.chip { padding: 6px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--dark-chip); }
.chip-teal { border-color: rgba(45, 212, 191, 0.5); color: #5eead4; }

.roles { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 20px; background: var(--paper); color: var(--ink); }
.roles-copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 12px; }
.roles-copy .eyebrow { color: var(--ink-3); }
.roles-copy .title { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; font-weight: 700; line-height: 1.1; }
.roles-copy p:last-child { font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.pills { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.pill-red { color: #991b1b; background: #fde2e2; }
.pill-orange { color: #9a3412; background: #fde8d7; }
.pill-amber { color: #92400e; background: #fdefc8; }
.pill-yellow { color: #854d0e; background: #fbf3b8; }
.pill-green { color: #166534; background: #d7f5df; }
.pill-teal { color: #115e59; background: #ccf4ec; }
.pill-blue { color: #1e40af; background: #dbe7fe; }
.pill-purple { color: #5b21b6; background: #e9e1fd; }

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); column-gap: clamp(40px, 6vw, 96px); border-bottom: 1px solid var(--dark-line); }
.pair article { border-top: 1px solid var(--dark-line); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding: 40px 0; }
.pair .feature-copy { flex: 1 1 220px; gap: 16px; }
.pair .h3 { font-size: clamp(28px, 3vw, 40px); }
.pair .lede { font-size: 16px; }
.pair .phone { flex: 0 0 170px; }

/* ---------- records ---------- */
.records-grid .cells-inner { grid-template-columns: 1fr; }
@media (min-width: 640px) { .records-grid .cells-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .records-grid .cells-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.record { padding: 28px; display: flex; gap: 18px; align-items: flex-start; }
.record-glyph { flex: 0 0 44px; height: 44px; border-radius: 8px; background: var(--ink); color: var(--teal); display: grid; place-items: center; font-family: var(--mono); font-size: 14px; font-weight: 500; }
.record h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.record p { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-top: 6px; }

/* ---------- tools ---------- */
.tools { position: relative; overflow: hidden; }
.tools .staff-lines { bottom: clamp(4px, 2vw, 32px); background-image: repeating-linear-gradient(to bottom, rgba(240, 251, 255, 0.06) 0 1px, transparent 1px 14px); }
.tools .wrap { position: relative; }
/* Composer spans the row as a laptop; four phone-first tools sit below as phones
   (2 across on phones, one row of 4 from tablets up); the "And more" strip spans the
   last row and names the tools that don't get a screenshot (drone, conductor). */
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.tools-more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px clamp(24px, 4vw, 56px);
  padding: clamp(20px, 3vw, 32px); border-radius: 18px; background: var(--dark-card); border: 1px dashed rgba(45, 212, 191, 0.3); }
.tools-more-head { flex: 0 1 260px; display: flex; flex-direction: column; gap: 12px; }
.tools-more-head h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.03em; font-weight: 700; line-height: 1.1; }
.tools-more-list { flex: 1 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px 24px; }
.tools-more-list li { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 2px solid rgba(45, 212, 191, 0.35); }
.tools-more-list strong { font-size: 17px; font-weight: 700; color: var(--dark-ink); }
.tools-more-list span { font-size: 14px; line-height: 1.5; color: var(--dark-ink-2); }
.tool-phone { width: 100%; max-width: 220px; margin: 0 auto; }
.tool { display: flex; flex-direction: column; gap: 16px; padding: 16px 16px 22px; border-radius: 18px; background: var(--dark-card); border: 1px solid rgba(255, 255, 255, 0.1); }
.tool-text { padding: 0 6px; }
.tool h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.tool p { font-size: 15px; line-height: 1.5; color: var(--dark-ink-2); margin-top: 6px; }
.flagship { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 5vw, 72px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 20px; background: var(--dark-card); border: 1px solid rgba(255, 255, 255, 0.1); }
.flagship-copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; max-width: 480px; }
.flagship-media { flex: 1.5 1 400px; max-width: 720px; }
.tag { font-family: var(--mono); font-size: 12px; color: var(--teal); letter-spacing: 0.08em; padding: 3px 8px; border-radius: 4px; background: rgba(45, 212, 191, 0.14); align-self: flex-start; }
.flagship h3 { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.04em; font-weight: 700; line-height: 1; }
.flagship .lede { font-size: 17px; }
.flagship .chip { border-color: rgba(255, 255, 255, 0.18); }
@media (max-width: 639px) {
  .tool { padding: 10px 10px 16px; gap: 12px; border-radius: 14px; }
  .tool-text { padding: 0 4px; }
  .tool h3 { font-size: 16px; }
  .tool p { font-size: 13px; }
}

/* ---------- practice ---------- */
.practice-intro { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 420px; text-wrap: pretty; }
.games .cells-inner { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.game-group { padding: 22px 22px 28px; display: flex; flex-direction: column; gap: 14px; }
.game-group-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; }
.game h3 { font-size: 17px; font-weight: 700; }
.game p { font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-top: 3px; }
.comp { display: flex; flex-wrap: wrap; gap: 40px clamp(32px, 5vw, 80px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 20px; position: relative; overflow: hidden; }
.comp-glow { position: absolute; inset: 0; background: radial-gradient(420px 320px at 85% 50%, rgba(45, 212, 191, 0.18), transparent 70%); }
.comp-copy { position: relative; flex: 1 1 340px; display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
/* Rhythm spotlight: one Wordle-style guess row (green = right beat, yellow = wrong
   beat, red = not in the bar), echoing the game's own feedback colours. */
.guess-row { display: flex; gap: 6px; }
.guess-row span { width: 22px; height: 22px; border-radius: 5px; }
.guess-row .g-hit { background: #34d399; }
.guess-row .g-near { background: #fbbf24; }
.guess-row .g-miss { background: #f87171; }
.comp h3 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.04em; font-weight: 700; line-height: 1; }
.comp .lede { font-size: 17px; }
.comp .spec li { padding: 11px 0; }
.cadence { display: flex; gap: 6px; align-items: center; }
.cadence span { height: 3px; width: 6px; background: #3a4c55; }
.cadence .beat { width: 18px; background: var(--teal); border-radius: 2px; }
.comp-media { position: relative; flex: 1 1 300px; display: flex; justify-content: center; gap: 20px; }
.comp-media .phone { width: 44%; max-width: 190px; }
.comp-media .phone:first-child { margin-top: 40px; }

/* ---------- home: what's inside ---------- */
.tour-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .tour-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tour-card { display: flex; flex-direction: column; gap: 20px; padding: 16px 16px 24px; border-radius: 18px; background: var(--dark-card); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--dark-ink); }
.tour-card:hover { color: var(--dark-ink); border-color: rgba(45, 212, 191, 0.5); }
.tour-shot { aspect-ratio: 16 / 10; }
.tour-shot .slot { border-radius: 12px; }
.tour-text { display: flex; flex-direction: column; gap: 10px; padding: 0 6px; flex: 1; }
.tour-label { font-family: var(--mono); font-size: 12px; color: var(--teal); letter-spacing: 0.08em; }
.tour-card h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; font-weight: 700; line-height: 1.1; }
.tour-card p { font-size: 16px; line-height: 1.55; color: var(--dark-ink-2); }
.tour-card .tour-list { font-family: var(--mono); font-size: 12px; line-height: 1.8; color: var(--dark-ink-3); }
.tour-more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--teal); }
.tour-card:hover .tour-more { color: var(--dark-ink); }
/* Tools + Practice cards: three mini phones instead of one cropped screenshot —
   those features live on students' phones. The card text already says what they
   are, so the trio is decorative (aria-hidden, empty alts). */
.tour-phones { display: flex; justify-content: center; align-items: center; gap: 5%; border-radius: 12px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(45, 212, 191, 0.12), transparent 62%), #0c1519;
  border: 1px solid rgba(255, 255, 255, 0.06); overflow: hidden; }
.tour-phones .phone { height: 84%; width: auto; flex: 0 0 auto; aspect-ratio: 9 / 19.5; padding: 3px; border-radius: 14px; }
.tour-phones .phone:nth-child(2) { height: 92%; box-shadow: 0 0 40px -12px rgba(45, 212, 191, 0.45); }
.tour-phones .phone .slot { border-radius: 11px; font-size: 8px; padding: 2px; }
@media (min-width: 640px) and (max-width: 999px) {
  .tour-card { flex-direction: row; align-items: center; }
  .tour-shot { flex: 0 0 44%; }
}

/* ---------- feature pages: keep exploring ---------- */
.explore { border-top: 1px solid var(--line); }
.explore .wrap { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 20px; }
.explore-grid .cells-inner { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.explore-link { padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.explore-link:hover { background: var(--paper-2); color: var(--ink); }
.explore-link small { display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; margin-bottom: 6px; }
.explore-link strong { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; }
.explore-link .arrow { font-family: var(--mono); color: var(--teal-deep); font-size: 20px; }

/* ---------- works everywhere ---------- */
.everywhere { border-top: 1px solid var(--line); }
.everywhere .sec { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.everywhere .h2 { font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -0.04em; }
.push-note { font-size: 17px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.device { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 28px; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--line); }
.device h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.device p { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-top: 8px; }
.device-note { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.device-link { font-family: var(--mono); font-size: 14px; font-weight: 500; }
@media (max-width: 639px) {
  .devices { gap: 12px; }
  .device { padding: 20px; gap: 16px; }
}

/* ---------- private ---------- */
.private-body { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 7vw, 120px); }
.private-copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; max-width: 460px; }
.private-copy .lede { font-size: 17px; }
.link-underline { align-self: flex-start; font-size: 16px; font-weight: 600; color: var(--teal); border-bottom: 1px solid rgba(45, 212, 191, 0.5); padding-bottom: 2px; }
.link-underline:hover { color: var(--dark-ink); }
.link-underline-light { color: var(--teal-deep); border-bottom-color: rgba(14, 124, 112, 0.5); }
.link-underline-light:hover { color: var(--ink); }
.private-list { flex: 1.4 1 420px; align-self: flex-start; }
.private-list .cells-inner { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.private-list li { padding: 22px 20px; display: flex; gap: 14px; align-items: baseline; font-size: 17px; font-weight: 500; }
.private-list li span { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; color: var(--teal); }

/* ---------- about ---------- */
.about-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px clamp(40px, 7vw, 120px); }
.about-head { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.about-head .h2 { font-size: clamp(34px, 4.2vw, 58px); }
.about-copy { flex: 1.4 1 440px; display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.about-sign { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 12px; }
.about-sign strong { font-size: 16px; font-weight: 700; }
.about-sign span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.proof { display: flex; flex-wrap: wrap; gap: 8px; }
.proof li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; }
.proof i { width: 7px; height: 7px; background: var(--teal-deep); display: inline-block; }
.proof .i-dot { border-radius: 50%; }
.proof .i-diamond { transform: rotate(45deg); }

/* ---------- how it starts ---------- */
.start { border-top: 1px solid var(--line); }
.steps .cells-inner { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.step { padding: 28px 28px 36px; display: flex; flex-direction: column; gap: 14px; }
.step-n { font-family: var(--mono); font-size: clamp(48px, 5vw, 72px); line-height: 1; color: var(--teal-deep); }
.step h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.step p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 639px) {
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 6px; padding: 20px 4px 22px; }
  .step-n { grid-row: 1 / span 2; font-size: 40px; }
}

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-body { display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 7vw, 120px); }
.faq-head { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; max-width: 380px; }
.faq-head p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.faq-head a, .faq-list a { font-weight: 600; }
.faq-list { flex: 2 1 480px; border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.01em; }
.faq-list summary span { font-family: var(--mono); color: var(--teal-deep); font-size: 20px; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 640px; }

/* ---------- final cta ---------- */
.final { position: relative; overflow: hidden; }
.final-glow { position: absolute; inset: 0; background: radial-gradient(600px 400px at 80% 0%, rgba(45, 212, 191, 0.2), transparent 70%); }
.final .staff-lines { top: 50%; margin-top: -28px; background-image: repeating-linear-gradient(to bottom, rgba(240, 251, 255, 0.06) 0 1px, transparent 1px 14px); }
.final .wrap { position: relative; padding-top: clamp(80px, 11vw, 160px); padding-bottom: clamp(80px, 11vw, 160px); display: flex; flex-direction: column; gap: 32px; }
.final .h2 { font-size: clamp(44px, 7vw, 104px); letter-spacing: -0.05em; line-height: 0.95; max-width: 1100px; }
.final-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.final .app-store-badge { align-self: center; }
.final .app-store-badge img { height: 58px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark-footer); color: var(--dark-ink-2); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer .brand { color: var(--dark-ink); }
.site-footer .brand-mark { width: 26px; height: 26px; }
.site-footer .brand-name { font-size: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; }
.footer-nav a { color: var(--dark-ink-2); }
.footer-nav a:hover { color: var(--dark-ink); }
.copyright { font-family: var(--mono); font-size: 12px; color: var(--dark-ink-3); }
