/*
 * main.css — component styles ported from axon-engine/ui/templates/landing.html
 * onto the tokens in tokens.css. Load order: fonts.css, tokens.css, main.css.
 *
 * Ported 1:1 (selectors + rules kept close to the source so the site stays a
 * faithful mirror of the in-product landing page):
 *   grain overlay, hero glows, fadeUp/pulse/float animations, nav, hero,
 *   phone mockup, trust bar, feature cards, analytics showcase, section
 *   headers, pricing, Hindi section, final CTA, community grid, footer.
 *
 * Intentionally NOT ported: the .ea-* early-access inline form and its
 * beta-cta-grid/QR layout. That form posts to /api/beta-request with a
 * CSRF dance — a form backed by a DB write is Go's job, not Hugo's (see
 * README "layer rule"). This site's CTAs are plain links to /signup.
 *
 * Added (not in landing.html, needed for the extra page types this site
 * serves): .prose for legal/help pages, .hub-* for the exam hub, .data-table
 * for syllabus/cutoff/dates, .cta-box for the reusable cta-signup partial,
 * .lang-toggle for the EN/HI nav switch.
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-latin);
  -webkit-font-smoothing: antialiased;
  /* `overflow-x: hidden` was removed deliberately. It didn't prevent
     horizontal overflow — it CLIPPED it, so wide tables became unreachable
     rather than scrollable, and the whole class of bug was invisible during
     development. Tables now scroll in their own .table-scroll container; the
     hero glows are already contained by .hero { overflow: hidden }. */
}

:lang(hi), .lang-hi, .hindi-text {
  font-family: var(--font-devanagari);
}

a { color: inherit; }

/* ===== GRAIN OVERLAY ===== */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ===== GLOW EFFECTS ===== */
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: var(--glow-opacity-1);
  pointer-events: none;
}
.glow-blue { background: var(--blue); top: -200px; left: -100px; }
.glow-purple { background: var(--purple); top: 100px; right: -200px; opacity: var(--glow-opacity-2); }
.glow-green { background: var(--green); bottom: -100px; left: 30%; opacity: var(--glow-opacity-3); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.animate { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* JS (see foot.html) flips animation-play-state on scroll-into-view; until
   JS runs, or if it's disabled, the rule below keeps content visible. */
.no-js .animate { opacity: 1; animation: none; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: var(--section-padding-y) 0;
  position: relative;
}

/* ===== NAV ===== */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: var(--nav-backdrop);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
}
nav.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
  /* This site's nav carries more items than the landing.html it was ported
     from (BSSC CGL, Help, lang toggle). Without flex-shrink:0 + a margin,
     the brand block competes for space with .nav-links under
     justify-content:space-between and, once both are squeezed to fit, the
     "space" in space-between collapses to zero — wordmark ends up touching
     the first nav link. Pin the brand to its natural size and give it a
     hard-floor gap instead. */
  flex-shrink: 0;
  margin-right: 40px;
}
.logo img { border-radius: 7px; flex-shrink: 0; }
.logo .logo-word span { color: var(--blue); }

.nav-links {
  display: flex; gap: 32px; align-items: center;
  list-style: none;
  /* .nav-actions (theme + hamburger) is now a third flex child of the nav
     container. Push the link list right so it stays beside the actions
     rather than being stranded mid-bar by space-between. */
  margin-left: auto;
  margin-right: 24px;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: color var(--transition-fast);
  /* Multi-word items ("BSSC CGL") must not wrap to two lines when the flex
     row is tight — force each link to shrink the row instead of itself. */
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--blue-btn-bg) !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold) !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}
.lang-toggle {
  display: flex; align-items: center; gap: 4px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}
.lang-toggle a, .lang-toggle span {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
}
.lang-toggle a:hover { color: var(--text); background: var(--card); }
.lang-toggle .is-active { color: var(--text); background: var(--card); border: 1px solid var(--border); }

/* ===== NAV — CONTROLS (theme toggle + hamburger) ===== */
.nav-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;            /* WCAG 2.5.5 target size */
  padding: 0; border: none; border-radius: var(--radius-md);
  background: transparent; color: var(--text-dim);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.icon-btn:hover { color: var(--text); background: var(--card); }
.icon-btn svg { width: 20px; height: 20px; }

