/* ==========================================================================
   Fisioterapia Sarah Andrade — estilos
   Cores, fontes e medidas principais ficam nas variáveis abaixo.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* materiais do consultório */
  --vinyl: #8fb0cb;          /* vinil azul da maca: fundo da página */
  --vinyl-deep: #7a9dba;
  --paper: #f6f7f4;          /* papel lençol: onde ficam os textos */
  --paper-edge: #e3e7e4;
  --perforation: #b9c3c6;
  --navy: #17253a;           /* estofado azul-marinho das poltronas */
  --ink: #14263a;            /* texto principal */
  --ink-soft: #3b4e63;       /* texto secundário */
  --tag: #ffffff;
  /* verde da marca: reservado só para o WhatsApp */
  --wa: #0f7d61;
  --wa-hover: #0c6a51;

  --display: "Bricolage Grotesque", "Atkinson Hyperlegible Next", sans-serif;
  --text: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;

  --gutter: clamp(12px, 3.2vw, 56px);
  --pad-paper: clamp(28px, 4.4vw, 72px);
  --pad-y: clamp(56px, 7vw, 112px);
  --max: 1360px;

  --shadow-item: 0 1px 1px rgba(14, 30, 50, .10), 0 22px 36px -22px rgba(14, 30, 50, .55);
  --shadow-paper: 0 1px 0 rgba(14, 30, 50, .05), 0 30px 50px -40px rgba(14, 30, 50, .5);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --field: var(--vinyl);      /* cor atrás do papel (muda na seção azul-marinho) */
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--navy) var(--vinyl-deep);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--vinyl);
  /* textura fosca do vinil */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .15 0 0 0 0 .23 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"),
    linear-gradient(100deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,.06) 70%, rgba(255,255,255,0) 100%);
}

::selection { background: var(--navy); color: var(--paper); }

img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--navy); color: var(--paper); padding: .6em 1em; text-decoration: none;
}
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; margin: 0; }
h1 {
  font-size: clamp(2.45rem, 1.7rem + 2.9vw, 4.6rem);
  font-weight: 650;
  font-stretch: 86%;
  line-height: .98;
  letter-spacing: -0.028em;
}
h2 {
  font-size: clamp(2rem, 1.45rem + 1.9vw, 3.15rem);
  font-weight: 620;
  font-stretch: 88%;
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin-bottom: clamp(24px, 3vw, 40px);
}
h3 {
  font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem);
  font-weight: 650;
  font-stretch: 92%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: .35em;
}
p { margin: 0 0 1em; max-width: 62ch; }

/* ==========================================================================
   Estrutura: cada seção é uma linha com o papel à esquerda e a "maca" à direita
   ========================================================================== */

.row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.paper {
  position: relative;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6 .04' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .32 0 0 0 0 .3 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.10'/%3E%3C/svg%3E");
  box-shadow: var(--shadow-paper);
  padding: var(--pad-y) var(--pad-paper);
}

/* picote entre uma folha e outra */
.row:not(.row--hero) .paper::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 14px;
  background:
    radial-gradient(circle at 0 50%, var(--field) 6px, transparent 6.5px) left center / 14px 14px no-repeat,
    radial-gradient(circle at 100% 50%, var(--field) 6px, transparent 6.5px) right center / 14px 14px no-repeat;
}
.row:not(.row--hero) .paper::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; top: 6px;
  border-top: 1.5px dashed var(--perforation);
}

.table {
  position: relative;
  padding: var(--pad-y) clamp(20px, 4vw, 72px);
}

/* ---------- Abertura ---------- */

.row--hero { min-height: min(100svh, 1000px); }
.row--hero .paper {
  padding-top: clamp(20px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
}

.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 5.5vh, 64px);
}
.brand { display: block; width: clamp(92px, 8vw, 118px); flex: none; }
.brand img { display: block; width: 100%; }

