/* AqueceLeads.IA — site institucional
   Tokens herdados do AqueceLeads TUR (navy #081220, laranja #fe6608, Plus Jakarta Sans).
   Regra de cor: laranja = calor = interesse ativo. Azul/cinza = contato frio.
   Fora disso, a página é tinta navy sobre branco. */

:root {
  --paper: #ffffff;
  --mist: #f4f6f9;
  --line: #e3e8ef;
  --line-strong: #cfd8e3;
  --ink: #0a192f;
  --ink-2: #334155;
  --ink-3: #5b6b80;
  --navy: #081220;
  --navy-2: #0e1d32;
  --navy-line: #1e3557;
  --on-navy: #f8fafc;
  --on-navy-2: #b8c4d4;
  --cold: #004488;
  --cold-dot: #c7d2e0;
  --hot: #fe6608;
  --hot-deep: #e55600;
  --hot-wash: #fff2ea;
  --ok: #0f8a5f;
  --err: #c2410c;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Curvas: Emil Kowalski / animate skill */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

img, svg, canvas { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

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

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

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--navy); color: var(--on-navy); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--navy); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-text {
  min-height: 44px; padding: 0 4px; background: none; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px;
}
.btn-text-light {
  min-height: 44px; padding: 0 4px; background: none; color: var(--on-navy);
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 5px;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; border-radius: 10px; }
.btn-block { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #142640; }
  .btn-quiet:hover { border-color: var(--ink); }
  .btn-outline:hover { background: var(--ink); color: #fff; }
  .btn-light:hover { background: var(--hot-wash); }
  .btn-text:hover { text-decoration-color: var(--hot); }
  .btn-text-light:hover { text-decoration-color: var(--hot); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: 36px; height: 36px; }
.brand-word {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.brand-word span { color: var(--hot); }
.brand-light .brand-word { color: #fff; }

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 0;
}
@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover { color: var(--ink); }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 0; background: none; cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms var(--ease-out), opacity 150ms ease;
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { content: ''; left: 0; top: -7px; }
.nav-toggle-bars::after { content: ''; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: grid;
  gap: 4px;
  padding: 8px var(--gutter) 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) {
  padding: 12px 0;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 12px; }

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 8vw, 112px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero-title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hero-title .w > span { display: inline-block; }

.hero-lead {
  margin-top: 28px;
  max-width: 34rem;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

/* Hero entrance: one orchestrated beat (choreograph skill).
   Lead = title lines, support = lead/CTAs, decoration = field fades in place. */
.js .hero-title .w > span {
  transform: translateY(110%);
  animation: rise 720ms var(--ease-out) both;
  animation-delay: calc(60ms + var(--d, 0ms));
}
.js .hero-lead,
.js .hero-actions,
.js .hero-note { animation: lift 600ms var(--ease-out) both; }
.js .hero-lead { animation-delay: 360ms; }
.js .hero-actions { animation-delay: 430ms; }
.js .hero-note { animation-delay: 480ms; }
.js .field { animation: fade 900ms ease both; animation-delay: 200ms; }

@keyframes rise { to { transform: translateY(0); } }
@keyframes lift { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }

/* The field: the base as a map of contacts */
.field { margin: 0; }

.field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mode {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid var(--line);
}
.mode-btn {
  position: relative;
  z-index: 1;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 200ms ease, transform 160ms var(--ease-out);
}
.mode-btn:active { transform: scale(0.97); }
.mode-btn[aria-pressed="true"] { color: var(--ink); }
.mode-thumb {
  position: absolute;
  top: 4px; left: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(8, 18, 32, 0.08), 0 2px 8px rgba(8, 18, 32, 0.06);
  transition: transform 260ms var(--ease-in-out), width 260ms var(--ease-in-out);
}

.field-flag {
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.field-stage {
  position: relative;
  height: clamp(340px, 40vw, 500px);
  border-radius: var(--r-lg);
  background: var(--mist);
  border: 1px solid var(--line);
  overflow: hidden;
  touch-action: pan-y;
}
#field-canvas { width: 100%; height: 100%; cursor: default; }
.field-stage.is-pointer #field-canvas { cursor: pointer; }

.field-team {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--on-navy);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: opacity 240ms ease;
}
.field-team strong {
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--hot);
  color: #fff;
  font-size: 0.8125rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.field-team.bump strong { animation: bump 320ms var(--ease-out); }
.team-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); }
.field[data-mode="without"] .field-team { opacity: 0.35; }

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.field-tip {
  position: absolute;
  left: 0; top: 0;
  max-width: 220px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 0 0 1px rgba(8, 18, 32, 0.06), 0 6px 20px rgba(8, 18, 32, 0.12);
  pointer-events: none;
  opacity: 0;
  transform-origin: var(--tip-origin, bottom left);
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(0.96);
  transition: opacity 150ms ease, transform 150ms var(--ease-out);
}
.field-tip.is-on {
  opacity: 1;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(1);
}
.field-tip small { display: block; font-weight: 500; color: var(--ink-3); margin-top: 2px; }

.field-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}
.field-stats div { padding-top: 10px; border-top: 2px solid var(--line); }
.field-stats div:nth-child(2) { border-top-color: var(--hot); }
.field-stats dt { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.3; }
.field-stats dd {
  margin: 4px 0 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.field-caption {
  margin-top: 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 40rem;
}
.field[data-static] .field-stats { display: none; }
/* Reserva o espaço do texto extra para o layout não pular ao trocar o modo */
.only-without { visibility: hidden; }
.field[data-mode="without"] .only-without { visibility: visible; }

/* O ponto final da Plus Jakarta ExtraBold tem respiro largo à esquerda */
.pd { margin-left: -0.08em; }

/* ---------- Story (dark) ---------- */

.story {
  position: relative;
  background: var(--navy);
  color: var(--on-navy-2);
}
.js .story-track { height: 300vh; }
.story-pin {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px 0 72px;
}
.js .story-pin { position: sticky; top: 0; height: 100vh; min-height: 640px; padding: calc(var(--header-h) + 16px) 0 32px; }

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  grid-template-areas:
    "head head"
    "chart steps";
  column-gap: clamp(32px, 5vw, 64px);
  row-gap: clamp(24px, 4vh, 48px);
  align-items: end;
}
.story-head { grid-area: head; max-width: 44rem; }
.story-head h2 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
}
.story-head p {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--on-navy-2);
  max-width: 36rem;
}

