/* ==========================================================================
   Prep Exams
   Navy and gold. The signature element is the admission ticket: every US
   exam has one, so order summaries and results are drawn as tickets with a
   perforated tear line and barcode. Gold is reserved for ordering.
   ========================================================================== */

:root {
  --navy: #0b1426;
  --navy-2: #131f38;
  --navy-3: #1e2c4b;
  --navy-line: #2a3a5e;
  --ink: #111a2e;
  --text: #2b3550;
  --muted: #647091;
  --paper: #f3f5fa;
  --card: #ffffff;
  --line: #dfe4ef;
  --blue: #3b6ff5;
  --blue-deep: #2451d6;
  --blue-tint: #ebf0ff;
  --gold: #ffc629;
  --brand-red: #ec2a30;
  --gold-deep: #f0ae00;
  --gold-tint: #fff6d6;
  --green: #22b573;
  --lime: #d9f99d;
  --danger: #d93a2b;

  --display: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 20, 38, .06), 0 8px 24px -12px rgba(11, 20, 38, .18);
  --shadow-lg: 0 2px 4px rgba(11, 20, 38, .06), 0 24px 60px -24px rgba(11, 20, 38, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16.5px/1.65 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
svg { flex: none; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--ink); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.mt { margin-top: 2.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 .98rem/1 var(--display); letter-spacing: .01em; padding: .95em 1.45em; border-radius: 10px;
  border: 2px solid transparent; background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s, border-color .18s; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { transition: transform .18s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-go { background: linear-gradient(180deg, #ffd65a, var(--gold) 60%, #ffba0a); color: #1c1402; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 20px -8px rgba(240, 174, 0, .75); text-transform: uppercase; }
.btn-go:hover { color: #1c1402; transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 14px 26px -10px rgba(240, 174, 0, .9); }
.btn-go:active { transform: translateY(0); }
.btn-outline-gold { border-color: var(--gold); color: var(--gold); text-transform: uppercase; }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }
.btn-line { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn-quiet { color: var(--muted); padding-left: .5em; padding-right: .5em; }
.btn-quiet:hover { color: var(--ink); }
.btn-sm { padding: .65em 1.05em; font-size: .86rem; border-radius: 8px; }
.btn-lg { padding: 1.05em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-arrow svg { transition: transform .18s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Masthead ---------- */
.masthead { background: rgba(11, 20, 38, .97); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.masthead-row { display: flex; align-items: center; gap: 24px; min-height: 78px; max-width: 1400px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.4rem/1 var(--display); color: #fff; text-decoration: none; letter-spacing: -0.02em; flex: none; }
.logo:hover { color: #fff; }
.logo-mark { height: 50px; aspect-ratio: 214 / 128; background: url(/img/logo-mark.png) center / contain no-repeat; flex: none; }
.logo-accent { color: var(--brand-red); }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; color: #e6ebf5; text-decoration: none; font: 400 1.02rem var(--display); padding: .6em .85em; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .has-menu.open > .nav-link { color: var(--gold); }
.nav-link svg { transition: transform .2s var(--ease); }
.has-menu.open > .nav-link svg { transform: rotate(180deg); }
.nav-item { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; width: 560px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 14px; opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .18s, transform .22s var(--ease), visibility .18s; z-index: 50;
}
.mega::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-menu.open > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-narrow { width: 360px; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-link { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.mega-link:hover { background: var(--paper); color: var(--ink); }
.mega-link strong { display: block; font: 600 .95rem var(--display); }
.mega-link small, .mega-row small { color: var(--muted); font-size: .82rem; }
.mega-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font: 500 .96rem var(--display); }
.mega-row:hover { background: var(--paper); color: var(--ink); }
.mega-foot { display: flex; gap: 18px; border-top: 1px solid var(--line); margin-top: 8px; padding: 12px 10px 4px; }
.mega-foot a { font: 600 .9rem var(--display); text-decoration: none; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; background: transparent; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.icon-btn:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; transform: translateY(-1px); }
.icon-btn-blue { background: var(--blue); border-color: var(--blue); }
.icon-btn-blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, .35); background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; max-height: calc(100dvh - 78px); overflow-y: auto; border-top: 1px solid var(--navy-line); }
  .nav-open .nav { display: flex; }
  .nav-link { width: 100%; justify-content: space-between; padding: 1em .2em; border-radius: 0; border-bottom: 1px solid var(--navy-line); }
  .mega, .mega-narrow { position: static; width: auto; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; margin: 8px 0; }
  .has-menu.open > .mega { display: block; transform: none; }
  .mega-grid { grid-template-columns: 1fr; }
  .head-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .masthead-row { min-height: 66px; gap: 10px; }
  .logo { font-size: 1.2rem; gap: 8px; }
  .logo .logo-mark { height: 36px; }
  .icon-btn { width: 42px; height: 42px; }
  .hide-sm { display: none; }
  .nav { max-height: calc(100dvh - 66px); }
}

/* ---------- Monogram tiles (exam abbreviations) ---------- */
.mono { --c: var(--blue); display: inline-grid; place-items: center; min-width: 40px; height: 30px; padding: 0 8px; border-radius: 8px; background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 80%, black); font: 700 .78rem var(--display); letter-spacing: .02em; flex: none; }
.mono-lg { min-width: 58px; height: 44px; font-size: 1rem; border-radius: 12px; }
.mono-xl { min-width: 96px; height: 70px; font-size: 1.6rem; border-radius: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.hero-photo {
  position: absolute; inset: 0 460px 0 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11, 20, 38, .94) 0%, rgba(11, 20, 38, .72) 36%, rgba(11, 20, 38, .1) 72%), url('/img/hero.jpg') 72% 28% / cover no-repeat;
}
.hero-photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(0deg, rgba(11, 20, 38, .7), transparent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; min-height: 660px; max-width: 1400px; margin: 0 auto; }
.hero-copy { padding: 72px var(--gutter) 64px; align-self: center; max-width: 660px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); padding: 7px 14px 7px 8px; border-radius: 999px; font: 500 .9rem var(--display); margin-bottom: 22px; }
.flag { width: 28px; height: auto; border-radius: 3px; display: block; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; text-transform: uppercase; margin-bottom: .35em; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.h1-light { display: block; font-weight: 300; }
.hero-sub { font-size: 1.2rem; color: #d8deeb; max-width: 44ch; margin-bottom: 1.6em; }
.badges { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.badges li { display: inline-flex; align-items: center; gap: 10px; padding: .7em 1.2em .7em .7em; border-radius: 999px; font: 600 .86rem var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--navy); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
.badges svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; }
.badge-white { background: #fff; }
.badge-white svg { background: var(--gold); color: var(--navy); }
.badges .badge-lime { background: var(--lime); color: #24500c; }
.badge-lime svg { background: #4d8f1f; color: #fff; }
.hero-exams { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-exams a { --c: var(--blue); display: inline-block; padding: 6px 12px; border-radius: 8px; font: 600 .82rem var(--display); color: #fff; text-decoration: none; background: rgba(255, 255, 255, .08); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); transition: background .15s, transform .15s; }
.hero-exams a:hover { background: color-mix(in srgb, var(--c) 45%, transparent); transform: translateY(-2px); color: #fff; }
.hero-exams .more { border-color: rgba(255, 255, 255, .25); color: #c9d1e3; }

.order-panel { background: linear-gradient(180deg, var(--navy-2), #0f1a30); padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid rgba(255, 255, 255, .06); }
.op-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.op-head h2 { font: 700 1.5rem var(--display); text-transform: uppercase; color: #fff; margin: 0; letter-spacing: 0; }
.op-live { display: inline-flex; align-items: center; gap: 8px; font: 500 .8rem var(--display); color: #9fe3bf; }
.op-live span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(34, 181, 115, .6); } 70% { box-shadow: 0 0 0 8px rgba(34, 181, 115, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 181, 115, 0); } }
.op-field { padding: 10px 0 0; }
.op-field > label, .op-label { display: block; font: 500 .74rem var(--display); color: #8f9bb8; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.op-stepper { display: flex; align-items: center; gap: 6px; background: var(--navy-3); border: 1.5px solid var(--navy-line); border-radius: 12px; padding: 5px 6px 5px 14px; }
.op-count-unit { flex: 1; font: 600 .95rem var(--display); color: #fff; text-transform: uppercase; }
.op-stepper button { width: 38px; height: 38px; border-radius: 9px; background: rgba(255, 255, 255, .06); border: 0; color: #fff; font: 400 1.35rem/1 var(--display); cursor: pointer; transition: background .15s; }
.op-stepper button:hover { background: rgba(255, 255, 255, .14); }
.order-panel .op-stepper input { width: 58px; min-height: 38px; border: 0; background: none; color: #fff; text-align: center; font: 600 1.15rem var(--display); padding: 0; box-shadow: none; }
.op-price { margin: 16px 0 14px; padding: 16px 0 0; border-top: 1px dashed var(--navy-line); }
.op-unit { margin: 0 0 4px; color: #b7c1d8; font-size: .95rem; min-height: 1.4em; }
.op-total { margin: 0 0 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.op-total > span { font: 600 1.05rem var(--display); text-transform: uppercase; color: #fff; }
.op-total output { font: 700 2.6rem/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.op-total s { color: #7d89a6; font: 500 1.1rem var(--display); }
.op-note { margin: 0; font-size: .82rem; color: #8f9bb8; }
output.tick { animation: tick .45s var(--ease); }
@keyframes tick { 30% { color: var(--gold); } }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-photo { inset: 0 0 auto 0; height: 600px; background: linear-gradient(180deg, rgba(11, 20, 38, .25) 0%, rgba(11, 20, 38, .6) 50%, var(--navy) 100%), url('/img/hero-sm.jpg') 60% 18% / cover no-repeat; }
  .hero-copy { padding: 220px var(--gutter) 36px; min-height: 600px; display: flex; flex-direction: column; justify-content: flex-end; max-width: none; }
  .hero-kicker { align-self: flex-start; }
  .order-panel { margin: 0 var(--gutter) 40px; border-radius: var(--r-lg); padding: 26px 20px; border: 1px solid var(--navy-line); }
}
@media (max-width: 480px) {
  .hero-copy { padding-top: 170px; min-height: 560px; }
  .hero-photo { height: 560px; }
  .badges li { font-size: .74rem; }
  .op-total output { font-size: 2.2rem; }
}

/* ---------- Results ticker ---------- */
.ticker { display: flex; align-items: stretch; background: var(--navy-2); color: #d8deeb; border-top: 1px solid var(--navy-line); overflow: hidden; font-size: .92rem; }
.ticker-label { flex: none; background: var(--gold); color: var(--navy); font: 700 .8rem var(--display); text-transform: uppercase; letter-spacing: .06em; padding: 14px 18px; display: flex; align-items: center; position: relative; z-index: 1; }
.ticker-track { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker ul { list-style: none; margin: 0; padding: 0 40px 0 0; display: flex; flex: none; gap: 40px; align-items: center; animation: marquee 60s linear infinite; }
.ticker:hover ul { animation-play-state: paused; }
.ticker li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ticker strong { color: #fff; font-weight: 600; }
.ticker em { font-style: normal; color: var(--gold); }
.tk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Perks ---------- */
.perks { background: var(--card); border-bottom: 1px solid var(--line); }
.perks-row { list-style: none; margin: 0 auto; padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.perks li { display: flex; gap: 14px; align-items: center; }
.perks svg { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--blue-tint); color: var(--blue); }
.perks strong { display: block; font: 600 1rem var(--display); color: var(--ink); }
.perks span { font-size: .88rem; color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 900px) { .perks-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .perks-row { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Sections ---------- */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band-tint { background: linear-gradient(180deg, #e9effb, var(--paper)); }
.band-navy { background: var(--navy); color: #c9d1e3; }
.band-navy h2 { color: #fff; }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head > p { font-size: 1.08rem; color: var(--muted); }
.band-navy .sec-head p { color: #aab5cc; }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.split-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split-2 { grid-template-columns: minmax(0, 1fr); } }

.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks-lg { gap: 14px; font-size: 1.02rem; }
.ticks-lg li { background: var(--card); padding: 16px 18px 16px 52px; border-radius: var(--r); box-shadow: var(--shadow); }
.ticks-lg li::before { left: 18px; top: 18px; }

/* ---------- Exam browser ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { --c: var(--ink); display: inline-flex; align-items: center; gap: 8px; font: 500 .92rem var(--display); padding: .6em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; transition: all .18s var(--ease); }
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip:hover { border-color: var(--c); }
.chip[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed=true]::before { background: var(--gold); }
.exam-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.exam-card {
  --c: var(--blue); position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; overflow: hidden;
}
.exam-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.exam-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.exam-card.pop { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.ec-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ec-group { font: 500 .78rem var(--display); color: color-mix(in srgb, var(--c) 75%, black); background: color-mix(in srgb, var(--c) 10%, white); padding: 4px 10px; border-radius: 999px; }
.exam-card h3 { font-size: 1.2rem; margin-bottom: .3em; }
.exam-card h3 a { color: var(--ink); text-decoration: none; }
.exam-card h3 a::after { content: ''; position: absolute; inset: 0; }
.exam-card > p { color: var(--muted); font-size: .94rem; margin-bottom: 16px; }
.ec-tiers { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--line); }
.ec-tiers li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.ec-tiers strong { font-family: var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.ec-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ec-from { color: var(--muted); font-size: .9rem; }
.ec-from strong { font: 700 1.5rem var(--display); color: var(--ink); margin-left: 4px; }
.ec-foot .btn { position: relative; z-index: 1; }
@media (max-width: 980px) { .exam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .exam-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Writing explorer ---------- */
.explorer { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; min-width: 0; }
.x-label { display: block; font: 500 .78rem var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; padding: 0; }
.x-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.x-label-row output { font: 600 1rem var(--display); color: var(--ink); }
.seg { border: 0; margin: 0; padding: 4px; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--paper); border-radius: 12px; gap: 4px; }
.seg legend { float: left; width: 100%; padding: 0; }
.seg legend + label { clear: both; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.seg span { display: block; text-align: center; padding: 10px 4px; border-radius: 9px; font: 500 .86rem var(--display); color: var(--text); transition: background .18s, color .18s, box-shadow .18s; }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--blue); }
.explorer .seg { display: flex; flex-wrap: wrap; }
.explorer .seg legend { margin: 0 0 4px; }
.explorer .seg label { flex: 1 1 22%; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--blue) var(--fill, 0%), var(--line) var(--fill, 0%)); cursor: pointer; margin: 8px 0 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 4px 12px rgba(59, 111, 245, .4); transition: transform .15s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.x-ticks { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-top: 10px; }
.x-pages { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.x-pages .x-label { margin: 0; }
.x-words { color: var(--muted); font-size: .9rem; }
.x-result { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; background: var(--navy); border-radius: var(--r); padding: 18px 20px; color: #fff; }
.x-result > div { display: grid; }
.x-cap { font: 500 .74rem var(--display); color: #8f9bb8; text-transform: uppercase; letter-spacing: .06em; }
.x-result output { font: 700 1.6rem var(--display); font-variant-numeric: tabular-nums; }
.x-result .x-total { font-size: 2.2rem; color: var(--gold); }
.x-result .btn { margin-left: auto; }

/* ---------- Reviews carousel ---------- */
.reviews { overflow: hidden; }
.carousel-nav { display: flex; gap: 10px; flex: none; }
.round-btn { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--navy-line); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.round-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.sample-note { display: inline-block; font-size: .85rem; color: #ffd98a; background: rgba(255, 198, 41, .1); border: 1px dashed rgba(255, 198, 41, .45); padding: 6px 12px; border-radius: 8px; margin: -12px 0 24px; }
.carousel { list-style: none; margin: 0; padding: 6px 2px 24px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--navy-line) transparent; }
.pass-card { scroll-snap-align: start; position: relative; background: #fff; color: var(--text); border-radius: var(--r-lg); padding: 24px 24px 20px; display: flex; flex-direction: column; overflow: hidden; }
.pass-card::before, .pass-card::after { content: ''; position: absolute; top: 88px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); }
.pass-card::before { left: -11px; }
.pass-card::after { right: -11px; }
.pc-head { display: flex; align-items: center; gap: 12px; padding: 0 70px 20px 0; margin-bottom: 18px; border-bottom: 2px dashed var(--line); min-height: 76px; }
.pc-head strong { display: block; font: 700 1.05rem var(--display); color: var(--ink); line-height: 1.2; }
.pc-head small { color: var(--muted); font-size: .84rem; }
.stamp { position: absolute; top: 20px; right: 16px; transform: rotate(12deg); font: 800 .8rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--green); border: 2.5px solid var(--green); border-radius: 8px; padding: 4px 9px; opacity: .85; }
.sample-tag { font: 600 .66rem var(--display); letter-spacing: .06em; text-transform: uppercase; background: #fff1c2; color: #7a5a00; border-radius: 6px; padding: 2px 6px; vertical-align: middle; }
.pc-head .sample-tag { position: absolute; top: 60px; right: 18px; }
.pass-card blockquote { margin: 0 0 20px; font-size: 1rem; line-height: 1.6; flex: 1; }
.pass-card blockquote::before { content: '\201C'; display: block; font: 700 3rem/0.6 Georgia, serif; color: var(--c); margin: 6px 0 8px; }
.pc-foot { display: flex; align-items: center; gap: 12px; }
.pc-foot strong { display: block; font: 600 .95rem var(--display); color: var(--ink); }
.pc-foot small { color: var(--muted); font-size: .82rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 1rem var(--display); flex: none; }
.stars { margin-left: auto; color: var(--gold-deep); letter-spacing: 1px; font-size: .95rem; }
@media (max-width: 640px) { .sec-head-row { flex-direction: column; align-items: flex-start; } .carousel { grid-auto-columns: 86%; } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 36px; left: 16%; right: 16%; border-top: 2px dashed #c9d2e6; }
.steps li { counter-increment: s; position: relative; text-align: center; padding: 0 12px; }
.step-ico { position: relative; z-index: 1; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; background: var(--card); color: var(--blue); box-shadow: var(--shadow-lg); }
.step-ico::after { content: counter(s); position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy); font: 700 .82rem/26px var(--display); }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); max-width: 32ch; margin: 0 auto; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 36px; } .steps::before { display: none; } }

/* ---------- State picker ---------- */
.state-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.state-band .sec-head { margin-bottom: 0; }
.state-card { background: var(--card); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-lg); }
.state-picker > label { display: block; font: 600 .95rem var(--display); color: var(--ink); margin-bottom: 8px; }
.city-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.city-links a { background: var(--paper); border-radius: 999px; padding: .45em 1em; text-decoration: none; font-size: .9rem; color: var(--text); transition: background .15s, color .15s; }
.city-links a:hover { background: var(--ink); color: #fff; }
.city-links a.more { background: var(--blue-tint); color: var(--blue-deep); font-weight: 600; }
.head-picker { max-width: 420px; margin-top: 18px; }
.page-head .state-picker > label { color: #c9d1e3; }
@media (max-width: 860px) { .state-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-wrap .sec-head { position: sticky; top: 110px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-lg); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font: 600 1.05rem var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; flex: none; transition: transform .25s var(--ease), background .2s, color .2s; }
.faq details[open] .faq-ico { transform: rotate(45deg); background: var(--gold); color: var(--navy); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--text); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } .faq-wrap .sec-head { position: static; } }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(900px 300px at 85% 0%, rgba(59, 111, 245, .35), transparent 60%), var(--navy); color: #fff; padding: clamp(44px, 6vw, 72px) 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-text { font: 700 clamp(1.5rem, 3.2vw, 2.3rem)/1.15 var(--display); margin: 0; max-width: 24ch; color: #fff; letter-spacing: -0.01em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: #070e1c; color: #aab5cc; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer .logo { margin-bottom: 14px; }
.footer-muted { color: #8390ad; max-width: 32ch; }
.footer a { color: #fff; }
.footer-h { font: 600 1rem var(--display); color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: #aab5cc; text-decoration: none; }
.footer ul a:hover { color: var(--gold); }
.pay-marks { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-marks span { font: 700 .7rem var(--display); letter-spacing: .04em; color: #cfd6e6; border: 1px solid var(--navy-line); border-radius: 6px; padding: 5px 8px; }
.footer-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--navy-line); font-size: .82rem; color: #6f7c99; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Inner page heads ---------- */
.page-head { background: radial-gradient(800px 320px at 90% -10%, rgba(59, 111, 245, .3), transparent 60%), var(--navy); color: #c9d1e3; padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { color: #fff; max-width: 22ch; }
.page-head .lede { color: #c9d1e3; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: #8f9bb8; margin-bottom: 18px; }
.crumbs a { color: #c9d1e3; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.head-actions-row { display: flex; gap: 12px; flex-wrap: wrap; }
.exam-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; }
.exam-head-card { background: rgba(255, 255, 255, .06); border: 1px solid var(--navy-line); border-radius: var(--r-lg); padding: 28px; text-align: center; backdrop-filter: blur(8px); }
.exam-head-card .mono { margin-bottom: 14px; }
.exam-head-card p { margin: 0; color: #8f9bb8; font-size: .9rem; }
.exam-head-card strong { display: block; font: 700 2.6rem/1.1 var(--display); color: #fff; margin-bottom: 18px; }
.who { display: flex; align-items: center; gap: 10px; color: #aab5cc; }
.who svg { color: var(--gold); }
@media (max-width: 860px) { .exam-head-grid { grid-template-columns: minmax(0, 1fr); } .exam-head-card { max-width: 360px; } }

/* ---------- Tiers ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.tier { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); border: 1px solid var(--line); }
.tier p { color: var(--muted); }
.tier .btn { margin-top: auto; }
.tier-pick { background: var(--navy); border-color: var(--navy); transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.tier-pick h3, .tier-pick .tier-price { color: #fff; }
.tier-pick p { color: #aab5cc; }
.tier-flag { position: absolute; top: -13px; left: 26px; background: var(--gold); color: var(--navy); font: 700 .74rem var(--display); text-transform: uppercase; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; }
.tier-price { font: 700 2.6rem/1 var(--display); color: var(--ink); margin: .2em 0 .5em; letter-spacing: -0.02em; }
@media (max-width: 860px) { .tier-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .tier-pick { transform: none; } }
.urgency-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.urgency-bar div { background: color-mix(in srgb, var(--gold) calc(var(--i) * 22%), white); border-radius: 12px; padding: 16px; text-align: center; }
.urgency-bar strong { display: block; font: 700 1.4rem var(--display); color: var(--ink); }
.urgency-bar span { font-size: .85rem; color: var(--text); }
@media (max-width: 640px) { .urgency-bar { grid-template-columns: 1fr 1fr; } }

.qbank-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.qb-card { display: grid; gap: 4px; background: var(--card); border-radius: var(--r); padding: 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border: 1.5px solid transparent; transition: border-color .2s, transform .2s var(--ease); }
.qb-card:hover { border-color: var(--blue); transform: translateY(-3px); color: var(--ink); }
.qb-card strong { font: 600 1rem var(--display); color: var(--muted); }
.qb-card span { font: 700 1.8rem var(--display); }
.qb-card small { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-deep); font-weight: 600; }
@media (max-width: 520px) { .qbank-cards { grid-template-columns: minmax(0, 1fr); } }

.service-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service-grid a { display: grid; gap: 6px; background: var(--card); border-radius: var(--r); padding: 22px 24px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); height: 100%; transition: transform .2s var(--ease), box-shadow .2s; }
.service-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.service-grid strong { font: 600 1.15rem var(--display); color: var(--ink); }
.service-grid span { color: var(--muted); font-size: .95rem; }
.service-grid em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; color: var(--blue-deep); font-weight: 600; font-size: .92rem; }
@media (max-width: 720px) { .service-grid { grid-template-columns: minmax(0, 1fr); } }

.state-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.state-grid li { background: var(--card); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.state-grid li > a { display: flex; align-items: center; gap: 10px; font: 600 1rem var(--display); color: var(--ink); text-decoration: none; }
.state-grid li > a:hover { color: var(--blue-deep); }
.st-abbr { font: 700 .72rem var(--display); background: var(--navy); color: var(--gold); border-radius: 6px; padding: 3px 6px; }
.state-grid span { display: block; font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* ---------- Tables ---------- */
.matrix-scroll { overflow-x: auto; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.matrix { border-collapse: collapse; width: 100%; min-width: 560px; font-variant-numeric: tabular-nums; }
.matrix caption { text-align: left; padding: 18px 20px; font: 600 1.05rem var(--display); color: var(--ink); }
.matrix th, .matrix td { padding: 13px 18px; text-align: right; border-top: 1px solid var(--line); }
.matrix thead th { font: 500 .78rem var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--paper); }
.matrix th[scope=row], .matrix thead th:first-child { text-align: left; }
.matrix th[scope=row] { font: 600 .98rem var(--display); color: var(--ink); white-space: nowrap; }
.matrix tbody tr:hover { background: #f8faff; }
.matrix a { font-weight: 600; }
.price-link { text-decoration: none; padding: 4px 10px; border-radius: 8px; transition: background .15s; }
.price-link:hover { background: var(--blue-tint); }
.plain { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.plain th, .plain td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; }
.plain td { text-align: right; font: 600 1rem var(--display); color: var(--ink); }
.plain th { font-weight: 400; }

/* ---------- Forms ---------- */
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend, .field > .label { display: block; font: 600 .92rem var(--display); color: var(--ink); margin-bottom: 8px; padding: 0; }
.opt { font: 400 .82rem var(--body); color: var(--muted); }
.hint { font-size: .84rem; color: var(--muted); margin: 7px 0 0; }
.hint.ok { color: var(--green); font-weight: 600; }
.field-err { font-size: .85rem; color: var(--danger); margin: 7px 0 0; font-weight: 500; }
input[type=text], input:not([type]), input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], input[type=search], textarea, select:not(.dd-native) {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8em 1em; min-height: 52px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 150px; }
input:hover, textarea:hover { border-color: #c5cde0; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 111, 245, .15); outline: none; }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(217, 58, 43, .1); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 640px) { .field-grid { grid-template-columns: minmax(0, 1fr); } }
.inline-field { display: flex; gap: 10px; }
.inline-field input { flex: 1; min-width: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; font-size: .95rem; cursor: pointer; flex-wrap: wrap; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.check .field-err { width: 100%; margin: 0 0 0 32px; }
.hp { position: absolute; left: -9999px; }
.notice { background: var(--blue-tint); color: var(--ink); border-radius: 12px; padding: 14px 18px; }
.form-error { background: #fdecea; color: var(--danger); border-radius: 12px; padding: 14px 18px; font-weight: 500; }
.card-form { background: var(--card); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-lg); }

/* Rich dropdown */
.dd-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; }
.dd { position: relative; }
.dd-btn {
  width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 14px; color: var(--ink); font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.dd-btn:hover { border-color: #c5cde0; }
.dd-btn:focus-visible, .dd.is-open .dd-btn { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 111, 245, .15); outline: none; }
.dd-btn:disabled { opacity: .5; cursor: not-allowed; }
.dd-native[aria-invalid=true] + .dd .dd-btn { border-color: var(--danger); }
.dd-val { flex: 1; min-width: 0; display: grid; }
.dd-label { font: 500 1rem var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-ph { color: var(--muted); font-weight: 400; }
.dd-desc { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-meta { font: 600 .9rem var(--display); color: var(--blue-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dd-chev { color: var(--muted); transition: transform .2s var(--ease); }
.dd.is-open .dd-chev { transform: rotate(180deg); }
.dd-ico { --c: var(--blue); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, white); color: var(--c); flex: none; }
.dd-ico svg { width: 18px; height: 18px; }
.dd-badge { --c: var(--blue); min-width: 50px; height: 30px; padding: 0 7px; border-radius: 8px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 80%, black); font: 700 .74rem var(--display); flex: none; }
.dd-pop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: var(--card); border-radius: 14px; min-width: 260px;
  box-shadow: 0 2px 6px rgba(11, 20, 38, .08), 0 24px 50px -16px rgba(11, 20, 38, .35); border: 1px solid var(--line); overflow: hidden;
  animation: ddIn .18s var(--ease); transform-origin: top center;
}
.dd-up .dd-pop { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.dd-search { padding: 10px 10px 4px; }
.dd-search input { min-height: 42px; border-radius: 10px; font-size: .95rem; padding: .5em .8em; background: var(--paper); border-color: transparent; }
.dd-list { list-style: none; margin: 0; padding: 6px; max-height: 320px; overflow-y: auto; outline: none; }
.dd-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.dd-list li.is-active { background: var(--paper); }
.dd-list li[aria-selected=true] { background: var(--blue-tint); }
.dd-list li[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
.dd-list .dd-desc { white-space: normal; line-height: 1.35; }
.dd-tick { color: var(--blue); visibility: hidden; }
.dd-list li[aria-selected=true] .dd-tick { visibility: visible; }
.dd-empty { padding: 14px 16px; color: var(--muted); margin: 0; }
.dd.dd-pulse .dd-btn { animation: ddPulse .4s var(--ease); }
@keyframes ddPulse { 40% { box-shadow: 0 0 0 5px rgba(255, 198, 41, .35); } }

/* Dark variant (hero panel) */
.dd-dark .dd-btn { background: var(--navy-3); border-color: var(--navy-line); color: #fff; min-height: 54px; }
.dd-dark .dd-btn:hover { border-color: #3b4d78; }
.dd-dark .dd-btn:focus-visible, .dd-dark.is-open .dd-btn { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 198, 41, .15); }
.dd-dark .dd-btn .dd-label { text-transform: uppercase; font-weight: 600; font-size: .95rem; letter-spacing: .01em; }
.dd-dark .dd-btn .dd-desc { display: none; }
.dd-dark .dd-btn .dd-meta { color: var(--gold); }
.dd-dark .dd-chev { color: #8f9bb8; }
.dd-dark .dd-btn .dd-ico { background: rgba(34, 181, 115, .15); color: #6fe0a8; width: 30px; height: 30px; }
.dd-dark .dd-btn .dd-badge { background: rgba(255, 255, 255, .1); color: #fff; }

/* Steppers, toggles, files */
.stepper-input { display: inline-flex; align-items: center; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 4px; }
.stepper-input input { width: 70px; min-height: 44px; border: 0; text-align: center; font: 600 1.1rem var(--display); padding: 0; background: none; box-shadow: none !important; -moz-appearance: textfield; }
.stepper-input input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper-input button { width: 44px; height: 44px; border-radius: 9px; border: 0; background: var(--paper); color: var(--ink); font: 500 1.35rem/1 var(--display); cursor: pointer; transition: background .15s, color .15s; }
.stepper-input button:hover { background: var(--ink); color: #fff; }
.toggle-list { display: grid; gap: 10px; }
.toggle-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.toggle-card:hover { border-color: #c5cde0; }
.toggle-card:has(input:checked) { border-color: var(--blue); background: #f7f9ff; }
.toggle-card input[type=checkbox] { position: absolute; opacity: 0; }
.tg-switch { width: 44px; height: 26px; border-radius: 99px; background: #d3d9e6; position: relative; flex: none; transition: background .2s; }
.tg-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .22s var(--ease); }
.toggle-card input:checked + .tg-switch { background: var(--blue); }
.toggle-card input:checked + .tg-switch::after { transform: translateX(18px); }
.toggle-card input:focus-visible + .tg-switch { outline: 3px solid var(--blue); outline-offset: 2px; }
.tg-text { flex: 1; display: grid; min-width: 0; }
.tg-text strong { font: 500 .98rem var(--display); color: var(--ink); }
.tg-text small { color: var(--muted); font-size: .84rem; }
.tg-price { font: 600 .95rem var(--display); color: var(--ink); white-space: nowrap; }
.tc-stepper { cursor: default; }
.tc-stepper .stepper-input { padding: 2px; }
.tc-stepper .stepper-input input { width: 50px; min-height: 36px; }
.tc-stepper .stepper-input button { width: 36px; height: 36px; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 30px 20px; border: 2px dashed #c5cde0; border-radius: var(--r); background: var(--card); color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone svg { color: var(--blue); }
.dropzone strong { font: 600 1rem var(--display); color: var(--ink); }
.dropzone span { font-size: .85rem; }
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: #f7f9ff; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 10px; padding: 8px 12px; font-size: .92rem; }
.file-list li span, .file-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list small { color: var(--muted); }
.file-list button { border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.optional-block { background: var(--paper); border-radius: var(--r); padding: 0 18px; margin: 0 0 20px; }
.optional-block summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 0; font: 600 .98rem var(--display); color: var(--ink); }
.optional-block summary::-webkit-details-marker { display: none; }
.optional-block summary svg { transition: transform .2s var(--ease); color: var(--blue); }
.optional-block[open] summary svg { transform: rotate(45deg); }
.optional-block[open] { padding-bottom: 4px; }
.pay-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pay-choice { position: relative; cursor: pointer; }
.pay-choice input { position: absolute; opacity: 0; }
.pay-choice span { display: grid; gap: 2px; padding: 16px 18px 16px 50px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .15s, background .15s; position: relative; }
.pay-choice span::before { content: ''; position: absolute; left: 18px; top: 50%; margin-top: -10px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c5cde0; transition: border .15s; }
.pay-choice input:checked + span { border-color: var(--blue); background: #f7f9ff; }
.pay-choice input:checked + span::before { border: 6px solid var(--blue); }
.pay-choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.pay-choice strong { font: 600 1.02rem var(--display); color: var(--ink); }
.pay-choice small { color: var(--muted); font-size: .84rem; }
@media (max-width: 560px) { .pay-choices { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Order page ---------- */
.order-head { background: radial-gradient(800px 300px at 85% -20%, rgba(59, 111, 245, .35), transparent 60%), var(--navy); color: #c9d1e3; padding: clamp(36px, 5vw, 60px) 0 120px; margin-bottom: -88px; }
.order-head h1 { color: #fff; }
.order-head .lede { color: #c9d1e3; }
.order-head .notice { max-width: 620px; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 3vw, 36px); align-items: start; padding-bottom: 96px; position: relative; }
.order-form { background: var(--card); border-radius: var(--r-lg); padding: clamp(20px, 3.5vw, 40px); box-shadow: var(--shadow-lg); min-width: 0; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0 0 14px; }
.stepper li { display: flex; align-items: center; gap: 10px; font: 500 .92rem var(--display); color: var(--muted); cursor: default; min-width: 0; }
.stepper li span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--muted); font: 700 .88rem var(--display); flex: none; transition: background .2s, color .2s; }
.stepper li[aria-current=step] { color: var(--ink); }
.stepper li[aria-current=step] .st-num { background: var(--gold); color: var(--navy); box-shadow: 0 0 0 4px var(--gold-tint); }
.stepper li.done { cursor: pointer; color: var(--ink); }
.stepper li.done .st-num { background: var(--green); color: #fff; font-size: 0; }
.stepper li.done .st-num::after { content: ''; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.progress { height: 4px; background: var(--paper); border-radius: 99px; margin-bottom: 30px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 99px; transition: width .4s var(--ease); }
.step h2 { font-size: 1.7rem; margin-bottom: 22px; }
.step h2:focus { outline: none; }
.step { animation: stepIn .3s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .stepper li:not([aria-current=step]) span:last-child { display: none; } .stepper { grid-template-columns: repeat(4, auto); justify-content: space-between; } }

.review { margin: 0 0 24px; display: grid; background: var(--paper); border-radius: var(--r); padding: 4px 18px; }
.review > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.review > div:last-child { border-bottom: 0; }
.review > div:last-child dd { font: 700 1.3rem var(--display); }
.review dt { color: var(--muted); font-size: .92rem; }
.review dd { margin: 0; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 560px) { .review > div { grid-template-columns: 1fr; gap: 2px; } }

/* Admission ticket */
.summary { position: sticky; top: 100px; }
.ticket { position: relative; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.ticket-top { display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: #fff; padding: 16px 22px; }
.ticket-brand { display: flex; align-items: center; gap: 10px; font: 600 .8rem var(--display); text-transform: uppercase; letter-spacing: .1em; }
.ticket-brand .logo-mark { height: 24px; }
.ticket-no { font: 600 .82rem var(--display); color: var(--gold); letter-spacing: .06em; }
.ticket-main { display: flex; align-items: center; gap: 14px; padding: 20px 22px 6px; }
.ticket-what { font: 600 1.08rem/1.3 var(--display); color: var(--ink); margin: 0; }
.ticket-sub { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.ticket-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; padding: 14px 22px 18px; }
.ticket-facts dt { font: 500 .7rem var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ticket-facts dd { margin: 2px 0 0; font: 500 .92rem var(--display); color: var(--ink); overflow-wrap: anywhere; }
.ticket-tear { position: relative; height: 22px; }
.ticket-tear::before { content: ''; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 2px dashed var(--line); }
.ticket-tear::after { content: ''; position: absolute; inset: 0 -11px; background: radial-gradient(circle at 0 50%, var(--paper) 10px, transparent 11px), radial-gradient(circle at 100% 50%, var(--paper) 10px, transparent 11px); }
.summary-lines { list-style: none; margin: 0; padding: 8px 22px 0; font-size: .9rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--text); }
.summary-lines li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.summary-lines li.disc span:last-child { color: var(--green); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 22px 0; padding-top: 14px; border-top: 1px solid var(--line); font: 600 1rem var(--display); color: var(--ink); }
.summary-total output { font: 700 2.2rem var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.ticket-err { color: var(--danger); font-size: .86rem; margin: 6px 22px 0; }
.ticket-err:empty { display: none; }
.ticket-note { color: var(--muted); font-size: .92rem; margin: 0; }
.barcode { height: 44px; margin: 16px 22px 20px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px, var(--ink) 13px 14px, transparent 14px 17px); opacity: .85; border-radius: 2px; }
.assure { list-style: none; padding: 0; margin: 18px 4px 0; display: grid; gap: 10px; font-size: .88rem; color: var(--muted); }
.assure li { display: flex; gap: 10px; align-items: center; }
.assure svg { width: 18px; height: 18px; color: var(--green); }

.mobile-bar { display: none; }
@media (max-width: 1000px) {
  .order-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; align-items: center; justify-content: space-between; gap: 12px; background: var(--navy); color: #c9d1e3; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(11, 20, 38, .25); }
  .mobile-bar > div { display: grid; line-height: 1.2; font-size: .8rem; }
  .mobile-bar strong { font: 700 1.4rem var(--display); color: #fff; font-variant-numeric: tabular-nums; }
  .order-page .footer { padding-bottom: 100px; }
  .order-page .chat-launch { bottom: 86px; }
}

/* Order status */
.status-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 80px; position: relative; }
.ticket-wide .ticket-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pay-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 22px 0; }
.pay-row .btn-ghost { color: var(--ink); border-color: var(--line); }
.status-card .form-error { margin: 12px 22px 0; }
.status-side { display: grid; gap: 16px; }
.side-card { background: var(--card); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.side-card h2 { font-size: 1.15rem; }
.pill { display: inline-block; padding: .2em .75em; border-radius: 999px; font: 600 .8rem var(--display); background: var(--blue-tint); color: var(--blue-deep); }
.pill-awaiting_payment { background: #fff4c2; color: #6b5300; }
.pill-paid, .pill-completed, .pill-delivered { background: #dcf7e9; color: #0e6b40; }
.pill-cancelled, .pill-refunded { background: #eee; color: #555; }
@media (max-width: 900px) { .status-layout { grid-template-columns: minmax(0, 1fr); } .ticket-wide .ticket-facts { grid-template-columns: 1fr 1fr; } }

.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose p { max-width: 68ch; }

/* ---------- Chat widget ---------- */
.chat-launch { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; border: 1px solid var(--navy-line); border-radius: 999px; padding: 14px 20px 14px 16px; font: 600 .96rem var(--display); cursor: pointer; box-shadow: 0 14px 34px -12px rgba(11, 20, 38, .6); transition: transform .2s var(--ease); }
.chat-launch:hover { transform: translateY(-2px); }
.chat-launch .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: live 2s infinite; }
.chat-launch .badge { background: var(--gold); color: var(--navy); border-radius: 999px; font-size: .75rem; padding: 1px 7px; }
.chat-panel { position: fixed; right: 20px; bottom: 20px; z-index: 46; width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 40px)); background: var(--card); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(11, 20, 38, .55); animation: ddIn .22s var(--ease); }
.chat-head { background: var(--navy); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chat-head strong { font: 700 1.05rem var(--display); display: block; }
.chat-head small { color: #9fe3bf; }
.chat-close { background: rgba(255, 255, 255, .08); border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.chat-intro { padding: 20px; overflow-y: auto; }
.chat-intro p { font-size: .95rem; }
.chat-intro .field { margin-bottom: 12px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .94rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: block; font-size: .72rem; opacity: .65; margin-top: 4px; }
.msg-customer { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg-agent { align-self: flex-start; background: var(--card); color: var(--ink); border-bottom-left-radius: 4px; box-shadow: var(--shadow); }
.msg-system { align-self: center; background: var(--gold-tint); color: #6b5300; font-size: .84rem; text-align: center; border-radius: 10px; }
.msg a { color: inherit; }
.chat-compose { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--card); }
.chat-compose textarea { min-height: 46px; height: 46px; max-height: 120px; resize: none; padding: .65em .9em; }
.chat-compose .btn { padding: .6em 1.1em; }
@media (max-width: 480px) {
  .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .chat-launch { right: 12px; bottom: 12px; padding: 12px 16px; }
}

/* ---------- Hero admission ticket ---------- */
/* Decorative ticket that floats over the photo, next to the order panel, mirroring its price. */
.hero-ticket {
  position: absolute; right: calc(460px + 36px); bottom: 56px; z-index: 1; width: 280px;
  background: var(--card); color: var(--text); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); transform: rotate(3deg); transform-origin: bottom right;
  animation: htIn .7s var(--ease) .2s both;
}
@keyframes htIn { from { opacity: 0; transform: translateY(24px) rotate(6deg); } }
.ht-top { display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 12px 16px; font: 600 .72rem var(--display); text-transform: uppercase; letter-spacing: .1em; }
.ht-top .logo-mark { height: 20px; }
.ht-no { margin-left: auto; color: var(--gold); letter-spacing: .06em; }
.ht-body { display: grid; gap: 2px; padding: 14px 16px 6px; }
.ht-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; font-size: .82rem; color: var(--muted); }
.ht-row strong { font: 600 .92rem var(--display); color: var(--ink); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ht-row:last-child { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.ht-row:last-child strong { font: 700 1.5rem var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ht-tear { position: relative; height: 20px; }
.ht-tear::before { content: ''; position: absolute; left: 16px; right: 16px; top: 50%; border-top: 2px dashed var(--line); }
.ht-tear::after { content: ''; position: absolute; inset: 0 -10px; background: radial-gradient(circle at 0 50%, var(--navy) 9px, transparent 10px), radial-gradient(circle at 100% 50%, var(--navy) 9px, transparent 10px); }
.ht-foot .barcode { height: 34px; margin: 8px 16px 16px; }
.ht-stamp { position: absolute; bottom: 50px; right: 18px; transform: rotate(-12deg); font: 800 .72rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--green); border: 2.5px solid var(--green); border-radius: 7px; padding: 3px 8px; opacity: .8; background: rgba(255, 255, 255, .85); }
@media (max-width: 1240px) { .hero-ticket { display: none; } }

/* ---------- Perforated navy bands (ticket stub edge) ---------- */
.perf { position: relative; }
.perf::before { content: ''; position: absolute; left: 0; right: 0; top: -7px; height: 14px; background: radial-gradient(circle at 7px 7px, var(--paper) 5px, transparent 5.5px) 0 0 / 22px 14px repeat-x; pointer-events: none; }
.band-tint + .perf::before { background-image: radial-gradient(circle at 7px 7px, #eef2fa 5px, transparent 5.5px); }

/* ---------- Study planner ---------- */
.planner-band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.planner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.planner-controls > p { color: var(--muted); font-size: 1.05rem; }
.planner-controls .field { margin-bottom: 24px; }
.pl-weeks { font: 700 1.05rem var(--display); color: var(--ink); }
.pl-rec { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; background: var(--navy); color: #fff; border-radius: var(--r); padding: 18px 20px; margin: 0 0 16px; }
.pl-rec > div { display: grid; gap: 2px; min-width: 0; }
.pl-rec strong { font: 700 1.5rem/1.1 var(--display); color: var(--gold); }
.pl-rec small { color: #aab5cc; font-size: .85rem; line-height: 1.4; }
.pl-price { text-align: right; flex: none; }
.pl-price output { font: 700 1.9rem/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.planner-view { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); }
.pl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pl-head > div { display: grid; min-width: 0; }
.pl-head strong { font: 700 1.2rem var(--display); color: var(--ink); }
.pl-head small { color: var(--muted); font-size: .88rem; }
.pl-bar { display: flex; gap: 3px; height: 12px; border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.pl-bar span { background: var(--c); transition: flex .4s var(--ease); }
.pl-phases { list-style: none; margin: 0; padding: 0 0 0 22px; display: grid; gap: 14px; position: relative; }
.pl-phases::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: -22px; border-left: 2px dashed #c9d2e6; }
.pl-phases li { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; background: var(--card); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); border-left: 4px solid var(--c); }
.pl-phases li::before { content: ''; position: absolute; left: -22px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--paper); }
.ph-when { font: 600 .9rem/1.3 var(--display); color: var(--ink); }
.ph-when small { display: block; font: 400 .8rem var(--body); color: var(--muted); margin-top: 2px; }
.ph-what strong { display: block; font: 600 1rem var(--display); color: var(--ink); margin-bottom: 6px; }
.ph-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-tags span { font-size: .8rem; line-height: 1.3; background: color-mix(in srgb, var(--c) 10%, white); color: color-mix(in srgb, var(--c) 70%, black); border-radius: 999px; padding: 4px 10px; }
.pl-exam-day { position: relative; display: flex; align-items: center; gap: 14px; margin: 22px 0 0; padding: 14px 16px; background: var(--navy); border-radius: var(--r); color: #fff; }
.pl-exam-day > div { display: grid; }
.pl-exam-day strong { font: 700 1rem var(--display); }
.pl-exam-day small { color: #aab5cc; font-size: .86rem; }
.flagpin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); font-size: 1rem; flex: none; }
@media (max-width: 900px) { .planner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .pl-phases li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pl-rec { flex-direction: column; align-items: stretch; }
  .pl-price { text-align: left; }
}

/* ---------- Misc page pieces ---------- */
.exam-browser { min-width: 0; }
.x-row { display: grid; min-width: 0; }
.x-row.x-pages { display: flex; }
.exam-head { background: radial-gradient(700px 320px at 88% 10%, color-mix(in srgb, var(--c) 45%, transparent), transparent 65%), var(--navy); }
.exam-head .exam-head-card { border-color: color-mix(in srgb, var(--c) 50%, var(--navy-line)); }
.track-form { max-width: 520px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Narrow dropdowns: keep the label readable, drop the price from the closed button */
.dd { container-type: inline-size; }
@container (max-width: 340px) { .dd-btn .dd-meta { display: none; } }

/* ---------- Blog ---------- */
.band-blog { padding: clamp(36px, 5vw, 64px) 0; }
.band-blog + .band-blog { padding-top: 0; }
.blog-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.blog-card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.blog-card h3 { margin: 0; font-size: 1.12rem; }
.blog-card h3 a { color: var(--ink); text-decoration: none; }
.blog-card h3 a:hover { color: var(--blue-deep); }
.blog-card p { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.blog-cat { font: 600 .75rem var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--blue-deep); }
.blog-more { display: inline-flex; align-items: center; gap: 6px; font: 600 .92rem var(--display); text-decoration: none; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: minmax(0, 1fr); } }

.post-meta { font-size: .9rem; color: #8f9bb8; margin: 0; }
.band-post { padding: clamp(36px, 5vw, 64px) 0; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.post-body { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 52px); font-size: 1.05rem; min-width: 0; }
.post-body h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 1.8em; scroll-margin-top: 100px; }
.post-body h2:first-child { margin-top: 0; }
.post-body h3 { font-size: 1.2rem; margin-top: 1.5em; scroll-margin-top: 100px; }
.post-body ul { padding-left: 1.2em; margin: 0 0 1em; }
.post-body li { margin-bottom: .4em; }
.post-body a { font-weight: 500; }
.post-cta { background: var(--navy); color: #c9d1e3; border-radius: var(--r); padding: 22px 24px; margin: 1.8em 0; }
.post-cta a:not(.btn) { color: #fff; }
.post-cta strong { color: #fff; }
.post-cta-title { font: 700 1.2rem var(--display); color: #fff; margin-bottom: .4em; }
.post-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.post-cta .btn-line { background: transparent; color: #fff; border-color: var(--navy-line); }
.post-cta .btn-line:hover { border-color: #fff; color: #fff; }
.btn-wa { background: #25d366; color: #06301a; }
.btn-wa:hover { background: #1fbe5b; color: #06301a; }
.post-cta .btn svg, .post-contact svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.post-side { position: sticky; top: 100px; display: grid; gap: 18px; }
.post-side-h { font: 600 .8rem var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.post-toc, .post-contact { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.post-toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: .92rem; }
.post-toc a { text-decoration: none; }
.post-contact p { margin-bottom: .6em; }
.post-contact a { text-decoration: none; overflow-wrap: anywhere; }
@media (max-width: 960px) { .post-grid { grid-template-columns: minmax(0, 1fr); } .post-side { position: static; } }

/* ---------- Sign in (header) and staff login (footer) ---------- */
.head-signin { color: #fff; font: 600 .95rem var(--display); text-decoration: none; padding: 0 4px; }
.head-signin:hover { color: var(--gold); }
.staff-login { float: right; display: inline-flex; align-items: center; gap: 6px; color: #aab5cc; text-decoration: none; margin-left: 16px; }
.staff-login svg { width: 16px; height: 16px; }
.staff-login:hover { color: var(--gold); }
@media (max-width: 640px) { .staff-login { float: none; display: flex; margin: 0 0 10px; } }
.pill-in_progress, .pill-in_review { background: var(--blue-tint); color: var(--blue-deep); }

/* ---------- Order form: about this service ---------- */
.svc-info:empty { display: none; }
.svc-info { background: linear-gradient(180deg, #f6f8ff, var(--card)); border: 1px solid #d8e2ff; border-radius: var(--r); padding: 20px 22px; margin: 4px 0 22px; }
.svc-info h3 { font-size: 1.15rem; margin: 2px 0 8px; }
.svc-info p { margin: 0 0 12px; }
.svc-info .ticks { margin-bottom: 12px; gap: 8px; font-size: .95rem; }
.svc-kicker, .svc-sub { font: 600 .74rem var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--blue-deep); margin: 0 0 4px !important; }
.svc-sub { color: var(--muted); margin-top: 6px !important; }

/* ---------- Chat additions ---------- */
.chat-actions { display: flex; gap: 6px; padding: 8px 12px; background: var(--navy-2); }
.chat-actions a { flex: 1; text-align: center; font: 600 .82rem var(--display); color: #fff; text-decoration: none; padding: 7px 8px; border-radius: 999px; border: 1px solid var(--navy-line); }
.chat-actions a.chat-order { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.msg-author { display: block; font: 600 .74rem var(--display); color: var(--blue-deep); margin-bottom: 3px; }

/* ---------- Client account ---------- */
.acct-head { background: radial-gradient(800px 320px at 90% -10%, rgba(59, 111, 245, .3), transparent 60%), var(--navy); color: #c9d1e3; padding: clamp(28px, 4vw, 48px) 0; }
.acct-head h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 6px; }
.acct-head .lede { color: #c9d1e3; margin: 0; }
.acct-wrap { padding-top: 28px; padding-bottom: 64px; }
.acct-signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; max-width: 920px; }
.acct-signin form[hidden] { display: none; }
@media (max-width: 800px) { .acct-signin { grid-template-columns: minmax(0, 1fr); } }
.acct-card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; min-width: 0; margin-bottom: 18px; }
.acct-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.acct-card h3 { font-size: 1.02rem; margin: 18px 0 10px; }
.acct-card h3:first-child { margin-top: 0; }
.code-input { font: 700 1.6rem var(--display); letter-spacing: .4em; text-align: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue-deep); text-decoration: underline; cursor: pointer; font: inherit; }
.acct-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.acct-nav { position: sticky; top: 96px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 12px; }
.acct-hello { font: 700 1.15rem var(--display); color: var(--ink); margin: 0; }
.acct-email { margin: -8px 0 4px; overflow-wrap: anywhere; }
.acct-nav nav { display: grid; gap: 2px; }
.acct-nav nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; }
.acct-nav nav a:hover { background: var(--paper); }
.acct-nav nav a[aria-current=page] { background: var(--ink); color: #fff; }
.nav-count { font-size: .76rem; background: var(--paper); color: var(--ink); border-radius: 999px; padding: 1px 8px; }
.nav-alert { background: var(--gold); color: var(--ink); }
@media (max-width: 860px) {
  .acct-layout { grid-template-columns: minmax(0, 1fr); }
  .acct-nav { position: static; }
  .acct-nav nav { grid-auto-flow: column; overflow-x: auto; }
  .acct-nav nav a { white-space: nowrap; }
}
.acct-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.acct-stat { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; text-decoration: none; color: var(--muted); }
.acct-stat b { display: block; font: 700 1.5rem var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.acct-stat.warn b { color: #9a6b00; }
@media (max-width: 900px) { .acct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acct-callout { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; background: #fff8dd; border: 1px solid #f3dc8a; border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; }
.acct-callout p { margin: 2px 0 0; }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.acct-actions .btn { padding: .5em .9em; font-size: .88rem; }
.acct-section-head { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 12px; }
.acct-section-head h2 { font-size: 1.3rem; margin: 0; }
.acct-orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.acct-order { display: grid; gap: 6px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.acct-order:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.acct-order p { margin: 0; font-size: .94rem; }
.ao-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ao-top h2 { margin: 0; }
.ao-foot { display: flex; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.ao-foot .due { color: #9a6b00; }
.ao-foot .ready { color: #0e6b40; font-weight: 600; }
.acct-empty { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 36px; text-align: center; }
.acct-table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.acct-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.acct-table th, .acct-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.acct-table th { font: 600 .78rem var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.acct-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 960px) { .acct-grid { grid-template-columns: minmax(0, 1fr); } }
.acct-card .summary-lines, .acct-card .summary-total { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }
.acct-progress { list-style: none; display: flex; padding: 0; margin: 16px 0 6px; counter-reset: s; overflow-x: auto; }
.acct-progress li { flex: 1; min-width: 90px; position: relative; padding-top: 30px; font-size: .8rem; color: var(--muted); text-align: center; }
.acct-progress li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); font: 700 .75rem/20px var(--display); color: var(--muted); z-index: 1; }
.acct-progress li::after { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.acct-progress li:first-child::after { display: none; }
.acct-progress li.done, .acct-progress li.now { color: var(--ink); font-weight: 600; }
.acct-progress li.done::before { content: '\2713'; background: var(--green); border-color: var(--green); color: #fff; }
.acct-progress li.now::before { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.acct-progress li.done::after, .acct-progress li.now::after { background: var(--green); }
.acct-files { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.acct-files li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--paper); border-radius: 10px; }
.acct-files li span { font-size: .82rem; color: var(--muted); }
.dz-sm { padding: 16px; margin-top: 10px; }
.dz-sm input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.acct-kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 12px; font-size: .92rem; margin: 0; }
.acct-kv dt { color: var(--muted); }
.acct-kv dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.acct-timeline { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; font-size: .9rem; }
.acct-timeline li { display: flex; justify-content: space-between; gap: 10px; border-left: 3px solid var(--green); padding-left: 10px; }
.acct-timeline time { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.acct-compose { display: grid; gap: 8px; }
.acct-chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.acct-thread { height: min(520px, 60vh); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--paper); }
.acct-chat .acct-compose { grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; padding: 14px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .acct-chat .acct-compose { grid-template-columns: minmax(0, 1fr); } }
.acct-thread time { display: block; font-size: .72rem; opacity: .7; margin-top: 4px; }
.acct-profile { max-width: 520px; }
.back-link { text-decoration: none; font-weight: 600; }
.acct-toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 60; box-shadow: var(--shadow-lg); }

/* ---------- Prep Exams App ---------- */
.nav-app { display: inline-flex; align-items: center; gap: 6px; color: var(--gold) !important; }
.nav-app svg { width: 18px; height: 18px; }
.btn svg { vertical-align: -3px; }
[data-install-app] svg, .app-contact .btn svg { width: 18px; height: 18px; margin-right: 6px; }
.footer-app { margin: 18px 0; padding: 14px; border: 1px solid var(--navy-line); border-radius: 12px; }
.footer-app p { margin: 0 0 10px; color: #aab5cc; font-size: .9rem; }
.footer-app strong { color: #fff; }
.team-logins { float: right; display: inline-flex; gap: 16px; margin-left: 16px; }
.team-logins .staff-login { float: none; margin: 0; }
@media (max-width: 640px) { .team-logins { float: none; display: flex; margin: 0 0 10px; } }

.app-band { background: linear-gradient(135deg, #0b1426, #1e2c4b); color: #c9d1e3; overflow: hidden; }
.app-band h2 { color: #fff; }
.app-band-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: center; }
.app-kicker { display: inline-flex; align-items: center; gap: 6px; font: 700 .78rem var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: 10px; }
.app-kicker svg { width: 16px; height: 16px; }
.app-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.app-phone { justify-self: center; width: 230px; height: 440px; border-radius: 36px; background: #050a14; padding: 12px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7), inset 0 0 0 2px #2a3a5e; transform: rotate(4deg); }
.app-phone-screen { height: 100%; border-radius: 26px; background: var(--paper); padding: 16px 12px; display: grid; gap: 10px; align-content: start; }
.app-phone-top { display: flex; align-items: center; gap: 8px; font: 700 .95rem var(--display); color: var(--ink); margin-bottom: 4px; }
.app-phone-top .logo-mark { width: 26px; height: 26px; }
.app-phone-tile { background: var(--card); border-radius: 12px; padding: 12px; font: 600 .82rem var(--display); color: var(--ink); box-shadow: var(--shadow); }
.app-phone-tile:first-of-type { background: var(--gold); }
@media (max-width: 820px) { .app-band-row { grid-template-columns: minmax(0, 1fr); } .app-phone { display: none; } }

.app-head { background: radial-gradient(800px 320px at 90% -10%, rgba(59, 111, 245, .3), transparent 60%), var(--navy); color: #c9d1e3; padding: clamp(32px, 5vw, 64px) 0; }
.app-head h1 { color: #fff; margin-bottom: 8px; }
.app-head .lede { color: #c9d1e3; }
.app-install { margin: 18px 0 10px; }
.app-installed { color: #9fe3bf; display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.app-installed svg { width: 18px; height: 18px; }
.app-howto { max-width: 820px; margin-top: 8px; }
.app-howto summary { cursor: pointer; color: #fff; font-weight: 600; }
.app-howto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.app-howto-grid > div { background: rgba(255, 255, 255, .06); border: 1px solid var(--navy-line); border-radius: 12px; padding: 14px; font-size: .92rem; }
.app-howto-grid strong { color: #fff; }
.app-howto-grid p { margin: 6px 0 0; }
@media (max-width: 760px) { .app-howto-grid { grid-template-columns: minmax(0, 1fr); } }

.app-home { padding-top: 32px; }
.app-home-h { font-size: 1.4rem; margin-bottom: 16px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.app-tile { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; min-height: 86px; }
.app-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.app-tile strong { display: block; color: var(--ink); font: 600 1rem var(--display); }
.app-tile small { color: var(--muted); font-size: .84rem; }
.app-tile-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue-deep); }
.app-tile-ico svg { width: 22px; height: 22px; }
.app-tile-gold .app-tile-ico { background: var(--gold); color: var(--ink); }
.app-tile-dark { background: var(--navy); }
.app-tile-dark strong { color: #fff; }
.app-tile-dark small { color: #aab5cc; }
.app-tile-dark .app-tile-ico { background: var(--navy-3); color: var(--gold); }
.app-tile-dark:hover { color: #fff; }
.app-contact { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.install-dialog { border: 0; border-radius: 16px; padding: 24px; max-width: 420px; box-shadow: var(--shadow-lg); }
.install-dialog::backdrop { background: rgba(11, 20, 38, .6); }
.install-dialog h2 { font-size: 1.3rem; }

/* Inside the installed app, the "get the app" prompts are redundant. */
.in-app .app-band, .in-app .footer-app { display: none; }
.nav .nav-link { white-space: nowrap; }

/* Header sign-in / Dashboard button */
.head-signin { white-space: nowrap; }
.head-signin.head-dash { border: 1.5px solid var(--gold); color: var(--gold); border-radius: 999px; padding: .45em 1em; font-size: .9rem; }
.head-signin.head-dash:hover { background: var(--gold); color: var(--ink); }
.notice-idle { background: #fff4c2; color: #6b5300; border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
@media (min-width: 641px) { .head-actions.signed-in .icon-btn-blue { display: none; } }
@media (min-width: 1101px) and (max-width: 1500px) { .masthead-row { gap: 14px; } .nav-link { padding: .6em .6em; font-size: .98rem; } .head-actions { gap: 8px; } }

/* ---------- Install sheet ---------- */
.install-sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.install-backdrop { position: absolute; inset: 0; background: rgba(11, 20, 38, .6); }
.install-panel { position: relative; width: min(480px, 100%); max-height: 92dvh; overflow-y: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: sheetUp .25s var(--ease); }
@media (min-width: 640px) { .install-sheet { align-items: center; } .install-panel { border-radius: 22px; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.install-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); font-size: 1.4rem; cursor: pointer; }
.install-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.install-brand img { border-radius: 14px; box-shadow: var(--shadow); background: #fff; }
.install-brand strong { display: block; font: 700 1.05rem var(--display); color: var(--ink); }
.install-brand small { color: var(--muted); }
.install-panel h2 { font-size: 1.3rem; margin-bottom: 6px; }
.install-steps { counter-reset: st; list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.install-steps li { counter-increment: st; position: relative; padding: 12px 12px 12px 48px; background: var(--paper); border-radius: 12px; line-height: 1.45; }
.install-steps li::before { content: counter(st); position: absolute; left: 12px; top: 11px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 700 .85rem/26px var(--display); text-align: center; }
.install-steps svg { vertical-align: -4px; color: var(--blue-deep); }
.install-panel .btn-block + .btn-block { margin-top: 8px; }
.install-panel > .btn-go:last-of-type { margin-top: 10px; }
.install-arrow { text-align: center; font-size: 1.6rem; color: var(--blue-deep); animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

.install-note { background: #fff6dc; border: 1px solid #f3d27a; color: var(--ink); padding: 10px 12px; border-radius: 10px; font-size: .92rem; }
[data-install-app].is-busy { opacity: .7; pointer-events: none; }

.install-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; width: min(420px, calc(100% - 32px)); display: flex; gap: 12px; align-items: center; background: #0f7a3d; color: #fff; padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow-lg); animation: sheetUp .25s var(--ease); }
.install-toast img { border-radius: 10px; background: #fff; }
.install-toast strong { display: block; }
.install-toast span { font-size: .9rem; opacity: .92; }
[data-install-app].is-installed { background: #0f7a3d; border-color: #0f7a3d; color: #fff; }

/* ---------- Banner for visitors from old WordPress links ---------- */
.moved-bar { background: #fff6dc; border-bottom: 1px solid #f3d27a; color: var(--ink); }
.moved-inner { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 16px; flex-wrap: wrap; }
.moved-inner p { margin: 0; flex: 1 1 380px; line-height: 1.45; }
.moved-inner p strong { display: block; font-family: var(--display); }
.moved-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.moved-x { border: 0; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }

/* ---------- Section sales pages and keyword topic tags ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag-chip { display: inline-block; padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: .9rem; text-decoration: none; transition: border-color .15s, background .15s; }
.tag-chip:hover { border-color: var(--blue-deep); background: var(--paper); }
.kw-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 18px; }
.kw-list li { position: relative; padding-left: 16px; font-size: .94rem; line-height: 1.4; color: var(--ink); }
.kw-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.tag-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.tag-help { position: sticky; top: 100px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 10px; }
.tag-help h3 { margin: 0; font-size: 1.1rem; }
.tag-help p { margin: 0; }
@media (max-width: 860px) { .tag-layout { grid-template-columns: 1fr; } .tag-help { position: static; order: -1; } }
.help-grid { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.help-grid li { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.help-grid p { margin: 0; }
.help-n { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 700 .95rem/32px var(--display); text-align: center; }
.kw-list a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.kw-list a:hover { color: var(--blue-deep); border-bottom-color: currentColor; }
