/* ═══════════════════════════════════════════════════════════════════════
   NOTIO LANDING — Design System
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --bg: #f6f1e8;
  --bg-soft: #fcfaf6;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --surface-tint: #eef5f0;
  --surface-amber: #fff0dc;
  --line: rgba(27, 45, 39, 0.1);
  --text: #1b2d27;
  --muted: #64736b;
  --primary: #204937;
  --primary-strong: #17362a;
  --accent: #e3a04f;
  --accent-deep: #b76f1c;
  --shadow: 0 22px 60px rgba(21, 39, 31, 0.12);
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius-card: 28px;
  --radius-lg: 34px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at top left, rgba(227, 160, 79, 0.2), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(45, 106, 79, 0.17), transparent 24%),
    linear-gradient(180deg, #fbf7f1 0%, #f4efe6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(32, 73, 55, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 73, 55, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
}

/* ─── Layout ─────────────────────────────────────────────────────────── */
main, .site-footer {
  width: min(1360px, calc(100vw - 40px));
  margin: 0 auto;
}

main { padding-bottom: 0; }

/* ─── Typography ─────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.0; max-width: 12ch; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; }

p { margin: 0; }

/* ─── Nav ─────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 18px;
  z-index: 100;
  width: min(1360px, calc(100vw - 40px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  background: rgba(255, 252, 247, 0.82);
  border: 1px solid rgba(27, 45, 39, 0.08);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 30px rgba(22, 38, 30, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark { display: block; width: 38px; height: 38px; }
.hero-mark   { display: block; width: 54px; height: 54px; }

.brand-word {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-brand-name {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms;
}

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

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

/* ─── Buttons ────────────────────────────────────────────────────────── */
.ghost-button, .solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(27, 45, 39, 0.08);
}

.solid-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  box-shadow: 0 14px 28px rgba(23, 54, 42, 0.18);
  border: none;
  cursor: pointer;
}

.ghost-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,38,30,.08); }
.solid-button:hover  { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(23,54,42,.24); }

.large { min-height: 54px; padding: 0 24px; font-size: 1rem; }
.full-width { width: 100%; }

/* ─── Pills / Eyebrows ───────────────────────────────────────────────── */
.eyebrow, .stage-kicker, .role-label, .module-index {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(27, 45, 39, 0.08);
}

