/**
 * Estilos do site Hospital da Visão.
 *
 * Organização: fundações compartilhadas, cabeçalho e hero, conteúdo editorial,
 * seções institucionais, responsividade e explicador interativo. Mantenha as
 * regras específicas próximas à seção correspondente para preservar a cascata.
 */

:root {
  --bg: #f7f5ef;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --ink: #15252f;
  --muted: #63757f;
  --accent: #176c59;
  --accent-strong: #0d6552;
  --accent-hover: #084d3e;
  --accent-soft: #e7f4ef;
  --accent-bright: #72d9ba;
  --line: #d5e2db;
  --shadow: 0 24px 70px rgba(21, 37, 47, 0.08);
  --site-header-height: 84px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-height) + 18px);
}
[id] {
  scroll-margin-top: calc(var(--site-header-height) + 18px);
}
/* Texto exclusivo para leitores de tela. */
.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;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    400 16px/1.6 "Inter",
    sans-serif;
  background: linear-gradient(180deg, #fcfaf6 0%, #f2ece3 100%);
}
body.menu-open {
  overflow: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow:before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
h3 {
  line-height: 1.2;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--accent-strong);
  border-radius: 999px;
  background: linear-gradient(135deg, #18745f 0%, var(--accent-strong) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 13px 26px rgba(8, 77, 62, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-hover);
  background: linear-gradient(
    135deg,
    var(--accent-strong) 0%,
    var(--accent-hover) 100%
  );
  box-shadow:
    0 17px 30px rgba(8, 77, 62, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(8, 77, 62, 0.22);
}
.btn:focus-visible,
.whatsapp:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}
.btn.ghost {
  border-color: #b8cec3;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(21, 37, 47, 0.08);
}
.btn.ghost:hover {
  border-color: #8eb8a7;
  background: #f2faf6;
  color: #103e34;
  box-shadow: 0 13px 24px rgba(21, 37, 47, 0.12);
}
/* Cabeçalho e navegação --------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}
.topbar .container {
  height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar span {
  margin-right: 22px;
}
.topbar a {
  color: inherit;
}
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(21, 37, 47, 0.05);
}
.nav {
  height: var(--site-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
}
.brand:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 4px;
}
.brand img {
  width: 220px;
  height: 72px;
  max-height: none;
  object-fit: contain;
}
.brand-fallback strong {
  display: block;
  font-size: 20px;
  color: var(--ink);
  line-height: 1;
  font-family: "Playfair Display", serif;
}
.brand-fallback small {
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.menu {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 700;
}
.menu a:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 8px;
}
/* No desktop a gaveta some e sobram apenas os links e a ação principal. */
.menu__label--mobile,
.menu__contact-link,
.menu__contact {
  display: none;
}
.menu-backdrop {
  display: none;
}
.burger {
  display: none;
  border: 1px solid transparent;
  background: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 6px auto;
  border-radius: 999px;
}
.burger:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}

@media (min-width: 1121px) {
  .menu a:not(.btn) {
    padding: 28px 0;
    position: relative;
  }
  .menu a:not(.btn):after {
    content: "";
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.25s;
  }
  .menu a:not(.btn):hover:after {
    width: 100%;
  }
  .menu__intro {
    display: none;
  }
  .menu__links,
  .menu__actions {
    display: flex;
    align-items: center;
  }
  .menu__links {
    gap: 26px;
  }
}

