/* AeroReady — Part 107 Practice
   Aviation-professional: navy precision, cool atmosphere, restrained motion.
*/

:root {
  --navy-950: #071525;
  --navy-900: #0b1f3a;
  --navy-800: #143056;
  --navy-700: #1c3f6e;
  --sky-500: #1aa6b8;
  --sky-400: #2ec4b6;
  --sky-300: #5ed7cb;
  --signal: #e8a317;
  --ok: #1f9d6a;
  --bad: #c44536;
  --ink: #122033;
  --ink-soft: #4a5d73;
  --paper: #f3f6fa;
  --paper-2: #e8eef5;
  --white: #ffffff;
  --line: rgba(11, 31, 58, 0.1);
  --shadow-soft: 0 18px 50px rgba(7, 21, 37, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body.aeroready {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(46, 196, 182, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(20, 48, 86, 0.08), transparent 50%),
    linear-gradient(180deg, #f7fafc 0%, var(--paper) 40%, #eef3f8 100%);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.aeroready::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(11, 31, 58, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 58, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  z-index: 0;
}

a {
  color: var(--navy-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.site {
  position: relative;
  z-index: 1;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(243, 246, 250, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy-900);
}

.brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--navy-900), var(--navy-700));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.brand__mark::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--sky-400);
  border-radius: 50%;
  border-top-color: transparent;
  transform: rotate(-20deg);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  margin: 0;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover,
.nav .current-menu-item > a {
  color: var(--navy-900);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.22);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--white);
}

.btn--accent {
  background: var(--sky-400);
  color: var(--navy-950);
  box-shadow: 0 10px 24px rgba(46, 196, 182, 0.28);
}

.btn--accent:hover {
  background: var(--sky-300);
  color: var(--navy-950);
}

.btn--ghost {
  background: transparent;
  color: var(--navy-900);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--navy-900);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hero — one immersive navy composition */
.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero--immersive {
  margin-bottom: 0;
}

.hero__visual--full {
  position: relative;
  margin-inline: 0;
  width: 100%;
  min-height: min(78vh, 680px);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 5.5rem);
  background:
    linear-gradient(105deg, rgba(7, 21, 37, 0.88) 0%, rgba(11, 31, 58, 0.72) 42%, rgba(11, 31, 58, 0.45) 70%, transparent 100%),
    linear-gradient(180deg, transparent 40%, rgba(7, 21, 37, 0.55)),
    radial-gradient(ellipse at 78% 38%, rgba(46, 196, 182, 0.32), transparent 52%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 45%, #0e2a4a);
  overflow: hidden;
  animation: fadein 1s ease both;
}

.hero__stage {
  display: block;
  min-height: 0;
  width: 100%;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero__copy {
  max-width: 38rem;
  margin-inline: auto;
  animation: rise 0.7s ease both;
}

.hero__copy--on-dark {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-300);
  margin: 0 0 0.75rem;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #f5f8fc;
  margin: 0 0 1rem;
  max-width: 44rem;
  text-wrap: balance;
}

.hero__sub {
  font-size: 1.08rem;
  color: rgba(232, 238, 245, 0.85);
  margin: 0 0 1.75rem;
  max-width: 34rem;
  line-height: 1.6;
}

.hero__trust {
  font-size: 0.78rem;
  color: rgba(232, 238, 245, 0.5);
  margin: 0.75rem 0 0;
}

.hero__copy--on-dark .hero__brand-lockup {
  color: #f5f8fc;
}

.hero__copy--on-dark .hero__brand-lockup span {
  color: var(--sky-300);
}

.hero__copy--on-dark .hero__lead {
  color: rgba(232, 238, 245, 0.88);
  margin-inline: auto;
}

.hero__brand-lockup {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  margin: 0 0 1rem;
}

