/* ==========================================================================
   Foxmir Telecom: landing page
   Tokens vindos de assets/color-tokens.json e do Figma V4 - FOXMIR
   ========================================================================== */

:root {
  /* Marca */
  --red: var(--g-color-custom-0);            /* vermelho-600, "Vermelho principal" no Figma */
  --red-mid: var(--g-color-custom-1);
  --red-700: var(--g-color-custom-2);
  --red-800: var(--g-color-custom-3);
  --red-900: var(--g-color-custom-4);
  --orange: var(--g-color-custom-5);         /* fim do gradiente no Figma e no favicon */
  --orange-text: var(--g-color-custom-6);
  --amber-500: var(--g-color-custom-7);
  --amber-300: var(--g-color-custom-8);
  --amber-200: var(--g-color-custom-9);
  --cream: var(--g-color-custom-10);

  /* Neutros */
  --ink: var(--g-color-custom-11);
  --ink-soft: var(--g-color-custom-12);
  --line: var(--g-color-custom-13);
  --surface: var(--g-color-custom-14);
  --white: var(--g-color-custom-15);

  /* Tipografia em escala fluida */
  --fs-h1: clamp(3rem, 1.75rem + 3.5vw, 4.5rem);        /* até 72px */
  --fs-h2: clamp(2.5rem, 2.25rem + 0.7vw, 3rem);        /* até 48px */
  --fs-h3: clamp(1.75rem, 1.6rem + 0.4vw, 2rem);        /* até 32px */
  --fs-h4: clamp(1.5rem, 1.45rem + 0.1vw, 1.5rem);      /* 24px */
  --fs-lead: clamp(1.25rem, 1.2rem + 0.2vw, 1.375rem);  /* até 22px */
  --fs-body: 1.25rem;                                   /* 20px */
  --fs-small: 1.125rem;                                 /* 18px */
  --fs-micro: 1rem;                                     /* 16px */

  /* Altura de linha do corpo: definida no SPEC.md, testada em 1.1 e 1.2 */
  --lh-body: 1.2;
  --lh-tight: 1.1;

  /* Ritmo */
  --section-y: clamp(80px, 4rem + 4.5vw, 128px);
  --section-y-lg: clamp(96px, 4rem + 7vw, 168px);
  --gutter: clamp(20px, 4.2vw, 60px);
  --panel-inset: clamp(8px, 1.1vw, 16px);

  /* Raios: painel, card, controle */
  --r-panel: 24px;
  --r-card: 16px;
  --r-control: 7px;

  /* Movimento */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.65, .05, .2, 1);
}

/* Base
   ========================================================================== */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--g-font-body), "Arial Narrow", Arial, sans-serif;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--r-control);
  background: var(--white);
  color: var(--red);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform .4s var(--ease);
}
.skip-link:focus { transform: none; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 32px; height: 32px; stroke-width: 1.5; }

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

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

/* Tipografia
   ========================================================================== */

.h1 {
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: .8;
  letter-spacing: -.02em;
}
.h1 strong { font-weight: 700; }

.h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.h4 {
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.005em;
  text-wrap: balance;
}

.lead {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: var(--lh-body);
  text-wrap: pretty;
}

/* Gradiente de texto. A altura de linha 0.85 corta descendentes, por isso o
   recuo interno compensado: o fundo precisa alcançar p, g e ç na última linha. */
