/*
  O Thiago Comunica — Desvendando a Geração Z
  main.css v2.0 — consumes tokens.css. Pure CSS, no framework, no CDN.

  Built to ui-guide v2.0. Three structural ideas carry the whole page:
    1. VIOLET IS LIGHT — halos/pools/lit hairlines live on the background plane.
       Buttons, chips, badges and icons stay flat solid. No gradient inside any UI object.
    2. TWO MOTIFS FROM THE LOGO — hexagon = system/method; speech bubble = conversation.
       Bubbles use an asymmetric radius; that asymmetry is what stops the page reading as boxes.
    3. ONE SPATIAL LOGIC PER SECTION — max two composition devices each (guide §6.2).
*/

/* ============================================================
   1. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  background: var(--ink-800);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain — gives the flat dark base actual matter (guide §3.5).
   ~0.4 KB inline, zero requests, no gradient, no blur. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: var(--leading-tight);
  font-weight: 700;
}

strong { font-weight: 700; }
em { font-style: italic; }

p { max-width: 66ch; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -64px;
  z-index: 9999;
  padding: var(--space-3) var(--space-5);
  background: var(--violet-600);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: top var(--transition-base);
}
.skip-link:focus { top: var(--space-3); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   2. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 1024px) {
  .container { padding-inline: var(--space-10); }
}

.section {
  position: relative;
  padding-block: var(--space-16);
  isolation: isolate;
}
@media (min-width: 768px) {
  .section { padding-block: var(--space-24); }
}

.section--surface { background: var(--ink-700); }
.section--well { background: var(--ink-900); }

section[id] { scroll-margin-top: calc(var(--header-h) + var(--space-4)); }

/* Diagonal lit seam across a section boundary (guide §6.2 — max 3 per page) */
/* left/width stay at 0/100%: the section is already full-bleed, and any negative offset
   here lands in document.scrollWidth and creates real horizontal overflow. Rotating about
   left-center keeps the box inside the viewport. */
.section--seam::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 79, 140, 0.55) 30%, rgba(126, 79, 140, 0.55) 70%, transparent);
  transform: rotate(-1.1deg);
  transform-origin: left center;
  pointer-events: none;
}

/* Ambient violet light — background plane only, never inside a UI object */
.ambient {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 16, 32, 0.95) 0%, rgba(75, 46, 82, 0.34) 38%, rgba(18, 18, 18, 0) 70%);
}

/* Hexagon watermark — the logo's structural motif at page scale */
.hex-motif {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  animation: motif-drift var(--drift-duration) ease-in-out infinite alternate;
}
.hex-motif svg { width: 100%; height: 100%; }

@keyframes motif-drift {
  from { rotate: -3deg; translate: 0 0; }
  to { rotate: 4deg; translate: 0 16px; }
}

/* ============================================================
   3. TYPOGRAPHY COMPONENTS
   ============================================================ */
.section-head {
  position: relative;
  max-width: 44rem;
  margin-bottom: var(--space-12);
}
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--violet-200);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--violet-400);
  flex-shrink: 0;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.028em;
  max-width: 34ch;
}
.section-head--center .section-title { margin-inline: auto; }

/* Explicit meaning-unit line breaks — never rely on text-wrap alone (guide §4.1) */
.ln { display: block; }
@media (max-width: 519px) {
  .ln { display: inline; }
  .ln + .ln::before { content: " "; }
}

.section-lede {
  margin-top: var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-lg);
  font-weight: 500;
  max-width: 54ch;
}
.section-head--center .section-lede { margin-inline: auto; }

/* Hollow oversized numeral behind a section head (guide §6.2) */
.ghost-num {
  position: absolute;
  z-index: -1;
  top: -0.34em;
  right: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-ghost);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(78, 78, 85, 0.20);
  user-select: none;
}
@supports (-webkit-text-stroke: 2px black) {
  .ghost-num {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(78, 78, 85, 0.55);
  }
}

