/* Self-hosted fonts (no visitor data sent to Google). Licence: assets/fonts/FONTS-LICENSE.txt */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../assets/fonts/dm-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/poppins-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/poppins-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/poppins-700-latin.woff2") format("woff2"); }

/* =========================================================
   EDUCAD — main stylesheet
   Brand colours live here. Change them once, they update everywhere.
   ========================================================= */
:root {
  /* Brand lavender (from Educad logo / flyer) */
  --brand-50:  #F6F3FF;
  --brand-100: #EEE8FF;
  --brand-200: #DDD1FD;
  --brand-300: #C9B8FB;
  --brand-400: #B49CF7;   /* signature Educad lavender */
  --brand-500: #8F72F0;
  --brand-600: #6E4FE0;   /* buttons & links (passes WCAG AA with white) */
  --brand-700: #5638C4;
  --brand-900: #241A4D;

  /* Warm accent (used sparingly: stars, offer highlights) */
  --sun: #FFC94D;
  --sun-soft: #FFF4D6;

  /* Neutrals */
  --ink: #1D1733;
  --text: #2E2945;
  --muted: #5B5670;
  --line: #E7E3F2;
  --field-border: #857F9A;  /* form field edges: 3:1+ contrast so boxes are visible */
  --surface: #FFFFFF;
  --bg-soft: #F7F6FB;

  /* Type */
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(36 26 77 / .06), 0 2px 8px rgb(36 26 77 / .05);
  --shadow: 0 10px 30px -10px rgb(36 26 77 / .18);
  --shadow-lg: 0 30px 60px -20px rgb(36 26 77 / .28);

  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

.muted { color: var(--muted); }
.hl { color: var(--brand-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .65em 1.25em;
  border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 52px; padding: .8em 1.6em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: 0 8px 20px -8px rgb(110 79 224 / .6); }
.btn--primary:hover { background: var(--brand-700); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--brand-500); }
.btn--ghost:hover { border-color: var(--brand-600); color: var(--brand-700); }
.btn--light { background: #fff; color: var(--brand-700); }
.btn--light:hover { background: var(--ink); color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 500; font-size: .95rem; text-decoration: none; min-height: 44px; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700);
  margin-bottom: 14px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-100); }
.eyebrow--center { display: flex; justify-content: center; }

.section { padding-block: clamp(72px, 9vw, 120px); }
.section--tint { background: var(--brand-50); }
.section__head { max-width: 680px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section__head p:last-child { color: var(--muted); margin-top: 16px; font-size: 1.1rem; }
.section__head--left { text-align: left; margin-inline: 0; }
.lead { color: var(--muted); font-size: 1.125rem; margin-top: 16px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--brand-900); color: #E6E0FA; font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar__info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__info li { display: flex; align-items: center; gap: 8px; }
.topbar__info .icon { color: var(--brand-300); }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__social { display: flex; gap: 4px; }
.topbar__social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; transition: background-color .2s; }
.topbar__social a:hover { background: rgb(255 255 255 / .1); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
/* blur lives on a pseudo-element so the fixed mobile menu isn't trapped inside the header */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.brand { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--brand-600); margin-right: auto; }
.brand__logo { width: 138px; height: 31px; color: var(--brand-600); }
.brand__logo--light { color: var(--brand-300); }
.brand__tag { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.nav__list { display: flex; gap: 4px; align-items: center; }
.nav__list a:not(.btn) { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: .95rem; text-decoration: none; transition: background-color .2s, color .2s; }
.nav__list a:not(.btn):hover { background: var(--brand-50); color: var(--brand-700); }
.nav__list a.is-active { color: var(--brand-700); background: var(--brand-50); }
.nav__cta-mobile { display: none; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(96px, 10vw, 140px);
  background:
    radial-gradient(60% 70% at 100% 0%, var(--brand-100) 0%, transparent 70%),
    radial-gradient(40% 50% at 0% 100%, var(--sun-soft) 0%, transparent 70%),
    var(--bg-soft);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 600; letter-spacing: -0.03em; }
.hero__lead { font-size: 1.15rem; color: var(--muted); margin-top: 22px; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.hero__note .icon { color: var(--brand-600); }

.trust { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.trust li { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow-sm); }
.trust strong { color: var(--ink); font-weight: 600; }
.trust .icon { color: var(--brand-600); }

.hero__media { position: relative; isolation: isolate; }
.hero__media > img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__media::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border-radius: var(--radius-lg); background: var(--brand-300); z-index: -1; transform: rotate(-2.5deg); }

.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); font-size: .9rem; line-height: 1.3; }
.float-card strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.float-card span:not(.float-card__icon) { color: var(--muted); }
.float-card--top { top: 22px; right: -18px; animation: bob 6s ease-in-out infinite; }
.float-card__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-100); color: var(--brand-700); }
.float-card__icon--sun { background: var(--sun-soft); color: #B7791F; }

.hero__search { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; gap: 8px; padding: 8px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); }
.hero__search select { flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border: 0; background: transparent; cursor: pointer; font-size: 1rem; color: var(--text); }
.hero__search select:focus-visible { outline-offset: 0; }