.grad {
  width: fit-content;
  max-width: 100%;
  padding-block: .14em .2em;
  margin-block: -.14em -.2em;
  background-image: linear-gradient(90deg, var(--red), var(--orange-text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.grad--light { background-image: linear-gradient(90deg, var(--cream), var(--amber-300)); }

/* Botões
   ========================================================================== */

/* O frame branco é uma camada inteira do botão, revelada por clip-path: anima
   sem recalcular layout. A seta usa a mesma curva e duração, então viaja presa à
   borda do frame. As áreas de texto dos dois estados são espelhadas (mesma largura
   disponível), então o rótulo quebra igual e o botão não muda de tamanho. */
.btn {
  --inset: 4px;      /* recuo que mostra a cor do botão em volta do frame */
  --frame: 48px;     /* largura do frame no estado padrão */
  --pad: 24px;       /* respiro do texto na extremidade oposta ao frame */
  --gap: 16px;       /* distância entre texto e frame */
  --r-frame: 4px;
  --duration: .62s;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px calc(var(--frame) + var(--inset) + var(--gap)) 12px var(--pad);
  border: 0;
  border-radius: var(--r-control);
  background: linear-gradient(90deg, var(--orange), var(--red));
  color: var(--white);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  text-wrap: balance;
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.btn:active { transform: scale(.985); }
.btn[disabled] { cursor: progress; }

.btn__cover {
  position: absolute;
  inset: var(--inset);
  background: var(--white);
  color: var(--red);
  clip-path: inset(0 0 0 calc(100% - var(--frame)) round var(--r-frame));
  transition: clip-path var(--duration) var(--ease);
}

.btn__cover-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 calc(var(--pad) - var(--inset)) 0 calc(var(--frame) + var(--gap));
  opacity: 0;
  transform: translateX(10px);
  /* Ao sair do hover, some antes de o frame recolher; o final do texto cairia dentro dele */
  transition: transform var(--duration) var(--ease), opacity .12s var(--ease);
}

.btn__arrow {
  position: absolute;
  top: 50%;
  left: calc(100% - var(--frame) / 2);
  width: 24px;
  height: 24px;
  stroke-width: 2.25;
  transform: translate(-50%, -50%);
  transition: left var(--duration) var(--ease);
}

@media (hover: hover) {
  .btn:not([disabled]):hover .btn__cover { clip-path: inset(0 0 0 0 round var(--r-frame)); }
  .btn:not([disabled]):hover .btn__cover-label {
    opacity: 1;
    transform: none;
    transition: transform var(--duration) var(--ease), opacity .24s var(--ease) .08s;
  }
  .btn:not([disabled]):hover .btn__arrow { left: calc(var(--frame) / 2); }
}
.btn:focus-visible .btn__cover { clip-path: inset(0 0 0 0 round var(--r-frame)); }
.btn:focus-visible .btn__cover-label { opacity: 1; transform: none; }
.btn:focus-visible .btn__arrow { left: calc(var(--frame) / 2); }

.btn--full { width: 100%; }

.btn--sm {
  --frame: 40px;
  --pad: 20px;
  --gap: 12px;
  min-height: 48px;
  padding-block: 8px;
  font-size: var(--fs-small);
  white-space: nowrap;
}

/* Versão invertida, para o fundo escuro da seção PTO */
.btn--light { background: var(--white); color: var(--red); }
.btn--light .btn__cover { background: var(--red); color: var(--white); }

/* 01. Cabeçalho fixo
   ========================================================================== */

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1200px, calc(100% - 32px));
  padding: 10px 10px 10px 24px;
  border-radius: var(--r-card);
  background: var(--g-color-custom-16);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 16px 48px -16px var(--g-color-custom-17), 0 0 0 1px var(--g-color-custom-18);
  transform: translate(-50%, calc(-100% - 32px));
  visibility: hidden;
  transition: transform .7s var(--ease), visibility 0s linear .7s;
}
.site-header.is-visible {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform .7s var(--ease), visibility 0s;
}
.site-header__logo { flex: none; }
.site-header__logo img { width: auto; height: 40px; }
.site-header__note {
  margin-right: auto;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: var(--lh-tight);
}

/* 02. Hero
   ========================================================================== */

.hero { padding: 20px var(--panel-inset) 0; }

.hero__panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: linear-gradient(90deg, var(--red), var(--orange));
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 1408px;
  min-height: 760px;
  margin-inline: auto;
  padding: 72px calc(var(--gutter) - var(--panel-inset)) 40px;
}

.hero__logo { width: 148px; height: auto; }

.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-block: 56px;
}

.hero__copy .h1 { max-width: 660px; }

.hero__sub {
  max-width: 540px;
  margin-top: 40px;
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: var(--lh-body);
  text-wrap: pretty;
}

