/* ==========================================================================
   EleveEnglish landing page
   Colors follow the design system tokens (same names and roles as the product's index.css):
   - primary   #002B5B  headings, logo, dark bands (hero, pricing, footer), neutral buttons
   - accent    #FF7A57  action and highlight only: buttons, checks, times, steps, tags,
                        footer link hover. Never as text on light backgrounds (2.6:1).
   - background / card  page and card surfaces
   - secondary / muted  alternating bands and inner blocks
   - foreground / muted-foreground  body text / supporting text
   ========================================================================== */

:root {
  /* Design system tokens */
  --background: #FCFDFF;
  --foreground: #334856;          /* 9.4:1 on background */
  --card: #FFFFFF;
  --primary: #002B5B;
  --primary-foreground: #FFFFFF;
  --secondary: #F0F5FB;
  --secondary-foreground: var(--primary);
  --muted: #F2F5F8;
  --muted-foreground: #57697D;    /* 5.2:1 on secondary, 5.5:1 on background */
  --accent: #FF7A57;              /* primary text on it: 5.5:1 */
  --accent-hover: #FF957A;
  --accent-foreground: var(--primary);
  --destructive: #D32222;
  --border: #DEE4ED;
  --input: #D7DFEA;
  --ring: var(--primary);
  --selection: #FFD9CD;
  --hero-ink: var(--primary);   /* first-section headline animation */
  --hero-wave: var(--accent);   /* the letter that "lights up" */

  /* On dark bands */
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, 0.7);  /* 7.5:1 on primary */

  /* Page-specific */
  --white: #FFFFFF;
  --marker: #F96167;              /* temporary "Exemplo: substituir" tags only */
  --focus: var(--ring);

  /* Type */
  --font-heading: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Space (8pt) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --gutter: 16px;
  --section-y: clamp(72px, 10vw, 128px);

  /* Shape: larger containers get larger radii */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shadow-float: 0 18px 40px -18px rgba(0, 43, 91, 0.45);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) { body { font-size: 1.125rem; } }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.1; text-wrap: balance; color: var(--primary); letter-spacing: -0.02em; }
/* Display text that isn't a heading still uses the heading face */
.falling__line, .plan__price, .step__num, .avatar { font-family: var(--font-heading); }
::selection { background: var(--selection); color: var(--primary); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { text-wrap: pretty; }

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

.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: var(--s2); top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-foreground);
  padding: var(--s1) var(--s2); border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: var(--s2); }

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

.section { padding-block: var(--section-y); }

.section-head { max-width: 40rem; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p { margin-top: var(--s2); color: var(--muted-foreground); font-size: 1.125rem; }
.section-head--light p { color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 52px; padding: 0 28px;
  border: 2px solid transparent; border-radius: var(--r-pill);
  font-weight: 700; font-size: 1.0625rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn--block { width: 100%; }

/* Orange always carries navy text: white on orange is only 2.6:1 */
.btn--accent { background: var(--accent); color: var(--primary); }
.btn--accent:hover { background: var(--accent-hover); }

.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: var(--white); }

.btn--ghost-light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 12px 12px auto; z-index: 50;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; gap: var(--s2);
  max-width: 1200px; margin-inline: auto;
  padding: 10px 10px 10px 22px;
  background: var(--white);
  border-radius: var(--r-pill);
  box-shadow: 0 1px 0 rgba(0, 43, 91, 0.06);
  transition: box-shadow 200ms var(--ease-out);
}
.site-header.is-scrolled .nav { box-shadow: 0 10px 30px -12px rgba(0, 43, 91, 0.35); }

.nav__logo img { width: 148px; height: auto; }
.nav__links {
  display: none;
  list-style: none; margin: 0 0 0 auto; padding: 0;
}
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: var(--r-pill);
  text-decoration: none; font-weight: 500; color: var(--primary);
  transition: background-color 160ms var(--ease-out);
}
.nav__links a:hover { background: var(--secondary); }
.nav__cta { margin-left: auto; }
.nav__toggle {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--secondary); color: var(--primary); cursor: pointer;
}

.nav__cta { white-space: nowrap; }
@media (max-width: 479px) {
  .nav__logo img { width: 128px; }
}
@media (max-width: 419px) {
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
}
.nav__links .nav__menu-cta a { margin-top: 6px; background: var(--accent); justify-content: center; font-weight: 700; }
@media (min-width: 1024px) { .nav__menu-cta { display: none; } }

/* Mobile menu panel */
@media (max-width: 1023px) {
  .nav__links.is-open {
    display: grid; gap: 2px;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    margin: 0; padding: var(--s1);
    background: var(--white); border-radius: var(--r-md);
    box-shadow: var(--shadow-float);
  }
  .nav__links.is-open a { display: flex; min-height: 48px; padding: 0 var(--s2); }
}
@media (min-width: 1024px) {
  .nav__links { display: flex; gap: 2px; }
  .nav__cta { margin-left: var(--s1); }
  .nav__toggle { display: none; }
}

/* --------------------------------------------------------------------------
   Primeira turma (first section)
   -------------------------------------------------------------------------- */