/* Abaixo de 1120px o menu vira uma gaveta lateral orientada por tarefas. */
@media (max-width: 1120px) {
  /*
   * O `backdrop-filter` do cabeçalho torna-o bloco contentor dos descendentes
   * fixos, então a gaveta fechada (deslocada em 100%) passaria a alargar a
   * página. `clip` corta esse excedente sem criar rolagem nem quebrar o
   * `position: sticky` do cabeçalho, como `hidden` faria.
   */
  html {
    overflow-x: clip;
  }

  .menu-backdrop {
    display: block;
    position: fixed;
    inset: var(--site-header-height) 0 0;
    z-index: 39;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(9, 40, 33, 0.42);
    cursor: default;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.25s ease,
      visibility 0s linear 0.25s;
  }
  body.menu-open .menu-backdrop {
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .burger {
    display: block;
    position: relative;
    overflow: hidden;
    border-color: #c3ded3;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff 0%, #eef8f3 100%);
    box-shadow: 0 7px 16px rgba(8, 70, 62, 0.1);
    transition:
      transform 0.2s ease,
      border-color 0.2s ease,
      background 0.2s ease,
      box-shadow 0.2s ease;
  }
  .burger:hover {
    border-color: #7fb6a3;
    background: #f7fdfa;
    box-shadow: 0 10px 20px rgba(8, 70, 62, 0.14);
    transform: translateY(-1px);
  }
  .burger span {
    position: absolute;
    left: 50%;
    width: 21px;
    height: 2px;
    margin: 0;
    border-radius: 99px;
    background: var(--ink);
    transform-origin: center;
    transition:
      transform 0.24s ease,
      opacity 0.18s ease,
      background 0.2s ease;
  }
  .burger span:nth-child(1) {
    transform: translate(-50%, -7px);
  }
  .burger span:nth-child(2) {
    transform: translate(-50%, 0);
  }
  .burger span:nth-child(3) {
    transform: translate(-50%, 7px);
  }
  .burger[aria-expanded="true"] {
    border-color: var(--accent-strong);
    background: linear-gradient(
      145deg,
      var(--accent) 0%,
      var(--accent-strong) 100%
    );
    box-shadow: 0 10px 22px rgba(13, 101, 82, 0.28);
  }
  .burger[aria-expanded="true"] span {
    background: #fff;
  }
  .burger[aria-expanded="true"] span:nth-child(1) {
    transform: translate(-50%, 0) rotate(45deg);
  }
  .burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .burger[aria-expanded="true"] span:nth-child(3) {
    transform: translate(-50%, 0) rotate(-45deg);
  }

  .menu {
    position: fixed;
    inset: var(--site-header-height) 0 0 auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: min(404px, 100vw);
    height: calc(100dvh - var(--site-header-height));
    gap: 0;
    padding: 26px 22px calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid var(--line);
    background: linear-gradient(155deg, #ffffff 0%, #f3fbf7 100%);
    box-shadow: -18px 0 42px rgba(9, 48, 40, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition:
      transform 0.3s cubic-bezier(0.22, 0.8, 0.28, 1),
      opacity 0.22s ease,
      visibility 0s linear 0.3s;
  }
  .menu.open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
  }

  .menu__intro {
    display: grid;
    gap: 4px;
    padding: 2px 4px 20px;
    border-bottom: 1px solid var(--line);
  }
  .menu__eyebrow {
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }
  .menu__intro strong {
    color: #14392f;
    font-size: 22px;
    letter-spacing: -0.025em;
    line-height: 1.15;
  }

  .menu__links {
    display: grid;
    gap: 6px;
    padding: 20px 0 0;
  }
  .menu__label--desktop {
    display: none;
  }
  .menu__label--mobile {
    display: inline;
  }
  .menu__contact-link {
    display: flex;
  }
  .menu__contact {
    display: block;
  }
  .menu__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.25;
    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease;
  }
  .menu__links a:after {
    margin-left: 14px;
    color: #5b8a7c;
    content: "→";
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
  }
  .menu__links a:hover,
  .menu__links a:focus-visible {
    border-color: #bcdcd0;
    background: var(--accent-soft);
    color: var(--accent-strong);
    transform: translateX(2px);
  }
  .menu__links a:focus-visible {
    outline-offset: 1px;
  }

  .menu__actions {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .menu .btn {
    width: 100%;
    min-height: 54px;
    margin: 0;
    font-size: 15px;
  }
  .menu__contact {
    padding: 13px 14px;
    border: 1px solid #c9e4d8;
    border-radius: 14px;
    background: rgba(233, 247, 241, 0.9);
    color: #2c6355;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
  }
  .menu__contact span,
  .menu__contact strong {
    display: block;
  }
  .menu__contact strong {
    margin-top: 3px;
    color: var(--accent-strong);
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .menu {
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
  }
  .menu__intro strong {
    font-size: 21px;
  }
}
/* Hero e atalhos ---------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #ecf4ee;
}
.slides {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slide.active {
  opacity: 1;
}
.slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(11, 28, 37, 0.94) 0%,
    rgba(11, 28, 37, 0.78) 45%,
    rgba(11, 28, 37, 0.24) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 92px 0 108px;
  max-width: 680px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 44px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.hero .eyebrow {
  color: #9dd1bc;
}
.hero .eyebrow:before {
  background: #9dd1bc;
}
.hero h1 {
  margin: 20px 0;
  color: #fff;
}
.hero h1 em {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #dcefe5;
}
.hero p {
  max-width: 570px;
  color: #dfeee7;
  font-size: 18px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}
.hero-actions .btn {
  min-height: 54px;
  padding-inline: 25px;
}
.hero-actions .btn.ghost {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.96);
  color: #15342d;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}
.hero-actions .btn.ghost:hover {
  border-color: #d9f1e6;
  background: #dff3eb;
  color: #083f33;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}
.hero-carousel-controls {
  position: absolute;
  z-index: 4;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero-dots {
  display: flex;
  gap: 9px;
}
.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.hero-dot.active {
  width: 28px;
  border-radius: 9px;
  background: #fff;
}
.hero-dot:focus-visible,
.hero-autoplay-toggle:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}
.hero-autoplay-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(11, 28, 37, 0.35);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.quick {
  position: relative;
  z-index: 5;
  margin-top: -48px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.quick a {
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid var(--line);
  transition: 0.2s;
}
.quick a:last-child {
  border: 0;
}
.quick a:hover {
  background: var(--accent-soft);
}
.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
}
.quick .icon {
  flex: 0 0 auto;
}
.quick .icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}
.quick strong {
  display: block;
  color: var(--ink);
}
.quick small {
  color: var(--muted);
}
/* Conteúdo editorial: cirurgia de miopia -------------------------------- */
.article-block {
  --art-ink: #0c2c40;
  --art-body: #4e6b7a;
  --art-soft: #4f7185;
  --art-line: #dceaf1;
  --art-tint: #f4fafd;
  --art-blue: #0b7fb0;
  --art-cyan: #27b8e6;
  background: linear-gradient(180deg, #f7fcff 0%, #eaf4fa 100%);
}
.article-block a:focus-visible,
.article-accordion summary:focus-visible {
  outline: 3px solid #74d8f4;
  outline-offset: 3px;
  border-radius: 10px;
}
.article-block .eyebrow {
  color: var(--art-blue);
}
.article-block .eyebrow:before {
  background: var(--art-cyan);
}
.article-block .section-head {
  align-items: start;
  gap: 56px;
  margin-bottom: 0;
}
.article-block .section-head h2 {
  max-width: 15ch;
  margin: 14px 0 0;
  color: var(--art-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.article-block .section-head p {
  max-width: 54ch;
  margin: 0;
  color: var(--art-body);
  font-size: 16px;
  line-height: 1.8;
}

.article-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  color: var(--art-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.article-label:after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--art-line), transparent);
}

.quick-answer {
  margin: 44px 0 46px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}
.article-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--art-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 44, 64, 0.04);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.article-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--art-cyan), var(--art-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.article-card:hover {
  transform: translateY(-3px);
  border-color: #bfdeec;
  box-shadow: 0 18px 40px rgba(12, 68, 96, 0.09);
}
.article-card:hover:before {
  transform: scaleX(1);
}
.article-card .icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--art-line);
  border-radius: 15px;
  background: var(--art-tint);
  color: var(--art-blue);
  box-shadow: none;
}
.article-card .icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.85;
}
.article-card h3 {
  margin: 20px 0 8px;
  color: var(--art-ink);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.article-card p {
  margin: 0;
  color: var(--art-body);
  font-size: 14.5px;
  line-height: 1.7;
}

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 32px;
}
.article-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}
.article-section {
  padding: 30px 32px;
  border: 1px solid var(--art-line);
  border-radius: 22px;
  background: #fff;
}
.article-section h3 {
  margin: 0 0 14px;
  color: var(--art-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.article-section p {
  max-width: 64ch;
  margin: 0 0 12px;
  color: var(--art-body);
  line-height: 1.85;
}
.article-section p:last-child {
  margin-bottom: 0;
}
.feature-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  position: relative;
  max-width: 64ch;
  padding-left: 26px;
  color: var(--art-body);
  line-height: 1.7;
}
.feature-list li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border: 2px solid var(--art-cyan);
  border-radius: 50%;
}
.feature-list strong {
  color: var(--art-ink);
  font-weight: 750;
}