/* Cartão do formulário */
.form-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 607px;
  justify-self: end;
  padding: 32px;
  border-radius: var(--r-card);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 32px 64px -24px var(--g-color-custom-19);
}

.form-card__head { text-align: center; }

.form-card__title {
  color: var(--red);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form-card__sub {
  max-width: 392px;
  margin: 8px auto 0;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: var(--lh-body);
  text-wrap: balance;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field--full { grid-column: 1 / -1; }

.field input {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--white);
  color: var(--ink);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: var(--lh-tight);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.field input::placeholder { color: var(--g-color-custom-20); font-weight: 500; opacity: 1; }
.field input:hover { border-color: var(--ink-soft); }
.field input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--g-color-custom-21);
}
.field input[aria-invalid="true"] { border-color: var(--red); }

.field__error {
  margin-top: 6px;
  color: var(--red);
  font-size: var(--fs-micro);
  font-weight: 700;
  line-height: var(--lh-tight);
}

/* Entrada da hero: o único movimento automático da primeira dobra */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy, .form-card, .hero__logo {
    animation: rise 1.1s var(--ease) both;
  }
  .hero__copy { animation-delay: .08s; }
  .form-card { animation-delay: .2s; }
}
/* Só deslocamento, sem opacidade: título e formulário nunca ficam invisíveis,
   mesmo se o navegador demorar a rodar o primeiro quadro. */
@keyframes rise {
  from { transform: translateY(16px); }
  to { transform: none; }
}

/* 05. Identificação
   ========================================================================== */

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 64px;
}
.split-head .lead { max-width: 480px; justify-self: end; color: var(--ink-soft); }

.stage { position: relative; }

.stage__photo {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center 40%;
  border-radius: var(--r-panel);
}

.stage__cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -152px;
  padding-inline: 32px;
}

.note-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: 0 24px 56px -24px var(--g-color-custom-17), 0 0 0 1px var(--g-color-custom-18);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.note-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px -24px var(--g-color-custom-17), 0 0 0 1px var(--g-color-custom-22);
}
.note-card .icon { color: var(--red); }
.note-card p { color: var(--ink-soft); font-size: var(--fs-body); line-height: var(--lh-body); }

.routine__bridge {
  max-width: 760px;
  margin: 80px auto 0;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-align: center;
  text-wrap: balance;
}

/* 03. Benefícios (bento)
   ========================================================================== */

.benefits { margin-top: var(--panel-inset); padding-inline: var(--panel-inset); }

.benefits__panel .container,
.pto > .container { padding-inline: calc(var(--gutter) - var(--panel-inset)); }

.benefits__panel {
  padding-block: var(--section-y);
  border-radius: var(--r-panel);
  background: var(--surface);
}

.center-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 64px;
  text-align: center;
}
.center-head .h2 { max-width: 640px; }
.center-head .lead { max-width: 680px; color: var(--ink-soft); }

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(456px, auto) minmax(480px, auto);
  gap: 16px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 40px;
  border-radius: var(--r-panel);
}
.tile p { font-size: var(--fs-body); line-height: var(--lh-body); text-wrap: pretty; }
.tile .h3 + p { margin-top: 16px; }
.tile__text { position: relative; z-index: 1; }

/* Benefício 1: ocupa duas colunas, foto de ponta a ponta */
.tile--photo {
  grid-column: span 2;
  justify-content: flex-end;
  background: var(--red-900);
  color: var(--white);
}
.tile--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 1.4s var(--ease);
}
.tile--photo:hover img { transform: scale(1.03); }
.tile--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--g-color-custom-23) 0%, var(--g-color-custom-24) 32%, var(--g-color-custom-25) 66%);
}
.tile--photo .tile__text { z-index: 1; max-width: 620px; }

