:root {
  --bg: #f6f2ea;
  --bg-soft: #f0e8dd;
  --surface: #ffffff;
  --surface-soft: #fbf9f5;
  --surface-muted: #efe6d9;
  --text: #1b1b1f;
  --text-muted: #5a5863;
  --line: #e2d8cb;
  --primary: #215c4b;
  --primary-strong: #174436;
  --accent: #f36a3d;
  --warning: #b45309;
  --success: #166534;
  --danger: #b91c1c;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-lg: 0 24px 60px rgba(23, 21, 16, 0.16);
  --shadow-md: 0 16px 36px rgba(23, 21, 16, 0.12);
  --title: 'Sora', 'Segoe UI', sans-serif;
  --body: 'Manrope', 'Segoe UI', sans-serif;
  --max-width: 1160px;
  --shadow-sm: 0 10px 24px rgba(23, 21, 16, 0.1);
  --surface-strong: #fffefb;
  --surface-glass: rgba(255, 255, 255, 0.7);
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(1100px 520px at -10% -10%, rgba(33, 92, 75, 0.08), transparent 60%),
    radial-gradient(900px 420px at 110% 5%, rgba(243, 106, 61, 0.1), transparent 60%),
    linear-gradient(180deg, #f8f3eb 0%, #f4efe6 100%);
}

.home {
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(11, 78, 85, 0.18), transparent 60%),
    radial-gradient(700px 420px at 0% 10%, rgba(255, 163, 102, 0.18), transparent 62%),
    linear-gradient(180deg, #f7f1ea 0%, #f1ece4 100%);
}

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

.site-wrap {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.tour-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 1200;
  display: none;
  pointer-events: none;
}

.tour-overlay.is-visible {
  display: block;
}

.tour-tooltip {
  position: absolute;
  max-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
}

.tour-tooltip h4 {
  margin: 0 0 6px;
  font-family: var(--title);
  font-size: 1rem;
}

.tour-tooltip p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.tour-actions {
  display: flex;
  gap: 8px;
}

.tour-highlight {
  outline: 3px solid rgba(243, 106, 61, 0.6);
  outline-offset: 4px;
  border-radius: 999px;
  position: relative;
  z-index: 1201;
}

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

.site-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(33, 92, 75, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 92, 75, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
}

.home .site-wrap::after {
  content: '';
  position: absolute;
  top: 6%;
  right: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.12), rgba(220, 38, 38, 0.1) 55%, transparent 70%);
  filter: blur(12px);
  opacity: 0.9;
  pointer-events: none;
}

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.container.narrow {
  width: min(980px, 92vw);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(226, 216, 203, 0.9);
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
}

.topbar::after {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(33, 92, 75, 0), rgba(33, 92, 75, 0.35), rgba(243, 106, 61, 0.35), rgba(33, 92, 75, 0));
  opacity: 0.6;
  pointer-events: none;
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(33, 92, 75, 0.25);
  background: linear-gradient(135deg, rgba(33, 92, 75, 0.1), rgba(243, 106, 61, 0.12));
  box-shadow: 0 8px 18px rgba(23, 21, 16, 0.08);
  white-space: nowrap;
}

.streak-pill-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: transparent url('icons/soulconceptflame.png') center/contain no-repeat;
  box-shadow: 0 3px 8px rgba(23, 21, 16, 0.15);
}

.streak-pill-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.streak-pill-value {
  color: var(--text);
  font-family: var(--title);
  font-size: 1rem;
  line-height: 1;
}

.stats-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.stats-btn {
  white-space: nowrap;
}

.stats-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(300px, 86vw);
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 241, 0.96));
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 8px;
  z-index: 120;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.stats-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.stats-panel-title {
  font-family: var(--title);
  font-size: 0.88rem;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px dashed rgba(33, 92, 75, 0.24);
  padding-bottom: 6px;
  margin-bottom: 2px;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stats-row strong {
  color: var(--text);
  font-family: var(--title);
  font-size: 0.92rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-block;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent url('icons/soulconceptflame.png') center/contain no-repeat;
  box-shadow: none;
}

.brand-name {
  font-family: var(--title);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface-glass);
  border: 1px solid rgba(226, 216, 203, 0.8);
  box-shadow: 0 6px 18px rgba(23, 21, 16, 0.08);
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
  background: rgba(33, 92, 75, 0.12);
}

