/* ══════════════════════════════════════════════════════════════════════════════
   NU AGE LEARNING SYSTEMS — STYLESHEET
   Clean, Professional, Stakeholder-Centric SaaS Design
   ══════════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Brand Green Palette */
  --primary: #156637;
  --primary-dark: #0e4825;
  --primary-light: #23864c;
  --primary-tint: #edf7f0;
  --primary-subtle: #f4fbf6;

  /* Accent Amber Palette */
  --accent: #d97706;
  --accent-dark: #b45309;
  --accent-light: #fef3c7;
  --accent-subtle: #fffbeb;

  /* Slate Neutrals */
  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-dark: #0b1f13;

  --border-light: #e2e8f0;
  --border-dark: #cbd5e1;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 30px -10px rgba(15, 23, 42, 0.12);

  --max-width: 1200px;
}

/* ─── BASE RESET ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

a:hover {
  color: var(--primary-dark);
}

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

/* ─── LAYOUT UTILITIES ─── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-wrap {
  padding: 80px 0;
  position: relative;
}

.section-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-mint {
  background-color: var(--primary-subtle);
  border-top: 1px solid #dceede;
  border-bottom: 1px solid #dceede;
}

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

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background-color: var(--primary-tint);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  border: 1px solid #c9e8d3;
}

.section-kicker.amber {
  color: var(--accent-dark);
  background-color: var(--accent-light);
  border-color: #fde68a;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(21, 102, 55, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(21, 102, 55, 0.22);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-heading) !important;
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-dark);
  color: var(--primary) !important;
}

.btn-amber {
  background-color: var(--accent);
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.15);
}

.btn-amber:hover {
  background-color: var(--accent-dark);
  transform: translateY(-1px);
}

/* ─── TOP BAR & HEADER ─── */
.topbar {
  background-color: #0b1f13;
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-tag {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-right: 8px;
}

.topbar-links {
  display: flex;
  gap: 20px;
}

.topbar-links a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.topbar-links a:hover {
  color: #ffffff;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-name span {
  color: var(--primary);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  background: #ffffff;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--bg-subtle);
}

/* ─── HERO SECTION ─── */
.hero-wrap {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, #f4fbf6 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  line-height: 1.16;
  margin-bottom: 18px;
}

.hero-title em {
  font-style: normal;
  color: var(--primary);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-heading);
}

.hero-proof-item svg {
  color: var(--primary);
}

.app-frame {
  background-color: #0b140f;
  border: 1px solid #233527;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.app-frame-head {
  background-color: #122118;
  border-bottom: 1px solid #1f3325;
  padding: 10px 14px;
  display: flex;
  align-items: center;
}

.app-frame-dots {
  display: flex;
  gap: 6px;
}

.app-frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.app-frame-title {
  font-size: 0.74rem;
  color: #94a3b8;
  font-family: monospace;
}

/* ─── STAKEHOLDER SECTIONS ─── */
.stakeholder-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.stakeholder-feature-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
  transition: all 0.2s ease;
}

.stakeholder-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-box.amber {
  background-color: var(--accent-light);
  color: var(--accent-dark);
}

.feature-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.feature-card-content p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── HIGHLIGHT BOX / SPOTLIGHT ─── */
.spotlight-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
}

.spotlight-box.amber-glow {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
}

.spotlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 22px 0 28px;
}

.spotlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  line-height: 1.5;
}

.spotlight-list svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── HOW OFFLINE WORKS ─── */
.offline-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.offline-flow-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.offline-flow-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-tint);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 1px solid #c9e8d3;
}

.offline-flow-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.offline-flow-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── DOWNLOAD GRID ─── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.download-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.download-card.highlight {
  border-color: #b7dfbc;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf6 100%);
}

.download-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.download-card h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.download-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: monospace;
  margin-bottom: 14px;
}

.download-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 22px;
}

.download-action {
  margin-top: auto;
}