/* Benefício 2: coluna alta, fibra sangrando na base */
.tile--fiber {
  grid-row: span 2;
  padding-bottom: 0;
  background: var(--red-900);
  color: var(--white);
}
.tile--fiber img {
  flex: 1 1 auto;
  width: calc(100% + 80px);
  max-width: none;
  height: 0;
  min-height: 360px;
  margin: 24px -40px 0;
  object-fit: cover;
  object-position: 60% 70%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, var(--g-color-custom-26) 28%);
  mask-image: linear-gradient(180deg, transparent 0%, var(--g-color-custom-26) 28%);
}

/* Benefício 3 */
.tile--light { background: var(--white); }
.tile__sketch {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-top: auto;
  padding-top: 32px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
}

/* Benefício 4: símbolo da raposa cortado na base, tom sobre tom */
.tile--fox {
  justify-content: flex-start;
  background: var(--red-700);
  color: var(--white);
}
.tile__fox {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 88%;
  max-width: none;
  transform: translateY(42%);
}

/* 06. PTO
   ========================================================================== */

.pto {
  margin: var(--panel-inset) var(--panel-inset) 0;
  overflow: hidden;
  border-radius: var(--r-panel);
  background:
    radial-gradient(70% 60% at 85% 20%, var(--g-color-custom-27) 0%, var(--red-900) 70%);
  color: var(--cream);
}

.pto__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: 80px;
  row-gap: 64px;
  align-items: center;
}

.selo {
  display: inline-block;
  margin-bottom: 32px;
  padding: 8px 16px;
  border: 1px solid var(--g-color-custom-28);
  border-radius: 100px;
  color: var(--amber-300);
  font-size: var(--fs-micro);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pto__text {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  text-wrap: pretty;
}

.pto__list-title {
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--amber-300);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.05;
}

.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; font-size: var(--fs-body); line-height: var(--lh-body); }
.checks .icon { margin-top: 4px; color: var(--red); stroke-width: 2.25; }
.checks--light .icon { color: var(--amber-500); }

