/* LHUPI Academy fresh build. Light and calm: porcelain, plum ink,
   deep violet, electric violet for highlights only.
   Specificity rule for this file: component classes always win over
   element rules. Nav and footer style links with :not(.btn) so a
   button can never inherit a link colour. */

:root {
  --bg: #f7f7fa;
  --white: #ffffff;
  --ink: #181126;
  --muted: #57506e;
  --muted-2: #7d7594;
  --violet: #5b21b6;
  --violet-dark: #4a1a96;
  --electric: #a855f7;
  --tint: #efebfa;
  --tint-2: #e3dbf7;
  --plum: #1b1035;
  --plum-2: #25164a;
  --line: rgba(24, 17, 38, 0.1);
  --line-strong: rgba(24, 17, 38, 0.2);
  --radius: 16px;
  --wrap: 1180px;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
  --shadow: 0 18px 44px rgba(27, 16, 53, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--violet); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section { padding: 92px 0; }
.section-white { background: var(--white); }
.section-tint { background: var(--tint); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h1, .section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Eyebrow with the notch motif: a violet block with the play-triangle
   cut from its left edge, taken from the final letter of the logo. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
}
.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  background: var(--electric);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 68%, 46% 50%, 0 32%);
}
.eyebrow.on-dark { color: var(--tint-2); }

/* Buttons: pill, colours locked on the component classes. */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
a.btn-primary, .btn-primary { background: var(--violet); color: #ffffff; }
a.btn-primary:hover, .btn-primary:hover { background: var(--violet-dark); color: #ffffff; }
a.btn-ghost, .btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
a.btn-ghost:hover, .btn-ghost:hover { border-color: var(--violet); color: var(--violet); }
a.btn-light, .btn-light { background: #ffffff; color: var(--plum); }
a.btn-light:hover, .btn-light:hover { background: var(--tint); color: var(--plum); }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }

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

/* Header: light, Academy stacked lockup on porcelain. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 250, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-lockup { height: 46px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 0.94rem; font-weight: 500; }
.main-nav a:not(.btn):hover { color: var(--violet); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); font-size: 1.05rem; padding: 6px 12px; cursor: pointer; }

/* Wave dividers: background is the section above, the path fills
   with the colour of the section below. */
.wave { line-height: 0; }
.wave svg { display: block; width: 100%; height: 54px; }
.w-bg-porcelain { background: var(--bg); }
.w-bg-white { background: var(--white); }
.w-bg-tint { background: var(--tint); }
.w-bg-plum { background: var(--plum); }
.w-f-porcelain { color: var(--bg); }
.w-f-white { color: var(--white); }
.w-f-tint { color: var(--tint); }
.w-f-plum { color: var(--plum); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background:
    radial-gradient(560px 380px at 88% 8%, rgba(168, 85, 247, 0.16), rgba(168, 85, 247, 0) 70%),
    radial-gradient(640px 420px at 6% 96%, rgba(91, 33, 182, 0.12), rgba(91, 33, 182, 0) 70%),
    radial-gradient(420px 300px at 55% 110%, rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0) 70%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 52px;
  align-items: center;
}
.hero-copy h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); margin: 18px 0 18px; }
.hero-copy h1 .hl { color: var(--violet); }
.hero-sub { color: var(--muted); font-size: 1.13rem; max-width: 540px; margin-bottom: 30px; }
.hero-note { margin-top: 18px; color: var(--muted-2); font-size: 0.9rem; }

/* CSS-built product screen */
.screen-wrap { position: relative; }
.screen {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.screen-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tint-2); flex: none; }
.screen-dot:first-child { background: var(--electric); }
.screen-url {
  margin-left: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 14px;
  font-size: 0.76rem;
  color: var(--muted);
}
.screen-body { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 340px; }
.screen-side { background: var(--plum); padding: 18px 14px; }
.side-school { color: #ffffff; font-weight: 700; font-size: 0.86rem; line-height: 1.35; margin-bottom: 4px; }
.side-school-sub { color: var(--tint-2); font-size: 0.7rem; margin-bottom: 18px; }
.side-item {
  display: block;
  color: var(--tint-2);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 8px;
  margin-bottom: 3px;
}
.side-item.active { background: var(--plum-2); color: #ffffff; box-shadow: inset 3px 0 0 var(--electric); }
.screen-main { padding: 20px 22px; }
.screen-greet { font-weight: 700; font-size: 1.02rem; }
.screen-greet-sub { color: var(--muted-2); font-size: 0.8rem; margin-bottom: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stat-num { font-weight: 800; font-size: 1.06rem; color: var(--violet); }
.stat-label { font-size: 0.7rem; color: var(--muted); }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; margin-bottom: 12px; }
.panel-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.class-row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; padding: 4px 0; }
.class-row .class-name { width: 86px; flex: none; font-weight: 600; }
.bar { flex: 1; height: 7px; border-radius: 99px; background: var(--tint-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--electric)); }
.class-pct { width: 38px; flex: none; text-align: right; color: var(--muted); font-size: 0.76rem; }
.exam-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.exam-card .exam-name { font-weight: 700; font-size: 0.9rem; }
.exam-card .exam-sub { color: var(--muted); font-size: 0.78rem; }
.exam-tag { flex: none; background: var(--tint); color: var(--violet); font-weight: 700; font-size: 0.72rem; padding: 4px 11px; border-radius: 999px; }