/* The theme button shows the scheme you'd switch TO, so exactly one icon is
   ever visible. Default (dark base) → offer the sun. */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
}

/* Hamburger is mobile-only; the drawer never exists on desktop. */
.nav-toggle { display: none; }

@media (max-width: 768px) {
  /* Previously this was `.nav-links { display: none }`, which deleted the
     ENTIRE nav on phones — including the "Request access" CTA and the
     EN/हिं language toggle, i.e. the only route to the Hindi site. */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 65px;                            /* below the fixed nav bar */
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--surface);
    box-shadow: 0 12px 40px var(--shadow-color);
    /* Closed state: collapsed and inert. `visibility` (not just opacity)
       keeps the links out of the tab order when the drawer is shut.
       Padding and border live on .is-open, NOT here: max-height caps the
       content box, so a closed drawer with padding would still occupy
       (8 + 16 + 1) = 25px of phantom height under the nav bar. */
    max-height: 0;
    padding: 0;
    border-bottom: 0 solid var(--border);
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height var(--transition-slow), opacity var(--transition-fast), visibility var(--transition-fast);
  }
  .nav-links.is-open {
    max-height: calc(100vh - 65px);
    padding: 8px 0 16px;
    border-bottom-width: 1px;
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px var(--container-padding);   /* ≥44px tap target */
  }
  .nav-links a:hover { background: var(--card); }

  /* The CTA is a pill on desktop; full-width inside the drawer. */
  .nav-links .nav-cta {
    margin: 12px var(--container-padding) 4px;
    padding: 14px 20px;
    text-align: center;
  }
  .lang-toggle {
    justify-content: flex-start;
    padding: 12px var(--container-padding) 0;
    margin-top: 8px;
    border-top: 1px solid var(--border);
  }
  .lang-toggle a, .lang-toggle .is-active { padding: 10px 16px; }
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 16px 6px 8px;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  margin-bottom: var(--space-5);
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
}
.hero-badge-dot::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: pulse-ring 2s ease infinite;
}
.hero h1 {
  font-size: var(--fs-7xl);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: -1.5px;
  margin-bottom: var(--space-5);
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: var(--fs-lg);
  color: var(--text-dim);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-6);
  max-width: 480px;
}
.hero-sub strong { color: var(--text); font-weight: var(--fw-semibold); }
.hero-sub.hero-sub-muted { font-size: var(--fs-md); color: var(--text-muted); margin-top: -8px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue-btn-bg);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none; cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card);
  color: var(--text);
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}
.btn-secondary:hover {
  background: var(--border);
  transform: translateY(-2px);
}