/* ─── PRICING GRID ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.pricing-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: var(--radius-pill);
}

.pricing-role {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.pricing-card h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 40px;
}

.pricing-amount {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-amount span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.pricing-divider {
  height: 1px;
  background-color: var(--border-light);
  margin-bottom: 22px;
}

.pricing-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pricing-perks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.pricing-perks svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.pricing-action {
  margin-top: auto;
}

/* ─── FAQ ACCORDION ─── */
.faq-box {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-row {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-row.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}

.faq-btn svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-row.active .faq-btn svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-content {
  display: none;
  padding: 0 22px 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-row.active .faq-content {
  display: block;
}

/* ─── FOUNDER SPOTLIGHT ─── */
.founder-wrap {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.founder-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-tint);
}

.founder-info h3 {
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.founder-lead {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}

.founder-text {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.founder-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.founder-link-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-heading);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.founder-link-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ─── PRE-FOOTER CTA ─── */
.cta-banner {
  background: linear-gradient(135deg, #092615 0%, #156637 100%);
  color: #ffffff;
  padding: 64px 0;
  text-align: center;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: 14px;
}

.cta-banner p {
  color: #d1fae5;
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.cta-banner-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── FOOTER ─── */
.site-footer {
  background-color: #07130c;
  color: #94a3b8;
  padding: 64px 0 0;
  font-size: 0.86rem;
}

.site-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand h4 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: #ffffff;
}

.site-footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #64748b;
}

.footer-links a:hover {
  color: #94a3b8;
}

/* ─── MODAL DIALOG ─── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.modal-backdrop.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

/* ─── INSTITUTION GRID ─── */
.institution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.institution-grid .stakeholder-feature-card {
  flex-direction: column;
}

/* ─── TRACTION STATS STRIP ─── */
.stats-strip {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 12px 16px;
  border-right: 1px solid var(--border-light);
}

.stat-card:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ─── GALLERY SHOWCASE ─── */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.gallery-filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.gallery-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.gallery-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(21, 102, 55, 0.2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.gallery-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.gallery-card .app-frame {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border-light);
}

.gallery-media {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-color: #0b140f;
}

.gallery-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
  display: block;
}

.gallery-card:hover .gallery-media img {
  transform: scale(1.02);
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.gallery-card:hover .gallery-zoom-hint {
  opacity: 1;
}

.gallery-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.gallery-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.gallery-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ─── LIGHTBOX MODAL ─── */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 20, 14, 0.92);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-wrap {
  max-width: 1050px;
  width: 100%;
  position: relative;
  text-align: center;
}

.lightbox-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0b140f;
}

.lightbox-frame img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.lightbox-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 14px;
}

.lightbox-desc {
  color: #94a3b8;
  font-size: 0.88rem;
  margin-top: 4px;
}

.lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-signin-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-heading);
  padding: 8px 12px;
}

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-grid,
  .spotlight-box {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stakeholder-feature-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .stat-card:nth-child(2) {
    border-right: none;
  }

  .download-grid,
  .pricing-grid,
  .offline-flow-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .founder-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder-img {
    margin: 0 auto;
  }

  .founder-links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-nav-inner {
    height: 62px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .nav-signin-link {
    display: none;
  }

  .nav-cta-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .topbar {
    text-align: center;
    font-size: 0.74rem;
    padding: 6px 0;
  }

  .topbar-inner {
    justify-content: center;
  }

  .topbar-tag {
    font-size: 0.65rem;
    padding: 1px 6px;
  }

  .topbar-links {
    display: none;
  }

  .section-wrap {
    padding: 44px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-desc {
    font-size: 0.95rem;
  }

  .hero-wrap {
    padding: 36px 0 40px;
  }

  .hero-title {
    font-size: clamp(1.65rem, 6.5vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .hero-lead {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 22px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-cta .btn {
    width: 100%;
    padding: 12px 20px;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
  }

  .hero-proof-item {
    font-size: 0.78rem;
  }

  .stats-strip {
    padding: 20px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    border-right: none;
    border-bottom: none;
    padding: 12px 8px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
  }

  .stat-number {
    font-size: 1.7rem;
  }

  .stat-label {
    font-size: 0.74rem;
  }

  .stakeholder-feature-card {
    padding: 20px 18px;
    gap: 14px;
    flex-direction: column;
  }

  .feature-icon-box {
    width: 42px;
    height: 42px;
  }

  .feature-card-content h3 {
    font-size: 1.15rem;
  }

  .feature-card-content p {
    font-size: 0.88rem;
  }

  .spotlight-box {
    padding: 22px 18px;
    gap: 24px;
  }

  .spotlight-box h3 {
    font-size: 1.3rem !important;
  }

  .spotlight-list {
    margin: 16px 0 20px;
    gap: 10px;
  }

  .spotlight-list li {
    font-size: 0.86rem;
  }

  .offline-flow-card {
    padding: 22px 18px;
  }

  .gallery-filter {
    gap: 8px;
    margin-bottom: 24px;
  }

  .gallery-filter-btn {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .gallery-media img {
    height: 190px;
  }

  .gallery-body {
    padding: 18px 16px;
  }

  .gallery-body h3 {
    font-size: 1.15rem;
  }

  .gallery-body p {
    font-size: 0.86rem;
  }

  .lightbox-backdrop {
    padding: 12px;
  }

  .lightbox-close-btn {
    top: -38px;
    font-size: 1.3rem;
  }

  .lightbox-frame img {
    max-height: 60vh;
  }

  .pricing-card {
    padding: 24px 18px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-amount {
    font-size: 2rem;
  }

  .faq-btn {
    padding: 16px 16px;
    font-size: 0.92rem;
  }

  .faq-content {
    padding: 0 16px 16px;
    font-size: 0.86rem;
  }

  .founder-wrap {
    padding: 28px 18px;
    gap: 20px;
  }

  .founder-img {
    width: 110px;
    height: 110px;
  }

  .founder-info h3 {
    font-size: 1.25rem;
  }

  .founder-lead {
    font-size: 0.82rem;
  }

  .founder-text {
    font-size: 0.88rem;
  }

  .cta-banner {
    padding: 48px 16px;
  }

  .cta-banner h2 {
    font-size: 1.55rem;
  }

  .cta-banner p {
    font-size: 0.92rem;
    margin-bottom: 24px;
  }

  .cta-banner-buttons .btn {
    width: 100%;
  }

  .site-footer {
    padding: 44px 0 0;
  }

  .site-footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }

  .site-footer-bottom {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .modal-content {
    padding: 24px 18px;
  }
}

@media (max-width: 380px) {
  .nav-cta-btn span {
    display: none;
  }

  .nav-cta-btn {
    padding: 8px 10px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

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


/* ── REALISTIC MACBOOK / DESKTOP APP WINDOW FRAME ───────────────────────── */
.app-window-frame {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-dark);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-window-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22);
}

.app-window-header {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-window-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.app-window-dot.close {
  background-color: #ef4444;
}

.app-window-dot.minimize {
  background-color: #f59e0b;
}

.app-window-dot.maximize {
  background-color: #10b981;
}

.app-window-title {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.app-window-status {
  font-size: 0.68rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 8px;
  border-radius: 4px;
}

.app-window-body {
  background-color: #0b1f13;
  line-height: 0;
}

.app-window-body img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── ALTERNATING PILLAR ROWS (Clean, Sleek, Mobile-First) ──────────────── */
.pillar-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.pillar-row:last-child {
  margin-bottom: 0;
}

.pillar-row.reversed {
  direction: rtl;
}

.pillar-row.reversed>* {
  direction: ltr;
}

.pillar-content h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 12px;
  line-height: 1.25;
}

.pillar-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.pillar-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0;
}

.pillar-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
}

.pillar-checklist li svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.pillar-media {
  position: relative;
}

/* ── FADE UP SCROLL ANIMATIONS ─────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO PROOF BADGE (Sleek, Uncluttered) ─────────────────────────────── */
.hero-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-body);
}

.hero-proof-badge .badge-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 0.7rem;
}

@media (max-width: 900px) {
  .pillar-row {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 48px;
  }

  .pillar-row.reversed {
    direction: ltr;
  }
}


/* ── DELIBERATELY SPARE TEXT FEATURE BLOCKS (For Tutors & Institutions) ── */
.spare-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.spare-feature-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: 0 4px 18px -6px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.spare-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.09);
}

.spare-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  width: fit-content;
}

.spare-feature-card h3 {
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  line-height: 1.35;
}

.spare-feature-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.spare-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.spare-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.89rem;
  color: var(--text-body);
  line-height: 1.5;
}

.spare-checklist li svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

@media (max-width: 820px) {
  .spare-feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .spare-feature-card {
    padding: 26px 20px;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   DOWNLOADS SECTION + DOWNLOAD MODAL
   ══════════════════════════════════════════════════════════════════════════ */

.dl-section {
  overflow: hidden;
}

.dl-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 320px at 12% 0%, rgba(35, 134, 76, 0.10), transparent 70%),
    radial-gradient(520px 300px at 92% 100%, rgba(217, 119, 6, 0.08), transparent 70%);
  pointer-events: none;
}

.dl-section>.container {
  position: relative;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin: 0 auto;
  gap: 24px;
  align-items: stretch;
  padding-top: 12px;
}

.dl-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.dl-card.is-recommended {
  border: 2px solid var(--primary);
  padding: 29px 25px 25px;
  box-shadow: 0 18px 40px -16px rgba(21, 102, 55, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf6 100%);
}

.dl-rec-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(21, 102, 55, 0.25);
}

.dl-card.is-recommended .dl-rec-badge {
  display: inline-flex;
}

.dl-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  box-shadow: 0 8px 18px -6px rgba(21, 102, 55, 0.45);
}

