/*
  Agenda Inteligente — landing page

  Organização (camadas em ordem crescente de prioridade):
    tokens      variáveis de cor, tipografia e espaçamento; tema escuro
    base        reset, elementos HTML, layout (.container)
    components  peças reutilizadas em mais de uma seção
    sections    layout e ajustes de cada seção, na ordem da página; responsivo no fim
    utilities   classes de propósito único

  Nomes (BEM leve):
    .bloco, .bloco-parte       componente e suas partes        .feature, .feature-header
    .bloco--variante           variação fixa no HTML           .btn--ghost, .message--in
    .is-estado                 estado ligado/desligado pelo JS .is-active, .is-visible
    html.has-recurso           modo global ligado pelo JS      .has-animation, .has-hscroll
*/
@layer tokens, base, components, sections, utilities;

/* =============================== fontes ===============================
   Geist e Geist Mono (SIL OFL 1.1), arquivos do Google Fonts servidos localmente.
   Fontes variáveis: um arquivo cobre todos os pesos. latin cobre o português;
   latin-ext só é baixado se a página usar um caractere dele. */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 300 800;
  src: url("fonts/geist-latin-ext.824f485b5d.woff2") format("woff2");
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 300 800;
  src: url("fonts/geist-latin.19f9c92546.woff2") format("woff2");
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  src: url("fonts/geist-mono-latin-ext.1a189eb997.woff2") format("woff2");
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  src: url("fonts/geist-mono-latin.684ad5b531.woff2") format("woff2");
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================== tokens ============================== */
@layer tokens {
  :root {
    color-scheme: light dark;

    /* cores que mudam com o tema: light-dark(claro, escuro) */
    --bg: light-dark(#f3f5f8, #080c19);
    --fg: light-dark(#0b1024, #eef1f7);
    --muted: light-dark(#56617b, #9eaac6);
    --border: light-dark(#dce2ec, #1e2743);
    --border-strong: light-dark(#c3ccdc, #2e3a60);
    --dot-color: light-dark(#d2d9e5, #18213d);
    --surface: light-dark(#fcfcfd, #10172d);
    --surface-2: light-dark(#edf1f7, #141c36);
    --brand: light-dark(#13235b, #1fd6a0);
    --on-brand: light-dark(#f3f5f8, #0b1024);
    --mint-ink: light-dark(#08785a, #1fd6a0);
    --mint-soft: light-dark(#c9f5e7, #0f3b31);
    --blue-soft: light-dark(#dce4f6, #17224a);
    --text-faded: light-dark(#c6d0e4, #2a3558);
    --panel: light-dark(#060a17, #03060f);
    --panel-card: light-dark(#0f1733, #0e1531);
    --chat-bg: light-dark(#e7edf5, #0d1429);
    --message-out-bg: light-dark(#c9f5e7, #11594a);
    --message-in-bg: light-dark(#fcfcfd, #1a2343);
    --slot-pick-bg: light-dark(var(--navy), var(--mint));
    --slot-pick-fg: light-dark(var(--on-navy), var(--ink));
    --shadow-color: light-dark(rgba(19, 35, 91, 0.35), rgba(0, 0, 0, 0.7));

    /* cores fixas nos dois temas */
    --navy: #13235b;
    --royal: #1d3b91;
    --mint: #1fd6a0;
    --ink: #0b1024; /* texto escuro sobre menta */
    --paper: #fcfcfd; /* fundo do QR code */
    --phone-bg: #0b1024;
    --chat-header-bg: #13235b;
    --chat-header-muted: #a9f0da;
    --on-navy: #f3f5f8;
    --on-navy-muted: #b9c5e3;
    --on-royal-muted: #c3ceec;
    --on-mint-muted: #173a33;
    --panel-fg: #eef1f7;
    --panel-muted: #9eaac6;
    --panel-border: rgba(238, 241, 247, 0.14);
    --glow-mint: rgba(31, 214, 160, 0.3);
    --glow-blue: rgba(46, 82, 214, 0.55);

    /* sombras */
    --shadow: 0 24px 60px -24px var(--shadow-color);
    --shadow-message: 0 1px 0 rgba(11, 16, 36, 0.06);
    --shadow-whatsapp: 0 18px 40px -16px rgba(8, 120, 90, 0.6);

    /* tipografia */
    --font-display: "Geist", "Helvetica Neue", helvetica, arial, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", menlo, monospace;
    --font-label: 500 12px/1 var(--font-mono); /* rótulos em mono: pill, tags de card, legendas */

    /* escala tipográfica (fluida) */
    --fs-marquee: clamp(64px, 12vw, 184px);
    --fs-step: clamp(44px, 5.6vw, 76px);
    --fs-display: clamp(42px, 5.3vw, 76px);
    --fs-statement: clamp(32px, 4.8vw, 68px);
    --fs-h2: clamp(36px, 4.8vw, 66px);
    --fs-fact: clamp(30px, 3vw, 40px);
    --fs-h3-lg: clamp(26px, 2.6vw, 34px);
    --fs-h3: clamp(26px, 2.4vw, 32px);
    --fs-lead: clamp(17px, 1.4vw, 19px);

    /* raios */
    --radius-pill: 999px;
    --radius-xl: 30px;
    --radius-lg: 26px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --radius-xs: 10px;
    --radius-2xs: 8px;

    /* empilhamento */
    --z-progress: 70;
    --z-notch: 60;
    --z-whatsapp: 55;
    --z-header: 50;

    /* animação */
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-pop: cubic-bezier(0.2, 0.9, 0.3, 1.2);

    /* layout */
    --gutter-left: max(20px, env(safe-area-inset-left, 0px));
    --gutter-right: max(20px, env(safe-area-inset-right, 0px));
  }
}

/* =============================== base =============================== */
@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    scroll-padding-top: env(safe-area-inset-top, 0px);
  }

  html,
  body {
    overflow-x: clip;
  }

  body {
    margin: 0;
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.55;
    color: var(--fg);
    background-color: var(--bg);
    background-image: radial-gradient(var(--dot-color) 1px, transparent 1.3px);
    background-size: 22px 22px;
    -webkit-font-smoothing: antialiased;
  }

  /* cobre a área do notch, para o conteúdo não aparecer atrás dela */
  body::before {
    position: fixed;
    inset: 0 0 auto;
    z-index: var(--z-notch);
    height: env(safe-area-inset-top, 0px);
    content: "";
    background: var(--bg);
  }

  a {
    color: inherit;
  }

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

  h1,
  h2,
  h3,
  p {
    margin: 0;
  }

  h1,
  h2,
  h3 {
    text-wrap: balance;
  }

  /* alvos de foco programático (âncoras internas) */
  [tabindex="-1"]:focus {
    outline: none;
  }

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

  [hidden]:not([hidden="until-found" i]) {
    display: none !important;
  }

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

  @media (prefers-reduced-motion: reduce) {
    * {
      transition: none !important;
      animation: none !important;
    }
  }
}

/* ============================ components ============================ */
@layer components {
  /* ícones do sprite (assets/icons.f262f2a13c.svg) */
  .icon {
    fill: none;
    stroke: currentcolor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* botões */
  .btn {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    height: 52px;
    padding: 0 26px;
    font: 500 16px/1 var(--font-display);
    color: var(--on-brand);
    text-decoration: none;
    cursor: pointer;
    background: var(--brand);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }

  .btn:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
  }

  .btn svg {
    width: 18px;
    height: 18px;
  }

  .btn--ghost {
    color: var(--fg);
    background: transparent;
    border-color: var(--border-strong);
  }

  .btn--sm {
    height: 44px;
    padding: 0 20px;
    font-size: 15px;
  }

  /* tipografia */
  .eyebrow {
    font: 500 13px/1.2 var(--font-mono);
    color: var(--mint-ink);
    text-transform: lowercase;
    letter-spacing: 0.05em;
  }

  .panel .eyebrow {
    color: var(--mint);
  }

  .section-title {
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  .lead {
    max-width: 56ch;
    font-size: var(--fs-lead);
    color: var(--muted);
  }

  /* marca-texto menta */
  .highlight {
    background-image: linear-gradient(var(--mint), var(--mint));
    background-repeat: no-repeat;
    background-position: 0 86%;
    background-size: 100% 0.26em;
    transition: background-size 1.1s var(--ease-out) 0.2s;
  }

  html.has-animation .highlight:not(.is-visible) {
    background-size: 0% 0.26em;
  }

  /* texto quebrado pelo JS: palavras (.split-mask > .split-inner) e letras (.split-word > .split-char) */
  .split-mask {
    display: inline-block;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
    overflow: hidden;
    vertical-align: top;
  }

  .split-inner,
  .split-char,
  .split-word {
    display: inline-block;
  }

  .split-word {
    white-space: nowrap;
  }

  /* painel escuro com brilhos */
  .panel {
    position: relative;
    padding: clamp(32px, 6.5vw, 92px) clamp(24px, 6vw, 84px);
    overflow: hidden;
    color: var(--panel-fg);
    background: var(--panel);
    border-radius: var(--radius-xl);
  }

  .panel > *:not(.glow) {
    position: relative;
  }

  .glow {
    position: absolute;
    max-width: 100%;
    aspect-ratio: 1;
    pointer-events: none;
    border-radius: 50%;
    will-change: transform;
  }

  .glow--mint {
    bottom: -40%;
    left: -18%;
    width: 60%;
    background: radial-gradient(circle, var(--glow-mint), transparent 65%);
  }

  .glow--blue {
    top: -35%;
    right: -22%;
    width: 70%;
    background: radial-gradient(circle, var(--glow-blue), transparent 62%);
  }

  /* celular e conversa de WhatsApp */
  .phone {
    position: relative;
    z-index: 1;
    width: min(350px, 100%);
    padding: 11px;
    background: var(--phone-bg);
    border-radius: 46px;
    box-shadow: var(--shadow);
  }

  .phone-screen {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--chat-bg);
    border-radius: 36px;
  }

  .chat-header {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 18px 18px 14px;
    color: var(--on-navy);
    background: var(--chat-header-bg);
  }

  .chat-header b {
    display: block;
    font-size: 15px;
    font-weight: 600;
  }

  .chat-header small {
    font-size: 12px;
    color: var(--chat-header-muted);
  }

  .avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--navy);
    background: var(--mint);
    border-radius: 50%;
  }

  .avatar svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
  }

  .chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-end;
    min-height: 430px;
    padding: 16px 14px 18px;
  }

  .chat-day {
    align-self: center;
    padding: 6px 10px;
    font: 500 11px/1 var(--font-mono);
    color: var(--muted);
    background: var(--surface);
    border-radius: var(--radius-2xs);
  }

  .message {
    max-width: 84%;
    padding: 9px 13px 7px;
    font-size: 14.5px;
    line-height: 1.42;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-message);
  }

  .message--out {
    align-self: flex-end;
    background: var(--message-out-bg);
    border-bottom-right-radius: 5px;
  }

  .message--in {
    align-self: flex-start;
    background: var(--message-in-bg);
    border-bottom-left-radius: 5px;
  }

  .message-time {
    display: block;
    margin-top: 3px;
    font: 400 10.5px/1.2 var(--font-mono);
    color: var(--muted);
    text-align: right;
  }

  .message.is-pending {
    display: none;
  }

  .message.is-entering {
    animation: message-pop 0.45s var(--ease-pop);
  }

  @keyframes message-pop {
    from {
      opacity: 0;
      transform: translateY(10px) scale(0.96);
    }
  }

  .audio {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 200px;
  }

  .audio .audio-play {
    display: grid;
    flex: none;
    place-items: center;
    width: 30px;
    height: 30px;
    background: var(--navy);
    border-radius: 50%;
  }

  .audio .audio-play svg {
    width: 12px;
    height: 12px;
    color: var(--on-navy);
  }

  .audio-duration {
    font: 500 11px var(--font-mono);
    color: var(--muted);
  }

  .audio-wave {
    display: flex;
    flex: 1;
    gap: 2px;
    align-items: center;
    height: 22px;
  }

  .audio-wave span {
    display: block;
    width: 3px;
    background: var(--navy);
    border-radius: 2px;
    opacity: 0.75;
  }

  .message-pix {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    margin-top: 6px;
    font: 500 12.5px/1.2 var(--font-mono);
    background: var(--surface-2);
    border-radius: var(--radius-xs);
  }

  .message-pix svg {
    width: 18px;
    height: 18px;
    color: var(--mint-ink);
  }

  .chat-typing {
    display: none;
    gap: 4px;
    align-self: flex-start;
    padding: 12px 14px;
    background: var(--message-in-bg);
    border-radius: var(--radius-sm);
    border-bottom-left-radius: 5px;
  }

  .chat-typing.is-visible {
    display: flex;
  }

  .chat-typing span {
    width: 7px;
    height: 7px;
    background: var(--muted);
    border-radius: 50%;
    animation: typing-blink 1s infinite;
  }

  .chat-typing span:nth-child(2) {
    animation-delay: 0.15s;
  }

  .chat-typing span:nth-child(3) {
    animation-delay: 0.3s;
  }

  @keyframes typing-blink {
    0%,
    80%,
    100% {
      opacity: 0.25;
    }

    40% {
      opacity: 1;
    }
  }

  /* card flutuante */
  .float-card {
    position: absolute;
    z-index: 2;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.3;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
  }

  .float-card b {
    display: block;
  }

  .float-card small {
    font-size: 12.5px;
    color: var(--muted);
  }

  .float-card .float-card-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--ink);
    background: var(--mint);
    border-radius: var(--radius-xs);
  }

  .float-card .float-card-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
  }

  .float-card--top {
    top: 16%;
    left: -4%;
  }

  .float-card--bottom {
    right: -3%;
    bottom: 12%;
  }

  /* janela de mockup */
  .mock {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    padding: 22px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
  }

  .mock-header {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    font: var(--font-label);
    color: var(--muted);
  }

  .mock .message {
    font-size: 14px;
  }

  /* etiqueta */
  .pill {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 7px 11px;
    font: var(--font-label);
    color: var(--fg);
    background: var(--surface-2);
    border-radius: var(--radius-pill);
  }

  .pill svg {
    width: 13px;
    height: 13px;
    color: var(--mint-ink);
  }

  .pill--mint {
    color: var(--ink);
    background: var(--mint);
  }

  .pill--mint svg {
    color: var(--ink);
  }

  /* lista com check */
  .checklist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    margin: 8px 0 2px;
    list-style: none;
  }

  .checklist li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 14px;
  }

  .checklist svg {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--mint-ink);
  }

  /* fundo pontilhado azul */
  .stage-frame,
  .rules-chat {
    background-color: var(--blue-soft);
    background-image: radial-gradient(
      color-mix(in srgb, var(--fg) 12%, transparent) 1px,
      transparent 1.3px
    );
    background-size: 16px 16px;
  }
}

/* ============================= sections ============================= */
@layer sections {
  /* --- barra de progresso --- */
  .scroll-progress {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    right: 0;
    left: 0;
    z-index: var(--z-progress);
    height: 3px;
    background: var(--mint);
    transform: scaleX(0);
    transform-origin: left;
  }

  /* --- header --- */
  .site-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: var(--z-header);
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    border-bottom: 1px solid transparent;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: border-color 0.3s;
  }

  .site-header.is-scrolled {
    border-bottom-color: var(--border);
  }

  .site-header .container {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding-block: 14px;
  }

  .site-header .brand img {
    width: auto;
    height: 38px;
  }

  .nav {
    display: flex;
    gap: 30px;
    align-items: center;
  }

  .nav a {
    font-size: 15px;
    text-decoration: none;
    opacity: 0.82;
    transition: opacity 0.2s;
  }

  .nav a:hover,
  .nav a.btn {
    opacity: 1;
  }

  /* --- hero --- */
  .hero {
    padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px);
  }

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

  .hero-copy {
    display: flex;
    flex-direction: column;
    gap: 26px;
    min-width: 0;
  }

  .hero h1 {
    font-size: var(--fs-display);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.05em;
  }

  .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .facts {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 48px);
    padding-top: 10px;
  }

  .fact b {
    display: block;
    font-size: var(--fs-fact);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .fact span {
    font-size: 14px;
    color: var(--muted);
  }

  .hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 28px 0;
  }

  .hero-visual::before {
    position: absolute;
    inset: 10% -2% 0 16%;
    z-index: 0;
    content: "";
    background-color: var(--mint-soft);
    background-image: radial-gradient(
      color-mix(in srgb, var(--mint-ink) 22%, transparent) 1px,
      transparent 1.3px
    );
    background-size: 16px 16px;
    border-radius: var(--radius-xl);
  }

  /* --- problema --- */
  .panel-section {
    padding-block: clamp(24px, 4vw, 40px);
  }

  .statement {
    max-width: 20ch;
    margin-top: 22px;
    font-size: var(--fs-statement);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.04em;
  }

  .statement em {
    font-style: normal;
    color: var(--mint);
  }

  .pains {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: clamp(48px, 6vw, 80px);
  }

  .pain {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding-top: 24px;
    border-top: 1px solid var(--panel-border);
  }

  .pain svg {
    width: 26px;
    height: 26px;
    color: var(--mint);
    stroke-width: 1.8;
  }

  .pain h3 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  .pain p {
    font-size: 16px;
    color: var(--panel-muted);
  }

  /* --- solução / passos --- */
  .solution {
    padding-block: clamp(80px, 10vw, 140px) 40px;
  }

  .solution-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 900px;
  }

  .steps-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    margin-top: clamp(40px, 6vw, 72px);
  }

  /* recuo da coluna de passos e tamanho das bolinhas; .timeline e .step-dot derivam destes valores */
  .steps {
    --steps-indent: 76px;
    --dot-size: 48px;

    position: relative;
    padding-left: var(--steps-indent);
  }

  .timeline {
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: calc(var(--dot-size) / 2 - 1px); /* centro da bolinha, menos metade da linha de 2px */
    width: 2px;
    background: repeating-linear-gradient(
      to bottom,
      var(--border-strong) 0 6px,
      transparent 6px 12px
    );
  }

  .timeline-fill {
    position: absolute;
    inset: 0;
    background: var(--brand);
    transform-origin: top;
  }

  .step {
    display: flex;
    align-items: center;
    min-height: 78vh;
  }

  .step-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding-block: 40px;
  }

  .step-dot {
    position: absolute;
    top: 36px;
    left: calc(-1 * var(--steps-indent));
    display: grid;
    place-items: center;
    width: var(--dot-size);
    height: var(--dot-size);
    font: 500 14px/1 var(--font-mono);
    color: var(--brand);
    background: var(--bg);
    border: 1.5px solid var(--brand);
    border-radius: 50%;
    transition:
      background 0.35s,
      color 0.35s;
  }

  .step.is-active .step-dot {
    color: var(--on-brand);
    background: var(--brand);
    border-color: var(--brand);
  }

  .step-kicker {
    font-size: 18px;
    font-weight: 500;
  }

  .step-word {
    font-size: var(--fs-step);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.05em;
  }

  html.has-animation .step .step-word .split-char {
    color: var(--text-faded);
    transition: color 0.5s ease calc(var(--index, 0) * 35ms);
  }

  html.has-animation .step.is-active .step-word .split-char {
    color: var(--fg);
  }

  html.has-animation .step.is-active .step-word .split-char.is-period {
    color: var(--mint);
  }

  .step p.lead {
    max-width: 44ch;
  }

  .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 6px 0 0;
    list-style: none;
  }

  .tag-list li {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 7px 14px;
    font-size: 14px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
  }

  .tag-list li svg {
    width: 15px;
    height: 15px;
    color: var(--mint-ink);
  }

  .step-visual {
    height: 440px;
    margin-top: 18px;
  }

  /* palco fixo (desktop): recebe cópias dos .step-visual como .stage-visual */
  .stage {
    position: sticky;
    top: calc(50vh - 250px); /* centraliza na tela; acompanhar se mudar a altura */
    height: 520px;
  }

  .stage-frame {
    position: relative;
    height: 100%;
    padding: 34px;
    border-radius: var(--radius-xl);
    transition: background-color 0.6s ease;
  }

  .stage-frame[data-tone="mint"] {
    background-color: var(--mint-soft);
  }

  .stage .stage-visual {
    position: absolute;
    inset: 34px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(26px) scale(0.97);
    transition:
      opacity 0.55s ease,
      transform 0.7s var(--ease-out);
  }

  .stage .stage-visual.is-active {
    pointer-events: auto;
    opacity: 1;
    transform: none;
  }

  .mock-status {
    opacity: 0;
    transform: translateY(6px);
    transition:
      opacity 0.4s ease 0.7s,
      transform 0.4s ease 0.7s;
  }

  .stage-visual.is-active .mock-status,
  .step-visual .mock-status {
    opacity: 1;
    transform: none;
  }

  /* mockup: agenda da semana */
  .calendar {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .calendar-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }

  .calendar-day {
    padding-bottom: 4px;
    font: 500 12px/1.2 var(--font-mono);
    color: var(--muted);
    border-bottom: 1px solid var(--border);
  }

  .calendar-day b {
    display: block;
    font: 600 17px/1.2 var(--font-display);
    color: var(--fg);
  }

  .calendar-rule {
    min-height: 28px;
    font: 500 10.5px/1.25 var(--font-mono);
    color: var(--muted);
  }

  .calendar-rule--only {
    color: var(--fg);
  }

  .calendar-slot {
    padding: 8px 6px;
    font: 500 12px/1.2 var(--font-mono);
    text-align: center;
    background: var(--surface-2);
    border-radius: var(--radius-2xs);
  }

  .calendar-slot--busy {
    color: var(--muted);
    background: repeating-linear-gradient(135deg, var(--surface-2) 0 5px, var(--border) 5px 7px);
  }

  .calendar-slot--pick {
    color: var(--slot-pick-fg);
    background: var(--slot-pick-bg);
  }

  /* mockup: pagamento pix */
  .pix {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .pix-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  .pix .pix-text {
    max-width: 30ch;
    font-size: 14px;
    color: var(--muted);
  }

  .qr {
    width: 150px;
    height: 150px;
    padding: 10px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 14px;
  }

  .qr svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  /* --- recursos (faixa horizontal no desktop) --- */
  .features {
    padding-block: clamp(80px, 9vw, 120px);
  }

  .features-header {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
  }

  .features-title {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .features-header .section-title {
    max-width: 16ch;
  }

  .features-header .lead {
    max-width: 36ch;
  }

  .hscroll-viewport {
    margin-top: clamp(36px, 5vw, 56px);
  }

  /* mesmo alinhamento do .container */
  .hscroll-track,
  .hscroll-bar {
    max-width: 1200px;
    padding-right: var(--gutter-right);
    padding-left: var(--gutter-left);
    margin-inline: auto;
  }

  .hscroll-track {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
  }

  .hscroll-bar {
    display: none;
    margin-top: 28px;
  }

  .hscroll-bar div {
    height: 2px;
    overflow: hidden;
    background: var(--border);
    border-radius: 2px;
  }

  .hscroll-bar span {
    display: block;
    height: 100%;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
  }

  .feature {
    display: flex;
    flex: 1 1 300px;
    flex-direction: column;
    gap: 28px;
    justify-content: space-between;
    min-width: 0;
    min-height: 400px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }

  .feature-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .feature-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    background: var(--surface-2);
    border-radius: 50%;
  }

  .feature-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.8;
  }

  .feature-tag {
    font: var(--font-label);
    color: var(--muted);
  }

  .feature h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.035em;
  }

  .feature p {
    margin-top: 12px;
    font-size: 16px;
    color: var(--muted);
  }

  .feature--navy {
    color: var(--on-navy);
    background: var(--navy);
    border-color: var(--navy);
  }

  .feature--navy p,
  .feature--navy .feature-tag {
    color: var(--on-navy-muted);
  }

  .feature--navy .feature-icon {
    color: var(--mint);
    background: color-mix(in srgb, var(--on-navy) 12%, transparent);
  }

  .feature--mint {
    color: var(--ink);
    background: var(--mint);
    border-color: var(--mint);
  }

  .feature--mint p,
  .feature--mint .feature-tag {
    color: var(--on-mint-muted);
  }

  .feature--mint .feature-icon {
    color: var(--ink);
    background: color-mix(in srgb, var(--ink) 10%, transparent);
  }

  html.has-hscroll .features {
    padding-block: 0;
  }

  html.has-hscroll .hscroll-pin {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding-block: 96px 48px;
  }

  html.has-hscroll .hscroll-track {
    flex-wrap: nowrap;
    width: max-content;
    max-width: none;
    padding-left: max(20px, calc((100vw - 1200px) / 2 + 20px));
    margin-inline: 0;
  }

  html.has-hscroll .hscroll-bar {
    display: block;
  }

  html.has-hscroll .feature {
    flex: 0 0 380px;
    min-height: 340px;
  }

  /* --- fila de espera --- */
  .queue .section-title {
    max-width: 14ch;
    margin-top: 20px;
  }

  .queue .glow--mint {
    right: -20%;
    bottom: -50%;
    left: auto;
  }

  .queue .glow--blue {
    right: auto;
    left: -25%;
  }

  .flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: clamp(48px, 6vw, 80px);
  }

  .flow-line {
    position: absolute;
    top: 27px;
    right: 28px;
    left: 28px;
    height: 2px;
    background: var(--panel-border);
  }

  .flow-fill {
    position: absolute;
    inset: 0;
    background: var(--mint);
    transform-origin: left;
  }

  .flow-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
  }

  .flow-step-dot {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: var(--ink);
    background: var(--mint);
    border: 1.5px solid var(--mint);
    border-radius: 50%;
    transition:
      background 0.4s,
      color 0.4s,
      border-color 0.4s;
  }

  .flow-step-dot svg {
    width: 24px;
    height: 24px;
  }

  .flow-step .flow-step-time {
    margin-top: 8px;
    font: 500 13px/1 var(--font-mono);
    color: var(--mint);
  }

  .flow-step h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.025em;
  }

  .flow-step p {
    max-width: 30ch;
    font-size: 16px;
    color: var(--panel-muted);
  }

  html.has-animation .flow-step {
    transition: opacity 0.4s;
  }

  html.has-animation .flow-step:not(.is-active) {
    opacity: 0.45;
  }

  html.has-animation .flow-step:not(.is-active) .flow-step-dot {
    color: var(--panel-muted);
    background: var(--panel);
    border-color: var(--panel-border);
  }

  .flow-note {
    margin-top: 36px;
    font: var(--font-label);
    color: var(--panel-muted);
  }

  /* --- convênio --- */
  .rules {
    padding-block: clamp(80px, 10vw, 140px);
  }

  .rules .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
  }

  .rules-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
  }

  .week {
    padding: 0;
    margin: 12px 0 0;
    list-style: none;
    border-top: 1px solid var(--border);
  }

  .week li {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }

  .week .week-label {
    padding: 7px 11px;
    font: 500 12.5px/1 var(--font-mono);
    color: var(--muted);
    white-space: nowrap;
    background: var(--surface-2);
    border-radius: var(--radius-pill);
  }

  .week .week-label--only {
    color: var(--on-navy);
    background: var(--navy);
  }

  .rules-chat {
    position: relative;
    padding: clamp(20px, 3vw, 36px);
    border-radius: var(--radius-xl);
  }

  .rules-chat .phone-screen {
    box-shadow: var(--shadow);
  }

  .rules-chat .chat {
    min-height: 0;
    padding-block: 20px;
  }

  .rules-chat .message {
    font-size: 15.5px;
  }

  /* --- benefícios (bento) --- */
  .benefits {
    padding-block: clamp(24px, 4vw, 40px);
  }

  .benefits .section-title {
    max-width: 16ch;
    margin-top: 20px;
  }

  .bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-top: clamp(40px, 5vw, 64px);
  }

  .bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: space-between;
    min-width: 0;
    min-height: 250px;
    padding: 28px;
    overflow: hidden;
    color: var(--panel-fg);
    background: var(--panel-card);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
  }

  .bento-card::before {
    position: absolute;
    inset: 0;
    content: "";
    background: radial-gradient(
      360px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      color-mix(in srgb, var(--mint) 16%, transparent),
      transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s;
  }

  .bento-card:hover::before {
    opacity: 1;
  }

  .bento-card > * {
    position: relative;
  }

  .bento-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .bento-card-header svg {
    width: 30px;
    height: 30px;
    color: var(--mint);
    stroke-width: 1.8;
  }

  .bento-card-header span {
    font: var(--font-label);
    color: var(--panel-muted);
  }

  .bento-card h3 {
    font-size: var(--fs-h3-lg);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.035em;
  }

  .bento-card p {
    max-width: 42ch;
    margin-top: 10px;
    font-size: 16px;
    color: var(--panel-muted);
  }

  .bento-card--wide {
    grid-column: span 4;
  }

  .bento-card--narrow {
    grid-column: span 2;
  }

  .bento-card--mint {
    color: var(--ink);
    background: var(--mint);
    border-color: var(--mint);
  }

  .bento-card--mint p,
  .bento-card--mint .bento-card-header span {
    color: var(--on-mint-muted);
  }

  .bento-card--mint .bento-card-header svg {
    color: var(--ink);
  }

  .bento-card--royal {
    background: var(--royal);
    border-color: var(--royal);
  }

  .bento-card--royal p,
  .bento-card--royal .bento-card-header span {
    color: var(--on-royal-muted);
  }

  /* --- letreiro --- */
  .marquee {
    padding-block: clamp(56px, 7vw, 100px) 10px;
    overflow: hidden;
  }

  .marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 42s linear infinite;
  }

  /* com GSAP, o JS controla o movimento */
  html.has-animation .marquee-track {
    animation: none;
  }

  .marquee-item {
    padding-right: 0.35em;
    font-size: var(--fs-marquee);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.055em;
    white-space: nowrap;
  }

  .marquee-item span {
    color: var(--mint);
  }

  @keyframes marquee-scroll {
    to {
      transform: translateX(-50%);
    }
  }

  /* --- CTA / contato --- */
  .cta {
    padding-block: 20px clamp(80px, 9vw, 120px);
  }

  .cta .container {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
    text-align: center;
  }

  .cta .section-title {
    max-width: 14ch;
  }

  .cta .actions {
    justify-content: center;
  }

  .contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
  }

  .contact {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 10px 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
  }

  .contact-value {
    font: 500 15px/1 var(--font-mono);
    text-decoration: none;
  }

  a.contact-value:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .copy-button {
    height: 34px;
    padding: 0 14px;
    font: 500 13px/1 var(--font-display);
    color: var(--fg);
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
  }

  .copy-button:hover {
    background: var(--surface-2);
  }

  /* --- rodapé --- */
  .site-footer {
    padding-bottom: clamp(20px, 3vw, 32px);
  }

  .site-footer .panel {
    padding: clamp(32px, 5vw, 64px);
  }

  .site-footer .glow--blue {
    top: -60%;
  }

  .site-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }

  .site-footer-grid img {
    width: auto;
    height: 44px;
  }

  .site-footer-heading {
    margin: 0 0 14px;
    font: var(--font-label);
    color: var(--panel-muted);
    text-transform: lowercase;
    letter-spacing: 0.05em;
  }

  .site-footer ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .site-footer a {
    color: var(--panel-fg);
    text-decoration: none;
    opacity: 0.85;
  }

  .site-footer a:hover,
  .site-footer .site-footer-email {
    opacity: 1;
  }

  .site-footer .footer-tagline {
    max-width: 34ch;
    margin-top: 18px;
    font-size: 15px;
    color: var(--panel-muted);
  }

  /* link discreto: mesmo visual do texto, sublinha no hover */
  .site-footer .footer-tagline a {
    color: inherit;
    opacity: 1;
  }

  .site-footer .footer-tagline a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding-top: 22px;
    margin-top: 48px;
    font-size: 14px;
    color: var(--panel-muted);
    border-top: 1px solid var(--panel-border);
  }

  /* --- botão flutuante do WhatsApp --- */
  .whatsapp-float {
    position: fixed;
    right: calc(20px + env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: var(--z-whatsapp);
    display: flex;
    gap: 10px;
    align-items: center;
    height: 56px;
    padding: 0 22px 0 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    background: var(--mint);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-whatsapp);
    transition: transform 0.25s;
  }

  .whatsapp-float:hover {
    transform: translateY(-3px);
  }

  .whatsapp-float svg {
    width: 22px;
    height: 22px;
  }

  /* --- responsivo ---
     960px: também usado no JS (gsap.matchMedia em app.7e921e8ab6.js), alterar nos dois lugares */
  @media (width > 960px) {
    /* no desktop o conteúdo aparece no .stage; aqui fica só para leitores de tela */
    .step .step-visual {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      overflow: hidden;
      white-space: nowrap;
      clip-path: inset(50%);
    }
  }

  @media (width <= 960px) {
    .nav a:not(.btn),
    .stage,
    .flow-line {
      display: none;
    }

    .hero .container,
    .pains,
    .flow,
    .steps-grid,
    .rules .container,
    .site-footer-grid {
      grid-template-columns: 1fr;
    }

    .hero-visual {
      width: 100%;
      max-width: 460px;
      margin-inline: auto;
    }

    .float-card--top {
      left: 0;
    }

    .float-card--bottom {
      right: 0;
    }

    .step {
      min-height: 0;
    }

    .bento-card--wide,
    .bento-card--narrow {
      grid-column: span 6;
    }
  }

  @media (width <= 560px) {
    .site-header .brand img {
      height: 30px;
    }

    .site-header .btn--sm {
      padding: 0 14px;
      font-size: 14px;
    }

    .float-card {
      padding: 10px 12px;
    }

    .float-card--top {
      top: 4%;
    }

    .steps {
      --steps-indent: 60px;
      --dot-size: 42px;
    }

    .whatsapp-float {
      justify-content: center;
      width: 56px;
      padding: 0;
    }

    .whatsapp-float span {
      display: none;
    }
  }
}

/* ============================= utilities ============================ */
@layer utilities {
  .spacer {
    flex: 1;
  }

  .select-all {
    user-select: all;
  }

  /* visível só para leitores de tela */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip-path: inset(50%);
  }
}
