/* Lingupi marketing site â€” matches app tokens (purple hoodie, orange streak) */

:root {
  --white: #ffffff;
  --surface-muted: #f3f4f6;
  --purple-500: #8570ff;
  --purple-600: #6b4ee6;
  --purple-700: #5639c8;
  --purple-800: #4530a8;
  --purple-50: #eeeaff;
  --charcoal: #2f3542;
  --gray-600: #656b76;
  --gray-400: #9aa0aa;
  --border: #e5e7eb;
  --teal-600: #137b5c;
  --teal-50: #e1f5ee;
  --amber-500: #f5a623;
  --amber-600: #c47a0a;
  --halo-purple: rgba(107, 78, 230, 0.12);
  --halo-amber: rgba(245, 166, 35, 0.14);
  --extrude: 4px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-card: 0 3px 10px rgba(47, 53, 66, 0.06);
  --max: 1120px;
  --pad: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--purple-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--purple-800);
}

.story {
  font-family: "Newsreader", Georgia, serif;
}

.container {
  width: min(var(--max), 100% - var(--pad) * 2);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-md);
}

.nav a:hover {
  color: var(--charcoal);
  background: var(--surface-muted);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  padding: 12px 11px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 8px 12px;
  background: var(--purple-600);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  padding: 14px 22px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
  position: relative;
}

.btn:active {
  transform: translateY(var(--extrude));
  box-shadow: none !important;
}

.btn-primary {
  color: var(--white);
  background: var(--purple-600);
  box-shadow: 0 var(--extrude) 0 var(--purple-800);
}

.btn-primary:hover {
  background: var(--purple-700);
  color: var(--white);
}

.btn-secondary {
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 var(--extrude) 0 #d6d9e0;
}

.btn-secondary:hover {
  background: var(--surface-muted);
  color: var(--charcoal);
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  padding: 48px 0 64px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 72px 0 88px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--purple-50);
  color: var(--purple-700);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  font-weight: 600;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin: 0 0 28px;
  max-width: 34rem;
}