.intro {
  position: relative; overflow: hidden;
  background: var(--background);
  padding-top: calc(96px + 56px);   /* fixed header + section spacing */
  padding-bottom: 64px;
}
@media (min-width: 768px) { .intro { padding-top: calc(96px + 80px); padding-bottom: 96px; } }
.intro__glow {
  position: absolute; inset: 0 0 auto; height: 520px;
  background: radial-gradient(60% 60% at 50% 0%, #E8F0FF 0%, rgba(250, 251, 255, 0) 75%);
  pointer-events: none;
}
.intro__inner { position: relative; }
.intro__head { display: flex; flex-direction: column; align-items: center; text-align: center; }

.intro__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(0, 43, 91, 0.12); border-radius: var(--r-pill);
  background: var(--white);
  font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(0, 43, 91, 0.8);
  box-shadow: 0 8px 24px -18px rgba(0, 43, 91, 0.6);
}
.intro__dot { position: relative; display: block; width: 8px; height: 8px; }
.intro__dot::before, .intro__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
}
.intro__dot::before { opacity: 0.7; animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

.intro__title {
  margin-top: 24px; max-width: 920px;
  font-size: clamp(2.1rem, 7vw, 4.4rem);
  font-weight: 600; line-height: 1.08;
}
/* Letters light up in coral one after another, then return to navy */
.hero-letter {
  display: inline;
  animation: letter-wave 5.5s linear infinite;
  animation-delay: calc(var(--i, 0) * 0.09s);
}
@keyframes letter-wave {
  0%, 18%, 100% { color: var(--hero-ink); }
  9% { color: var(--hero-wave); }
}

.intro__lead {
  margin-top: 24px; max-width: 34rem;
  font-size: 1.0625rem; line-height: 1.625;
  color: rgba(51, 72, 86, 0.8);
}
.intro__lead strong { font-weight: 600; color: var(--primary); }
@media (min-width: 768px) { .intro__lead { font-size: 1.1875rem; } }

.intro__cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; }
.intro__note { margin-top: 16px; font-size: 0.875rem; color: var(--muted-foreground); }

/* Split CTA: label, divider, arrow that nudges right on hover */
.cta-split {
  display: inline-flex; align-items: stretch; min-height: 52px; max-width: 100%;
  overflow: hidden; border-radius: 8px;
  background: var(--accent); color: var(--accent-foreground);
  text-decoration: none;
  box-shadow: 0 16px 34px -18px rgba(255, 122, 87, 0.9);
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out);
}
.cta-split:hover { background: var(--primary); color: var(--white); }
.cta-split__label {
  display: flex; align-items: center; padding: 12px 20px;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; text-align: left;
}
.cta-split__divider { width: 1px; flex: none; background: rgba(0, 43, 91, 0.25); transition: background-color 300ms var(--ease-out); }
.cta-split:hover .cta-split__divider { background: rgba(255, 255, 255, 0.25); }
.cta-split__arrow { display: flex; flex: none; width: 52px; align-items: center; justify-content: center; }
.cta-split__arrow svg { width: 18px; height: 18px; transition: transform 300ms var(--ease-out); }
.cta-split:hover .cta-split__arrow svg { transform: translateX(2px); }
@media (min-width: 768px) { .cta-split__label { padding: 0 24px; font-size: 1.0625rem; } }

/* Entrance: each block rises in with its own --d delay */
.rise { animation: intro-rise var(--dur, 0.7s) var(--ease-out) var(--d, 0s) both; }
@keyframes intro-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--primary);
  color: var(--on-dark);
  overflow: hidden;
  --focus: var(--accent);
}
.hero .hero__title { color: var(--on-dark); }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 72% center;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 43, 91, 0.25) 0%, rgba(0, 43, 91, 0) 30%, rgba(0, 43, 91, 0) 60%, var(--primary) 100%);
}

.hero__content {
  position: relative; z-index: 2;
  padding: var(--s4) var(--gutter) var(--s6);
}
.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 5.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 6.4em; /* four short lines: keeps clear of the hero phrase */
}
.hero__lead {
  margin-top: var(--s3);
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--on-dark-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s4); }

@media (min-width: 600px) and (max-width: 1023px) {
  .hero__media img { aspect-ratio: 16 / 11; }
}

@media (min-width: 1024px) {
  .hero {
    display: flex; align-items: center;
    min-height: min(100dvh, 900px);
  }
  .hero__media {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 64%;
  }
  .hero__media img { height: 100%; aspect-ratio: auto; object-position: 68% center; }
  .hero__media::after {
    background: linear-gradient(90deg, var(--primary) 0%, rgba(0, 43, 91, 0.55) 22%, rgba(0, 43, 91, 0) 48%),
                linear-gradient(180deg, rgba(0, 43, 91, 0.35) 0%, rgba(0, 43, 91, 0) 25%);
  }
  .hero__content {
    width: 100%; max-width: 1200px; margin-inline: auto;
    padding: 140px var(--gutter) var(--s6);
  }
  .hero__lead { max-width: 28rem; }
}

/* --------------------------------------------------------------------------
   Chat bubbles (shared)
   -------------------------------------------------------------------------- */
.bubble {
  position: relative;
  max-width: 85%;
  padding: 8px 12px 6px;
  border-radius: 14px;
  background: var(--white);
  color: #111B21;
  font-size: 0.9375rem;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.13);
}
.bubble p { margin: 0; }
.bubble--in { align-self: flex-start; border-top-left-radius: 4px; }

/* Hero letters: "Verbo TO BE" falls away and a real conversation appears (driven by script.js).
   Without JS or with reduced motion, only the final phrase shows. */