.hero__brand-lockup span {
  display: block;
  color: var(--sky-500);
  font-size: 0.42em;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  max-width: 32rem;
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.btn--outline-light {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
}

.btn--outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero__visual {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.hero__visual::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: 12%;
  top: 18%;
  border: 1px solid rgba(46, 196, 182, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(46, 196, 182, 0.08);
  animation: pulse-ring 4s ease-in-out infinite;
  pointer-events: none;
}

.btn--ghost-on-dark {
  background: transparent;
  color: #f5f8fc;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn--ghost-on-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero__horizon {
  position: absolute;
  left: 8%;
  bottom: 28%;
  width: 55%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.hero__drone {
  position: absolute;
  left: 18%;
  top: 42%;
  width: 64px;
  height: 20px;
  background: rgba(255, 255, 255, 0.85);
  clip-path: polygon(10% 40%, 40% 20%, 60% 20%, 90% 40%, 60% 55%, 55% 80%, 45% 80%, 40% 55%);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  animation: drift 5s ease-in-out infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -10px); }
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-500);
  margin: 0 0 0.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  color: var(--navy-900);
}

.section__lead {
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 2rem;
}

.path {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

.path__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.path__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--sky-500);
  line-height: 1;
}

.path__item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.path__item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.trust-strip {
  border-block: 1px solid var(--line);
  padding: 1.25rem 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.trust-strip strong {
  color: var(--navy-900);
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 1.5rem 0 3rem;
}

.disclaimer strong {
  color: var(--navy-800);
}

/* Practice / Mock shell */
.app-shell {
  padding: 1.5rem 0 3.5rem;
}

.app-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.app-bar__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 500;
}

.progress {
  height: 4px;
  background: var(--paper-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sky-500), var(--sky-300));
  transition: width 0.35s ease;
}

.question-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-soft);
  min-height: 320px;
}

.question-panel__module {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-500);
  margin-bottom: 0.75rem;
}

.question-panel__stem {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  line-height: 1.35;
  margin: 0 0 1.5rem;
  color: var(--navy-900);
}

.choices {
  display: grid;
  gap: 0.75rem;
}

.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  text-align: left;
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  min-height: 56px;
}

.choice:hover:not(:disabled) {
  border-color: var(--navy-700);
  background: var(--white);
}

.choice:disabled {
  cursor: default;
}

.choice__key {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy-800);
}

.choice.is-selected {
  border-color: var(--navy-700);
  background: #eef3f9;
}

.choice.is-correct {
  border-color: var(--ok);
  background: #e8f7f0;
  animation: flash-ok 0.45s ease;
}

.choice.is-wrong {
  border-color: var(--bad);
  background: #fceeed;
  animation: flash-bad 0.45s ease;
}

@keyframes flash-ok {
  0% { transform: scale(0.98); }
  60% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

@keyframes flash-bad {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.feedback {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border-left: 3px solid var(--sky-400);
  display: none;
}

.feedback.is-visible {
  display: block;
  animation: rise 0.35s ease;
}

.feedback__result {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.feedback__result.is-ok { color: var(--ok); }
.feedback__result.is-bad { color: var(--bad); }

.feedback__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Gate / upgrade wall */
.gate {
  text-align: left;
  padding: 0.5rem 0;
}

.gate--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 5vw, 3.5rem);
  min-height: 280px;
}

.gate--centered h3,
.gate--centered h2 {
  margin: 0 0 0.75rem;
  max-width: 28rem;
  font-family: var(--font-display);
  color: var(--navy-900);
}

.gate--centered p {
  max-width: 34rem;
  margin: 0 auto 1.35rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.gate--centered .gate__list {
  text-align: left;
  margin: 0 auto 1.5rem;
  max-width: 22rem;
}

.gate h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  color: var(--navy-900);
}

.gate p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.gate__list {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--ink);
}

.gate__list li {
  margin-bottom: 0.4rem;
}

.app-actions--gate {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.btn--gate {
  min-width: 7.75rem;
  padding: 0.55rem 1.05rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--white);
  border: 1px solid var(--navy-900);
  box-shadow: none;
}

.btn--gate:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: var(--white);
}

/* Pricing */
.pricing-anchor-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0 0.25rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  justify-content: center;
}

.pricing-anchor-strip span {
  white-space: nowrap;
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.5rem;
}

.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.plan--featured {
  border-color: var(--sky-400);
  box-shadow: 0 8px 32px rgba(26, 166, 184, 0.14);
  position: relative;
}

.plan__badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

.plan__badge--accent { color: var(--sky-500); }
.plan__badge--primary { color: var(--navy-700); }

.plan__price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--navy-900);
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
}

.plan__cycle {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.plan__desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.55;
}

