/* Numera Learning — "maths notebook": graph-paper grounds, navy ink, burgundy pen, gold highlights.
   Ivory pages alternate with midnight-navy bands. */
:root {
  --ivory: #F7F5F0;
  --white: #FFFFFF;
  --midnight: #202653;
  --navy: #292D70;
  --red: #C1273A;
  --gold: #C5A46D;
  --charcoal: #171717;

  --bg: var(--ivory);
  --surface: var(--white);
  --surface-2: #EFECE4;
  --ink: var(--charcoal);
  --ink-soft: #4A4D66;
  --heading: var(--navy);
  --accent: var(--red);
  --accent-ink: #FFFFFF;
  --gold-ink: #8A6A34;
  --line: rgba(41, 45, 112, 0.14);
  --grid: rgba(41, 45, 112, 0.07);
  --band-bg: var(--midnight);
  --band-ink: #F7F5F0;
  --band-soft: #C9CBE0;
  --band-line: rgba(197, 164, 109, 0.28);
  --shadow: 0 1px 2px rgba(32, 38, 83, 0.06), 0 8px 24px rgba(32, 38, 83, 0.08);
  --focus: #C1273A;
  --wa: #1FA855;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Mulish", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-brand: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --f-script: "Caveat", "Segoe Print", cursive;

  --radius: 14px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12152F; --surface: #1A1E44; --surface-2: #20255A;
    --ink: #EEECE6; --ink-soft: #B8BAD2; --heading: #F7F5F0;
    --accent: #D94358; --accent-ink: #FFFFFF; --gold-ink: #D9BC88;
    --line: rgba(197, 164, 109, 0.20); --grid: rgba(197, 164, 109, 0.07);
    --band-bg: #0B0D22; --band-ink: #F7F5F0; --band-soft: #B8BAD2; --band-line: rgba(197, 164, 109, 0.25);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); --focus: #E5B97A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12152F; --surface: #1A1E44; --surface-2: #20255A;
  --ink: #EEECE6; --ink-soft: #B8BAD2; --heading: #F7F5F0;
  --accent: #D94358; --accent-ink: #FFFFFF; --gold-ink: #D9BC88;
  --line: rgba(197, 164, 109, 0.20); --grid: rgba(197, 164, 109, 0.07);
  --band-bg: #0B0D22; --band-ink: #F7F5F0; --band-soft: #B8BAD2; --band-line: rgba(197, 164, 109, 0.25);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); --focus: #E5B97A;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--heading); line-height: 1.12; margin: 0; text-wrap: balance; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-variation-settings: "SOFT" 60, "opsz" 96; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-variation-settings: "SOFT" 50, "opsz" 72; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.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: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 64px); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px), 4vw);
  padding-right: max(16px, env(safe-area-inset-right, 0px), 4vw);
}
.section { padding-block: clamp(64px, 9vw, 112px); }
.eyebrow {
  font-family: var(--f-brand); font-size: .75rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; }
.script { font-family: var(--f-script); font-weight: 500; }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }

/* graph paper */
.graph {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- buttons ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 2px solid var(--b);
  background: var(--b); color: var(--accent-ink); font-family: var(--f-brand); font-weight: 600;
  font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px var(--b); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--heading); --b: var(--heading); }