.dl-icon.dark {
  background: linear-gradient(135deg, #1b3a28 0%, #0b1f13 100%);
  box-shadow: 0 8px 18px -6px rgba(11, 31, 19, 0.5);
}

.dl-icon.amber {
  background: linear-gradient(135deg, #f59e0b 0%, var(--accent-dark) 100%);
  box-shadow: 0 8px 18px -6px rgba(217, 119, 6, 0.45);
}

.dl-card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.dl-card>p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.dl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.dl-chip {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-body);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.dl-action {
  margin-top: auto;
}

.dl-btn {
  width: 100%;
  padding: 14px 22px;
  font-size: 0.96rem;
}

.dl-btn svg {
  transition: transform 0.2s ease;
}

.dl-btn:hover svg {
  transform: translateY(2px);
}

.dl-card .dl-note {
  display: block;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-faint);
  margin-top: 10px;
}

.dl-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 26px auto 0;
  padding: 8px 16px;
  font-size: 0.86rem;
  color: var(--accent-dark);
  background: var(--accent-subtle);
  border: 1px solid #fde68a;
  border-radius: var(--radius-pill);
  text-align: center;
}

.dl-hint.show {
  display: flex;
}

/* Install guide */
.dl-guide {
  max-width: 860px;
  margin: 44px auto 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.dl-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.dl-guide-head h3 {
  font-size: 1.2rem;
}

.dl-tabs {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.dl-tab {
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}

.dl-tab:hover {
  color: var(--primary);
}

.dl-tab.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(21, 102, 55, 0.25);
}

.dl-panel {
  display: none;
}

.dl-panel.active {
  display: block;
  animation: dlFade 0.3s ease;
}

@keyframes dlFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.dl-steps {
  list-style: none;
  counter-reset: dlstep;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dl-steps li {
  counter-increment: dlstep;
  position: relative;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 16px 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-body);
}

.dl-steps li::before {
  content: counter(dlstep);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--primary-tint);
  border: 1px solid #c9e8d3;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
}

.dl-steps li strong {
  color: var(--text-heading);
  display: block;
  margin-bottom: 2px;
}

.dl-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 32px;
}

.dl-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-body);
}

.dl-trust svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ── DOWNLOAD MODAL (polished) ── */
body.modal-lock {
  overflow: hidden;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px 28px 24px;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.35);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  font-family: inherit;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close:hover {
  color: var(--text-heading);
  border-color: var(--border-dark);
}

.modal-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid #c9e8d3;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin: 0 40px 6px 0;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-option-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-heading);
  transition: all 0.18s ease;
}

.modal-option-btn:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
  transform: translateX(2px);
  color: var(--text-heading);
}

.modal-option-btn.is-recommended {
  border: 2px solid var(--primary);
  background: var(--primary-subtle);
  padding: 13px 15px;
}

.modal-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
}

.modal-option-icon.dark {
  background: linear-gradient(135deg, #1b3a28, #0b1f13);
}

.modal-option-icon.amber {
  background: linear-gradient(135deg, #f59e0b, var(--accent-dark));
}

.modal-option-text {
  flex: 1;
  min-width: 0;
}

.modal-option-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.modal-option-text small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.modal-option-arrow {
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.18s ease;
}

.modal-option-btn:hover .modal-option-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.modal-rec-tag {
  display: none;
  position: absolute;
  top: -9px;
  right: 14px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--primary);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

.modal-option-btn.is-recommended .modal-rec-tag {
  display: block;
}

.modal-foot {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 16px;
}

/* "Download started" view */
.modal-started {
  text-align: center;
  padding-top: 6px;
}

.modal-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
}

.modal-check circle {
  fill: var(--primary-tint);
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  animation: dlDraw 0.6s ease forwards;
}

.modal-check path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: dlDraw 0.4s ease 0.45s forwards;
}

@keyframes dlDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.modal-started .modal-title {
  margin: 0 0 6px;
}

.modal-started-steps {
  list-style: none;
  counter-reset: ms;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.modal-started-steps li {
  counter-increment: ms;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.modal-started-steps li::before {
  content: counter(ms);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-started-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-retry {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-retry a {
  font-weight: 700;
}

@media (max-width: 900px) {
  .dl-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 520px;
    margin: 0 auto;
  }

  .dl-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dl-card {
    padding: 24px 20px 22px;
  }

  .dl-card.is-recommended {
    padding: 23px 19px 21px;
  }

  .dl-guide {
    padding: 22px 16px;
    margin-top: 32px;
  }

  .dl-guide-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .dl-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  /* Modal becomes a bottom sheet on phones */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 26px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
  }

  .modal-title {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .dl-card,
  .modal-card,
  .modal-option-btn,
  .dl-btn svg {
    transition: none;
  }

  .dl-panel.active,
  .modal-check circle,
  .modal-check path {
    animation: none;
    stroke-dashoffset: 0;
  }
}