.plan__anchor {
  font-size: 0.85rem;
  color: var(--sky-500);
  font-weight: 600;
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: rgba(26, 166, 184, 0.07);
  border-radius: 6px;
}

.plan__features {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  flex: 1;
  font-size: 0.94rem;
  line-height: 1.7;
}

.plan ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  flex: 1;
}

/* Pricing comparison table */
.pricing-compare {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.pricing-compare__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--navy-900);
  margin: 0 0 1.25rem;
  text-align: center;
}

.pricing-compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pricing-compare__col {
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.pricing-compare__col--dim {
  background: var(--paper);
  border: 1px solid var(--line);
}

.pricing-compare__col--bright {
  background: var(--navy-900);
  color: #fff;
}

.pricing-compare__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.pricing-compare__col--dim .pricing-compare__label { color: var(--ink-soft); }
.pricing-compare__col--bright .pricing-compare__label { color: var(--sky-300); }

.pricing-compare__col ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.93rem;
  line-height: 1.7;
}

.pricing-compare__col--dim ul { color: var(--ink-soft); }
.pricing-compare__col--bright ul { color: rgba(232, 238, 245, 0.9); }

.pricing-faq {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  text-align: center;
}

.pricing-faq .faq {
  max-width: 42rem;
  margin-inline: auto;
  text-align: left;
}

.pricing-faq__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--navy-900);
  margin: 0 0 1rem;
}

/* Homepage hero trust line */
.hero__trust {
  font-size: 0.8rem;
  color: rgba(232, 238, 245, 0.6);
  margin: 0.5rem 0 0;
  letter-spacing: 0.01em;
}

/* Homepage SEO prose CTA */
.prose-cta {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--navy-900);
}

.prose-cta a {
  color: var(--sky-500);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .pricing-compare__grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy-900);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details p {
  color: var(--ink-soft);
  margin: 0.75rem 0 0;
}

/* Auth forms */
.auth-box {
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.auth-box label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.auth-box input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 1rem;
  background: var(--paper);
}

.auth-box input:focus {
  outline: 2px solid rgba(46, 196, 182, 0.45);
  border-color: var(--sky-400);
}

/* Mock timer */
.timer {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--navy-900);
}

.timer.is-warn {
  color: var(--bad);
}

.mock-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}

.mock-nav button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.8rem;
  cursor: pointer;
}

.mock-nav button.is-current {
  border-color: var(--navy-800);
  background: var(--navy-900);
  color: var(--white);
}

.mock-nav button.is-answered {
  background: #e8f7f0;
  border-color: var(--ok);
}

.score-board {
  text-align: center;
  padding: 2rem 1rem;
}

.score-board__big {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin: 0;
  color: var(--navy-900);
}

.module-scores {
  display: grid;
  gap: 0.65rem;
  text-align: left;
  margin-top: 1.5rem;
}

.module-scores__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.section--alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section--cta {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.topic-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 0.5rem;
}

.topic {
  padding: 1.2rem 1.25rem;
  border-top: 2px solid var(--sky-400);
}

.topic h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--navy-900);
}

.topic p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  align-items: center;
}

.split__panel {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #f5f8fc;
  padding: 1.75rem;
  border-radius: var(--radius);
}

.split__stat-label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-300);
}

.split__stat {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0.35rem 0 0.5rem;
}

.split__note {
  margin: 0 0 1.25rem;
  color: rgba(232, 238, 245, 0.82);
  font-size: 0.95rem;
}

.checklist {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.checklist li {
  margin-bottom: 0.55rem;
}

.rhythm {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 0.5rem;
}

.rhythm__step span {
  display: block;
  font-family: var(--font-display);
  color: var(--sky-500);
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.rhythm__step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--navy-900);
}

.rhythm__step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-right: 1rem;
}

.site-footer a:hover {
  color: var(--navy-900);
}

.notice-inline {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff8e8;
  border: 1px solid rgba(232, 163, 23, 0.35);
  color: var(--ink);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hidden { display: none !important; }

.loading {
  color: var(--ink-soft);
  padding: 2rem 0;
  text-align: center;
}

/* Learn + Blog */
.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(7, 21, 37, 0.85));
}

.page-hero__copy {
  position: relative;
  z-index: 1;
  padding: 3rem 0 2.25rem;
}

