﻿/* ============================================================
   BAMPAA  -  Home / Landing Page
   assets/home.css
   ============================================================ */

/* ── Page shell ── */
.hm-page {
  overflow-x: hidden;
}

/* ── Shared section ── */
.hm-page section {
  padding: 30px 48px;
}

.hm-section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* ── Eyebrow ── */
.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(106, 165, 156, 0.12);
  border: 1px solid rgba(106, 165, 156, 0.25);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 700;
  color: #6AA59C;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ── Section headings ── */
.hm-section-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #e8ecf2;
  margin-bottom: 22px;
  white-space: pre-line;
}

.hm-section-sub {
  font-size: 16px;
  color: #6b7f9a;
  line-height: 1.75;
  max-width: 560px;
}

/* ── Glowing divider ── */
.hm-divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(106, 165, 156, 0.3), transparent);
}

/* ============================================================
   HERO
   ============================================================ */
.hm-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 48px 100px;
  position: relative;
  overflow: hidden;
}

.hm-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 800px 600px at 50% 20%, rgba(106, 165, 156, 0.09), transparent 60%),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(106, 165, 156, 0.05), transparent 50%),
    radial-gradient(ellipse 300px 300px at 90% 70%, rgba(232, 147, 90, 0.04), transparent 50%);
}

.hm-hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(30, 45, 69, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 45, 69, 1) 1px, transparent 1px);
  background-size: 52px 52px;
}

.hm-hero-headline {
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #e8ecf2;
  margin-bottom: 32px;
  animation: hm-fade-up 0.6s 0.1s ease both;
}