.btn-ghost:hover { background: var(--heading); color: var(--bg); }
.btn-wa { --b: var(--wa); color: #fff; }
.btn-gold { --b: var(--gold); color: #171717; }
.band .btn-ghost { color: var(--band-ink); --b: var(--band-ink); }
.band .btn-ghost:hover { color: var(--band-bg); background: var(--band-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(32,38,83,.5); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; transition: min-height .3s var(--ease); }
.site-header.scrolled .nav { min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { width: 46px; height: 46px; flex: none; position: relative; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; transition: opacity .3s; }
.brand-mark .gold { opacity: 0; }
.brand-text { display: grid; line-height: 1.05; min-width: 0; }
.brand-name { font-family: var(--f-brand); font-weight: 500; letter-spacing: .14em; font-size: 1rem; color: var(--ink); white-space: nowrap; }
.brand-tag { font-family: var(--f-script); font-size: 1.12rem; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: 10px 14px; text-decoration: none; font-family: var(--f-brand);
  font-size: .86rem; font-weight: 500; letter-spacing: .04em; color: var(--ink); border-radius: 8px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--heading); font-weight: 700; }
.nav-cta { margin-left: 10px; }
.nav-cta .btn { min-height: 44px; padding: 8px 20px; font-size: .8rem; }
.menu-btn {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--heading); cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background .3s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 64px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
    box-shadow: 0 24px 40px -24px rgba(0,0,0,.35);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .3s, visibility .3s;
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .menu-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; min-height: 50px; }
}
@media (max-width: 420px) {
  .brand-name { font-size: .86rem; letter-spacing: .1em; }
  .brand-mark { width: 40px; height: 40px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 em { font-style: italic; color: var(--accent); font-variation-settings: "SOFT" 100, "opsz" 96; }
.hero .script-line { font-family: var(--f-script); font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--gold-ink); line-height: 1; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; padding: 0; list-style: none; }
.hero-facts li {
  font-family: var(--f-brand); font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--heading);
}

/* the notebook figure */
.plot {
  position: relative; background: var(--surface); border-radius: 22px; border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 22px; aspect-ratio: 1 / 0.92; max-width: 100%;
}
.plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.plot .axis { stroke: var(--heading); stroke-width: 1.6; fill: none; }
.plot .gridline { stroke: var(--grid); stroke-width: 1; }
.plot .curve { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 760; stroke-dashoffset: 0; }
.plot .curve-shadow { fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round; opacity: .22; }
.plot .pt { fill: var(--surface); stroke: var(--navy); stroke-width: 3; }
.plot .pt-end { fill: var(--gold); stroke: var(--gold); }
.plot .lbl { font-family: var(--f-script); font-size: 21px; fill: var(--heading); }
.plot .lbl-small { font-family: var(--f-brand); font-size: 10px; letter-spacing: .14em; fill: var(--ink-soft); font-weight: 600; }
.plot .pi-mark { position: absolute; right: 20px; top: 18px; width: 64px; opacity: .95; }
.plot .pi-mark img { width: 100%; }
.plot .pi-mark .gold { display: none; }
.anim .plot .curve { animation: draw 2.2s var(--ease) .3s both; }
.anim .plot .pt { animation: pop .5s var(--ease) both; }
.anim .plot .pt:nth-of-type(1) { animation-delay: .5s; }
.anim .plot .pt:nth-of-type(2) { animation-delay: 1.3s; }
.anim .plot .pt:nth-of-type(3) { animation-delay: 2.2s; }
@keyframes draw { from { stroke-dashoffset: 760; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(.2); transform-box: fill-box; transform-origin: center; } to { transform: scale(1); transform-box: fill-box; transform-origin: center; } }

/* hero load sequence */
.anim .hero-copy > * { animation: rise .8s var(--ease) both; }
.anim .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.anim .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.anim .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.anim .hero-copy > *:nth-child(5) { animation-delay: .32s; }
.anim .hero-copy > *:nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: .25; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .plot { max-width: 520px; width: 100%; }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.crumbs { font-family: var(--f-brand); font-size: .78rem; letter-spacing: .08em; color: var(--ink-soft); }
.crumbs a { text-decoration: none; color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent); }

/* ---------- facts strip ---------- */
.strip { background: var(--band-bg); color: var(--band-ink); }
.strip ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.strip li { display: flex; align-items: center; gap: 12px; font-family: var(--f-brand); font-size: .86rem; font-weight: 500; letter-spacing: .04em; min-width: 0; }
.strip svg { width: 26px; height: 26px; flex: none; color: var(--gold); }
@media (max-width: 860px) { .strip ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .strip ul { grid-template-columns: 1fr; } }