/* Accent as a paint swatch BEHIND off-white text — never as font color */
.hl {
  position: relative;
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.08em; right: -0.08em; bottom: 0.02em;
  height: 0.18em;
  background: var(--violet-600);
  border-radius: var(--radius-sm);
}

/* Hand-drawn marker stroke in warm bone — the annotation layer (guide §3.2b) */
.mark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9.6c31-4.4 63-6.8 97-5.8 32 1 60 3.4 97 6.2' fill='none' stroke='%23EDE2D2' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 0.44em;
  background-position: 0 92%;
  padding-bottom: 0.06em;
}

/* --- "Geração Z" ornament (guide §4.3) — max 3 per page -------------
   The word stays real text in the flow; only the glyph is decorated. */
.gz { white-space: nowrap; }
.gz .z {
  display: inline-block;
  position: relative;
  font-weight: 800;
  color: var(--violet-200);
  transform: rotate(-4deg) scale(1.1);
  transform-origin: 50% 62%;
}
.gz .z::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -38% -52%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 79, 140, 0.55) 0%, rgba(75, 46, 82, 0.22) 45%, transparent 72%);
}
/* The stroke is violet-200, not violet-400: this glyph is meaningful text sitting on its
   own violet light pool, where a violet-400 outline measures ~1.8:1. violet-200 clears the
   3:1 large-text floor against the pool and 8.97:1 against the base. */
@supports (-webkit-text-stroke: 2px black) {
  .gz--sticker .z {
    color: transparent;
    -webkit-text-stroke: 2px var(--violet-200);
  }
}
.gz--solid .z { transform: rotate(-3deg) scale(1.06); }