/* Phone mockup */
.phone-wrapper { display: flex; justify-content: center; position: relative; }
.phone {
  width: 280px;
  background: var(--surface);
  border-radius: var(--radius-4xl);
  padding: 12px;
  box-shadow:
    0 0 0 1px var(--phone-ring),
    0 20px 80px var(--shadow-color-strong),
    0 0 120px var(--phone-accent-glow);
  animation: float 6s ease infinite;
}
.phone-screen { background: var(--bg); border-radius: var(--radius-3xl); overflow: hidden; padding: 16px; }
.phone-status { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 16px; padding: 0 4px; }
.phone-exam { color: var(--text-muted); font-size: var(--fs-xs); margin-bottom: 4px; }
.phone-greeting { color: var(--text); font-size: var(--fs-md); font-weight: var(--fw-bold); margin-bottom: 16px; }
.phone-score-card {
  background: linear-gradient(135deg, var(--card), var(--blue-dim));
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.phone-score-row { display: flex; justify-content: space-between; align-items: center; }
.phone-score-label { color: var(--text-muted); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 0.5px; }
.phone-score-number { color: var(--text); font-size: var(--fs-3xl); font-weight: var(--fw-extrabold); }
.phone-score-total { color: var(--text-muted); font-size: var(--fs-sm); }
.phone-cutoff-label { color: var(--text-muted); font-size: var(--fs-2xs); text-align: right; }
.phone-cutoff-number { color: var(--green-on-dim); font-size: 17px; font-weight: var(--fw-bold); text-align: right; }
.phone-cutoff-badge {
  display: inline-block; background: var(--green-dim); color: var(--green-on-dim);
  font-size: var(--fs-2xs); font-weight: var(--fw-semibold); padding: 2px 6px;
  border-radius: var(--radius-xs); margin-top: 3px;
}
.phone-bar { height: 6px; background: var(--phone-track); border-radius: 3px; margin-top: 10px; overflow: hidden; position: relative; }
.phone-bar-fill { height: 100%; width: 56%; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 3px; }
.phone-bar-marker { position: absolute; top: -2px; left: 47.5%; width: 2px; height: 10px; background: var(--yellow); border-radius: 1px; }
.phone-task { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: var(--radius-md); padding: 10px; border: 1px solid var(--border); margin-bottom: 6px; }
.phone-task-icon { width: 28px; height: 28px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: var(--fs-sm); flex-shrink: 0; }
.phone-task-title { color: var(--text); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.phone-task-sub { color: var(--text-muted); font-size: var(--fs-2xs); }
.phone-task-tag { font-size: 8px; padding: 2px 6px; border-radius: 3px; font-weight: var(--fw-semibold); margin-left: auto; flex-shrink: 0; }

/* ===== TRUST BAR ===== */
.trust-bar { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.trust-number { font-size: var(--fs-5xl); font-weight: var(--fw-extrabold); letter-spacing: -1px; }
.trust-label { color: var(--text-dim); font-size: var(--fs-sm); margin-top: 4px; }

/* ===== FEATURES / HOW IT WORKS ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 28px 24px; transition: all var(--transition-slow); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--border); transition: background var(--transition-slow);
}
.feature-card:hover::before { background: linear-gradient(90deg, var(--blue), var(--teal)); }
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow-color); }
.feature-icon { width: 44px; height: 44px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: var(--fs-xl); margin-bottom: 16px; }
.feature-card h3 { font-size: var(--fs-md); font-weight: var(--fw-bold); margin-bottom: 8px; color: var(--text); }
.feature-card p { color: var(--text-dim); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }

/* ===== ANALYTICS SHOWCASE ===== */
.analytics-section { background: var(--surface); }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 40px; }
.analytics-preview { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: 24px; box-shadow: 0 8px 40px var(--shadow-color); }
.analytics-header { color: var(--text); font-size: var(--fs-base); font-weight: var(--fw-bold); margin-bottom: 16px; }
.marks-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.marks-row:last-child { border-bottom: none; }
.marks-topic { flex: 1; font-size: var(--fs-sm); color: var(--text); font-weight: var(--fw-medium); }
.marks-topic-sub { font-size: 10px; color: var(--text-muted); font-weight: var(--fw-normal); }
.marks-accuracy { font-size: var(--fs-sm); font-weight: var(--fw-semibold); margin-right: 16px; }
.marks-lost { background: var(--red-dim); color: var(--red-on-dim); font-size: var(--fs-xs); font-weight: var(--fw-semibold); padding: 3px 8px; border-radius: var(--radius-xs); min-width: 40px; text-align: center; }
.marks-callout { background: var(--red-dim); border-radius: var(--radius-md); padding: 10px 12px; margin-top: 14px; border: 1px solid rgba(239,68,68,0.2); }
.marks-callout-title { color: var(--red-on-dim); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.marks-callout-sub { color: var(--red-callout-sub); font-size: 11px; margin-top: 2px; }
.analytics-text h2 { font-size: var(--fs-4xl); font-weight: var(--fw-extrabold); letter-spacing: -0.5px; margin-bottom: 16px; line-height: var(--lh-snug); }
.analytics-text p { color: var(--text-dim); font-size: var(--fs-base); line-height: var(--lh-loose); margin-bottom: 12px; }
.analytics-text strong { color: var(--text); }

/* ===== SECTION HEADERS ===== */
.section-label { color: var(--blue-on-dim); font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.section-title { font-size: var(--fs-5xl); font-weight: var(--fw-extrabold); letter-spacing: -1px; line-height: var(--lh-snug); margin-bottom: 16px; }
.section-sub { color: var(--text-dim); font-size: var(--fs-md); line-height: var(--lh-relaxed); max-width: 600px; }

/* ===== PRICING ===== */
.beta-banner {
  max-width: 700px; margin: 24px auto 0; padding: 14px 22px;
  background: linear-gradient(135deg, var(--green-dim), rgba(16, 185, 129, 0.18));
  border: 1px solid rgba(16, 185, 129, 0.35); border-radius: var(--radius-xl);
  text-align: center; color: var(--text);
}
.beta-banner-title { font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--green-on-dim); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.beta-banner-body { color: var(--text-dim); font-size: var(--fs-base); line-height: var(--lh-normal); }
.beta-banner-body strong { color: var(--text); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 700px; margin: 24px auto 0; }
.price-strike { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(239, 68, 68, 0.55); color: var(--text-muted) !important; opacity: 0.65; }
.price-now { display: block; font-size: var(--fs-2xl); font-weight: var(--fw-extrabold); color: var(--green-on-dim); letter-spacing: -0.5px; margin-top: 4px; }
.pricing-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: 32px 28px; text-align: center; position: relative; transition: all var(--transition-slow); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow-color); }
.pricing-card.featured { background: linear-gradient(135deg, var(--yellow-dim), var(--pricing-featured-end)); border-color: rgba(245, 158, 11, 0.3); }
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--yellow), var(--orange)); color: #000;
  font-size: 10px; font-weight: var(--fw-bold); padding: 4px 14px; border-radius: var(--radius-full); letter-spacing: 0.5px;
}
.pricing-duration { color: var(--text-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.pricing-card.featured .pricing-duration { color: var(--yellow-on-dim); }
.pricing-amount { font-size: var(--fs-3xl); font-weight: var(--fw-black); letter-spacing: -2px; margin-bottom: 4px; }
.pricing-per { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 20px; }
.pricing-features { text-align: left; margin-bottom: 24px; }
.pricing-features li { list-style: none; color: var(--text-dim); font-size: var(--fs-sm); padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.pricing-features li::before { content: '✓'; color: var(--green-on-dim); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.pricing-btn { display: block; width: 100%; padding: 12px; border-radius: var(--radius-lg); font-size: var(--fs-base); font-weight: var(--fw-bold); text-align: center; text-decoration: none; border: none; cursor: pointer; transition: all var(--transition-fast); }
.pricing-btn-primary { background: linear-gradient(135deg, var(--yellow), var(--orange)); color: #000; }
.pricing-btn-secondary { background: var(--blue-btn-bg); color: white; }
.pricing-btn:hover { transform: translateY(-1px); }
.free-note { text-align: center; color: var(--text-muted); font-size: var(--fs-sm); margin-top: 20px; line-height: var(--lh-normal); }

/* ===== HINDI SECTION ===== */
.hindi-section { background: var(--surface); text-align: center; }
.hindi-text { font-family: var(--font-devanagari); font-size: var(--fs-xl); color: var(--text-dim); line-height: 1.8; max-width: 600px; margin: 0 auto; }
.hindi-text strong { color: var(--text); font-weight: var(--fw-semibold); }

/* ===== FINAL CTA ===== */
.final-cta { text-align: center; padding: var(--space-10) 0; }
.final-cta h2 { font-size: var(--fs-6xl); font-weight: var(--fw-black); letter-spacing: -1.5px; margin-bottom: 16px; line-height: var(--lh-tight); }
.final-cta p { color: var(--text-dim); font-size: var(--fs-md); margin-bottom: 32px; }
.final-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== COMMUNITY ===== */
.community { padding: 48px 0 24px; }
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 920px; margin: 24px auto 0; }
.community-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); text-decoration: none; color: var(--text); transition: transform var(--transition-fast), border-color var(--transition-fast); }
.community-card:hover { transform: translateY(-2px); border-color: var(--blue); }
.community-icon { width: 40px; height: 40px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: var(--fs-xl); flex-shrink: 0; }
.community-card-title { font-weight: var(--fw-semibold); font-size: var(--fs-md); color: var(--text); }
.community-card-sub { font-size: var(--fs-xs); color: var(--text-dim); margin-top: 2px; }

/* ===== FOOTER ===== */
footer.site-footer { border-top: 1px solid var(--border); padding: 40px 0; text-align: center; color: var(--text-muted); font-size: var(--fs-sm); }
footer.site-footer a { color: var(--text-dim); text-decoration: none; margin: 0 12px; }
footer.site-footer a:hover { color: var(--text); }
.footer-links { margin-bottom: 16px; }
.footer-tagline { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 8px; }

/* =======================================================================
 * The sections below are NOT in landing.html. They style the additional
 * page types this Hugo site owns that the single-page product landing
 * doesn't have: legal/help prose pages, the exam hub + its data-driven
 * children, and the reusable cta-signup partial. Built from the same
 * tokens so they read as the same product.
 * ===================================================================== */

/* ===== PROSE (legal pages, help articles) ===== */
.prose { padding: 140px 0 96px; }
.prose .container { max-width: 760px; }
.prose .back-link { color: var(--text-dim); text-decoration: none; font-size: var(--fs-sm); letter-spacing: 0.02em; text-transform: uppercase; }
.prose .back-link:hover { color: var(--text); }
.prose h1 { font-size: var(--fs-4xl); font-weight: var(--fw-bold); margin: 16px 0 8px; letter-spacing: -0.02em; }
.prose .updated { color: var(--text-muted); font-size: var(--fs-base); margin-bottom: 32px; }
.prose h2 { font-size: var(--fs-2xl); font-weight: var(--fw-semibold); margin: 36px 0 12px; color: var(--text); letter-spacing: -0.01em; }
.prose h3 { font-size: 17px; font-weight: var(--fw-semibold); margin: 24px 0 8px; color: var(--text); }
.prose p { color: var(--text-dim); margin-bottom: 14px; font-size: var(--fs-base); line-height: var(--lh-relaxed); }
.prose ul, .prose ol { margin: 0 0 16px 20px; color: var(--text-dim); font-size: var(--fs-base); line-height: var(--lh-relaxed); }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue-on-dim); }
.prose strong { color: var(--text); font-weight: var(--fw-semibold); }
.prose code { background: var(--card); padding: 2px 6px; border-radius: var(--radius-xs); font-size: var(--fs-sm); color: var(--text); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.prose table { width: 100%; margin: 16px 0; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; font-size: var(--fs-sm); }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); background: var(--surface); font-weight: var(--fw-semibold); }
.prose td { color: var(--text-dim); }
.prose tr:last-child td { border-bottom: none; }