.pto__close {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--g-color-custom-29);
}
.pto__impact {
  max-width: 720px;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.pto__close .btn { flex: none; }

/* Cena isométrica da instalação. A geometria é gerada por scripts/gerar-cena-pto.js.
   Os valores padrão deixam a cena completa e acesa sem JS ou com movimento reduzido. */
.iso {
  --a: 1;
  --b: 1;
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 680px;
}
.iso svg { width: 100%; height: auto; overflow: visible; }

/* Hierarquia de traço: estrutura, detalhe e grade. O traço não escala com a cena */
.iso path, .iso circle { vector-effect: non-scaling-stroke; }
.iso .s1 { stroke: var(--g-color-custom-30); stroke-width: 1.1; stroke-linejoin: round; }
.iso .s1b { stroke: var(--g-color-custom-31); stroke-width: 1; stroke-linejoin: round; }
.iso .s2 { fill: none; stroke: var(--g-color-custom-32); stroke-width: 1; }
.iso .s3 { fill: none; stroke: var(--g-color-custom-33); stroke-width: 1; }
.iso .f-top { fill: var(--g-color-custom-34); }
.iso .f-x { fill: var(--g-color-custom-35); }
.iso .f-y { fill: var(--g-color-custom-36); }
.iso .f-piso { fill: var(--g-color-custom-37); }

/* Peças principais: pequenas em escala real, então ganham luz e não tamanho */
.iso .foco {
  fill: var(--amber-500);
  opacity: .34;
  filter: url(#iso-foco);
  transition: opacity .8s var(--ease);
}
.iso .peca { transition: opacity .7s var(--ease); }
.iso .f-pto { fill: var(--cream); }
.iso .f-pto-topo { fill: var(--white); }
.iso .f-pto-lado { fill: var(--amber-200); }
.iso .s-pto { stroke: var(--amber-500); stroke-width: .75; stroke-linejoin: round; }
.iso .fox path { fill: var(--red-800); }
.iso .f-roteador { fill: var(--g-color-custom-38); }
.iso .f-roteador-topo { fill: var(--g-color-custom-39); }
.iso .s-ativo { stroke: var(--amber-500); stroke-width: 1; stroke-linejoin: round; }
.iso .s-antena { fill: none; stroke: var(--amber-500); stroke-width: 1.5; stroke-linecap: round; }
.iso .led { fill: var(--amber-200); transition: fill .5s var(--ease); }
.iso .f-clip { fill: var(--amber-300); }
.iso .s-clip { stroke: var(--g-color-custom-40); stroke-width: .5; }

/* Enquanto a fibra não chega, PTO e modem ficam apagados */
.iso.is-animated:not(.is-pto) .foco--pto,
.iso.is-animated:not(.is-router) .foco--rot { opacity: 0; }
.iso.is-animated:not(.is-pto) .peca--pto { opacity: .45; }
.iso.is-animated:not(.is-router) .peca--rot { opacity: .55; }
.iso.is-animated:not(.is-router) .led { fill: var(--g-color-custom-41); }

/* Fios de luz. Escalam com a cena: o traço tracejado que os desenha não funciona
   com non-scaling-stroke */
.iso .fio path { fill: none; vector-effect: none; stroke-linejoin: round; }
.iso .fio__repouso { stroke: var(--g-color-custom-42); stroke-width: 1.25; }
.iso .fio__aceso path { stroke-dasharray: 1; }
.iso .fio--entrada .fio__aceso path { stroke-dashoffset: calc(1 - var(--a)); }
.iso .fio--cordao .fio__aceso path { stroke-dashoffset: calc(1 - var(--b)); }
.iso .fio__halo { filter: url(#iso-glow); opacity: .7; stroke-width: 9; }
.iso .fio--entrada .fio__halo { stroke: var(--g-color-custom-43); }
.iso .fio--entrada .fio__corpo { stroke: var(--amber-500); stroke-width: 3; }
.iso .fio--entrada .fio__nucleo { stroke: var(--amber-200); stroke-width: .8; }
.iso .fio--cordao .fio__halo { stroke: var(--amber-500); opacity: .5; stroke-width: 7; }
.iso .fio--cordao .fio__corpo { stroke: var(--amber-300); stroke-width: 2.5; }
.iso .fio--cordao .fio__nucleo { stroke: var(--white); stroke-width: .7; }

.iso .fio__ponto { opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.iso .fio__ponto.is-on { opacity: 1; }
.iso .fio__ponto-brilho { fill: var(--amber-500); opacity: .6; filter: url(#iso-glow); }
.iso .fio__ponto-nucleo { fill: var(--white); }

/* Rótulos */
.iso .guia { fill: none; stroke: var(--amber-500); stroke-width: 1; }
.iso .guia-ponto { fill: var(--amber-300); stroke: var(--red-900); stroke-width: 1.25; }
.rotulo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translateY(-50%);
  color: var(--cream);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: var(--lh-tight);
  white-space: nowrap;
  text-shadow: 0 0 6px var(--red-900), 0 0 2px var(--red-900);
}
.rotulo b {
  display: block;
  margin-bottom: 2px;
  color: var(--amber-300);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.05;
}
.rotulo--discreto { color: var(--g-color-custom-44); font-size: var(--fs-micro); }
.rotulo--esq { transform: translate(calc(-100% - 16px), -50%); }

/* 04. Oferta
   ========================================================================== */

.offer { padding-bottom: 0; }

.offer__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 40px;
  overflow: hidden;
  min-height: 760px;
  padding: 56px;
  container-type: inline-size;
  border-radius: var(--r-panel);
  background: linear-gradient(100deg, var(--red-mid), var(--red));
  color: var(--white);
}

.offer__giant {
  position: absolute;
  z-index: 1;
  left: 40px;
  bottom: -.05em;
  color: var(--red-700);
  mix-blend-mode: multiply;
  font-size: 50cqw;
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.05em;
  user-select: none;
}

/* A foto se dissolve no vermelho do painel, sem caixa aparente */
.offer__photo {
  position: absolute;
  top: 0;
  left: 24%;
  width: 46%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, var(--g-color-custom-26) 34%, var(--g-color-custom-26) 70%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, var(--g-color-custom-26) 34%, var(--g-color-custom-26) 70%, transparent 100%);
}

.offer__head { position: relative; z-index: 2; max-width: 400px; }
.offer__head .lead { margin-top: 24px; font-weight: 600; }

.price-card {
  position: relative;
  z-index: 2;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  padding: 40px;
  border-radius: var(--r-card);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 40px 72px -32px var(--g-color-custom-45);
}

.offer__head { grid-column: 1; grid-row: 1; }
.price-card { grid-row: 1; align-self: start; }

.price-card__plan {
  color: var(--red);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}
.price-card__spec {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: var(--lh-tight);
  text-transform: uppercase;
}
.price-card__from {
  margin-top: 24px;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: var(--lh-tight);
}
.price-card__from s { text-decoration-thickness: 1.5px; }
.price-card__price {
  margin-top: 4px;
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.02em;
}
.price-card__value { font-size: clamp(3.5rem, 2.8rem + 2vw, 4.5rem); }
.price-card__period { font-size: 2rem; font-weight: 700; letter-spacing: -.01em; }
.price-card .checks {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.price-card .btn { --pad: 16px; margin-top: 28px; }

/* 07. Autoridade
   ========================================================================== */

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

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 80px;
  align-items: center;
}

/* O mascote sai da foto pelo canto inferior direito; o recuo inferior reserva
   o espaço do que passa da base dela */
.about__media { position: relative; padding-bottom: 34.5%; }
.about__photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-panel);
}

.about__mascot {
  position: absolute;
  right: -6%;
  bottom: 0;
  width: 47%;
  max-width: 323px;
}

.about__text {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-wrap: pretty;
}

.about__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.about__points li {
  padding: 20px 24px;
  border-radius: var(--r-card);
  background: var(--surface);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: var(--lh-body);
}

.about__sign {
  margin-top: 40px;
  color: var(--red);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.05;
}

/* 08. Como contratar
   ========================================================================== */

.steps {
  margin-inline: var(--panel-inset);
  overflow: hidden;
  border-radius: var(--r-panel);
  background: radial-gradient(70% 90% at 80% 10%, var(--g-color-custom-27) 0%, var(--red-900) 70%);
  color: var(--cream);
}
.steps > .container { padding-inline: calc(var(--gutter) - var(--panel-inset)); }

.steps__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 72px;
}
.steps__head .h2 { max-width: 560px; }
.steps__head .btn { flex: none; }

/* A quarta coluna tem a largura do texto, para o item terminar na borda direita,
   alinhado com o botão. A linha entre os passos usa o mesmo valor para parar no ponto 4 */
.steps__list {
  --line-progress: 1;
  --coluna-final: 210px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) var(--coluna-final);
  gap: 40px;
}