/* ============================================================
   4. BUTTONS — always flat solid, always symmetric, never pill
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  text-align: center;
  white-space: normal;
  transition: background-color var(--transition-base), border-color var(--transition-base), transform var(--transition-fast);
}
.btn::after {
  content: "\2192";
  font-size: 1.05em;
  line-height: 1;
  transition: transform var(--transition-base);
}
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--violet-600); color: var(--text-primary); }
.btn-primary:hover { background: var(--violet-500); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--violet-400);
}
.btn-secondary:hover { background: var(--violet-600); border-color: var(--violet-600); }

.btn-block { width: 100%; }

.btn-sm {
  min-height: 44px;  /* touch-target floor — never go below */
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.cta-support {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
/* violet-200, not violet-400: this is a rendered glyph, so it answers to the text
   contrast floor (8.97:1) rather than the 3:1 UI-component one. */
.cta-support .dot { color: var(--violet-200); }

/* ============================================================
   5. SURFACES — card, bubble, hex seal
   ============================================================ */
.card {
  background: var(--ink-600);
  border: 1px solid var(--ink-400);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
@media (min-width: 768px) { .card { padding: var(--space-8); } }
.section--surface .card { background: var(--ink-800); }

/* Lit hairline on the top edge — light, not a glow */
.card--lit {
  border-top-color: rgba(126, 79, 140, 0.75);
  box-shadow: var(--glow-edge);
}

/* Speech bubble — the asymmetric radius is the whole point */
.bubble {
  position: relative;
  padding: var(--space-5) var(--space-6);
  background: var(--ink-600);
  border: 1px solid var(--ink-400);
  border-radius: var(--radius-bubble);
}
.section--surface .bubble { background: var(--ink-800); }
.bubble--r { border-radius: var(--radius-bubble-r); }
.bubble--lit { border-color: rgba(126, 79, 140, 0.7); }

.bubble-who {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--text-secondary);
}
.bubble--lit .bubble-who { color: var(--violet-200); }

/* Hexagonal seal — 1.5px contour, no fill gradient, no 3D */
.hex {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 60px;
  flex-shrink: 0;
}
.hex::before,
.hex::after {
  content: "";
  position: absolute;
  clip-path: var(--hex-clip);
}
.hex::before { inset: 0; background: var(--violet-400); }
.hex::after { inset: 1.5px; background: var(--ink-800); }
.section--surface .hex::after { background: var(--ink-700); }
.hex > svg {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--violet-200);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hex--lg { width: 76px; height: 84px; }
.hex--lg > svg { width: 32px; height: 32px; }

/* Icon in a plain circle — for non-framework, non-system icons */
.icon-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--ink-400);
}
.icon-dot svg {
  width: 17px; height: 17px;
  fill: none;
  stroke: var(--text-secondary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-dot--yes { border-color: rgba(126, 79, 140, 0.8); }
.icon-dot--yes svg { stroke: var(--violet-200); }

/* ============================================================
   6. HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: var(--header-h);
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: height var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  background: rgba(18, 18, 18, 0.95);
  border-bottom-color: var(--ink-400);
}

.scroll-progress {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--violet-500);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  transition: transform 80ms linear;
}

.site-logo { display: block; line-height: 0; padding-block: var(--space-1); }
.site-logo img {
  height: 40px;
  width: auto;
  transition: height var(--transition-base);
}
.is-scrolled .site-logo img { height: 32px; }

.site-header .btn { display: none; }
@media (min-width: 640px) { .site-header .btn { display: inline-flex; } }

/* ============================================================
   7. HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--space-12));
  padding-bottom: 0;   /* the cut-out portrait meets the section edge */
  overflow: hidden;
  isolation: isolate;
}
.hero .ambient {
  top: -30%;
  right: -18%;
  width: min(1000px, 118vw);
  height: min(1000px, 118vw);
}
.hero .hex-motif {
  top: 2%;
  right: -14%;
  width: min(44vw, 560px);
  height: min(44vw, 560px);
}
.hero .container { position: relative; }

/* The H1 runs the full content width so display type can actually be display-sized;
   the supporting copy and the photo share the row underneath. */
/* Copy tops the row so it reads straight on from the headline; the portrait is pinned to
   the row's bottom (align-self on .hero-media) so it still meets the section edge. */
.hero-lower {
  display: grid;
  gap: var(--space-10);
  align-items: start;
  margin-top: var(--space-8);
}
.hero-copy { padding-bottom: var(--space-12); }
@media (min-width: 1024px) {
  .hero-lower { grid-template-columns: 1fr 0.62fr; gap: var(--space-16); }
  .hero-copy { padding-bottom: var(--space-16); }
}

.hero-title {
  font-size: var(--text-display);
  font-weight: 800;
  letter-spacing: -0.038em;
}
.hero-title .soft {
  display: block;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.025em;
}
.hero-title .hard { display: block; margin-top: 0.16em; }

/* Meaning-unit lines are hard breaks, so the display size must be capped against the
   *content box*, not just the viewport — otherwise a forced line re-wraps mid-phrase in
   the 900–1200px band and re-creates the v1 QA finding. Below 520px .ln goes inline and
   natural wrapping takes over, so the guard is scoped above that. */
@media (min-width: 520px) {
  .hero-title { font-size: min(var(--text-display), calc((100vw - 40px) / 17.5)); }
  .cta-final-title { font-size: min(var(--text-display-sm), calc((min(100vw, 992px) - 60px) / 17.5)); }
}
@media (min-width: 1024px) {
  .hero-title { font-size: min(var(--text-display), calc((min(100vw, 1280px) - 80px) / 17.5)); }
}

.hero-subhead {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 46ch;
}

.hero-actions { margin-top: var(--space-8); }

/* Cut-out portrait standing on a pool of violet light — the image is cropped at the
   bottom, so it meets the section edge instead of sitting inside a frame. */
.hero-media { position: relative; align-self: end; }
.hero-cutout {
  position: relative;
  max-width: 300px;
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .hero-cutout { max-width: 340px; margin-inline: 0 auto; }
}
.hero-cutout::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 0;
  width: 128%;
  height: 30%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(126, 79, 140, 0.5) 0%, rgba(75, 46, 82, 0.26) 42%, rgba(18, 18, 18, 0) 72%);
  filter: blur(20px);
}
.hero-cutout img {
  position: relative;
  width: 100%;
  height: auto;
  transition: transform 700ms var(--ease-out), filter 700ms ease;
}

