/* Dra. Daniela Bassani · landing
   Sistema tirado da logo oficial: campo marinho profundo, caps serena espaçada,
   assinatura manuscrita e um único gesto gráfico, o traço-sorriso turquesa. */

@layer reset, base, layout, components, sections, motion, responsive;

/* ---------- Fontes: a voz da logo ---------- */
@font-face {
  font-family: "Tenor Sans";
  src: url("/assets/fonts/tenor-sans-latin-400-normal.woff2?v=f0519cf597") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Great Vibes";
  src: url("/assets/fonts/great-vibes-latin-400-normal.woff2?v=c59dc73d29") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-400-normal.woff2?v=8f98dd6429") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-500-normal.woff2?v=953a6a4294") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-600-normal.woff2?v=367d713287") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-700-normal.woff2?v=7ec4f08d09") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
/* Fallbacks métricos: ocupam o mesmo espaço enquanto a fonte real chega */
@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 99%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%;
}
@font-face {
  font-family: "Tenor Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 106%; ascent-override: 76%; descent-override: 24%; line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #03214f;        /* o campo da logo */
  --navy-lift: #0a2c5e;   /* um degrau acima: hover, bloco de montagem */
  --navy-deep: #021737;   /* véu e sombra */
  --turq: #00d5cf;        /* o traço-sorriso: tinta luminosa só sobre marinho */
  --turq-soft: #45e0db;   /* hover da pílula turquesa */
  --turq-ink: #00716d;    /* o mesmo traço, escurecido até AA, para link sobre claro */
  --ice: #eefaf9;         /* faixa clara com a temperatura do turquesa */

  --ink: var(--navy);
  --ink-soft: #43567c;
  --on-navy: #ffffff;
  --on-navy-soft: #b8c6dd;

  --paper: #ffffff;
  --line: rgba(3, 33, 79, 0.14);
  --line-strong: rgba(3, 33, 79, 0.28);
  --line-on-navy: rgba(255, 255, 255, 0.16);

  --f: "Figtree", "Figtree Fallback", Arial, sans-serif;
  --f-display: "Tenor Sans", "Tenor Fallback", Arial, sans-serif;
  --f-script: "Great Vibes", "Segoe Script", cursive;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui: cubic-bezier(0.23, 1, 0.32, 1);
  --d-press: 120ms;
  --d-ui: 200ms;

  --bar-h: 60px;
  --gutter: max(clamp(18px, 4.5vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --maxw: 1200px;
  --section: clamp(56px, 2.5rem + 3.5vw, 104px);
  --r-sm: 12px;
  --r-md: 18px;

  /* escala compacta: títulos menores que a v3, corpo generoso preservado */
  --t-h2: clamp(1.65rem, 1.25rem + 1.6vw, 2.5rem);
  --t-h3: 1.25rem;
  --t-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-label: 0.75rem;
}
@media (min-width: 1024px) {
  :root { --bar-h: 68px; }
}

/* ---------- Reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
  body, h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
  fieldset { border: 0; min-width: 0; }
  ul, ol { list-style: none; }
  img, picture, svg { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; cursor: pointer; }
  a { color: inherit; }
  [hidden] { display: none !important; }
}

/* ---------- Base ---------- */
@layer base {
  html { scroll-padding-top: calc(var(--bar-h) + 12px); }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f);
    font-size: var(--t-body);
    line-height: 1.65;
    font-weight: 400;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
  }
  ::selection { background: var(--turq); color: var(--navy); }
  input, textarea { caret-color: var(--turq-ink); }
  :focus-visible { outline: 2px solid var(--turq-ink); outline-offset: 3px; border-radius: 6px; }
  a { text-decoration-thickness: from-font; text-underline-offset: 0.2em; }
  a[href^="tel:"], .nowrap { white-space: nowrap; }
  strong { font-weight: 600; color: var(--ink); }
  .sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .skip {
    position: fixed; top: 10px; left: 10px; z-index: 100;
    padding: 12px 18px; border-radius: 999px;
    background: var(--navy); color: var(--turq); text-decoration: none; font-weight: 600;
    transform: translateY(-160%);
    transition: transform var(--d-ui) var(--ease-ui);
  }
  .skip:focus-visible { transform: none; outline-color: var(--turq); }
  button, a, [role="button"], label.chip, summary { touch-action: manipulation; }
  button, .pill, .chip, summary { -webkit-user-select: none; user-select: none; }
}

/* ---------- Layout ---------- */
@layer layout {
  .wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
  main > section { position: relative; overflow-x: clip; }

  /* faixas contínuas, não cards: o campo da logo entra inteiro */
  .band--navy { background: var(--navy); color: var(--on-navy); }
  .band--navy ::selection { background: var(--turq); color: var(--navy); }
  .band--navy :focus-visible { outline-color: var(--turq); }
  .band--ice { background: var(--ice); }

  .section-head { max-width: 46rem; }
  /* títulos na caps serena da logo */
  .section-title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: var(--t-h2);
    line-height: 1.16;
    letter-spacing: 0.015em;
    text-wrap: balance;
  }
  .band--navy .section-title { color: var(--on-navy); }
  .section-lead {
    margin-top: 0.8rem;
    font-size: var(--t-lead);
    line-height: 1.55;
    color: var(--ink-soft);
    text-wrap: pretty;
    max-width: 44ch;
  }
  /* rótulo na voz "CIRURGIA DENTISTA" da logo: caps espaçada fina */
  .label {
    font-family: var(--f-display);
    font-size: var(--t-label); font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.4;
    color: var(--ink-soft);
  }
}