/* ─── Hero Full ──────────────────────────────────────────────────────── */
.hero-full {
  position: relative;
  width: min(1360px, calc(100vw - 40px));
  margin: 20px auto 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: linear-gradient(160deg, #0f2a1e 0%, #1a3d2b 50%, #204937 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 640px;
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.orb-1 { width: 500px; height: 500px; background: #2d6a4f; top: -100px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: #e3a04f; bottom: -80px; right: 30%; opacity: 0.2; }
.orb-3 { width: 300px; height: 300px; background: #52b788; top: 30%; right: -50px; opacity: 0.25; }

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 48px 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  width: fit-content;
  color: rgba(255,255,255,.9);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-badge-logo {
  width: 24px;
  height: 24px;
  display: block;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero-title-accent {
  color: #74c69d;
}

.hero-subtitle {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 46ch;
}

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

.hero-full .solid-button {
  background: linear-gradient(135deg, #52b788, #2d6a4f);
  box-shadow: 0 14px 28px rgba(82,183,136,.3);
}

.hero-full .ghost-button {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-trust-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-trust-logos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trust-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
}

/* ─── Hero Slider ────────────────────────────────────────────────────── */
.hero-slider-wrap {
  position: relative;
  z-index: 1;
  padding: 40px 48px 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.slider-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.slider-tab {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.65);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms ease;
  font-family: var(--body);
}

.slider-tab.active,
.slider-tab:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}

.slider-viewport {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 380px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 350ms ease, transform 350ms ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.slide-card {
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.slide-card--dark  { background: linear-gradient(160deg, #163327, #204937); border: 1px solid rgba(255,255,255,.08); }
.slide-card--light { background: #fff; border: 1px solid rgba(27,45,39,.08); }
.slide-card--amber { background: linear-gradient(160deg, #fff8ed, #fff0d6); border: 1px solid rgba(227,160,79,.2); }

.slide-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.slide-card--light .slide-topbar,
.slide-card--amber .slide-topbar { border-bottom-color: rgba(27,45,39,.06); }

.slide-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}

.slide-card--light .slide-dot,
.slide-card--amber .slide-dot { background: rgba(27,45,39,.15); }

.slide-title-bar {
  margin-left: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
}

.slide-card--light .slide-title-bar,
.slide-card--amber .slide-title-bar { color: var(--muted); }

.slide-body { padding: 20px; flex: 1; }

/* Slide 0 — Galeri */
.slide-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 100px 80px;
  gap: 8px;
  margin-bottom: 14px;
}

.photo-thumb {
  border-radius: 10px;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255,255,255,.08);
  display: block;
}

.photo-thumb--lg  { grid-row: span 2; }
.photo-thumb--wide { grid-column: span 2; }

.slide-meta { display: flex; align-items: center; gap: 10px; }

.slide-avatar-row { display: flex; }

.s-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #52b788, #2d6a4f);
  border: 2px solid rgba(22,51,39,.8);
  margin-left: -8px;
  flex-shrink: 0;
}

.s-avatar:first-child { margin-left: 0; }
.s-avatar--2 { background: linear-gradient(135deg, #e3a04f, #b76f1c); }
.s-avatar--3 { background: linear-gradient(135deg, #52a0b7, #1a6080); }
.s-avatar--parent { background: linear-gradient(135deg, #52a0b7, #1a6080); width: 32px; height: 32px; flex-shrink: 0; }
.s-avatar--big { width: 44px; height: 44px; background: linear-gradient(135deg, #52b788, #2d6a4f); flex-shrink: 0; }

.slide-caption { font-size: 0.78rem; color: rgba(255,255,255,.6); font-weight: 600; }

/* Slide 1 — Mesajlar */
.msg-list { display: flex; flex-direction: column; gap: 10px; }

.msg-row { display: flex; align-items: flex-end; gap: 8px; }
.msg-row--out { flex-direction: row-reverse; }

.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(27,45,39,.07);
  font-size: 0.88rem;
  color: var(--text);
  max-width: 75%;
  line-height: 1.5;
}

.msg-bubble--out {
  background: linear-gradient(135deg, #204937, #2d6a4f);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}

.msg-time { font-size: 0.7rem; color: var(--muted); flex-shrink: 0; }

.msg-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(27,45,39,.06);
  border-radius: 16px;
  width: fit-content;
}

.msg-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s infinite;
}

.msg-typing span:nth-child(2) { animation-delay: .2s; }
.msg-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Slide 2 — Formlar */
.form-preview { display: flex; flex-direction: column; gap: 12px; }

.form-preview-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.form-field-mock { display: flex; flex-direction: column; gap: 5px; }

.form-label-mock {
  height: 8px; width: 80px; border-radius: 4px;
  background: rgba(27,45,39,.15);
}

.form-input-mock {
  height: 36px; border-radius: 8px;
  border: 1px solid rgba(27,45,39,.12);
  background: rgba(27,45,39,.03);
}

.form-input-mock--filled {
  background: rgba(32,73,55,.05);
  border-color: rgba(32,73,55,.2);
}

.form-progress-bar {
  height: 6px; border-radius: 3px;
  background: rgba(27,45,39,.1);
  overflow: hidden;
}

.form-progress-fill {
  height: 100%; width: 80%;
  background: linear-gradient(90deg, #52b788, #2d6a4f);
  border-radius: 3px;
}

.form-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--text);
}

.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

.status-dot--green { background: #52b788; }

/* Slide 3 — Rozetler */
.badge-preview { display: flex; flex-direction: column; gap: 14px; }

.badge-student { display: flex; align-items: center; gap: 10px; }

.badge-name-mock {
  height: 12px; width: 100px; border-radius: 4px;
  background: linear-gradient(135deg, #163327, #204937);
  margin-bottom: 5px;
}

.badge-sub-mock {
  height: 8px; width: 70px; border-radius: 4px;
  background: rgba(27,45,39,.12);
}

.badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.badge-item {
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  border: 1px solid transparent;
}

.badge-item span { font-size: 0.75rem; font-weight: 700; line-height: 1.2; color: var(--text); }

.badge-item--gold   { background: rgba(227,160,79,.12);  border-color: rgba(227,160,79,.2); }
.badge-item--blue   { background: rgba(82,160,183,.1);   border-color: rgba(82,160,183,.2); }
.badge-item--green  { background: rgba(82,183,136,.1);   border-color: rgba(82,183,136,.2); }
.badge-item--purple { background: rgba(140,100,200,.1);  border-color: rgba(140,100,200,.2); }

/* Slider Progress */
.slider-progress {
  padding: 0 2px;
}

.progress-bar {
  height: 3px;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #74c69d;
  border-radius: 2px;
  transition: width 4s linear;
}

/* ─── Pill row (kept for compatibility) ──────────────────────────────── */
.pill-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ─── Stats strip ────────────────────────────────────────────────────── */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 20px 0 0;
  padding: 24px 32px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 24px rgba(22,38,30,.06);
  backdrop-filter: blur(10px);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 8px 16px;
}

.stat-item strong {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.stat-item span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--line);
  flex-shrink: 0;
}

/* ─── Sections base ──────────────────────────────────────────────────── */
.section[id], .hero-full[id] {
  scroll-margin-top: 90px;
}

.section, .closing-panel {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(250,248,244,.92));
}

.section-heading { max-width: 820px; margin-bottom: 32px; }
.section-heading.narrow { max-width: 720px; }
.section-heading h2 { margin: 12px 0; }
.section-heading p { color: var(--muted); font-size: 1.05rem; line-height: 1.85; margin-top: 10px; }

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

.feature-card {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid rgba(27, 45, 39, 0.08);
  box-shadow: 0 10px 24px rgba(22, 38, 30, 0.05);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(22, 38, 30, 0.1);
  border-color: rgba(32, 73, 55, 0.2);
}

.feature-card--highlight {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(32, 73, 55, 0.06), rgba(32, 73, 55, 0.02));
  border-color: rgba(32, 73, 55, 0.15);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--surface-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* ─── Role grid ──────────────────────────────────────────────────────── */
.split-section {
  background:
    radial-gradient(circle at 85% 10%, rgba(82, 183, 136, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(240,246,242,.9));
}

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

.role-card {
  padding: 28px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(27, 45, 39, 0.08);
  box-shadow: 0 12px 28px rgba(22, 38, 30, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 200ms ease;
}

.role-card:hover { transform: translateY(-3px); }

.role-card--admin {
  background: linear-gradient(145deg, rgba(32, 73, 55, 0.05), rgba(255,255,255,.92));
}

.role-card--teacher {
  background: linear-gradient(145deg, rgba(227, 160, 79, 0.08), rgba(255,255,255,.92));
}

.role-card--parent {
  background: linear-gradient(145deg, rgba(82, 160, 183, 0.07), rgba(255,255,255,.92));
}

.role-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid rgba(27, 45, 39, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.role-icon svg { width: 26px; height: 26px; }

.role-label {
  color: var(--primary);
  background: var(--surface-tint);
  border: 1px solid rgba(32, 73, 55, 0.1);
}

.role-card h3 { font-size: 1.7rem; }

.role-card ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.role-card li {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.role-cta {
  display: inline-block;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.role-cta:hover { text-decoration: underline; }

/* ─── How it works ───────────────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.how-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid rgba(27, 45, 39, 0.08);
  box-shadow: 0 10px 24px rgba(22, 38, 30, 0.05);
  transition: transform 200ms ease;
}

.how-card:hover { transform: translateY(-2px); }

.how-step {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface-tint), #dff0e8);
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.how-content h3 { margin-bottom: 10px; font-size: 1.55rem; }
.how-content p { color: var(--muted); font-size: 0.97rem; line-height: 1.75; }

/* ─── App section ────────────────────────────────────────────────────── */
.app-section {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: 48px;
  align-items: center;
  background:
    radial-gradient(circle at 90% 50%, rgba(32, 73, 55, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(250,248,244,.92));
}

.app-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-copy h2 { margin: 4px 0; }
.app-copy > p { color: var(--muted); font-size: 1.05rem; line-height: 1.85; }

.app-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.app-features li svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.app-store-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--text);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.store-button:hover { transform: translateY(-2px); background: var(--primary-strong); }

.store-button svg { width: 24px; height: 24px; flex-shrink: 0; }

.store-button span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-button small {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.75;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Phone mockup ───────────────────────────────────────────────────── */
.app-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup {
  width: 240px;
  background: var(--text);
  border-radius: 42px;
  padding: 14px;
  box-shadow: 0 32px 80px rgba(22, 38, 30, 0.28), 0 0 0 2px rgba(255,255,255,.06);
}

.phone-screen {
  background: #f0ede7;
  border-radius: 30px;
  overflow: hidden;
  min-height: 440px;
  position: relative;
}

.phone-notch {
  width: 80px;
  height: 22px;
  background: var(--text);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
}

.phone-content { padding: 16px; }

.mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.mock-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex-shrink: 0;
}

.mock-line {
  height: 10px;
  border-radius: 999px;
  background: rgba(27, 45, 39, 0.12);
  margin-bottom: 6px;
}

.mock-line--name { width: 100px; }
.mock-line--sub { width: 70px; opacity: .6; }
.mock-line--md { width: 100%; }
.mock-line--sm { width: 80%; opacity: .7; }

.mock-card {
  background: white;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(22,38,30,.08);
}

.mock-img {
  width: 100%;
  height: 80px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--surface-tint), #c8e6d4);
}

.mock-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mock-stat {
  background: white;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(22,38,30,.06);
}

.mock-stat-num {
  height: 16px;
  border-radius: 999px;
  background: rgba(32, 73, 55, 0.2);
  margin-bottom: 5px;
  width: 50%;
  margin-inline: auto;
}

.mock-stat-label {
  height: 8px;
  border-radius: 999px;
  background: rgba(27, 45, 39, 0.1);
  width: 80%;
  margin-inline: auto;
}

.mock-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mock-action {
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  opacity: 0.85;
}

.mock-action:last-child { background: var(--accent); }

/* ─── FAQ ────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  padding: 0;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(27, 45, 39, 0.08);
  overflow: hidden;
  transition: box-shadow 180ms ease;
}

.faq-item[open] {
  box-shadow: 0 12px 28px rgba(22,38,30,.08);
  border-color: rgba(32, 73, 55, 0.18);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* ─── Demo / Contact ─────────────────────────────────────────────────── */
.demo-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background:
    radial-gradient(circle at 10% 80%, rgba(227, 160, 79, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(250,248,244,.9));
}

.demo-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-copy h2 { margin: 4px 0; }
.demo-copy > p { color: var(--muted); font-size: 1.05rem; line-height: 1.85; }

.demo-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-benefits li {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--surface-strong);
  border: 1px solid rgba(27, 45, 39, 0.08);
  box-shadow: 0 12px 28px rgba(22, 38, 30, 0.06);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-field input,
.form-field select {
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(27, 45, 39, 0.12);
  background: var(--bg-soft);
  font-family: var(--body);
  font-size: 0.97rem;
  color: var(--text);
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(32, 73, 55, 0.1);
}

.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ─── Closing panel ──────────────────────────────────────────────────── */
.closing-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #17362a, #214b39 55%, #2d6a4f);
}

.closing-copy { max-width: 700px; }

.closing-copy .eyebrow {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.14);
}

.closing-copy h2, .closing-copy p { color: #fff; }
.closing-copy p { color: rgba(255,255,255,.8); margin-top: 10px; font-size: 1.05rem; line-height: 1.85; }

.closing-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.closing-panel .ghost-button {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  padding: 48px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { color: var(--muted); font-size: 0.97rem; line-height: 1.75; max-width: 280px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
  font-family: var(--body);
}

.footer-col a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 150ms;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ─── Mobile split (Teacher / Parent) ───────────────────────────────── */
.mobile-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 4px 0 8px;
}

.mobile-role-card {
  padding: 22px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(27, 45, 39, 0.08);
  box-shadow: 0 10px 24px rgba(22, 38, 30, 0.05);
}

.mobile-role-card--teacher {
  background: linear-gradient(145deg, rgba(32, 73, 55, 0.06), rgba(255,255,255,.92));
}

.mobile-role-card--parent {
  background: linear-gradient(145deg, rgba(82, 160, 183, 0.06), rgba(255,255,255,.92));
}

.mobile-role-header { margin-bottom: 14px; }

/* ─── Admin split (Platform / School) ───────────────────────────────── */
.admin-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-card {
  padding: 28px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(27, 45, 39, 0.1);
  box-shadow: 0 12px 32px rgba(22, 38, 30, 0.07);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-card--platform {
  background: linear-gradient(160deg, #17362a, #204937 60%, #275740);
  border-color: rgba(255,255,255,.08);
}

.admin-card--platform .admin-card-header h3,
.admin-card--platform .admin-card-header p { color: #fff; }
.admin-card--platform .admin-card-header p { color: rgba(255,255,255,.75); }
.admin-card--platform .admin-feature-list li { color: rgba(255,255,255,.85); }

.admin-card--school {
  background: linear-gradient(160deg, rgba(255,244,228,.96), rgba(255,255,255,.96));
  border-color: rgba(227,160,79,.2);
}

.admin-card-header { display: flex; flex-direction: column; gap: 10px; }
.admin-card-header h3 { font-size: 1.7rem; }
.admin-card-header p { font-size: 1rem; line-height: 1.75; color: var(--muted); }

.admin-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
}

.admin-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,.18);
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.admin-check--amber {
  background: rgba(227,160,79,.2);
  color: var(--accent-deep);
}

/* ─── Role grid 3 cols ───────────────────────────────────────────────── */
.role-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ─── Role grid 4 cols ───────────────────────────────────────────────── */
.role-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ─── Admin panel grid ───────────────────────────────────────────────── */
.admin-panel-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.admin-panel-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-stat-card {
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(27, 45, 39, 0.08);
  box-shadow: 0 8px 20px rgba(22, 38, 30, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-stat-icon { font-size: 1.5rem; line-height: 1; }

.admin-stat-card strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.admin-stat-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.admin-features-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.admin-check--green {
  background: rgba(32, 73, 55, 0.15);
  color: var(--primary);
}

.role-card--platform {
  background: linear-gradient(145deg, rgba(23, 54, 42, 0.07), rgba(255,255,255,.92));
}

.role-card--parent {
  background: linear-gradient(145deg, rgba(82, 160, 183, 0.07), rgba(255,255,255,.92));
}

/* ─── Testimonials ───────────────────────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.testimonial-single {
  max-width: 820px;
  margin: 0 auto;
}

.testimonial-card--wide {
  gap: 24px;
}

.testimonial-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.testimonial-card {
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid rgba(27, 45, 39, 0.08);
  box-shadow: 0 10px 28px rgba(22, 38, 30, 0.06);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(22, 38, 30, 0.1);
}

.testimonial-card--featured {
  background: linear-gradient(160deg, #17362a, #204937 60%, #275740);
  border-color: rgba(255,255,255,.08);
}

.testimonial-card--featured blockquote,
.testimonial-card--featured .testimonial-author strong,
.testimonial-card--featured .testimonial-author span { color: rgba(255,255,255,.9); }

.testimonial-card--featured .testimonial-logo strong { color: #fff; }
.testimonial-card--featured .testimonial-logo span { color: rgba(255,255,255,.6); }

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

.t-logo-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.testimonial-logo strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
}

.testimonial-logo span {
  font-size: 0.82rem;
  color: var(--muted);
}

blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid rgba(27,45,39,.07);
}

.testimonial-card--featured .testimonial-author {
  border-top-color: rgba(255,255,255,.1);
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-avatar--green  { background: linear-gradient(135deg, #204937, #52b788); }
.author-avatar--amber  { background: linear-gradient(135deg, #b76f1c, #e3a04f); }
.author-avatar--blue   { background: linear-gradient(135deg, #1a6080, #52a0b7); }

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.testimonial-author span {
  font-size: 0.82rem;
  color: var(--muted);
}

.testimonial-metrics {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}

.t-metric { text-align: center; }

.t-metric strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.t-metric span {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card--highlight { grid-column: span 2; }
  .role-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-card--featured { grid-column: span 2; }
  .admin-panel-grid { grid-template-columns: 1fr; }
  .admin-features-two-col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .role-grid-3 { grid-template-columns: 1fr; }
  .admin-features-two-col { grid-template-columns: 1fr; }
}

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

@media (max-width: 1100px) {
  .hero-full { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 48px 40px 32px; }
  .hero-slider-wrap { padding: 0 40px 48px; }
  .slider-viewport { min-height: 340px; }
  .demo-section { grid-template-columns: 1fr; }
  .app-section { grid-template-columns: 1fr; }
  .app-visual { display: none; }
}

@media (max-width: 920px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-card--featured { grid-column: span 1; }

  .site-nav {
    position: static;
    flex-direction: column;
    align-items: stretch;
    margin: 12px 16px 0;
  }

  .nav-links, .nav-actions { justify-content: center; }

  .role-grid { grid-template-columns: 1fr; }
  .role-grid-4 { grid-template-columns: 1fr; }
  .admin-split { grid-template-columns: 1fr; }
  .mobile-split { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .closing-panel { flex-direction: column; align-items: flex-start; }
  .stats-strip { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }
}

@media (max-width: 768px) {
  main, .site-footer, .hero-full {
    width: calc(100vw - 24px);
  }

  .hero-content { padding: 36px 24px 24px; }
  .hero-slider-wrap { padding: 0 24px 36px; }
  .slider-viewport { min-height: 300px; }

  .section, .closing-panel {
    padding: 24px;
    border-radius: 26px;
  }

  h1 { max-width: 100%; font-size: clamp(2.4rem, 11vw, 3.6rem); }
  h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card--highlight { grid-column: span 1; }

  .how-card { grid-template-columns: 56px 1fr; gap: 14px; }
  .how-step { width: 56px; height: 56px; border-radius: 18px; font-size: 1.7rem; }

  .form-row { grid-template-columns: 1fr; }

  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .nav-links { overflow-x: auto; justify-content: flex-start; }
}