/* Homepage hero screen: full-strength contrast. The hero mock sits in a
   .reveal wrap whose entrance fade can leave it looking washed out, and
   its labels use the shared muted tones; in the hero (the flagship
   visual) the mock carries deeper label colours, stronger borders and
   no fade, matching the crisp render of the academia.html screen. */
.hero .screen-wrap.reveal { opacity: 1; transform: none; transition: none; }
.screen-hero { border-color: var(--line-strong); box-shadow: 0 24px 54px rgba(27, 16, 53, 0.18); }
.screen-hero .screen-url { color: #463d66; }
.screen-hero .side-school-sub { color: #cfc4f2; }
.screen-hero .side-item { color: #e6defa; font-weight: 600; }
.screen-hero .side-item.active { color: #ffffff; }
.screen-hero .screen-greet-sub { color: #463d66; }
.screen-hero .stat { background: var(--white); border-color: var(--line-strong); }
.screen-hero .stat-label { color: #463d66; }
.screen-hero .panel { background: var(--white); border-color: var(--line-strong); }
.screen-hero .panel-title { color: #463d66; }
.screen-hero .class-pct { color: #463d66; }
.screen-hero .exam-card .exam-sub { color: #463d66; }

/* Floating role chips over the hero screen */
.chip-float {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(27, 16, 53, 0.14);
  padding: 10px 14px;
  font-size: 0.78rem;
  max-width: 218px;
}
.chip-float strong { display: block; font-size: 0.8rem; color: var(--violet); }
.chip-float span { color: var(--muted); }
/* Floating role chips over the hero screen. Geometry, checked against
   the mock's internal layout: the address pill spans roughly x 70 to
   235 and y 11 to 37 inside the screen bar; the sidebar Fees label
   sits around y 347 to 382; the exam card ends about 32px above the
   screen's bottom edge and its text line ends around x 355. So the
   Teacher chip straddles the top edge at the right, over the empty
   part of the bar; Student and Parent hang below the bottom edge,
   clear of Fees and the exam line, inside the hero's bottom padding. */
.chip-teacher { top: -26px; right: 16px; }
.chip-student { bottom: -58px; left: -14px; }
.chip-parent { bottom: -58px; right: 24px; }

/* Ecosystem cards */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.eco-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.eco-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--electric));
  opacity: 0;
  transition: opacity 0.18s ease;
}
.eco-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.eco-card:hover::before { opacity: 1; }
.eco-card-flag { grid-column: span 2; background: linear-gradient(135deg, var(--white) 55%, var(--tint)); }
.eco-card h3 { font-size: 1.22rem; margin: 14px 0 8px; }
.eco-card-flag h3 { font-size: 1.5rem; }
.eco-card p { color: var(--muted); font-size: 0.96rem; }
.eco-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}
.chip-test { background: var(--tint); color: var(--violet); }
.chip-dev { background: #fdf0e2; color: #9a5b12; }
.chip-plan { background: #eceef3; color: #5a6070; }
.built-line { margin-top: 16px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.eco-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.94rem; text-decoration: none; }
.eco-link:hover { text-decoration: underline; }

/* Training cards */
.train-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.train-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.train-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--electric));
  opacity: 0;
  transition: opacity 0.18s ease;
}
.train-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.train-card:hover::before { opacity: 1; }
.train-card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.train-card p { color: var(--muted); font-size: 0.96rem; }
.train-tag { display: inline-block; margin-bottom: 14px; background: var(--tint); color: var(--violet); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }

/* Educators */
.edu-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.check-list { list-style: none; margin: 22px 0 28px; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 13px; color: var(--muted); }
.check-list li strong { color: var(--ink); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  background: var(--electric);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 68%, 46% 50%, 0 32%);
}
.page-mock {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.page-mock-head { background: linear-gradient(120deg, var(--violet), var(--electric)); padding: 22px 24px; color: #ffffff; }
.page-mock-head .pm-name { font-weight: 800; font-size: 1.1rem; }
.page-mock-head .pm-sub { font-size: 0.82rem; opacity: 0.85; }
.page-mock-body { padding: 20px 24px 24px; }
.pm-course { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pm-course:last-child { border-bottom: none; }
.pm-course .pm-title { font-weight: 600; font-size: 0.92rem; }
.pm-course .pm-meta { color: var(--muted-2); font-size: 0.76rem; }
.pm-badge { flex: none; background: var(--tint); color: var(--violet); font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* Steps (how it works, onboarding) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--violet);
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 7px; }
.step p { color: var(--muted); font-size: 0.94rem; }
.setup-note {
  margin-top: 26px;
  background: var(--tint);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--muted);
  font-size: 0.98rem;
}
.setup-note strong { color: var(--ink); }

/* Exam Compass strip */
.compass-band { background: var(--plum); color: var(--tint); }
.compass-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 40px 0; flex-wrap: wrap; }
.compass-in h3 { color: #ffffff; font-size: 1.3rem; margin-bottom: 6px; }
.compass-in p { color: var(--tint-2); max-width: 720px; font-size: 0.98rem; }
.compass-in .chip { background: var(--plum-2); color: var(--tint-2); flex: none; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 0 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 17px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--violet); font-size: 1.25rem; font-weight: 700; flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); padding: 0 0 18px; font-size: 0.97rem; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(520px 300px at 90% 0%, rgba(168, 85, 247, 0.28), rgba(168, 85, 247, 0) 70%),
    linear-gradient(120deg, var(--plum) 40%, var(--plum-2));
  color: var(--tint);
  padding: 76px 0;
  text-align: center;
}
.cta-band h2 { color: #ffffff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: var(--tint-2); max-width: 620px; margin: 0 auto 30px; }
.cta-band .cta-row { justify-content: center; }
.cta-band .band-link { color: #ffffff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.45); padding-bottom: 2px; }
.cta-band .band-link:hover { border-color: #ffffff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.contact-card h3 { font-size: 1.02rem; margin-bottom: 7px; }
.contact-card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 12px; }
.contact-card a { font-weight: 600; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* Academia page */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background:
    radial-gradient(560px 380px at 88% 8%, rgba(168, 85, 247, 0.16), rgba(168, 85, 247, 0) 70%),
    radial-gradient(640px 420px at 6% 96%, rgba(91, 33, 182, 0.12), rgba(91, 33, 182, 0) 70%),
    var(--bg);
}
.page-hero .section-head { max-width: 760px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin: 18px 0 16px; }
.page-hero h1 .hl { color: var(--violet); }
.screen-lg .screen-body { grid-template-columns: 200px minmax(0, 1fr); min-height: 420px; }
.screen-lg { margin-top: 48px; }

.roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.role-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.role-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--electric));
  opacity: 0;
  transition: opacity 0.18s ease;
}
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.role-card:hover::before { opacity: 1; }
.role-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.role-card ul { list-style: none; }
.role-card li { color: var(--muted); font-size: 0.92rem; padding-left: 18px; position: relative; margin-bottom: 7px; }
.role-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--electric); }