.nav-cta {
  margin-left: 4px;
}

.nav-cta.btn-primary {
  background: linear-gradient(120deg, #f97316, #ef4444, #f59e0b);
  background-size: 200% 200%;
  animation: navCtaFlow 4.5s ease infinite;
  border-color: #c2410c;
  color: #fff;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}

.nav-cta.btn-primary:hover {
  background: linear-gradient(120deg, #fb923c, #f97316, #ef4444);
  border-color: #9a3412;
  filter: none;
  transform: translateY(-1px);
}

@keyframes navCtaFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.01em;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 10px 20px rgba(33, 92, 75, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(23, 21, 16, 0.08);
}

.coming-soon {
  position: relative;
  opacity: 0.6;
  cursor: default;
  border-style: dashed;
}

.coming-soon::after {
  content: 'Coming soon';
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.coming-soon:hover::after,
.coming-soon:focus-visible::after {
  opacity: 1;
}

details.dropdown {
  position: relative;
  display: inline-flex;
}

details.dropdown > summary {
  list-style: none;
  cursor: pointer;
}

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

.collapsible {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
}

.collapsible summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  list-style: none;
}

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

.collapsible p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  z-index: 20;
}

details.dropdown[open] .dropdown-menu,
details.dropdown:hover .dropdown-menu,
details.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.dropdown-item:hover {
  background: rgba(33, 92, 75, 0.12);
}


.dropdown-preview {
  display: none;
  margin-top: 6px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(33, 92, 75, 0.08);
  border: 1px dashed rgba(33, 92, 75, 0.25);
  font-size: 0.85rem;
  color: var(--text);
}

details.dropdown:hover .dropdown-preview,
details.dropdown[open] .dropdown-preview {
  display: block;
}

details.dropdown:hover .dropdown-menu,
details.dropdown:focus-within .dropdown-menu {
  display: block;
}

details.dropdown > summary:hover + .dropdown-menu {
  display: block;
}

.install-btn {
  display: inline-flex;
}

.install-hint {
  display: none;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 6px 10px;
}

.install-hint.is-visible {
  display: inline-flex;
  align-items: center;
}

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 84px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--title);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.section-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary);
}

.hero {
  padding: 104px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr;
  gap: 24px;
}

.home .hero-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 36px;
}

.hero-title {
  margin: 0;
  font-family: var(--title);
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.hero-copy p {
  color: var(--text-muted);
  max-width: 62ch;
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-jump-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jump-link {
  text-decoration: none;
  color: #1f4f42;
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid rgba(33, 92, 75, 0.25);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 7px 12px;
}

.jump-link:hover {
  background: rgba(33, 92, 75, 0.12);
}

.jump-link.is-primary {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 18px rgba(33, 92, 75, 0.22);
}

.jump-link.is-primary:hover {
  filter: brightness(1.05);
  background: linear-gradient(120deg, var(--primary), var(--accent));
}

.jump-link.is-soon {
  color: #6b6358;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.72);
  cursor: default;
  opacity: 0.92;
}

.quick-nav-section {
  padding-top: 38px;
}

.quick-nav-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.quick-nav-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.quick-nav-tag {
  margin: 0;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #215c4b;
  border: 1px solid rgba(33, 92, 75, 0.28);
  background: rgba(33, 92, 75, 0.1);
}

.quick-nav-card h3 {
  margin: 0;
  font-family: var(--title);
  font-size: 1.02rem;
}

.quick-nav-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.feature-map-section {
  padding-top: 16px;
}

.feature-map-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-map-card {
  border-radius: 14px;
  border: 1px solid rgba(33, 92, 75, 0.24);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(245, 239, 230, 0.88));
  padding: 14px;
  display: grid;
  gap: 8px;
}

.feature-map-card h3 {
  margin: 0;
  font-family: var(--title);
  font-size: 1rem;
}

.feature-map-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.feature-map-card a {
  text-decoration: none;
  font-weight: 800;
  color: #1f4f42;
  font-size: 0.87rem;
}

.grade10-spotlight {
  position: relative;
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: linear-gradient(130deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08), rgba(249, 115, 22, 0.08));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
  padding: 14px 12px 12px;
}