/* Unscoped (not .prose-only) so the exam hub — which is not a .prose page —
   can reuse the same callout box for its "current cycle status" banner. */
.callout { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--blue); padding: 16px 20px; border-radius: var(--radius-sm); margin: 16px 0; color: var(--text-dim); font-size: var(--fs-base); }
.callout p { color: var(--text-dim); margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--text); font-weight: var(--fw-semibold); }

.content-todo {
  display: block; margin: 16px 0; padding: 10px 14px;
  background: var(--yellow-dim); border: 1px dashed var(--yellow-on-dim);
  border-radius: var(--radius-sm); color: var(--yellow-on-dim); font-size: var(--fs-sm); font-weight: var(--fw-semibold);
}

/* ===== DATA TABLES (syllabus / cutoff / dates) ===== */
.data-table { width: 100%; margin: 16px 0 28px; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; font-size: var(--fs-sm); }
.data-table th, .data-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table th { color: var(--text); background: var(--surface); font-weight: var(--fw-semibold); }
.data-table td { color: var(--text-dim); }
.data-table tr:last-child td { border-bottom: none; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: var(--radius-full); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.status-completed { background: var(--green-dim); color: var(--green-on-dim); }
.status-upcoming { background: var(--blue-dim); color: var(--blue-on-dim); }
.status-live { background: var(--yellow-dim); color: var(--yellow-on-dim); }
.verify-flag { color: var(--yellow-on-dim); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }

/* ===== EXAM HUB ===== */
.hub-hero { padding: 140px 0 40px; }
.hub-hero p { color: var(--text-dim); font-size: var(--fs-md); line-height: var(--lh-relaxed); max-width: 700px; margin: 0 0 12px; }
.hub-meta { color: var(--text-dim); font-size: var(--fs-base); margin: 8px 0 24px; }
.hub-cycle-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 6px 16px; font-size: var(--fs-sm); color: var(--text-dim); margin-bottom: 16px;
}
.hub-children { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.hub-child-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 24px; text-decoration: none; color: var(--text); transition: all var(--transition-slow); display: block;
}
.hub-child-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow-color); }
.hub-child-card h3 { font-size: var(--fs-md); font-weight: var(--fw-bold); margin-bottom: 6px; }
.hub-child-card p { color: var(--text-dim); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }
.hub-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 8px; }
.hub-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; text-align: center; }
.hub-stat-num { font-size: var(--fs-3xl); font-weight: var(--fw-extrabold); color: var(--blue); }
.hub-stat-label { color: var(--text-dim); font-size: var(--fs-xs); margin-top: 4px; }

