
/* ==========================================================================
   OMS COLLECTIVE — ARCHITECTURAL PRECISION DESIGN SYSTEM (v17)
   Inspired by Linear, Stripe & Vercel: Hairline Grids, Ambient Glows, Zero Clunk
   ========================================================================== */
:root {
  --navy: #050d1a;
  --navy-2: #0a192f;
  --navy-3: #112240;
  --on-navy: #f8fafc;
  --on-navy-2: rgba(248, 250, 252, 0.76);
  --on-navy-3: rgba(248, 250, 252, 0.48);
  --navy-line: rgba(255, 255, 255, 0.09);

  --paper: #fafafa;
  --surface: #ffffff;
  --sunk: #f4f4f5;
  --ink: #09090b;
  --ink-2: #52525b;
  --ink-3: #71717a;
  --hair: #e4e4e7;
  --hair-strong: #d4d4d8;

  --accent: #0d9488;
  --accent-ink: #ffffff;
  --wash: #f0fdfa;

  --gold: #f5b70a;
  --gold-ink: #181100;

  --flag: #d97706;
  --flag-wash: #fef3c7;
  --ok: #10b981;
  --ok-wash: #d1fae5;
  --bad: #ef4444;
  --bad-wash: #fee2e2;
  --done: #2563eb;
  --done-wash: #dbeafe;
  --yel: #f59e0b;
  --yel-wash: #fef3c7;

  --k-renal: #0d9488;
  --k-cardio: #e11d48;
  --k-resp: #2563eb;--k-imm: #9333ea;
  --k-cbse2026: #4f46e5;
  --k-cbse2027: #7c3aed;

  --ui: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --read: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --disp: 'Plus Jakarta Sans', 'Instrument Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-elevated: 0 12px 32px -8px rgba(9, 9, 11, 0.07), 0 2px 6px -1px rgba(9, 9, 11, 0.04);
  --shadow-book: 0 10px 25px -5px rgba(9, 9, 11, 0.14), 0 4px 10px -3px rgba(9, 9, 11, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #030712;
    --navy-2: #070e1d;
    --navy-3: #0f172a;
    --paper: #060911;
    --surface: #0b101b;
    --sunk: #111827;
    --ink: #f8fafc;
    --ink-2: #94a3b8;
    --ink-3: #64748b;
    --hair: rgba(255, 255, 255, 0.08);
    --hair-strong: rgba(255, 255, 255, 0.16);

    --k-renal: #14b8a6;
    --k-cardio: #f43f5e;
    --k-resp: #3b82f6;--k-imm: #a855f7;
    --k-cbse2026: #6366f1;
    --k-cbse2027: #8b5cf6;

    --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --shadow-book: 0 14px 30px -6px rgba(0, 0, 0, 0.65);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --navy: #030712;
  --navy-2: #070e1d;
  --navy-3: #0f172a;
  --paper: #060911;
  --surface: #0b101b;
  --sunk: #111827;
  --ink: #f8fafc;
  --ink-2: #94a3b8;
  --ink-3: #64748b;
  --hair: rgba(255, 255, 255, 0.08);
  --hair-strong: rgba(255, 255, 255, 0.16);

  --k-renal: #14b8a6;
  --k-cardio: #f43f5e;
  --k-resp: #3b82f6;--k-imm: #a855f7;
  --k-cbse2026: #6366f1;
  --k-cbse2027: #8b5cf6;

  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-book: 0 14px 30px -6px rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
button:disabled { opacity: .35; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.gut { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1200px; margin: 0 auto; }

/* ==========================================================================
   PRECISION BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  border: 1px solid var(--hair-strong);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-subtle);
}
.btn:hover:not(:disabled) {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn:active:not(:disabled) {
  transform: translateY(0);
}
.h .btn.solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.h .btn.solid:hover { opacity: 0.9; }
.h .btn.white {
  background: #ffffff;
  border-color: #ffffff;
  color: #050d1a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.h .btn.white:hover {
  background: #f1f5f9;
  border-color: #f1f5f9;
}
.h .btn.ghostw {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(8px);
}
.h .btn.ghostw:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}
.h .btn.gold {
  background: linear-gradient(180deg, #ffca28 0%, #f5b70a 100%);
  border-color: #f5b70a;
  color: var(--gold-ink);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(245, 183, 10, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.h .btn.gold:hover {
  filter: brightness(1.04);
  box-shadow: 0 6px 24px rgba(245, 183, 10, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.h .btn.k {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  position: relative;
}
.h .btn.k:hover {
  background: var(--k);
  border-color: var(--k);
  color: #ffffff;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--k) 35%, transparent);
}
.h .btn.line {
  background: transparent;
  border-color: var(--hair-strong);
  color: var(--ink);
}
.h .btn.line:hover {
  border-color: var(--ink);
  background: var(--sunk);
}

/* ==========================================================================
   1. SLEEK FROSTED GLASS HEADER
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 13, 26, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav .in {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wm {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.15s;
}
.wm:hover { opacity: 0.9; }
.wm .mk {
  width: 25px;
  height: 30px;
  background: #ffffff;
  -webkit-mask: url(/img/mark.png) center/contain no-repeat;
  mask: url(/img/mark.png) center/contain no-repeat;
}
.wm span {
  white-space: nowrap;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.links a.tx, .links button.tx {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-navy-2);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.links .tx:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}
.links .th {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.links .th svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.links .sm { display: none; }
.links .btn {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 6px;
  margin-left: 8px;
  white-space: nowrap;
}

/* Auto-unlock notification banner */
.autobanner {
  background: linear-gradient(90deg, #0d9488, #2563eb);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  text-align: center;
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hx {
  background-color: var(--navy);
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.24), transparent 45%),
    radial-gradient(circle at 20% 85%, rgba(37, 99, 235, 0.15), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--navy-line);
}
.hx .hg {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
  padding-block: 68px 112px;
}
.hx h1 {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(38px, 4.8vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hx .lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--on-navy-2);
  margin: 0;
  max-width: 48ch;
}
.hx .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hx .ctas .btn {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: 8px;
}
.hfacts {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 16px 32px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--navy-line);
}
.hfacts b {
  display: block;
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.hfacts span {
  font-size: 12.5px;
  color: var(--on-navy-3);
}
.shot {
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 35px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 60px -10px rgba(13, 148, 136, 0.25);
  transform: perspective(1800px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
  margin: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}
.shot:hover {
  transform: perspective(1800px) rotateY(-1deg) rotateX(0deg) translateY(-4px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 45px 95px -20px rgba(0, 0, 0, 0.85),
    0 0 75px -5px rgba(13, 148, 136, 0.35);
}
.shot .bar {
  height: 34px;
  background: #1e293b;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.shot .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
}
.shot .bar i:nth-child(1) { background: #ef4444; opacity: 0.85; }
.shot .bar i:nth-child(2) { background: #f59e0b; opacity: 0.85; }
.shot .bar i:nth-child(3) { background: #10b981; opacity: 0.85; }
.shot .bar span {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  padding: 2px 10px;
}
.shot img { display: block; width: 100%; height: auto; }
.ecg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 60px;
  width: 100%;
  pointer-events: none;
  z-index: -1;
}
.ecg path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.45;
  stroke-dasharray: 4200;
  stroke-dashoffset: 4200;
  animation: trace 2.8s 0.3s cubic-bezier(0.6, 0.1, 0.3, 1) forwards;
}
@keyframes trace { to { stroke-dashoffset: 0; } }

/* ==========================================================================
   3. FRAMELESS ARCHITECTURAL FEATURE MATRIX
   ========================================================================== */
.feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-bottom: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  background: var(--surface);
}
.feats > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 36px 28px;
  border-right: 1px solid var(--hair);
  position: relative;
  transition: background 0.2s ease;
}
.feats > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.feats > div:hover { background: color-mix(in srgb, var(--sunk) 45%, var(--surface)); }
.feats > div:hover::before { opacity: 1; }
.feats > div:last-child { border-right: 0; }
.feats .ic {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--sunk);
  border: 1px solid var(--hair-strong);
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.feats > div:hover .ic {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--hair));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.feats .ic svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feats b {
  font-family: var(--disp);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.feats p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }

/* ==========================================================================
   4. EDITORIAL SECTION HEADERS & TECHNICAL SUBHEADERS
   ========================================================================== */
.sec { padding-top: 96px; }
.sh {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hair);
}
.sh h2 {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0;
  color: var(--ink);
}
.sh p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
h3.grp {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin: 48px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
h3.grp::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
h3.grp::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--hair);
}
h3.grp.first { margin-top: 0; }

/* ==========================================================================
   5. FREE DIAGNOSTIC BLOCK
   ========================================================================== */
.free {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 30px;
  background: 
    radial-gradient(500px circle at 0% 50%, color-mix(in srgb, var(--k-renal) 10%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--hair-strong);
  border-left: 3px solid var(--k-renal);
  border-radius: 8px;
  box-shadow: var(--shadow-subtle);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.free:hover {
  border-color: var(--k-renal);
  box-shadow: var(--shadow-elevated);
}
.free .art {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--k-renal) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--k-renal) 30%, transparent);
  color: var(--k-renal);
  display: grid;
  place-items: center;
}
.free .art svg { width: 28px; height: 28px; }
.free .txt { min-width: 0; }
.free h3 {
  margin: 0 0 4px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.free .meta { font-size: 14px; color: var(--ink-2); }
.free .go { align-self: center; }
.free .btn {
  --k: var(--k-renal);
  background: var(--k-renal);
  border-color: var(--k-renal);
  color: #ffffff;
}

/* ==========================================================================
   6. ARCHITECTURAL EXAM PANELS (.xc)
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.xc {
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  box-shadow: var(--shadow-subtle);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.xc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--k);
  z-index: 2;
}
.xc:hover {
  transform: translateY(-2px);
  border-color: var(--k);
  box-shadow: var(--shadow-elevated);
}
.cover {
  background: 
    radial-gradient(380px circle at 100% 0%, color-mix(in srgb, var(--k) 15%, transparent), transparent 70%),
    var(--surface);
  color: var(--ink);
  padding: 28px 26px 22px;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-bottom: 1px solid var(--hair);
  isolation: isolate;
}
.cover .art {
  position: absolute;
  z-index: -1;
  right: 20px;
  top: 20px;
  width: 56px;
  height: 56px;
  padding: 11px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--k) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--k) 24%, transparent);
  color: var(--k);
  transition: transform 0.3s ease;
}
.xc:hover .cover .art { transform: scale(1.05); }
.cover .art svg { width: 100%; height: 100%; }
.cover h4 {
  margin: 0 0 8px;
  font-family: var(--disp);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  padding-right: 72px;
  color: var(--ink);
}
.cover .meta {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 42ch;
}

.bk {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--hair);
  background: color-mix(in srgb, var(--sunk) 55%, var(--surface));
}
.bk a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 14px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  border-right: 1px solid var(--hair);
  transition: background 0.15s ease;
}
.bk a:last-child { border-right: 0; }
.bk a b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  color: var(--ink);
}
.bk a b svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  color: var(--ink-3);
}
.bk a span {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bk a.lk { pointer-events: none; opacity: 0.75; }
.bk a:not(.lk):hover { background: var(--surface); }
.bk a.dn span { color: var(--ok); font-weight: 600; }

.xc .ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 24px;
  margin-top: auto;
  background: var(--surface);
}
.xc .price {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.xc .price small {
  display: block;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
  margin-top: 4px;
}
.xc .st { font-size: 13.5px; color: var(--ink-2); }
.xc .st b { color: var(--ok); }
.xc .ft .btn { height: 40px; font-size: 13.5px; padding: 0 18px; }

.bundle {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-left: 3px solid var(--k-cbse2027);
  border-radius: 8px;
}
.bundle b { font-family: var(--disp); font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }
.bundle p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }

.soon {
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px 26px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--sunk) 50%, var(--surface));
  border: 1px solid var(--hair);
}
.soon .ic {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: color-mix(in srgb, #ea580c 12%, var(--surface));
  border: 1px solid color-mix(in srgb, #ea580c 28%, transparent);
  color: #ea580c;
  display: grid;
  place-items: center;
}
.soon .ic svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.soon h4 { font-family: var(--disp); margin: 0 0 3px; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.soon p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.soon a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 9px 15px;
  border-radius: 6px;
  border: 1px solid var(--hair-strong);
  background: var(--surface);
  text-decoration: none;
  transition: all 0.15s;
}
.soon a:hover { border-color: var(--ink); }
.skel { height: 290px; background: var(--sunk); border-radius: 8px; }

/* ==========================================================================
   7. INTERACTIVE 3D STUDY GUIDE BOOKSHELF + MULTI-PDF DOWNLOAD BAR
   ========================================================================== */
.shelf {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}
.gd {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.gd input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gd .chk {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(5, 13, 26, 0.78);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: transparent;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: all 0.16s ease;
}
.gd .chk svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gd input:checked ~ .chk {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.45);
}
.gd img {
  display: block;
  width: 100%;
  aspect-ratio: 1105 / 1430;
  height: auto;
  object-fit: cover;
  border-radius: 4px 8px 8px 4px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  background: var(--sunk);
  box-shadow: var(--shadow-book), inset 4px 0 8px rgba(255, 255, 255, 0.2);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.2s ease;
}
.gd:hover img {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 38px -8px rgba(9, 9, 11, 0.22), 0 6px 14px -4px rgba(9, 9, 11, 0.12);
}
.gd input:checked ~ img {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-book);
}
.gd b {
  font-family: var(--disp);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 2px;
  transition: color 0.15s;
}
.gd:hover b, .gd input:checked ~ b { color: var(--accent); }
.gd span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  margin-top: -4px;
}