.hero-tag {
  position: absolute;
  z-index: 2;
  left: calc(-1 * var(--space-5));
  bottom: 24%;
  max-width: 15rem;
  padding: var(--space-3) var(--space-5);
  background: var(--ink-600);
  border: 1px solid rgba(126, 79, 140, 0.7);
  border-radius: var(--radius-bubble);
  box-shadow: var(--shadow-lift);
  font-size: var(--text-sm);
  line-height: 1.4;
  transform: rotate(var(--tilt-card));
}
.hero-tag strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-md);
  margin-bottom: 2px;
}
.hero-tag span { color: var(--text-secondary); }

/* ============================================================
   8. TICKER — the noise the page answers
   ============================================================ */
.ticker {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-4);
  border-block: 1px solid var(--ink-400);
  background: var(--ink-900);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-run var(--ticker-duration) linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ticker-group span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  padding-inline: var(--space-5);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--text-secondary);
  white-space: nowrap;
}
.ticker-group span::after {
  content: "";
  width: 6px;
  height: 6px;
  clip-path: var(--hex-clip);
  background: var(--violet-400);
  flex-shrink: 0;
}

@keyframes ticker-run {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ============================================================
   9. AGITAÇÃO — rendered as a conversation thread, not a card grid
   ============================================================ */
.thread {
  display: grid;
  gap: var(--space-8);
  max-width: 60rem;
}
@media (min-width: 768px) {
  .thread { gap: var(--space-10); }
}

.thread-row { display: grid; gap: var(--space-4); }
@media (min-width: 768px) {
  .thread-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
  }
  .thread-row .thread-said { margin-top: 0; }
  .thread-row .thread-heard { margin-top: var(--space-10); }
}

.thread-said {
  justify-self: start;
  max-width: 30rem;
}
.thread-heard {
  justify-self: end;
  max-width: 30rem;
  margin-left: 12%;
}
@media (min-width: 768px) {
  .thread-heard { margin-left: 0; }
}
.thread p { font-size: var(--text-md); max-width: none; }
.thread-heard p { color: var(--text-primary); }

/* the tail: a small solid wedge, always on the bubble's small corner */
.bubble--tail::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: -1px;
  width: 0; height: 0;
  border-top: 10px solid var(--ink-400);
  border-right: 12px solid transparent;
}
.bubble--tail-r::after {
  left: auto;
  right: -1px;
  border-right: 0;
  border-left: 12px solid transparent;
}
.bubble--lit.bubble--tail::after { border-top-color: rgba(126, 79, 140, 0.7); }

.agitacao-punch {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--ink-400);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  max-width: 34ch;
}

/* ============================================================
   10. DIAGNÓSTICO — one panel struck out, one lifted
   ============================================================ */
.diag {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}
@media (min-width: 900px) {
  .diag { grid-template-columns: 0.86fr 1.14fr; gap: var(--space-10); }
}

.diag-panel { padding: var(--space-6) var(--space-6) var(--space-8); }
@media (min-width: 768px) { .diag-panel { padding: var(--space-8); } }

.diag-panel--myth {
  border: 1px dashed var(--ink-400);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  transform: rotate(-1.2deg);
}
.diag-panel--myth p { color: var(--text-secondary); }
.diag-panel--myth .diag-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--text-secondary);
  text-decoration: line-through;
  text-decoration-color: rgba(126, 79, 140, 0.85);
  text-decoration-thickness: 2px;
  margin-bottom: var(--space-4);
}

.diag-panel--real {
  background: var(--ink-600);
  border: 1px solid var(--ink-400);
  border-top-color: rgba(126, 79, 140, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: var(--glow-edge), var(--shadow-lift);
}
@media (min-width: 900px) {
  .diag-panel--real { transform: translateY(calc(-1 * var(--space-6))); }
}
.diag-panel--real p + p { margin-top: var(--space-4); }

.diag-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--text-secondary);
}
.diag-panel--real .diag-label { color: var(--violet-200); }
.diag-label svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.diag-turn {
  margin-top: var(--space-16);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  max-width: 30ch;
}