/* Notification block on the exam hub. The hub is NOT a .prose page, so its
   headings/lists get no typography for free — everything below is scoped here
   rather than leaking generic h2/h3/ul rules onto every layout. .data-table is
   already unscoped, so the tables inside need nothing extra. */
.hub-notification { margin-top: 40px; }
.hub-notification h2 { font-size: var(--fs-2xl); font-weight: var(--fw-semibold); margin: 0 0 12px; letter-spacing: -0.01em; }
.hub-notification h3 { font-size: 17px; font-weight: var(--fw-semibold); margin: 24px 0 8px; }
.hub-notification ul { margin: 0 0 16px 20px; color: var(--text-dim); font-size: var(--fs-base); line-height: var(--lh-relaxed); }
.hub-notification li { margin-bottom: 8px; }
.hub-notification li strong { color: var(--text); font-weight: var(--fw-semibold); }
.hub-notification a { color: var(--blue-on-dim); }
.hub-notification .data-table td:last-child { color: var(--text); }

/* Provenance line under each cutoff table (official result vs model estimate).
   Deliberately quiet but always present — the distinction is the whole reason
   the mains figures are allowed on the page at all. */
.cutoff-source { font-size: var(--fs-sm); color: var(--text-muted); margin: -12px 0 24px; }
.cutoff-source strong { color: var(--text-dim); font-weight: var(--fw-semibold); }

