:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #0ea5e9;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 20px 40px rgb(15 23 42 / 0.06);
  --radius: 1rem;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

#main-content {
  flex: 1;
}

.container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2rem, 42rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  cursor: pointer;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--muted);
  padding: 0.5rem 0.85rem;
  border-radius: 0.65rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
  background: #eef2ff;
}

.nav-cta {
  margin-left: 0.35rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  padding: 0.75rem 1.15rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(circle at top left, rgb(99 102 241 / 0.16), transparent 42%),
    radial-gradient(circle at bottom right, rgb(14 165 233 / 0.12), transparent 38%),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lead {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

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

.hero-stat strong {
  font-size: 1.35rem;
}

.hero-progress {
  height: 0.5rem;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0 1.25rem;
}

.hero-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: inherit;
}

.hero-subjects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.hero-subjects li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: #334155;
}

.hero-subjects i {
  width: 1.25rem;
  color: var(--primary);
  text-align: center;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-head h2,
.page-simple h1,
.download h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}

.section-head p,
.page-intro p,
.download p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-weight: 500;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: #eef2ff;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.925rem;
  font-weight: 500;
}

.features-cta {
  text-align: center;
  margin: 2.5rem 0 0;
}

.download {
  padding: 5rem 0;
  background:
    radial-gradient(circle at 20% 50%, rgb(99 102 241 / 0.12), transparent 45%),
    radial-gradient(circle at 80% 50%, rgb(14 165 233 / 0.1), transparent 40%),
    linear-gradient(180deg, #fff 0%, #eef2ff 100%);
  border-top: 1px solid var(--border);
}

.download-card {
  display: grid;
  gap: 2.25rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: 0 24px 48px rgb(79 70 229 / 0.08);
}

.download-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.download h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  line-height: 1.12;
  max-width: 18ch;
}

.download-lead {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.6;
}

.download-hint {
  margin: 0.85rem 0 0;
  color: #94a3b8;
  font-size: 0.925rem;
  font-weight: 600;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.download .store-links {
  gap: 1rem;
}

.download .store-link {
  min-width: 13.5rem;
  padding: 0.95rem 1.25rem;
  border-radius: 1rem;
  border-color: #dbeafe;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.download .store-link:hover {
  border-color: #a5b4fc;
  box-shadow: 0 12px 28px rgb(79 70 229 / 0.12);
  transform: translateY(-2px);
}

.download .store-icon {
  width: 2.15rem;
  height: 2.15rem;
}

.download .store-label small {
  font-size: 0.72rem;
}

.download .store-label strong {
  font-size: 1.08rem;
}

.download-web-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.download-web-link span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 700;
}

.download-web-link:hover span {
  text-decoration: underline;
}

@media (min-width: 900px) {
  .download-card {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .download-actions {
    align-items: flex-start;
  }
}

/* Store links */
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 11rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.store-link:hover {
  border-color: #c7d2fe;
  box-shadow: 0 8px 20px rgb(79 70 229 / 0.08);
}

.store-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.store-label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-label small {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
}

.store-label strong {
  font-size: 0.95rem;
}

/* Simple / legal pages */
.page-simple {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.legal-header {
  margin-bottom: 2rem;
}

.legal-meta {
  margin: 0.5rem 0 0;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
}

.legal-intro {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.65;
}

.legal-intro a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.legal-intro a:hover {
  text-decoration: underline;
}

.legal-content {
  display: grid;
  gap: 2rem;
}

.legal-content section {
  padding-top: 0.25rem;
}

.legal-content h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.legal-content h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  color: #334155;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.65;
}

.legal-content p {
  margin: 0 0 0.85rem;
}

.legal-content ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.legal-content li + li {
  margin-top: 0.35rem;
}

.legal-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-content strong {
  color: #334155;
  font-weight: 700;
}

.muted {
  color: var(--muted);
  font-weight: 500;
}

.page-intro {
  margin-bottom: 1.5rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.field em {
  font-style: normal;
  font-weight: 500;
  color: #94a3b8;
}

.field input,
.field textarea {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-weight: 500;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgb(99 102 241 / 0.35);
  border-color: #818cf8;
}

.form-feedback {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.form-feedback.is-success {
  background: #ecfdf5;
  color: #047857;
}

.form-feedback.is-error {
  background: #fef2f2;
  color: #b91c1c;
}

.recaptcha-note {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.4;
  text-align: center;
}

.recaptcha-note a {
  color: var(--muted);
}

.direct-section {
  margin-top: 1.5rem;
  padding-top: 0.25rem;
}

.direct-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.95rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.direct-divider::before,
.direct-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.direct-contact {
  display: grid;
  gap: 0.65rem;
}

.contact-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #f8fafc;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.contact-chip:hover {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.contact-chip i {
  color: var(--primary);
  font-size: 1.15rem;
}

.contact-chip span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-chip small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.contact-chip strong {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
}

.footer-brand p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links strong {
  margin-bottom: 0.25rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
}

/* Responsive */
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-inner {
    position: relative;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}
