/* ═══════════════════════════════════════════════════════════
   ByteBlocks — "Assembly"
   Aluminium substrate, ink, a signal accent, one ultramarine band.
   Each product page swaps --accent; nothing else changes.
   ═══════════════════════════════════════════════════════════ */

:root {
  --sub:    #EFF0F2;
  --paper:  #FFFFFF;
  --ink:    #0B0D12;
  --mute:   #5D6673;
  --rule:   #D8DBE0;
  --signal: #FF5A1F;
  --deep:   #141C4B;

  --accent: var(--signal);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell: 1240px;
  --gut:   clamp(20px, 5vw, 56px);
  --pad:   clamp(76px, 9vw, 132px);
  --cell:  clamp(46px, 5.4vw, 78px);
}

/* Learnaroo's own blue, so the page doesn't fight the product */
body.theme-learnaroo { --accent: #3B82F6; }
body.theme-lumea     { --accent: #7C6BD6; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sub);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 118, "wght" 800;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--sub);
  padding: 12px 18px; z-index: 100;
  font-family: var(--mono); font-size: 12px;
}
.skip:focus { left: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ── Shared type ─────────────────────────────────────────── */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  flex: none;
}
.eyebrow--invert { color: rgba(255,255,255,.62); }

/* ── Status pills and dots ───────────────────────────────── */

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  color: var(--mute);
}
.status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.status--live { color: #147A45; border-color: #A8D8BF; }
.status--soon { color: #7A4A12; border-color: #E3C79B; }
.status--next { color: var(--mute); }
.status--inline { padding: 3px 8px; }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: none;
}
.dot--live { background: #17A05A; }
.dot--soon { background: #C8862B; }
.dot--next { background: var(--rule); }

/* ── Masthead ────────────────────────────────────────────── */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 240, 242, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.masthead.is-stuck { border-bottom-color: var(--rule); }

.masthead__inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.mark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; margin-right: auto;
}
.mark__glyph {
  width: 15px; height: 15px;
  background: var(--ink);
  position: relative; flex: none;
}
.mark__glyph::after {
  content: "";
  position: absolute; right: -6px; bottom: -6px;
  width: 8px; height: 8px;
  background: var(--accent);
}
.mark__word {
  font-family: var(--display);
  font-variation-settings: "wdth" 112, "wght" 800;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.mark--sm .mark__word { font-size: 15px; }

.nav { display: flex; gap: 26px; font-size: 14.5px; color: var(--mute); }
.nav a {
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--sub);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.btn--sm { padding: 10px 18px; font-size: 11.5px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--invert {
  background: var(--sub); color: var(--deep); border-color: var(--sub);
  font-size: 14px; text-transform: none; letter-spacing: 0;
  align-self: flex-start;
}
.btn--invert:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-top: clamp(64px, 9vw, 116px);
  padding-bottom: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero--product { padding-top: clamp(44px, 6vw, 80px); }

.hero__field {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 16), 1fr);
  grid-auto-rows: var(--cell);
  pointer-events: none;
}
.hero__field i {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  pointer-events: auto;
  transition: background-color .45s ease;
}
.hero__field i.on-ink    { background: var(--ink); }
.hero__field i.on-signal { background: var(--accent); }
.hero__field i.on-deep   { background: var(--deep); }
.hero__field i:hover     { background: var(--accent); transition-duration: 0s; }

.hero__inner { position: relative; z-index: 2; }

.backlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  text-decoration: none;
  margin-bottom: 26px;
  transition: color .18s ease;
}
.backlink:hover { color: var(--ink); }

.hero__title { font-size: clamp(34px, 9.4vw, 116px); margin: 22px 0 0; }
.hero__title--product { font-size: clamp(46px, 11vw, 148px); }

.caret {
  display: inline-block;
  width: 0.42em; height: 0.42em;
  background: var(--accent);
  margin-left: 0.16em;
  vertical-align: baseline;
}

.hero__lede {
  max-width: 46ch;
  margin-top: 26px;
  color: var(--mute);
  font-size: clamp(16px, 1.5vw, 19px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.capstrip {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: clamp(48px, 7vw, 92px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mute);
}
.capstrip li { display: flex; align-items: center; gap: 9px; }

/* ── Section frame ───────────────────────────────────────── */

section[id] { scroll-margin-top: 68px; }

.section { padding-block: var(--pad); }
.section--rule { border-top: 1px solid var(--rule); }

.head { max-width: 720px; }
.head--tight { max-width: 420px; }
.head__title { font-size: clamp(30px, 4.4vw, 58px); margin-top: 20px; }
.head__lede { margin-top: 20px; color: var(--mute); max-width: 52ch; }

/* ── Products ────────────────────────────────────────────── */

.products {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: clamp(44px, 6vw, 72px);
}

.product {
  grid-column: span 3;
  background: var(--sub);
  padding: clamp(28px, 3.2vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  transition: background .2s ease;
}
.product--learnaroo { grid-column: span 4; }
.product--lumea     { grid-column: span 2; }
.product--next      { grid-column: span 6; }

a.product:hover { background: var(--paper); }

.product__name {
  font-size: clamp(26px, 3.4vw, 44px);
  font-variation-settings: "wdth" 114, "wght" 800;
  margin-top: 4px;
}
.product--next .product__name {
  font-size: clamp(19px, 2vw, 25px);
  color: var(--mute);
}
.product__line { color: var(--mute); font-size: 15.5px; max-width: 46ch; }

.product__go {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
a.product:hover .product__go { color: var(--accent); }

.facts {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.facts li { border: 1px solid var(--rule); padding: 4px 9px; }

/* ── Block grid (product feature groups) ─────────────────── */

.blocks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: clamp(44px, 6vw, 72px);
}
.block {
  grid-column: span 3;
  background: var(--sub);
  padding: clamp(26px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 10px;
  transition: background .2s ease;
}
.block--lg { grid-column: span 4; }
.block--sm { grid-column: span 2; }
.block:hover { background: var(--paper); }

.block__title {
  font-size: clamp(19px, 2vw, 25px);
  font-variation-settings: "wdth" 112, "wght" 700;
  letter-spacing: -0.02em;
}
.block__age {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.block p:not([class]) { color: var(--mute); font-size: 15.5px; }

/* ── Principles ──────────────────────────────────────────── */

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(48px, 6vw, 76px);
}
.principle { border-top: 2px solid var(--ink); padding-top: 18px; }
.principle:first-child { border-top-color: var(--accent); }
.principle__title {
  font-size: clamp(18px, 1.9vw, 24px);
  font-variation-settings: "wdth" 112, "wght" 700;
  margin-bottom: 12px;
}
.principle p { color: var(--mute); font-size: 15.5px; }

/* ── Pricing tiers ───────────────────────────────────────── */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: clamp(44px, 6vw, 72px);
}
.tiers--two { grid-template-columns: repeat(2, 1fr); }
.tier {
  background: var(--sub);
  padding: clamp(26px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 6px;
}
.tier--feature { background: var(--paper); }
.tier__price {
  font-family: var(--display);
  font-variation-settings: "wdth" 118, "wght" 800;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--accent);
}
.tier__unit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
}
.tier__body { color: var(--mute); font-size: 15.5px; }

.note {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
}
.note a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.note a:hover { color: var(--accent); }

/* ── Two-column prose ────────────────────────────────────── */

.twocol {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.prose { display: flex; flex-direction: column; gap: 20px; }
.prose p { color: var(--mute); max-width: 56ch; }

/* ── Contact band ────────────────────────────────────────── */

.contact { background: var(--deep); color: #fff; padding-block: var(--pad); }
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact__title { font-size: clamp(34px, 5vw, 66px); margin-top: 20px; }
.contact__body {
  display: flex; flex-direction: column; gap: 26px;
  padding-top: clamp(6px, 2vw, 30px);
}
.contact__body p { color: rgba(255,255,255,.74); max-width: 46ch; }
.contact__body .contact__note { font-size: 14px; color: rgba(255,255,255,.55); }

/* ── Footer ──────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--rule); padding-block: 32px; }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
}
.footer__nav { display: flex; gap: 22px; }
.footer__nav a { text-decoration: none; transition: color .18s ease; }
.footer__nav a:hover { color: var(--ink); }
.footer__line--end { margin-left: auto; }

/* ── Reveal ──────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 940px) {
  .nav { display: none; }
  .products, .blocks { grid-template-columns: repeat(2, 1fr); }
  .product, .product--learnaroo, .product--lumea { grid-column: span 1; }
  .product--next { grid-column: span 2; }
  .block, .block--lg, .block--sm { grid-column: span 1; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; }
  .twocol { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .head--tight { max-width: 560px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .products, .blocks { grid-template-columns: 1fr; }
  .product--next { grid-column: span 1; }
  .principles { grid-template-columns: 1fr; gap: 26px; }
  .btn { width: 100%; }
  .btn--sm, .btn--invert { width: auto; }
  .footer__line--end { margin-left: 0; }
  .footer__nav { order: 3; width: 100%; }
}

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