/* Linha de fibra que conecta os passos */
.steps__list::before,
.steps__list::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: calc(var(--coluna-final) - 28px);
  height: 2px;
  transform-origin: left center;
}
.steps__list::before { background: var(--g-color-custom-29); }
.steps__list::after {
  height: 3px;
  top: 26px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber-500), var(--amber-300));
  box-shadow: 0 0 20px var(--g-color-custom-46);
  transform: scaleX(var(--line-progress));
  transition: transform 2s var(--ease-soft);
}

.step { position: relative; z-index: 1; }

.step__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 32px;
  border-radius: 50%;
  background: var(--g-color-custom-47);
  box-shadow: inset 0 0 0 1.5px var(--amber-500), 0 0 24px var(--g-color-custom-48);
  color: var(--amber-300);
  font-size: var(--fs-h4);
  font-weight: 800;
  line-height: 1;
  transition: background-color .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease);
}
.step p { margin-top: 12px; color: var(--g-color-custom-49); font-size: var(--fs-body); line-height: var(--lh-body); text-wrap: pretty; }

.steps.is-waiting .steps__list { --line-progress: 0; }
.steps.is-waiting .step__num { background: var(--red-900); color: var(--g-color-custom-50); box-shadow: inset 0 0 0 1.5px var(--g-color-custom-51); }
.step:nth-child(2) .step__num { transition-delay: .55s; }
.step:nth-child(3) .step__num { transition-delay: 1s; }
.step:nth-child(4) .step__num { transition-delay: 1.4s; }