/* ============================================================
   11. CREDENCIAL — bleeding photo + a timeline spine
   ============================================================ */
.split {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 0.82fr 1.18fr; gap: var(--space-16); }
  .split--reverse { grid-template-columns: 1.18fr 0.82fr; }
  .split--reverse .split-media { order: 2; }
  .split--reverse .split-text { order: 1; }
}

.split-media { position: relative; }
.media-frame {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
}
.media-frame::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: calc(-1 * var(--space-5));
  right: calc(-1 * var(--space-5));
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--violet-400);
  border-radius: var(--radius-xl);
}
.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform 700ms var(--ease-out), filter 700ms ease;
}

/* anchored INSIDE .media-frame — fixes the v1 QA finding at every breakpoint */
.stat-float {
  position: absolute;
  z-index: 2;
  left: calc(-1 * var(--space-4));
  bottom: calc(-1 * var(--space-5));
  min-width: 172px;
  padding: var(--space-4) var(--space-5);
  background: var(--ink-600);
  border: 1px solid rgba(126, 79, 140, 0.7);
  border-radius: var(--radius-bubble);
  box-shadow: var(--shadow-lift);
  transform: rotate(var(--tilt-card));
}
.stat-float strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  line-height: 1;
}
.stat-float span {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
@media (max-width: 479px) {
  .stat-float { left: var(--space-3); min-width: 150px; padding: var(--space-3) var(--space-4); }
}

/* timeline spine — structure without a box */
.spine {
  margin-top: var(--space-8);
  padding-left: var(--space-8);
  border-left: 1px solid var(--ink-400);
  display: grid;
  gap: var(--space-6);
}
.spine li { position: relative; max-width: 54ch; }
.spine li::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-8) - 5px);
  top: 0.55em;
  width: 9px;
  height: 10px;
  clip-path: var(--hex-clip);
  background: var(--violet-400);
}
.spine li:first-child { font-size: var(--text-lg); font-weight: 500; }
.spine li:first-child::before { background: var(--violet-200); }

/* ============================================================
   12. MECANISMO — the acronyms open letter by letter
   ============================================================ */
.mech-intro {
  display: grid;
  gap: var(--space-10);
  align-items: center;
  margin-bottom: var(--space-16);
}
@media (min-width: 1024px) {
  .mech-intro { grid-template-columns: 1.2fr 0.8fr; gap: var(--space-16); }
}
.mech-intro-media {
  position: relative;
  max-width: 380px;
  margin-inline: auto;
}
.mech-intro-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
}
.mech-intro-media::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12% -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 46, 82, 0.5) 0%, rgba(18, 18, 18, 0) 68%);
}

.triad {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.triad span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--ink-400);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
}
.triad span::before {
  content: "";
  width: 8px;
  height: 9px;
  clip-path: var(--hex-clip);
  background: var(--violet-400);
}

.framework {
  padding: var(--space-8) var(--space-6);
  background: var(--ink-600);
  border: 1px solid var(--ink-400);
  border-top-color: rgba(126, 79, 140, 0.75);
  border-radius: var(--radius-xl);
  box-shadow: var(--glow-edge);
}
@media (min-width: 768px) { .framework { padding: var(--space-10); } }
.framework + .framework { margin-top: var(--space-8); }

.framework-head {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--ink-400);
}
.framework-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.framework-role {
  margin-top: var(--space-1);
  font-size: var(--text-md);
  color: var(--violet-200);
  font-weight: 500;
}