/* ===== CTA BOX (partials/cta-signup.html) ===== */
.cta-box {
  max-width: 640px; margin: 48px auto 0; padding: 28px 32px; text-align: center;
  border-radius: var(--radius-3xl); border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--cta-box-grad-1) 0%, var(--cta-box-grad-2) 100%);
}
.cta-box h3 { font-size: var(--fs-2xl); font-weight: var(--fw-bold); margin-bottom: 8px; }
.cta-box p { color: var(--text-dim); font-size: var(--fs-base); margin-bottom: 20px; }

/* ===== BLOG LIST ===== */
.blog-list { padding: 140px 0 96px; }
.blog-empty { color: var(--text-dim); font-size: var(--fs-base); padding: 32px; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: var(--fs-5xl); }
  .hero-sub { margin: 0 auto var(--space-6); }
  .hero-ctas { justify-content: center; }
  .phone-wrapper { margin-top: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
  .section-title { font-size: var(--fs-3xl); }
  .final-cta h2 { font-size: var(--fs-5xl); }
  .hub-children { grid-template-columns: 1fr; }
  .hub-stats { grid-template-columns: 1fr; }
}

/* ---- Phones. Nothing below 900px existed before, so section padding,
   the three 140px page-top gaps and the tap targets were all still at
   their desktop values on a 360px screen. ---- */
@media (max-width: 600px) {
  :root {
    --section-padding-y: 52px;
    --container-padding: 20px;
  }
  .hero { padding: 96px 0 56px; }
  .prose, .blog-list { padding: 96px 0 64px; }
  .hub-hero { padding: 96px 0 32px; }
  .cta-box { padding: 24px 20px; }

  /* Legible-text floor: --fs-xs/2xs are used for real content (status
     pills, hub stat labels, the footer), not just decoration. */
  :root { --fs-xs: 12px; --fs-2xs: 10px; }

  /* Tap targets (WCAG 2.5.8). These are inline <a>s, so they need a box
     before padding does anything. */
  footer.site-footer a { display: inline-block; padding: 10px 12px; margin: 0; }
  .back-link { display: inline-block; padding: 8px 0; }
  .pricing-btn { padding: 14px; }
}

