


@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plex-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plex-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/plex-arabic-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/plex-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #47637F;
  --primary-dark: #33475B;
  --sky: #3BB5E8;
  --teal: #0E5E86;
  --navy: #003B57;
  --ink: #2E4256;
  --ink-soft: #6B7C93;
  --border: #E4E9F0;
  --surface: #FFFFFF;
  --card-soft: #F3F6FA;
  --success: #149C6E;
  --gold: #DFA424;

  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;

  
  --shadow-card: 0 1px 2px rgba(46, 66, 86, 0.06), 0 12px 32px rgba(46, 66, 86, 0.08);
  --shadow-lift: 0 2px 4px rgba(46, 66, 86, 0.08), 0 18px 44px rgba(46, 66, 86, 0.14);
  --shadow-primary: 0 1px 2px rgba(51, 71, 91, 0.35), 0 10px 24px rgba(51, 71, 91, 0.25);
  
  --button: rgba(64, 97, 126, 0.97);
  --button-edge: #3C76A6;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.3; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
h1 { font-size: clamp(30px, 4.6vw, 48px); }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0; padding: 0; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }

.eyebrow {
  display: inline-block;
  color: var(--teal);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  border: 0.8px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 44px; padding: 0 45px; font-size: 14px; }

.btn-primary { color: #F9FAFC; background: var(--button); border-color: var(--button-edge); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline { color: var(--button); border-color: var(--button-edge); background: #fff; }
.btn-outline:hover { background: var(--card-soft); }

.btn-ghost { color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--card-soft); }

.btn-light { color: var(--primary-dark); background: #fff; }
.btn-light:hover { background: var(--card-soft); }


.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(46,66,86,.06); }

.header-row { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: auto; }

.brand-logo { height: 43px; width: auto; }
.footer-logo { height: 31px; width: auto; }

.site-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: 14px; padding: 6px 0; position: relative; }
.site-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--sky); border-radius: 2px; transform: scaleX(0); transition: transform .2s var(--ease);
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(59, 181, 232, 0.18), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(71, 99, 127, 0.12), transparent 60%),
    linear-gradient(180deg, #fff, var(--card-soft));
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-copy .lead { font-size: 18px; color: var(--ink-soft); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; color: var(--ink-soft); font-size: 14px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

.hero-visual { position: relative; }
.session-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-lift);
  max-width: 420px;
  margin-inline: auto;
}
.session-head { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 16px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(20,156,110,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(20,156,110,.45); } 70% { box-shadow: 0 0 0 10px rgba(20,156,110,0); } 100% { box-shadow: 0 0 0 0 rgba(20,156,110,0); } }