.hero-lead .story {
  font-size: 1.2rem;
  color: var(--charcoal);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.store-row,
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.store-badge:hover {
  transform: translateY(-1px);
}

.store-badge:active {
  transform: translateY(1px);
}

.store-badge-icon {
  flex-shrink: 0;
  display: block;
  width: 18px;
  height: 18px;
}

.store-name {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.store-badge-apple {
  background: #111827;
  color: #fff;
}

.store-badge-apple:hover {
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.store-badge-google {
  background: #fff;
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.store-badge-google:hover {
  color: #111827;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.store-badge.is-soon {
  cursor: default;
  opacity: 0.72;
}

.store-badge.is-soon:hover {
  transform: none;
}

.store-badge-img {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 120ms ease, opacity 120ms ease;
  position: relative;
}

.store-badge-img img {
  display: block;
  height: 44px;
  width: auto;
}

.store-badge-img:hover {
  transform: translateY(-2px);
}

.store-badge-img.is-soon {
  opacity: 0.88;
}

.store-badge-img.is-soon::after {
  content: "Soon";
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--amber-600);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.hero-note {
  margin: 16px 0 0;
  color: var(--gray-600);
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}

.stat {
  min-width: 100px;
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.stat span {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: min(100%, 400px);
  padding: 20px 20px 24px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40px -20px auto;
  height: 200px;
  background: radial-gradient(circle at 50% 50%, var(--halo-purple), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.penguin-wrap {
  display: flex;
  justify-content: center;
  margin: 0 -8px 12px;
  position: relative;
}

.penguin-wrap img {
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
}

.hero-splash {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.penguin-wrap .hero-penguin {
  position: relative;
  z-index: 1;
}

.hero-deco {
  position: absolute;
  right: -8px;
  bottom: 88px;
  width: 88px;
  z-index: 2;
  transform: rotate(6deg);
  filter: drop-shadow(0 6px 12px rgba(47, 53, 66, 0.12));
}

.sample-story {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.sample-story .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.sample-story .sentence {
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0 0 8px;
}

.sample-story .translation {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--halo-amber);
  color: var(--amber-600);
  font-size: 0.85rem;
  font-weight: 600;
}

.streak-pill .flame {
  width: 16px;
  height: 16px;
  background: var(--amber-500);
  border-radius: 50% 50% 50% 20%;
  transform: rotate(-12deg);
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.35);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-muted {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--gray-600);
  max-width: 40rem;
  margin: 0 auto 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.section-muted .feature-card {
  background: var(--white);
}

.feature-mascot {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.feature-mascot img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.feature-mascot.purple {
  background: linear-gradient(180deg, var(--purple-50), var(--white));
}

.feature-mascot.teal {
  background: linear-gradient(180deg, var(--teal-50), var(--white));
}

.feature-mascot.amber {
  background: linear-gradient(180deg, var(--amber-50), var(--white));
}

.feature-card {
  text-align: center;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--purple-600);
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 var(--extrude) 0 var(--purple-800);
}

.step h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 32px 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 2px solid var(--purple-500);
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
}

.pricing-mascot {
  width: 96px;
  height: 96px;
  margin: -8px auto 12px;
  object-fit: contain;
}

.pricing-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.pricing-card p {
  margin: 0 0 20px;
  color: var(--gray-600);
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.pricing-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.pricing-list li:last-child {
  border-bottom: none;
}

.cta-band {
  padding: 56px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--purple-50), var(--white));
  border-top: 1px solid var(--border);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0 auto 24px;
  color: var(--gray-600);
  max-width: 32rem;
}

/* Legal pages */
.legal-page {
  padding: 40px 0 72px;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.legal-meta {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-body h2 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
}

.legal-body h3 {
  font-size: 1rem;
  margin: 24px 0 8px;
}

.legal-body p,
.legal-body li {
  color: var(--gray-600);
  line-height: 1.65;
}

.legal-body ul {
  padding-left: 1.25rem;
  margin: 0 0 16px;
}

.legal-body a {
  font-weight: 500;
}

/* Footer */
.site-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand p {
  margin: 8px 0 0;
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--charcoal);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--gray-400);
  text-align: center;
}

@media (max-width: 800px) {
  .nav-toggle {
    display: flex;
  }

  .site-header:has(.nav-toggle) .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
  }

  .site-header:has(.nav-toggle) .nav.is-open {
    display: flex;
  }

  .site-header:has(.nav-toggle) .nav a {
    padding: 10px 12px;
  }
}

/* —— Sticky App Store / Play bar (FoxExams-style) —— */
body.has-sticky-app {
  padding-bottom: 68px;
}

.sticky-app {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px var(--pad);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(47, 53, 66, 0.08);
  backdrop-filter: blur(8px);
}

.sticky-app-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  width: 100%;
}

.sticky-app-copy {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-app-actions,
.sticky-app .store-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  flex: 0 0 auto;
  align-items: stretch;
}

.sticky-app .store-badge {
  min-height: 36px;
  padding: 6px 12px;
  gap: 6px;
  border-radius: 10px;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.sticky-app .store-badge-icon {
  width: 16px;
  height: 16px;
}

.sticky-app .store-name {
  font-size: 0.8125rem;
}

.sticky-app .store-badge-apple {
  background: #111827;
  color: #fff;
}

.sticky-app .store-badge-google {
  background: #fff;
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

@media (max-width: 640px) {
  .sticky-app-copy { display: none; }
  .sticky-app-inner { justify-content: stretch; }
  .sticky-app-actions,
  .sticky-app .store-badges { width: 100%; }
  .sticky-app .store-badge { flex: 1 1 0; min-width: 0; }
  body.has-sticky-app { padding-bottom: 64px; }
}

@media (min-width: 641px) and (max-width: 820px) {
  .sticky-app-copy { max-width: 38%; }
}

/* —— Practice pack pages —— */
.page-practice .practice-hero {
  padding: 40px 0 12px;
}
.page-practice .practice-hero h1 {
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 8px 0 12px;
  color: var(--charcoal);
}
.page-practice .practice-count {
  color: var(--gray-600);
  font-weight: 500;
}
.practice-panel {
  padding: 12px 0 40px;
}
.practice-start-card,
.practice-card,
.practice-done {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.practice-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}
.practice-mode {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  min-width: 110px;
}
.practice-mode input { position: absolute; opacity: 0; pointer-events: none; }
.practice-mode.is-selected {
  border-color: var(--purple-600);
  background: var(--purple-50);
}
.practice-mode-name { font-weight: 700; color: var(--charcoal); }
.practice-mode-hint { font-size: 0.8rem; color: var(--gray-600); }
.practice-go { width: 100%; max-width: 280px; }
.practice-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.practice-exit {
  border: 0;
  background: transparent;
  color: var(--gray-600);
  font-weight: 600;
  cursor: pointer;
}
.practice-topic {
  margin: 0 0 8px;
  color: var(--purple-700);
  font-weight: 600;
  font-size: 0.9rem;
}
.practice-stem {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 16px;
  color: var(--charcoal);
}
.practice-options {
  display: grid;
  gap: 10px;
}
.practice-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font: inherit;
}
.practice-option.is-selected {
  border-color: var(--purple-600);
  background: var(--purple-50);
}
.practice-option.is-correct {
  border-color: var(--teal-600);
  background: var(--teal-50);
}
.practice-option.is-wrong {
  border-color: #c45c5c;
  background: #fdecec;
}
.opt-letter {
  font-weight: 700;
  color: var(--purple-700);
  min-width: 1.2em;
}
.practice-feedback {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  white-space: pre-wrap;
  font-weight: 600;
}
.practice-feedback.is-correct { background: var(--teal-50); color: var(--teal-600); }
.practice-feedback.is-wrong { background: #fdecec; color: #a33; }
.practice-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.exam-seo {
  padding: 8px 0 48px;
}
.exam-seo-title {
  font-family: Newsreader, Georgia, serif;
  margin-bottom: 12px;
}
.exam-seo-intro p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* --- Practice hubs (FoxExams-style deep interlinking) --- */
.page-hub .hub-hero {
  padding: 40px 0 20px;
  max-width: 720px;
}
.page-hub .hub-hero h1 {
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 8px 0 12px;
  color: var(--charcoal);
}
.page-hub .lead {
  color: var(--gray-600);
  line-height: 1.55;
  max-width: 36rem;
  margin: 0 0 12px;
}
.page-hub .exam-meta {
  color: var(--purple-700);
  font-weight: 600;
  margin: 0;
}
.hub-browse {
  padding: 8px 0 48px;
}
.hub-browse-title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.hub-theme-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.hub-theme-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.hub-theme-card:hover,
.hub-theme-card:focus-visible {
  border-color: var(--purple-500, #6b4ee6);
  transform: translateY(-1px);
}
.hub-theme-card strong {
  font-size: 1.02rem;
  color: var(--charcoal);
}
.hub-theme-count {
  font-size: 0.85rem;
  color: var(--gray-600);
}
.hub-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hub-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.hub-chip:hover,
.hub-chip:focus-visible {
  border-color: var(--purple-500, #6b4ee6);
  color: var(--purple-700);
}
.hub-pack-list,
.exam-index.hub-pack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hub-pack-list a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: var(--white);
}
.hub-pack-list a:hover,
.hub-pack-list a:focus-visible {
  border-color: var(--purple-500, #6b4ee6);
}
.hub-pack-sub {
  display: block;
  margin-top: 4px;
  color: var(--gray-600);
  font-size: 0.9rem;
}
.hub-empty {
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--purple-50, #f3efff);
  color: var(--gray-700);
  line-height: 1.5;
}
.hub-other-ui {
  padding-top: 0;
}

.exam-seo-how,
.exam-seo-faq,
.exam-seo-vocab {
  margin-top: 28px;
}
.exam-seo-how h3,
.exam-seo-faq h3,
.exam-seo-vocab h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}
.exam-seo-how ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--gray-700);
  line-height: 1.55;
}
.exam-seo-how li + li { margin-top: 8px; }
.exam-seo-themes {
  list-style: none;
  margin: 0;
  padding: 0;
}
.exam-seo-theme {
  cursor: default;
  pointer-events: none;
}
.exam-faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  padding: 4px 14px;
}
.exam-faq-item + .exam-faq-item { margin-top: 8px; }
.exam-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  list-style: none;
}
.exam-faq-item summary::-webkit-details-marker { display: none; }
.exam-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--purple-700);
}
.exam-faq-item[open] summary::after { content: "–"; }
.exam-faq-item p {
  margin: 0 0 14px;
  color: var(--gray-600);
  line-height: 1.55;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-hub .hub-search-panel {
  margin-top: 22px;
  max-width: 560px;
}
.page-hub .hub-search-lg { position: relative; display: block; }
.page-hub .hub-search-ico {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--purple-700, #6b4ee6);
  display: flex;
  pointer-events: none;
}
.page-hub .hub-search-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 16px 18px 16px 48px;
  min-height: 56px;
  font: inherit;
  font-size: 1.05rem;
  background: linear-gradient(180deg, #fff 0%, #f7f4ff 100%);
  color: inherit;
  box-shadow: 0 10px 30px rgba(47, 53, 66, 0.06);
}
.page-hub .hub-search-input:focus {
  outline: none;
  border-color: var(--purple-500, #6b4ee6);
  box-shadow: 0 0 0 4px rgba(107, 78, 230, 0.16), 0 12px 28px rgba(47, 53, 66, 0.08);
}
.page-hub .hub-search-hint,
.page-hub .hub-search-meta {
  margin: 10px 0 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}
.page-hub .hub-search-empty {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--purple-50, #f3efff);
  color: var(--gray-700);
  font-size: 0.95rem;
}

.hub-lang-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.hub-lang-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 72px;
}
.hub-lang-card:hover,
.hub-lang-card:focus-visible {
  border-color: var(--purple-500, #6b4ee6);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(47, 53, 66, 0.1);
}
.hub-lang-flag {
  flex: 0 0 auto;
  width: 28px;
  height: 21px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.hub-lang-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.hub-lang-name {
  font-size: 1.02rem;
  color: var(--charcoal);
  line-height: 1.25;
}
.hub-lang-count {
  font-size: 0.82rem;
  color: var(--gray-600);
}
.hub-lang-item.is-ready .hub-lang-count {
  color: var(--purple-700, #6b4ee6);
  font-weight: 600;
}
.hub-lang-cta {
  color: var(--purple-700, #6b4ee6);
  font-weight: 700;
  opacity: 0.55;
}
.hub-lang-card:hover .hub-lang-cta { opacity: 1; }
.hub-learn-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hub-learn-badge .hub-lang-flag {
  width: 22px;
  height: 16px;
}