.falling {
  position: absolute; z-index: 3;
  left: var(--gutter); right: var(--gutter);
  bottom: min(404px, calc(100% - 180px)); /* never higher than just below the header */
  display: grid; align-items: end;
  color: var(--white);
  pointer-events: none;
  text-shadow: 0 2px 18px rgba(0, 43, 91, 0.6);
}
.falling__line {
  grid-area: 1 / 1;
  font-size: clamp(1.875rem, 3.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.falling__old { display: none; }
.falling.is-animated .falling__old { display: block; }
.falling__word { display: inline-block; white-space: nowrap; }
.falling__letter { display: inline-block; will-change: transform; }
@media (min-width: 1024px) {
  .falling { left: 26%; right: 4%; bottom: min(calc(9% + 384px), calc(100% - 200px)); }
}

/* --------------------------------------------------------------------------
   Goal
   -------------------------------------------------------------------------- */
.goal__statement {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 22em;
}
/* "próxima viagem": a small plane flies along the words, painting a highlight
   behind them, then takes off past the end (script.js sets --trip 0→1 on scroll). */
.trip {
  --trip: 0;
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.trip::before {
  content: "";
  position: absolute; z-index: -1;
  left: -0.08em; right: -0.08em; bottom: 0.04em; height: 0.5em;
  border-radius: 0.12em;
  background: rgba(255, 122, 87, 0.38);
  transform: scaleX(var(--paint, 0));
  transform-origin: left center;
}
.trip__plane {
  position: absolute;
  left: 0; bottom: -0.5em;
  width: 0.72em; height: 0.72em;
  color: var(--accent);
  opacity: var(--plane-o, 0);
  transform:
    translateX(calc(var(--plane-x, 0) * 1px - 50%))
    translateY(calc(var(--lift, 0) * -0.9em))
    rotate(calc(45deg - var(--lift, 0) * 30deg)); /* the icon points up-right; 45° levels it */
  pointer-events: none;
}

@media (min-width: 900px) {
  .goal__grid {
    display: grid; grid-template-columns: 1fr auto;
    align-items: center; gap: clamp(48px, 6vw, 96px);
  }
}

/* Phone mockup: three screens you swipe between. Each screen folds on its edge
   like a door as it leaves (script.js sets --fold on every page while scrolling). */
.phone-demo {
  --phone-w: min(300px, 80vw);
  display: flex; flex-direction: column; align-items: center; gap: var(--s3);
  margin-top: clamp(48px, 7vw, 72px);
}
@media (min-width: 900px) { .phone-demo { margin-top: 0; } }

.phone {
  width: var(--phone-w);
  aspect-ratio: 9 / 16.5;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(145deg, #1B3A5E, #061A33 60%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    0 40px 70px -30px rgba(0, 43, 91, 0.55),
    0 12px 24px -12px rgba(0, 43, 91, 0.35);
}
.phone__screen {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  border-radius: 38px;
  overflow: hidden;
  background: var(--secondary);
}
.phone__status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px 0;
  font: 600 13px/1 var(--font-body); color: var(--primary);
}
.phone__island { width: 84px; height: 24px; border-radius: 999px; background: #061A33; }
.phone__signal { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.phone__signal i { width: 3px; border-radius: 1px; background: currentColor; }
.phone__signal i:nth-child(1) { height: 4px; }
.phone__signal i:nth-child(2) { height: 6px; }
.phone__signal i:nth-child(3) { height: 8px; }
.phone__signal i:nth-child(4) { height: 11px; }
.phone__appbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 6px;
}
.phone__brand { font: 700 15px/1 var(--font-heading); color: var(--primary); letter-spacing: -0.01em; }
.phone__count {
  padding: 5px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  font: 600 11px/1 var(--font-body); color: var(--muted-foreground);
}

.phone__track {
  flex: 1;
  display: flex;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  outline: none;
}
.phone__track::-webkit-scrollbar { display: none; }
.phone__track:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.phone__page {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: 10px 14px 28px;
}
.phone__card {
  --fold: 0; /* -1 leaving left … 0 centered … 1 waiting on the right */
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  padding: 22px 18px;
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 43, 91, 0.06), 0 10px 24px -14px rgba(0, 43, 91, 0.3);
  transform-origin: var(--hinge, center) center;
  transform: perspective(700px) rotateY(calc(var(--fold) * 80deg));
  backface-visibility: hidden;
  will-change: transform;
}
/* shade deepens as the panel turns away, like light falling off a door */
.phone__card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--primary);
  opacity: calc(var(--shade, 0) * 0.35);
  pointer-events: none;
}
.phone__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--accent); color: var(--primary);
}
.phone__icon svg { width: 22px; height: 22px; }
.phone__card h3 { margin-top: 16px; font-size: 1.25rem; line-height: 1.2; }
.phone__card > p { margin-top: 8px; font-size: 0.875rem; line-height: 1.5; color: var(--muted-foreground); }
.phone__demo { margin-top: auto; padding-top: 16px; }

/* screen 1: chat */
.phone__chat { display: flex; flex-direction: column; gap: 6px; }
.bubble {
  max-width: 85%; padding: 8px 12px; border-radius: 16px;
  font: 500 12.5px/1.35 var(--font-body);
}
.bubble--them { align-self: flex-start; background: var(--secondary); color: var(--foreground); border-bottom-left-radius: 4px; }
.bubble--you { align-self: flex-end; background: var(--primary); color: var(--on-dark); border-bottom-right-radius: 4px; }