.steps {
  display: grid;
  gap: var(--space-6);
  counter-reset: step;
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
}
.step { position: relative; }
/* connector hairline between steps, desktop only */
@media (min-width: 860px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 26px;
    right: calc(-1 * var(--space-8));
    width: var(--space-8);
    height: 1px;
    background: var(--ink-400);
  }
}
.step-letter {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-4);
  border: 1px solid rgba(126, 79, 140, 0.8);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--violet-200);
}
.step-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);   /* the word is the payload — it must not inherit .step p's grey */
  margin-bottom: var(--space-2);
}
.step p { color: var(--text-secondary); max-width: 34ch; }

.framework-note {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--ink-400);
  font-size: var(--text-md);
  font-style: italic;
  color: var(--text-secondary);
  max-width: 60ch;
}

.callout {
  margin-top: var(--space-12);
  padding: var(--space-6) var(--space-8);
  background: var(--ink-500);
  border-left: 3px solid var(--violet-600);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.callout p {
  font-weight: 500;
  font-size: var(--text-md);
  max-width: 62ch;
}

/* ============================================================
   13. MÓDULOS — staggered, not a flat grid
   ============================================================ */
.module-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 860px) {
  .module-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
  .module-card:nth-child(2) { margin-top: var(--space-10); }
  .module-card:nth-child(3) { margin-top: var(--space-20); }
}
.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
}
.module-num {
  position: absolute;
  top: -0.22em;
  right: var(--space-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: 1;
  color: rgba(78, 78, 85, 0.22);
  user-select: none;
  pointer-events: none;
}
@supports (-webkit-text-stroke: 2px black) {
  .module-num { color: transparent; -webkit-text-stroke: 1.5px rgba(126, 79, 140, 0.5); }
}
.module-card h3 {
  position: relative;
  font-size: var(--text-xl);
  font-weight: 700;
  max-width: 14ch;
}
.module-card p { color: var(--text-secondary); }

.section-note {
  margin-top: var(--space-12);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 56ch;
}

/* ============================================================
   14. PROVA — the quote is a bubble overlapping the photo
   ============================================================ */
.prova-layout {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 900px) {
  .prova-layout { grid-template-columns: 0.78fr 1.22fr; gap: 0; }
}
.prova-media { position: relative; }
.prova-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 460px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-xl);
  transition: transform 700ms var(--ease-out), filter 700ms ease;
}
.quote-bubble {
  position: relative;
  padding: var(--space-8);
  background: var(--ink-600);
  border: 1px solid var(--ink-400);
  border-left-color: rgba(126, 79, 140, 0.7);
  border-radius: var(--radius-bubble-r);
  box-shadow: var(--shadow-lift);
}
@media (min-width: 900px) {
  .quote-bubble {
    margin-left: calc(-1 * var(--space-10));
    padding: var(--space-10) var(--space-10) var(--space-10) var(--space-16);
  }
}
.quote-mark {
  width: 38px; height: 30px;
  margin-bottom: var(--space-5);
  fill: none;
  stroke: var(--violet-400);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quote-bubble blockquote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
}
.quote-attr {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.quote-callback {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--ink-400);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 52ch;
}

/* ============================================================
   15. PÚBLICO — two different shapes, not two identical cards
   ============================================================ */
.audience {
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 860px) {
  .audience { grid-template-columns: 1.08fr 0.92fr; gap: var(--space-12); }
}
.audience h3 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  font-size: var(--text-xl);
  font-weight: 700;
}
.audience h3 .hex { width: 38px; height: 42px; }
.audience h3 .hex > svg { width: 17px; height: 17px; }
.audience ul { display: grid; gap: var(--space-4); }

.audience--yes li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--ink-600);
  border: 1px solid var(--ink-400);
  border-radius: var(--radius-bubble);
}
.section--surface .audience--yes li { background: var(--ink-800); }
.audience--yes li p { max-width: none; }

.audience--no {
  padding-left: var(--space-6);
  border-left: 1px dashed var(--ink-400);
}
.audience--no ul { gap: var(--space-5); }
.audience--no li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--text-secondary);
}
.audience--no li p { color: var(--text-secondary); max-width: none; }
.audience--no li svg {
  width: 16px; height: 16px;
  margin-top: 0.34em;
  flex-shrink: 0;
  fill: none;
  stroke: var(--ink-300);
  stroke-width: 2;
  stroke-linecap: round;
}