/* ---------- Componentes ---------- */
@layer components {
  /* Pílulas: turquesa sobre marinho, marinho sobre claro */
  .pill {
    --pill-bg: var(--turq);
    --pill-fg: var(--navy);
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    min-height: 50px; padding: 0 1.45rem 0 1.25rem;
    border-radius: 999px;
    background: var(--pill-bg); color: var(--pill-fg);
    font-size: 0.9688rem; font-weight: 600; letter-spacing: 0.005em; line-height: 1.2;
    text-decoration: none; white-space: nowrap;
    transition: transform var(--d-press) var(--ease-ui), background-color var(--d-ui) ease, box-shadow var(--d-ui) ease;
  }
  .pill:active { transform: scale(0.97); }
  .pill__icon { width: 1.25rem; height: 1.25rem; flex: none; }
  .pill--turq { --pill-bg: var(--turq); --pill-fg: var(--navy); }
  .pill--ink { --pill-bg: var(--navy); --pill-fg: #ffffff; }
  .pill--ink .pill__icon { color: var(--turq); }
  .pill--line { --pill-bg: transparent; --pill-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); min-height: 46px; font-size: 0.9063rem; padding: 0 1.15rem 0 1rem; }
  .pill--sm { min-height: 42px; padding: 0 1.05rem 0 0.9rem; font-size: 0.875rem; gap: 0.45rem; }
  .pill--sm .pill__icon { width: 1.05rem; height: 1.05rem; }
  @media (hover: hover) and (pointer: fine) {
    .pill--ink:hover { --pill-bg: var(--navy-lift); }
    .pill--turq:hover { --pill-bg: var(--turq-soft); }
    .pill--line:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
  }

  .link-quiet {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
    color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.0625rem;
    font-variant-numeric: tabular-nums;
  }
  .link-quiet svg { width: 1.15rem; height: 1.15rem; color: var(--turq-ink); }
  .band--navy .link-quiet, .hero .link-quiet, .bar .link-quiet, .lost__card .link-quiet, .legal__card .link-quiet { color: var(--on-navy); }
  .band--navy .link-quiet svg, .hero .link-quiet svg, .bar .link-quiet svg, .lost__card .link-quiet svg, .legal__card .link-quiet svg { color: var(--turq); }
  .bar .link-quiet:focus-visible { outline-color: var(--turq); }
  @media (hover: hover) and (pointer: fine) {
    .link-quiet:hover span { text-decoration: underline; text-underline-offset: 0.22em; }
  }

  /* a seta acompanha a última palavra quando o texto quebra linha */
  .link-arrow {
    display: inline-block; padding-block: 0.6rem; line-height: 1.45;
    color: var(--turq-ink); font-weight: 600; text-decoration: none;
  }
  .link-arrow svg { display: inline-block; vertical-align: -0.2em; margin-left: 0.4rem; }
  .link-arrow svg, .care__ask svg { width: 1.15rem; height: 1.15rem; flex: none; transition: transform var(--d-ui) var(--ease-ui); }
  @media (hover: hover) and (pointer: fine) {
    .link-arrow:hover span { text-decoration: underline; text-underline-offset: 0.22em; }
    .link-arrow:hover svg, .care__ask:hover svg { transform: translateX(3px); }
  }

  /* toque em link de texto também responde */
  .care__ask, .link-arrow, .link-quiet, .foot__links a, .sheet__tel, .nav__list a, .sheet__list a { transition: opacity var(--d-press) var(--ease-ui); }
  .care__ask:active, .link-arrow:active, .link-quiet:active, .foot__links a:active, .sheet__tel:active, .sheet__list a:active { opacity: 0.6; }
  .sheet__close:active { background: rgba(255, 255, 255, 0.1); }

  /* selo pequeno: "7 dias", "hoje" — a caps espaçada em miniatura */
  .tag {
    display: inline-block; padding: 0.26rem 0.6rem 0.2rem; border-radius: 999px;
    background: var(--navy); color: var(--turq);
    font-family: var(--f-display);
    font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.3;
  }
}