/* screen 2: audio */
.audio {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 16px; background: var(--secondary);
}
.audio__play {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary);
  position: relative;
}
.audio__play::after {
  content: ""; position: absolute; left: 11px; top: 9px;
  border-left: 10px solid var(--on-dark); border-block: 6px solid transparent;
}
.audio__wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 26px; }
.audio__wave i { flex: 1; border-radius: 2px; background: var(--primary); opacity: 0.35; }
.audio__wave i:nth-child(-n+7) { opacity: 1; background: var(--accent); }
.audio__wave i:nth-child(4n+1) { height: 40%; }
.audio__wave i:nth-child(4n+2) { height: 85%; }
.audio__wave i:nth-child(4n+3) { height: 60%; }
.audio__wave i:nth-child(4n+4) { height: 100%; }
.audio__time { font: 600 11px/1 var(--font-body); color: var(--muted-foreground); }
.audio__en { margin-top: 12px; font: 600 15px/1.3 var(--font-heading); color: var(--primary); }
.audio__pt { margin-top: 2px; font-size: 12.5px; color: var(--muted-foreground); }

/* screen 3: flashcard */
.flash {
  display: grid; gap: 6px; place-items: center; text-align: center;
  padding: 20px 12px; border-radius: 16px;
  background: var(--primary); color: var(--on-dark);
}
.flash__word { font: 700 18px/1.2 var(--font-heading); }
.flash__meaning { font-size: 12.5px; color: var(--on-dark-muted); }
.flash__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.flash__actions span {
  padding: 9px 0; border-radius: 12px; text-align: center;
  font: 600 12.5px/1 var(--font-body);
  background: var(--secondary); color: var(--primary);
}
.flash__actions span:last-child { background: var(--accent); }

.phone__home {
  position: absolute; left: 50%; bottom: 8px; translate: -50% 0;
  width: 110px; height: 4px; border-radius: 999px; background: var(--primary); opacity: 0.85;
}

/* controls under the phone */
.phone-nav { display: flex; align-items: center; gap: var(--s2); }
.phone-nav__btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--card); color: var(--primary);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}
.phone-nav__btn svg { width: 20px; height: 20px; }
.phone-nav__btn:hover:not(:disabled) { border-color: var(--primary); }
.phone-nav__btn:disabled { opacity: 0.35; cursor: default; }
.phone-nav__dots { display: flex; gap: 4px; }
.phone-nav__dots button {
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.phone-nav__dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--input);
  transition: width 0.25s, background-color 0.25s;
}
.phone-nav__dots button[aria-current="true"]::before { width: 22px; background: var(--primary); }
.phone-nav__dots button:focus-visible, .phone-nav__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
  .phone__card { transform: none !important; }
  .phone__card::after { opacity: 0 !important; }
}

/* --------------------------------------------------------------------------
   How it works (dark band, four steps)
   -------------------------------------------------------------------------- */
.how {
  position: relative; overflow: hidden;
  padding-block: 64px;
  background: var(--primary); color: var(--on-dark);
  --focus: var(--accent);
}
@media (min-width: 768px) { .how { padding-block: 96px; } }
.how__glow {
  position: absolute; right: -96px; top: 40px;
  width: 288px; height: 288px; border-radius: 50%;
  background: rgba(255, 122, 87, 0.2);   /* accent at 20% */
  filter: blur(64px);
  pointer-events: none;
}
.how__inner { position: relative; }
.how__head { max-width: 42rem; }
.eyebrow {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent);                  /* 5.5:1 on primary; only on dark bands */
}
.how__head h2 {
  margin-top: 12px;
  font-size: clamp(1.75rem, 4.4vw, 2.75rem);
  font-weight: 600; line-height: 1.25;
  color: var(--on-dark);
}
.how__head > p:last-child { margin-top: 16px; font-size: 1.0625rem; line-height: 1.625; color: var(--on-dark-muted); }

.how-steps { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 768px) { .how-steps { grid-template-columns: 1fr 1fr; gap: 24px; } }
.how-step {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.how-step:hover { border-color: rgba(255, 122, 87, 0.4); background: rgba(255, 255, 255, 0.1); }
.how-step__top { display: flex; align-items: center; justify-content: space-between; }
.how-step__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: var(--accent-foreground);
}
.how-step__icon svg { width: 20px; height: 20px; }
.how-step__num {
  font-family: var(--font-heading);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.45);     /* decorative: the list itself carries the order */
}
.how-step__kicker {
  margin-top: 20px;
  font-size: 0.8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255, 122, 87, 0.9);
}
.how-step h3 { margin-top: 6px; font-size: 1.25rem; font-weight: 600; line-height: 1.375; color: var(--on-dark); }
.how-step__text { margin-top: 8px; font-size: 1rem; line-height: 1.625; color: var(--on-dark-muted); }

.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--secondary); color: var(--primary);
  font-weight: 800; font-size: 1.375rem;
}
.avatar--photo {
  width: 112px; height: 112px; object-fit: cover;
  box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--accent);
}

/* --------------------------------------------------------------------------
   Tutors
   -------------------------------------------------------------------------- */