/* Architectural 3-Column Resource Index (.more) with Checkboxes */
.more {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--hair);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.more label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  color: var(--ink);
  border-right: 1px solid var(--hair);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}
.more label:last-child { border-right: 0; }
.more label:hover { background: color-mix(in srgb, var(--sunk) 50%, var(--surface)); }
.more label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.more label b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--disp);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.more label .mchk {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--hair-strong);
  background: var(--sunk);
  color: transparent;
  display: grid;
  place-items: center;
  flex: none;
  transition: all 0.15s ease;
}
.more label .mchk svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}
.more label input:checked ~ b .mchk {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.more label input:checked ~ b { color: var(--accent); }
.more label span { font-size: 13.5px; color: var(--ink-2); }

/* Direct PDF Download Console Bar */
.dlbar {
  margin-top: 20px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-subtle);
}
.dlbar .dlt { display: flex; flex-direction: column; gap: 4px; }
.dlbar .dlt b { font-family: var(--disp); font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
.dlbar .dlt span { font-size: 13.5px; color: var(--ink-2); }
.dlbar .dlacts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dlbar input[type="email"] {
  height: 42px;
  width: 260px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--hair-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 14px;
}
.dlbar input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}
.dlmsg {
  grid-column: 1 / -1;
  font-size: 13.5px;
  margin-top: -6px;
}
.dlmsg.ok { color: var(--ok); font-weight: 600; }
.dlmsg.bad { color: var(--bad); font-weight: 600; }