.story-chart { grid-area: chart; position: relative; }
.curve {
  width: 100%;
  height: clamp(220px, 34vh, 360px);
  overflow: visible;
}
.curve-grid line { stroke: var(--navy-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.curve-path {
  fill: none;
  stroke: url(#heat);
  stroke-width: 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.curve-head { fill: #fff; stroke: var(--navy); stroke-width: 3; vector-effect: non-scaling-stroke; transition: fill 200ms ease; }
.curve-head.is-hot { fill: var(--hot); }
.rival-line {
  stroke: var(--hot);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity 300ms ease;
}
.story.rival .rival-line { opacity: 1; }

.curve-months {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: #7d8ea6;
}
.curve-axis {
  position: absolute;
  top: -4px; left: 0;
  font-size: 0.8125rem;
  color: #7d8ea6;
}

.story-steps {
  grid-area: steps;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.story-steps li {
  padding-left: 18px;
  border-left: 2px solid var(--navy-line);
  font-size: 1.0625rem;
  line-height: 1.45;
  color: #6f8098;
  transition: color 250ms ease, border-color 250ms ease;
}
.story-steps li strong { color: inherit; font-weight: 700; }
.story-steps li.is-on { color: #fff; border-left-color: #6f8fc0; }
.story-steps li.is-rival.is-on { border-left-color: var(--hot); }
.story-steps li.is-rival.is-on strong { color: var(--hot); }

.story-after {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-top: 72px;
  padding-bottom: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--navy-line);
}
.story-after h3 { color: #fff; font-size: 1.25rem; letter-spacing: -0.015em; }
.story-after p { margin-top: 8px; color: var(--on-navy-2); font-size: 1rem; }

/* ---------- Section heads ---------- */

.section-head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.section-head p { margin-top: 18px; font-size: 1.125rem; color: var(--ink-2); max-width: 38rem; }

/* ---------- How ---------- */

.how { padding: clamp(80px, 10vw, 140px) 0; }

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.how-steps { margin: 0; padding: 0; list-style: none; }
.how-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  align-content: start;
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
  transition: opacity 250ms ease;
}
.how-step:last-child { border-bottom: 1px solid var(--line); }
.how-num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--ink-3);
  transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease;
}
.how-step h3 { font-size: 1.375rem; letter-spacing: -0.02em; padding-top: 4px; }
.how-step p { margin-top: 8px; color: var(--ink-2); max-width: 30rem; }

@media (min-width: 961px) {
  .js .how-step { min-height: 44vh; opacity: 0.4; }
  .js .how-step.is-on { opacity: 1; }
}
.how-step.is-on .how-num { background: var(--navy); border-color: var(--navy); color: #fff; }
.how-step.is-last.is-on .how-num { background: var(--hot); border-color: var(--hot); }

.record-wrap { position: sticky; top: calc(var(--header-h) + 40px); }

.record {
  padding: 24px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(8, 18, 32, 0.07), 0 1px 2px rgba(8, 18, 32, 0.04), 0 24px 48px -24px rgba(8, 18, 32, 0.22);
}
.record-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.record-avatar {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--mist); color: var(--ink); font-weight: 800; font-size: 0.875rem;
}
.record-name { color: var(--ink); font-weight: 700; line-height: 1.2; }
.record-sub { font-size: 0.8125rem; color: var(--ink-3); }
.record-status {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--mist);
  color: var(--ink-3);
  transition: background-color 300ms ease, color 300ms ease;
}
.record[data-step="2"] .record-status { background: #e6eef8; color: var(--cold); }
.record[data-step="3"] .record-status { background: #e6eef8; color: var(--cold); }
.record[data-step="4"] .record-status { background: var(--hot-wash); color: var(--hot-deep); }
.record[data-step="5"] .record-status { background: var(--hot); color: #fff; }

.record-rows { margin: 0; }
.record-rows .r {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.record-rows dt { color: var(--ink-3); }
.record-rows dd { margin: 0; color: var(--ink); font-weight: 600; }
.record-rows .r-hot dd { color: var(--hot-deep); }

.record-chat {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

/* Rows reveal with the step (state indication, not entrance-on-scroll) */
.js .record [data-from] {
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.js .record [data-from].is-hidden {
  opacity: 0;
  transform: translateY(6px);
}
.js .record .r.is-hidden { display: none; }
.js .record-chat.is-hidden { display: none; }
.js .record .is-entering { animation: lift 360ms var(--ease-out) both; }

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.bubble-out { background: var(--mist); color: var(--ink); border-bottom-left-radius: 6px; justify-self: start; }
.bubble-in { background: var(--navy); color: #fff; border-bottom-right-radius: 6px; justify-self: end; }

/* ---------- Solutions ---------- */

.solutions { padding: clamp(80px, 10vw, 140px) 0; background: var(--mist); }

.sol-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    "tur car"
    "tur list";
  gap: 16px;
}

.sol {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.sol h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.03em; margin-top: 18px; }
.sol-brand { font-weight: 500; color: var(--ink-3); }
.sol-sector { margin-top: 6px; font-weight: 600; color: var(--ink); }
.sol p:not(.sol-status):not(.sol-sector) { margin-top: 14px; max-width: 30rem; }
.sol .btn { margin-top: 24px; }

.sol-tur {
  grid-area: tur;
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-navy-2);
  display: flex;
  flex-direction: column;
  min-height: 460px;
}
.sol-tur h3, .sol-tur .sol-sector { color: #fff; }
.sol-tur .sol-brand { color: #8fa1b8; }
.sol-tur .btn { align-self: flex-start; background: var(--hot); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .sol-tur .btn:hover { background: var(--hot-deep); }
}
.sol-art {
  width: min(100%, 360px);
  margin-top: auto;
  margin-left: auto;
  padding-top: 32px;
  overflow: visible;
}
.sol-art .route { fill: none; stroke: #2d4f82; stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
.pin-cold { fill: #4a6ea3; }
.pin-mid { fill: #a08a92; }
.pin-hot { fill: var(--hot); }
.sol-art .pin-hot { transform-box: fill-box; transform-origin: center; }

.sol-car { grid-area: car; }

.sol-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
}
.sol-status span { width: 8px; height: 8px; border-radius: 50%; }
.status-live { color: #fff; }
.status-live span { background: var(--hot); box-shadow: 0 0 0 4px rgba(254, 102, 8, 0.22); }
.status-build { color: var(--cold); }
.status-build span { background: var(--cold); }
.status-future { color: var(--ink-3); }
.status-future span { background: var(--cold-dot); }

.sol-list {
  grid-area: list;
  margin: 0;
  padding: 8px clamp(24px, 3vw, 40px);
  list-style: none;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.sol-list li {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.sol-list li:last-child { border-bottom: 0; }
.sol-list h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-top: 8px; }
.sol-list p:not(.sol-status) { margin-top: 6px; font-size: 0.9375rem; max-width: 26rem; }
.sol-list .btn { flex-shrink: 0; }
.sol-other h3 { margin-top: 0; }

/* ---------- Simulator ---------- */

.sim { padding: clamp(80px, 10vw, 140px) 0; }

.sim-sentence p {
  max-width: 62rem;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sim-field {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 0 4px;
  padding: 0 6px;
  border-bottom: 3px solid var(--ink);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.sim-field:focus-within { border-bottom-color: var(--hot); background: var(--hot-wash); }
.sim-field input {
  width: 4.6ch;
  min-width: 2ch;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  outline: none;
  field-sizing: content;
}
.sim-small input { width: 2.2ch; }
.sim-unit { font-weight: 700; color: var(--ink-3); }

.sim-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px;
  margin-top: 40px;
}
.sim-out {
  padding: 28px clamp(20px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: var(--mist);
}
.sim-out-hot { background: var(--navy); }
.sim-num {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.sim-out-hot .sim-num { color: var(--hot); }
.sim-label { display: block; margin-top: 8px; font-weight: 600; color: var(--ink-3); }
.sim-out-hot .sim-label { color: var(--on-navy-2); }

.sim-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
}
.sim-foot p { max-width: 46rem; font-size: 0.875rem; color: var(--ink-3); }
.sim-foot .btn { flex-shrink: 0; }

/* ---------- Diff ---------- */

.diff { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }

.diff-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
.diff-tabs button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.diff-tabs button:active { transform: scale(0.97); }
.diff-tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(8, 18, 32, 0.08), 0 2px 8px rgba(8, 18, 32, 0.06);
}

.diff-phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.phone-label { font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.phone-blast .phone-label { color: var(--ink-3); }
.phone-screen {
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 240px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--mist);
  border: 1px solid var(--line);
}
.phone-context .phone-screen { background: #fff; box-shadow: 0 0 0 1px rgba(8, 18, 32, 0.06), 0 24px 48px -28px rgba(8, 18, 32, 0.25); border-color: transparent; }
.phone-screen .bubble { max-width: 100%; font-size: 1rem; }
.phone-blast .bubble { background: #fff; color: var(--ink-3); }
.phone-context .bubble-out { background: var(--navy); color: #fff; border-bottom-left-radius: 6px; }
.phone-meta { font-size: 0.8125rem; color: var(--ink-3); }
.phone-context .phone-meta { color: var(--hot-deep); font-weight: 600; }

.typing {
  display: none;
  gap: 4px;
  width: fit-content;
  padding: 12px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 6px;
  background: var(--mist);
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3);
  animation: blink 1s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 150ms; }
.typing span:nth-child(3) { animation-delay: 300ms; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.phone-context.is-typing .typing { display: flex; }
.phone-context.is-typing #ctx-msg,
.phone-context.is-typing #ctx-meta { display: none; }
.phone-context.is-shown #ctx-msg { animation: msg-in 320ms var(--ease-out) both; transform-origin: bottom left; }
.phone-context.is-shown #ctx-meta { animation: fade 320ms ease both; animation-delay: 120ms; }
@keyframes msg-in { from { opacity: 0; transform: scale(0.96) translateY(6px); } }

.diff-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(56px, 7vw, 88px);
}
.diff-points h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.diff-points p { margin-top: 8px; }

/* ---------- Partners (dark) ---------- */

.partners { padding: clamp(80px, 10vw, 128px) 0; background: var(--navy); color: var(--on-navy-2); }
.partners-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.partners h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); }
.partners p { font-size: 1.125rem; }
.partners-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }

/* ---------- FAQ ---------- */

.faq { padding: clamp(80px, 10vw, 140px) 0; }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
}
.faq h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '';
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
.faq-list details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-list details p { padding: 0 0 24px; max-width: 40rem; }
.faq-list details[open] p { animation: lift 240ms var(--ease-out) both; }

/* ---------- CTA + form ---------- */

.cta { padding: clamp(80px, 10vw, 140px) 0; background: var(--mist); }
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.cta-copy { position: sticky; top: calc(var(--header-h) + 40px); }
.cta-copy h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.cta-copy p { margin-top: 18px; font-size: 1.125rem; }
.cta-copy .cta-small { font-size: 0.9375rem; color: var(--ink-3); }

.form-card {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(8, 18, 32, 0.06), 0 24px 48px -28px rgba(8, 18, 32, 0.22);
}

.lead-form { display: grid; gap: 18px; }
.f-row { display: grid; gap: 18px; }
.f-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f { display: grid; align-content: start; gap: 6px; min-width: 0; }
.f label, .f legend { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.f-opt { font-weight: 500; color: var(--ink-3); }

.f input,
.f select,
.f textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font-size: 1rem; /* >=16px: evita zoom no iOS */
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.f textarea { resize: vertical; min-height: 96px; }
.f select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.f input:focus,
.f select:focus,
.f textarea:focus {
  outline: none;
  border-color: var(--cold);
  box-shadow: 0 0 0 3px rgba(0, 68, 136, 0.15);
}
.f [aria-invalid="true"] { border-color: var(--err); }
.f-err { min-height: 0; font-size: 0.8125rem; color: var(--err); }
.f-err:empty { display: none; }

.f-chips { border: 0; padding: 0; margin: 0; }
.f-chips legend { margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.chips label:active span { transform: scale(0.97); }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--cold); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.f-privacy { font-size: 0.8125rem; color: var(--ink-3); }
.f-privacy a { color: var(--ink-2); }
.f-status { font-size: 0.9375rem; font-weight: 600; color: var(--err); }
.f-status:empty { display: none; }

.btn[aria-busy="true"] { pointer-events: none; opacity: 0.75; }

.form-done { text-align: left; padding: 12px 0; outline: none; }
.form-done svg { width: 48px; height: 48px; }
.form-done circle { fill: none; stroke: var(--ok); stroke-width: 2.5; }
.form-done path {
  fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: draw 420ms var(--ease-out) 120ms forwards;
}
.form-done h3 { margin-top: 18px; font-size: 1.5rem; }
.form-done p { margin-top: 8px; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Footer ---------- */

.site-footer { padding: 56px 0 40px; background: var(--navy); color: var(--on-navy-2); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 48px;
  align-items: start;
}
.footer-brand p { margin-top: 12px; font-size: 0.9375rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { font-size: 0.9375rem; font-weight: 600; color: var(--on-navy); text-decoration: none; padding: 6px 0; }
@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover { color: var(--hot); }
}
.footer-legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--navy-line);
  font-size: 0.875rem;
  color: #8fa1b8;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .main-nav { gap: 20px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-title { font-size: clamp(2.6rem, 5vw, 3.6rem); }
}

@media (max-width: 960px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }

  .hero-grid { grid-template-columns: 1fr; }
  .field-stage { height: 360px; }

  .story-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "chart" "steps";
    row-gap: 24px;
  }
  .story-steps { gap: 8px; }
  .story-steps li { font-size: 0.9375rem; }
  .js .story-pin { min-height: 0; }
  .curve { height: clamp(160px, 26vh, 240px); }
  .story-after { grid-template-columns: 1fr; gap: 28px; }

  .how-grid { grid-template-columns: 1fr; }
  .record-wrap { position: static; order: -1; }
  .how-steps { order: 0; }

  .sol-grid { grid-template-columns: 1fr; grid-template-areas: "tur" "car" "list"; }
  .sol-tur { min-height: 0; }

  .sim-result { grid-template-columns: 1fr; }
  .sim-foot { flex-direction: column; }

  .diff-points { grid-template-columns: 1fr; gap: 28px; }
  .partners-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-copy { position: static; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .hero-title { font-size: clamp(2.35rem, 10.5vw, 3rem); }
  .hero-lead { font-size: 1.0625rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .field-top { flex-wrap: wrap; }
  .mode-btn { padding: 0 12px; font-size: 0.8125rem; }
  .field-stage { height: 320px; }
  .field-stats dd { font-size: 1.25rem; }
  .field-team { right: 10px; bottom: 10px; font-size: 0.75rem; padding: 8px 10px 8px 12px; }

  .diff-phones { grid-template-columns: 1fr; }
  .phone-screen { min-height: 0; }
  .diff-tabs { display: flex; width: 100%; }
  .diff-tabs button { flex: 1; padding: 0 10px; }

  .record-rows .r { grid-template-columns: 1fr; gap: 2px; }
  .sol-list li { flex-direction: column; align-items: flex-start; }
  .f-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sim-sentence p { line-height: 1.75; }
}

/* ---------- Reduced motion: fewer and gentler, not zero ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-title .w > span { transform: none; animation: fade 400ms ease both; }
  .js .hero-lead,
  .js .hero-actions,
  .js .hero-note,
  .js .field { animation: fade 400ms ease both; animation-delay: 0ms; }
  .js .story-track { height: auto; }
  .js .story-pin { position: relative; height: auto; }
  .js .record [data-from].is-hidden { transform: none; }
  .js .record .is-entering,
  .faq-list details[open] p { animation: fade 200ms ease both; }
  .phone-context.is-shown #ctx-msg { animation: fade 200ms ease both; }
  .typing span { animation: none; opacity: 0.6; }
  .mode-thumb { transition: none; }
  .field-team.bump strong { animation: none; }
}