.knowledge {
  max-width: 720px;
  display: grid;
  gap: 2rem;
}

.knowledge__block h2 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 0 0 0.65rem;
}

.knowledge__block p {
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
}

.post-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 1.5rem;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-900);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}

.post-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.3;
}

.post-card__title a {
  text-decoration: none;
  color: var(--navy-900);
}

.post-card__excerpt {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  flex: 1;
}

.post-card__more {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--sky-500);
}

.article {
  max-width: 720px;
}

.article__hero {
  margin: 1.25rem 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.article__hero img {
  width: 100%;
  height: auto;
  display: block;
}

.article__content {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
}

.article__content h2 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 1.75rem 0 0.65rem;
}

.article__content a {
  color: var(--navy-800);
}

/* Mobile */
@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; place-items: center; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(247, 250, 252, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    gap: 0.75rem;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav.is-open { display: flex; }

  .hero__stage {
    min-height: auto;
  }

  .hero__visual--full {
    min-height: min(85vh, 620px);
    align-items: center;
    justify-content: center;
  }

  .hero__visual:not(.hero__visual--full) {
    margin-inline: 0;
    width: 100%;
    border-radius: var(--radius);
  }

  .choice {
    font-size: 0.95rem;
    padding: 1.05rem 1rem;
  }
}

/* ═══ Homepage unified layout ═══ */
.home .section__header {
  text-align: center;
  margin-bottom: 2rem;
}

.home .section__title {
  margin-inline: auto;
}

.home .section__lead {
  max-width: 40rem;
  margin-inline: auto;
  color: var(--ink-soft);
}

.home .section__kicker {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sky-500);
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
}

/* Tools section */
.home .section--tools .app-shell--embed {
  margin-top: 0.5rem;
  scroll-margin-top: 5.5rem;
  text-align: left;
}

.tool-spacer {
  height: 2.5rem;
}

/* Overview grid */
.overview-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.overview-grid__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--navy-900);
  line-height: 1.2;
}

.stat-card span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Prose SEO */
.home .prose-seo {
  max-width: 46rem;
  margin-inline: auto;
  text-align: left;
}

/* FAQ centered */
.faq--centered {
  max-width: 46rem;
  margin-inline: auto;
  text-align: left;
}

/* CTA */
.home .section--cta {
  text-align: center;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Proof quotes */
.home .proof-quotes {
  text-align: left;
}

.home .disclaimer {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
  padding-top: 1.25rem;
}

@media (max-width: 768px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
}
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.exam-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.exam-table th,
.exam-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.exam-table th {
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
}
.exam-table tr:last-child td {
  border-bottom: 0;
}
.prose-seo {
  max-width: 46rem;
}
.prose-seo p,
.prose-seo li {
  color: var(--ink-soft);
  line-height: 1.7;
}
.prose-seo h3 {
  margin-top: 1.5rem;
  color: var(--navy-900);
}
.cluster-list {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.proof-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}
.proof-stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.proof-stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--navy-900);
  line-height: 1.2;
}
.proof-stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.proof-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.proof-quotes blockquote {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.proof-quotes p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}
.proof-quotes cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--navy-900);
  font-weight: 600;
}
#practice,
#mock-exam,
#faq {
  scroll-margin-top: 5.5rem;
}
@media (max-width: 900px) {
  .proof-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-quotes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home .hero__visual--full {
    min-height: auto;
    padding: clamp(2rem, 6vw, 3rem) 0 clamp(2.25rem, 7vw, 3.5rem);
  }

  .home .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .home .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .home .section {
    padding: clamp(2rem, 5vw, 3rem) 0;
  }

  .home .app-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .home .app-bar__meta {
    width: 100%;
  }

  .home .app-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .home .app-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .home .app-actions--gate {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    max-width: 26rem;
  }

  .home .app-actions--gate .btn--gate {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding: 0.55rem 0.7rem;
  }

  .proof-stats {
    grid-template-columns: 1fr;
  }

  .exam-table {
    min-width: 0;
    font-size: 0.9rem;
  }

  .exam-table th,
  .exam-table td {
    padding: 0.7rem 0.75rem;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .cluster-list {
    padding-left: 1rem;
  }
}