.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.module {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.module h3 { font-size: 1.04rem; margin-bottom: 7px; }
.module p { color: var(--muted); font-size: 0.93rem; }
.module .chip { margin-bottom: 12px; }

.wl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.wl-visual { display: grid; gap: 16px; }
.brand-screen { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 10px 28px rgba(27, 16, 53, 0.08); }
.brand-screen-head { padding: 13px 18px; color: #ffffff; font-weight: 700; font-size: 0.9rem; display: flex; justify-content: space-between; align-items: center; }
.brand-screen-head .bs-url { font-weight: 500; font-size: 0.74rem; opacity: 0.85; }
.bs-violet { background: linear-gradient(120deg, var(--violet), var(--electric)); }
.bs-school { background: linear-gradient(120deg, #14635d, #1f8a70); }
.brand-screen-body { padding: 14px 18px; display: flex; gap: 10px; }
.bs-pill { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 0.74rem; color: var(--muted); }
.bs-pill strong { display: block; color: var(--ink); font-size: 0.82rem; }

.trial-panel {
  background: linear-gradient(135deg, var(--tint) 30%, #ffffff);
  border: 1px solid var(--tint-2);
  border-radius: 20px;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.trial-panel h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 12px; }
.trial-panel p { color: var(--muted); }
.trial-points { list-style: none; }
.trial-points li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--muted); }
.trial-points li strong { color: var(--ink); }
.trial-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  background: var(--electric);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 68%, 46% 50%, 0 32%);
}

/* Trial request page */
[hidden] { display: none !important; }
.trial-sec {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(560px 380px at 88% 8%, rgba(168, 85, 247, 0.16), rgba(168, 85, 247, 0) 70%),
    radial-gradient(640px 420px at 6% 96%, rgba(91, 33, 182, 0.12), rgba(91, 33, 182, 0) 70%),
    var(--bg);
}
.trial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 36px 34px;
}
.form-card h2 { font-size: 1.35rem; margin-bottom: 8px; }
.form-card .form-intro { color: var(--muted); font-size: 0.97rem; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; }
.field label .opt { color: var(--muted-2); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--electric);
  outline-offset: 1px;
  border-color: var(--violet);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { color: var(--muted-2); font-size: 0.84rem; margin-top: 14px; }
