/* Escola em Dia — site institucional
   Tokens alinhados com ui/website/DESIGN.md */
/* Lexend auto-alojada (SIL Open Font License) — sem pedidos a terceiros */
@font-face {
  font-family: "Lexend"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/lexend-latin.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: "Lexend"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/lexend-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #FBF9FF;
  --bg-tint: #F3F0FF;
  --card: #FFFFFF;
  --ink: #0D1C2E;
  --ink-soft: #4B5568;
  --line: #E9E4FB;

  --primary: #6B5AE8;
  --primary-press: #5140C8;
  --primary-ink: #5845CA;
  --lilac-50: #EDE9FE;

  --sun: #FBBF24;
  --sun-press: #D97706;
  --sun-50: #FEF3C7;
  --green: #58CC02;
  --green-press: #46A302;
  --green-50: #E7F8D9;
  --sky: #1CB0F6;
  --sky-50: #DDF3FE;
  --coral: #FF7A59;

  --radius: 24px;
  --shadow: 0 8px 24px -4px rgba(124, 107, 240, .12), 0 2px 6px rgba(71, 85, 105, .05);
  --shadow-lg: 0 30px 60px -20px rgba(88, 69, 202, .35), 0 8px 20px -8px rgba(71, 85, 105, .12);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Lexend", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 12px; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; margin-top: 64px; }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-ink);
  background: var(--lilac-50);
  padding: 6px 14px; border-radius: 999px;
}

/* ---------- Buttons (tactile 3D) ---------- */
.btn {
  --btn-bg: var(--card); --btn-press: #DDD6FE; --btn-ink: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1;
  color: var(--btn-ink); background: var(--btn-bg);
  padding: 16px 26px; border-radius: 999px; border: 0;
  box-shadow: 0 4px 0 var(--btn-press);
  transform: translateY(0);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), filter .2s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-press); filter: brightness(1.04); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--btn-press); }