.topnav { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.topnav a {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 3px 0;
  border-bottom: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.topnav a:hover { color: var(--ink); border-color: var(--ink); }

.lead {
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: clamp(20px, 2.4vw, 32px) 0 clamp(28px, 3vw, 40px);
  max-width: 34em;
}

.cta-block { margin-bottom: clamp(28px, 4vh, 48px); }
.cta-note { font-size: 1rem; color: var(--ink-soft); margin: 14px 0 0; }

/* Botão do WhatsApp: o único lugar com o verde da marca */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 16px 28px 16px 22px;
  background: var(--wa);
  color: #fff;
  font-family: var(--text);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: .005em;
  text-decoration: none;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0,0,0,.12), 0 14px 24px -14px rgba(10, 70, 55, .9);
  transition: background-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn-wa svg { width: 26px; height: 26px; flex: none; }
.btn-wa:hover { background: var(--wa-hover); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(0,0,0,.12), 0 18px 28px -14px rgba(10, 70, 55, .95); }
.btn-wa:active { transform: translateY(0); }
.btn-wa:focus-visible { outline-color: var(--navy); }

/* Nota do Google, como uma etiqueta de papel */
.rating {
  position: relative;
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 2.3em;
  background: #fff;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  filter: drop-shadow(0 8px 10px rgba(14, 30, 50, .18));
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;

}
.rating::before {
  content: "";
  position: absolute;
  left: .9em; top: 50%;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  border: 2px solid var(--ink-soft);
  background: var(--paper);
}
.rating:hover .rating__text { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.rating__score { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1; }
.rating__stars { display: inline-flex; gap: 2px; color: #c8901c; }
.rating__stars svg { width: 17px; height: 17px; }
.rating__text { color: var(--ink-soft); }

/* ---------- Fotos pousadas na maca ---------- */

.item {
  position: relative;
  align-self: start;
  margin: 0;
  box-shadow: var(--shadow-item);
}
.item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* etiqueta de papel amarrada na foto */
.tag {
  position: absolute;
  z-index: 2;
  display: inline-block;
  max-width: calc(100% - 24px);
  padding: .6em .95em .6em 2.05em;
  background: var(--tag);
  color: var(--ink);
  font-family: var(--text);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .06em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  filter: drop-shadow(0 6px 8px rgba(14, 30, 50, .25));
}
.tag::before { /* ilhós */
  content: "";
  position: absolute;
  left: .8em; top: 50%;
  width: 9px; height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  border: 2px solid var(--ink-soft);
  background: var(--vinyl);
}
.tag--bl { left: 14px; bottom: -16px; }
.tag--tr { right: 14px; top: -16px; }

/* abertura: retrato grande + foto do domicílio sobreposta */
.table--hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-content: center;
  padding-block: clamp(48px, 7vh, 96px) clamp(64px, 9vh, 112px);
}
.item--portrait { grid-column: 3 / 13; grid-row: 1; }
.item--portrait img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.item--home {
  grid-column: 1 / 6; grid-row: 1;
  align-self: end;
  margin-bottom: -9%;
  z-index: 3;
  background: #fff;
}
.item--home img { aspect-ratio: 541 / 600; object-position: 50% 40%; }

/* duas fotos em degrau */
.table--pair {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-content: start;
  row-gap: 0;
}
.table--pair .item:first-child { grid-column: 1 / 7; grid-row: 1; }
.table--pair .item:first-child img { object-position: 65% 50%; }
.table--pair .item--low { grid-column: 7 / 13; grid-row: 1; margin-top: 42%; margin-left: 9%; }

/* uma foto */
.table--single { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-content: center; }
.table--single .item { grid-column: 2 / 12; }
.item--facade img { aspect-ratio: 3 / 4; }

/* três fotos do consultório */
.table--trio {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-content: center;
  gap: 0;
}
.table--trio .item--a { grid-column: 1 / 7; grid-row: 1; }
.table--trio .item--b { grid-column: 7 / 13; grid-row: 1; margin-top: 30%; margin-left: 10%; }
.table--trio .item--c { grid-column: 3 / 8; grid-row: 2; margin-top: -12%; }
.table--trio .item--c img { aspect-ratio: 1 / 1; }

/* ---------- Seções de texto ---------- */

.care { padding: 20px 0 22px; border-top: 1.5px solid var(--ink); }
.care p { color: var(--ink-soft); }
.care + .care { border-top-width: 1px; border-top-color: var(--perforation); }
.also {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--perforation);
  color: var(--ink-soft);
  font-size: 1.0625rem;
}
.also strong { color: var(--ink); }

.steps { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: clamp(52px, 5vw, 68px) 1fr;
  column-gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--perforation);
}
.steps li:first-child { border-top: 1.5px solid var(--ink); }
.steps li::before {
  content: counter(s);
  grid-row: 1 / 3;
  font-family: var(--display);
  font-size: clamp(2.6rem, 2rem + 1.6vw, 3.6rem);
  font-weight: 300;
  font-stretch: 80%;
  line-height: .9;
  color: #5f7f9c;
}
.steps h3 { grid-column: 2; }
.steps p { grid-column: 2; color: var(--ink-soft); margin: 0; }
.aside { font-size: 1.0625rem; color: var(--ink-soft); font-style: italic; }