.tutor-list { display: grid; gap: var(--s3); }
.tutor {
  padding: var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
}
.tutor h3 { margin-top: var(--s3); font-size: 1.375rem; }
.tutor__origin { margin-top: 4px; color: var(--muted-foreground); font-weight: 600; }
.tutor p:not(.tutor__origin) { margin-top: var(--s2); }
@media (min-width: 768px) { .tutor-list { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */
/* Founder statement: a letter, then mission / vision / values */
.founder { background: var(--secondary); }
.eyebrow--dark { color: var(--muted-foreground); margin-bottom: 12px; } /* coral text fails contrast on light */
.founder__grid { display: grid; gap: var(--s4); }
.letter {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 43, 91, 0.05), 0 24px 48px -32px rgba(0, 43, 91, 0.35);
}
.letter__quote { width: 40px; height: 40px; color: var(--accent); margin-bottom: var(--s2); }
.letter p { font-size: 1.125rem; line-height: 1.65; color: var(--foreground); }
.letter p + p { margin-top: var(--s2); }
.letter__sign {
  display: flex; align-items: center; gap: 14px;
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid var(--border);
}
.letter__sign strong { display: block; font-family: var(--font-heading); font-size: 1.125rem; color: var(--primary); }
.letter__role { font-size: 0.9375rem; color: var(--muted-foreground); }
.letter__avatar {
  flex: none; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: var(--on-dark);
  font: 700 1rem/1 var(--font-heading);
}
/* parts of the template still to be written */
.fill { background: var(--selection); color: var(--primary); border-radius: 4px; padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.founder__side { display: grid; gap: var(--s3); align-content: start; }
/* Founder photo: assets/fundador.jpg. Until that file exists, a dashed slot
   says where to put it (script.js adds .is-empty when the image fails). */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 360px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--muted);
  box-shadow: 0 24px 48px -32px rgba(0, 43, 91, 0.45);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__empty { display: none; }
.portrait.is-empty { border: 2px dashed var(--input); box-shadow: none; }
.portrait.is-empty img { display: none; }
.portrait.is-empty .portrait__empty {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 6px;
  padding: var(--s3); text-align: center;
  color: var(--muted-foreground); font-size: 0.9375rem;
}
.portrait__empty svg { width: 40px; height: 40px; color: var(--primary); margin-bottom: 6px; }
.portrait__empty strong { font-family: var(--font-heading); font-size: 1.125rem; color: var(--primary); }
.portrait__empty code { font-size: 0.875em; background: var(--card); padding: 2px 6px; border-radius: 6px; }
/* without the placeholder markers (launch mode), an empty slot just disappears */
body:not(.show-placeholders) .portrait.is-empty { display: none; }

.letter__avatar { position: relative; overflow: hidden; }
.letter__avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(2.6); transform-origin: 50% 47%; /* zoom in on the face of the full portrait */
}
.letter__avatar img.is-missing { display: none; }

@media (min-width: 900px) {
  .founder__grid { grid-template-columns: 1.6fr 1fr; gap: var(--s5); align-items: start; }
  .founder__side { position: sticky; top: 120px; } /* photo stays beside the letter while you read */
}


/* --------------------------------------------------------------------------
   Plans
   -------------------------------------------------------------------------- */
.plans { background: var(--primary); color: var(--on-dark); --focus: var(--accent); }
.plans h2 { color: var(--on-dark); }
.plan-list { display: grid; gap: var(--s3); align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--s4);
  border-radius: var(--r-lg);
  background: var(--card);
  color: var(--foreground);
  --focus: var(--ring);
}
.plan--featured { box-shadow: inset 0 0 0 3px var(--accent); }
.plan__tag {
  align-self: flex-start;
  margin-bottom: var(--s2); padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--accent); color: var(--primary);
  font-size: 0.875rem; font-weight: 700;
}
.plan__name { font-size: 1.5rem; }
.plan__price {
  display: flex; align-items: baseline; gap: 4px;
  margin-top: var(--s2);
  font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.plan__currency { font-size: 1.25rem; font-weight: 700; letter-spacing: 0; }
.plan__period { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted-foreground); }
.plan__fit { margin-top: 12px; color: var(--muted-foreground); }
.plan .btn { margin-top: auto; text-align: center; line-height: 1.2; padding-block: 12px; }

.checklist { display: grid; gap: 12px; margin: var(--s3) 0 var(--s4); }
.checklist__link { font-weight: 700; color: var(--primary); text-underline-offset: 3px; }
.checklist li {
  position: relative; padding-left: 30px; line-height: 1.45;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002B5B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
/* Founder offer (Essencial): regular price struck through, founder price, terms */
.offer {
  margin-top: var(--s2); padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--secondary);
}
.offer__was { font-size: 0.9375rem; color: var(--muted-foreground); }
.offer__was s { text-decoration-thickness: 2px; text-decoration-color: var(--destructive); }
.offer__label {
  margin-top: 10px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary);
}
.offer .plan__price { margin-top: 4px; }
.plan__cents { font-size: 1.75rem; letter-spacing: -0.02em; }
.offer__terms { margin-top: 10px; font-size: 0.9375rem; line-height: 1.45; color: var(--foreground); }
.offer__terms span { display: block; color: var(--muted-foreground); }
.offer__terms strong { color: var(--primary); }
.offer__save {
  display: inline-block; margin-top: 10px; padding: 5px 12px;
  border-radius: 10px; background: var(--accent); color: var(--primary);
  font-size: 0.875rem; font-weight: 700;
}
.plan--founder .checklist { margin-bottom: var(--s3); }
.offer__notes { display: grid; gap: 12px; margin-bottom: var(--s3); }
.offer__notes li { display: flex; gap: 10px; font-size: 0.875rem; line-height: 1.5; color: var(--foreground); }
.offer__notes svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--primary); }
.offer__notes strong { color: var(--primary); }
.offer__help { margin-top: 14px; text-align: center; font-size: 0.875rem; color: var(--muted-foreground); }
.offer__help a { font-weight: 700; color: var(--primary); text-underline-offset: 3px; }
.offer__after { margin-top: 8px; text-align: center; font-size: 0.8125rem; color: var(--muted-foreground); }