.grade10-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(120deg, rgba(59,130,246,0.7), rgba(16,185,129,0.7), rgba(249,115,22,0.7));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}

.grade10-floater {
  position: absolute;
  top: -10px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.grade10-spotlight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.grade10-spotlight-title {
  margin: 0;
  font-family: var(--title);
  font-size: 0.98rem;
  color: #0f172a;
}

.grade10-spotlight-copy {
  margin: 3px 0 0;
  font-size: 0.84rem;
  color: #475569;
}

.grade10-spotlight-btn {
  flex-shrink: 0;
}

.hero-visual {
  display: grid;
  gap: 16px;
  position: relative;
}

.hero-panel {
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(33, 92, 75, 0.2);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 34px rgba(23, 21, 16, 0.12);
}

.hero-panel-primary {
  background: linear-gradient(135deg, rgba(20, 72, 140, 0.12), rgba(220, 38, 38, 0.1));
  border-color: rgba(20, 72, 140, 0.2);
}

.hero-panel-glass {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(33, 92, 75, 0.2);
  backdrop-filter: blur(10px);
}

.hero-panel-outline {
  background: #fff;
  border-style: dashed;
}

.hero-panel h3 {
  margin: 6px 0 8px;
  font-family: var(--title);
  font-size: 1.12rem;
}

.hero-panel p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.hero-panel-eyebrow {
  margin: 0 0 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--primary);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(33, 92, 75, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
  color: #1b1b1f;
}

.hero-steps {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.hero-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(33, 92, 75, 0.12);
}

.hero-step span {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(33, 92, 75, 0.12);
  font-weight: 800;
  color: var(--primary-strong);
  font-size: 0.82rem;
}

.hero-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics strong {
  display: block;
  font-family: var(--title);
  font-size: 1.25rem;
  color: var(--primary-strong);
}

.hero-metrics span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.callout {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(33, 92, 75, 0.1), rgba(243, 106, 61, 0.12));
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.callout::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent 40%);
  pointer-events: none;
}

.switcher {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
}

.switcher-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.switcher-btn {
  border: 1px solid rgba(33, 92, 75, 0.25);
  background: #fff;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.switcher-btn.active {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
}

.switcher-panel {
  display: none;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(250, 247, 241, 0.85);
  margin-top: 12px;
}

.switcher-panel.active {
  display: block;
}

.preview-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: grid;
  gap: 10px;
}

.preview-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border: 1px solid rgba(33, 92, 75, 0.25);
  background: rgba(33, 92, 75, 0.08);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.tag-live {
  background: rgba(33, 92, 75, 0.15);
  color: var(--primary-strong);
}

.tag-planned {
  background: rgba(243, 106, 61, 0.15);
  color: #8c3b21;
}

.grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
  box-shadow: var(--shadow-md);
  padding: 22px;
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: 0.35;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(23, 21, 16, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card {
  padding-top: 28px;
}

.pricing-card .price {
  font-family: var(--title);
  font-size: 2rem;
  margin: 6px 0 12px;
  color: var(--primary-strong);
}

.pricing-card.featured {
  border-color: rgba(33, 92, 75, 0.4);
  box-shadow: 0 18px 44px rgba(33, 92, 75, 0.18);
}

.pricing-card.featured::after {
  opacity: 0.8;
}

.compare-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  padding: 18px;
}

