/* Shared style system for woodlogos.net app sub-pages (iSEE Vocab, Happy Actions).
   Mirrors the design tokens used by the main React site (Tailwind config + Layout.tsx). */

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

:root {
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-600: #16a34a;
  --green-700: #15803d;
  --blue-50:   #eff6ff;
  --blue-100:  #dbeafe;
  --blue-600:  #2563eb;
  --purple-50: #faf5ff;
  --purple-100:#f3e8ff;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-300:  #d1d5db;
  --gray-500:  #6b7280;
  --gray-600:  #4b5563;
  --gray-700:  #374151;
  --gray-900:  #111827;
  --orange-100:#ffedd5;
  --orange-700:#c2410c;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.65;
}

a { color: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 32px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover { color: var(--green-600); background: var(--green-50); }
.nav-link.current { color: var(--green-600); background: var(--green-50); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--purple-50) 100%);
  padding: 64px 24px 72px;
  text-align: center;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-2xl);
  background: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin: 0 auto 28px;
  overflow: hidden;
}

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

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}

.hero-sub {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-badge {
  background: var(--green-100);
  color: var(--green-700);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 14px;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── APP HERO (full-bleed brand color, curved edge) ── */
.app-hero {
  position: relative;
  padding: 44px 24px 80px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.app-hero.brand-blue  { background: linear-gradient(160deg, #3b82f6, var(--blue-600)); }
.app-hero.brand-green { background: linear-gradient(160deg, #22c55e, var(--green-600)); }

.app-hero-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.app-hero-curve svg { width: 100%; height: 60px; display: block; }

.app-hero-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.app-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
  flex-shrink: 0;
}

.app-hero-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.app-hero h1 {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}

.app-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.9);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.app-hero-sub + .app-hero-sub { margin-top: 4px; }

.platform-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 44px;
  position: relative;
  z-index: 1;
}

.platform-item {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.platform-item svg { width: 30px; height: 30px; color: #fff; }
.platform-item span { font-size: 13px; font-weight: 600; color: #fff; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); }

.btn-secondary {
  background: #fff;
  color: var(--green-600);
  border-color: var(--green-600);
}
.btn-secondary:hover { background: var(--green-50); }

/* ── SECTIONS ── */
.section { padding: 40px 24px; }
.section-alt { background: var(--gray-50); }
.section-tight-top { padding-top: 20px; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 28px; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 8px;
}

.section-header h2, .section > .container > h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.section-header p { font-size: 17px; color: var(--gray-600); margin: 0; }

/* ── CARDS ── */
.card {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.card-hover { transition: transform .25s, box-shadow .25s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.icon-circle.blue   { background: var(--blue-100);   color: var(--blue-600); }
.icon-circle.green  { background: var(--green-100);  color: var(--green-700); }
.icon-circle.purple { background: var(--purple-100); color: #7c3aed; }
.icon-circle.gray   { background: var(--gray-100);   color: var(--gray-700); }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
}

.feature-card .icon-circle { margin-bottom: 18px; }

.feature-card strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feature-card p { font-size: 14px; color: var(--gray-600); margin: 0; }

/* Level grid */
.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.level-card {
  padding: 22px 16px;
  text-align: center;
}

.level-card strong { display: block; font-size: 20px; color: var(--green-700); margin-bottom: 4px; }
.level-card span { font-size: 13px; color: var(--gray-600); }

/* Body copy inside cards */
.prose p { font-size: 16px; color: var(--gray-600); margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose .zh { font-size: 14px; color: var(--gray-500); }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--green-600), #059669);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-2xl);
  padding: 56px 32px;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band .zh { color: rgba(255,255,255,.65); }
.cta-band .btn-primary { background: #fff; color: var(--green-700); }
.cta-band .btn-primary:hover { background: var(--green-50); }

/* ── DOWNLOAD ROWS ── */
.download-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-decoration: none;
  margin-bottom: 14px;
}

.download-row:last-of-type { margin-bottom: 0; }

.download-row .d-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-row .d-icon.apple  { background: #000; }
.download-row .d-icon.google { background: #34a853; }
.download-row .d-icon.mac    { background: var(--gray-700); }

.download-row .d-text strong { display: block; font-size: 16px; color: var(--gray-900); }
.download-row .d-text span { font-size: 13px; color: var(--gray-500); }
.download-row .d-arrow { margin-left: auto; color: var(--gray-300); font-size: 20px; }

.qr-box { display: flex; justify-content: center; margin-top: 24px; }

.qr-placeholder {
  width: 156px;
  height: 156px;
  border-radius: var(--radius-xl);
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  padding: 12px;
}

.placeholder-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  font-style: italic;
}

/* Steps */
.steps { counter-reset: step; }

.step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.step:last-child { border-bottom: none; }

.step .step-num {
  counter-increment: step;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step .step-num::before { content: counter(step); }
.step p { margin: 0; font-size: 15px; color: var(--gray-700); }
.step .zh { margin-top: 3px; font-size: 13px; color: var(--gray-500); }

/* Requirements */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.req-card { text-align: center; padding: 18px; }
.req-card strong { display: block; font-size: 15px; color: var(--gray-900); margin-bottom: 4px; }
.req-card span { font-size: 12px; color: var(--gray-600); }

/* ── FOOTER ── */
.site-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 48px 24px 32px;
}

.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-logo { height: 28px; width: auto; display: block; margin-bottom: 14px; }
.footer-col p { font-size: 14px; color: var(--gray-600); margin: 0; }
.footer-col h3 { font-size: 13px; font-weight: 700; color: var(--gray-900); margin: 0 0 14px; }
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--gray-600);
  text-decoration: none;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--green-600); }

.footer-bottom {
  max-width: 1120px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
}

/* ── SEO-ONLY (present in HTML for crawlers/link-equity, hidden from sighted users) ── */
.seo-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── WORD DETAIL PAGE (compact, single-viewport) ── */
.word-page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px;
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, var(--blue-50) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, var(--purple-50) 0%, transparent 60%),
    #fff;
}

.word-page-inner {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.word-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.word-crumb {
  font-size: 13px;
  color: var(--gray-500);
}

.word-crumb a { color: var(--gray-500); text-decoration: none; }
.word-crumb a:hover { color: var(--green-600); }

.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.lang-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.lang-pill:hover { background: var(--gray-200); }

.lang-pill.active {
  background: var(--blue-600);
  color: #fff;
}

.word-panel .word-hero {
  text-align: center;
  padding: 22px 20px 16px;
}

.word-hero h1 {
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  margin: 0;
}

.word-hero-audio-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.word-audio-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--blue-100);
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}

.word-audio-btn:hover { background: var(--blue-100); transform: scale(1.05); }

.word-phonetic {
  font-size: 17px;
  color: var(--gray-500);
  margin: 0;
}

.level-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.word-page-inner > .level-badge {
  position: absolute;
  top: 2px;
  right: 0;
}

.level-badge.basic  { background: var(--blue-100);   color: var(--blue-600); }
.level-badge.lower  { background: var(--green-100);  color: var(--green-700); }
.level-badge.middle { background: var(--purple-100); color: #7c3aed; }
.level-badge.upper  { background: var(--orange-100); color: var(--orange-700); }

/* ── 2-column word page layout: dictionary entry + practice | stats + reminder ── */
.word-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}

.stat-block {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 16px;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.stat-value { font-size: 20px; font-weight: 800; color: var(--gray-900); }
.stat-sub { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.stat-block .pt-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.word-main-col { min-width: 0; }

.word-side-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.word-side-col .practice-reminder {
  margin-top: 10px;
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
}

.word-side-col .download-chip {
  display: block;
  text-align: center;
}

@media (max-width: 860px) {
  .word-page-inner { max-width: 640px; }
  .word-layout { grid-template-columns: 1fr; }
}

/* Merged panel: definitions + memory aid + practice all in one card, divided by thin rules */
.word-panel {
  padding: 0;
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.word-panel::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-600), #7c3aed);
}

.wp-section {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-100);
}
.wp-section:first-child { border-top: none; }

.definition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.definition-card .dc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 5px;
}

/* Content rendered via CSS generated content (attr()) rather than a text node:
   a real browser (including Googlebot's renderer) displays it normally, but
   naive scrapers that only parse raw HTML/text nodes come up empty. */
.dc-text::before,
.ma-text::before {
  content: attr(data-text);
}

.definition-card .dc-text {
  font-size: 17px;
  color: var(--gray-900);
  line-height: 1.5;
}

.memory-aid-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--green-50);
}

.memory-aid-card .ma-icon { font-size: 20px; flex-shrink: 0; }
.memory-aid-card .ma-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 3px;
}
.memory-aid-card .ma-text { font-size: 15px; color: var(--gray-700); line-height: 1.5; }