/* Coming soon ("Em breve"): corner ribbon, quieter colors, no button */
.plan--soon { overflow: hidden; background: #F4F7FB; }
@media (min-width: 1024px) { .plan--soon { align-self: start; } }
.plan__ribbon {
  position: absolute; top: 32px; right: -54px;
  width: 210px; padding: 9px 0;
  transform: rotate(45deg);
  background: var(--accent); color: var(--primary);
  text-align: center; font-size: 0.875rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 6px 14px -6px rgba(0, 43, 91, 0.5);
}
.plan--soon .plan__name { padding-right: 72px; } /* keep long names clear of the ribbon */
.plan--soon .plan__fit { padding-right: 56px; }
.plan--soon .plan__price { color: var(--muted-foreground); }
.plan--soon .checklist li::before {
  background-color: var(--border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357697D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E");
}
.plan__soon-btn {
  gap: 8px;
  border: 2px dashed var(--input); background: transparent;
  color: var(--muted-foreground); cursor: not-allowed;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9375rem;
}
.plan__soon-btn::before {
  content: ""; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357697D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan__soon-btn:active { transform: none; }

@media (min-width: 1024px) {
  .plan-list { grid-template-columns: repeat(3, 1fr); }
  .plan--featured { transform: translateY(-16px); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .plan-list { grid-template-columns: 1fr 1fr; }
  .plan--featured { grid-column: 1 / -1; order: -1; }
}

/* --------------------------------------------------------------------------
   Enrollment steps
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: var(--s4); counter-reset: none; position: relative; }
.step { position: relative; }
.step__num {
  position: relative; z-index: 1;
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--primary);
  font-size: 1.5rem; font-weight: 800;
  box-shadow: 0 0 0 8px var(--background);
}
.step h3 { margin-top: var(--s2); }
.step p { margin-top: var(--s1); color: var(--muted-foreground); }
.step p a { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--primary); text-underline-offset: 3px; }
.step p a::after { content: " →"; }

@media (max-width: 767px) {
  .step { padding-left: 80px; min-height: 56px; }
  .step__num { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 12px; }
  .steps::before {
    content: ""; position: absolute; left: 27px; top: 28px; bottom: 40px;
    border-left: 2px dashed rgba(0, 43, 91, 0.3);
  }
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
  .steps::before {
    content: ""; position: absolute; top: 28px; left: 28px; right: 12%;
    border-top: 2px dashed rgba(0, 43, 91, 0.3);
  }
}

/* --------------------------------------------------------------------------
   Level test (quiz.js / quiz-data.js)
   -------------------------------------------------------------------------- */
.quiz-section { background: var(--secondary); }
.quiz [hidden] { display: none !important; } /* .btn and block spans would otherwise override it */
.quiz {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 56px);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 43, 91, 0.05), 0 32px 64px -40px rgba(0, 43, 91, 0.4);
}
.quiz__eyebrow {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-foreground);
}
.quiz .btn { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9375rem; }
.quiz .btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.quiz .btn--accent:disabled:hover { background: var(--accent); }
.quiz .btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.quiz__back { color: var(--primary); background: transparent; border-color: var(--border); gap: 6px; }
.quiz__back:hover { border-color: var(--primary); }
.quiz__back svg { width: 18px; height: 18px; }

/* start */
.quiz__start { text-align: center; }
.quiz__title { margin-top: 12px; font-size: clamp(1.875rem, 5vw, 2.75rem); line-height: 1.15; }
.quiz__subtitle { margin: var(--s2) auto 0; max-width: 34rem; font-size: 1.125rem; color: var(--muted-foreground); }
.quiz__facts {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  margin-top: var(--s4); text-align: left;
}
.quiz__facts li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--secondary); color: var(--primary);
  font-size: 0.9375rem; font-weight: 600; line-height: 1.3;
}
.quiz__facts svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 8px; background: var(--accent); color: var(--primary); }
.quiz__cta { margin-top: var(--s4); min-width: min(100%, 280px); }
@media (min-width: 640px) { .quiz__facts { grid-template-columns: repeat(3, 1fr); } .quiz__facts li { flex-direction: column; text-align: center; padding: 16px 10px; } }
.quiz__badge-icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 18px;
  background: var(--accent); color: var(--primary);
}
.quiz__badge-icon svg { width: 28px; height: 28px; }
.quiz__start .quiz__title { margin-top: var(--s2); }
.quiz__subtitle--strong { margin-top: 12px; font-weight: 700; color: var(--primary); }