.compare-table h3 {
  margin: 0 0 12px;
  font-family: var(--title);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.compare-cell {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  color: var(--text-muted);
}

.compare-cell:nth-child(4n) {
  border-right: 0;
}

.compare-cell.compare-head {
  background: rgba(33, 92, 75, 0.08);
  color: var(--text);
  font-weight: 800;
}

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

  .compare-cell {
    border-right: 0;
  }
}

.card h3,
.card h4 {
  margin: 0 0 10px;
  font-family: var(--title);
  letter-spacing: -0.01em;
}

.card p,
.card li {
  color: var(--text-muted);
  line-height: 1.6;
}

.stack {
  display: grid;
  gap: 12px;
}

.list-clean {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.strip {
  background: linear-gradient(140deg, rgba(33, 92, 75, 0.08), rgba(243, 106, 61, 0.08));
  position: relative;
}

.strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 240px at 20% 10%, rgba(33, 92, 75, 0.1), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.strip .section-title,
.strip .eyebrow,
.strip h3,
.strip h4 {
  color: var(--text);
}

.strip p,
.strip li {
  color: var(--text-muted);
}

.timeline {
  border-left: 2px solid rgba(33, 92, 75, 0.4);
  padding-left: 18px;
  display: grid;
  gap: 16px;
}

.timeline-item h4 {
  margin: 0 0 6px;
}

.logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.logo-item {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 10px 12px;
  font-weight: 700;
  color: #3d3b46;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  padding: 14px;
  cursor: pointer;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-content p {
  margin: 0;
  padding: 0 14px 14px;
}

.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.2fr 1fr;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.choice-btn {
  border: 1px solid rgba(33, 92, 75, 0.25);
  background: #fff;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.choice-btn.active {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.87rem;
  font-weight: 700;
  color: #3d3b46;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 10px;
  font: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.col-span-2 {
  grid-column: span 2;
}

.form-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.form-status {
  margin: 0;
  font-size: 0.92rem;
  min-height: 20px;
}

.form-status.ok {
  color: var(--success);
}

.form-status.err {
  color: var(--danger);
}

.footer {
  border-top: 1px solid var(--line);
  background: #fdf9f2;
  padding: 52px 0;
}

.footer .brand-mark {
  box-shadow: 0 10px 18px rgba(23, 21, 16, 0.1);
}

.footer-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.3fr 1fr 1fr;
}

.footer h4 {
  margin: 0 0 8px;
  font-family: var(--title);
}

.footer a {
  color: #1b1b1f;
  text-decoration: none;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.push-widget {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 60;
  width: min(320px, 86vw);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 16px;
  display: grid;
  gap: 8px;
}

.push-title {
  font-family: var(--title);
  font-size: 1rem;
}

.push-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.push-close {
  border: 1px solid var(--line);
  background: #fff;
  color: #1b1b1f;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.push-close:hover {
  background: #f2ebe1;
}

.push-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.push-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.push-actions .btn {
  flex: 1 1 136px;
}

.push-status {
  margin: 0;
  font-size: 0.86rem;
  min-height: 18px;
}

.push-status.ok {
  color: var(--success);
}

.push-status.err {
  color: var(--danger);
}

.kpi-inline {
  font-family: var(--title);
  color: var(--accent);
  font-size: 1.05rem;
  margin: 8px 0 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.48s ease, transform 0.48s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-banner {
  padding: 74px 0 34px;
}

.page-banner .eyebrow {
  margin-bottom: 12px;
}

.page-banner h1 {
  margin: 0;
  font-family: var(--title);
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 13ch;
}

.page-banner p {
  margin: 12px 0 0;
  max-width: 66ch;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.contact-hero {
  padding-bottom: 58px;
}

.contact-hero-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.contact-panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 216, 203, 0.9);
  background: rgba(255, 255, 255, 0.92);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.contact-panel-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill {
  border: 1px solid rgba(33, 92, 75, 0.35);
  background: rgba(33, 92, 75, 0.08);
  color: #1b1b1f;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--text-muted);
}

.roadmap {
  margin-top: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 216, 203, 0.7);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}

.roadmap-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.roadmap-btn {
  border: 1px solid rgba(33, 92, 75, 0.25);
  background: #fff;
  color: #1b1b1f;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.roadmap-btn.active {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 18px rgba(33, 92, 75, 0.22);
  transform: translateY(-1px);
}

.roadmap-panels {
  display: grid;
  gap: 10px;
}

.roadmap-panel {
  display: none;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 216, 203, 0.8);
  background: rgba(250, 247, 241, 0.92);
}

.roadmap-panel.active {
  display: block;
}

.compare-grid {
  position: relative;
}

.compare-grid::after {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(33, 92, 75, 0.35), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.compare-card {
  position: relative;
  padding-top: 44px;
}

.compare-card::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #f9e9df 38%, rgba(243, 106, 61, 0.9) 100%);
  box-shadow: 0 6px 12px rgba(243, 106, 61, 0.18);
}

@media (max-width: 1040px) {
  .grid-2,
  .contact-grid,
  .footer-grid,
  .contact-hero-grid {
    grid-template-columns: 1fr;
  }

  .compare-grid::after {
    display: none;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-nav-grid,
  .feature-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .nav-toggle {
    display: none;
  }

  .topbar-inner {
    min-height: 64px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .streak-pill {
    margin-left: auto;
    margin-right: 0;
    padding: 6px 10px;
    gap: 6px;
  }

  .stats-wrap {
    margin-left: 6px;
    margin-right: 6px;
  }

  .stats-btn {
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .nav-menu {
    position: static;
    order: 4;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    overflow-x: visible;
    white-space: normal;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 7px 8px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .nav-menu a,
  .install-btn,
  .install-hint,
  .nav-cta {
    margin: 0;
    flex: 0 0 auto;
    font-size: 0.84rem;
  }

  .nav-menu a,
  .install-btn,
  .nav-cta {
    padding: 8px 10px;
  }

  .install-hint {
    display: none !important;
  }

  .auth-open {
    max-width: none;
    width: 100%;
  }

  .hero {
    padding-top: 72px;
  }
}

@media (max-width: 680px) {
  .home .site-wrap::after {
    width: 220px;
    height: 220px;
    top: 18px;
    right: 14px;
    opacity: 0.25;
    filter: blur(6px);
    transform: none;
  }

  .grid-3,
  .form-grid,
  .logos {
    grid-template-columns: 1fr;
  }

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

  .quick-nav-grid,
  .feature-map-grid {
    grid-template-columns: 1fr;
  }

  .col-span-2 {
    grid-column: auto;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 56px 0;
  }

  .home .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .hero-copy p {
    font-size: 0.98rem;
  }

  .hero-jump-links {
    margin-top: 10px;
  }

  .jump-link {
    font-size: 0.82rem;
    padding: 7px 10px;
  }

  .grade10-spotlight-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .grade10-spotlight-btn {
    width: 100%;
  }

  .section-tight {
    padding: 36px 0;
  }

  .card {
    padding: 16px;
  }

  .callout {
    padding: 18px;
  }

  .topbar-inner {
    min-height: 64px;
    gap: 6px;
  }

  .streak-pill-label {
    display: none;
  }

  .stats-btn {
    padding: 8px 10px;
  }

  .stats-panel {
    right: -24px;
    width: min(260px, 88vw);
  }

  .btn {
    padding: 10px 14px;
    font-size: 0.92rem;
  }

  .nav-menu {
    gap: 5px;
    padding: 6px;
  }

  .nav-menu a,
  .install-btn,
  .nav-cta {
    padding: 7px 9px;
    font-size: 0.8rem;
  }

  .nav-cta {
    display: none;
  }

  .section-title {
    font-size: clamp(1.55rem, 5vw, 2rem);
  }

  .callout {
    box-shadow: var(--shadow-sm);
  }

  .switcher-panel {
    padding: 12px;
  }

  .page-banner {
    padding: 56px 0 26px;
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }
}