/* 09. FAQ
   ========================================================================== */

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

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 80px;
  align-items: start;
}
.faq__title { position: sticky; top: 120px; }

.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.05;
  cursor: pointer;
  list-style: none;
  transition: color .4s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--red); }
.faq__item summary .icon {
  width: 24px;
  height: 24px;
  color: var(--red);
  transition: transform .6s var(--ease);
}
.faq__item[open] summary .icon { transform: rotate(135deg); }

.faq__answer { overflow: hidden; }
.faq__answer p {
  max-width: 720px;
  padding-bottom: 28px;
  color: var(--ink-soft);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-wrap: pretty;
}

/* 10. Conversão final
   ========================================================================== */

.final { padding-inline: var(--panel-inset); }

.final__panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: linear-gradient(90deg, var(--orange), var(--red));
  color: var(--white);
}

.final__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 50% 45%, var(--g-color-custom-52), var(--g-color-custom-25));
}

/* Fundo espelhado: o feixe vem da esquerda, em diálogo com a hero */
.final__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: scaleX(-1);
}

.final__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1160px;
  margin-inline: auto;
  padding: var(--section-y) calc(var(--gutter) - var(--panel-inset));
  text-align: center;
}

.final__title {
  max-width: 760px;
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.final__sub {
  max-width: 640px;
  margin-top: 32px;
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: var(--lh-body);
  text-wrap: pretty;
}
.final__hook {
  margin-top: 16px;
  font-size: var(--fs-h4);
  font-weight: 800;
  line-height: 1.05;
}

.final__cta { margin-top: 48px; }

.final__micro {
  margin-top: 16px;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: var(--lh-tight);
}

/* 11. Rodapé
   ========================================================================== */

.footer {
  margin-top: var(--panel-inset);
  padding-block: 72px 40px;
  background: var(--red-900);
  color: var(--g-color-custom-30);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
}

.footer__brand { display: grid; gap: 12px; max-width: 680px; }
.footer__brand img { width: 148px; height: auto; margin-bottom: 16px; }
.footer__legal { color: var(--cream); font-weight: 700; }

.footer__cta { align-self: start; }

.footer__base {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--g-color-custom-33);
  font-size: var(--fs-micro);
  line-height: var(--lh-tight);
}
.footer__notes { display: grid; gap: 8px; max-width: 760px; }
.footer__terms { color: var(--g-color-custom-50); }
.footer__v4 { flex: none; width: auto; height: 32px; }

/* Responsivo
   ========================================================================== */

@media (max-width: 1100px) {
  .site-header__note { display: none; }
  .site-header { justify-content: space-between; }

  .hero__inner { min-height: 0; padding-top: 48px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 48px; }
  .form-card { justify-self: stretch; max-width: none; }

  .stage__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -96px; padding-inline: 16px; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .tile--photo { min-height: 440px; }
  .tile--fiber { grid-column: 1 / -1; grid-row: auto; }
  .tile--fiber img { flex: none; height: 400px; min-height: 0; }
  .tile--light, .tile--fox { min-height: 480px; }

  .pto__grid { grid-template-columns: minmax(0, 1fr); }
  .iso { justify-self: center; }
  .pto__close { flex-direction: column; align-items: flex-start; }

  .offer__panel { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 40px; }
  .offer__head { grid-column: 1; grid-row: 1; }
  .price-card { grid-column: 1; grid-row: 3; }
  .offer__photo { position: relative; top: auto; left: auto; grid-column: 1; grid-row: 2; width: min(100%, 520px); height: auto; aspect-ratio: 1 / 1.05; justify-self: center; margin-block: -16px; -webkit-mask-image: radial-gradient(58% 58% at 50% 50%, var(--g-color-custom-26) 60%, transparent 100%); mask-image: radial-gradient(58% 58% at 50% 50%, var(--g-color-custom-26) 60%, transparent 100%); }
  .offer__giant { position: relative; left: auto; bottom: auto; grid-column: 1; grid-row: 2; align-self: end; justify-self: center; font-size: 56cqw; line-height: .72; }
  .offer__head { max-width: 560px; }

  .about__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .about__copy { order: -1; }

  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .step__quebra { display: none; }
  .steps__list::before, .steps__list::after { display: none; }

  .faq__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .faq__title { position: static; }

}