/* ---------- gap explainer ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split > * { min-width: 0; }
.split .copy { display: grid; gap: 18px; }
.ladder { display: grid; gap: 12px; }
.rung {
  display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px;
}
.rung .grade { font-family: var(--f-brand); font-weight: 700; font-size: .78rem; letter-spacing: .1em; color: var(--ink-soft); }
.rung .bar { height: 10px; border-radius: 10px; background: var(--surface-2); position: relative; overflow: hidden; }
.rung .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 10px; background: var(--navy); width: var(--w); transition: width 1.2s var(--ease); }
.rung.gap .bar i { background: var(--red); }
.rung .note { grid-column: 2; font-size: .85rem; color: var(--ink-soft); margin-top: -4px; }
.rung.gap { border-color: color-mix(in srgb, var(--red) 40%, transparent); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- program cards ---------- */
.programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prog {
  position: relative; display: flex; flex-direction: column; gap: 14px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px 22px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; overflow: hidden; min-width: 0;
}
.prog::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 16%, transparent), transparent 55%);
  opacity: 0; transition: opacity .35s;
}
.prog:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.prog:hover::before { opacity: 1; }
.prog > * { position: relative; }
.prog .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--navy); transition: background .35s, color .35s, transform .35s var(--ease); }
.prog:hover .ico { background: var(--navy); color: var(--gold); transform: rotate(-6deg); }
.prog .ico svg { width: 28px; height: 28px; }
.prog .name { font-family: var(--f-brand); font-weight: 700; letter-spacing: .14em; font-size: 1.02rem; color: var(--heading); }
.prog .sub { font-size: .86rem; font-weight: 700; color: var(--accent); margin-top: -8px; }
.prog .tag { font-family: var(--f-script); font-size: 1.3rem; color: var(--gold-ink); line-height: 1.15; }
.prog .desc { font-size: .95rem; color: var(--ink-soft); flex: 1; }
.prog .more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-brand); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--heading); }
.prog .more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.prog:hover .more svg { transform: translateX(5px); }
@media (max-width: 1080px) { .programs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .programs { grid-template-columns: 1fr; } }

/* ---------- approach steps ---------- */
.band { background: var(--band-bg); color: var(--band-ink); position: relative; overflow: hidden; }
.band h2, .band h3 { color: var(--band-ink); }
.band .lead { color: var(--band-soft); }
.band .eyebrow { color: var(--gold); }
.band.graph { background-image: linear-gradient(rgba(197,164,109,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(197,164,109,.06) 1px, transparent 1px); background-size: 28px 28px; background-color: var(--band-bg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; position: relative; }
.step { padding: 28px 28px 8px 0; display: grid; gap: 12px; position: relative; min-width: 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--band-line); }
.step .n { font-family: var(--f-display); font-size: 3.4rem; line-height: 1; color: var(--gold); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 400; }
.step h3 { font-size: 1.45rem; }
.step p { color: var(--band-soft); font-size: .98rem; }
.motto { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--band-line); font-family: var(--f-script); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--gold); text-align: center; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--band-line); }
}