@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Feature strip ---------- */
.features { position: relative; margin-top: -60px; z-index: 2; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature h3 { font-size: 1rem; }
.feature p { font-size: .9rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }

.tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-600); color: #fff; flex-shrink: 0; }
.tile .icon { width: 22px; height: 22px; }
.tile--sm { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-100); color: var(--brand-700); }
.tile--sm .icon { width: 20px; height: 20px; }

/* ---------- Levels ---------- */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.level { position: relative; display: flex; flex-direction: column; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.level:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-300); }
.level__tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--brand-100); color: var(--brand-700); font-size: .8rem; font-weight: 600; }
.level h3 { font-size: 1.75rem; margin-top: 18px; }
.level > p:not(.level__tag) { color: var(--muted); margin-top: 10px; }
.level .checklist { margin: 22px 0 18px; display: grid; gap: 10px; }
.level .link-arrow { margin-top: auto; }
.level--featured { background: var(--brand-700); border-color: var(--brand-700); color: #EDE8FF; }
.level--featured h3, .level--featured .link-arrow { color: #fff; }
.level--featured > p:not(.level__tag) { color: #E2DBFF; }
.level--featured .level__tag { background: rgb(255 255 255 / .16); color: #fff; }
.level--featured .checklist .icon { background: rgb(255 255 255 / .18); color: #fff; }
.level--featured:hover { border-color: var(--brand-900); }

.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.checklist .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); stroke-width: 3; }

.subjects { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 20px; margin-top: 48px; }
.subjects__label { font-family: var(--font-head); font-weight: 500; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 8px 18px; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-200); color: var(--brand-900); font-weight: 500; font-size: .95rem; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.why__media { position: relative; }
.why__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.why__badge { position: absolute; right: -16px; bottom: 32px; padding: 18px 22px; background: var(--sun); border-radius: var(--radius); box-shadow: var(--shadow); line-height: 1.25; }
.why__badge strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); }
.why__badge span { color: var(--ink); font-size: .9rem; }
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; margin-top: 36px; }
.benefit h3 { margin-top: 14px; font-size: 1.05rem; }
.benefit p { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* ---------- Statement ---------- */
.statement { text-align: center; }
.statement__text { max-width: 900px; margin: 0 auto; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.35; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.statement__text .hl { background: linear-gradient(transparent 62%, var(--brand-200) 62%); color: var(--brand-700); padding-inline: 2px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stat { display: flex; flex-direction: column-reverse; padding: 28px 16px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.stat dd { font-family: var(--font-head); font-size: clamp(2rem, 3.5vw, 2.6rem); font-weight: 600; color: var(--brand-600); line-height: 1.1; letter-spacing: -0.02em; }
.stat dt { color: var(--muted); margin-top: 6px; font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 32px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.step__num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand-600); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; box-shadow: 0 0 0 8px var(--brand-100); }
.step h3 { margin-top: 26px; font-size: 1.2rem; }
.step p { margin-top: 8px; color: var(--muted); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review blockquote { color: var(--text); flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); line-height: 1.3; }
.review figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.review figcaption small { color: var(--muted); font-size: .85rem; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); font-family: var(--font-head); font-weight: 600; font-size: .9rem; flex-shrink: 0; }
.avatar--sun { background: var(--sun-soft); color: #92600A; }

/* ---------- Offer ---------- */
.offer-wrap { padding-bottom: clamp(24px, 4vw, 40px); }
.offer { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--brand-700) 0%, var(--brand-600) 60%, var(--brand-500) 100%); color: #fff; }
.offer::before { content: ""; position: absolute; width: 420px; height: 420px; right: 6%; top: -40%; border-radius: 50%; background: rgb(255 255 255 / .12); }
.offer__copy { position: relative; padding: clamp(36px, 5vw, 64px); }
.offer__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 600; font-size: .85rem; }
.offer h2 { color: #fff; margin-top: 18px; }
.offer h2 em { font-style: normal; color: var(--sun); }
.offer p:not(.offer__kicker) { margin: 16px 0 28px; max-width: 32em; color: #fff; }
.offer__img { position: relative; width: 100%; max-width: 440px; justify-self: end; align-self: end; mix-blend-mode: multiply; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 16px 22px; cursor: pointer; font-family: var(--font-head); font-weight: 500; color: var(--ink); list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); transition: transform .25s var(--ease), background-color .2s; }
.faq__item[open] summary .icon { transform: rotate(45deg); background: var(--brand-600); color: #fff; }
.faq__item p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post__card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.post__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-100); }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 24px; }
.post__meta { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.pill--soon { background: var(--sun-soft); color: #7A4F00; }
.pill { padding: 3px 10px; border-radius: 999px; background: var(--brand-100); color: var(--brand-700); font-weight: 600; font-size: .78rem; }
.post h3 { margin-top: 14px; font-size: 1.2rem; }
.post__body > p:last-child { color: var(--muted); margin-top: 8px; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__list { display: grid; gap: 20px; margin-top: 36px; }
.contact__list li { display: flex; gap: 14px; align-items: center; }
.contact__list strong { display: block; font-family: var(--font-head); font-weight: 500; color: var(--ink); font-size: .95rem; }
.contact__list span, .contact__list a { color: var(--muted); }
.contact__list a { color: var(--brand-600); }

.contact__form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-lg); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--field-border); border-radius: 12px; background: #fff;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #6B6680; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand-600); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px var(--brand-100); }
.field [aria-invalid="true"] { border-color: #C2410C; }
.field__error { color: #B42318; font-size: .85rem; }
.field__hint { color: var(--muted); font-size: .85rem; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand-600); cursor: pointer; }
.consent label { font-size: .9rem; color: var(--text); cursor: pointer; }
.consent .field__error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__error:empty { display: none; }
.form-status { font-weight: 500; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 14px; border-radius: 12px; background: #E8F7EE; color: #146C2E; }
.form-status.is-error { padding: 14px; border-radius: 12px; background: #FDECEC; color: #B42318; }

/* ---------- Footer ---------- */
.footer { background: var(--brand-900); color: #C9C2E6; padding-top: 72px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 18px; max-width: 30em; }
.footer h2 { color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 16px; }
.footer ul:not(.footer__social) { display: grid; gap: 10px; }
.footer a { color: #C9C2E6; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__social { display: flex; gap: 8px; margin-top: 20px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .08); color: #fff; transition: background-color .2s; }
.footer__social a:hover { background: var(--brand-600); }
.footer__legal { margin-top: 40px; font-size: .85rem; color: #B3ABD6; max-width: 70em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-block: 24px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .875rem; }

/* ---------- Legal pages ---------- */
.legal-header .header__inner { min-height: 72px; }
.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; }
.legal__updated { color: var(--muted); margin-top: 12px; }
.legal__note { margin-top: 24px; padding: 16px 20px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); font-size: .95rem; }
.legal h2 { font-size: 1.4rem; margin-top: 44px; }
.legal h3 { font-size: 1.1rem; margin-top: 24px; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.4em; }
.legal li + li { margin-top: 6px; }
.legal table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-family: var(--font-head); font-weight: 600; color: var(--ink); background: var(--bg-soft); }
.back-link { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; font-weight: 500; text-decoration: none; }
.back-link .icon { transform: rotate(180deg); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .header__cta { display: none; }
  .nav__list a:not(.btn) { padding-inline: 10px; }
}

@media (max-width: 920px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 0; top: 76px; z-index: 40;
    padding: 24px; background: #fff;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__list a:not(.btn) { padding: 14px 16px; font-size: 1.1rem; border-radius: 12px; }
  .nav__cta-mobile { display: block; margin-top: 12px; }
  .nav__cta-mobile .btn { width: 100%; min-height: 52px; }
  body.nav-open { overflow: hidden; }

  .hero__grid, .why, .faq, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero__media { max-width: 620px; }
  .levels, .reviews, .posts { grid-template-columns: 1fr 1fr; }
  .levels .level:last-child, .posts .post:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .why__media { max-width: 520px; }
  .why__media img { aspect-ratio: 4 / 3; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .offer { grid-template-columns: minmax(0, 1fr); }
  .offer__img { max-width: 300px; margin-top: -24px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .hide-sm { display: none !important; }
  .topbar__info { gap: 14px; }
  .topbar__social { display: none; }
  .header__inner { min-height: 68px; }
  .nav { top: 68px; }
  html { scroll-padding-top: 76px; }
  .brand__logo { width: 116px; height: 26px; }
  .btn { white-space: normal; text-align: center; }
  .hero__actions .btn { flex: 1 1 100%; }
  .float-card--top { right: 8px; top: 12px; padding: 8px 12px 8px 8px; font-size: .8rem; }
  .float-card__icon { width: 34px; height: 34px; }
  .hero__media::before { inset: -8px 8px 8px -8px; }
  .hero__search { position: static; margin-top: 16px; border: 1px solid var(--line); }
  .hero__search .btn { padding-inline: 16px; }
  .features { margin-top: -48px; }
  .features__grid, .levels, .reviews, .posts, .benefits, .field-row { grid-template-columns: minmax(0, 1fr); }
  .level, .step, .review { padding: 24px; }
  .why__badge { right: 12px; bottom: 12px; padding: 12px 16px; }
  .offer__img { max-width: 240px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