.btn--primary { --btn-bg: var(--primary); --btn-press: var(--primary-press); --btn-ink: #fff; }
.btn--sun { --btn-bg: var(--sun); --btn-press: var(--sun-press); --btn-ink: #3A2500; }
.btn--ghost { border: 2px solid var(--lilac-50); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--lg { padding: 18px 30px; font-size: 17px; }

/* ---------- Header ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--primary), var(--sun));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.header.is-scrolled {
  background: rgba(251, 249, 255, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.header__inner { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand img { border-radius: 10px; transition: transform .4s var(--ease-spring); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.brand--sm { font-size: 16px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--primary-ink); background: var(--lilac-50); }
.header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
@media (min-width: 861px) { .nav ~ .header__actions { margin-left: 0; } }
.link-login { font-weight: 600; font-size: 15px; color: var(--primary-ink); }
.link-login:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 110px; overflow: hidden; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.1vw, 62px); font-weight: 800; margin: 20px 0 22px; }
.highlight {
  position: relative; white-space: nowrap; color: var(--primary-ink);
  background: linear-gradient(transparent 62%, var(--sun-50) 62%, var(--sun-50) 92%, transparent 92%);
  background-size: 0% 100%; background-repeat: no-repeat;
  animation: marker 1s .9s var(--ease-out) forwards;
}
@keyframes marker { to { background-size: 100% 100%; } }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--ink-soft); max-width: 30ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__note { margin-top: 20px; font-size: 14px; color: var(--ink-soft); }

.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.blob--a { width: 520px; height: 520px; background: #DCD5FF; right: -140px; top: 40px; animation: drift 14s ease-in-out infinite alternate; }
.blob--b { width: 360px; height: 360px; background: #FFE9B8; right: 260px; bottom: -120px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.08); } }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 560px; }

/* Device mockup */
.device {
  width: 320px; padding: 12px; border-radius: 44px;
  background: #1B1446;
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transition: transform .5s var(--ease-out);
  animation: bob 6s ease-in-out infinite;
  text-align: left;
}
@keyframes bob { 50% { translate: 0 -10px; } }
.device__screen {
  position: relative; overflow: hidden;
  height: 520px; border-radius: 34px; background: var(--bg);
  padding: 22px 18px; display: flex; flex-direction: column; gap: 16px;
}
.demo__top { display: flex; align-items: center; justify-content: space-between; }
.demo__who { display: flex; align-items: center; gap: 10px; line-height: 1.2; }
.demo__who strong { display: block; font-size: 15px; }
.demo__who small { font-size: 12px; color: var(--ink-soft); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lilac-50); font-size: 20px;
}
.avatar--lg { width: 56px; height: 56px; font-size: 30px; }
.chip { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.chip--subject { background: var(--sky-50); color: #0B6FA0; transition: background .3s, color .3s; }
.chip--subject.is-pt { background: #FFE5DF; color: #B33C1E; }

.demo__progress small { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.bar { height: 12px; border-radius: 999px; background: var(--lilac-50); overflow: hidden; margin-bottom: 6px; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green); box-shadow: inset 0 -3px 0 var(--green-press); transition: width .7s var(--ease-out); }

.demo__stage { position: relative; flex: 1; }
.demo__card {
  background: var(--card); border-radius: var(--radius); padding: 22px 18px;
  box-shadow: var(--shadow);
  transition: opacity .35s, transform .45s var(--ease-out);
}
.demo__card.is-out { opacity: 0; transform: translateX(-30px); }
.demo__card.is-in { opacity: 0; transform: translateX(30px); transition: none; }
.demo__q { font-weight: 700; font-size: 19px; line-height: 1.3; margin-bottom: 18px; }
.demo__opts { display: grid; gap: 10px; }
.opt {
  font-weight: 600; font-size: 16px; padding: 14px 16px; border-radius: 18px;
  background: var(--card); border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line);
  transition: transform .15s, background .25s, border-color .25s, box-shadow .15s, color .25s;
}
.opt.is-press { transform: translateY(3px) scale(.98); box-shadow: 0 0 0 var(--line); }
.opt.is-right { background: var(--green-50); border-color: var(--green); color: #2A6900; box-shadow: 0 3px 0 var(--green-press); animation: pop .45s var(--ease-spring); }
.opt.is-right::after { content: " ✓"; }
@keyframes pop { 40% { transform: scale(1.06); } }
.demo__write {
  min-height: 92px; border-radius: 18px; border: 2px dashed #CFC7F7; padding: 14px; font-size: 16px; font-weight: 500;
}
.caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -3px; margin-left: 2px; background: var(--primary); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.toast {
  position: absolute; left: 50%; bottom: 8px;
  translate: -50% 0; transform: translateY(20px) scale(.9); opacity: 0;
  background: var(--green); color: #fff; font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: 999px; box-shadow: 0 4px 0 var(--green-press);
  transition: transform .4s var(--ease-spring), opacity .25s; white-space: nowrap;
}
.toast.is-on { transform: translateY(0) scale(1); opacity: 1; }

.demo__done {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  animation: pop .6s var(--ease-spring);
}
.demo__done[hidden] { display: none; }
.demo__done strong { font-size: 22px; }
.demo__done small { color: var(--ink-soft); }
.medal {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 48px;
  background: var(--sun-50); box-shadow: 0 0 0 10px #FFF8E1; margin-bottom: 14px;
  animation: spin-in .8s var(--ease-spring);
}
@keyframes spin-in { from { transform: rotate(-120deg) scale(.2); } }

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 3px;
  animation: fall 1.8s var(--ease-out) forwards;
}
@keyframes fall { to { transform: translate(var(--x), 620px) rotate(var(--r)); opacity: .2; } }

.float {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 2px solid rgba(255,255,255,.9);
  font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 999px;
  box-shadow: var(--shadow); white-space: nowrap;
  animation: float 5s ease-in-out infinite;
}
.float span { font-size: 16px; }
.float--1 { top: 10px; left: -20px; animation-delay: -1s; }
.float--2 { top: 48%; right: -24px; animation-delay: -2.5s; }
.float--3 { bottom: 40px; left: -10px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-1.5deg); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section--tint { background: var(--bg-tint); border-radius: 56px; margin-inline: 12px; }
.section__head { text-align: center; margin-bottom: 64px; }
.section__head h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; margin-top: 18px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .35s var(--ease-spring), box-shadow .35s;
}
.feature:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.1); }
.feature h3 { font-size: 20px; font-weight: 700; margin: 22px 0 8px; }
.feature p { color: var(--ink-soft); font-size: 16px; }
.feature__icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  transition: transform .4s var(--ease-spring);
}
.feature__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tone-lilac { background: var(--lilac-50); color: var(--primary-ink); }
.tone-sun { background: var(--sun-50); color: #B45309; }
.tone-green { background: var(--green-50); color: #2A6900; }
.tone-sky { background: var(--sky-50); color: #0B6FA0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 88px; position: relative; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.step:nth-child(even) .step__text { order: 2; }
.step__num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 22px;
  box-shadow: 0 4px 0 var(--primary-press); margin-bottom: 22px;
}
.step h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 12px; }
.step p { color: var(--ink-soft); font-size: 18px; max-width: 36ch; }
.step__visual { display: grid; place-items: center; }

.mock {
  width: min(380px, 100%); background: var(--card); border-radius: 32px; padding: 26px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}

/* Step 1 — profiles + PIN */
.mock--profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile {
  display: grid; justify-items: center; gap: 4px; padding: 20px 10px; border-radius: 22px;
  background: var(--bg); border: 2px solid var(--line); line-height: 1.2;
  opacity: 0; transform: scale(.8);
}
.profile small { color: var(--ink-soft); font-size: 13px; }
.profile:first-child { border-color: var(--primary); }
.pin { grid-column: 1 / -1; display: flex; justify-content: center; gap: 14px; padding-top: 8px; }
.pin i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #CFC7F7; }
.is-visible .profile { animation: pop-in .6s var(--ease-spring) forwards; }
.is-visible .profile:nth-child(2) { animation-delay: .15s; }
.is-visible .pin i { animation: pin-fill 3.2s ease-in-out infinite; }
.is-visible .pin i:nth-child(2) { animation-delay: .25s; }
.is-visible .pin i:nth-child(3) { animation-delay: .5s; }
.is-visible .pin i:nth-child(4) { animation-delay: .75s; }
@keyframes pop-in { to { opacity: 1; transform: scale(1); } }
@keyframes pin-fill {
  0%, 10% { background: transparent; border-color: #CFC7F7; transform: scale(1); }
  20%, 75% { background: var(--primary); border-color: var(--primary); transform: scale(1.15); }
  90%, 100% { background: transparent; border-color: #CFC7F7; transform: scale(1); }
}

/* Step 2 — builder */
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--bg-tint); border-radius: 999px; margin-bottom: 16px; }
.tabs span { flex: 1; text-align: center; font-size: 14px; font-weight: 700; padding: 8px; border-radius: 999px; color: var(--ink-soft); }
.tabs .is-on { background: var(--card); color: var(--primary-ink); box-shadow: var(--shadow); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.topic { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--bg); border: 2px solid var(--line); transition: all .3s; }
.is-visible .topic:nth-child(1), .is-visible .topic:nth-child(2) { animation: select .5s var(--ease-spring) forwards; }
.is-visible .topic:nth-child(2) { animation-delay: .35s; }
@keyframes select { 60% { transform: scale(1.1); } to { background: var(--primary); border-color: var(--primary); color: #fff; } }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qlist li {
  font-size: 14px; font-weight: 500; padding: 12px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(12px);
}
.qlist li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.is-visible .qlist li { animation: rise .5s var(--ease-out) forwards; }
.is-visible .qlist li:nth-child(1) { animation-delay: .8s; }
.is-visible .qlist li:nth-child(2) { animation-delay: 1s; }
.is-visible .qlist li:nth-child(3) { animation-delay: 1.2s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Step 3 — answer */
.mock__q { font-size: 16px; color: var(--ink-soft); margin-bottom: 18px; }
.mock__q strong { color: var(--ink); font-size: 20px; }
.tf { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.tf span { text-align: center; font-weight: 700; padding: 16px 10px; border-radius: 18px; border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.is-visible .tf__yes { animation: correct 3.6s var(--ease-spring) .6s infinite; }
@keyframes correct {
  0% { transform: none; }
  8% { transform: translateY(3px) scale(.97); box-shadow: 0 0 0 var(--line); }
  16%, 85% { transform: scale(1); background: var(--green-50); border-color: var(--green); color: #2A6900; box-shadow: 0 3px 0 var(--green-press); }
  100% { background: transparent; }
}
.mini-bar { height: 10px; border-radius: 999px; background: var(--lilac-50); overflow: hidden; }
.mini-bar span { display: block; height: 100%; width: 33%; background: var(--green); border-radius: inherit; }
.is-visible .mini-bar span { animation: grow 3.6s var(--ease-out) .6s infinite; }
@keyframes grow { 0%, 10% { width: 33%; } 25%, 85% { width: 66%; } 100% { width: 33%; } }

/* Step 4 — review */
.answer { padding: 18px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 16px; }
.answer small { color: var(--ink-soft); font-size: 13px; }
.answer p { font-weight: 600; font-size: 17px; margin: 6px 0 14px; }
.verdict { display: flex; gap: 8px; }
.verdict span { font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); }
.is-visible .v-ok { animation: approve .5s var(--ease-spring) .7s forwards; }
@keyframes approve { 50% { transform: scale(1.12); } to { background: var(--green); border-color: var(--green); color: #fff; } }
.score { display: flex; align-items: center; gap: 16px; padding: 4px 6px; }
.score svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.score circle { fill: none; stroke: var(--lilac-50); stroke-width: 6; }
.score .score__fill { stroke: var(--primary); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; }
.is-visible .score__fill { animation: ring 1.4s var(--ease-out) 1s forwards; }
@keyframes ring { to { stroke-dashoffset: 18.85; } }
.score strong { display: block; font-size: 20px; }
.score small { color: var(--ink-soft); font-size: 14px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); transition: box-shadow .3s, border-color .3s;
}
.faq details[open] { border-color: #CFC7F7; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 700; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lilac-50); color: var(--primary-ink); font-size: 22px; font-weight: 500;
  transition: transform .35s var(--ease-spring), background .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq details p { padding: 0 26px 24px; color: var(--ink-soft); }
.faq details[open] p { animation: rise .4s var(--ease-out); }

/* CTA */
.section--cta { padding-top: 40px; }
.cta {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: radial-gradient(120% 140% at 50% 0%, #7C6BF0 0%, #5845CA 60%, #432BB4 100%);
  border-radius: 48px; padding: 96px 24px;
  box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; position: relative; }
.cta p { font-size: 19px; opacity: .9; margin: 16px 0 36px; position: relative; }
.cta .btn { position: relative; }
.cta__login { display: block; margin-top: 22px; font-weight: 600; font-size: 15px; opacity: .85; position: relative; }
.cta__login:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.cta__sparkles i {
  position: absolute; width: 14px; height: 14px; border-radius: 4px; opacity: .5;
  animation: twinkle 4s ease-in-out infinite;
}
.cta__sparkles i:nth-child(1) { left: 8%; top: 22%; background: var(--sun); }
.cta__sparkles i:nth-child(2) { left: 18%; bottom: 18%; background: var(--green); animation-delay: -1s; border-radius: 50%; }
.cta__sparkles i:nth-child(3) { right: 10%; top: 18%; background: var(--sky); animation-delay: -2s; border-radius: 50%; }
.cta__sparkles i:nth-child(4) { right: 20%; bottom: 22%; background: var(--coral); animation-delay: -3s; }
.cta__sparkles i:nth-child(5) { left: 40%; top: 10%; background: #fff; animation-delay: -1.5s; width: 8px; height: 8px; }
.cta__sparkles i:nth-child(6) { right: 38%; bottom: 10%; background: var(--sun); animation-delay: -2.5s; width: 10px; height: 10px; border-radius: 50%; }
@keyframes twinkle { 50% { transform: translateY(-14px) rotate(45deg) scale(1.3); opacity: .9; } }

/* Footer */
.footer { padding: 48px 0 40px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 15px; color: var(--ink-soft); }
.footer nav a:hover { color: var(--primary-ink); }
.footer small { color: var(--ink-soft); font-size: 14px; }

/* ---------- Subpages (cookies, 404) ---------- */
.header.is-static { position: sticky; }
.doc { padding: 72px 0 96px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin: 18px 0 8px; }
.doc__meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 24px; font-weight: 800; margin: 44px 0 12px; }
.doc p { color: var(--ink-soft); margin-bottom: 14px; }
.doc a:not(.btn) { color: var(--primary-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doc__table { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.doc th, .doc td { text-align: left; padding: 14px 16px; vertical-align: top; }
.doc th { background: var(--bg-tint); font-weight: 700; }
.doc tr + tr td { border-top: 1px solid var(--line); }
.doc code { white-space: nowrap; font-size: 13px; background: var(--lilac-50); color: var(--primary-ink); padding: 2px 6px; border-radius: 6px; }
.doc__toc { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px 24px; margin: 8px 0 36px; box-shadow: var(--shadow); }
.doc__toc strong { display: block; font-size: 15px; margin-bottom: 8px; }
.doc__toc ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; font-size: 15px; }
.doc__toc li { break-inside: avoid; padding: 3px 0; color: var(--ink-soft); }
.doc .doc__toc a { font-weight: 500; text-decoration: none; }
.doc .doc__toc a:hover { text-decoration: underline; }
.doc__body h2 { scroll-margin-top: 90px; }
.doc__body h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
.doc__body ul { color: var(--ink-soft); padding-left: 22px; margin: 0 0 16px; }
.doc__body li { margin-bottom: 6px; }
.doc__body strong { color: var(--ink); }
.doc__body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.doc__body a { word-break: break-word; }
.doc__note { margin-top: 48px; padding: 20px 24px; border-radius: 22px; background: var(--bg-tint); }
.doc__note p { margin-bottom: 6px; }
@media (max-width: 560px) { .doc__toc ul { columns: 1; } }
.notfound { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 80px 0; gap: 14px; }
.notfound h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
.notfound p { color: var(--ink-soft); margin-bottom: 18px; }
.notfound__emoji { font-size: 72px; animation: bob 3s ease-in-out infinite; }

/* ---------- Cookie consent ---------- */
.cookie {
  position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px;
  max-width: 460px; margin-left: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-lg); padding: 24px;
  transform: translateY(24px); opacity: 0; visibility: hidden;
  transition: transform .45s var(--ease-spring), opacity .3s, visibility 0s .45s;
}
.cookie.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.cookie h2 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.cookie > p { font-size: 15px; color: var(--ink-soft); margin: 8px 0 16px; line-height: 1.5; }
.cookie a { color: var(--primary-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cookie__prefs { display: grid; gap: 10px; margin-bottom: 18px; }
.cookie__prefs[hidden] { display: none; }
.cookie__opt {
  display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
  padding: 14px 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line);
}
.cookie__opt strong { display: block; font-size: 15px; }
.cookie__opt small { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.4; margin-top: 2px; }
.switch { position: relative; flex: none; width: 48px; height: 28px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #D6D0F5; transition: background .25s; }
.switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .3s var(--ease-spring);
}
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: .6; }
.switch input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__actions .btn { flex: 1 1 auto; padding: 13px 18px; font-size: 15px; }
.cookie__link { background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-soft); cursor: pointer; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; }
.cookie__link:hover { color: var(--primary-ink); }
.footer__cookies { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 0; }
.footer__cookies:hover { color: var(--primary-ink); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .float--2 { right: 0; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .hero { padding: 120px 0 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .lead { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero__visual { min-height: 0; }
  .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .step:nth-child(even) .step__text { order: 0; }
  .step__num { margin-inline: auto; }
  .step p { margin-inline: auto; }
  .steps { gap: 72px; }
  .section { padding: 88px 0; }
  .section--tint { border-radius: 36px; margin-inline: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
  .device { width: 280px; }
  .device__screen { height: 470px; }
  .float { font-size: 12px; padding: 8px 12px; }
  .float--1 { left: 0; top: -14px; }
  .float--2 { right: 0; }
  .float--3 { left: 0; bottom: 30px; }
  .link-login { display: none; }
  .cta { border-radius: 32px; padding: 72px 20px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

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