/* sign-up + confirmation (before the questions) */
.quiz__lead, .quiz__ready { text-align: center; }
.quiz__step-title { margin-top: 10px; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; outline: none; }
.quiz__step-title:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 6px; }
.quiz__ready .quiz__step-title { margin-top: var(--s2); }
.quiz__step-text { margin: 12px auto 0; max-width: 32rem; font-size: 1.0625rem; color: var(--muted-foreground); }
.quiz__step-text strong { color: var(--primary); overflow-wrap: anywhere; }
.quiz__step-small { margin-top: 8px; font-size: 0.875rem; color: var(--muted-foreground); }
.quiz__lead-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 30rem; margin: var(--s4) auto 0; text-align: left; }
.qfield { display: grid; gap: 6px; min-width: 0; }
.qfield label { font-size: 0.9375rem; font-weight: 600; color: var(--primary); }
.qfield input[type="text"], .qfield input[type="email"], .qfield input[type="tel"] {
  width: 100%; min-height: 52px; padding: 0 16px; min-width: 0;
  border: 1.5px solid var(--input); border-radius: var(--r-sm);
  background: var(--card); color: var(--foreground); font: inherit; font-size: 1rem;
}
.qfield input::placeholder { color: #7A8CA3; }
.qfield input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--primary); }
.qfield.has-error input { border-color: var(--destructive); }
.qfield__error { font-size: 0.875rem; font-weight: 500; color: var(--destructive); }
.qfield__error:empty { display: none; }
.qcheck { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--foreground) !important; font-size: 0.875rem !important; line-height: 1.5; cursor: pointer; }
.qcheck input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--primary); }
.qcheck a { color: var(--primary); font-weight: 600; }
.qhp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.quiz__lead-form .quiz__nav { margin-top: 8px; }
.quiz__sent {
  margin: var(--s3) auto 0; max-width: 32rem; padding: 12px 16px;
  border-radius: var(--r-sm); background: var(--secondary);
  font-size: 0.9375rem; font-weight: 600; color: var(--primary); overflow-wrap: anywhere;
}

/* questions */
.quiz__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); }
.quiz__count { font-weight: 700; color: var(--primary); }
.quiz__bar { height: 8px; margin-top: 12px; border-radius: 999px; background: var(--muted); overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 0.4s var(--ease-out); }
.quiz__form { margin-top: var(--s4); }
.quiz__card { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz__heading { display: block; width: 100%; padding: 0; outline: none; }
.quiz__heading:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 6px; }
.quiz__text {
  display: block;
  font-family: var(--font-heading); font-weight: 600; color: var(--primary);
  font-size: clamp(1.3125rem, 3.4vw, 1.625rem); line-height: 1.3;
}
.quiz__lead { display: block; margin-top: 12px; font-size: 0.9375rem; font-weight: 600; color: var(--muted-foreground); }
.quiz__quote {
  display: block; margin-top: 10px; padding: 14px 18px;
  border-left: 4px solid var(--accent); border-radius: var(--r-sm);
  background: var(--secondary);
  font-family: var(--font-heading); font-weight: 600; color: var(--primary);
  font-size: clamp(1.125rem, 3vw, 1.375rem); line-height: 1.35;
}
.quiz__ask { display: block; margin-top: 14px; font-weight: 600; color: var(--foreground); white-space: pre-line; }
.quiz__options { display: grid; gap: 10px; margin-top: var(--s3); }
.quiz__option {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--r-md);
  background: var(--card); cursor: pointer;
  transition: border-color 0.18s var(--ease-out), background-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.quiz__option:hover { border-color: var(--input); background: var(--secondary); }
.quiz__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quiz__letter {
  flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--secondary); color: var(--primary);
  font: 700 0.9375rem/1 var(--font-heading);
  transition: background-color 0.18s, color 0.18s;
}
.quiz__option-text { font-size: 1rem; line-height: 1.4; color: var(--foreground); }
.quiz__option:has(input:checked) { border-color: var(--primary); background: var(--secondary); box-shadow: 0 0 0 1px var(--primary); }
.quiz__option:has(input:checked) .quiz__letter { background: var(--accent); }
.quiz__option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: var(--s4); }
.quiz__next { margin-left: auto; min-width: 180px; }
@media (max-width: 420px) { .quiz__next { min-width: 0; flex: 1; } }

/* gentle slide between questions */
.quiz__card.is-in-next { animation: quiz-in-next 0.35s var(--ease-out); }
.quiz__card.is-in-back { animation: quiz-in-back 0.35s var(--ease-out); }
@keyframes quiz-in-next { from { opacity: 0; transform: translateX(18px); } }
@keyframes quiz-in-back { from { opacity: 0; transform: translateX(-18px); } }