/* ---------- CTA panel ---------- */
.cta-panel {
  display: grid; grid-template-columns: 1.3fr auto; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cta-panel::after {
  content: "π"; position: absolute; right: -10px; bottom: -70px; font-family: var(--f-display); font-size: 16rem; line-height: 1;
  color: color-mix(in srgb, var(--gold) 18%, transparent); pointer-events: none;
}
.cta-panel > * { position: relative; z-index: 1; min-width: 0; }
.cta-panel .copy { display: grid; gap: 12px; }
@media (max-width: 760px) { .cta-panel { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.prose { display: grid; gap: 18px; max-width: 68ch; font-size: 1.07rem; }
.prose p { color: var(--ink); }
.pull { font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--heading); border-left: 3px solid var(--gold); padding-left: 22px; font-variation-settings: "SOFT" 100; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.vm h3 { display: flex; align-items: center; gap: 12px; }
.vm h3 svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.ticks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C1273A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.band .ticks li::before { background-color: rgba(255,255,255,.08); }
@media (max-width: 760px) { .vm { grid-template-columns: 1fr; } }
.focus-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.focus-row > div { border-top: 2px solid var(--gold); padding-top: 16px; display: grid; gap: 6px; min-width: 0; }
.focus-row .k { font-family: var(--f-brand); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.focus-row .v { font-family: var(--f-display); font-size: 1.35rem; color: var(--heading); }
@media (max-width: 680px) { .focus-row { grid-template-columns: 1fr; } }

/* ---------- courses tabs ---------- */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 28px; position: relative; }
.tab {
  display: grid; gap: 2px; text-align: left; padding: 16px 18px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit;
  transition: background .3s, border-color .3s, transform .3s var(--ease), color .3s; min-width: 0;
}
.tab:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.tab .t-num { font-family: var(--f-brand); font-size: .7rem; letter-spacing: .16em; color: var(--ink-soft); font-weight: 600; }
.tab .t-name { font-family: var(--f-brand); font-weight: 700; letter-spacing: .1em; font-size: .98rem; color: var(--heading); }
.tab .t-sub { font-size: .8rem; color: var(--ink-soft); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); }
.tab[aria-selected="true"] .t-name { color: #fff; }
.tab[aria-selected="true"] .t-num { color: var(--gold); }
.tab[aria-selected="true"] .t-sub { color: #C9CBE0; }
@media (max-width: 860px) { .tabs { grid-template-columns: repeat(2, 1fr); } }

.panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.panel[hidden] { display: none !important; }
.panel.enter > * { animation: rise .55s var(--ease) both; }
.panel.enter > *:nth-child(2) { animation-delay: .08s; }
.panel-main, .panel-side { display: grid; gap: 22px; align-content: start; min-width: 0; }
.panel-head { background: var(--band-bg); color: var(--band-ink); border-radius: 22px; padding: clamp(26px, 4vw, 44px); display: grid; gap: 12px; position: relative; overflow: hidden; }
.panel-head .big-ico { position: absolute; right: -18px; bottom: -24px; width: 170px; height: 170px; color: rgba(197,164,109,.16); }
.panel-head > * { position: relative; }
.panel-head .p-num { font-family: var(--f-brand); font-size: .74rem; letter-spacing: .2em; color: var(--gold); font-weight: 600; }
.panel-head h2 { color: var(--band-ink); font-family: var(--f-brand); font-weight: 700; letter-spacing: .08em; font-size: clamp(2rem, 4.4vw, 3rem); }
.panel-head .p-sub { font-size: 1.05rem; font-weight: 700; color: #F1B7BF; }
.panel-head .p-tag { font-family: var(--f-script); font-size: clamp(1.45rem, 2.6vw, 1.9rem); color: var(--gold); line-height: 1.15; }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 30px); display: grid; gap: 12px; }
.block h3 { font-family: var(--f-brand); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.block p { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.facts div { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.facts .k { font-family: var(--f-brand); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.facts .v { font-weight: 700; color: var(--heading); font-size: .95rem; }
.objective { background: color-mix(in srgb, var(--gold) 16%, var(--surface)); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.objective p { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.45; color: var(--heading); font-variation-settings: "SOFT" 80; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: f; }
.feature-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before { counter-increment: f; content: counter(f, decimal-leading-zero); font-family: var(--f-brand); font-weight: 700; font-size: .78rem; color: var(--gold-ink); letter-spacing: .06em; }
.panel .btn { width: 100%; }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-grid > * { min-width: 0; }
.channels { display: grid; gap: 14px; }
.channel {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.channel:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--gold) 60%, transparent); box-shadow: var(--shadow); }
.channel .ci { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--navy); }
.channel .ci svg { width: 24px; height: 24px; }
.channel.wa .ci { background: var(--wa); color: #fff; }
.channel .k { font-family: var(--f-brand); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.channel .v { font-weight: 700; color: var(--heading); overflow-wrap: anywhere; }
.wa-big { background: var(--band-bg); color: var(--band-ink); border-radius: 20px; padding: 26px; display: grid; gap: 14px; }
.wa-big h3 { color: var(--band-ink); font-size: 1.35rem; }
.wa-big p { color: var(--band-soft); font-size: .95rem; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 22px; }
.form-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--f-brand); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--heading); }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-soft); font-family: var(--f-body); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; min-height: 50px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 16%, transparent); background: var(--surface); }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.field .err { font-size: .82rem; color: var(--accent); font-weight: 700; display: none; }
.field.invalid .err { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg); font-weight: 700; font-size: .9rem; color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.chip input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9rem; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); }
.consent a { color: var(--heading); font-weight: 700; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-note { font-size: .85rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; }
.result { border-radius: 16px; padding: 22px; display: grid; gap: 12px; background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.result h3 { font-size: 1.3rem; }
.result.error { background: color-mix(in srgb, var(--red) 10%, var(--surface)); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- legal ---------- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.legal > * { min-width: 0; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); display: grid; gap: 4px; font-size: .9rem; }
.toc .k { font-family: var(--f-brand); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 8px; }
.toc a { text-decoration: none; color: var(--ink-soft); padding: 6px 0 6px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--accent); border-color: var(--accent); }
.legal-body { display: grid; gap: 34px; max-width: 72ch; }
.legal-body section { display: grid; gap: 12px; scroll-margin-top: 100px; }
.legal-body h2 { font-size: 1.45rem; }
.legal-body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal-body a { color: var(--heading); font-weight: 700; }
.updated { font-family: var(--f-brand); font-size: .78rem; letter-spacing: .1em; color: var(--ink-soft); text-transform: uppercase; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- footer ---------- */
.site-footer { background: var(--band-bg); color: var(--band-soft); padding-block: 64px 28px; position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.foot-grid > * { min-width: 0; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand img { width: 220px; max-width: 100%; }
.foot-brand .motto-sm { font-family: var(--f-display); font-style: italic; color: var(--band-ink); font-size: 1.1rem; }
.site-footer h4 { font-family: var(--f-brand); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--band-soft); transition: color .2s; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--band-line); transition: background .25s, border-color .25s, transform .25s var(--ease); }
.socials a:hover { background: var(--gold); color: #171717; border-color: var(--gold); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--band-line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; }
.foot-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- floating WhatsApp + top ---------- */
.wa-float {
  position: fixed; z-index: 55; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; font-family: var(--f-brand); font-weight: 600; font-size: .86rem; letter-spacing: .04em;
  box-shadow: 0 12px 28px -10px rgba(31,168,85,.7); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa);
  animation: ring 2.6s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 560px) { .wa-float { width: 58px; padding: 0; justify-content: center; } .wa-float .lbl { display: none; } }

.to-top {
  position: fixed; z-index: 54; right: calc(26px + env(safe-area-inset-right, 0px)); bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--heading);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- scroll reveal (starts visible; JS only nudges elements below the fold) ---------- */
.reveal-ready .reveal { transition: transform .8s var(--ease), opacity .8s var(--ease); }
.reveal-ready .reveal.pending { transform: translateY(26px); opacity: .2; }
.reveal-ready .reveal.d1 { transition-delay: .08s; } .reveal-ready .reveal.d2 { transition-delay: .16s; } .reveal-ready .reveal.d3 { transition-delay: .24s; }

/* dark-mode logo swap */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-mark .color, :root:not([data-theme="light"]) .plot .pi-mark .color { opacity: 0; display: none; }
  :root:not([data-theme="light"]) .brand-mark .gold { opacity: 1; }
  :root:not([data-theme="light"]) .plot .pi-mark .gold { display: block; }
}
:root[data-theme="dark"] .brand-mark .color, :root[data-theme="dark"] .plot .pi-mark .color { display: none; }
:root[data-theme="dark"] .brand-mark .gold { opacity: 1; }
:root[data-theme="dark"] .plot .pi-mark .gold { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal-ready .reveal.pending { transform: none; opacity: 1; }
}
[hidden] { display: none !important; }

/* fixes */
.field label.consent { text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.channel .ci, .prog .ico { color: var(--heading); }
.plot .lbl, .plot .lbl-small { paint-order: stroke; stroke: var(--surface); stroke-width: 6px; stroke-linejoin: round; }
.plot .pi-mark { top: auto; bottom: 34%; right: 28px; width: 56px; }

/* stats */
.stats-sec { padding-block: clamp(40px, 6vw, 72px) 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.stat {
  display: grid; gap: 4px; align-content: start; padding: 26px 26px 22px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); min-width: 0;
}
.stat-num { font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--heading); font-weight: 600; font-variant-numeric: tabular-nums; font-variation-settings: "SOFT" 60, "opsz" 144; }
.stat-num.small { font-size: clamp(2.2rem, 4vw, 3rem); }
.stat-label { font-family: var(--f-brand); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-top: 8px; }
.stat-note { font-size: .9rem; color: var(--ink-soft); }

/* testimonials */
.t-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 40px); }
.t-nav { display: flex; gap: 10px; }
.t-btn { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--heading); cursor: pointer; display: grid; place-items: center; transition: background .25s, color .25s, transform .25s var(--ease), border-color .25s; }
.t-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }
.t-btn svg { width: 20px; height: 20px; }
.t-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 18px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.t-track::-webkit-scrollbar { display: none; }
.tcard {
  scroll-snap-align: start; margin: 0; position: relative; display: flex; flex-direction: column; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px 24px; min-width: 0;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.tq { font-family: var(--f-display); font-size: 4.2rem; line-height: .6; color: var(--gold); height: 26px; display: block; }
.tcard blockquote { margin: 0; flex: 1; font-size: 1rem; line-height: 1.7; color: var(--ink); }
.tcard figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line); }
.tav { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--f-brand); font-weight: 700; font-size: .9rem; }
.tav-student { background: var(--navy); color: var(--gold); }
.tav-parent { background: var(--red); color: #fff; }
.tw { display: block; font-weight: 700; color: var(--heading); font-size: .95rem; }
.tp { display: block; font-family: var(--f-brand); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.t-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.t-dots button { width: 9px; height: 9px; border-radius: 9px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.t-dots button.on { width: 28px; background: var(--accent); }
@media (max-width: 1000px) { .t-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .t-track { grid-auto-columns: 86%; } .t-nav { display: none; } }

/* learning-gap chain (replaces bar ladder) */
:root { --ok: #2E7D5B; --warn: #A86B12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ok: #5CC596; --warn: #E7B24E; } }
:root[data-theme="dark"] { --ok: #5CC596; --warn: #E7B24E; }
.chain { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); display: grid; gap: 18px; min-width: 0; }
.chain-cap { font-family: var(--f-display); font-size: 1.25rem; color: var(--heading); font-weight: 600; display: grid; gap: 6px; }
.chain-kicker { font-family: var(--f-brand); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.chain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.cstep { --c: var(--ok); display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; position: relative; }
.cstep + .cstep { border-top: 1px dashed var(--line); }
.cstep:not(:last-child) .cdot::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: calc(100% + 24px); transform: translateX(-50%); background: var(--line); z-index: -1; }
.cstep.gap { --c: var(--red); }
.cstep.hard { --c: var(--warn); }
.cdot { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--c); border: 2px solid var(--c); }
.cdot svg { width: 18px; height: 18px; }
.cbody { display: grid; gap: 1px; min-width: 0; }
.cgrade { font-family: var(--f-brand); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.ctopic { font-weight: 700; color: var(--heading); font-size: 1.02rem; }
.cnote { font-size: .86rem; color: var(--ink-soft); }
.cchip { font-family: var(--f-brand); font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.cstep.gap { background: color-mix(in srgb, var(--red) 6%, transparent); border-radius: 12px; margin-inline: -10px; padding-inline: 10px; }
.cstep.gap + .cstep { border-top-color: transparent; }
.chain-fix { margin: 0; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); color: var(--ink); font-size: .95rem; }
.chain-fix strong { color: var(--heading); }
@media (max-width: 420px) { .cstep { grid-template-columns: 32px 1fr; } .cchip { grid-column: 2; justify-self: start; } .cdot { width: 32px; height: 32px; } }

/* timed enquiry popup */
.np-lock, .np-lock body { overflow: hidden; }
.np-backdrop {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(16, 19, 48, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s ease;
}
.np-backdrop.show { opacity: 1; }
.np {
  position: relative; width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  display: grid; grid-template-columns: 220px 1fr; background: var(--surface); color: var(--ink);
  border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); outline: none;
  transform: translateY(24px) scale(.97); transition: transform .4s var(--ease);
}
.np-backdrop.show .np { transform: none; }
.np-side {
  background: var(--band-bg); background-image: linear-gradient(rgba(197,164,109,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(197,164,109,.08) 1px, transparent 1px);
  background-size: 22px 22px; border-radius: 24px 0 0 24px; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 28px;
}
.np-side img { width: 110px; }
.np-side .color { display: none; }
.np-script { font-family: var(--f-script); font-size: 1.5rem; color: var(--gold); }
.np-main { padding: clamp(24px, 4vw, 36px); display: grid; gap: 10px; min-width: 0; }
.np-main h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.np-lead { color: var(--ink-soft); font-size: .95rem; margin-bottom: 6px; }
.np-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 14px; }
.np .field input, .np .field select { min-height: 46px; padding: 10px 12px; }
.np-consent { font-size: .8rem !important; }
.np-cerr { display: block; color: var(--accent); font-size: .82rem; font-weight: 700; margin-top: 4px; }
.np-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.np-wa { color: var(--wa); font-weight: 700; font-size: .92rem; }
.np-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--heading); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; transition: transform .25s var(--ease), background .25s;
}
.np-close:hover { transform: rotate(90deg); background: var(--surface-2); }
.np-result { display: grid; gap: 12px; justify-items: start; padding: 18px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 14%, var(--surface)); }
.np-result h3 { font-size: 1.3rem; }
@media (max-width: 640px) {
  .np { grid-template-columns: 1fr; }
  .np-side { display: none; }
  .np-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .np, .np-backdrop { transition: none; } }