/* ============================================================
   16. OFERTA — card and cut-out portrait side by side on desktop
   ============================================================ */
.oferta { position: relative; overflow: hidden; }
.oferta .ambient {
  bottom: -34%;
  right: -10%;
  width: min(940px, 116vw);
  height: min(940px, 116vw);
}
.oferta-grid {
  position: relative;
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 1024px) {
  .oferta-grid {
    grid-template-columns: 1.04fr 0.96fr;
    gap: var(--space-12);
    align-items: end;
  }
}

.offer-card {
  position: relative;
  padding: var(--space-8) var(--space-6);
  background: var(--ink-600);
  border: 1px solid var(--ink-400);
  border-top: 2px solid var(--violet-500);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
}
@media (min-width: 768px) { .offer-card { padding: var(--space-10); } }

.offer-list { display: grid; gap: var(--space-4); margin: var(--space-6) 0 var(--space-8); }
.offer-list li { display: flex; align-items: flex-start; gap: var(--space-3); }
.offer-list li svg {
  width: 20px; height: 20px;
  margin-top: 0.28em;
  flex-shrink: 0;
  fill: none;
  stroke: var(--violet-200);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.offer-list li > div { min-width: 0; }
.offer-list strong { display: block; font-family: var(--font-display); }
.offer-list p { color: var(--text-secondary); font-size: var(--text-base); max-width: none; }

.offer-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--ink-400);
}
.offer-price b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.offer-price span { font-size: var(--text-sm); color: var(--text-secondary); }

.offer-anchor {
  margin: var(--space-5) 0 var(--space-8);
  color: var(--text-secondary);
  max-width: 46ch;
}

/* the cut-out portrait, standing on a pool of violet light */
.oferta-media {
  position: relative;
  display: none;
  justify-self: center;
  width: 100%;
  max-width: 440px;
}
@media (min-width: 768px) {
  /* stacked layout: the portrait sits above the card so the CTA stays the section's last element */
  .oferta-media { display: block; max-width: 320px; order: -1; }
  .oferta-media img { max-height: 420px; width: auto; margin-inline: auto; }
}
@media (min-width: 1024px) {
  .oferta-media { max-width: 440px; align-self: end; order: 0; }
  .oferta-media img { max-height: none; width: 100%; }
}
.oferta-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 2%;
  width: 118%;
  height: 26%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(126, 79, 140, 0.55) 0%, rgba(75, 46, 82, 0.28) 42%, rgba(18, 18, 18, 0) 72%);
  filter: blur(18px);
}
.oferta-media img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
}

.offer-sticker {
  position: absolute;
  z-index: 2;
  top: 20%;
  right: -2%;
  padding: var(--space-2) var(--space-4);
  background: var(--violet-600);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  transform: rotate(var(--tilt-sticker));
  box-shadow: var(--shadow-lift);
}

/* ============================================================
   17. FAQ — bubbles
   ============================================================ */
.faq-list { display: grid; gap: var(--space-3); max-width: 56rem; }
.faq-item {
  background: var(--ink-600);
  border: 1px solid var(--ink-400);
  border-radius: var(--radius-bubble);
  overflow: hidden;
}
.section--surface .faq-item { background: var(--ink-800); }
.faq-item[open] { border-color: rgba(126, 79, 140, 0.7); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  text-align: left;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--transition-base), padding-left var(--transition-base);
}
.faq-question::marker { content: ""; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question .chev {
  width: 20px; height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--text-secondary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition-base);
}
.faq-item[open] .chev { transform: rotate(180deg); stroke: var(--violet-200); }

/* Override the UA default (display:none when closed) so the grid-rows technique can
   animate the collapse — keeps the accordion fully functional with zero JavaScript. */