.pw-label {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.practice-buttons {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.practice-buttons .btn { flex: 1; min-width: 110px; padding: 12px 16px; font-size: 15px; }

.btn-prev {
  background: #fff;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-prev:hover { background: var(--gray-100); }
.btn.disabled {
  background: var(--gray-100) !important;
  color: var(--gray-400) !important;
  border-color: var(--gray-200) !important;
  opacity: 1;
  pointer-events: none;
  box-shadow: none;
}

.btn-mastered {
  background: var(--green-600);
  color: #fff;
  flex: 1.3;
}
.btn-mastered:hover { background: var(--green-700); }
.btn-mastered.is-active {
  background: var(--green-700);
}
.btn-mastered.is-active::before { content: "✓ "; }

.btn-next {
  background: #fff;
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.btn-next:hover { background: var(--blue-50); }

.word-below {
  text-align: center;
  margin-top: 20px;
}

.progress-track {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}

.progress-track .pt-label {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 6px;
  text-align: left;
}

.progress-bar {
  height: 7px;
  border-radius: 999px;
  background: var(--gray-200);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--green-600);
  border-radius: 999px;
  transition: width .3s ease;
  width: 0%;
}

.practice-reminder {
  margin-top: 14px;
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
}

.download-chip-row { margin-top: 12px; }

.download-chip {
  display: inline-block;
  background: var(--green-600);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: background .15s, transform .15s;
}

.download-chip:hover { background: var(--green-700); transform: translateY(-1px); }

/* ── FULL-SCREEN BREAK OVERLAY (30-minute session cap) ── */
.break-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.break-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 40px 32px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.break-icon { font-size: 40px; margin-bottom: 12px; }

.break-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 12px;
}

.break-card p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0 0 4px;
  line-height: 1.5;
}

.break-card .zh { color: var(--gray-500); }

.break-countdown {
  margin-top: 20px;
  font-size: 32px;
  font-weight: 800;
  color: var(--blue-600);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

/* ── START LEARNING (language picker + modal) ── */
.lang-start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.lang-start-card {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.lang-start-flag { font-size: 34px; }
.lang-start-card strong { font-size: 15px; color: var(--gray-900); }

.start-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

/* `display: flex` above has the same specificity as the browser's default
   `[hidden] { display: none }` rule, and author styles win ties over the UA
   stylesheet — so without this, the `hidden` attribute is silently ignored
   and the modal shows immediately on page load. */
.start-modal-overlay[hidden] { display: none; }

.start-modal {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 32px 28px;
  max-width: 360px;
  width: 100%;
  position: relative;
}

.start-modal h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 20px;
}

.start-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--gray-400);
  cursor: pointer;
}
.start-modal-close:hover { color: var(--gray-700); }

.start-field {
  display: block;
  margin-bottom: 16px;
}

.start-field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.start-field select,
.start-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-900);
}

.start-submit { width: 100%; justify-content: center; margin-top: 4px; }

.start-modal-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 48px 20px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .level-grid { grid-template-columns: 1fr 1fr; }
  .req-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 20px 60px; }
  .definition-grid { grid-template-columns: 1fr; }
}