/* seção azul-marinho: o campo muda para o estofado das poltronas */
.row--navy { --field: var(--navy); }
.row--navy::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: var(--navy);
  z-index: -1;
}
.place { padding: 20px 0 6px; border-top: 1px solid var(--perforation); }
.place:first-of-type { border-top: 1.5px solid var(--ink); }
.place p { color: var(--ink-soft); }
.pull { margin: 24px 0 0; padding: 0; }
.pull p {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem);
  font-weight: 500;
  font-stretch: 90%;
  line-height: 1.28;
  color: var(--ink);
  margin-bottom: 10px;
}
.pull cite { font-style: normal; font-size: 1rem; color: var(--ink-soft); }
.row--navy .tag::before { background: var(--navy); }

/* ---------- Depoimentos: folhas destacadas do rolo ---------- */

.score { font-size: 1.1875rem; color: var(--ink-soft); }
.score__num {
  display: block;
  font-family: var(--display);
  font-size: clamp(4rem, 3rem + 3vw, 6rem);
  font-weight: 700;
  font-stretch: 80%;
  line-height: .9;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 10px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--perforation);
  text-underline-offset: .3em;
  transition: text-decoration-color .2s;
}
.link svg { width: 20px; height: 20px; transition: transform .25s var(--ease-out); }
.link:hover { text-decoration-color: var(--ink); }
.link:hover svg { transform: translateX(4px); }

.table--sheets { padding-inline: clamp(20px, 3vw, 56px); }
.sheets {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: clamp(16px, 2vw, 28px);
}
.sheet {
  break-inside: avoid;
  margin-bottom: clamp(16px, 2vw, 28px);
  filter: drop-shadow(0 1px 1px rgba(14, 30, 50, .12)) drop-shadow(0 16px 18px rgba(14, 30, 50, .22));
}
.sheet__paper { /* folha com a borda de cima picotada */
  padding: 30px 24px 22px;
  background: var(--paper);
  -webkit-mask: radial-gradient(circle at 5px 0, transparent 3.4px, #000 3.9px) top left / 10px 6px repeat-x, linear-gradient(#000 0 0) 0 6px / 100% calc(100% - 6px) no-repeat;
  mask: radial-gradient(circle at 5px 0, transparent 3.4px, #000 3.9px) top left / 10px 6px repeat-x, linear-gradient(#000 0 0) 0 6px / 100% calc(100% - 6px) no-repeat;
}
.sheet blockquote { margin: 0; }
.sheet blockquote p { font-size: 1.0625rem; line-height: 1.5; margin-bottom: 14px; }
.sheet__who {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--paper-edge);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  align-items: baseline;
}
.sheet__who span { font-weight: 400; color: var(--ink-soft); font-size: .9375rem; }

/* ---------- Sobre ---------- */

.signature {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.2rem + .7vw, 1.8rem);
  font-weight: 600;
  font-stretch: 88%;
  line-height: 1.25;
  margin: 28px 0 40px;
}
.list-title {
  font-family: var(--text);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.courses { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.courses li {
  break-inside: avoid;
  padding: 10px 0;
  border-top: 1px solid var(--perforation);
  font-size: 1rem;
  line-height: 1.4;
}

/* ---------- Ficha de informações (densa e regrada) ---------- */

.facts { margin: 0 0 28px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.facts > div {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 4px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--perforation);
}
.facts > div:first-child { border-top: 0; }
.facts dt {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: .2em;
}
.facts dd { margin: 0; font-size: 1.0625rem; line-height: 1.45; }
.facts a { overflow-wrap: anywhere; }

/* ---------- Fechamento ---------- */

.row--close .paper { padding-bottom: clamp(72px, 9vw, 128px); }
.row--close h2 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); }
.btn-wa--big { min-height: 68px; font-size: 1.3rem; padding-inline: 26px 34px; margin-top: 8px; }
.paper--last { box-shadow: 0 1px 0 rgba(14,30,50,.05), 0 40px 50px -30px rgba(14, 30, 50, .5); }