/* ---------- Barra do topo e menu ---------- */
@layer components {
  /* a barra é o campo da logo: marinho sempre, a logo real à esquerda.
     Ao rolar ela encolhe de forma suave e vira vidro marinho */
  .bar {
    --bar-now: var(--bar-h);
    position: fixed; inset: 0 0 auto 0; z-index: 40;
    height: calc(var(--bar-now) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--navy);
    transition: height 340ms var(--ease-ui), background-color var(--d-ui) ease, box-shadow var(--d-ui) ease, -webkit-backdrop-filter var(--d-ui) ease, backdrop-filter var(--d-ui) ease;
  }
  .bar.is-scrolled {
    --bar-now: calc(var(--bar-h) - 10px);
    background: rgba(3, 33, 79, 0.9);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    backdrop-filter: saturate(1.4) blur(16px);
    box-shadow: 0 1px 0 var(--line-on-navy);
  }
  .mark img { transition: height 340ms var(--ease-ui); }
  .bar.is-scrolled .mark img { height: 28px; }
  .bar__inner {
    height: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
    display: flex; align-items: center; gap: 1.25rem;
  }
  .mark { display: flex; align-items: center; margin-right: auto; min-height: 44px; }
  .mark img { width: auto; height: 34px; }
  .nav { display: none; }
  .nav__list { display: flex; gap: 0.15rem; }
  .nav__list a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem; border-radius: 999px;
    text-decoration: none; font-weight: 500; font-size: 0.9375rem; color: var(--on-navy);
    transition: background-color var(--d-ui) ease;
  }
  .nav__list a:focus-visible { outline-color: var(--turq); }
  @media (hover: hover) and (pointer: fine) {
    .nav__list a:hover { background: rgba(255, 255, 255, 0.08); }
  }
  .bar__cta:focus-visible { outline-color: var(--turq); }
  .bar__menu {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border-radius: 999px; color: var(--on-navy);
  }
  .bar__menu svg { width: 24px; height: 24px; }
  .bar__menu:active { background: rgba(255, 255, 255, 0.1); }
  .bar__menu:focus-visible { outline-color: var(--turq); }

  /* Menu no celular: painel marinho aceso que desce do topo */
  .sheet { position: fixed; inset: 0; z-index: 60; }
  .sheet__scrim { position: absolute; inset: 0; background: rgba(2, 23, 55, 0.5); opacity: 0; transition: opacity 260ms ease; }
  .sheet__panel {
    position: absolute; inset: 8px 8px auto 8px;
    padding: calc(env(safe-area-inset-top, 0px) + 6px) max(22px, calc(env(safe-area-inset-right, 0px) - 8px)) 24px max(22px, calc(env(safe-area-inset-left, 0px) - 8px));
    background: var(--navy-lift); color: var(--on-navy);
    border-radius: 22px;
    box-shadow: 0 30px 60px -30px rgba(2, 23, 55, 0.6);
    transform: translateY(-12px); opacity: 0;
    transition: transform 320ms var(--ease-out), opacity 220ms ease;
    max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain;
  }
  .sheet__panel :focus-visible { outline-color: var(--turq); }
  .sheet.is-open .sheet__scrim { opacity: 1; }
  .sheet.is-open .sheet__panel { transform: none; opacity: 1; }
  .sheet__head { display: flex; align-items: center; justify-content: space-between; min-height: 54px; }
  .sheet__title {
    font-family: var(--f-display);
    font-size: var(--t-label); font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-navy-soft);
  }
  .sheet__close { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border-radius: 999px; color: var(--on-navy); }
  .sheet__close svg { width: 24px; height: 24px; }
  .sheet__list { margin: 4px 0 20px; }
  .sheet__list a {
    display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line-on-navy);
    font-family: var(--f-display);
    font-size: 1.4375rem; font-weight: 400; letter-spacing: 0.02em; text-decoration: none; color: var(--on-navy);
  }
  .sheet__cta { width: 100%; }
  .sheet__tel { display: flex; justify-content: center; align-items: center; min-height: 48px; margin-top: 6px; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; color: var(--on-navy); }
}