.hm-accent { color: #6AA59C; }
.hm-dim    { color: #6b7f9a; font-weight: 300; }

.hm-hero-sub {
  font-size: 16px;
  color: #6b7f9a;
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 52px;
  animation: hm-fade-up 0.6s 0.2s ease both;
}

.hm-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
  animation: hm-fade-up 0.6s 0.3s ease both;
}

/* Hero buttons */
.hm-btn-hero {
  display: inline-flex;
  align-items: center;
  padding: 18px 40px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #6AA59C, #4B7F76);
  color: #fff;
  font-family: var(--sans, 'Sora', sans-serif);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 36px rgba(106, 165, 156, 0.3);
  transition: all 0.2s;
  text-decoration: none;
}
.hm-btn-hero:hover {
  box-shadow: 0 0 52px rgba(106, 165, 156, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.hm-btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  padding: 17px 38px;
  border-radius: 999px;
  border: 1px solid rgba(30, 45, 69, 1);
  background: transparent;
  color: #e8ecf2;
  font-family: var(--sans, 'Sora', sans-serif);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.hm-btn-hero-ghost:hover {
  border-color: #6AA59C;
  color: #6AA59C;
}

/* Social proof */
.hm-social-proof {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  animation: hm-fade-up 0.6s 0.4s ease both;
}

.hm-proof-avatars { display: flex; }

.hm-proof-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #0b1120;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono, 'Space Mono', monospace);
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  margin-left: -9px;
}
.hm-proof-avatar:first-child { margin-left: 0; }

.hm-av-teal   { background: linear-gradient(135deg, #6AA59C, #4B7F76); }
.hm-av-orange { background: linear-gradient(135deg, #E8935A, #c27340); }
.hm-av-blue   { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.hm-av-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

.hm-proof-text {
  font-size: 14px;
  color: #6b7f9a;
}
.hm-proof-divider {
  width: 1px;
  height: 22px;
  background: rgba(30, 45, 69, 1);
}
.hm-proof-stat-val {
  font-family: var(--mono, 'Space Mono', monospace);
  font-size: 1rem;
  font-weight: 700;
  color: #6AA59C;
}
.hm-proof-stat-label { font-size: 12px; color: #6b7f9a; }

/* ============================================================
   DEMO CARD
   ============================================================ */
.hm-demo-section {
  padding: 0 48px 140px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hm-demo-wrap {
  width: 100%;
  max-width: 880px;
  animation: hm-fade-up 0.8s 0.5s ease both;
}

.hm-demo-card {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(30, 45, 69, 1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 48px 96px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(106, 165, 156, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hm-demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: rgba(10, 16, 30, 0.8);
  border-bottom: 1px solid rgba(30, 45, 69, 1);
}

.hm-demo-dots { display: flex; gap: 7px; }

.hm-demo-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.hm-dot-red    { background: #ef4444; }
.hm-dot-yellow { background: #f59e0b; }
.hm-dot-green  { background: #22c55e; }

.hm-demo-title-bar {
  font-family: var(--mono, 'Space Mono', monospace);
  font-size: 0.72rem;
  color: #6b7f9a;
}

.hm-demo-badge-bar {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 6px;
  background: rgba(106, 165, 156, 0.12);
  border: 1px solid rgba(106, 165, 156, 0.2);
  color: #6AA59C;
}

.hm-demo-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hm-demo-left {
  padding: 28px;
  border-right: 1px solid rgba(30, 45, 69, 1);
}
.hm-demo-right { padding: 28px; }

.hm-demo-q-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7f9a;
  margin-bottom: 12px;
}
.hm-demo-q-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
  color: #e8ecf2;
}
.hm-demo-q-hint {
  font-size: 14px;
  color: #6b7f9a;
  line-height: 1.65;
  margin-bottom: 24px;
}
.hm-demo-q-hint code {
  font-family: var(--mono, 'Space Mono', monospace);
  background: rgba(106, 165, 156, 0.1);
  color: #6AA59C;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
}
.hm-demo-schema-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7f9a;
  margin-bottom: 10px;
}
.hm-demo-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hm-demo-col {
  font-family: var(--mono, 'Space Mono', monospace);
  font-size: 0.65rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(30, 45, 69, 1);
  border-radius: 6px;
  color: #7dd3fc;
}
.hm-demo-editor-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7f9a;
  margin-bottom: 12px;
}
.hm-demo-code {
  background: #05090f;
  border: 1px solid rgba(30, 45, 69, 1);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: var(--mono, 'Space Mono', monospace);
  font-size: 0.78rem;
  line-height: 1.75;
  color: #c3d9f0;
  margin-bottom: 16px;
}
.hm-kw  { color: #E8935A; }
.hm-str { color: #fde68a; }
.hm-cur {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: #6AA59C;
  animation: hm-blink 1s infinite;
  vertical-align: middle;
}
@keyframes hm-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hm-demo-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 14px;
  color: #6ee7b7;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.hm-how-section {
  background: rgba(17, 24, 39, 0.6);
  border-top: 1px solid rgba(30, 45, 69, 1);
  border-bottom: 1px solid rgba(30, 45, 69, 1);
}

.hm-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(30, 45, 69, 1);
  border-radius: 24px;
  overflow: hidden;
  margin-top: 80px;
}

.hm-step {
  padding: 56px 44px;
  background: #0b1120;
  transition: background 0.3s;
}
.hm-step:hover { background: rgba(106, 165, 156, 0.03); }
.hm-step + .hm-step { border-left: 1px solid rgba(30, 45, 69, 1); }

.hm-step-num {
  font-family: var(--mono, 'Space Mono', monospace);
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(106, 165, 156, 0.1);
  line-height: 1;
  margin-bottom: 28px;
}
.hm-step-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(106, 165, 156, 0.12);
  border: 1px solid rgba(106, 165, 156, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}
.hm-step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #e8ecf2;
  margin-bottom: 14px;
}
.hm-step-desc {
  font-size: 14px;
  color: #6b7f9a;
  line-height: 1.75;
  margin: 0;
}

/* ============================================================
   FEATURES
   ============================================================ */
.hm-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 80px;
}

.hm-feature-card {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(30, 45, 69, 1);
  border-radius: 22px;
  padding: 40px 36px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.hm-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6AA59C, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.hm-feature-card:hover {
  border-color: rgba(106, 165, 156, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.hm-feature-card:hover::before { opacity: 1; }

.hm-fc-orange::before { background: linear-gradient(90deg, transparent, #E8935A, transparent); }
.hm-fc-orange:hover   { border-color: rgba(232, 147, 90, 0.3); }

.hm-fc-blue::before { background: linear-gradient(90deg, transparent, #60a5fa, transparent); }
.hm-fc-blue:hover   { border-color: rgba(96, 165, 250, 0.3); }

.hm-feature-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(106, 165, 156, 0.12);
  border: 1px solid rgba(106, 165, 156, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 26px;
}
.hm-fc-orange .hm-feature-icon { background: rgba(232, 147, 90, 0.1); border-color: rgba(232, 147, 90, 0.2); }
.hm-fc-blue   .hm-feature-icon { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.2); }

.hm-feature-title {
  font-size: 20px;
  font-weight: 800;
  color: #e8ecf2;
  margin-bottom: 14px;
}
.hm-feature-desc {
  font-size: 14px;
  color: #6b7f9a;
  line-height: 1.75;
  margin: 0;
}

/* ============================================================
   TIMED PRACTICE SPOTLIGHT
   ============================================================ */
.hm-spotlight-section { position: relative; overflow: hidden; }

.hm-spotlight-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 900px 700px at 70% 50%, rgba(106, 165, 156, 0.06), transparent 60%);
}

.hm-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  position: relative;
}

.hm-spotlight-perks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0 0;
}

.hm-perk {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.hm-perk-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(106, 165, 156, 0.12);
  border: 1px solid rgba(106, 165, 156, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.hm-perk-title {
  font-size: 14px;
  font-weight: 700;
  color: #e8ecf2;
  margin-bottom: 4px;
}
.hm-perk-desc { font-size: 14px; color: #6b7f9a; line-height: 1.6; }

/* Timer demo widget */
.hm-timer-demo {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(30, 45, 69, 1);
  border-radius: 24px;
  padding: 44px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.hm-timer-demo-top {
  text-align: center;
  margin-bottom: 40px;
}
.hm-timer-big {
  font-family: var(--mono, 'Space Mono', monospace);
  font-size: 5rem;
  font-weight: 700;
  color: #6AA59C;
  line-height: 1;
  text-shadow: 0 0 48px rgba(106, 165, 156, 0.3);
  letter-spacing: 0.05em;
}
.hm-timer-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7f9a;
  margin-top: 10px;
}

.hm-timer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.hm-t-stat {
  text-align: center;
  padding: 18px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(30, 45, 69, 1);
  border-radius: 12px;
}
.hm-t-stat-val {
  font-family: var(--mono, 'Space Mono', monospace);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.hm-t-stat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7f9a;
}
.hm-green  { color: #10b981 !important; }
.hm-orange { color: #E8935A !important; }
.hm-brand  { color: #6AA59C !important; }

.hm-timer-progress {
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.hm-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #6AA59C, #4B7F76);
  border-radius: 4px;
  width: 68%;
  animation: hm-fill-pulse 2s ease-in-out infinite alternate;
}
@keyframes hm-fill-pulse { from { width: 68%; } to { width: 73%; } }

/* ============================================================
   LIVE CLASSES
   ============================================================ */
.hm-live-section {
  background: rgba(17, 24, 39, 0.6);
  border-top: 1px solid rgba(30, 45, 69, 1);
  border-bottom: 1px solid rgba(30, 45, 69, 1);
}

.hm-live-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  flex-wrap: wrap;
}

.hm-live-badge-big {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hm-live-dot-big {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: hm-blink-dot 1.5s infinite;
}
@keyframes hm-blink-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hm-live-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 340px;
}

.hm-live-card {
  background: rgba(22, 32, 50, 0.8);
  border: 1px solid rgba(30, 45, 69, 1);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s;
}
.hm-live-card:hover { border-color: rgba(106, 165, 156, 0.3); }

.hm-live-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.hm-live-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #e8ecf2;
  margin-bottom: 5px;
}
.hm-live-card-meta { font-size: 12px; color: #6b7f9a; }

.hm-live-card-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}
.hm-badge-today  { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #22c55e; }
.hm-badge-soon   { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25); color: #60a5fa; }
.hm-badge-next   { background: rgba(148,163,184,0.07); border: 1px solid rgba(148,163,184,0.15); color: #6b7f9a; }

/* ============================================================
   STATS ROW
   ============================================================ */
.hm-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(30, 45, 69, 1);
  border-radius: 24px;
  overflow: hidden;
}
.hm-stat-tile {
  padding: 60px 40px;
  text-align: center;
  background: rgba(17, 24, 39, 0.8);
  transition: background 0.2s;
}
.hm-stat-tile + .hm-stat-tile { border-left: 1px solid rgba(30, 45, 69, 1); }
.hm-stat-tile:hover { background: rgba(106, 165, 156, 0.04); }
.hm-stat-tile-val {
  font-family: var(--mono, 'Space Mono', monospace);
  font-size: 3.4rem;
  font-weight: 700;
  color: #6AA59C;
  line-height: 1;
  margin-bottom: 14px;
}
.hm-stat-tile-label { font-size: 14px; color: #6b7f9a; font-weight: 500; }

/* ============================================================
   FINAL CTA
   ============================================================ */
/* ── Newsletter ─────────────────────────────────────────────── */
.hm-mc-section {
  padding: 100px 48px;
  text-align: center;
}
.hm-mc-inner {
  max-width: 560px;
  margin: 0 auto;
}
.hm-mc-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.hm-mc-input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(99, 179, 237, 0.25);
  background: rgba(255,255,255,0.04);
  color: #e2e8f0;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.hm-mc-input:focus {
  border-color: rgba(99, 179, 237, 0.55);
}
.hm-mc-btn {
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.hm-mc-btn:hover { opacity: 0.88; }
.hm-mc-status {
  margin-top: 14px;
  font-size: 14px;
  min-height: 22px;
}
.hm-mc-success { color: #68d391; }
.hm-mc-error   { color: #fc8181; }

/* ── CTA ──────────────────────────────────────────────────── */
.hm-cta-section {
  text-align: center;
  padding: 180px 48px;
  position: relative;
  overflow: hidden;
}
.hm-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 700px 500px at 50% 50%, rgba(106, 165, 156, 0.08), transparent 60%);
}
.hm-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(106, 165, 156, 0.12);
  border: 1px solid rgba(106, 165, 156, 0.25);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 700;
  color: #6AA59C;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 36px;
  position: relative;
}
.hm-cta-title {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #e8ecf2;
  margin-bottom: 28px;
  white-space: pre-line;
  position: relative;
}
.hm-cta-sub {
  font-size: 16px;
  color: #6b7f9a;
  max-width: 500px;
  margin: 0 auto 56px;
  line-height: 1.75;
  position: relative;
}
.hm-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   ANIMATION
   ============================================================ */
@keyframes hm-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hm-eyebrow {
  animation: hm-fade-up 0.6s ease both;
}

/* ============================================================
   MOBILE ≤900px
   ============================================================ */
@media (max-width: 900px) {
  .hm-page section { padding: 90px 24px; }

  .hm-hero { padding: 110px 24px 70px; }
  .hm-hero-headline { font-size: 2.8rem; }

  .hm-demo-section { padding: 0 24px 100px; }
  .hm-demo-body { grid-template-columns: 1fr; }
  .hm-demo-left { border-right: none; border-bottom: 1px solid rgba(30, 45, 69, 1); }

  .hm-steps-grid { grid-template-columns: 1fr; }
  .hm-step + .hm-step { border-left: none; border-top: 1px solid rgba(30, 45, 69, 1); }

  .hm-features-grid { grid-template-columns: 1fr; }

  .hm-spotlight-grid { grid-template-columns: 1fr; gap: 48px; }

  .hm-live-inner { flex-direction: column; gap: 48px; }
  .hm-live-cards { min-width: 0; width: 100%; }

  .hm-stats-row { grid-template-columns: repeat(2, 1fr); }
  .hm-stat-tile:nth-child(3) { border-left: none; border-top: 1px solid rgba(30, 45, 69, 1); }
  .hm-stat-tile:nth-child(4) { border-top: 1px solid rgba(30, 45, 69, 1); }

  .hm-cta-section { padding: 110px 24px; }
}
/* ── Personalised plan hook section ────────────────────────── */
.hm-hook-section {
  padding: 100px 24px;
}

.hm-hook-inner {
  max-width: 640px;
}

.hm-hook-flow {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin-top: 40px;
  min-height: 160px;
}

/* Step 0  -  hook CTA */
.hm-hook-start-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 480px;
}

/* Progress indicator */
.hm-hook-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.hm-hook-dots {
  display: flex;
  gap: 6px;
}

.hm-hook-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.2s;
}

.hm-hook-dot.active {
  background: var(--brand);
  width: 22px;
  border-radius: 4px;
}

.hm-hook-dot.done {
  background: var(--brand);
  opacity: 0.45;
}

.hm-hook-step-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Question heading */
.hm-hook-q-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 18px;
  line-height: 1.3;
}

/* Auto-advance hint */
.hm-hook-auto-hint {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 10px;
  letter-spacing: 0.3px;
}

.hm-hook-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Industry grid */
.hm-hook-industry-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.hm-hook-radio-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.hm-hook-industry-label {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 8px;
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
  font-size: 12px;
  color: var(--text-muted);
}

.hm-hook-industry-label:hover {
  border-color: var(--brand);
  background: rgba(106,165,156,0.07);
}

.hm-hook-industry-label:has(.hm-hook-radio-input:checked) {
  border-color: var(--brand);
  background: rgba(106,165,156,0.12);
  color: var(--brand);
}

.hm-hook-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 5px;
}

.hm-hook-opt-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Option list */
.hm-hook-options {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.hm-hook-option-label {
  display: flex !important;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text);
  transition: all 0.18s;
  user-select: none;
}

.hm-hook-option-label:hover {
  border-color: var(--brand);
  background: rgba(106,165,156,0.07);
}

.hm-hook-option-label:has(.hm-hook-radio-input:checked) {
  border-color: var(--brand);
  background: rgba(106,165,156,0.12);
  color: var(--brand);
}

.hm-hook-error {
  font-size: 14px;
  color: #f87171;
  margin: 10px 0;
  padding: 10px 13px;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: 8px;
}

.hm-hook-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  margin-top: 24px;
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.hm-hook-btn:hover {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  transform: translateY(-1px);
}

/* Step animation */
@keyframes hmStepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

#hm-hook-step1,
#hm-hook-step2,
#hm-hook-step3,
#hm-hook-step4 {
  animation: hmStepIn 0.25s ease both;
}

/* Plan results */
.hm-plan-results {
  animation: hmStepIn 0.3s ease both;
}

.hm-plan-placement {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: rgba(106,165,156,0.08);
  border: 1px solid rgba(106,165,156,0.2);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.hm-plan-level-badge {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 3px;
}

.hm-plan-level-msg {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.hm-plan-role-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.hm-plan-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.hm-plan-days {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.hm-plan-day-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  position: relative;
}

.hm-plan-day-card.open {
  border-color: var(--brand);
  background: rgba(106,165,156,0.07);
}

.hm-plan-day-card.locked {
  opacity: 0.45;
}

.hm-plan-day-num {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(106,165,156,0.1);
  border: 1px solid rgba(106,165,156,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
  font-family: 'Syne', sans-serif;
}

.hm-plan-day-card.open .hm-plan-day-num {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.hm-plan-day-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.hm-plan-day-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.hm-plan-day-lock {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.4;
}

.hm-plan-gate {
  text-align: center;
  padding: 20px 0 4px;
}

.hm-plan-gate-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.hm-plan-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  color: #fff;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.hm-plan-cta-btn:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .hm-hook-industry-grid { grid-template-columns: repeat(3, 1fr); }
  .hm-plan-placement { flex-direction: column; gap: 12px; }
}


/* ============================================================
   NEW COACH HOME  (nh-*)
   ============================================================ */

.nh-page {
  overflow-x: hidden;
  font-family: inherit;
}

/* ── Eyebrow ── */
.nh-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6AA59C;
  margin-bottom: 14px;
}

/* ── HERO ── */
.nh-hero {
  position: relative;
  padding: 80px 24px 60px;
  overflow: hidden;
}
.nh-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 30%, rgba(106,165,156,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(106,165,156,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.nh-hero-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.nh-hero-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nh-hero-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #E8EAF0;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.nh-accent {
  color: #6AA59C;
}
.nh-hero-sub {
  font-size: 1rem;
  color: rgba(200,205,220,0.75);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 420px;
}
.nh-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.nh-btn {
  display: inline-block;
  padding: 12px 26px;
  background: #6AA59C;
  color: #0F1117;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.nh-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.nh-btn-ghost {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid rgba(106,165,156,0.35);
  color: #6AA59C;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.nh-btn-ghost:hover { border-color: #6AA59C; background: rgba(106,165,156,0.08); }

/* ── Plan graphic ── */
.nh-hero-right {
  display: flex;
  justify-content: center;
}
.nh-plan-graphic {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 380px;
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.nh-pg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nh-pg-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nh-pg-level-badge {
  background: rgba(106,165,156,0.18);
  color: #6AA59C;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nh-pg-dot {
  color: rgba(200,205,220,0.3);
  font-size: 14px;
}
.nh-pg-industry {
  font-size: 0.75rem;
  color: rgba(200,205,220,0.55);
  font-weight: 500;
}
.nh-pg-header-right {
  font-size: 12px;
  color: rgba(200,205,220,0.4);
  font-weight: 500;
}
.nh-pg-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nh-pg-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
}
.nh-pg-row-open {
  background: rgba(106,165,156,0.1);
  border: 1px solid rgba(106,165,156,0.2);
}
.nh-pg-day-num {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.nh-pg-open {
  background: rgba(106,165,156,0.25);
  color: #6AA59C;
}
.nh-pg-locked {
  background: rgba(255,255,255,0.06);
  color: rgba(200,205,220,0.35);
}
.nh-pg-concept-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nh-pg-icon {
  font-size: 0.75rem;
}
.nh-pg-concept {
  font-size: 14px;
  font-weight: 600;
  color: rgba(200,205,220,0.9);
}
.nh-pg-concept-muted {
  color: rgba(200,205,220,0.4);
  font-weight: 400;
}
.nh-pg-start {
  font-size: 12px;
  color: #6AA59C;
  font-weight: 700;
}
.nh-pg-lock {
  font-size: 0.75rem;
  opacity: 0.4;
}
.nh-pg-footer {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.nh-pg-tool-pip {
  width: 28px;
  height: 4px;
  border-radius: 2px;
}
.nh-pip-sql { background: #6AA59C; }
.nh-pip-py  { background: #E6A04A; }
.nh-pip-xl  { background: #6B8FD4; opacity: 0.5; }

/* ── Benefits ── */
.nh-benefits-section {
  padding: 80px 24px;
}
.nh-section-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.nh-section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #E8EAF0;
  margin: 0 0 40px;
  letter-spacing: -0.02em;
}
.nh-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.nh-benefit-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.25s, transform 0.2s;
}
.nh-benefit-card:hover {
  border-color: rgba(106,165,156,0.25);
  transform: translateY(-2px);
}
.nh-bc-teal  { border-color: rgba(106,165,156,0.18); }
.nh-bc-orange{ border-color: rgba(230,160,74,0.15); }
.nh-benefit-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.nh-benefit-title {
  font-size: 1rem;
  font-weight: 700;
  color: #E8EAF0;
  margin-bottom: 8px;
}
.nh-benefit-desc {
  font-size: 14px;
  color: rgba(200,205,220,0.6);
  line-height: 1.65;
  margin: 0;
}

/* ── Divider ── */
.nh-divider {
  height: 1px;
  max-width: 1080px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(106,165,156,0.2), transparent);
}

/* ── Newsletter ── */
.nh-mc-section {
  padding: 80px 24px;
}
.nh-mc-inner {
  text-align: center;
  max-width: 560px !important;
}
.nh-section-sub {
  font-size: 14px;
  color: rgba(200,205,220,0.6);
  line-height: 1.7;
  margin: 0 0 28px;
}
.nh-mc-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.nh-mc-input {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  color: #E8EAF0;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.nh-mc-input:focus { border-color: #6AA59C; }
.nh-mc-input::placeholder { color: rgba(200,205,220,0.35); }
.nh-mc-btn {
  padding: 12px 26px;
  background: #6AA59C;
  color: #0F1117;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.nh-mc-btn:hover { opacity: 0.85; }
.nh-mc-status {
  margin-top: 12px;
  font-size: 14px;
  min-height: 18px;
}
.nh-mc-success { color: #6AA59C; }
.nh-mc-error   { color: #E06B6B; }

/* ── Responsive ── */
/* ── Tool badges ── */
.nh-tool-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.nh-tool-badge {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(106,165,156,0.12);
  border: 1px solid rgba(106,165,156,0.25);
  color: rgba(200,205,220,0.85);
}
.nh-tool-badge-muted {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: rgba(200,205,220,0.4);
}

/* ── Sub-CTA trust line ── */
.nh-cta-sub {
  font-size: 0.75rem;
  color: rgba(200,205,220,0.4);
  margin-top: 10px;
}

/* ── Testimonial ── */
.nh-quotes-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.nh-quote {
  padding: 14px 16px;
  border-left: 2px solid rgba(106,165,156,0.4);
  background: rgba(106,165,156,0.05);
  border-radius: 0 8px 8px 0;
}
.nh-quote-text {
  font-size: 14px;
  color: rgba(200,205,220,0.75);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 6px;
}
.nh-quote-author {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(200,205,220,0.4);
}

/* ── Social proof ── */
.nh-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.nh-avatars {
  display: flex;
}
.nh-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #0F1117;
  margin-left: -8px;
  color: #0F1117;
}
.nh-avatars .nh-av:first-child { margin-left: 0; }
.nh-av-teal   { background: #6AA59C; }
.nh-av-orange { background: #E6A04A; }
.nh-av-blue   { background: #6B8FD4; }
.nh-av-purple { background: #9B7ED4; }

.nh-proof-strong {
  font-size: 14px;
  font-weight: 700;
  color: rgba(200,205,220,0.9);
}
.nh-proof-muted {
  font-size: 14px;
  color: rgba(200,205,220,0.45);
}

/* ── Plan graphic: improved ── */
.nh-pg-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin: 10px 0 14px;
  overflow: hidden;
}
.nh-pg-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6AA59C, #4B7F76);
  border-radius: 2px;
  transition: width 0.6s ease;
}
.nh-pg-prog-done {
  font-size: 14px;
  font-weight: 700;
  color: #6AA59C;
}
.nh-pg-prog-label {
  font-size: 0.75rem;
  color: rgba(200,205,220,0.4);
}
.nh-pg-row-done {
  background: rgba(106,165,156,0.06);
  border: 1px solid rgba(106,165,156,0.12);
}
.nh-pg-day-num.nh-pg-done {
  background: rgba(106,165,156,0.2);
  color: #6AA59C;
}
.nh-pg-score {
  font-size: 12px;
  font-weight: 700;
  color: #6AA59C;
  background: rgba(106,165,156,0.12);
  padding: 2px 7px;
  border-radius: 10px;
}

/* ── How it works ── */
.nh-how-section {
  padding: 40px 24px 72px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.nh-steps-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 36px;
}

/* Step card */
.nh-step-card {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}
.nh-step-card:hover { border-color: rgba(106,165,156,0.2); }

.nh-step-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nh-step-badge {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #6AA59C;
}
.nh-step-title {
  font-size: 14px;
  font-weight: 700;
  color: #E8EAF0;
}
.nh-step-desc {
  font-size: 14px;
  color: rgba(200,205,220,0.5);
  line-height: 1.6;
  margin: 0;
}

/* Step graphic area */
.nh-step-graphic {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 90px;
}
.nh-step-icon {
  font-size: 1.3rem;
  line-height: 1;
}

/* Step 1: chips */
.nh-step-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nh-step-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  color: rgba(200,205,220,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}
.nh-chip-teal {
  background: rgba(106,165,156,0.15);
  color: #6AA59C;
  border-color: rgba(106,165,156,0.25);
}

/* Step 2: mini plan */
.nh-mini-plan { display: flex; flex-direction: column; gap: 5px; }
.nh-mini-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(200,205,220,0.8);
}
.nh-mini-muted { opacity: 0.4; }
.nh-mini-day {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}
.nh-day-open {
  background: rgba(106,165,156,0.25);
  color: #6AA59C;
}
.nh-day-lock {
  background: rgba(255,255,255,0.06);
  color: rgba(200,205,220,0.3);
}

/* Step 3: result graphic */
.nh-result-graphic { display: flex; flex-direction: column; gap: 6px; }
.nh-result-line {
  font-size: 12px;
  color: #6AA59C;
  font-weight: 600;
}
.nh-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nh-result-label {
  font-size: 12px;
  color: rgba(200,205,220,0.4);
}
.nh-result-val {
  font-size: 14px;
  font-weight: 700;
  color: #E8EAF0;
}
.nh-result-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.nh-result-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6AA59C, #4B7F76);
  border-radius: 2px;
}

/* Arrow between steps */
.nh-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 1rem;
  color: rgba(106,165,156,0.35);
  flex-shrink: 0;
  padding-bottom: 60px;
}

/* Pricing transparency line */
.nh-price-line {
  font-size: 14px;
  line-height: 1.6;
}
.nh-price-line-free {
  color: #6AA59C;
  font-weight: 600;
}
.nh-price-line-paid {
  color: rgba(200,205,220,0.5);
}
.nh-price-line-link {
  color: rgba(106,165,156,0.7);
  text-decoration: none;
  font-weight: 600;
}
.nh-price-line-link:hover { color: #6AA59C; }

@media (max-width: 860px) {
  .nh-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nh-hero-right { display: none; }
  .nh-benefits-grid { grid-template-columns: 1fr; gap: 14px; }
  .nh-steps-row { flex-direction: column; gap: 14px; }
  .nh-step-arrow { display: none; }
}
@media (max-width: 600px) {
  .nh-hero { padding: 52px 18px 60px; }
  .nh-benefits-section, .nh-mc-section, .nh-how-section { padding: 52px 18px; }
}

/* ============================================================
   AI FEEDBACK CARD  (nh-afc-*)
   ============================================================ */

.nh-afc-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nh-afc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nh-afc-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nh-afc-tool-icon {
  font-size: 1rem;
}
.nh-afc-tool-label {
  font-size: 0.75rem;
  color: rgba(200,205,220,0.6);
  font-weight: 500;
}
.nh-afc-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(106,165,156,0.18);
  color: #6AA59C;
  padding: 3px 9px;
  border-radius: 20px;
}

/* Prompt */
.nh-afc-prompt {
  background: rgba(255,255,255,0.025);
  border-radius: 10px;
  padding: 12px 14px;
}
.nh-afc-prompt-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(200,205,220,0.35);
  margin-bottom: 6px;
}
.nh-afc-prompt-text {
  font-size: 14px;
  color: rgba(200,205,220,0.85);
  line-height: 1.55;
}

/* Code block */
.nh-afc-code-wrap {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}
.nh-afc-code-lang {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(106,165,156,0.7);
  padding: 6px 12px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nh-afc-code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.75rem;
  color: rgba(200,220,210,0.85);
  line-height: 1.6;
  margin: 0;
  padding: 10px 14px;
  white-space: pre;
  overflow-x: auto;
}

/* AI feedback block */
.nh-afc-ai-block {
  background: rgba(106,165,156,0.07);
  border: 1px solid rgba(106,165,156,0.2);
  border-radius: 10px;
  padding: 12px 14px;
}
.nh-afc-ai-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.nh-afc-ai-star {
  font-size: 12px;
  color: #6AA59C;
}
.nh-afc-ai-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6AA59C;
}
.nh-afc-ai-text {
  font-size: 14px;
  color: rgba(200,205,220,0.75);
  line-height: 1.6;
}
.nh-afc-inline-code {
  font-family: monospace;
  font-size: 0.78rem;
  background: rgba(106,165,156,0.15);
  color: #8FBFB8;
  padding: 1px 5px;
  border-radius: 4px;
}

/* Score row */
.nh-afc-score-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.nh-afc-score-label {
  font-size: 12px;
  color: rgba(200,205,220,0.4);
  font-weight: 500;
}
.nh-afc-score-val {
  font-size: 1rem;
  font-weight: 800;
  color: #6AA59C;
}
.nh-afc-score-denom {
  font-size: 0.75rem;
  color: rgba(200,205,220,0.35);
}
.nh-afc-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.nh-afc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6AA59C, #4B7F76);
  border-radius: 2px;
}

/* ============================================================
   WHAT MAKES IT DIFFERENT  (nh-diff-*)
   ============================================================ */

.nh-diff-section {
  padding: 80px 24px;
}
.nh-diff-inner {
  text-align: left;
}
.nh-center {
  text-align: center;
}
.nh-section-sub.nh-center {
  margin: 0 auto 40px;
}
.nh-diff-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 40px;
}
.nh-diff-card {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
}
.nh-diff-card:hover { border-color: rgba(106,165,156,0.2); }
.nh-diff-card-highlight {
  background: rgba(106,165,156,0.07);
  border-color: rgba(106,165,156,0.25);
}
.nh-diff-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 16px;
  color: rgba(106,165,156,0.35);
  flex-shrink: 0;
}
.nh-diff-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
  color: rgba(200,205,220,0.5);
}
.nh-diff-icon-ai {
  color: #6AA59C;
}
.nh-diff-title {
  font-size: 14px;
  font-weight: 700;
  color: #E8EAF0;
}
.nh-diff-desc {
  font-size: 14px;
  color: rgba(200,205,220,0.55);
  line-height: 1.65;
}

/* ============================================================
   LEARNING JOURNEY  (nh-journey-*)
   ============================================================ */

.nh-journey-section {
  padding: 80px 24px;
}
.nh-journey-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 40px;
}
.nh-journey-step {
  flex: 0 1 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}
.nh-journey-icon-wrap {
  position: relative;
  margin-bottom: 16px;
}
.nh-journey-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(106,165,156,0.1);
  border: 1px solid rgba(106,165,156,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.nh-journey-num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: #6AA59C;
  color: #0F1117;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nh-journey-text {
  min-width: 0;
}
.nh-journey-title {
  font-size: 14px;
  font-weight: 700;
  color: #E8EAF0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nh-journey-soon {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(200,205,220,0.6);
  border: 1px solid rgba(200,205,220,0.25);
  border-radius: 999px;
  padding: 2px 8px;
}
.nh-journey-step-soon .nh-journey-icon,
.nh-journey-step-soon .nh-journey-num,
.nh-journey-step-soon .nh-journey-desc {
  opacity: 0.55;
}
.nh-journey-desc {
  font-size: 14px;
  color: rgba(200,205,220,0.5);
  line-height: 1.65;
}
.nh-journey-connector {
  flex-shrink: 0;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, rgba(106,165,156,0.4), rgba(106,165,156,0.15));
  margin-top: 28px;
  align-self: flex-start;
}

/* ============================================================
   WHO IT'S FOR  (nh-persona-*)
   ============================================================ */

.nh-persona-section {
  padding: 80px 24px;
}
.nh-persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.nh-persona-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.nh-persona-card:hover {
  border-color: rgba(106,165,156,0.2);
  transform: translateY(-2px);
}
.nh-persona-card-highlight {
  background: rgba(106,165,156,0.06);
  border-color: rgba(106,165,156,0.22);
}
.nh-persona-icon {
  font-size: 1.8rem;
}
.nh-persona-title {
  font-size: 1rem;
  font-weight: 700;
  color: #E8EAF0;
}
.nh-persona-desc {
  font-size: 14px;
  color: rgba(200,205,220,0.55);
  line-height: 1.65;
  flex: 1;
}
.nh-persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.nh-persona-tags span {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(106,165,156,0.1);
  border: 1px solid rgba(106,165,156,0.2);
  color: rgba(200,205,220,0.7);
}

/* ============================================================
   TESTIMONIALS  (nh-tq-*)
   ============================================================ */

.nh-tq-section {
  padding: 80px 24px;
}
.nh-tq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.nh-tq-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nh-tq-mark {
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(106,165,156,0.35);
  font-family: Georgia, serif;
  margin-bottom: -8px;
}
.nh-tq-text {
  font-size: 14px;
  color: rgba(200,205,220,0.72);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.nh-tq-author {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(200,205,220,0.4);
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ============================================================
   CLOSING CTA  (nh-cta-*)
   ============================================================ */

.nh-cta-wrapper {
  padding: 0 24px 80px;
}
.nh-cta-section {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  background: rgba(106,165,156,0.06);
  border: 1px solid rgba(106,165,156,0.2);
  border-radius: 24px;
  overflow: hidden;
}
.nh-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 50%, rgba(106,165,156,0.12), transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 50%, rgba(106,165,156,0.07), transparent 55%);
  pointer-events: none;
}
.nh-cta-inner {
  position: relative;
  padding: 64px 56px;
  max-width: 640px;
}
.nh-cta-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #E8EAF0;
  margin: 0 0 20px;
}
.nh-cta-sub-text {
  font-size: 14px;
  color: rgba(200,205,220,0.6);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 520px;
}
.nh-cta-checks {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.nh-cta-check {
  font-size: 12px;
  color: rgba(200,205,220,0.5);
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE - new sections
   ============================================================ */

@media (max-width: 860px) {
  .nh-diff-row {
    flex-direction: column;
    gap: 14px;
  }
  .nh-diff-arrow { display: none; }

  .nh-journey-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .nh-journey-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 16px;
    padding: 0;
  }
  .nh-journey-icon-wrap { flex-shrink: 0; margin-bottom: 0; }
  .nh-journey-title { font-size: 14px; margin-bottom: 4px; }
  .nh-journey-desc { font-size: 12px; }
  .nh-journey-connector { display: none; }

  .nh-persona-grid { grid-template-columns: 1fr; gap: 14px; }
  .nh-tq-grid { grid-template-columns: 1fr; gap: 14px; }
  .nh-cta-inner { padding: 40px 28px; }
}

@media (max-width: 600px) {
  .nh-tool-badges { gap: 6px; }
  .nh-tool-badge { padding: 4px 8px; font-size: 12px; }
  .nh-diff-section,
  .nh-journey-section,
  .nh-persona-section,
  .nh-tq-section { padding: 52px 18px; }
  .nh-cta-wrapper { padding: 0 18px 52px; }
}


/* ── Home on one screen (desktop): short hero, one row on how a level works, one line of ticks,
      and its own one-line footer with the email signup (the site footer is hidden here) ── */
.nh1 .nh1-hero{padding:34px 24px 18px}
.nh1 .nh-hero-inner{gap:48px}
.nh1 .nh-hero-headline{font-size:clamp(1.9rem,3.4vw,2.6rem);margin:0 0 12px}
.nh1 .nh-hero-sub{margin:0 0 18px;max-width:460px}
.nh1 .nh-cta-sub{margin-top:10px}
.nh1-below{max-width:calc(var(--b-wide) + 2 * var(--b-gutter));margin:0 auto;padding:0 24px 14px;display:flex;flex-direction:column;gap:12px}
.nh1-how{display:flex;align-items:center;gap:18px;padding:12px 16px;border:1px solid rgba(255,255,255,0.08);border-radius:14px;background:rgba(255,255,255,0.02)}
.nh1-label{flex:none;font:800 12px/1.3 system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#6AA59C;max-width:120px}
.nh1-steps{flex:1;display:flex;align-items:center;justify-content:space-between;gap:10px}
.nh1-step{display:flex;align-items:center;gap:10px;min-width:0}
.nh1-si{font-size:22px;line-height:1}
.nh1-st strong{display:block;color:#E8EAF0;font-size:14px}
.nh1-st span{display:block;color:rgba(200,205,220,0.65);font-size:12px}
.nh1-step.on strong{color:#6AA59C}
.nh1-arrow{color:rgba(200,205,220,0.35)}
.nh1-ticks{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 26px;color:rgba(200,205,220,0.8);font-size:14px}
.nh1-mc{display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px;padding:14px 20px;border:1px solid rgba(106,165,156,0.25);border-radius:14px;background:rgba(106,165,156,0.05)}
.nh1-mctext{flex:1 1 300px;display:flex;flex-direction:column;gap:2px}
.nh1-mctext strong{color:#E8EAF0;font-size:14px}
.nh1-mctext span{color:rgba(200,205,220,0.7);font-size:14px}
.nh1-mcform{flex:1 1 420px;display:flex;gap:10px}
.nh1-mcform .nh-mc-input{flex:1;min-width:0}
.nh1-mc .nh-mc-status{flex-basis:100%;font-size:14px;margin:0}
@media (max-width:900px){
  .nh1-how{flex-direction:column;align-items:flex-start}
  .nh1-label{max-width:none}
  .nh1-steps{flex-direction:column;align-items:flex-start}
  .nh1-arrow{display:none}
  .nh1-ticks{justify-content:flex-start;flex-direction:column}
  .nh1-mcform{flex-direction:column}
}
.nh1 .nh1-hero{padding:22px 24px 14px}
.nh1 .nh-hero-inner{grid-template-columns:1.25fr 1fr;align-items:center}
.nh1 .nh-hero-headline{font-size:clamp(1.9rem,3.2vw,2.5rem)}
.nh1 .nh-afc-card a{padding:8px 16px!important}
.nh1 .nh-afc-header{padding-top:12px;padding-bottom:10px}
.nh1 .nh-afc-card>div:last-child{margin:4px 16px 12px!important;padding:9px 12px!important}
.nh1-how{padding:10px 16px}
.nh1-below{gap:10px}
.nh1-mc .nh-mc-status:empty{display:none}
@media (min-width:901px){.nh1 .nh-hero-headline{font-size:2.15rem;line-height:1.18}.nh1 .nh-hero-left{min-width:600px}}
.nh1 .nh1-hero{padding:18px 24px 8px}.nh1-mc{padding:11px 18px}.nh1-below{gap:9px;padding-bottom:10px}
.nh1-mcform{flex:2 1 420px}

/* Home: the tools as one row of links, then how a level works, the ticks and the subscribe line (no card) */
.nh1 .nh1-hero{padding:56px 24px 40px}
.nh1-tools{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 6px}
.nh1-trow{display:flex;align-items:baseline;gap:8px;padding:10px 16px;border:1px solid var(--b-line);border-radius:var(--b-r-pill);text-decoration:none;color:var(--b-text)}
.nh1-trow:hover{border-color:var(--b-teal)}
.nh1-trow:hover .nh1-tn{color:var(--b-teal)}
.nh1-ti{font-size:16px}
.nh1-tn{font-weight:600;font-size:16px}
.nh1-tl{font-size:14px;color:var(--b-text-2);white-space:nowrap}
.nh1-mc{border:0;background:none;padding:6px 0 0;border-radius:0}
.nh1 .nh-hero-inner{grid-template-columns:1fr}
.nh1 .nh-hero-left{min-width:0}
/* Home over two screens: the hero fills the first (tools along its foot), the rest starts on the next */
.nh1 .nh1-hero{min-height:calc(100svh - 65px);box-sizing:border-box;display:flex;align-items:center;padding:40px 24px}
.nh1 .nh1-hero .nh-hero-inner{width:100%}
.nh1 .nh1-tools{margin:44px 0 0}
.nh1-below{gap:40px;padding-top:48px;padding-bottom:24px}
.nh1-ticks{justify-content:flex-start}
@media (max-width:900px){.nh1 .nh1-hero{min-height:0}}
/* Tools row sits below the buttons in weight: smaller than them, same pill shape */
.nh1-trow{padding:6px 13px;gap:7px;align-items:center}
.nh1-ti{font-size:13px}
.nh1-tn{font-size:14px;font-weight:600;color:var(--b-text-2)}
.nh1 .nh1-tools{gap:8px;margin-top:36px}
/* Home's first screen holds everything but the subscribe line: hero, then how a level works and the ticks */
.nh1 .nh1-hero{flex-direction:column;align-items:stretch;justify-content:center;gap:44px;padding:28px 24px 36px}
.nh1 .nh1-hero .nh-hero-inner,.nh1-first{width:100%;max-width:var(--b-wide);margin:0 auto}
.nh1-first{display:flex;flex-direction:column;gap:18px}
.nh1 .nh1-tools{margin-top:28px}
.nh1-below{padding-top:56px}
.nh1 .nh1-hero{justify-content:flex-start;padding-top:30px;min-height:0;gap:48px}.nh1 .nh-eyebrow{margin-top:0}
/* Home: one Spreadsheets exercise as a small demo on the right of the first screen */
.nh1 .nh-hero-inner{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:56px;align-items:start}
.nh1 .nh-hero-right{display:flex;justify-content:flex-end}
.nh1-preview{--ra:#6AA59C;--rc:#7CB8FF;width:100%;max-width:460px;background:var(--b-surface);border:1px solid var(--b-line);border-radius:var(--b-r-card);padding:18px 20px 16px;display:flex;flex-direction:column;gap:12px}
.nh1-pvtop{display:flex;justify-content:space-between;align-items:center;font:700 12px var(--b-font);letter-spacing:.1em;text-transform:uppercase;color:var(--b-teal)}
.nh1-pvtag{font:600 12px var(--b-mono);letter-spacing:0;text-transform:none;color:var(--b-text-2);border:1px solid var(--b-line);border-radius:var(--b-r-pill);padding:2px 9px}
.nh1-pvq{font:700 16px var(--b-font);color:var(--b-text)}
/* formula bar, like the tool's */
.nh1-pvfx{display:flex;align-items:center;gap:10px;min-height:38px;box-sizing:border-box;background:var(--b-bg);border:1px solid var(--b-line);border-radius:var(--b-r-sm);padding:7px 10px}
.nh1-pvfx .cell{font:600 12px var(--b-mono);color:var(--b-text-2);padding-right:10px;border-right:1px solid var(--b-line)}
.nh1-pvfx .fx{font:italic 600 13px var(--b-mono);color:var(--b-text-3)}
.nh1-pvfx code{font:600 13px var(--b-mono);color:var(--b-text);white-space:nowrap}
.nh1-pvfx code .ra{color:var(--ra)}
.nh1-pvfx code .rc{color:var(--rc)}
/* the sheet: shaded headers, gridlines, coloured range outlines */
.nh1-sheet{width:100%;border-collapse:separate;border-spacing:0;font:600 13px var(--b-mono);color:var(--b-text);border:1px solid var(--b-line);border-radius:var(--b-r-sm);overflow:hidden}
.nh1-sheet th{background:var(--b-surface-2);color:var(--b-text-3);font-weight:600;padding:4px 8px;text-align:center;border-bottom:1px solid var(--b-line)}
.nh1-sheet td{padding:6px 8px;border-bottom:1px solid var(--b-line);border-left:1px solid var(--b-line);transition:box-shadow .25s,background .25s,color .25s}
.nh1-sheet tr:last-child td{border-bottom:0}
.nh1-sheet td.rn{background:var(--b-surface-2);color:var(--b-text-3);text-align:center;width:22px;border-left:0}
.nh1-sheet tr.hd td{color:var(--b-text-2)}
.nh1-sheet td.num{text-align:right}
.nh1-sheet td.lab{color:var(--b-text-2)}
.nh1-sheet td.ans{color:var(--b-teal);font-weight:700;box-shadow:inset 0 0 0 2px var(--b-teal)}
/* a range lights up in its colour: side lines on every cell, top and bottom on the ends */
.nh1-sheet td.ra,.nh1-sheet td.rc{--c:transparent;background:color-mix(in srgb,var(--c) 9%,transparent);box-shadow:inset 2px 0 var(--c),inset -2px 0 var(--c)}
.nh1-sheet td.ra.top,.nh1-sheet td.rc.top{box-shadow:inset 2px 0 var(--c),inset -2px 0 var(--c),inset 0 2px var(--c)}
.nh1-sheet td.ra.bot,.nh1-sheet td.rc.bot{box-shadow:inset 2px 0 var(--c),inset -2px 0 var(--c),inset 0 -2px var(--c)}
.nh1-preview:not(.demo):not(.try) td.ra,.nh1-preview.show-ra td.ra{--c:var(--ra)}
.nh1-preview:not(.demo):not(.try) td.rc,.nh1-preview.show-rc td.rc{--c:var(--rc)}
/* the demo: C6 is empty until the formula is done, then the check */
.nh1-preview.demo td.ans{color:transparent}
.nh1-preview.demo.done td.ans{color:var(--b-teal);animation:nh1pop .35s ease-out}
@keyframes nh1pop{0%{opacity:0}100%{opacity:1}}
.nh1-preview.demo .nh1-pvcode::after{content:"";display:inline-block;width:2px;height:1em;margin-left:1px;vertical-align:-2px;background:var(--b-teal);animation:nh1caret 1s steps(1) infinite}
.nh1-preview.demo.done .nh1-pvcode::after{display:none}
@keyframes nh1caret{50%{opacity:0}}
.nh1-pvok{display:flex;align-items:center;gap:10px;font:700 14px var(--b-font);color:var(--b-teal)}
.nh1-pvok .pts{font-weight:600;color:var(--b-text-2)}
.nh1-preview.demo .nh1-pvok>span{opacity:0;transition:opacity .35s}
.nh1-preview.demo.ok .nh1-pvok>span{opacity:1}
.nh1-pvtry{margin-left:auto;font:600 14px var(--b-font);color:var(--b-teal);text-decoration:none}
.nh1-pvtry:hover{text-decoration:underline;text-underline-offset:3px}
@media (max-width:900px){.nh1 .nh-hero-right{display:none}}

.nh1-mcform{flex:1 1 100%}
/* More room on the first screen */
.nh1 .nh1-hero{gap:64px;padding-top:36px}
.nh1 .nh1-tools{margin-top:34px}
.nh1-first{gap:22px}
.nh1 .nh1-hero{padding-top:30px;gap:52px}
.nh1 .nh-hero-right{padding-top:34px}
/* First screen: the left column runs the full height of the demo card. The heading lines up with
   its top, the tool pills with its bottom, and the space in between is shared out. */
.nh1 .nh-hero-inner{align-items:stretch}
.nh1 .nh-hero-left{display:flex;flex-direction:column}
.nh1 .nh-hero-headline{margin:0 0 20px}
.nh1 .nh-hero-sub{margin:0 0 30px}
.nh1 .nh-cta-sub{margin-top:14px}
.nh1 .nh1-tools{margin-top:auto;padding-top:28px}
.nh1 .nh1-hero{gap:44px}
.nh1 .nh1-tools{margin-bottom:18px}
/* Returning learners: your progress under the buttons (assets/home_resume.js) */
.nh1 .nh1-resume{display:flex;flex-direction:column;gap:7px;margin-top:16px;max-width:420px}
.nh1-rline{font-size:14px;color:var(--b-text-2)}
.nh1-rbar{display:block;height:6px;border-radius:999px;background:var(--b-surface-2);overflow:hidden}
.nh1-rbar i{display:block;height:100%;background:var(--b-teal);border-radius:999px}
/* Try it yourself: the formula bar becomes a box to type in */
.nh1-pvin{flex:1;min-width:0;background:transparent;border:0;outline:0;color:var(--b-text);font:600 13px var(--b-mono);padding:0}
.nh1-pvin::placeholder{color:var(--b-text-3);font-weight:500}
.nh1-preview.try .nh1-pvfx{border-color:var(--b-teal)}
.nh1-preview.try.wrong .nh1-pvfx{border-color:#E8B04B}
.nh1-preview.try td.ans{color:transparent}
.nh1-preview.try.done td.ans{color:var(--b-teal);animation:nh1pop .35s ease-out}
.nh1-pvmsg{font:600 13px var(--b-font);color:var(--b-text-2)}
.nh1-preview.try.wrong .nh1-pvmsg{color:#E8B04B}
.nh1-preview.won .nh1-pvmsg{color:var(--b-teal);font-size:14px}
.nh1-pvmsg small{font-weight:500;color:var(--b-text-2)}
.nh1-pvmsg b{color:var(--b-text-2);font-weight:600;margin-left:6px}
/* Try it: tappable cells, a selection outline, and a Check button at the end of the formula bar */
.nh1-preview.try .nh1-sheet td:not(.rn):not(.ans),.nh1-preview.try .nh1-sheet th{cursor:cell;user-select:none;-webkit-user-select:none}
.nh1-preview.try .nh1-sheet{touch-action:none}
.nh1-preview.try .nh1-sheet td:not(.rn):not(.ans):hover{background:color-mix(in srgb,var(--b-teal) 10%,transparent)}
.nh1-sheet td.sel{background:color-mix(in srgb,var(--b-teal) 20%,transparent)!important;box-shadow:inset 0 0 0 1px var(--b-teal)!important}
.nh1-pvcheck{flex:none;margin-left:auto;font:700 13px var(--b-font);color:var(--b-on-teal);background:var(--b-teal);border:0;border-radius:var(--b-r-pill);padding:5px 14px;cursor:pointer}
.nh1-pvcheck:disabled{opacity:.7;cursor:default}
.nh1-pvcheck:focus-visible{outline:2px solid var(--b-text);outline-offset:2px}
/* One exercise in each tool: pills to switch, a data table, the code line, the result */
.nh1-pvpills{display:flex;gap:6px;flex-wrap:wrap;margin:-2px 0 2px}
.nh1-pvpill{font:600 12px var(--b-font);color:var(--b-text-2);background:none;border:1px solid var(--b-line);border-radius:var(--b-r-pill);padding:4px 11px;cursor:pointer}
.nh1-pvpill:hover{border-color:var(--b-teal);color:var(--b-text)}
.nh1-pvpill.on{background:var(--b-teal);border-color:var(--b-teal);color:var(--b-on-teal)}
.nh1-pvpill:focus-visible{outline:2px solid var(--b-text);outline-offset:2px}
.nh1-pvbody{display:flex;flex-direction:column;gap:12px;min-height:332px}
.nh1-dtwrap{display:flex;flex-direction:column;gap:4px}
.nh1-dtname{font:600 12px var(--b-mono);color:var(--b-text-3)}
.nh1-dt th{text-align:left;color:var(--b-text-2);font-weight:600;padding:5px 8px}
.nh1-dt th.num{text-align:right}
.nh1-dt th.ix,.nh1-dt td.ix{color:var(--b-text-3);background:var(--b-surface-2);width:18px;text-align:center}
.nh1-preview.try .nh1-dt [data-col]{cursor:pointer;user-select:none;-webkit-user-select:none}
.nh1-preview.try .nh1-dt [data-col]:hover{background:color-mix(in srgb,var(--b-teal) 10%,transparent)}
.nh1-pvres{min-height:44px;display:flex;align-items:center}
.nh1-preview.demo:not(.done) .nh1-pvres>*,.nh1-preview.try:not(.done) .nh1-pvres>*{visibility:hidden}
.nh1-preview.done .nh1-pvres>*{animation:nh1pop .35s ease-out}
.nh1-res{border-collapse:collapse;font:600 13px var(--b-mono);border:1px solid var(--b-line);border-radius:var(--b-r-sm)}
.nh1-res th{background:var(--b-surface-2);color:var(--b-text-2);font-weight:600;padding:3px 14px;text-align:left}
.nh1-res td{color:var(--b-teal);padding:4px 14px}
.nh1-pyout{font:600 14px var(--b-mono);color:var(--b-teal)}
.nh1-pyout span{color:var(--b-text-3);margin-right:6px}
.nh1-kpi{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:120px;padding:6px 18px;border:1px solid var(--b-line);border-radius:var(--b-r-sm);background:var(--b-bg)}
.nh1-kpi b{font:800 20px var(--b-font);color:var(--b-teal);line-height:1.1}
.nh1-kpi span{font-size:12px;color:var(--b-text-2)}
.nh1-pvbody{min-height:362px}   /* same height in every tool, so switching does not jump */
/* tighter card so the first screen still fits with the tool pills */
.nh1-preview{padding:14px 18px 12px;gap:9px}
.nh1-pvbody{gap:9px;min-height:0}
.nh1-sheet td{padding:4px 8px}
.nh1-sheet th,.nh1-dt th{padding:3px 8px}
.nh1-pvfx{min-height:34px;padding:5px 10px}
.nh1-pvres{min-height:34px}
.nh1-res th{padding:2px 12px}.nh1-res td{padding:2px 12px}
.nh1-kpi{padding:3px 16px}.nh1-kpi b{font-size:18px}
.nh1 .nh-hero-right{padding-top:20px}
/* The journey map under the hero buttons: stops on one line, ending in the certificate seal */
.nh1-journey{margin-top:auto;padding-top:28px;margin-bottom:18px}
.nh1-jcap{font-size:14px;color:var(--b-text-2);margin:0 0 12px}
.nh1-jline{display:flex;align-items:flex-start}
.nh1-jline .js{position:relative;flex:1 1 0;display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-decoration:none;color:var(--b-text-2);min-width:0}
.nh1-jline .js::before{content:"";position:absolute;top:7px;left:16px;right:0;height:2px;background:var(--b-line)}
.nh1-jline .js.done::before{background:var(--b-teal)}
.nh1-jline .dot{position:relative;z-index:1;width:16px;height:16px;border-radius:50%;background:var(--b-bg);border:2px solid var(--b-line);box-sizing:border-box}
.nh1-jline .js:hover .dot{border-color:var(--b-teal)}
.nh1-jline .js.done .dot{background:var(--b-teal);border-color:var(--b-teal)}
.nh1-jline .js.now .dot{border-color:var(--b-teal);box-shadow:0 0 0 4px color-mix(in srgb,var(--b-teal) 25%,transparent)}
.nh1-jline .nm{font:600 14px var(--b-font);white-space:nowrap}
.nh1-jline .js:hover .nm{color:var(--b-text)}
.nh1-jline .js.now .nm{color:var(--b-teal)}
.nh1-jline .nm small{display:block;font:500 12px var(--b-font);color:var(--b-text-3);margin-top:2px}
.nh1-jline>.b-seal{margin-top:-3px}
.nh1-journey{padding-top:20px;margin-bottom:10px}
.nh1-jline .js{flex:1 1 auto;padding-right:18px}.nh1-jline .nm{font-size:13px}
/* this week's finishes: pushed to the right end of the ticks line, soft blue */
.nh1-ticks .nh1-proof{margin-left:auto;color:var(--b-blue);font-weight:600}
.nh1 .nh-hero-right{padding-top:0}
/* One clear action on Home: "Get started" is the button; exploring the tools is a quiet text link */
.nh1 .nh-hero-actions{align-items:center;gap:22px}
.nh1 .nh-btn-ghost.nh1-textlink{border:0;padding:0;background:none;color:var(--b-text-2);font-weight:600;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--b-line)}
.nh1 .nh-btn-ghost.nh1-textlink:hover{color:var(--b-teal);text-decoration-color:var(--b-teal);background:none}
.nh1-jline span.js{cursor:default}
.nh1-jline span.js:hover .dot{border-color:var(--b-line)}
.nh1-jline span.js:hover .nm{color:var(--b-text-2)}
/* "See an example": a quiet link by the certificates tick, and the pop-up with the real certificate */
.nh1-certlink{background:none;border:0;padding:0;margin-left:4px;color:var(--b-teal);font:600 14px var(--b-font);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.nh1-certlink:hover{color:var(--b-text)}
.nh1-certex{position:fixed;inset:0;z-index:5000;background:rgba(5,9,18,.78);display:flex;align-items:center;justify-content:center;padding:20px}
.nh1-certex[hidden]{display:none}
.nh1-certbox{position:relative;width:min(860px,100%,calc((100vh - 120px) * 1.414));display:flex;flex-direction:column;gap:12px}
.nh1-certbox .cx-wrap{max-width:none;margin:0}
.nh1-certx{position:absolute;top:-14px;right:-14px;z-index:2;width:32px;height:32px;border-radius:50%;border:1px solid var(--b-line);background:var(--b-surface);color:var(--b-text);font-size:15px;cursor:pointer}
.nh1-certx:hover{border-color:var(--b-teal)}
.nh1-certcap{margin:0;text-align:center;color:var(--b-text-2);font-size:14px}
.nh1 .nh-hero-left{position:relative}
.nh1-by{position:absolute;left:0;top:100%;margin-top:12px;white-space:nowrap;font-size:12px;color:var(--b-text-3)}
.nh1-by a{color:var(--b-text-2);font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--b-line)}
.nh1-by a:hover{color:var(--b-teal)}
/* Home waits for home_resume.js before showing the hero's actions (no "Get started" → "Continue" flip) */
.nh1-hero:not(.nh1-ready) .nh-hero-actions,.nh1-hero:not(.nh1-ready) .nh-cta-sub,.nh1-hero:not(.nh1-ready) .nh1-journey,.nh1-hero:not(.nh1-ready) .nh-hero-headline,.nh1-hero:not(.nh1-ready) .nh-hero-sub{visibility:hidden;animation:nh1-show 0s 1.5s forwards}
@keyframes nh1-show{to{visibility:visible}}

/* desktop Home, plan learners: Welcome back, <name>. / Pick up where you left off. (assets/home_resume.js) */
.nh1-wname{display:inline-block;max-width:11ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.nh1-wsub{font-size:.62em;font-weight:600;color:var(--b-muted,#9aa7b5);letter-spacing:0}