/* ---------- Rodapé ---------- */

.foot { padding: clamp(40px, 5vw, 64px) 0 clamp(96px, 10vw, 72px); }
.foot__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px 28px;
  flex-wrap: wrap;
  color: var(--ink);
  font-size: 1rem;
}
.foot__inner p { margin: 0; max-width: none; }
.foot__mark { width: 48px; height: 48px; }
.nw { white-space: nowrap; }
.foot__social { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 8px; }
.foot__social a {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  color: var(--ink);
  border: 1px solid rgba(20, 38, 58, .35);
  transition: background-color .2s, color .2s;
}
.foot__social a:hover { background: var(--ink); color: var(--vinyl); }
.foot__social svg { width: 22px; height: 22px; }

/* ---------- WhatsApp fixo ---------- */

.wa-float {
  position: fixed;
  z-index: 40;
  right: 24px; bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 22px 12px 18px;
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(0,0,0,.1), 0 18px 32px -14px rgba(8, 40, 32, .8);
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out), background-color .2s;
}
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float:hover { background: var(--wa-hover); }
.js .wa-float:not(.is-visible) { transform: translateY(16px); opacity: 0; pointer-events: none; }

/* ---------- Movimento: o rolo de papel se desenrola ao abrir ---------- */

@media (prefers-reduced-motion: no-preference) {
  .paper--first { animation: unroll 1s var(--ease-out) both; }
  .table--hero .item { animation: setdown .8s var(--ease-out) both; }
  .table--hero .item--portrait { animation-delay: .28s; }
  .table--hero .item--home { animation-delay: .5s; }
  @keyframes unroll {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0 0 0 0); }
  }
  @keyframes setdown {
    from { opacity: 0; transform: translateY(-14px) scale(1.02); filter: blur(3px); box-shadow: 0 1px 1px rgba(14,30,50,0), 0 40px 60px -20px rgba(14,30,50,.3); }
  }
}

/* ---------- Ajustes: etiquetas grandes, maleta, depoimentos fixos ---------- */

.tag--big {
  padding: .75em 1.15em .75em 2.3em;
  font-size: .875rem;
  max-width: min(360px, calc(100% - 24px));
}
.tag--big strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 650;
  font-stretch: 90%;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.1;
  margin-bottom: .2em;
}
.tag--big span { display: block; color: var(--ink-soft); font-weight: 700; }
.tag--big::before { top: 1.45em; margin-top: 0; }

.table--stack {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-content: start;
  row-gap: clamp(120px, 10vw, 150px);
}
.item--kit .tag { top: 10px; transform: translateY(-100%); }
.table--stack .item:first-child { grid-column: 3 / 12; }
.item--kit { grid-column: 1 / 9; }
.item--kit img { aspect-ratio: 1 / 1; }

.mast-portrait { display: none; }

.paper__sticky { position: sticky; top: 48px; }

.lead__more { }
.sep { }

/* o picote se desenha quando a folha entra na tela (navegadores com suporte) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .row:not(.row--hero) .paper::after {
      transform-origin: left center;
      animation: tear linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    @keyframes tear { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1080px) {
  .topnav { display: none; }
  .row { grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); }
  .courses { columns: 1; }
  .sheets { columns: 1; }
}

/* ==========================================================================
   Celular: as folhas empilham, as fotos ficam sobre a maca entre elas
   ========================================================================== */