.presence { display: grid; gap: 10px; margin-bottom: 18px; }
.presence-row { display: flex; align-items: center; gap: 10px; background: var(--card-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.presence-row .tick { margin-inline-start: auto; color: var(--success); font-weight: 700; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.avatar-student { background: linear-gradient(135deg, var(--sky), var(--teal)); }
.avatar-teacher { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }

.meter-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.meter-bar { height: 10px; border-radius: 8px; background: var(--card-soft); overflow: hidden; }

.meter-fill { height: 100%; width: 78%; border-radius: 8px; background: linear-gradient(90deg, var(--sky), var(--teal)); transform-origin: right center; animation: fill 6s var(--ease) infinite alternate; }
@keyframes fill { from { transform: scaleX(0.28); } to { transform: scaleX(1); } }
.meter-note { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }

.float-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  animation: floaty 5s ease-in-out infinite;
}
.chip-a { top: -14px; inset-inline-end: 6%; color: var(--teal); }
.chip-b { bottom: -12px; inset-inline-start: 4%; color: var(--primary); animation-delay: -2.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }


.section { padding: 76px 0; }
.section-soft { background: var(--card-soft); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p:last-child { color: var(--ink-soft); }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.value { background: var(--card-soft); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 2px; font-size: 14px; color: var(--ink-soft); }
.value-title { color: var(--ink); font-weight: 700; font-size: 16px; }


.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; counter-reset: step; }
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.step-num {
  display: inline-grid; place-items: center;
  width: 96px; height: 64px;
  background: url(/assets/logo-mark.png) center / contain no-repeat;
  color: var(--navy); font-weight: 700; font-size: 22px; line-height: 1;
  margin-bottom: 12px;
}
.step p { color: var(--ink-soft); font-size: 14px; margin: 0; }


.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: transparent; }
.feature p { color: var(--ink-soft); font-size: 14px; margin: 0; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 14px; margin-bottom: 14px;
  background: rgba(71, 99, 127, 0.12);
  position: relative;
}
.feature-icon::before {
  content: ""; position: absolute; inset: 11px;
  background: var(--primary);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.icon-meter    { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>"); }
.icon-live     { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='23 7 16 12 23 17 23 7'/><rect x='1' y='5' width='15' height='14' rx='2' ry='2'/></svg>"); }
.icon-calendar { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>"); }
.icon-hours    { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='17 1 21 5 17 9'/><path d='M3 11V9a4 4 0 0 1 4-4h14'/><polyline points='7 23 3 19 7 15'/><path d='M21 13v2a4 4 0 0 1-4 4H3'/></svg>"); }
.icon-pay      { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='1' y='4' width='22' height='16' rx='2' ry='2'/><line x1='1' y1='10' x2='23' y2='10'/></svg>"); }
.icon-mail     { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/><polyline points='22,6 12,13 2,6'/></svg>"); }
.icon-resume   { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/><polyline points='9 12 11 14 15 10'/></svg>"); }
.icon-device   { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='2' width='14' height='20' rx='2' ry='2'/><line x1='12' y1='18' x2='12.01' y2='18'/></svg>"); }


.feature-grid.three, .steps.three { grid-template-columns: repeat(3, 1fr); }
.feature-emoji { display: grid; place-items: center; font-size: 22px; line-height: 1; }
.feature-emoji::before { content: none; }


.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.teacher-grid > p { grid-column: 1 / -1; }
.teacher {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  box-shadow: var(--shadow-card);
}
.teacher-avatar {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 700; font-size: 20px;
}
.teacher-name { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(20,156,110,.12); color: var(--success); }
.teacher-meta { color: var(--ink-soft); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.teacher-bio { grid-column: 1 / -1; color: var(--ink-soft); font-size: 14px; margin: 0; }
.star { color: var(--gold); }


.pricing-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-card); display: grid; align-content: start; gap: 8px;
}

.price-main { background: linear-gradient(225deg, var(--navy) 0%, var(--teal) 50%, var(--sky) 100%); color: #fff; border-color: transparent; }
.price-label { font-size: 14px; font-weight: 600; opacity: .9; }

.price-mark {
  position: relative; display: grid; place-items: center; justify-self: center;
  width: 186px; height: 124px; margin: 6px 0;
}

.price-mark::before {
  content: ""; position: absolute; inset: 0;
  background: url(/assets/logo-mark.png) center / contain no-repeat;
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.85));
}
.price-value { position: relative; font-size: 30px; font-weight: 700; line-height: 1; color: #fff; direction: ltr; }
.price-main .price-label, .price-main .price-unit { text-align: center; }
.price-unit { font-size: 14px; opacity: .85; }
.package-list { list-style: none; display: grid; gap: 8px; margin-bottom: 14px; }
.package-list li { display: flex; justify-content: space-between; align-items: center; background: var(--card-soft); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.package-list .discount { color: var(--success); font-weight: 600; font-size: 13px; }
.pkg-price { display: inline-flex; align-items: baseline; gap: 8px; }
.pkg-price .was { color: var(--ink-soft); font-size: 12px; }


.faq-list { display: grid; gap: 10px; }
.faq { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 20px; font-weight: 400; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-soft); padding-bottom: 12px; margin: 0; }


.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cta-card { border: 1px solid var(--border); border-radius: 22px; padding: 30px 28px; background: #fff; box-shadow: var(--shadow-card); text-align: center; }
.cta-card .btn { margin-inline: auto; }
.cta-card p { color: var(--ink-soft); }
.cta-dark { background: linear-gradient(160deg, var(--primary-dark), var(--navy)); color: #fff; border-color: transparent; }
.cta-dark p { color: rgba(255,255,255,.85); }
.cta-dark h2 { color: #fff; }


.site-footer { border-top: 1px solid var(--border); padding: 28px 0; background: #fff; }
.footer-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; margin-inline-start: auto; }
.footer-nav a { color: var(--ink-soft); font-size: 14px; }
.footer-copy { width: 100%; margin: 0; color: var(--ink-soft); font-size: 13px; }
.pay-methods { width: 100%; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--border); }
.pay-title { color: var(--ink-soft); font-size: 13px; }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pay-badge { display: inline-flex; align-items: center; justify-content: center; height: 36px; min-width: 64px; padding: 0 10px; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.pay-badge img { display: block; height: 16px; width: auto; }

.pay-badge svg { direction: ltr; }
.pay-dark { background: #000; border-color: #000; color: #fff; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; font-size: 14px; font-weight: 600; direction: ltr; }


.feature, .step, .teacher, .value, .price-card, .cta-card { position: relative; overflow: hidden; }
.feature::before, .step::before, .teacher::before, .value::before, .price-card::before, .cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--teal));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .28s var(--ease);
  pointer-events: none;
}
.feature:hover::before, .step:hover::before, .teacher:hover::before, .value:hover::before,
.price-card:hover::before, .cta-card:hover::before { transform: scaleX(1); }
.teacher, .value, .price-card, .cta-card { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.teacher:hover, .value:hover, .price-card:hover, .cta-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
@media (hover: none) { .feature::before, .step::before, .teacher::before, .value::before, .price-card::before, .cta-card::before { display: none; } }


[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .meter-fill, .float-chip, .live-dot { animation: none; }
}


@media (max-width: 1024px) {
  .steps, .feature-grid, .steps.three, .feature-grid.three { grid-template-columns: repeat(2, 1fr); }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { padding: 14px 0; }
  .pricing-grid, .cta-grid { grid-template-columns: 1fr; }

  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(46,66,86,.1);
    padding: 8px 20px 14px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-primary { display: none; }
  
  .header-actions { margin-inline-start: auto; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .brand-logo { height: 35px; }
  .section { padding: 56px 0; }
  .steps, .feature-grid, .steps.three, .feature-grid.three, .teacher-grid, .value-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .price-value { font-size: 28px; }
  .footer-nav { margin-inline-start: 0; }
}

.legal-page .header-actions { margin-inline-start: auto; }
.legal { padding: 48px 0 72px; }
.legal-wrap { width: min(760px, 100% - 32px); margin-inline: auto; overflow-wrap: anywhere; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.legal-updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 24px; }
.legal-intro { font-size: 17px; }
.legal-toc {
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0 36px;
}
.legal-toc h2 { font-size: 16px; margin-bottom: 8px; }
.legal-toc ol { padding-inline-start: 1.4em; display: grid; gap: 4px; font-size: 15px; }
.legal-section { padding-top: 8px; margin-bottom: 28px; scroll-margin-top: 84px; }
.legal-section h2 { font-size: clamp(20px, 2.6vw, 25px); margin-bottom: 10px; }
.legal-section h3 { font-size: 17px; margin: 18px 0 6px; }
.legal-section ul { padding-inline-start: 1.4em; margin: 0 0 14px; display: grid; gap: 6px; }
.legal-section li { padding-inline-start: 2px; }
.legal-note {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 14px;
}
@media (max-width: 560px) {
  .legal { padding: 32px 0 56px; }
  .legal-intro { font-size: 16px; }
  .legal-toc { padding: 14px 16px; }
}