.grade-scale {
  margin: 20px 0 4px;
  padding: 20px;
  border: 1px solid var(--art-line);
  border-radius: 16px;
  background: var(--art-tint);
}
.grade-scale__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}
.grade-scale__head b {
  color: var(--art-ink);
  font-size: 13px;
  font-weight: 800;
}
.grade-scale__head small {
  color: var(--art-soft);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.grade-scale__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: 12px;
}
.grade-scale__band {
  display: grid;
  gap: 2px;
  padding: 13px 14px;
  color: #fff;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.grade-scale__band + .grade-scale__band {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.4);
}
.grade-scale__band b {
  font-size: 13px;
  font-weight: 800;
}
.grade-scale__band i {
  font-size: 11.5px;
  font-style: normal;
  font-weight: 500;
}
.grade-scale__band.is-low {
  background: #a5e0f2;
  color: var(--art-ink);
}
.grade-scale__band.is-mid {
  background: #0f7aa6;
}
.grade-scale__band.is-high {
  background: #08496b;
}
.reveal.visible .grade-scale__band {
  clip-path: inset(0 0 0 0);
}
.reveal.visible .grade-scale__band:nth-child(2) {
  transition-delay: 0.12s;
}
.reveal.visible .grade-scale__band:nth-child(3) {
  transition-delay: 0.24s;
}
.grade-scale__axis {
  position: relative;
  height: 16px;
  margin-top: 11px;
}
.grade-scale__axis span {
  position: absolute;
  top: 0;
  color: var(--art-soft);
  font:
    800 11px/1 "Inter",
    sans-serif;
  transform: translateX(-50%);
}
.grade-scale__axis span:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 1px;
  height: 5px;
  background: #bcd6e3;
}
.grade-scale__axis span:nth-child(1) {
  left: 0;
  transform: none;
}
.grade-scale__axis span:nth-child(1):before {
  left: 0;
}
.grade-scale__axis span:nth-child(2) {
  left: 33.333%;
}
.grade-scale__axis span:nth-child(3) {
  left: 66.666%;
}
.grade-scale__axis span:nth-child(4) {
  left: 100%;
  transform: translateX(-100%);
}
.grade-scale__axis span:nth-child(4):before {
  left: auto;
  right: 0;
}