@media (max-width: 820px) {
  body { font-size: 1.0625rem; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row--hero { min-height: 0; }
  .paper { padding: 44px 22px 40px; }
  .row--hero .paper { padding-top: 16px; padding-bottom: 32px; }
  .masthead { margin-bottom: 26px; }
  .brand { width: 84px; }
  h1 { font-size: clamp(2.3rem, 1.2rem + 5.2vw, 3.2rem); }
  .lead { margin: 16px 0 24px; }
  .cta-block { margin-bottom: 24px; }
  .btn-wa { width: 100%; justify-content: center; }
  .btn-wa--big { font-size: 1.1875rem; padding-inline: 18px; }
  .rating { flex-wrap: wrap; }

  .table { padding: 40px 6px 52px; }
  .table--hero { padding-block: 36px 64px; }
  .item--portrait { grid-column: 2 / 13; }
  .item--home { grid-column: 1 / 7; margin-bottom: -14%; }

  .table--pair .item:first-child { grid-column: 1 / 9; }
  .table--pair .item--low { grid-column: 6 / 13; margin-top: 52%; }
  .table--single .item { grid-column: 1 / 13; }
  .table--trio .item--a { grid-column: 1 / 8; }
  .table--trio .item--b { grid-column: 7 / 13; margin-left: 6%; margin-top: 46%; }
  .table--trio .item--c { grid-column: 2 / 8; margin-top: -18%; }

  .tag { font-size: .8125rem; }

  /* depoimentos deslizam para o lado */
  .table--sheets { padding: 36px 0 48px; }
  .sheets {
    columns: auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 6px 18px;
    scrollbar-width: thin;
  }
  .sheet { scroll-snap-align: center; margin: 0; }

  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .table--close { display: none; }

  .foot { padding-bottom: 104px; }
  .foot__social { margin-left: 0; }

  .wa-float {
    left: 0; right: 0; bottom: 0;
    justify-content: center;
    min-height: 60px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-radius: 0;
    font-size: 1.125rem;
  }
}

@media (max-width: 380px) {
  .tag { letter-spacing: .03em; }
  .courses li, .facts dd { font-size: 1rem; }
}

/* ---------- Celular: ajustes da revisão ---------- */
@media (max-width: 820px) {
  .lead__more { display: none; }
  .cta-note .sep { display: none; }
  .cta-note .nw { display: block; }
  .mast-portrait {
    display: block;
    position: relative;
    width: 108px;
    margin: 4px 4px 0 0;
    box-shadow: var(--shadow-item);
  }
  .mast-portrait img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
  .tag--mini {
    left: -12px; right: auto; bottom: -14px; max-width: none;
    font-size: .75rem;
    padding: .45em .7em .45em 1.7em;
    white-space: nowrap;
  }
  .tag--mini::before { left: .6em; width: 7px; height: 7px; margin-top: -3.5px; }
  .masthead { align-items: flex-start; }

  .table--pair .item:first-child { grid-column: 1 / 8; }
  .table--pair .item--low { grid-column: 8 / 13; margin-left: 0; margin-top: 60%; }
  .table--stack .item:first-child, .item--kit { grid-column: 1 / 13; }
  .tag--big strong { font-size: 1.15rem; }
  .tag--big { font-size: .8125rem; }
  .paper__sticky { position: static; }
  .rating { padding-left: 2.2em; }
}

/* ---------- Tablet: ajustes finos ---------- */
@media (min-width: 821px) and (max-width: 1080px) {
  .row--hero { min-height: 0; }
  .rating { margin-top: 8px; }
  .tag { font-size: .75rem; letter-spacing: .04em; }
  .tag--big strong { font-size: 1.05rem; }
  .table { padding-inline: clamp(16px, 2.4vw, 32px); }
  .item--portrait { grid-column: 2 / 13; }
}
@media (min-width: 560px) and (max-width: 820px) {
  .table { width: 100%; max-width: 600px; justify-self: center; }
  .table--sheets { max-width: none; }
}