/* ---------- Seções ---------- */
@layer sections {

  /* 1. Abertura: a assinatura da logo em tamanho de página */
  .hero {
    background: var(--navy); color: var(--on-navy);
    padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  }
  .hero ::selection { background: var(--turq); color: var(--navy); }
  .hero :focus-visible { outline-color: var(--turq); }
  .hero__stage {
    position: relative;
    max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding: clamp(20px, 4vh, 44px) var(--gutter) 0;
    display: grid; grid-template-columns: minmax(0, 1fr);
  }
  .hero__kicker {
    font-family: var(--f-display);
    font-size: clamp(0.6875rem, 0.62rem + 0.3vw, 0.8125rem);
    letter-spacing: 0.26em; text-transform: uppercase; font-weight: 400;
    color: var(--on-navy-soft);
  }
  .hero__title { display: block; margin-top: clamp(14px, 2.2vh, 26px); }
  /* o nome como na logo: caps espaçada, com a assinatura cruzando a linha de base */
  .hero__name {
    display: block; position: relative;
    font-family: var(--f-display); font-weight: 400;
    font-size: clamp(2.25rem, 1rem + 6.2vw, 4.6rem);
    line-height: 1; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--on-navy);
    padding-right: 0.16em; margin-right: -0.16em; /* compensa o tracking da última letra */
  }
  .hero__script {
    display: block;
    font-family: var(--f-script); font-weight: 400; text-transform: none; letter-spacing: 0;
    font-size: clamp(2.1rem, 1rem + 5.4vw, 4rem);
    line-height: 0.9;
    color: var(--turq);
    margin-top: calc(clamp(2.1rem, 1rem + 5.4vw, 4rem) * -0.28);
    margin-left: clamp(3.2rem, 1rem + 14vw, 13rem);
    padding-bottom: 0.22em; /* os laços descendentes da script não podem cortar */
  }
  /* o traço-sorriso, desenhado uma vez */
  .hero__arc { display: block; width: clamp(120px, 24vw, 210px); height: auto; margin-top: clamp(4px, 1vh, 12px); overflow: visible; }
  .hero__arc path {
    stroke: var(--turq); stroke-width: 7; stroke-linecap: round; fill: none;
  }
  /* a linha "CIRURGIA DENTISTA" da logo, com o conteúdo real */
  .hero__role {
    display: block; margin-top: clamp(14px, 2.2vh, 24px);
    font-family: var(--f-display);
    font-size: clamp(0.8125rem, 0.72rem + 0.4vw, 0.9375rem);
    font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
    line-height: 1.6; color: var(--on-navy);
  }
  .hero__lead {
    margin-top: 0.6rem; max-width: 38ch;
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0938rem); line-height: 1.6; color: var(--on-navy-soft);
    text-wrap: pretty;
  }
  .hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.4rem; margin-top: clamp(18px, 2.6vh, 28px); }
  .hero__facts {
    display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem;
    margin-top: clamp(18px, 2.8vh, 30px); padding-top: 0.9rem;
    border-top: 1px solid var(--line-on-navy);
    font-size: 0.875rem; line-height: 1.5; color: var(--on-navy-soft); font-weight: 400;
  }
  .hero__facts li { display: flex; align-items: center; gap: 0.5rem; }
  .hero__facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--turq); flex: none; }
  .hero__facts strong { color: var(--on-navy); font-weight: 600; }

  /* a foto: recorte real fundido no marinho, à frente do arco grande */
  .hero__figure { position: relative; z-index: 1; pointer-events: none; }
  .hero__img {
    width: 100%; height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 97%);
    mask-image: linear-gradient(to bottom, #000 74%, transparent 97%);
  }
  /* o arco grande da logo, atrás dela */
  .hero__swoosh {
    position: absolute; z-index: -1; right: -6%; bottom: 8%; width: 118%; height: auto; overflow: visible;
    -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 78%, #000 92%);
    mask-image: linear-gradient(to right, transparent 0, transparent 78%, #000 92%);
  }
  .hero__swoosh .a1 { stroke: var(--turq); stroke-width: 10; stroke-linecap: round; fill: none; }
  .hero__swoosh .a2 { stroke: var(--navy-lift); stroke-width: 14; stroke-linecap: round; fill: none; }

  /* celular: a assinatura primeiro, ela centrada logo abaixo, informação na sequência, nada coberto */
  .hero__text { display: contents; }
  .hero__title { order: 1; }
  .hero__figure { order: 2; width: min(58vw, 236px); margin: clamp(12px, 2vh, 22px) auto 0; }
  .hero__lead { order: 3; margin-top: clamp(14px, 2.2vh, 22px); }
  .hero__actions { order: 4; }
  .hero__facts { order: 5; padding-bottom: clamp(28px, 4vh, 46px); }

  /* 2. A pergunta dela */
  .ask { padding-block: var(--section); }
  .ask__inner { display: grid; gap: clamp(22px, 3vw, 44px); }
  .ask__q {
    font-family: var(--f-display); font-weight: 400;
    font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3rem);
    line-height: 1.22; letter-spacing: 0.01em;
    max-width: 18ch;
    text-wrap: balance;
  }
  .ask__a { max-width: 34rem; }
  .ask__a p { font-size: var(--t-lead); line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
  .ask__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.4rem; margin-top: 1.4rem; }

  /* 3. Tratamentos: lista tipográfica na faixa gelo */
  .care { padding-block: var(--section); }
  .care__list { margin-top: clamp(28px, 3.5vw, 52px); border-top: 1px solid var(--line-strong); }
  .care__item {
    display: grid; gap: 0.35rem 2rem;
    padding: clamp(18px, 2.2vw, 26px) 0;
    border-bottom: 1px solid var(--line-strong);
    scroll-margin-top: calc(var(--bar-h) + 24px);
  }
  .care__name {
    font-size: var(--t-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.008em;
    text-wrap: balance;
  }
  .care__name .tag { margin-left: 0.55rem; vertical-align: 0.28em; }
  .care__text { color: var(--ink-soft); max-width: 44rem; text-wrap: pretty; font-size: 1rem; line-height: 1.6; }
  .care__ask {
    display: inline-flex; align-items: center; gap: 0.45rem; justify-self: start; min-height: 44px;
    color: var(--turq-ink); font-weight: 600; text-decoration: none; white-space: nowrap; font-size: 1rem;
  }
  @media (hover: hover) and (pointer: fine) {
    .care__ask:hover { text-decoration: underline; text-underline-offset: 0.22em; }
  }

  /* 4. Do consultório até a sua casa */
  .way { padding-block: var(--section); }
  .way__grid { display: grid; gap: clamp(26px, 4vw, 56px); align-items: center; }
  .way__photo { justify-self: center; width: min(100%, 400px); }
  .way__photo img {
    width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 80%, transparent 100%), linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 80%, transparent 100%), linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-composite: intersect;
  }
  .way__list { margin: clamp(18px, 2.4vw, 28px) 0 1rem; display: grid; gap: 0.9rem; }
  .way__list li { font-size: 1.0625rem; line-height: 1.55; color: var(--ink-soft); max-width: 36rem; text-wrap: pretty; }
  .way__list strong { color: var(--ink); font-weight: 600; }

  /* 5. Consultório */
  .place { padding-block: var(--section); border-top: 1px solid var(--line); }
  .place__grid { display: grid; gap: 32px; margin-top: clamp(24px, 3.2vw, 44px); }
  .place__address {
    font-style: normal;
    font-family: var(--f-display);
    font-size: clamp(1.3rem, 1.05rem + 1vw, 1.9rem); font-weight: 400; line-height: 1.4; letter-spacing: 0.01em;
  }
  .place__ref { margin-top: 0.6rem; color: var(--ink-soft); }
  .place__links { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
  .place__label { margin-bottom: 0; }
  .hours { margin-top: 0.9rem; border-top: 1px solid var(--line-strong); }
  .hours__row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    padding: 0.8rem 0; border-bottom: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
  }
  .hours__row dt { font-weight: 600; }
  .hours__row dd { color: var(--ink-soft); text-align: right; text-wrap: balance; }
  .hours__row.is-today dt::after {
    content: "hoje"; content: "hoje" / ""; margin-left: 0.55rem; padding: 0.24rem 0.55rem 0.18rem; border-radius: 999px;
    background: var(--navy); color: var(--turq);
    font-family: var(--f-display); font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; vertical-align: 0.15em;
  }
  .hours__today { margin-top: 0.8rem; font-size: var(--t-small); color: var(--ink-soft); }

  /* a régua de distâncias: no desktop ela é o traço-sorriso da logo */
  .near { margin-top: clamp(40px, 5vw, 72px); }
  .near__text { margin-top: 0.6rem; color: var(--ink-soft); max-width: 40rem; }
  .near__map { position: relative; }
  .near__ruler { position: relative; margin-top: 1.3rem; padding-left: 26px; }
  .near__spine { display: block; position: absolute; left: 2px; top: calc(1.3rem + 4px); height: calc(100% - 1.3rem - 8px); width: 16px; overflow: visible; }
  .near__spine path { stroke: var(--turq-ink); stroke-width: 3; stroke-linecap: round; fill: none; opacity: 0.85; }
  .near__ruler li { position: relative; display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; }
  .near__ruler li::before {
    content: ""; position: absolute; left: -26px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
    border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--navy);
  }
  /* os pontos acompanham a barriga da curva (linhas uniformes, desvio quadrático) */
  .near__map:not(.is-arc) .near__ruler li:nth-child(1)::before, .near__map:not(.is-arc) .near__ruler li:nth-child(7)::before { transform: translateX(2px); }
  .near__map:not(.is-arc) .near__ruler li:nth-child(2)::before, .near__map:not(.is-arc) .near__ruler li:nth-child(6)::before { transform: translateX(5px); }
  .near__map:not(.is-arc) .near__ruler li:nth-child(3)::before, .near__map:not(.is-arc) .near__ruler li:nth-child(5)::before { transform: translateX(6px); }
  .near__map:not(.is-arc) .near__ruler li:nth-child(4)::before { transform: translateX(7px); }
  .near__ruler li:first-child::before { background: var(--navy); box-shadow: 0 0 0 3px var(--turq); }
  .near__town { font-weight: 600; }
  .near__km { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
  .near__arc { display: none; }

  /* 6. Dúvidas */
  .faq { padding-block: var(--section); border-top: 1px solid var(--line); }
  .faq__grid { display: grid; gap: clamp(22px, 3vw, 48px); }
  .qa { border-bottom: 1px solid var(--line); }
  .faq__list { border-top: 1px solid var(--line-strong); }
  .qa summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
    min-height: 56px; padding: 0.9rem 0; cursor: pointer; list-style: none;
    font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.005em; line-height: 1.4;
  }
  .qa summary::-webkit-details-marker { display: none; }
  .qa summary svg {
    width: 32px; height: 32px; padding: 8px; flex: none; border-radius: 50%;
    background: var(--navy); color: var(--turq);
    transition: transform var(--d-ui) var(--ease-ui);
  }
  .qa[open] summary svg { transform: rotate(45deg); }
  .qa summary:focus-visible { outline-offset: 2px; }
  .qa__a { padding: 0 3rem 1.2rem 0; }
  .qa__a p { color: var(--ink-soft); max-width: 42rem; font-size: 1rem; line-height: 1.6; }

  /* 7. Agendar: de volta ao campo marinho */
  .book { padding-block: var(--section); }
  .book__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(30px, 4vw, 64px); align-items: start; }
  .book__title { max-width: 16ch; }
  .book__lead { margin-top: 0.8rem; font-size: var(--t-lead); line-height: 1.55; color: var(--on-navy-soft); max-width: 34ch; }
  .book__steps { margin-top: clamp(20px, 2.8vw, 36px); display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line-on-navy); }
  .book__steps li {
    counter-increment: step;
    position: relative;
    padding: 0.85rem 0 0.85rem 2.4rem; border-bottom: 1px solid var(--line-on-navy); color: var(--on-navy-soft); line-height: 1.55; font-size: 1rem;
  }
  .book__steps li::before {
    position: absolute; left: 0; top: 0.9rem; content: counter(step);
    display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background: var(--turq); color: var(--navy); font-size: 0.8125rem; font-weight: 700; line-height: 1;
  }
  .book__steps strong { color: var(--on-navy); font-weight: 600; }

  .compose { display: grid; gap: 22px; }
  .compose__group + .compose__group { padding-top: 22px; border-top: 1px solid var(--line-on-navy); }
  /* legend solta do quadro do fieldset, senão ela cavalga o filete */
  .compose__group legend { float: left; width: 100%; }
  .compose__group { display: grid; gap: 10px; }
  /* sem JavaScript as escolhas não mudariam a mensagem: fica a mensagem padrão e o botão */
  .no-js .compose__group { display: none; }
  .compose__group.is-off legend { color: var(--on-navy-soft); }
  .compose__group legend, .compose__label {
    padding: 0; margin-bottom: 10px;
    font-size: 1.0313rem; font-weight: 500; color: var(--turq);
  }
  .compose__label { margin-bottom: 0; }
  .compose__label span { color: var(--on-navy-soft); font-weight: 400; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { position: relative; display: inline-flex; }
  .chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
  .chip span {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
    border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(0, 213, 207, 0.45);
    color: var(--on-navy); font-weight: 500; font-size: 0.9375rem; line-height: 1.2;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform var(--d-press) var(--ease-ui);
  }
  .chip input:checked + span { background: var(--turq); color: var(--navy); box-shadow: none; font-weight: 600; }
  .chip input:focus-visible + span { outline: 2px solid var(--turq); outline-offset: 3px; }
  .chip:active span { transform: scale(0.97); }
  .chip input:disabled + span { opacity: 0.38; }
  .chip input:disabled { cursor: not-allowed; }
  @media (hover: hover) and (pointer: fine) {
    .chip input:not(:checked):not(:disabled):hover + span { box-shadow: inset 0 0 0 1.5px var(--turq); }
  }
  .chip--urgent input:checked + span { background: var(--on-navy); color: var(--navy); }
  .compose__input {
    width: 100%; min-height: 50px; padding: 0 1rem;
    border: 0; border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1.5px rgba(0, 213, 207, 0.45);
    color: var(--on-navy); font-size: 1.0625rem; caret-color: var(--turq);
    transition: box-shadow 160ms ease;
  }
  .compose__input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--turq); }
  .compose__preview {
    padding: 14px 16px 16px;
    border-radius: 18px 18px 6px 18px;
    background: var(--ice); color: var(--navy);
  }
  .compose__to { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; color: var(--ink-soft); }
  .compose__to img { width: 32px; height: 32px; border-radius: 50%; }
  .compose__to strong { color: var(--navy); }
  .compose__msg { margin-top: 8px; font-size: 1.0313rem; line-height: 1.55; }
  .compose__send { width: 100%; min-height: 56px; font-size: 1rem; white-space: normal; text-align: center; }
  .compose__note { font-size: var(--t-small); color: var(--on-navy-soft); line-height: 1.55; }
  .compose__note a { color: var(--on-navy); font-weight: 600; white-space: nowrap; }

  /* Rodapé: o campo marinho fecha a página com a logo */
  .foot { padding: clamp(44px, 5vw, 72px) 0 calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--navy); color: var(--on-navy); }
  .foot ::selection { background: var(--turq); color: var(--navy); }
  .foot :focus-visible { outline-color: var(--turq); }
  .foot__mark img { width: auto; height: clamp(40px, 6vw, 54px); }
  .foot__grid { display: grid; gap: 24px; margin-top: clamp(28px, 4vw, 44px); padding-top: 24px; border-top: 1px solid var(--line-on-navy); }
  .foot__label { margin-bottom: 0.55rem; color: var(--on-navy-soft); }
  .foot address { font-style: normal; color: var(--on-navy); }
  .foot__links { display: grid; gap: 2px; }
  .foot__links a { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 40px; text-decoration: none; font-weight: 500; color: var(--on-navy); }
  .foot__links svg { width: 1.15rem; height: 1.15rem; color: var(--turq); }
  @media (hover: hover) and (pointer: fine) {
    .foot__links a:hover { text-decoration: underline; text-underline-offset: 0.22em; }
    .foot__legal a:hover { color: var(--on-navy); }
  }
  .foot__hours { color: var(--on-navy); }
  .foot__sign {
    margin-top: clamp(26px, 4vw, 42px);
    font-family: var(--f-script); font-weight: 400;
    font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1;
    color: var(--turq-soft);
  }
  .foot__sign + .foot__legal { margin-top: 14px; }
  .foot__legal {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.75rem 1.5rem;
    margin-top: clamp(28px, 4vw, 44px); padding-top: 18px; border-top: 1px solid var(--line-on-navy);
    font-size: 0.8125rem; color: var(--on-navy-soft);
  }
  .foot__legal-end { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1.5rem; }
  .foot__legal a { color: var(--on-navy-soft); text-underline-offset: 0.2em; }
  .foot__credit a { text-decoration: underline; }

  /* Barra de agendamento no celular */
  .dock {
    position: fixed; inset: auto 0 0 0; z-index: 30;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    backdrop-filter: saturate(1.4) blur(16px);
    box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%);
    transition: transform 300ms var(--ease-out);
  }
  .dock.is-on { transform: none; }
  .bar__cta { transition: transform var(--d-press) var(--ease-ui), background-color var(--d-ui) ease, opacity var(--d-ui) ease, visibility 0s linear 0s; }
  .dock-on .bar__cta { opacity: 0; visibility: hidden; transition: opacity var(--d-ui) ease, visibility 0s linear var(--d-ui); }
  .dock__cta { width: 100%; }
}