.faq-answer {
  display: grid !important;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-slow);
}
.faq-answer > div { overflow: hidden; }
.faq-item[open] .faq-answer { grid-template-rows: 1fr; }
.faq-answer p {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--text-secondary);
  max-width: 66ch;
}

/* ============================================================
   18. CTA FINAL
   ============================================================ */
.cta-final {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-final .ambient {
  bottom: -46%;
  left: 50%;
  translate: -50% 0;
  width: min(1100px, 130vw);
  height: min(1100px, 130vw);
}
.cta-final .hex-motif {
  bottom: -22%;
  left: 50%;
  translate: -50% 0;
  width: min(64vw, 620px);
  height: min(64vw, 620px);
  opacity: 0.35;
}
.cta-final .container { position: relative; max-width: 62rem; }

.cta-final-title {
  margin-inline: auto;
  font-size: var(--text-display-sm);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.cta-final-title .soft {
  display: block;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.022em;
}
.cta-final-title .hard { display: block; margin-top: 0.14em; }

.cta-final .hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--space-10);
}
.cta-final .cta-support { justify-content: center; }

.cta-final-teaser {
  margin: var(--space-16) auto 0;
  padding-top: var(--space-8);
  border-top: 1px solid var(--ink-400);
  max-width: 46ch;
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--text-secondary);
}

/* ============================================================
   19. FOOTER
   ============================================================ */
.site-footer {
  padding-block: var(--space-12);
  background: var(--ink-900);
  border-top: 1px solid var(--ink-400);
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--ink-400);
}
@media (min-width: 768px) {
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.footer-logo img { height: 34px; width: auto; }
.footer-disclaimer {
  margin-top: var(--space-4);
  max-width: 44ch;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
/* padding-block lifts these past the 24×24 target floor (WCAG 2.2 AA, 2.5.8) */
.footer-links a,
.footer-bottom a {
  display: inline-block;
  padding-block: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.footer-links a:hover,
.footer-bottom a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ============================================================
   20. MOBILE STICKY CTA
   ============================================================ */
.mobile-cta-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
  background: rgba(11, 11, 12, 0.96);
  border-top: 1px solid var(--ink-400);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform var(--transition-base);
}
.mobile-cta-bar.is-visible { transform: translateY(0); }
.mobile-cta-bar .price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  line-height: 1.1;
}
.mobile-cta-bar .price small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
@media (min-width: 1024px) { .mobile-cta-bar { display: none; } }

/* ============================================================
   21. REVEAL + HOVER
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.thread-row:nth-child(2), .module-card:nth-child(2), .faq-item:nth-child(2) { --reveal-delay: 70ms; }
.thread-row:nth-child(3), .module-card:nth-child(3), .faq-item:nth-child(3) { --reveal-delay: 140ms; }
.thread-row:nth-child(4), .faq-item:nth-child(4) { --reveal-delay: 210ms; }
.faq-item:nth-child(5) { --reveal-delay: 280ms; }
.faq-item:nth-child(6) { --reveal-delay: 350ms; }

@media (hover: hover) and (pointer: fine) {
  .card:hover,
  .offer-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink-300);
    box-shadow: var(--shadow-lift);
  }
  .module-card:hover { transform: translateY(-6px); }
  .bubble:hover { border-color: var(--ink-300); }
  .audience--yes li:hover { border-color: var(--ink-300); }
  .media-frame:hover img,
  .prova-media:hover img {
    transform: scale(1.018);
    filter: contrast(1.03);
  }
  .faq-question:hover {
    background: rgba(244, 243, 240, 0.03);
    padding-left: calc(var(--space-6) + var(--space-1));
  }
}

/* ============================================================
   22. REDUCED MOTION — nothing moves, nothing tilts, nothing hides
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hex-motif, .ticker-track { animation: none; }
  .ticker-track { transform: none; }
  /* Static tilts, the staggered module row and the lifted diagnosis panel are layout, not
     motion — they stay. Only things that actually move are switched off above. */
}