/* ===== TABLES — HORIZONTAL SCROLL =====
 * A <table> cannot itself be a scroll container, and the `body { overflow-x:
 * hidden }` this replaces meant the excess was CLIPPED and unreachable
 * rather than scrollable. The 4-column exam "dates" table and the 3-column
 * legal-page tables both exceed a 360px viewport. Every table is now
 * wrapped — by the markdown render hook for .prose content, and explicitly
 * in the exam layouts.
 *
 * NB: do NOT write an exam path with a wildcard segment in a CSS comment —
 * the slash-star sequence closes the comment early and silently eats the
 * rule below. That exact typo dropped this rule once already. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin-bottom: var(--space-6);
}
.table-scroll > table { margin-bottom: 0; }
/* Long unbreakable tokens (URLs, `fonts.gstatic.com`) must not force the
   page wide. */
.prose code, .prose a { overflow-wrap: anywhere; }

/* ===== FOCUS + SKIP LINK =====
 * There were no designed focus styles at all. Nothing set `outline: none`,
 * so the UA ring survived — but it is blue-on-blue over .btn-primary and
 * .nav-cta, and the card links had hover-only affordances. */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
.feature-card:focus-within, .hub-child-card:focus-visible, .community-card:focus-visible {
  border-color: var(--border-hover);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1100;
}
.skip-link:focus {
  left: 16px; top: 16px;
  padding: 12px 20px;
  background: var(--blue-btn-bg);
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: var(--fw-semibold);
}

/* In-page anchors (#features, #analytics, #pricing) land under the fixed
   ~65px nav without this. */
html { scroll-padding-top: 88px; }

/* ===== REDUCED MOTION =====
 * .phone floats forever and .hero-badge-dot pulses forever — two infinite
 * auto-playing animations, a WCAG 2.2.2 failure with no pause control.
 *
 * The `.animate { opacity: 1 }` line is NOT optional: .animate starts at
 * opacity 0 and is revealed by the fadeUp animation, so killing animations
 * without forcing opacity leaves ~30 homepage elements permanently
 * INVISIBLE. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate { opacity: 1 !important; transform: none !important; }
  .nav-links { transition: none !important; }
}

/* ===== PRINT =====
 * /privacy and /terms are the pages a Play reviewer or a lawyer prints.
 * Browsers don't print backgrounds, so a dark-mode visitor was printing
 * near-white text onto white paper. */