/* result */
.quiz__result { text-align: center; }
.quiz__score { display: grid; justify-items: center; gap: 4px; margin-top: var(--s2); }
.quiz__score-num {
  display: grid; place-items: center;
  min-width: 120px; height: 120px; padding: 0 22px; border-radius: 36px;
  background: var(--primary); color: var(--on-dark);
  font: 800 3.25rem/1 var(--font-heading); letter-spacing: -0.03em;
  box-shadow: 0 0 0 6px var(--card), 0 0 0 9px var(--accent);
  grid-auto-flow: column; align-items: baseline;
}
.quiz__score-num small { font-size: 1.5rem; font-weight: 700; opacity: 0.7; }
.quiz__score-label { margin-top: 10px; font-weight: 700; color: var(--primary); }
.quiz__meter { display: flex; justify-content: center; gap: 6px; margin-top: var(--s3); }
.quiz__meter span { width: 22px; height: 8px; border-radius: 999px; background: var(--muted); }
.quiz__meter span.is-on { background: var(--accent); }
.quiz__result-title { margin-top: var(--s4); font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; outline: none; }
.quiz__result-title:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 6px; }
.quiz__result-text { margin: 12px auto 0; max-width: 34rem; font-size: 1.0625rem; color: var(--muted-foreground); }
.quiz__result-highlight { margin: 12px auto 0; max-width: 34rem; font-size: 1.0625rem; font-weight: 700; color: var(--primary); }
.quiz__pitch-title { font-size: clamp(1.25rem, 3.2vw, 1.5rem); line-height: 1.25; color: var(--primary); }
.quiz__pitch-tagline { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; }
.quiz__next-step {
  display: grid; justify-items: center; gap: 12px;
  margin-top: var(--s4); padding: var(--s3);
  border-radius: var(--r-md); background: var(--secondary);
}
.quiz__next-step p { max-width: 32rem; color: var(--foreground); }
.quiz__next-step strong, .quiz__next-step .quiz__pitch-tagline { color: var(--primary); }
.quiz__next-step .quiz__cta { margin-top: 0; }
.quiz__next-step .btn { width: min(100%, 340px); }
.quiz .btn { text-align: center; line-height: 1.2; padding-block: 12px; }
.quiz__share { display: grid; justify-items: center; gap: 12px; width: 100%; }
.quiz__share-menu {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  width: 100%; padding-top: 4px;
}
.quiz__share-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--primary);
  font: 600 0.875rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: border-color 0.18s, background-color 0.18s;
}
.quiz__share-link:hover { border-color: var(--primary); }
.quiz__share-link:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.quiz__share-link[data-share="copy"] { background: var(--primary); border-color: var(--primary); color: var(--on-dark); }
.quiz__share-status { flex-basis: 100%; text-align: center; font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.quiz__share-status:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .quiz__card.is-in-next, .quiz__card.is-in-back { animation: none; }
  .quiz__bar span { transition: none; }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-list { display: grid; gap: var(--s2); }
.contact-item {
  display: flex; align-items: center; gap: var(--s2);
  height: 100%; padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  text-decoration: none;
  transition: box-shadow 180ms var(--ease-out);
}
a.contact-item:hover { box-shadow: 0 10px 28px -14px rgba(0, 43, 91, 0.4); }
.contact-item svg {
  flex: none; width: 48px; height: 48px; padding: 12px;
  border-radius: 50%; background: var(--secondary); color: var(--primary);
}
.contact-item > span { display: grid; min-width: 0; color: var(--muted-foreground); overflow-wrap: anywhere; }
.contact-item strong { color: var(--primary); font-size: 1.0625rem; }
@media (min-width: 720px) { .contact-list { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--primary); color: var(--on-dark-muted); padding-block: var(--s5); --focus: var(--accent); }
.footer__inner { display: grid; gap: var(--s3); justify-items: start; }
.footer__logo { width: 160px; filter: brightness(0) invert(1); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.footer__links a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.footer__links a:hover { color: var(--accent); text-decoration: underline; }
.footer__legal { font-size: 0.875rem; }
@media (min-width: 1024px) {
  .footer__inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer__links { justify-content: flex-end; }
  .footer__legal { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Placeholder markers (turn off with CONFIG.showPlaceholders in script.js)
   -------------------------------------------------------------------------- */
.show-placeholders [data-placeholder] { outline: 2px dashed var(--marker); outline-offset: 4px; position: relative; }
.show-placeholders [data-placeholder]::after {
  content: "Exemplo: substituir";
  position: absolute; top: -12px; right: 12px; z-index: 4;
  padding: 2px 8px; border-radius: 6px;
  background: var(--marker); color: var(--primary);
  font-size: 0.75rem; font-weight: 700; line-height: 1.4;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .hero-letter, .intro__dot::before { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}


/* --------------------------------------------------------------------------
   Wavy section edges: the navy bands (hero photo, Como funciona, Planos,
   footer) end in a soft S-curve instead of a straight line. Each band
   overlaps its neighbours by one wave height; the mask cuts the curve out so
   the neighbour shows through, whatever its colour.
   -------------------------------------------------------------------------- */
:root {
  --wave: clamp(36px, 6vw, 88px);
  --wave-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 72C240 8 480 0 720 42S1200 116 1440 28V120H0Z'/%3E%3C/svg%3E");
  --wave-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V54C1200 118 960 112 720 74S240 4 0 92Z'/%3E%3C/svg%3E");
  --solid: linear-gradient(#000, #000);
}
.hero, .how, .plans, .footer {
  position: relative; z-index: 1;
  margin-block: calc(var(--wave) * -1);
  border-block: var(--wave) solid transparent; /* room for the curve; background still paints under it */
  -webkit-mask:
    var(--wave-top) top / 100% var(--wave) no-repeat,
    var(--solid) center / 100% calc(100% - 2 * var(--wave) + 2px) no-repeat,
    var(--wave-bottom) bottom / 100% var(--wave) no-repeat;
          mask:
    var(--wave-top) top / 100% var(--wave) no-repeat,
    var(--solid) center / 100% calc(100% - 2 * var(--wave) + 2px) no-repeat,
    var(--wave-bottom) bottom / 100% var(--wave) no-repeat;
}
/* the footer is the last thing on the page: curve on top only */
.footer {
  margin-bottom: 0; border-bottom: 0;
  -webkit-mask:
    var(--wave-top) top / 100% var(--wave) no-repeat,
    var(--solid) bottom / 100% calc(100% - var(--wave) + 1px) no-repeat;
          mask:
    var(--wave-top) top / 100% var(--wave) no-repeat,
    var(--solid) bottom / 100% calc(100% - var(--wave) + 1px) no-repeat;
}
/* The mask already clips at the outer edge, so let content (the photo) reach
   into the curved strip instead of stopping at a straight line above it. */
.hero { overflow: visible; }
main { overflow-x: clip; } /* nothing may widen the page sideways */
.hero__media { margin-top: calc(var(--wave) * -1); }
@media (min-width: 1024px) {
  .hero__media { margin-top: 0; top: calc(var(--wave) * -1); bottom: calc(var(--wave) * -1); }
}