/* ==========================================================================
   8. STUDENT REVIEWS & TESTIMONIALS SECTION (.revs)
   ========================================================================== */
.revgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.rcard {
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-subtle);
}
.rcard .stars {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 2px;
}
.rcard p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  flex: 1;
}
.rcard .rwho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  font-size: 12.5px;
  color: var(--ink-2);
}
.rcard .rwho b { color: var(--ink); font-weight: 600; }
.rcard .vtag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  padding: 2px 8px;
  border-radius: 4px;
}
.revbox {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: 8px;
  padding: 26px;
}
.revbox h4 {
  margin: 0 0 16px;
  font-family: var(--disp);
  font-size: 18px;
  font-weight: 700;
}
.revform {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
}
.revform input, .revform select, .revform textarea {
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--hair-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 14px;
}
.revform textarea {
  grid-column: 1 / -1;
  min-height: 84px;
  resize: vertical;
}
.revform .rfoot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   9. LICENSE KEY & EMAIL UNLOCK VAULT (.unlock)
   ========================================================================== */
.unlock {
  margin-top: 100px;
  background-color: var(--navy);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(13, 148, 136, 0.15), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  color: #ffffff;
  border-top: 1px solid var(--navy-line);
}
.unlock .hg {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  padding-block: 88px;
  align-items: center;
}
.unlock h2 {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0 0 14px;
}
.unlock .l p {
  margin: 0;
  color: var(--on-navy-2);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 48ch;
}
.unlock label {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-navy-3);
  margin: 28px 0 10px;
}
.unlock .field {
  margin-top: 0;
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}
.unlock .field input {
  flex: 1;
  height: 52px;
  font-family: var(--mono);
  font-size: 15px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #050d1a;
  border: 1.5px solid transparent;
  padding: 0 16px;
  letter-spacing: 0.02em;
  min-width: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.15s;
}
.unlock .field input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 183, 10, 0.25);
}
.unlock .field input::placeholder {
  font-family: var(--ui);
  letter-spacing: 0;
  color: #64748b;
}
.unlock .field .btn {
  height: 52px;
  padding: 0 28px;
  flex: none;
  border-radius: 6px;
  font-size: 15px;
}
.unlock .msg {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--on-navy-2);
  min-height: 21px;
}
.unlock .msg.ok { color: #6ee7b7; font-weight: 600; }
.unlock .msg.bad { color: #fca5a5; font-weight: 600; }
.unlock .help {
  margin-top: 12px;
  font-size: 13px;
  color: var(--on-navy-3);
  line-height: 1.55;
}
.unlock ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--navy-line);
}
.unlock li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--navy-line);
}
.unlock li i {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 600;
  font-size: 12.5px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.unlock li b {
  display: block;
  font-family: var(--disp);
  font-size: 15.5px;
  margin-bottom: 3px;
  color: #ffffff;
}
.unlock li span {
  font-size: 13.5px;
  color: var(--on-navy-2);
  line-height: 1.55;
}

/* ==========================================================================
   10. FOOTER (.sfoot)
   ========================================================================== */
.sfoot {
  background: #030710;
  color: var(--on-navy-2);
  border-top: 1px solid var(--navy-line);
}
.sfoot .ftop {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: 64px 48px;
}
.sfoot .brandblk img {
  border-radius: 10px;
  width: 72px;
  height: 72px;
  display: block;
  margin-bottom: 16px;
  border: 1px solid var(--navy-line);
}
.sfoot .brandblk p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  max-width: 34ch;
  color: var(--on-navy-3);
}
.sfoot h5 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  font-weight: 600;
}
.sfoot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
}
.sfoot ul a {
  text-decoration: none;
  color: var(--on-navy-2);
  transition: color 0.15s;
}
.sfoot ul a:hover { color: #ffffff; }
.sfoot .legal {
  border-top: 1px solid var(--navy-line);
  padding-block: 26px 44px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--on-navy-3);
  display: grid;
  gap: 8px;
}
.sfoot .legal b { color: var(--on-navy-2); font-weight: 600; }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1020px) {
  .hx .hg { grid-template-columns: 1fr; gap: 48px; padding-block: 44px 96px; }
  .shot { transform: none; }
  .shot:hover { transform: translateY(-4px); }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .feats > div:nth-child(2) { border-right: 0; }
  .feats > div:nth-child(1), .feats > div:nth-child(2) { border-bottom: 1px solid var(--hair); }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .revgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sfoot .ftop { grid-template-columns: 1fr 1fr 1fr; }
  .sfoot .brandblk { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .sh { grid-template-columns: 1fr; gap: 10px; }
  .cards { grid-template-columns: 1fr; }
  .revgrid { grid-template-columns: 1fr; }
  .revform { grid-template-columns: 1fr; }
  .dlbar { grid-template-columns: 1fr; }
  .dlbar input[type="email"] { width: 100%; }
  .unlock .hg { grid-template-columns: 1fr; gap: 40px; padding-block: 60px; }
  .more { grid-template-columns: 1fr; }
  .more label { border-right: 0; border-bottom: 1px solid var(--hair); padding: 18px 20px; }
  .more label:last-child { border-bottom: 0; }
  .free { grid-template-columns: auto minmax(0, 1fr); padding: 20px; gap: 16px; }
  .free .go { grid-column: 1 / -1; }
  .free .go .btn { width: 100%; }
  .bundle { grid-template-columns: 1fr; }
  .soon { grid-template-columns: auto minmax(0, 1fr); }
  .soon a { grid-column: 1 / -1; text-align: center; }
}
@media (max-width: 560px) {
  .links .tx:not(.th) { display: none; }
  .links .lg { display: none; }
  .links .sm { display: inline; }
  .links .btn { padding: 0 12px; margin-left: 4px; }
  .nav .in { gap: 10px; height: 60px; }
  .wm span { font-size: 18px; }
  .hx .lead { font-size: 16px; }
  .hx .ctas .btn { flex: 1 1 100%; }
  .feats { grid-template-columns: 1fr; }
  .feats > div { border-right: 0 !important; border-bottom: 1px solid var(--hair); padding: 24px 20px; }
  .feats > div:last-child { border-bottom: 0; }
  .hfacts { grid-template-columns: repeat(2, auto); gap: 16px 40px; }
  .sec { padding-top: 68px; }
  .shelf {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 46%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -24px;
    padding: 8px 24px 16px;
    gap: 16px;
  }
  .gd { scroll-snap-align: start; }
  .cover { min-height: auto; padding: 22px 20px 18px; }
  .cover h4 { font-size: 20px; }
  .cover .art { width: 46px; height: 46px; right: 16px; top: 16px; padding: 9px; }
  .bk a { padding: 11px 10px; }
  .bk a b { gap: 4px; font-size: 11.5px; }
  .bk a b svg { width: 10px; height: 10px; flex: none; }
  .xc .ft { padding: 14px 20px; }
  .unlock .field { flex-wrap: wrap; gap: 10px; }
  .unlock .field input, .unlock .field .btn { width: 100%; }
  .sfoot .ftop { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   v24 ADDITIONS: multi-page nav, feature previews, upsell, guides gate, My exams portal
   ========================================================================== */
.links a.tx[aria-current="page"] { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.links .btn[aria-current="page"] { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }

/* Hero: one sentence, two actions */
.hx .lead.one { max-width: 46ch; }
.hx .note { margin-top: 14px; font-size: 13.5px; color: var(--on-navy-3); }
.hx .note a { color: var(--on-navy-2); }

/* Show, don't tell: real-UI previews */
.peeks { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: 56px; }
.peeks .col { display: grid; gap: 20px; }
.pk { background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-subtle); }
.pk .cap { padding: 18px 22px 20px; border-top: 1px solid var(--hair); }
.pk .cap b { display: block; font-family: var(--disp); font-size: 16px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 4px; }
.pk .cap p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.pk .ui { padding: 22px; background: color-mix(in srgb, var(--sunk) 60%, var(--surface)); flex: 1; font-size: 13px; display: flex; flex-direction: column; justify-content: center; }
.pk .ui .win { background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 8px; box-shadow: var(--shadow-elevated); overflow: hidden; }
.pk .ui .bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--hair); font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.pk .ui .bar b { color: var(--ink); font-weight: 600; }
/* report preview */
.rp { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 18px; }
.rp .ring { --p: 78; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--hair) 0); }
.rp .ring span { width: 82px; height: 82px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; font-family: var(--mono); font-weight: 600; font-size: 22px; line-height: 1.05; }
.rp .ring small { display: block; font-family: var(--ui); font-size: 10.5px; color: var(--ink-3); font-weight: 500; }
.rp .tops { display: grid; gap: 9px; min-width: 0; }
.rp .t { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-size: 12.5px; }
.rp .t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp .t em { font-style: normal; font-family: var(--mono); font-weight: 600; font-size: 12px; }
.rp .t i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--hair); position: relative; overflow: hidden; }
.rp .t i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--ok); border-radius: 3px; }
.rp .t.mid i::after { background: var(--yel); }
.rp .t.lo i::after { background: var(--bad); }
.rp .t.lo em { color: var(--bad); }
.rp .tip { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 6px; background: var(--bad-wash); color: #991b1b; font-size: 12.5px; }
:root[data-theme="dark"] .rp .tip { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rp .tip { background: rgba(239, 68, 68, 0.14); color: #fca5a5; } }
/* question preview */
.qp { padding: 16px 18px; display: grid; gap: 8px; }
.qp p { margin: 0 0 4px; line-height: 1.55; color: var(--ink-2); }
.qp mark { background: #fde68a; color: #111; padding: 0 2px; border-radius: 2px; }
.qp .ch { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--hair); border-radius: 6px; }
.qp .ch i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--hair-strong); flex: none; }
.qp .ch.x span { text-decoration: line-through; color: var(--ink-3); }
.qp .ch.on { border-color: var(--accent); background: var(--wash); }
:root[data-theme="dark"] .qp .ch.on { background: rgba(13, 148, 136, 0.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qp .ch.on { background: rgba(13, 148, 136, 0.14); } }
.qp .ch.on i { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); }
.flagd { display: inline-flex; align-items: center; gap: 5px; color: var(--flag); font-weight: 600; }
.flagd svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
/* lab panel preview */
.lp { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.lp td { padding: 7px 14px; border-bottom: 1px solid var(--hair); }
.lp tr:last-child td { border-bottom: 0; }
.lp td:last-child { text-align: right; font-family: var(--mono); color: var(--ink-2); }
.lp .h td { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); background: var(--sunk); }

/* Exam cards (shop): no locked block rows, price + two actions */
.xc .ft.two { gap: 10px 14px; }
.xc .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.owned-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ok); }
.owned-tag svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.sub-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 44px 0 16px; }
.sub-h h3 { margin: 0; font-family: var(--disp); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.sub-h p { margin: 0; color: var(--ink-2); font-size: 14px; }
.sub-h.first { margin-top: 0; }

/* CBSE upsell (2026 / 2027 / bundle) */
.ups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.up { --k: var(--k-cbse2026); position: relative; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 10px; display: flex; flex-direction: column; box-shadow: var(--shadow-subtle); }
.up .top { padding: 24px 24px 18px; border-bottom: 1px solid var(--hair); flex: 1; background: radial-gradient(320px circle at 100% 0%, color-mix(in srgb, var(--k) 12%, transparent), transparent 70%); border-radius: 10px 10px 0 0; }
.up h4 { margin: 0 0 8px; font-family: var(--disp); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.up ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.up li { display: flex; gap: 8px; }
.up li::before { content: ""; width: 14px; height: 14px; flex: none; margin-top: 3px; background: var(--k); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.up .bot { padding: 16px 24px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.up .pr { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.up .pr s { display: block; font-size: 13px; color: var(--ink-3); font-weight: 500; margin-bottom: 5px; }
.up .save { display: inline-block; margin-left: 8px; vertical-align: middle; font-family: var(--ui); font-size: 11.5px; font-weight: 700; letter-spacing: 0; color: #065f46; background: var(--ok-wash); padding: 3px 8px; border-radius: 999px; }
.up.pop { --k: var(--k-cbse2027); border: 2px solid var(--k); box-shadow: var(--shadow-elevated); }
.up .badge-pop { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--k); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.up.y27 { --k: var(--k-cbse2027); }
.up .art { width: 40px; height: 40px; padding: 8px; border-radius: 8px; color: var(--k); background: color-mix(in srgb, var(--k) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--k) 24%, transparent); margin-bottom: 14px; }
.up .art svg { width: 100%; height: 100%; }

/* Small band linking to the other pages */
.band { margin-top: 72px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.band a { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 22px 24px; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 10px; text-decoration: none; transition: border-color .15s, transform .15s; }
.band a:hover { border-color: var(--ink); transform: translateY(-1px); }
.band .ic { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: var(--wash); color: var(--accent); }
.band .ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.band b { display: block; font-family: var(--disp); font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
.band span { font-size: 13.5px; color: var(--ink-2); }
.band .go { font-size: 20px; color: var(--ink-3); }

/* Page header for inner pages */
.ph { background: radial-gradient(800px circle at 85% -20%, rgba(13, 148, 136, 0.28), transparent 60%), var(--navy); color: var(--on-navy); }
.ph .in { padding-block: 56px 52px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.ph .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #5eead4; margin: 0 0 12px; }
.ph h1 { margin: 0; font-family: var(--disp); font-size: clamp(32px, 4.5vw, 46px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.ph p.lead { margin: 14px 0 0; max-width: 56ch; color: var(--on-navy-2); font-size: 17px; line-height: 1.55; }

/* Free study guides page */
.gate { margin-top: -28px; position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 12px; box-shadow: var(--shadow-elevated); padding: 26px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center; }
.gate h2 { margin: 0 0 6px; font-family: var(--disp); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.gate p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.gate form { display: grid; gap: 10px; }
.gate .row { display: flex; gap: 10px; }
.gate input[type="email"] { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--hair-strong); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; }
.gate input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate .btn { height: 46px; }
.gate label.opt { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.gate label.opt input { margin-top: 2px; accent-color: var(--accent); }
.gate .done { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.gate .done .who { font-size: 13.5px; color: var(--ink-2); }
.gate .done .who button { text-decoration: underline; color: var(--ink-2); padding: 0; }
.dlmsg2 { font-size: 13.5px; font-weight: 600; min-height: 1.2em; }
.dlmsg2.ok { color: var(--ok); } .dlmsg2.bad { color: var(--bad); }
.lib { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.lb { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 18px; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 10px; align-items: start; }
.lb img { width: 112px; height: auto; aspect-ratio: 420 / 543; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-book); display: block; }
.lb .ph-cover { width: 112px; aspect-ratio: 420 / 543; border-radius: 4px; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy-3), var(--navy)); color: #fff; box-shadow: var(--shadow-book); }
.lb .ph-cover svg { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.lb h3 { margin: 2px 0 6px; font-family: var(--disp); font-size: 16px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.lb p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.lb .meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-bottom: 10px; }
.lb a.dl { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.lb a.dl svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.lb a.dl[aria-disabled="true"] { color: var(--ink-3); pointer-events: none; }
.lb .lock-i { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.pitch { margin-top: 64px; padding: 28px 30px; border-radius: 12px; background: var(--navy); color: var(--on-navy); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.pitch h3 { margin: 0 0 6px; font-family: var(--disp); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.pitch p { margin: 0; color: var(--on-navy-2); font-size: 14.5px; }
.pitch .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* My exams portal */
.portal-nav { background: var(--navy); }
.pt-chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(94, 234, 212, 0.12); color: #5eead4; border: 1px solid rgba(94, 234, 212, 0.25); }
.restore { margin-top: -28px; position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 12px; box-shadow: var(--shadow-elevated); padding: 24px 28px; }
.restore h2 { margin: 0 0 4px; font-family: var(--disp); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.restore > p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.restore form { display: flex; gap: 10px; }
.restore input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--hair-strong); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; }
.restore #rs-rc { flex: 0 0 180px; }
.restore input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.restore .btn { height: 46px; }
.restore .msg { margin-top: 10px; font-size: 14px; font-weight: 600; min-height: 1.3em; color: var(--ink-2); }
.restore .msg.ok { color: var(--ok); } .restore .msg.bad { color: var(--bad); }
.restore details { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.restore summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.restore details p { margin: 8px 0 0; line-height: 1.55; }
.okbox { margin-top: 24px; padding: 18px 22px; border-radius: 10px; background: var(--ok-wash); color: #065f46; border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); font-size: 14.5px; }
.okbox.bad { background: var(--bad-wash); color: #991b1b; border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.okbox b { display: block; font-size: 16px; margin-bottom: 2px; }
.okbox code { font-family: var(--mono); font-weight: 600; background: rgba(255, 255, 255, 0.6); padding: 1px 6px; border-radius: 4px; user-select: all; }
.mine { display: grid; gap: 20px; }
.mx { --k: var(--accent); background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-subtle); border-top: 3px solid var(--k); }
.mx .hd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 24px; }
.mx .art { width: 46px; height: 46px; padding: 9px; border-radius: 8px; color: var(--k); background: color-mix(in srgb, var(--k) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--k) 24%, transparent); }
.mx .art svg { width: 100%; height: 100%; }
.mx h3 { margin: 0; font-family: var(--disp); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.mx .sub { font-size: 13.5px; color: var(--ink-2); }
.mx .pbar { height: 6px; border-radius: 3px; background: var(--hair); margin-top: 8px; overflow: hidden; max-width: 260px; }
.mx .pbar i { display: block; height: 100%; background: var(--k); border-radius: 3px; }
.mx .bk { border-top: 1px solid var(--hair); border-bottom: 0; }
.mx .bk a span.go { color: var(--accent); font-weight: 600; }
.empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--hair-strong); border-radius: 12px; color: var(--ink-2); }
.empty h3 { margin: 0 0 6px; color: var(--ink); font-family: var(--disp); font-size: 19px; }
.empty p { margin: 0 auto 18px; max-width: 46ch; font-size: 14.5px; }
.faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.faq div { padding: 20px 22px; background: var(--surface); border: 1px solid var(--hair); border-radius: 10px; }
.faq b { display: block; font-size: 14.5px; margin-bottom: 6px; }
.faq p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.dev-note { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.dev-note button { text-decoration: underline; color: var(--ink-2); padding: 0; font-size: 13px; }

@media (max-width: 1020px) {
  .peeks { grid-template-columns: 1fr; }
  .ups { grid-template-columns: 1fr; max-width: 520px; }
  .lib { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: 1fr; }
  .gate { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 760px) {
  .band { grid-template-columns: 1fr; }
  .lib { grid-template-columns: 1fr; }
  .pitch { grid-template-columns: 1fr; }
  .ph .in { grid-template-columns: 1fr; padding-block: 44px 48px; }
  .mx .hd { grid-template-columns: auto minmax(0, 1fr); }
  .mx .hd > .btn, .mx .hd > .cta { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .links .tx.keep { display: inline-block; padding: 7px 8px; font-size: 13px; }
  .gate .row, .restore form { flex-direction: column; }
  .restore input, .restore #rs-rc { flex: none; }
  .gate, .restore { padding: 20px; }
  .rp { grid-template-columns: 1fr; justify-items: center; }
  .rp .tops { width: 100%; }
  .xc .acts { width: 100%; }
  .xc .acts .btn { flex: 1; }
  .up .bot .btn { width: 100%; }
  .lb { grid-template-columns: 84px minmax(0, 1fr); }
  .lb img, .lb .ph-cover { width: 84px; }
}
@media (max-width: 560px) {
  .links .tx.keep.wide { display: none; }
  .links { gap: 2px; }
}
@media (max-width: 380px) {
  .links .th { display: none; }
  .wm span { font-size: 16px; }
}
@media (max-width: 440px) {
  .links .th { display: none; }
  .nav .in { gap: 8px; }
}
@media (max-width: 380px) {
  .wm { gap: 8px; }
  .wm .mk { width: 21px; height: 26px; }
  .wm span { font-size: 15px; }
  .links .btn { padding: 0 10px; font-size: 12.5px; }
  .links .tx.keep { padding: 7px 6px; }
}

[hidden] { display: none !important; }

.fbform { grid-template-columns: 1fr auto; position: relative; }
@media (max-width: 640px) { .fbform { grid-template-columns: 1fr; } }

/* v24.4: reviewer name and school never get cut off */
.rcard .rwho { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; }
.rcard .rwho > div:first-child { min-width: 0; max-width: 100%; line-height: 1.5; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.rcard .vtag { flex: none; white-space: nowrap; }
