/* Camedi, Centro de Atendimento Médico
   Direção: "palco dividido". O totem verde da Rua Guia Lopes, 916 fica parado ao lado da leitura.
   Cores da marca: verde-folha do logo, verde-petróleo do totem, petróleo escuro para o texto. */

:root {
  /* cor */
  --bg: #EDF1EB;
  --paper: #F8FAF6;
  --surface: #E1E8DF;
  --ink: #0F2F2E;
  --muted: #435655;
  --accent: #12726A;
  --accent-strong: #0B5A53;
  --accent-ink: #FFFFFF;
  --leaf: #82B40A;
  --leaf-ink: #0F2F2E;
  --deep: #0F2F2E;
  --deep-2: #1A4442;
  --deep-ink: #EDF1EB;
  --deep-muted: #A8BEB9;

  /* tipo: Literata em tudo, cinco tamanhos */
  --font: "Literata", Georgia, "Times New Roman", serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  --step-lead: clamp(1.375rem, 1rem + 1.2vw, 2.125rem);
  --step-head: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --step-display: clamp(3rem, 1.6rem + 6vw, 6.5rem);

  /* espaço */
  --m: clamp(16px, 1.7vw, 24px);
  --col-gap: clamp(12px, 1.6vw, 24px);
  --space: clamp(96px, 12vw, 200px);

  /* movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --stagger-line: 90ms;
  --stagger-item: 70ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], .feat__list, .doc__list, .routes { list-style: none; padding: 0; }
a { color: inherit; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
::selection { background: var(--leaf); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--m); top: -100px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 12px 18px; text-decoration: none;
}
.skip:focus { top: 12px; }

.text-link {
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.22em;
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: var(--step-body); text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }

.section-title { font-size: var(--step-head); max-width: 22ch; }

/* ---------- palco: leitura + totem parado ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: var(--m);
  align-items: start;
}
.stage__read { display: grid; gap: 12px; }

.sheet {
  container-type: inline-size;
  background: var(--paper);
  min-height: calc(100svh - 2 * var(--m));
  padding: 26px clamp(24px, 4vw, 64px) 56px;
  display: flex; flex-direction: column;
  text-align: center;
}
.sheet__nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  font-size: var(--step-body);
}
.sheet__link { text-decoration: none; padding: 8px 0; justify-self: start; transition: color var(--t-hover) ease; }
.sheet__link:last-child { justify-self: end; }
.sheet__logo img { width: clamp(200px, 20vw, 300px); }
.sheet__body { margin-top: clamp(56px, 21svh, 240px); }
.sheet__title {
  font-size: min(var(--step-head), 9.8cqi);
  color: var(--accent);
  max-width: 20ch; margin: 0 auto;
}
.sheet__lead { max-width: 47ch; margin: 36px auto 0; }
.sheet .button { margin-top: 36px; }

.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }

.intro {
  background: var(--paper);
  padding: clamp(40px, 5vw, 80px) clamp(24px, 4vw, 64px);
}
.intro__title { font-size: var(--step-lead); }
.intro__text { margin-top: 20px; max-width: 46ch; }
.routes { margin-top: 40px; display: grid; gap: 8px; }
.route {
  display: grid; gap: 2px;
  padding: 22px 24px;
  background: var(--surface);
  text-decoration: none;
  transition: background-color var(--t-hover) ease;
}
.route__name { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.route__note { color: var(--muted); }

.stage__picture {
  position: sticky; top: var(--m);
  height: calc(100svh - 2 * var(--m));
}
.frame {
  position: relative; height: 100%;
  overflow: hidden;
  background: #5E8A80;
}
.frame__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  opacity: 0;
  transition: opacity 1600ms ease;
}
.frame__img.is-active { opacity: 1; }
.frame__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  min-height: 56px; padding: 10px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--paper); color: var(--ink);
  font-size: var(--step-small);
}

/* ---------- prova: empresas que já atendemos ---------- */
.proof { padding: clamp(72px, 8vw, 128px) var(--m) 0; }
.board {
  --tile-w: calc((100vw - 2 * var(--m) - 24px) / 4);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: calc(var(--tile-w) * 2 / 3);
  gap: 8px;
}
.board__head {
  grid-column: span 2;
  background: var(--accent); color: var(--accent-ink);
  padding: clamp(24px, 2.6vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.board__head h2 { font-size: var(--step-lead); max-width: 16ch; }
.board__head p { max-width: 44ch; }
.board__tile {
  background: var(--paper);
  display: grid; place-items: center;
  padding: 24px;
}
.board__tile img {
  height: var(--h, 60px); width: auto; max-width: 84%;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.84;
  transition: filter var(--t-ui) ease, opacity var(--t-ui) ease;
}

/* ---------- números ---------- */
.stats { padding: var(--space) var(--m) 0; }
.stats .section-title { margin-bottom: 40px; }
.mosaic {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr 1fr;
  height: min(60vw, 112svh);
}
.mosaic__photo { grid-row: 1 / span 2; overflow: hidden; background: #8FA3B4; }
.mosaic__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.mosaic__tile { padding: 28px; display: flex; flex-direction: column; gap: 14px; container-type: inline-size; }
.mosaic__tile--leaf { background: var(--leaf); color: var(--leaf-ink); }
.mosaic__tile--deep { background: var(--deep); color: var(--deep-ink); }
.mosaic__figure {
  font-size: min(var(--step-display), 21cqi);
  font-weight: 500; line-height: 1; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums lining-nums;
}
.mosaic__caption { max-width: 22ch; }

/* ---------- para empresas ---------- */
.features {
  margin-top: var(--space);
  background: var(--leaf); color: var(--leaf-ink);
  padding: clamp(80px, 10vw, 160px) var(--m);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
}
.features__pin { grid-column: 1 / span 5; position: sticky; top: 32px; align-self: start; }
.features__title { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.035em; }
.features__lead { margin-top: 28px; max-width: 30ch; }
.features__rows { grid-column: 7 / span 6; display: grid; gap: 72px; }
.feat__title { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; margin-bottom: 24px; }
.feat__row { display: flex; gap: 32px; align-items: flex-start; }
.feat--flip .feat__row { flex-direction: row-reverse; justify-content: flex-end; }
.feat__photo { flex: none; width: clamp(190px, 16vw, 240px); aspect-ratio: 3 / 4; overflow: hidden; background: #6D8F3A; }
.feat__photo img { width: 100%; height: 100%; object-fit: cover; }
.feat__list { display: grid; gap: 14px; line-height: 1.35; }

/* ---------- a coisa viva: exames por função ---------- */
.guide {
  background: var(--surface);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 88svh;
}
.guide__plate { display: grid; place-items: center; padding: 40px; }
.doc {
  width: 100%; max-width: 640px; aspect-ratio: 1 / 1;
  background: var(--paper);
  padding: clamp(28px, 3.4vw, 48px);
  display: flex; flex-direction: column; gap: 26px;
}
.doc__head { display: flex; align-items: center; gap: 16px; }
.doc__head img { width: 44px; height: 44px; }
.doc__kind { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; }
.doc__org { color: var(--muted); font-size: var(--step-small); }
.doc__fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.doc__fields > div { background: var(--bg); padding: 12px 16px; }
.doc__fields dt { color: var(--muted); font-size: var(--step-small); }
.doc__fields dd { font-weight: 600; line-height: 1.3; }
.doc__list { display: grid; gap: 10px; line-height: 1.35; }
.doc__list li { display: flex; gap: 14px; align-items: baseline; }
.doc__list li::before {
  content: ""; flex: none; width: 14px; height: 14px;
  background: var(--accent); transform: translateY(1px);
}
.doc__list li.is-new { animation: doc-row 520ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 55ms); }
.doc__foot { margin-top: auto; color: var(--muted); font-size: var(--step-small); }

.guide__side {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: 40px var(--m) 40px clamp(16px, 2vw, 40px);
}
.tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.tab {
  appearance: none; background: none; border: 0; padding: 10px 0 8px; margin: 0;
  font: inherit; color: var(--muted); cursor: pointer;
  border-bottom: 4px solid transparent;
  transition: color var(--t-hover) ease, border-color var(--t-ui) var(--ease-out);
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.guide__text { max-width: 36ch; }
.guide__summary { margin-top: 28px; }
.guide__note { margin-top: 16px; color: var(--muted); font-size: var(--step-small); max-width: 46ch; }
.guide__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 72px; padding: 0 18px;
  font: inherit; font-weight: 600; text-decoration: none;
  border: 0; border-radius: 0;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.cell:active { transform: scale(0.98); }
.cell--ink { background: var(--ink); color: var(--paper); }
.cell--tone { background: var(--paper); color: var(--ink); }

/* ---------- o totem: tudo no mesmo prédio ---------- */
.totem {
  padding: var(--space) var(--m);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  align-items: start;
}
.totem__list { grid-column: 1 / span 6; max-width: 600px; }
.totem__title { font-size: var(--step-head); }
.totem__lead { margin-top: 20px; max-width: 40ch; }
.rows-kind { color: var(--muted); margin: 44px 0 6px; }
.rows li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  min-height: 38px; padding: 5px 0;
}
.rows__name { display: inline-flex; align-items: baseline; gap: 10px; line-height: 1.3; }
.rows__name::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); transform: translateY(2px);
}
.rows--care .rows__name::before { background: var(--leaf); }
.rows__value {
  color: var(--muted); font-size: var(--step-small); text-align: right;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.totem__cta { margin-top: 44px; font-weight: 600; }
.totem__picture {
  grid-column: 8 / span 5;
  position: sticky; top: var(--m);
  height: calc(100svh - 2 * var(--m));
  overflow: hidden; background: #4F86A6;
}
.totem__picture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* ---------- como funciona o convênio ---------- */
.how {
  background: var(--accent); color: var(--accent-ink);
  padding: clamp(96px, 11vw, 180px) var(--m);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  align-items: start;
}
.how__text { grid-column: 1 / span 5; }
.how__title { font-size: var(--step-head); max-width: 13ch; }
.how__lead { margin-top: 24px; max-width: 30ch; }
.slip {
  grid-column: 7 / span 6; justify-self: end; width: 100%; max-width: 560px;
  background: var(--paper); color: var(--ink);
  padding: 36px 32px 64px;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 97.9167% 100%, 95.8333% calc(100% - 12px), 93.75% 100%, 91.6667% calc(100% - 12px), 89.5833% 100%, 87.5% calc(100% - 12px), 85.4167% 100%, 83.3333% calc(100% - 12px), 81.25% 100%, 79.1667% calc(100% - 12px), 77.0833% 100%, 75% calc(100% - 12px), 72.9167% 100%, 70.8333% calc(100% - 12px), 68.75% 100%, 66.6667% calc(100% - 12px), 64.5833% 100%, 62.5% calc(100% - 12px), 60.4167% 100%, 58.3333% calc(100% - 12px), 56.25% 100%, 54.1667% calc(100% - 12px), 52.0833% 100%, 50% calc(100% - 12px), 47.9167% 100%, 45.8333% calc(100% - 12px), 43.75% 100%, 41.6667% calc(100% - 12px), 39.5833% 100%, 37.5% calc(100% - 12px), 35.4167% 100%, 33.3333% calc(100% - 12px), 31.25% 100%, 29.1667% calc(100% - 12px), 27.0833% 100%, 25% calc(100% - 12px), 22.9167% 100%, 20.8333% calc(100% - 12px), 18.75% 100%, 16.6667% calc(100% - 12px), 14.5833% 100%, 12.5% calc(100% - 12px), 10.4167% 100%, 8.3333% calc(100% - 12px), 6.25% 100%, 4.1667% calc(100% - 12px), 2.0833% 100%, 0% calc(100% - 12px));
}
.slip__group + .slip__group { margin-top: 28px; }
.slip__when { font-size: var(--step-body); font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.slip__row { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; line-height: 1.35; }
.slip__row > span:first-child { flex: 0 1 auto; }
.slip__row > span:last-child { flex: none; white-space: nowrap; }
.slip__dots {
  flex: 1 1 24px; min-width: 24px; height: 4px; align-self: center; transform: translateY(5px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='4'%3E%3Ccircle cx='2' cy='2' r='2' fill='%230F2F2E' fill-opacity='.55'/%3E%3C/svg%3E") repeat-x left center;
}
.slip__total {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 48px; margin: 32px -32px 0; padding: 8px 32px;
  background: var(--ink); color: var(--paper); font-weight: 600; line-height: 1.3;
}

/* ---------- contato ---------- */
.contact {
  background: var(--deep); color: var(--deep-ink);
  min-height: 80svh;
  padding: 48px 0 clamp(80px, 9vw, 140px);
  overflow: hidden;
}
.strip { overflow: hidden; }
.strip__track { display: flex; gap: 8px; width: max-content; }
.strip__track img { height: 150px; width: auto; aspect-ratio: 3 / 4; object-fit: cover; flex: none; }
.strip__track img:nth-child(3n + 2) { aspect-ratio: 1 / 1; }
.strip__track img:nth-child(3n) { aspect-ratio: 3 / 2; }
.contact__body { padding: 0 var(--m); margin-top: 72px; }
.contact__title { font-size: var(--step-head); }
.bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 40px; }
.cell--field { background: var(--deep-2); min-height: 96px; transition: background-color var(--t-hover) ease; }
.cell--field input {
  width: 100%; height: 100%; min-height: 96px;
  background: transparent; border: 0; outline: 0;
  font: inherit; color: var(--deep-ink); text-align: center;
}
.cell--field input::placeholder { color: var(--deep-muted); opacity: 1; }
.cell--field:focus-within { background: var(--paper); }
.cell--field:focus-within input { color: var(--ink); }
.cell--field:focus-within input::placeholder { color: var(--muted); }
.cell--go { background: var(--paper); color: var(--ink); min-height: 96px; cursor: pointer; }
.bar__notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; color: var(--deep-muted); font-size: var(--step-small); }
.bar__notes p:last-child { grid-column: 3; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 72px; }
.facts > div { padding-top: 0; }
.facts dt { color: var(--deep-muted); font-size: var(--step-small); margin-bottom: 6px; }
.facts a { text-decoration: none; }

/* ---------- rodapé ---------- */
.foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; background: var(--bg); }
.foot__photo { overflow: hidden; background: #3F6E86; }
.foot__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.foot__side {
  display: flex; flex-direction: column;
  padding: 80px var(--m) 32px clamp(32px, 7vw, 120px);
}
.foot__logo { align-self: flex-start; }
.foot__logo img { width: 180px; }
.foot__menu { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 56px; }
.foot__menu a {
  font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15;
  text-decoration: none;
  transition: transform var(--t-ui) var(--ease-out), color var(--t-hover) ease;
}
.foot__blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 64px; }
.foot__label { font-size: var(--step-small); color: var(--muted); font-weight: 400; letter-spacing: 0; margin-bottom: 8px; }
.foot__blocks a { text-decoration: none; }
.foot__legal { margin-top: auto; padding-top: 56px; color: var(--muted); font-size: var(--step-small); display: grid; gap: 6px; max-width: 70ch; }

/* ---------- respostas ao ponteiro ---------- */
@media (hover: hover) and (pointer: fine) {
  .button:hover { background-color: var(--accent-strong); }
  .sheet__link:hover { color: var(--accent); }
  .route:hover { background-color: #D3DDD2; }
  .text-link:hover { color: var(--accent); }
  .tab:hover { color: var(--ink); }
  .cell--ink:hover { background-color: var(--accent); }
  .cell--tone:hover { background-color: var(--bg); }
  .cell--go:hover { background-color: var(--leaf); }
  .cell--field:hover { background-color: #22504D; }
  .facts a:hover, .foot__blocks a:hover { color: var(--accent); }
  .facts a:hover { color: var(--leaf); }
  .board__tile:hover img { filter: none; opacity: 1; }
  .foot__menu:hover a { color: var(--muted); }
  .foot__menu a:hover { color: var(--ink); transform: translateX(12px); }
}

/* ---------- movimento ---------- */
@keyframes load-line { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }
@keyframes load-open { to { clip-path: inset(0); } }
@keyframes load-settle { to { transform: none; } }
@keyframes doc-row { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes strip { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: no-preference) {
  .js .stage [data-line] { transform: translateY(105%); animation: load-line 900ms var(--ease-expo) forwards; animation-delay: calc(120ms + var(--i) * var(--stagger-line)); }
  .js .stage [data-load] { opacity: 0; transform: translateY(14px); animation: load-rise 600ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .stage [data-open] { clip-path: inset(0 0 100% 0); animation: load-open 1100ms var(--ease-in-out) 150ms forwards; }
  .js .stage [data-open] .frame__img.is-active { transform: scale(1.08); animation: load-settle 1300ms var(--ease-expo) 120ms forwards; }

  .js [data-reveal] {
    opacity: 0; transform: translateY(26px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo);
    transition-delay: calc(var(--s, 0) * 80ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .shutter { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-in-out); }
  .js .shutter img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .is-in .shutter { clip-path: inset(0); }
  .js .is-in .shutter img { transform: none; }

  .js .feat__photo img { transform: scale(1.1); transition: transform 1400ms var(--ease-soft) 120ms; }
  .js .feat__photo.is-in img { transform: none; }

  .js .rows li { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--r, 0) * 28ms); }
  .js .rows.is-in li { opacity: 1; transform: none; }

  .js .strip__track { animation: strip 70s linear infinite; }
  .strip:hover .strip__track { animation-play-state: paused; }
}

/* números que rolam */
.roll__digits { display: inline-flex; font-variant-numeric: tabular-nums; line-height: 1; }
.roll__col { display: inline-block; height: 1em; overflow: clip; }
.roll__strip { display: block; transform: translateY(calc(var(--d) * -1em)); }
.roll__strip::before { content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9"; display: block; white-space: pre; line-height: 1; }
@media (prefers-reduced-motion: no-preference) {
  .roll:not(.is-in) .roll__strip { transform: none; }
  .roll.is-in .roll__strip { transition: transform 1200ms var(--ease-expo) calc(var(--i) * var(--stagger-item)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame__img { transition: none; }
}

/* ---------- tablet e celular ---------- */
@media (max-width: 1100px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); --tile-w: calc((100vw - 2 * var(--m) - 16px) / 3); }
  .features__pin {
    grid-column: 1 / span 12; position: static; margin-bottom: 72px;
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end;
  }
  .features__title { grid-column: 1 / span 7; }
  .features__lead { grid-column: 8 / span 5; margin-top: 0; }
  .features__rows { grid-column: 1 / span 12; }
  .how__text, .slip { grid-column: 1 / span 12; }
  .slip { margin-top: 56px; justify-self: start; }
  .totem__list { grid-column: 1 / span 7; }
  .totem__picture { grid-column: 8 / span 5; }
}

/* tablet: o topo vira coluna única; as outras seções seguem lado a lado */
@media (max-width: 899px) {
  .stage { grid-template-columns: 1fr; }
  .stage__picture { order: -1; height: 44svh; z-index: 0; }
  .stage__read { position: relative; z-index: 1; }
  .sheet { min-height: 0; padding: 22px 16px 44px; }
  .sheet__nav { gap: 10px; }
  .sheet__logo img { width: min(46vw, 300px); }
  .sheet__body { margin-top: 32px; }
  .sheet__lead { margin-top: 24px; }
  .intro { padding: 40px 20px; }
  .frame__bar { padding: 8px 14px; min-height: 52px; }
  .frame__img { object-position: var(--pos-phone, var(--pos, 50% 50%)); }

  .stats { padding-left: 0; padding-right: 0; }
  .stats .section-title { padding: 0 var(--m); }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .mosaic__photo { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .mosaic__tile { aspect-ratio: 1 / 1; padding: 20px; gap: 10px; }
  .mosaic__caption { line-height: 1.4; }

  .guide__plate { padding: 24px 12px 24px var(--m); }
  .guide__actions { grid-template-columns: 1fr; }

  .foot__blocks { grid-template-columns: 1fr; gap: 24px; }
}

/* celular */
@media (max-width: 699px) {
  .sheet .button { width: 100%; }

  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 6px; --tile-w: calc((100vw - 2 * var(--m) - 6px) / 2); }
  .board__head { grid-column: 1 / -1; min-height: 120px; }
  .board__tile img { height: calc(var(--h, 60px) * 0.62); }
  .board__tile:nth-child(n + 10) { display: none; }

  .mosaic { grid-template-columns: 1fr; }
  .mosaic__tile { aspect-ratio: auto; padding: 22px var(--m) 26px; }

  .features { padding-top: 0; }
  .features__pin { display: contents; }
  .features__title {
    grid-column: 1 / -1;
    position: sticky; top: 0; z-index: 2;
    margin: 0 calc(-1 * var(--m)); padding: 14px var(--m);
    background: var(--leaf);
    font-size: var(--step-head); line-height: 1.1;
  }
  .features__lead { grid-column: 1 / -1; margin: 20px 0 56px; }
  .features__rows { gap: 72px; }
  .feat__row, .feat--flip .feat__row { flex-direction: column; gap: 20px; }
  .feat__photo { width: 100%; aspect-ratio: 4 / 3; }

  .guide { grid-template-columns: 1fr; padding-bottom: 32px; }
  .guide__plate { padding: 48px var(--m) 16px; }
  .doc { aspect-ratio: auto; }
  .guide__side { padding: 8px var(--m) 0; gap: 32px; }
  .tabs { gap: 2px 20px; }
  .tab { white-space: nowrap; }
  .guide .section-title { font-size: var(--step-lead); }
  .cell { min-height: 60px; }

  .totem { display: block; }
  .totem__picture { position: static; height: auto; aspect-ratio: 3 / 4; margin-top: 56px; }
  .rows li { min-height: 44px; }

  .how__title { max-width: none; }
  .slip { max-width: none; padding: 28px 20px 56px; }
  .slip__total { margin: 28px -20px 0; padding: 8px 20px; }

  .contact__body { margin-top: 48px; }
  .strip__track img { height: 110px; }
  .bar { grid-template-columns: 1fr; }
  .cell--field, .cell--field input, .cell--go { min-height: 60px; }
  .bar__notes { grid-template-columns: 1fr; }
  .bar__notes p:last-child { grid-column: auto; }
  .facts { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }

  .foot { grid-template-columns: 1fr; }
  .foot__photo { height: 50svh; }
  .foot__side { padding: 40px var(--m) 28px; }
  .foot__menu { gap: 18px; margin-top: 36px; }
  .foot__menu a { font-size: var(--step-head); }
  .foot__blocks { margin-top: 44px; }
}