.article-visual {
  display: block;
}
.article-visual__inner {
  position: sticky;
  top: 104px;
  overflow: hidden;
  border: 1px solid var(--art-line);
  border-radius: 22px;
  background: #fff;
}
.article-visual img {
  width: 100%;
  min-height: 390px;
  border-radius: 0;
  object-fit: cover;
}
.visual-note {
  margin: 0;
  padding: 18px 20px;
  border: 0;
  border-top: 1px solid var(--art-line);
  border-radius: 0;
  background: #fff;
  color: var(--art-body);
  font-size: 13.5px;
  line-height: 1.65;
}
.visual-note b {
  display: block;
  margin-bottom: 4px;
  color: var(--art-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.article-accordion {
  margin-top: 44px;
}
.article-accordion details {
  margin: 0 0 10px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--art-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.2s ease;
}
.article-accordion details[open] {
  border-color: #bfdeec;
}
.article-accordion summary {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 12px;
  padding: 18px 22px;
  color: var(--art-ink);
  font-size: 16px;
  font-weight: 750;
}
.article-accordion summary em {
  color: var(--art-soft);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 700;
}
.article-accordion summary:after {
  margin-left: auto;
  color: var(--art-blue);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.article-accordion p {
  max-width: 70ch;
  margin: 0 22px 18px;
  color: var(--art-body);
  font-size: 14.5px;
  line-height: 1.8;
}
.article-accordion .indication {
  display: flex;
  gap: 12px;
  margin: 12px 22px 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--art-tint);
  font-size: 13.5px;
  line-height: 1.6;
}
.article-accordion .indication b {
  flex: 0 0 auto;
  color: var(--art-blue);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.95;
  text-transform: uppercase;
}

.article-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
  padding: 30px 34px;
  border: 1px solid var(--art-line);
  border-radius: 22px;
  background: linear-gradient(115deg, #fff 42%, #eefaff);
  box-shadow: none;
}
.article-cta h3 {
  margin: 0 0 6px;
  color: var(--art-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.article-cta p {
  max-width: 58ch;
  margin: 0;
  color: var(--art-body);
  font-size: 15px;
  line-height: 1.7;
}
.article-cta .btn {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .article-block .section-head {
    gap: 22px;
  }
  .article-block .section-head h2 {
    max-width: none;
  }
  .article-grid {
    grid-template-columns: 1fr 1fr;
  }
  .article-body {
    grid-template-columns: 1fr;
  }
  .article-visual__inner {
    position: static;
  }
  .article-visual img {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  .article-card,
  .article-section {
    padding: 22px;
  }
  .article-section h3 {
    font-size: 21px;
  }
  .grade-scale {
    padding: 16px;
  }
  .grade-scale__band {
    padding: 11px 9px;
  }
  .grade-scale__band b {
    font-size: 11.5px;
  }
  .grade-scale__band i {
    font-size: 10px;
  }
  .article-accordion summary {
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 16px 18px;
  }
  .article-accordion p,
  .article-accordion .indication {
    margin-left: 18px;
    margin-right: 18px;
  }
  .article-cta {
    align-items: stretch;
    flex-direction: column;
    padding: 24px;
  }
  .article-cta .btn {
    width: 100%;
  }
}
/* Seções institucionais e componentes reutilizáveis --------------------- */

section {
  padding: 96px 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.photo-stack {
  position: relative;
  padding: 0 50px 50px 0;
}
.photo-main {
  height: 540px;
  width: 100%;
  object-fit: cover;
  border-radius: 24px;
}
.photo-small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 240px;
  height: 250px;
  object-fit: cover;
  border: 10px solid #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.stat {
  position: absolute;
  top: 32px;
  left: -22px;
  width: 155px;
  padding: 20px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.stat strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}
.intro-copy p {
  color: var(--muted);
}
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 32px;
}
.checks span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.checks span:before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}
/* Guia de classificação da miopia --------------------------------------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 44px;
  gap: 28px;
}
.section-head p {
  max-width: 520px;
  margin-bottom: 7px;
  color: var(--muted);
}
.myopia-topics {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 93% 0%,
      rgba(114, 217, 186, 0.13),
      transparent 26%
    ),
    transparent;
}
.myopia-topics__head {
  margin-bottom: 32px;
}
.myopia-topics__head > div:first-child {
  flex: 1 1 0;
}
.myopia-topics__head h2 {
  max-width: none;
  margin: 12px 0 0;
}
.myopia-topics__intro {
  display: grid;
  flex: 0 1 500px;
  gap: 18px;
  width: min(100%, 500px);
}
.myopia-topics__intro p {
  margin: 0;
}
.carousel-tools {
  display: flex;
  gap: 8px;
}
.topic-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.topic-arrow:hover {
  transform: translateY(-2px);
  border-color: #9fcabc;
  background: #fff;
}
.topic-arrow:focus-visible,
.myopia-topics__footer a:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}
.myopia-topics__track {
  display: grid;
  margin: 0;
  grid-auto-flow: column;
  grid-auto-columns: minmax(265px, 1fr);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 20px;
  list-style: none;
  scrollbar-color: #abcfc2 transparent;
  scrollbar-width: thin;
}
.myopia-topic {
  --topic: #176c59;
  --topic-deep: #0a5444;
  --topic-soft: #e7f4ef;
  --topic-glow: rgba(46, 153, 121, 0.19);
  display: flex;
  min-height: 405px;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: 0 1px 2px rgba(21, 37, 47, 0.02);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.myopia-topic--low {
  --topic: #278370;
  --topic-deep: #0f6252;
  --topic-soft: #e3f5ef;
  --topic-glow: rgba(80, 177, 148, 0.2);
}
.myopia-topic--moderate {
  --topic: #287b9d;
  --topic-deep: #155a76;
  --topic-soft: #e6f4f9;
  --topic-glow: rgba(76, 168, 204, 0.2);
}
.myopia-topic--high {
  --topic: #a96531;
  --topic-deep: #7d4118;
  --topic-soft: #f9eee4;
  --topic-glow: rgba(205, 141, 83, 0.2);
}
.myopia-topic--what-is {
  --image-position: 50% 26%;
}
.myopia-topic--high {
  --image-position: 50% 43%;
}
.myopia-topic:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--topic) 35%, var(--line));
  box-shadow: 0 22px 46px rgba(21, 37, 47, 0.1);
}
.myopia-topic__visual {
  position: relative;
  display: flex;
  min-height: 172px;
  align-items: flex-end;
  overflow: hidden;
  background: var(--topic-soft);
}
.myopia-topic__visual:before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 39, 47, 0.03),
    rgba(10, 39, 47, 0.34)
  );
  content: "";
}
.myopia-topic__image {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: var(--image-position, center);
  transition: transform 0.35s ease;
}
.myopia-topic:hover .myopia-topic__image {
  transform: scale(1.035);
}
.myopia-topic__index {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(7, 39, 47, 0.58);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.myopia-topic__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px 24px 27px;
}
.myopia-topic__tag {
  margin: 0 0 12px;
  color: var(--topic);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.myopia-topic h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 21px;
  letter-spacing: -0.02em;
}
.myopia-topic__content > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}
.myopia-topics__footer {
  display: flex;
  margin-top: 2px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(176, 205, 193, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}
.myopia-topics__footer p {
  display: flex;
  max-width: 760px;
  margin: 0;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.myopia-topics__footer p span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}
.myopia-topics__footer a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}
.myopia-topics__footer a span {
  font-size: 17px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.myopia-topics__footer a:hover span {
  transform: translateX(3px);
}
@media (max-width: 980px) {
  .myopia-topics__intro {
    flex-basis: auto;
  }
  .myopia-topics__track {
    grid-auto-columns: minmax(290px, 1fr);
  }
}
@media (max-width: 620px) {
  .myopia-topics__head {
    margin-bottom: 26px;
  }
  .myopia-topics__intro {
    width: 100%;
  }
  .myopia-topics__track {
    grid-auto-columns: calc(100% - 18px);
    gap: 14px;
  }
  .myopia-topic {
    min-height: 385px;
  }
  .myopia-topics__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .myopia-topics__footer p {
    max-width: none;
    width: 100%;
  }
}
.process {
  overflow: hidden;
}
.process-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}
.step b {
  display: block;
  color: #8aa2a2;
  font-size: 12px;
  letter-spacing: 0.15em;
}
.step h3 {
  margin: 16px 0 8px;
  color: var(--ink);
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.focus-demo {
  position: relative;
  height: 560px;
  border-radius: 24px;
  overflow: hidden;
  background: #dfece6;
}
.focus-demo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.focus-demo:after {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  backdrop-filter: blur(8px);
  border-right: 2px solid rgba(255, 255, 255, 0.7);
}
.focus-label {
  position: absolute;
  z-index: 2;
  top: 24px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 800;
}
.focus-label.before {
  left: 20px;
}
.focus-label.after {
  right: 20px;
}
.focus-handle {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--accent);
  box-shadow: var(--shadow);
}
.doctor {
  padding: 0;
  background: linear-gradient(90deg, var(--ink) 0 48%, #1d3544 48%);
}
.doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.doctor-photo {
  position: relative;
  min-height: 590px;
  overflow: hidden;
}
.doctor-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.doctor-copy {
  padding: 90px;
  color: #fff;
}
.doctor-copy h2 {
  color: #fff;
}
.doctor-copy p {
  color: #c8d6dc;
}
.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}
.credentials div {
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.credentials strong {
  display: block;
  font-size: 24px;
}
.credentials small {
  color: #9fb3bc;
}
.testimonials {
  background: var(--accent-soft);
  /* A faixa de avaliações sangra até as bordas da tela; sem o overflow ela
     alargaria a página. O layout é título à esquerda com o resumo à direita,
     então o texto dos cards fica alinhado à esquerda. */
  overflow: hidden;
  text-align: left;
}
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
  text-align: left;
}
.quote {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.quote.alt {
  background: #f2efe9;
}
.quote:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.stars {
  color: #f4b942;
  letter-spacing: 3px;
}
.google-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}
.google-rating .stars {
  font-size: 24px;
  letter-spacing: 4px;
}
.google-rating p {
  margin: 0;
  font-weight: 700;
}
.google-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
/* ============================================================
   Avaliações do Google — faixa que anda sozinha
   ============================================================ */

/* Resumo ao lado do título: nota grande, estrelas e total. */
.avaliacoes-selo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}
.avaliacoes-resumo {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.avaliacoes-logo svg {
  width: 24px;
  height: 24px;
  display: block;
}
.avaliacoes-nota {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.avaliacoes-estrelas {
  color: #f4b942;
  font-size: 14px;
  letter-spacing: 1px;
}
.avaliacoes-total {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}
.rating-badge {
  color: #f4b942;
  font-weight: 800;
  letter-spacing: 1px;
}
/* Etiqueta da plataforma: sem ela o visitante leria tudo como sendo do Google. */
.avaliacao-origem {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
/* A faixa sangra até as bordas: os cards precisam entrar e sair da tela,
   senão o movimento parece começar e terminar do nada. */
.avaliacoes-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding: 6px 24px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  /* Esmaece as pontas: sem isso os cards somem cortados na borda da tela
     e o movimento parece travar em vez de continuar. */
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 44px,
    #000 calc(100% - 44px),
    transparent
  );
}
.avaliacoes-track::-webkit-scrollbar {
  display: none;
}
.avaliacoes-track:active {
  cursor: grabbing;
}
.avaliacao {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}
.avaliacao-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
}
.avaliacao-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.avaliacao-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avaliacao-identidade {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}
.avaliacao-identidade strong {
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.avaliacao-linha {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avaliacao-linha .rating-badge {
  color: #f4b942;
  font-size: 14px;
  letter-spacing: 2px;
}
.avaliacao-data {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}
/* Altura fixa mantém a faixa estável; as avaliações têm tamanhos bem
   diferentes e sem o clamp os cards pulavam de altura ao rolar. */
.avaliacao-texto {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
  /* 6 linhas: cabe inteira a avaliacao mais longa e util da secao. Cortar em 5
     economizava espaco em branco mas mutilava justamente essa. */
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.avaliacoes-rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}
.avaliacoes-rodape.sem-carrossel .carousel-tools {
  display: none;
}
.avaliacoes-rodape .google-link {
  font-size: 15px;
}
/* Setas do carrossel, no mesmo desenho das do carrossel de tópicos. */
.arrow {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.arrow:hover {
  transform: translateY(-2px);
  border-color: #9fcabc;
  background: #fff;
}
.arrow:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .avaliacoes-nota {
    font-size: 28px;
  }
  .avaliacoes-resumo {
    justify-content: flex-start;
  }
}
@media (max-width: 760px) {
  .avaliacoes-track {
    grid-auto-columns: minmax(min(300px, 82%), 1fr);
    gap: 14px;
    margin-top: 28px;
    padding-inline: 20px;
  }
  .avaliacao {
    padding: 20px;
  }
  .avaliacao-identidade strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .avaliacoes-rodape {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .avaliacoes-rodape .carousel-tools {
    justify-content: center;
  }
}
.quote p {
  color: var(--muted);
}
.person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}
.person small {
  display: block;
  color: var(--muted);
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
}
.faq-intro p {
  color: var(--muted);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  list-style: none;
  padding: 22px 6px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
}
details[open] summary:after {
  content: "−";
}
details p {
  padding: 0 35px 22px 6px;
  color: var(--muted);
  font-size: 14px;
}
.cta {
  position: relative;
  padding: 72px 0;
  background:
    linear-gradient(
      135deg,
      rgba(23, 108, 89, 0.93) 0%,
      rgba(31, 76, 69, 0.88) 100%
    ),
    url("../../img/fachada-entardecer.webp") center 62% / cover no-repeat;
  color: #fff;
}
.cta-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.cta h2 {
  margin-bottom: 10px;
  color: #fff;
}
.cta p {
  margin: 0;
  color: #dcefe8;
}
.cta .btn {
  border-color: #fff;
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.18);
}
.cta .btn:hover {
  border-color: #e4f4ed;
  background: #e4f4ed;
  color: #084d3e;
  box-shadow: 0 17px 32px rgba(0, 0, 0, 0.24);
}
.whatsapp-icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
}
.cta-whatsapp {
  white-space: nowrap;
}
footer {
  padding: 72px 0 24px;
  background: #0f2430;
  color: #c6d4db;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 46px;
}
.footer-address-photo {
  display: block;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  transition: 0.2s;
}
.footer-address-photo:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}
.footer-address-photo img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
}
.footer-address-photo small {
  display: block;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #c6d4db;
}
.footer-brand {
  margin-bottom: 20px;
  color: #fff;
}
.footer-brand strong {
  font-size: 22px;
  font-family: "Playfair Display", serif;
}
.footer-grid h4 {
  color: #fff;
}
.footer-grid a {
  display: block;
  margin: 9px 0;
  font-size: 14px;
  color: #c6d4db;
}
.copyright {
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.whatsapp {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0b7a66 0%, #075e54 100%);
  color: #fff;
  box-shadow:
    0 14px 30px rgba(5, 88, 72, 0.38),
    0 0 0 7px rgba(37, 211, 102, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.whatsapp .whatsapp-icon {
  width: 31px;
  height: 31px;
}
.whatsapp:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 18px 34px rgba(5, 88, 72, 0.46),
    0 0 0 9px rgba(37, 211, 102, 0.15);
}
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s ease;
}
html.js .reveal.visible {
  opacity: 1;
  transform: none;
}
/* Ajustes responsivos e preferência de movimento reduzido ---------------- */

/* Cabeçalho compacto: a topbar recolhe e o burger assume a navegação. */
@media (max-width: 1120px) {
  :root {
    --site-header-height: 76px;
  }
  .topbar {
    display: none;
  }
  .nav {
    gap: 12px;
  }
  .brand img {
    width: min(200px, 48vw);
    height: auto;
    max-height: 56px;
  }
  .burger {
    display: grid;
    flex: 0 0 46px;
    place-items: center;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 1120px) {
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Em duas colunas, a borda vertical some no fim de cada linha. */
  .quick a:nth-child(2n) {
    border-right: 0;
  }
  .quick a:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 980px) {
  .intro-grid,
  .process-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .doctor-grid {
    grid-template-columns: 1fr;
  }
  .doctor {
    background: var(--ink);
  }
  .doctor-photo {
    min-height: 500px;
  }
  .quotes {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .quick-grid {
    border-radius: 20px;
  }
  .slide img {
    object-position: 68% center;
  }
  /*
   * Com o degradê mais leve, o véu claro do cartão não sustentava 4.5:1 no
   * parágrafo sobre os pontos mais claros das fotos. Um véu escuro reforça o
   * contraste só atrás do texto e mantém a imagem visível em volta.
   */
  .hero-content {
    padding: clamp(24px, 7vw, 32px);
    border-radius: 22px;
    background: rgba(10, 30, 43, 0.22);
  }
  .hero h1 {
    margin: 16px 0;
    font-size: clamp(1.9rem, 8.2vw, 2.75rem);
    line-height: 1.04;
  }
  .hero p {
    font-size: 16px;
    line-height: 1.65;
  }
  /* Em telas estreitas o texto fica sobre a imagem, não ao lado dela. */
  .slide:after {
    background: linear-gradient(
      180deg,
      rgba(10, 30, 43, 0.42) 0%,
      rgba(10, 30, 43, 0.62) 55%,
      rgba(10, 30, 43, 0.46) 100%
    );
  }
  .doctor-copy .btn,
  .intro-copy .btn {
    width: 100%;
  }
  .avaliacao-header strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  :root {
    --site-header-height: 72px;
  }
}
/* Coluna única: as bordas viram separadores horizontais. */
@media (max-width: 480px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .quick a {
    border-right: 0;
  }
  .quick a + a {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1180px);
  }
  .brand img {
    width: min(184px, 52vw);
    height: auto;
    max-height: 52px;
  }
  .brand-fallback strong {
    font-size: 17px;
  }
  .hero {
    min-height: 690px;
  }
  .hero-content {
    padding: 32px;
  }
  .hero p {
    font-size: 16px;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .quick {
    margin-top: -25px;
  }
  .quick a {
    padding: 18px;
  }
  .intro-grid {
    gap: 35px;
  }
  .photo-main {
    height: 420px;
  }
  .photo-small {
    width: 170px;
    height: 180px;
  }
  .stat {
    left: 12px;
  }
  .checks,
  .steps,
  .credentials {
    grid-template-columns: 1fr;
  }
  .focus-demo {
    height: 430px;
  }
  .doctor-copy {
    padding: 56px 24px;
  }
  .cta-grid {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .copyright {
    gap: 10px;
    flex-direction: column;
  }
  section {
    padding: 80px 0;
  }
  .cta-whatsapp {
    width: 100%;
  }
  .whatsapp {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Explicador interativo: como funcionam as cirurgias de miopia ------------ */
.myopia-explainer {
  --navy: #06375e;
  --blue: #087daf;
  --cyan: #27b8e6;
  --ice: #edf9fd;
  --line: #d5ebf4;
  --muted: #607d92;
  --green: #23b981;
  --shadow: 0 28px 75px rgba(8, 84, 120, 0.14);
  position: relative;
  overflow: hidden;
  padding: 76px 20px 88px;
  color: var(--navy);
  background: linear-gradient(145deg, #fff 12%, #f5fcff 61%, #e9f8fd);
}
.myopia-explainer:before,
.myopia-explainer:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.myopia-explainer:before {
  width: 540px;
  height: 540px;
  left: -320px;
  top: 130px;
  background: radial-gradient(circle, #64cff340, transparent 68%);
}
.myopia-explainer:after {
  width: 580px;
  height: 580px;
  right: -330px;
  bottom: -300px;
  background: radial-gradient(circle, #2caedb35, transparent 68%);
}

.myopia-explainer .hero {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 0;
  max-width: 820px;
  margin: 0 auto 38px;
  overflow: visible;
  background: none;
  text-align: center;
}
.myopia-explainer .hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.myopia-explainer .hero .eyebrow:before {
  content: "";
  width: 23px;
  height: 2px;
  background: var(--cyan);
}
.myopia-explainer .hero h2 {
  max-width: 780px;
  margin: 13px auto 14px;
  color: var(--navy);
  font-size: clamp(38px, 5.2vw, 65px);
  line-height: 1.02;
  letter-spacing: -0.048em;
}
.myopia-explainer .hero h2 span {
  color: #1498cf;
}
.myopia-explainer .hero p {
  max-width: 680px;
  margin: auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.myopia-explainer .tabs {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.myopia-explainer .tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffffc9;
  color: #668398;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s;
}
.myopia-explainer .tab span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #ebf7fb;
  color: #6d99ac;
  font-size: 10px;
}
.myopia-explainer .tab:hover {
  transform: translateY(-2px);
  border-color: #81d0ec;
}
.myopia-explainer .tab.active {
  border-color: transparent;
  background: linear-gradient(135deg, #0875a9, #1aa6d9);
  color: #fff;
  box-shadow: 0 13px 27px #0b86bb35;
}
.myopia-explainer .tab.active span {
  background: #ffffff25;
  color: #fff;
}
.myopia-explainer .tab:focus-visible,
.myopia-explainer .control:focus-visible,
.myopia-explainer .step:focus-visible {
  outline: 3px solid #74d8f4;
  outline-offset: 3px;
}

.myopia-explainer .app {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: auto;
  overflow: hidden;
  border: 1px solid #d7ebf3;
  border-radius: 30px;
  background: #ffffffdf;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.myopia-explainer .app__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 22px;
  border-bottom: 1px solid #e1eff5;
  background: #fbfeff;
}
.myopia-explainer .status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #52758b;
  font-size: 12px;
  font-weight: 750;
}
.myopia-explainer .status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px #23b9811e;
}
.myopia-explainer .legend {
  display: flex;
  gap: 15px;
  color: #829aaa;
  font-size: 10px;
}
.myopia-explainer .legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.myopia-explainer .legend i {
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: var(--cyan);
}
.myopia-explainer .legend span:last-child i {
  background: #a8dceb;
}
.myopia-explainer .app__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  min-height: 590px;
}

.myopia-explainer .visual {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  background: radial-gradient(circle at 52% 48%, #effbff, #dff4fb 56%, #cfeaf4);
}
.myopia-explainer .visual:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(#55bee91b 1px, transparent 1px),
    linear-gradient(90deg, #55bee91b 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 20%,
    #000 80%,
    transparent
  );
}
.myopia-explainer .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.myopia-explainer .sclera {
  fill: #fff;
  stroke: #a8d8e7;
  stroke-width: 2;
  filter: drop-shadow(0 18px 24px #1f7da629);
}
.myopia-explainer .iris {
  fill: url(#irisGradient);
  filter: drop-shadow(0 8px 15px #006b9d55);
}
.myopia-explainer .iris-detail {
  fill: none;
  stroke: #93e7ff;
  stroke-width: 2;
  stroke-dasharray: 3 8;
  transform-origin: 330px 283px;
  animation: mx-spin 16s linear infinite;
}
.myopia-explainer .pupil {
  fill: #03243a;
}
.myopia-explainer .shine {
  fill: #fff;
  opacity: 0.84;
}
.myopia-explainer .cornea {
  fill: url(#corneaGradient);
  stroke: #5fc7e7;
  stroke-width: 2;
}
.myopia-explainer .lens {
  fill: #d1f3fb77;
  stroke: #6bc7df;
  stroke-width: 2;
}
.myopia-explainer .retina {
  fill: none;
  stroke: #85cfdf;
  stroke-width: 5;
}
.myopia-explainer .optic {
  fill: none;
  stroke: #a6dcea;
  stroke-width: 13;
  stroke-linecap: round;
}
.myopia-explainer .anatomy-label {
  font:
    700 11px Inter,
    Arial;
  fill: #5a7c91;
}
.myopia-explainer .call-line {
  fill: none;
  stroke: #75bed7;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}
.myopia-explainer .anatomy {
  transition: 0.4s;
}
.myopia-explainer .effect {
  opacity: 0;
  transition: 0.55s ease;
}
.myopia-explainer .effect.visible {
  opacity: 1;
}

.myopia-explainer .laser-beam {
  fill: none;
  stroke: #25c8ef;
  stroke-width: 4;
  stroke-dasharray: 10 8;
  animation: mx-beam 0.7s linear infinite;
}
.myopia-explainer .laser-glow {
  fill: none;
  stroke: #55dcfa;
  stroke-width: 22;
  opacity: 0.16;
}
.myopia-explainer .laser-dot {
  fill: #fff;
  stroke: #24bde5;
  stroke-width: 5;
  animation: mx-pulse 1.1s ease infinite;
}
.myopia-explainer .surface {
  fill: none;
  stroke: #55cce9;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 12 8;
}
.myopia-explainer .surface.removed {
  opacity: 0.2;
  stroke-width: 3;
}
.myopia-explainer .ablation {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 0 170;
  animation: mx-sweep 2.2s ease infinite;
}
.myopia-explainer .bandage {
  fill: #b9eff988;
  stroke: #fff;
  stroke-width: 3;
  opacity: 0.9;
}
.myopia-explainer .flap {
  fill: #8edff3a8;
  stroke: #fff;
  stroke-width: 2;
  transform-origin: 430px 267px;
  transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.myopia-explainer .flap.open {
  transform: rotate(-25deg) translateY(-42px);
}
.myopia-explainer .flap.final {
  opacity: 0.42;
}
.myopia-explainer .cut {
  fill: none;
  stroke: #effdff;
  stroke-width: 5;
  stroke-dasharray: 9 7;
}
.myopia-explainer .lenticule {
  fill: #5fd3eea5;
  stroke: #fff;
  stroke-width: 2;
  transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.myopia-explainer .lenticule.extract {
  transform: translate(105px, -25px) scale(0.55);
  opacity: 0;
}
.myopia-explainer .microcut {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
}
.myopia-explainer .path {
  fill: none;
  stroke: #5bc9e7;
  stroke-width: 3;
  stroke-dasharray: 7 7;
  animation: mx-beam 0.8s linear infinite;
}
.myopia-explainer .icl-lens {
  fill: #58caedaa;
  stroke: #fff;
  stroke-width: 2;
  transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center;
}
.myopia-explainer .icl-lens.outside {
  transform: translate(220px, -75px) scale(0.28);
  opacity: 0.35;
}
.myopia-explainer .icl-lens.mid {
  transform: translate(74px, -15px) scale(0.7);
}
.myopia-explainer .guide {
  fill: none;
  stroke: #5fc6e3;
  stroke-width: 3;
  stroke-dasharray: 7 8;
}
.myopia-explainer .rays {
  fill: none;
  stroke: #ffcb4b;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.75;
}
.myopia-explainer .rays.before {
  filter: blur(1.5px);
}
.myopia-explainer .focus-point {
  fill: #ffcb4b;
  filter: drop-shadow(0 0 8px #ffcb4b);
}

.myopia-explainer .floating-label {
  position: absolute;
  z-index: 2;
  padding: 10px 13px;
  border: 1px solid #fff;
  border-radius: 11px;
  background: #ffffffdd;
  color: #237293;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 22px #216d8c1b;
  transition: 0.35s;
}
.myopia-explainer .floating-label:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px #23b9811f;
}
.myopia-explainer .label-main {
  left: 20px;
  top: 20px;
}
.myopia-explainer .counter {
  position: absolute;
  z-index: 2;
  right: 20px;
  top: 20px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #073d68e8;
  color: #fff;
  font:
    800 11px ui-monospace,
    monospace;
  letter-spacing: 0.08em;
}
.myopia-explainer .compare {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.myopia-explainer .compare div {
  padding: 11px 13px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: #ffffffc9;
  box-shadow: 0 8px 18px #29748f18;
}
.myopia-explainer .compare b {
  display: block;
  color: #2e7592;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.myopia-explainer .compare span {
  display: block;
  margin-top: 3px;
  color: #668295;
  font-size: 11px;
}
.myopia-explainer .compare .corrected {
  background: #eafff8d9;
}
.myopia-explainer .compare .corrected b {
  color: #168a64;
}

.myopia-explainer .panel {
  display: flex;
  flex-direction: column;
  padding: 44px 38px;
  background: #fff;
}
.myopia-explainer .procedure-kicker {
  margin: 0 0 8px;
  color: #1697cc;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.myopia-explainer .panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.myopia-explainer .panel__intro {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.myopia-explainer .steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 0 0 24px;
}
.myopia-explainer .step {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: 0.24s;
}
.myopia-explainer .step:after {
  content: "";
  position: absolute;
  left: 28px;
  top: 45px;
  width: 1px;
  height: 16px;
  background: #d8eaf1;
}
.myopia-explainer .step:last-child:after {
  display: none;
}
.myopia-explainer .step__number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eaf7fb;
  color: #4889a4;
  font-size: 11px;
  font-weight: 850;
}
.myopia-explainer .step strong {
  display: block;
  color: #41677e;
  font-size: 13px;
}
.myopia-explainer .step small {
  display: block;
  margin-top: 2px;
  color: #8aa0ae;
  font-size: 11px;
  line-height: 1.35;
}
.myopia-explainer .step:hover {
  border-color: #e3f3f9;
  background: #f7fdff;
}
.myopia-explainer .step.active {
  border-color: #cfeaf4;
  background: #f1fbfe;
}
.myopia-explainer .step.active .step__number {
  background: linear-gradient(135deg, #168dbf, #23b8e5);
  color: #fff;
  box-shadow: 0 7px 13px #148ebd35;
}
.myopia-explainer .step.active strong {
  color: #0873a3;
}
.myopia-explainer .tip {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid #d9edf5;
  border-radius: 14px;
  background: #f4fbfe;
}
.myopia-explainer .tip i {
  flex: 0 0 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #24b4e1;
  color: #fff;
  font:
    800 13px Georgia,
    serif;
}
.myopia-explainer .tip p {
  margin: 0;
  color: #54778c;
  font-size: 12px;
  line-height: 1.5;
}

.myopia-explainer .controls {
  display: grid;
  grid-template-columns: 44px 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid #dfedf3;
  background: #fbfeff;
}
.myopia-explainer .control {
  height: 40px;
  border: 1px solid #d8ebf3;
  border-radius: 11px;
  background: #fff;
  color: #197ea8;
  font-weight: 850;
  cursor: pointer;
  transition: 0.2s;
}
.myopia-explainer .control:hover {
  transform: translateY(-1px);
  border-color: #8bd4ed;
}
.myopia-explainer .control.primary {
  border: 0;
  background: linear-gradient(135deg, #0878ad, #1aadde);
  color: #fff;
  box-shadow: 0 8px 18px #0c89bb30;
}
.myopia-explainer .progress-wrap {
  padding: 0 12px;
}
.myopia-explainer .progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #7992a2;
  font-size: 10px;
  font-weight: 750;
}
.myopia-explainer .progress {
  height: 5px;
  overflow: hidden;
  border-radius: 6px;
  background: #deedf3;
}
.myopia-explainer .progress i {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #1292c6, #2bc3eb);
  transition: width 0.5s ease;
}
.myopia-explainer .disclaimer {
  position: relative;
  z-index: 1;
  width: min(850px, 100%);
  margin: 25px auto 0;
  text-align: center;
  color: #7c95a5;
  font-size: 12px;
  line-height: 1.6;
}

@keyframes mx-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes mx-beam {
  to {
    stroke-dashoffset: -36;
  }
}
@keyframes mx-pulse {
  50% {
    r: 13;
    opacity: 0.55;
  }
}
@keyframes mx-sweep {
  0% {
    stroke-dasharray: 0 170;
  }
  65%,
  100% {
    stroke-dasharray: 170 0;
  }
}

@media (max-width: 900px) {
  .myopia-explainer .app__body {
    grid-template-columns: 1fr;
  }
  .myopia-explainer .visual {
    min-height: 520px;
  }
  .myopia-explainer .panel {
    padding: 34px 28px;
  }
  .myopia-explainer .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .myopia-explainer .step:after {
    display: none;
  }
}

@media (max-width: 620px) {
  .myopia-explainer {
    padding: 48px 12px 62px;
  }
  .myopia-explainer .hero {
    text-align: left;
  }
  .myopia-explainer .tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 7px;
  }
  .myopia-explainer .tab {
    flex: 0 0 105px;
  }
  .myopia-explainer .app {
    border-radius: 22px;
  }
  .myopia-explainer .app__top {
    padding: 12px;
  }
  .myopia-explainer .legend {
    display: none;
  }
  .myopia-explainer .visual {
    min-height: 390px;
  }
  .myopia-explainer .scene {
    transform: scale(1.2);
    transform-origin: center;
  }
  .myopia-explainer .anatomy-label,
  .myopia-explainer .call-line {
    display: none;
  }
  .myopia-explainer .floating-label {
    left: 12px;
    top: 12px;
  }
  .myopia-explainer .counter {
    right: 12px;
    top: 12px;
  }
  .myopia-explainer .compare {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .myopia-explainer .compare span {
    font-size: 9px;
  }
  .myopia-explainer .panel {
    padding: 28px 20px;
  }
  .myopia-explainer .steps {
    grid-template-columns: 1fr;
  }
  .myopia-explainer .controls {
    grid-template-columns: 40px 40px 1fr 40px;
    padding: 12px 10px;
  }
  .myopia-explainer .progress-wrap {
    padding: 0 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .myopia-explainer *,
  .myopia-explainer *:before,
  .myopia-explainer *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