@media (max-width: 768px) {
  html { scroll-padding-top: 96px; }

  .hero { padding-top: var(--panel-inset); }
  .h1 { line-height: .86; }

  /* Painel vertical: enquadra a parte vermelha do fundo, onde o branco tem leitura */
  .hero__bg, .final__bg { object-position: 38% center; }
  .hero__inner { padding-top: 28px; padding-bottom: 8px; }
  .hero__logo { width: 124px; }
  .hero__grid { gap: 32px; padding-block: 32px; }
  .hero__sub { margin-top: 24px; }

  .split-head { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 40px; }
  .split-head .lead { justify-self: start; }

  .stage__photo { aspect-ratio: 4 / 3; }
  .stage__cards { grid-template-columns: minmax(0, 1fr); margin-top: -64px; padding-inline: 12px; }
  .routine__bridge { margin-top: 56px; }

  .center-head { margin-bottom: 40px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile { padding: 28px; }
  .tile--photo { grid-column: auto; min-height: 480px; }
  /* A imagem quadrada ocupa toda a largura do card e se funde ao fundo, como no desktop */
  .tile--fiber { padding-bottom: 0; }
  .tile--fiber img { width: calc(100% + 56px); height: auto; max-height: 480px; aspect-ratio: 1; margin: 16px -28px 0; }
  .tile--light { min-height: 0; }
  .tile--fox { min-height: 0; padding-bottom: 264px; }
  .tile__fox { width: min(88%, 380px); }

  /* Plano no mobile: painel de ponta a ponta, sem foto e sem o "200" */
  .offer > .container { padding-inline: 0; }
  .offer__panel { padding: 48px 12px 12px; border-radius: 0; gap: 32px; }
  .offer__photo, .offer__giant { display: none; }
  .offer__head { padding-inline: calc(var(--gutter) - 12px); }
  .price-card { grid-row: 2; padding: 28px 24px; }

  .rotulo { font-size: 11px; }
  .rotulo b { font-size: 13px; }
  .rotulo--discreto { font-size: 10px; }

  .about__points { grid-template-columns: minmax(0, 1fr); }
  .about__media { padding-bottom: 42%; }
  .about__mascot { right: -2%; width: 50%; }

  .steps__head { flex-direction: column; align-items: flex-start; gap: 32px; margin-bottom: 48px; }
  .steps__list { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; }
  .step__num { grid-row: span 2; margin-bottom: 0; }
  .step .h4 { align-self: center; }
  /* A linha termina no quarto ponto: cobre o trecho abaixo dele */
  .step:last-child::after {
    content: "";
    position: absolute;
    top: 56px;
    bottom: 0;
    left: 0;
    width: 56px;
    background: var(--red-900);
    z-index: -1;
  }
  .steps__list::before, .steps__list::after {
    display: block;
    top: 28px;
    bottom: 40px;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
    transform-origin: top center;
  }
  .steps__list::after { width: 3px; left: 26px; top: 28px; transform: scaleY(var(--line-progress)); }

  .final__title { line-height: .86; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__cta { justify-self: start; }
  .footer__base { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 480px) {
  .site-header { padding: 8px 8px 8px 16px; gap: 12px; }
  .site-header__logo img { height: 32px; }
  /* Sem espaço para o frame ao lado do logo: no cabeçalho do celular fica só o texto */
  .btn--sm { --frame: 0px; --inset: 0px; --gap: 16px; --pad: 16px; min-height: 44px; font-size: var(--fs-micro); }
  .btn--sm .btn__cover { display: none; }

  .form-card { padding: 24px 20px; }
  .form-card__title { font-size: 1.375rem; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .btn:not(.btn--sm) { --pad: 16px; --gap: 12px; --frame: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