.form-alert {
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.form-alert-error { background: #fdf0f0; border: 1px solid #eec9c9; color: #7a2a2a; }
.success-panel { text-align: left; }
.success-panel h2 { font-size: 1.5rem; margin-bottom: 10px; }
.success-panel p { color: var(--muted); margin-bottom: 14px; }
.next-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin-bottom: 22px;
}
.next-card h3 { font-size: 1.08rem; margin-bottom: 18px; }
.next-steps { list-style: none; }
.next-steps li { display: flex; gap: 14px; margin-bottom: 16px; color: var(--muted); font-size: 0.95rem; }
.next-steps li:last-child { margin-bottom: 0; }
.next-steps li strong { color: var(--ink); display: block; }
.next-steps .step-num { flex: none; width: 32px; height: 32px; margin-bottom: 0; font-size: 0.9rem; }
.talk-card {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.talk-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.talk-card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 10px; }
.talk-card a { font-weight: 600; text-decoration: none; }
.talk-card a:hover { text-decoration: underline; }
.talk-card .talk-row { margin-bottom: 6px; font-size: 0.95rem; }

/* Footer: dark plum, four columns. */
.site-footer { background: var(--plum); color: var(--tint-2); padding: 68px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-lockup { display: inline-block; margin-bottom: 16px; }
.footer-lockup img { height: 34px; width: auto; display: block; }
.footer-lockup .fl-sub {
  display: block;
  color: var(--electric);
  font-weight: 700;
  letter-spacing: 0.52em;
  font-size: 0.78rem;
  margin-top: 7px;
}
.footer-brand p { font-size: 0.94rem; max-width: 300px; }
.footer-company { margin-top: 14px; font-size: 0.86rem; color: #a79fc4; }
.footer-col h4 { color: #ffffff; font-size: 0.92rem; margin-bottom: 15px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a:not(.btn) { color: var(--tint-2); text-decoration: none; font-size: 0.93rem; }
.footer-col a:not(.btn):hover { color: #ffffff; }
.footer-base {
  border-top: 1px solid rgba(239, 235, 250, 0.14);
  padding: 20px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
}
.footer-base a { color: var(--tint-2); text-decoration: none; }
.footer-base a:hover { color: #ffffff; }

/* 404 */
.error-sec { padding: 110px 0 120px; text-align: center; }
.error-code { font-size: clamp(4.5rem, 12vw, 8rem); font-weight: 800; color: var(--tint-2); line-height: 1; }
.error-sec h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 10px 0 12px; }
.error-sec p { color: var(--muted); max-width: 480px; margin: 0 auto 28px; }
.error-sec .cta-row { justify-content: center; }

/* Reveal on scroll: staggered via --d custom property. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid, .edu-grid, .wl-grid { grid-template-columns: 1fr; gap: 44px; }
  .eco-grid, .train-grid, .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-card-flag { grid-column: span 2; }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trial-grid { grid-template-columns: 1fr; }
  .trial-panel { grid-template-columns: 1fr; gap: 26px; }
  .chip-teacher { right: 8px; }
  .chip-student { left: -6px; }
  .chip-parent { right: 8px; }
  .screen-wrap { margin-top: 8px; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero, .page-hero { padding: 56px 0 72px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 9px 0; }
  .main-nav .btn { text-align: center; margin-top: 8px; }
  .nav-toggle { display: block; }
  .site-header .wrap { position: relative; }
  .eco-grid, .train-grid, .modules-grid, .roles-grid, .steps-4 { grid-template-columns: 1fr; }
  .eco-card-flag { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .screen-body, .screen-lg .screen-body { grid-template-columns: 1fr; }
  .screen-side { display: none; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .chip-float { position: static; max-width: none; margin-top: 12px; }
  .compass-in { padding: 34px 0; }
  .trial-panel { padding: 32px 24px; }
  .form-card { padding: 28px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .wave svg { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .eco-card, .train-card, .role-card { transition: none; }
}