@media print {
  :root { --bg: #fff; --card: #fff; --surface: #fff; --text: #000; --text-dim: #333; --text-muted: #555; --border: #ccc; }
  body { background: #fff !important; color: #000 !important; }
  body::before, .hero-glow, nav.site-nav, .skip-link { display: none !important; }
  .prose, .blog-list, .hub-hero { padding-top: 0 !important; }
  a { color: #000 !important; text-decoration: underline; }
}

/* ============================================================
   Current Affairs (/current-affairs/*)
   Spec: axon/docs/developer/current-affairs-site-section-2026-08-30.md
   Print styles live in print.css, not here.
   ============================================================ */
.ca-hub, .ca-week, .ca-term, .ca-term-dir { padding: 3rem 0 4rem; }
.ca-hub-sub { color: var(--text-dim); max-width: 42rem; }

.ca-cats-title { font-size: 1rem; color: var(--text-muted); margin: 2rem 0 .75rem; }
.ca-cat-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ca-cat-list a {
  display: inline-block; padding: .4rem .75rem; border: 1px solid var(--border);
  border-radius: 999px; text-decoration: none; color: var(--text); font-size: .9rem;
}
.ca-cat-list a:hover { border-color: var(--border-hover); }
.ca-count { color: var(--text-muted); font-size: .8rem; }

.ca-week-list { list-style: none; padding: 0; margin-top: 2rem; }
.ca-week-item {
  display: flex; align-items: baseline; gap: 1rem; justify-content: space-between;
  padding: .9rem 0; border-bottom: 1px solid var(--border);
}
.ca-week-title { font-weight: 600; }
.ca-week-range { color: var(--text-muted); font-size: .875rem; margin-left: .5rem; }

.ca-range { color: var(--text-dim); margin: .25rem 0 1rem; }
.ca-updated { color: var(--text-muted); font-size: .8rem; margin-top: .75rem; }
.ca-pdf { margin-top: .5rem; }

/* Filter bar is [hidden] in the markup and revealed by JS — a no-JS visitor
   sees every item rather than a control that does nothing. */
.ca-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.ca-chip {
  padding: .35rem .8rem; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--text-dim); font: inherit; font-size: .85rem;
  cursor: pointer;
}
.ca-chip.is-on { border-color: var(--blue); color: var(--blue); }

.ca-items { list-style: none; padding: 0; }
.ca-item { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.ca-item-head { font-size: 1.1rem; margin: 0 0 .35rem; }
.ca-badge {
  display: inline-block; font-size: .75rem; color: var(--blue);
  text-decoration: none; margin-bottom: .5rem;
}
.ca-item-body { color: var(--text-dim); }
.ca-item-body > p:last-child { margin-bottom: 0; }
.ca-item-tags { margin: .5rem 0 0; font-size: .8rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.ca-item-tags a { color: var(--text-muted); }
.ca-source { margin: .5rem 0 0; font-size: .8rem; color: var(--text-muted); font-style: italic; }

.ca-term-kind { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.ca-term-week { margin-top: 2rem; }
.ca-term-week > h2 { font-size: 1rem; }
.ca-empty { color: var(--text-muted); margin-top: 2rem; }
/* Optional external-link icon on a news item's source line. Only rendered when
   the item carries a `url`; see layouts/partials/ca-source.html. */
.ca-src-link { display: inline-flex; vertical-align: -2px; margin-left: .3rem; color: var(--text-muted); }
.ca-src-link:hover { color: var(--blue); }

/* ===== BETA CAMPAIGN PAGE (/beta — content/help/getting-started.md + .hi.md) =====
   Founding-member tier uses purple/pink deliberately: it mirrors the
   ★ FOUNDING MEMBER badge the mobile app already renders on the profile screen
   (axon-mobile profile_screen.dart — purple→magenta gradient), so the reward
   looks the same on the page that promises it and in the app that grants it. */

.beta-lede { font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: var(--text); margin: 0 0 8px; }
.prose .beta-lede strong { color: var(--blue-on-dim); }

/* Campaign status strip — deadline + how the campaign ends. */
.campaign-bar {
  display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline;
  margin: 24px 0 8px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.campaign-bar div { font-size: var(--fs-sm); color: var(--text-dim); }
.campaign-bar b { display: block; margin-bottom: 2px; color: var(--text); font-size: var(--fs-base); font-weight: var(--fw-semibold); }

/* The reward ladder. */
.perk-ladder { display: grid; gap: 12px; margin: 20px 0 28px; }
@media (min-width: 720px) { .perk-ladder { grid-template-columns: repeat(3, 1fr); } }
.perk-tier {
  padding: 18px; border-radius: var(--radius-md);
  background: var(--card); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.perk-tier-step { font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.perk-tier-prize { font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--text); letter-spacing: -0.01em; line-height: var(--lh-snug); }
.perk-tier-cond { font-size: var(--fs-sm); color: var(--text-dim); line-height: var(--lh-relaxed); margin: 0; }
.perk-tier-top { background: var(--purple-dim); border-color: var(--purple); }
.perk-tier-top .perk-tier-step { color: var(--purple-on-dim); }
.perk-tier-top .perk-tier-prize { color: var(--purple-on-dim); }
.perk-seats { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: var(--radius-full); background: var(--purple); color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: 0.02em; }

/* Numbered install steps. */
.step-cards { margin: 20px 0 28px; display: grid; gap: 10px; }
.step-card {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
  padding: 16px 18px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.step-num {
  width: 34px; height: 34px; border-radius: var(--radius-full);
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold); font-size: var(--fs-base);
}
.prose .step-card h3 { margin: 2px 0 6px; font-size: var(--fs-md); }
.prose .step-card p { margin: 0 0 6px; font-size: var(--fs-sm); }
.prose .step-card p:last-child { margin-bottom: 0; }

/* Primary action on the page. */
.beta-cta {
  display: inline-block; margin: 4px 0 8px; padding: 14px 28px;
  background: var(--blue-btn-bg); color: #fff; text-decoration: none;
  border-radius: var(--radius-md); font-weight: var(--fw-semibold); font-size: var(--fs-base);
  transition: background var(--transition-fast);
}
.beta-cta:hover { background: var(--blue-btn-bg-hover); }