/* ---------- Movimento ---------- */
@layer motion {
  /* Entrada, uma vez: o nome sobe por linha, a assinatura chega, o traço se desenha */
  .hero__line { display: block; overflow: clip; padding-block: 0.08em 0.12em; margin-block: -0.08em -0.12em; }
  .hero__line > span { display: inline-block; }
  html.js .hero__line > span { transform: translateY(0); transition: transform 900ms var(--ease-out); }
  html.js .hero:not(.is-in) .hero__line > span { transform: translateY(118%); }
  html.js .hero:not(.is-in) .hero__script { opacity: 0; transform: translateY(8px); }
  .hero__script { transition: opacity 700ms var(--ease-out) 200ms, transform 800ms var(--ease-out) 200ms; }
  /* o traço se desenha uma vez, da esquerda pra direita */
  .hero__arc path { stroke-dasharray: 230; stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease-out) 350ms; }
  html.js .hero:not(.is-in) .hero__arc path { stroke-dashoffset: 230; }
  /* o retrato nunca fica invisível: chega desfocado e fica nítido (LCP conta cedo) */
  html.js .hero:not(.is-in) .hero__img { filter: blur(8px); transform: translateY(14px) scale(1.015); }
  .hero__img { transition: filter 1000ms var(--ease-out) 140ms, transform 1200ms var(--ease-out) 140ms; }
  html.js .hero:not(.is-in) .hero__swoosh { opacity: 0; }
  .hero__swoosh { transition: opacity 900ms var(--ease-out) 500ms; }
  html.js .hero:not(.is-in) .hero__kicker,
  html.js .hero:not(.is-in) .hero__role,
  html.js .hero:not(.is-in) .hero__lead,
  html.js .hero:not(.is-in) .hero__actions,
  html.js .hero:not(.is-in) .hero__facts { opacity: 0; transform: translateY(10px); }
  .hero__kicker, .hero__role, .hero__lead, .hero__actions, .hero__facts { transition: opacity 650ms var(--ease-out), transform 750ms var(--ease-out); }
  .hero__kicker { transition-delay: 60ms; }
  .hero__role { transition-delay: 260ms; }
  .hero__lead { transition-delay: 330ms; }
  .hero__actions { transition-delay: 400ms; }
  .hero__facts { transition-delay: 470ms; }

  /* Foto do consultório: surge uma vez */
  html.js [data-emerge]:not(.is-in) img { opacity: 0; filter: blur(12px); transform: scale(1.02); }
  [data-emerge] img { transition: opacity 1100ms var(--ease-out), filter 1100ms var(--ease-out), transform 1400ms var(--ease-out); }

  /* A pergunta: as palavras ganham tinta no ritmo da leitura */
  @supports (animation-timeline: view()) {
    html.js .ask__q .w {
      color: #93a3c0;
      animation: ink linear both;
      animation-timeline: view();
      animation-range: cover calc(18% + var(--i) * 1.6%) cover calc(24% + var(--i) * 1.6%);
    }
    @keyframes ink { to { color: var(--ink); } }
  }

  /* Abertura das dúvidas */
  @supports (interpolate-size: allow-keywords) {
    .faq { interpolate-size: allow-keywords; }
    .qa::details-content { height: 0; overflow: clip; transition: height 260ms var(--ease-out), content-visibility 260ms allow-discrete; }
    .qa[open]::details-content { height: auto; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0ms !important; animation-duration: 0.01ms !important; }
    html.js .hero:not(.is-in) .hero__line > span,
    html.js .hero:not(.is-in) .hero__script,
    html.js .hero:not(.is-in) .hero__img,
    html.js .hero:not(.is-in) .hero__swoosh,
    html.js .hero:not(.is-in) .hero__kicker,
    html.js .hero:not(.is-in) .hero__role,
    html.js .hero:not(.is-in) .hero__lead,
    html.js .hero:not(.is-in) .hero__actions,
    html.js .hero:not(.is-in) .hero__facts,
    html.js [data-emerge]:not(.is-in) img { opacity: 1; filter: none; transform: none; }
    html.js .hero:not(.is-in) .hero__arc path { stroke-dashoffset: 0; }
    html.js .ask__q .w { color: inherit; animation: none; }
    .dock { transition: none; }
  }
  @media (prefers-reduced-transparency: reduce) {
    .bar.is-scrolled { background: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .dock { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  }
}

/* ---------- Composição por largura ---------- */
@layer responsive {
  /* Celular pequeno */
  @media (max-width: 359px) {
    .bar__inner { gap: 0.75rem; }
    .mark img { height: 28px; }
    .bar__cta { width: 44px; padding: 0; }
    .bar__cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .hero__actions .pill { font-size: 0.875rem; padding: 0 1.15rem 0 1rem; }
    .compose__send { font-size: 0.875rem; padding-inline: 1rem; }
  }
  @media (min-width: 360px) and (max-width: 419px) {
    .bar__inner { gap: 0.75rem; }
    .mark img { height: 30px; }
    .bar__cta { padding: 0 0.85rem 0 0.75rem; }
  }

  @media (max-width: 699px) {
    .qa__a { padding-right: 0; }
  }

  /* Com a barra fixa embaixo, o foco do teclado nunca fica atrás dela */
  @media (max-width: 1023px) {
    html { scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  }

  /* Tablet: a pilha do celular com mais ar e a foto maior */
  @media (min-width: 700px) and (max-width: 1023px) {
    .hero__figure { width: min(40vw, 320px); }
    .care__item { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
    .care__name { grid-column: 1; grid-row: 1 / span 2; }
    .care__text { grid-column: 2; }
    .care__ask { grid-column: 2; }
    .place__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
    .foot__grid { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
  }

  /* Tela larga: a composição da logo. Texto à esquerda, ela à direita sobre o arco,
     tudo cabendo na primeira dobra com a faixa seguinte aparecendo */
  @media (min-width: 1024px), (min-width: 640px) and (orientation: landscape) and (max-height: 700px) {
    .hero__stage {
      grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
      align-items: end; column-gap: clamp(24px, 4vw, 64px);
      padding-top: clamp(16px, 3vh, 36px);
      min-height: min(calc(88svh - var(--bar-h)), 720px);
    }
    .hero__text { display: block; position: relative; z-index: 2; padding-bottom: clamp(24px, 4.5vh, 52px); align-self: center; }
    .hero__figure {
      width: 100%; max-width: 460px; margin: 0 0 0 auto; align-self: end;
    }
    .hero__img {
      width: 100%; max-height: calc(88svh - var(--bar-h) - 24px); object-fit: contain; object-position: bottom right;
      -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 94%), linear-gradient(to right, #000 0, #000 90%, transparent 100%);
      -webkit-mask-composite: source-in;
      mask-image: linear-gradient(to bottom, #000 68%, transparent 94%), linear-gradient(to right, #000 0, #000 90%, transparent 100%);
      mask-composite: intersect;
    }
  }
  /* celular deitado: a mesma composição, tipografia proporcional pra foto entrar na dobra */
  @media (max-width: 1023px) and (orientation: landscape) and (max-height: 700px) {
    .hero__figure { max-width: 300px; align-self: center; }
    .hero__name { font-size: clamp(2rem, 1rem + 3.6vw, 3rem); }
    .hero__script {
      font-size: clamp(1.8rem, 0.9rem + 3vw, 2.6rem);
      margin-top: calc(clamp(1.8rem, 0.9rem + 3vw, 2.6rem) * -0.28);
    }
    .hero__text { padding-bottom: 20px; }
  }

  @media (min-width: 700px) {
    .foot__grid { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
  }

  /* Notebook e desktop */
  @media (min-width: 1024px) {
    .nav { display: block; }
    .bar__menu { display: none; }
    .dock { display: none; }
    .mark img { height: 38px; }
    .bar.is-scrolled .mark img { height: 30px; }

    .ask__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; }
    .ask__a { padding-bottom: 0.3rem; }

    .care__item { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr) minmax(max-content, 15rem); align-items: baseline; column-gap: 36px; }
    .care__name { grid-row: auto; grid-column: 1; }
    .care__text { grid-column: 2; }
    .care__ask { grid-column: 3; justify-self: end; }

    .way__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
    .way__photo { width: min(100%, 430px); }

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

    /* a régua vira o traço-sorriso: as cidades pousam sobre o arco */
    .near__map.is-arc { height: 200px; margin-top: 1.4rem; }
    .near__map.is-arc .near__ruler { position: static; height: 100%; margin: 0; padding: 0; border: 0; }
    .near__map.is-arc li {
      position: absolute; left: 0; top: 0; padding: 0;
      display: flex; flex-direction: column; align-items: center; gap: 0.05rem;
      transform: translate(-50%, calc(-100% + 7px));
      text-align: center; white-space: nowrap; line-height: 1.4;
    }
    .near__map.is-arc li::before {
      position: static; margin: 0.4rem 0 0; order: 3;
      width: 12px; height: 12px;
    }
    /* cidades vizinhas alternam acima e abaixo do traço, como estações */
    .near__map.is-arc li:nth-child(even) { transform: translate(-50%, -5px); }
    .near__map.is-arc li:nth-child(even)::before { order: -1; margin: 0 0 0.4rem; }
    .near__map.is-arc li:first-child { transform: translate(-7px, calc(-100% + 7px)); align-items: flex-start; text-align: left; }
    .near__map.is-arc li:first-child::before { align-self: flex-start; }
    .near__map.is-arc li:last-child { transform: translate(calc(-100% + 7px), calc(-100% + 7px)); align-items: flex-end; text-align: right; }
    .near__map.is-arc li:last-child::before { align-self: flex-end; }
    .near__map.is-arc .near__arc { display: block; }
    .near__map.is-arc .near__spine { display: none; }
    .near__arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
    .near__arc path { stroke: var(--turq-ink); stroke-width: 3.5; stroke-linecap: round; fill: none; opacity: 0.85; }

    .faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
    .faq__head { position: sticky; top: calc(var(--bar-h) + 28px); align-self: start; }

    .book__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
    .book__intro { position: sticky; top: calc(var(--bar-h) + 28px); }
  }
}

/* ---------- Páginas de apoio: privacidade e 404 ---------- */
@layer sections {
  .bar__back { margin-left: auto; min-height: 44px; font-size: 0.9375rem; }
  .bar .mark + .bar__back { margin-left: 0; }

  .legal { padding-bottom: var(--section); }
  /* o título da política abre no campo marinho, como a abertura */
  .legal__card {
    background: var(--navy); color: var(--on-navy);
    padding: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + clamp(28px, 5vh, 56px)) 0 clamp(36px, 6vh, 64px);
  }
  .legal__card ::selection { background: var(--turq); color: var(--navy); }
  .legal__card .legal__title { margin-top: 0.6rem; color: var(--on-navy); }
  .legal__card .legal__lead { color: var(--on-navy-soft); }
  .legal__kicker {
    font-family: var(--f-display);
    font-size: var(--t-label); letter-spacing: 0.26em; text-transform: uppercase; font-weight: 400;
    color: var(--on-navy-soft);
  }
  .legal__date { margin-top: 1.1rem; font-size: var(--t-small); color: var(--on-navy-soft); }
  .legal__inner { max-width: calc(44rem + var(--gutter) * 2); }
  .legal__title {
    font-family: var(--f-display);
    font-size: var(--t-h2); font-weight: 400; line-height: 1.16; letter-spacing: 0.015em;
    text-wrap: balance;
  }
  .legal__lead {
    margin-top: 1.1rem;
    font-size: var(--t-lead); line-height: 1.6; color: var(--ink-soft);
    text-wrap: pretty;
  }
  .legal__block { margin-top: clamp(30px, 4vw, 48px); padding-top: clamp(18px, 2.4vw, 26px); border-top: 1px solid var(--line); }
  .legal__inner > .legal__block:first-child { margin-top: clamp(24px, 3.4vw, 40px); border-top: 0; }
  .legal__block h2 { font-size: var(--t-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.008em; }
  .legal__block p, .legal__block ul { margin-top: 0.9rem; color: var(--ink-soft); max-width: 40rem; text-wrap: pretty; }
  .legal__block ul { display: grid; gap: 0.5rem; }
  .legal__block li { position: relative; padding-left: 1.1rem; }
  .legal__block li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
  .legal__block a { color: var(--turq-ink); font-weight: 600; }

  .lost { display: grid; align-items: stretch; }
  .lost__card {
    background: var(--navy); color: var(--on-navy);
    min-height: 82svh; display: grid; align-items: center;
    padding: calc(var(--bar-h) + 24px) 0 clamp(40px, 8vh, 80px);
  }
  .lost__card ::selection { background: var(--turq); color: var(--navy); }
  .lost__card :focus-visible { outline-color: var(--turq); }
  .lost__inner { max-width: calc(40rem + var(--gutter) * 2); }
  .lost__title {
    margin-top: 0.6rem;
    font-family: var(--f-display);
    font-size: var(--t-h2); font-weight: 400; line-height: 1.16; letter-spacing: 0.015em; color: var(--on-navy);
  }
  .lost .legal__lead { color: var(--on-navy-soft); }
  .lost__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.8rem; }

  .foot--compact { padding-top: clamp(28px, 4vw, 44px); }
  .foot--compact .foot__legal { margin-top: 0; padding-top: 0; border-top: 0; }
}

/* ---------- Impressão e alto contraste ---------- */
@layer responsive {
  @media print {
    .skip, .bar, .dock, .sheet { display: none !important; }
    .hero { padding-top: 0; }
    .legal__card { padding-top: 24px; }
    html.js [data-emerge] img, html.js .hero__img { opacity: 1; filter: none; transform: none; }
    .hero, .band--navy, .foot, .legal__card, .lost__card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .compose__group, .compose__input { display: none; }
    @page { margin: 14mm; }
  }

  /* Alto contraste do Windows: bordas reais no lugar dos anéis internos */
  @media (forced-colors: active) {
    .chip span, .compose__input, .pill--line { border: 1px solid CanvasText; }
    .chip input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
    .chip input:focus-visible + span { outline-color: Highlight; }
  }
}
