/* Supreme Apple — design system
   Linguagem visual inspirada no apple.com (tipografia grande, tiles, nav translúcida),
   com a identidade da loja: vermelho "box logo" + preto. */

:root {
  --red: #e3121b;
  --red-hover: #c80e16;
  --red-soft: #fff1f1;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --bg: #fff;
  --bg-2: #f5f5f7;
  --bg-dark: #000;
  --bg-dark-2: #161617;
  --on-dark: #f5f5f7;
  --on-dark-muted: #a1a1a6;
  --ok: #1d8a3a;
  --radius-tile: 28px;
  --radius-card: 18px;
  --nav-h: 48px;
  --maxw: 1180px;
  --gutter: max(clamp(16px, 4vw, 32px), env(safe-area-inset-left), env(safe-area-inset-right));
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 14px 40px rgba(0, 0, 0, 0.12);
  --surface: #fff;
  --field-line: #86868b;
  --fill-hover: #e8e8ed;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-2: rgba(251, 251, 253, 0.86);
  --glass-line: rgba(0, 0, 0, 0.08);
  --red-text: #d70015;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* grade de 8 pt */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
  --tap: 44px;
  color-scheme: light dark;
}

/* Modo escuro automático: segue o ajuste do celular/computador da pessoa */
@media (prefers-color-scheme: dark) {
  :root:not(.force-light) {
    --ink: #f5f5f7;
    --ink-2: #d1d1d6;
    --muted: #a1a1a6;
    --line: #38383a;
    --bg: #000;
    --bg-2: #1c1c1e;
    --surface: #2c2c2e;
    --field-line: #636366;
    --fill-hover: #3a3a3c;
    --glass: rgba(22, 22, 23, 0.72);
    --glass-2: rgba(28, 28, 30, 0.86);
    --glass-line: rgba(255, 255, 255, 0.1);
    --red-text: #ff6961;
    --red-soft: rgba(255, 69, 58, 0.16);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 14px 40px rgba(0, 0, 0, 0.6);
  }
  :root:not(.force-light) .section:not(.alt) .perk,
  :root:not(.force-light) .section:not(.alt) .panel { background: var(--bg-2); }
  :root:not(.force-light) .paddle { background: rgba(66, 66, 69, 0.72); color: rgba(255, 255, 255, 0.8); }
  :root:not(.force-light) .hl-dots, :root:not(.force-light) .hl-play { background: rgba(66, 66, 69, 0.72); color: #fff; }
  :root:not(.force-light) .hl-dot span { background: rgba(255, 255, 255, 0.42); }
  :root:not(.force-light) .hl-dot i { background: #f5f5f7; }
  :root:not(.force-light) .badge.green { background: rgba(48, 209, 88, 0.16); color: #30d158; }
  :root:not(.force-light) .battery-bar i { background: #30d158; }
  :root:not(.force-light) .ribbon { background: #1c1c1e; }
  :root:not(.force-light) img.logo-img-lg { filter: none; }
  :root:not(.force-light) .pcard-swatches i, :root:not(.force-light) .swatch label { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
}
.force-light { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 56px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px, como o apple.com */
  line-height: 1.47;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { min-width: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.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; }

/* ---------- Tipografia ---------- */
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--red-text); margin: 0 0 8px; }
.display { font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin: 0; }
.h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.07; letter-spacing: -0.028em; font-weight: 700; margin: 0; }
.h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.022em; font-weight: 700; margin: 0; }
.h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.14; letter-spacing: -0.016em; font-weight: 600; margin: 0; }
.lead { font-size: clamp(1.1875rem, 2vw, 1.5rem); line-height: 1.33; letter-spacing: -0.012em; font-weight: 400; margin: 6px 0 0; color: var(--ink-2); }
.small { font-size: 0.8125rem; line-height: 1.38; color: var(--muted); letter-spacing: -0.004em; }
.on-dark .lead, .on-dark .small { color: var(--on-dark-muted); }
.on-dark, .hl-slide, .pdp, .brand-hero, .flyout { --red-text: #ff6961; --muted: var(--on-dark-muted); }
/* destaque em texto: vermelho da marca, sem degradê multicolor */
.gradient-text { color: var(--red-text); }

/* ---------- Botões ---------- */
.btn {
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 100ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-outline { border-color: currentColor; color: var(--red-text); }
.btn-outline:hover { background: var(--red); border-color: var(--red); color: #fff; }
.on-dark .btn-outline { color: #fff; }
.on-dark .btn-outline:hover { background: #fff; border-color: #fff; color: #000; }
.btn-ghost { background: var(--bg-2); color: var(--ink); }
.btn-ghost:hover { background: var(--fill-hover); }
.btn-wa { background: #147d3f; color: #fff; }
.btn-wa:hover { background: #0f6a34; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.125rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.link { color: var(--red-text); font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link::after { content: " ›"; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: center; margin-top: 18px; }

/* ---------- Logo (box logo da loja, recriado em CSS) ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1; user-select: none; }
.logo-box {
  background: var(--red); color: #fff; font-weight: 800; font-style: italic;
  font-size: 15px; letter-spacing: -0.04em; padding: 3px 7px 4px; border-radius: 1px;
}
.logo-sub { color: currentColor; font-weight: 700; font-style: italic; font-size: 9.5px; letter-spacing: -0.02em; margin-top: 2px; }
.logo-lg .logo-box { font-size: clamp(40px, 9vw, 84px); padding: 0.06em 0.16em 0.1em; }
.logo-lg .logo-sub { font-size: clamp(22px, 4.6vw, 42px); margin-top: 6px; }

/* ---------- Nav global ---------- */
.globalnav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); color: #e8e8ed; }
/* O vidro fica num pseudo-elemento: a nav não vira "backdrop root" nem containing block do menu fixo */
.globalnav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(22, 22, 23, 0.8);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background-color 240ms ease;
}
.nav-open .globalnav::before { background: #161617; }
.globalnav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.8125rem; letter-spacing: -0.01em; opacity: 0.85; transition: opacity 160ms ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 500; color: #fff; background: var(--red); padding: 6px 12px; border-radius: 999px; transition: background-color 160ms ease; }
.nav-cta:hover { background: var(--red-hover); }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -12px; border: 0; background: transparent; position: relative; }
.nav-toggle span { position: absolute; left: 14px; width: 17px; height: 1.5px; background: #e8e8ed; border-radius: 2px; transition: transform 300ms var(--ease-out), top 300ms var(--ease-out); }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 833px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; height: calc(100dvh - var(--nav-h));
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px;
    background: #161617; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 240ms ease, transform 320ms var(--ease-out), visibility 0s linear 320ms;
  }
  .nav-open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity 240ms ease, transform 320ms var(--ease-out); }
  .nav-links a { display: block; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; padding: 8px 0; opacity: 1; }
  .nav-links li.nav-cta-item { margin-top: 16px; }
  .nav-links .nav-cta { display: inline-flex; font-size: 1rem; padding: 12px 20px; }
  .nav-open { overflow: hidden; }
}

/* Em páginas com subnav, a nav global rola e a subnav é que fica presa (como no apple.com) */
body:has(.localnav) .globalnav { position: relative; }

/* Faixa de aviso abaixo da nav (como o "ribbon" do apple.com) */
.ribbon { margin: 0; background: var(--bg-2); text-align: center; font-size: 0.875rem; padding: 14px var(--gutter); color: var(--ink-2); }
.ribbon a { color: var(--red-text); }
.ribbon a:hover { text-decoration: underline; }

/* Subnav local (tipo "iPhone 18 Pro  Visão geral  Especificações  Comprar") */
.localnav {
  position: sticky; top: 0; z-index: 90; height: 52px;
  background: var(--glass); border-bottom: 1px solid var(--glass-line);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.localnav.dark { background: rgba(22, 22, 23, 0.72); border-color: rgba(255, 255, 255, 0.1); color: #f5f5f7; }
.localnav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.localnav-title { font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.02em; }
.localnav-links { display: flex; align-items: center; gap: 22px; font-size: 0.75rem; }
.localnav-links a:not(.btn) { opacity: 0.8; }
.localnav-links a:not(.btn):hover { opacity: 1; }
.localnav .btn { min-height: 28px; padding: 0 12px; font-size: 0.75rem; }
@media (max-width: 600px) { .localnav-links a:not(.btn) { display: none; } }

/* ---------- Hero / seções em tela cheia (como as faixas da home da Apple) ---------- */
.hero {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(44px, 7vw, 64px) 0 0; min-height: clamp(560px, 82vh, 760px);
  display: flex; flex-direction: column; align-items: center;
}
.hero.on-dark { background: var(--bg-dark); color: var(--on-dark); }
.hero.alt { background: var(--bg-2); }
.hero-copy { position: relative; z-index: 2; padding-inline: var(--gutter); }
.hero-media { position: relative; z-index: 1; flex: 1; width: min(100%, 760px); display: flex; align-items: flex-end; justify-content: center; margin-top: clamp(20px, 4vw, 40px); }
.hero-media .device { width: min(86%, 560px); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35)); }
.hero-media .device svg { max-height: min(56vh, 520px); margin-inline: auto; }
.js .hero-rise { animation: hero-rise 1400ms var(--ease-out) 150ms both; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(60px) scale(0.96); } to { opacity: 1; transform: none; } }

/* Hero com o logo grande da loja */
.brand-hero { background: #000; color: #fff; text-align: center; padding: clamp(56px, 10vw, 120px) var(--gutter) clamp(48px, 8vw, 96px); position: relative; overflow: hidden; }
.brand-hero > * { position: relative; }

/* ---------- Grid de tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; }
.tile {
  position: relative; overflow: hidden; border-radius: 0; min-height: clamp(480px, 52vw, 580px);
  background: var(--bg-2); text-align: center; padding: clamp(36px, 5vw, 52px) 20px 0;
  display: flex; flex-direction: column; align-items: center;
}
.tile.on-dark { background: var(--bg-dark); color: var(--on-dark); }
.tile.red { background: var(--red); color: #fff; }
.tile.red .lead { color: #fff; }
.tile.red .btn-primary { background: #fff; color: var(--red); }
.tile.red .btn-outline { color: #fff; }
.tile .h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.tile .lead { font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); }
.tile .actions { margin-top: 14px; }
.tile-media { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; padding-top: 24px; }
.tile-media .device { width: min(64%, 330px); transition: transform 700ms var(--ease-out); }
.tile-media .device.wide { width: min(84%, 440px); margin-bottom: 40px; }
.tile-media .device.watch { width: min(42%, 200px); margin-bottom: 30px; }
@media (hover: hover) { .tile:hover .tile-media .device { transform: translateY(-6px) scale(1.015); } }
@media (max-width: 833px) {
  .tiles { grid-template-columns: 1fr; padding: 12px 0; }
}

/* ---------- Seções ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section.alt { background: var(--bg-2); }
.section.on-dark { background: var(--bg-dark); color: var(--on-dark); }
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }

/* Faixa de números (prova social) */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.stat-num { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.stat-label { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }
.on-dark .stat-label { color: var(--on-dark-muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }

/* Cards de benefícios ("Por que comprar aqui") — estilo "Why Apple is the best place to buy" */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 28px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
.scroller-wrap { position: relative; }
.scroller-wrap .container { padding: 0; }
@media (min-width: 1244px) { .scroller { padding-inline: calc((100vw - var(--maxw)) / 2); } }
.perk {
  background: var(--surface); border-radius: var(--radius-card); padding: 28px 26px 30px; min-height: 220px;
  box-shadow: var(--shadow-card); transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
  display: flex; flex-direction: column; gap: 10px;
}
.section:not(.alt) .perk { background: var(--bg-2); box-shadow: none; }
@media (hover: hover) { .perk:hover { transform: scale(1.015); box-shadow: var(--shadow-hover); } }
.perk-icon { width: 40px; height: 40px; color: var(--red); }
.perk h3 { margin: 6px 0 0; font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.016em; }
.perk p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }

/* ---------- Cards de produto (loja) ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px;
  font-size: 0.875rem; font-weight: 500; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.pcard {
  position: relative; background: var(--surface); border-radius: var(--radius-card); padding: 22px 22px 24px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-card);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
@media (hover: hover) { .pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); } }
.pcard-media { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; margin: 4px 0 14px; }
.pcard-media .device { width: 62%; height: 100%; display: flex; align-items: center; justify-content: center; }
.pcard-media .device svg { max-height: 100%; width: auto; }
.pcard-media .device.wide { width: 90%; }
.pcard-media .device.watch { width: 46%; }
.pcard-swatches { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; min-height: 12px; }
.pcard-swatches i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.pcard h3 { font-size: 1.25rem; letter-spacing: -0.016em; margin: 0; line-height: 1.2; }
.pcard .pcard-sub { font-size: 0.875rem; color: var(--muted); margin: 4px 0 12px; }
.pcard .price { margin-top: auto; font-size: 1rem; }
.pcard .price strong { font-size: 1.1875rem; letter-spacing: -0.01em; }
.pcard .row { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 16px; }
.pcard .btn { min-height: 36px; padding: 0 16px; font-size: 0.9375rem; }
.pcard a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pcard .btn { position: relative; z-index: 1; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em; padding: 4px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red-text); }
.badge.green { background: #e9f7ee; color: var(--ok); }
.badge.dark { background: var(--ink); color: var(--bg); }
.badge.gray { background: var(--bg-2); color: var(--ink-2); }
.pcard .badge { position: absolute; top: 16px; left: 16px; }
.battery { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--ink-2); }
.battery-bar { width: 26px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; padding: 1px; }
.battery-bar::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: currentColor; border-radius: 0 1px 1px 0; }
.battery-bar i { display: block; height: 100%; background: var(--ok); border-radius: 1px; }

/* ---------- Configurador (comprar) ---------- */
.buy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.buy-media { position: sticky; top: calc(var(--nav-h) + 24px); background: var(--bg-2); border-radius: var(--radius-tile); aspect-ratio: 1 / 1.05; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.buy-media .device { width: min(70%, 420px); transition: opacity 220ms ease; }
.buy-media .device.wide { width: 86%; }
.buy-media .device.watch { width: 48%; }
.buy-step { padding: 28px 0; border-top: 1px solid var(--line); }
.buy-step:first-of-type { border-top: 0; padding-top: 8px; }
.buy-step h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 4px; line-height: 1.15; }
.buy-step h2 span { color: var(--muted); font-weight: 600; }
.buy-step .small { margin: 0 0 16px; }
.options { display: grid; gap: 12px; }
.options.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px;
  border: 1px solid var(--field-line); border-radius: 14px; padding: 14px 18px; cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.opt label:hover { border-color: var(--ink); }
.opt input:checked + label { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.opt input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 3px; }
.opt label strong { font-weight: 600; font-size: 1.0625rem; }
.opt label small { display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 400; margin-top: 2px; }
.opt label .opt-price { text-align: right; font-size: 0.875rem; color: var(--ink-2); white-space: nowrap; }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch label { display: block; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); position: relative; }
.swatch label::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; transition: border-color 140ms ease; }
.swatch input:checked + label::after { border-color: var(--red); }
.swatch input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 6px; }
.color-name { margin-top: 14px; font-size: 0.9375rem; color: var(--ink-2); }

.summary { position: sticky; bottom: 0; z-index: 50; background: var(--glass-2); border-top: 1px solid var(--glass-line); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.summary .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px calc(14px + env(safe-area-inset-bottom)); }
.summary-text { min-width: 0; }
.summary-text strong { display: block; font-size: 1.0625rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-text span { font-size: 0.875rem; color: var(--muted); }
@media (max-width: 833px) {
  .buy { grid-template-columns: 1fr; }
  .buy-media { position: relative; top: 0; aspect-ratio: 1 / 0.9; }
  .options.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .has-summary .wa-float { display: none; }
  .summary .container { flex-direction: column; align-items: stretch; gap: 10px; }
  .summary .btn { width: 100%; }
}

/* ---------- Formulários ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 52px; border: 1px solid var(--field-line); border-radius: 12px; padding: 12px 16px; background: var(--surface);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 18, 27, 0.15); }
.field .hint { font-size: 0.8125rem; color: var(--muted); margin-top: 6px; }
.field input[type="range"] { min-height: 0; padding: 0; border: 0; accent-color: var(--red); }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row output { min-width: 52px; font-weight: 600; text-align: right; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--ink-2); }
.check input { margin-top: 3px; accent-color: var(--red); width: 18px; height: 18px; flex: none; }
@media (max-width: 600px) { .form .two { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border-radius: var(--radius-tile); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-card); }
.section:not(.alt) .panel { background: var(--bg-2); box-shadow: none; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 833px) { .split { grid-template-columns: 1fr; } }

/* Serviços (assistência) */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { background: var(--surface); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 8px; }
.service svg { width: 36px; height: 36px; color: var(--red); }
.service h3 { margin: 8px 0 0; font-size: 1.25rem; letter-spacing: -0.016em; }
.service p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }
.service .from { margin-top: auto; padding-top: 10px; font-size: 0.875rem; color: var(--muted); }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* Passos numerados */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 1.1875rem; letter-spacing: -0.014em; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }
.on-dark .step p { color: var(--on-dark-muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Depoimentos */
.quote { background: var(--surface); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 14px; min-height: 230px; }
.quote p { margin: 0; font-size: 1.0625rem; line-height: 1.45; }
.quote footer { margin-top: auto; font-size: 0.875rem; color: var(--muted); }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 0.9375rem; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.014em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform 260ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 680px; }

/* Comparador */
.compare { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; text-align: center; }
.compare-col .device { width: min(56%, 160px); margin: 0 auto 18px; }
.compare-col h3 { margin: 0; font-size: 1.3125rem; letter-spacing: -0.016em; }
.compare-col .small { margin: 4px 0 16px; }
.compare-col ul { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.compare-col li { padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-2); }
.compare-col li b { display: block; color: var(--ink); font-size: 1rem; }
@media (max-width: 760px) { .compare { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 76%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; } .compare-col { scroll-snap-align: start; } }

/* ---------- Rodapé ---------- */
.footer { background: var(--bg-2); color: var(--muted); font-size: 0.75rem; line-height: 1.5; padding: 40px 0 28px; }
.footer a:hover { text-decoration: underline; color: var(--ink); }
.footer-notes { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.footer-notes p { margin: 0 0 8px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 24px 0; }
.footer-cols h3 { margin: 0 0 10px; font-size: 0.75rem; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Botão flutuante do WhatsApp */
.wa-float {
  position: fixed; right: calc(18px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 120; width: 58px; height: 58px; border-radius: 50%;
  background: #1fa855; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(31, 168, 85, 0.4); transition: transform 200ms var(--ease-out);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float:active { transform: scale(0.95); }
.wa-float svg { width: 30px; height: 30px; }
.has-summary .wa-float { bottom: 96px; }

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tile:hover .tile-media .device, .perk:hover, .pcard:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .globalnav::before { background: #161617; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .localnav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .localnav.dark { background: #161617; }
  .summary { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* =========================================================
   Motions estilo apple.com (ver assets/js/motion.js)
   ========================================================= */
body { transition: background-color 700ms ease, color 700ms ease; }
.w-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w-in { display: inline-block; will-change: transform; }
.fill-text {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, var(--red-text) 50%, var(--fill-base, #424245) 50%);
  background-size: 200% 100%; background-position: 100% 0;
}
.sem-motion .fill-text { background-position: 0 0; }

/* Logo da loja (imagem enviada pelo cliente) */
.logo-img { display: block; height: 30px; width: auto; }
.logo-img-lg { display: block; width: min(78vw, 520px); height: auto; margin: 0 auto; }

/* Menu que se expande (desktop) */
.flyout { position: absolute; left: 0; right: 0; top: var(--nav-h); z-index: 99; background: #161617; color: #e8e8ed; overflow: hidden; height: 0; transition: height 420ms var(--ease-out); }
.flyout-inner { padding: 36px 0 56px; }
.flyout-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.flyout h4 { margin: 0 0 14px; font-size: 0.75rem; font-weight: 500; color: #86868b; letter-spacing: 0; }
.flyout ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flyout .big a { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: #f5f5f7; }
.flyout a { font-size: 0.8125rem; color: #e8e8ed; }
.flyout a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.flyout li { opacity: 0; transform: translateY(-6px); transition: opacity 260ms ease, transform 420ms var(--ease-out); }
.flyout.open li { opacity: 1; transform: none; }
.flyout-scrim { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 98; background: rgba(232, 232, 237, 0.3); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; }
.flyout-scrim.open { opacity: 1; visibility: visible; transition: opacity 300ms ease; }
@media (max-width: 833px) { .flyout, .flyout-scrim { display: none; } }

/* Submenu no menu mobile */
.nav-links .has-sub { display: flex; align-items: center; justify-content: space-between; }
.nav-sub-btn, .nav-sub { display: none; }
@media (max-width: 833px) {
  .nav-sub-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: #86868b; font-size: 1.25rem; }
  .nav-sub { display: block; position: fixed; inset: var(--nav-h) 0 0 0; background: #161617; padding: 12px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform 380ms var(--ease-out), visibility 0s linear 380ms; z-index: 2; }
  .nav-sub.open { transform: none; visibility: visible; transition: transform 380ms var(--ease-out); }
  .nav-sub .voltar { border: 0; background: none; color: #86868b; font-size: 0.9375rem; padding: 8px 0 16px; }
  .nav-sub h4 { color: #86868b; font-size: 0.875rem; font-weight: 500; margin: 6px 0 8px; }
  .nav-sub ul { list-style: none; margin: 0 0 18px; padding: 0; }
  .nav-sub a { display: block; min-height: var(--tap); padding: 6px 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: #f5f5f7; }
  .nav-sub .small-links a { font-size: 1rem; font-weight: 500; color: #e8e8ed; padding: 10px 0; }
  .nav-sub .voltar { min-height: var(--tap); }
}

/* Rolagem narrativa */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); }
.story-media { position: sticky; top: calc(var(--nav-h) + 40px); height: calc(100vh - var(--nav-h) - 80px); height: calc(100svh - var(--nav-h) - 80px); display: flex; align-items: center; justify-content: center; }
.story-media .device { height: min(78%, 600px); transition: transform 700ms var(--ease-out), opacity 300ms ease; }
.story-media .device svg { height: 100%; width: auto; margin: 0 auto; }
.story-steps { padding: 20vh 0; }
.story-step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.22; transition: opacity 500ms ease; }
.story-step.ativo { opacity: 1; }
.story-step h3 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; }
.story-step p { margin: 0; font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); color: var(--on-dark-muted); max-width: 460px; }
.sem-motion .story-step { opacity: 1; }
@media (max-width: 833px) {
  .story { grid-template-columns: 1fr; }
  .story-media { top: calc(var(--nav-h) + 10px); height: 46svh; z-index: 0; }
  .story-steps { padding: 0 0 20vh; position: relative; z-index: 1; }
  .story-step { min-height: 60vh; justify-content: flex-end; padding-bottom: 6vh; }
  .story-step > * { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 4px 0; }
}

/* Carrossel de destaques */
.hl-carousel { position: relative; }
.hl-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 max(var(--gutter), calc((100vw - 980px) / 2)); }
.hl-track::-webkit-scrollbar { display: none; }
.hl-slide { flex: 0 0 min(86vw, 980px); scroll-snap-align: center; border-radius: var(--radius-tile); background: var(--bg-dark-2); color: var(--on-dark); min-height: clamp(420px, 52vw, 560px); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; opacity: 0.45; transition: opacity 500ms ease; }
.hl-slide.ativo { opacity: 1; }
.hl-slide h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.12; margin: 0; max-width: 520px; position: relative; z-index: 1; }
.hl-slide h3 span { color: var(--on-dark-muted); }
.hl-slide .actions { justify-content: flex-start; position: relative; z-index: 1; }
.hl-slide .device { position: absolute; right: 6%; bottom: -8%; height: 78%; transition: transform 900ms var(--ease-out); transform: translateY(8%) scale(0.96); }
.hl-slide.ativo .device { transform: none; }
.hl-slide .device svg { height: 100%; width: auto; }
.hl-slide .device.wide { height: auto; width: 58%; bottom: 10%; }
.hl-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 26px; }
.hl-dots { display: flex; gap: 10px; align-items: center; background: rgba(210, 210, 215, 0.64); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; padding: 0 20px; height: 56px; }
.on-dark .hl-dots, .pdp .hl-dots { background: rgba(66, 66, 69, 0.72); }
.hl-dot { height: var(--tap); min-width: 24px; padding: 0 4px; border: 0; background: none; display: grid; place-items: center; }
.hl-dot span { display: block; width: 8px; height: 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.42); position: relative; overflow: hidden; transform: translateZ(0); transition: width 500ms var(--ease-out); }
.on-dark .hl-dot span, .pdp .hl-dot span { background: rgba(255, 255, 255, 0.42); }
.hl-dot.ativo span { width: 48px; }
/* a barra de progresso não tem raio próprio: quem arredonda é o span (com scaleX o raio deformava as pontas) */
.hl-dot i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.on-dark .hl-dot i, .pdp .hl-dot i { background: #f5f5f7; }
.hl-play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(210, 210, 215, 0.64); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; color: var(--ink); }
.on-dark .hl-play, .pdp .hl-play { background: rgba(66, 66, 69, 0.72); color: #fff; }
.hl-play::before { content: ""; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; box-sizing: border-box; }
.hl-play.pausado::before { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; margin-left: 4px; }
@media (max-width: 600px) {
  .hl-slide .device { height: 50%; right: 50%; transform: translateX(50%) translateY(8%); }
  .hl-slide.ativo .device { transform: translateX(50%); }
  .hl-slide .device.wide { width: 80%; height: auto; }
}

/* Galeria com setas e cards que abrem modal */
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 372px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px var(--gutter) 24px; }
@media (min-width: 1244px) { .gallery-track { padding-inline: calc((100vw - var(--maxw)) / 2); } }
.gallery-track::-webkit-scrollbar { display: none; }
.g-card { scroll-snap-align: start; position: relative; border-radius: var(--radius-tile); background: #000; color: #fff; min-height: 520px; padding: 30px 28px; overflow: hidden; display: flex; flex-direction: column; transition: transform 400ms var(--ease-out); }
@media (hover: hover) { .g-card:hover { transform: scale(1.012); } }
.g-card.light { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.g-card .eyebrow { color: inherit; opacity: 0.8; text-transform: none; font-size: 0.875rem; letter-spacing: 0; }
.g-card h3 { font-size: 1.75rem; letter-spacing: -0.025em; line-height: 1.12; margin: 0; }
.g-card .g-media { flex: 1; display: flex; align-items: flex-end; justify-content: center; margin-top: 20px; }
.g-card .g-media .device { height: 260px; }
.g-card .g-media .device svg { height: 100%; width: auto; }
.g-card .g-media .g-icon { width: 120px; height: 120px; color: var(--red); margin-bottom: 40px; }
.g-plus { position: absolute; right: 20px; bottom: 20px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.18); color: #fff; font-size: 1.375rem; line-height: 1; display: grid; place-items: center; transition: background-color 200ms ease, transform 100ms ease-out; }
.g-card.light .g-plus { background: var(--ink); color: var(--bg); }
.g-plus:hover { background: rgba(255, 255, 255, 0.32); }
.g-plus:active { transform: scale(0.92); }
.paddles { display: flex; justify-content: flex-end; gap: 14px; padding: 0 var(--gutter); max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; }
.paddle { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(210, 210, 215, 0.64); color: rgba(0, 0, 0, 0.56); display: grid; place-items: center; transition: background-color 200ms ease, opacity 200ms ease; }
.paddle:hover:not(:disabled) { background: rgba(223, 223, 227, 0.7); color: rgba(0, 0, 0, 0.64); }
.paddle:disabled { opacity: 0.36; cursor: default; }
.paddle svg { width: 16px; height: 16px; }

/* Modal (dialog nativo) com fundo desfocado */
.modal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; overflow-y: auto; }
.modal::backdrop { background: rgba(0, 0, 0, 0.48); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; transition: opacity 320ms ease; }
.modal.in::backdrop { opacity: 1; }
.modal-box { position: relative; width: min(100% - 32px, 980px); margin: 40px auto; background: var(--surface); color: var(--ink); border-radius: var(--radius-tile); padding: clamp(40px, 7vw, 76px); opacity: 0; transform: scale(0.9); transition: opacity 260ms ease, transform 480ms var(--ease-out); }
.modal.in .modal-box { opacity: 1; transform: none; }
.modal-close { position: absolute; right: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); font-size: 0.875rem; }
.modal-body h3 { font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 18px; }
.modal-body p { font-size: 1.125rem; color: var(--ink-2); max-width: 640px; }
.modal-body .actions { justify-content: flex-start; }
.modal-aberto { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .modal-box { transition: opacity 200ms ease; transform: none; }
  .flyout, .flyout li { transition: none; }
  .hl-slide .device { transition: none; }
}

/* iPhone que gira ao arrastar (motion.js → turntable) */
.tt { position: relative; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; outline-offset: 10px; border-radius: 24px; }
.tt.tt-arrastando { cursor: grabbing; }
.tt-stage { height: 100%; display: flex; align-items: center; justify-content: center; perspective: 1500px; }
.tt-obj { position: relative; height: 100%; aspect-ratio: 308 / 628; transform-style: preserve-3d; will-change: transform; }
.tt-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tt-face svg { width: 100%; height: 100%; display: block; }
.tt-side { position: absolute; left: 50%; top: 8.5%; height: 83%; border-radius: 999px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tt-hint { position: absolute; left: 0; right: 0; bottom: -40px; margin: 0; text-align: center; font-size: 0.875rem; color: var(--muted); transition: opacity 400ms ease; pointer-events: none; }
.tt-hint span { display: inline-block; color: var(--red-text); }
.tt.tt-usado .tt-hint { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .tt:not(.tt-usado) .tt-hint span:first-child { animation: tt-dica-e 1.6s var(--ease-out) 2; }
  .tt:not(.tt-usado) .tt-hint span:last-child { animation: tt-dica-d 1.6s var(--ease-out) 2; }
}
@keyframes tt-dica-e { 50% { transform: translateX(-4px); } }
@keyframes tt-dica-d { 50% { transform: translateX(4px); } }

/* Alvos de toque (HIG): em telas de toque, nada clicável menor que 44 × 44 */
@media (pointer: coarse) {
  .chip, .pcard .btn, .localnav .btn, .view-toggle button, .nav-cta { min-height: var(--tap); }
  .paddle, .g-plus, .modal-close { width: var(--tap); height: var(--tap); }
  .swatch label { width: var(--tap); height: var(--tap); }
  .hl-dot { min-width: var(--tap); }
  .hl-dots { padding: 0 8px; }
  .footer-cols ul { gap: 0; }
  .footer-cols li a { display: inline-block; padding: 13px 0; }
  .globalnav nav > a:first-of-type, .service a.link, .localnav-links a { display: inline-flex; align-items: center; min-height: var(--tap); }
  .field input[type=range] { min-height: var(--tap); }
  .faq summary { min-height: var(--tap); }
}

/* Saída do modal: cópia visual sem cliques (o <dialog> real já fechou) */
.modal-fantasma { position: fixed; margin: 0; z-index: 2147483000; pointer-events: none; transition: opacity 260ms ease, transform 480ms var(--ease-out); }
.modal-fantasma-fundo { position: fixed; inset: 0; z-index: 2147482999; pointer-events: none; background: rgba(0, 0, 0, 0.48); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: opacity 320ms ease; }

/* Reduzir movimento: o que ainda se deslocava vira só esmaecimento */
@media (prefers-reduced-motion: reduce) {
  .js .hero-rise { animation: hero-fade 300ms ease both; }
  .nav-sub { transform: none !important; opacity: 0; transition: opacity 200ms ease, visibility 0s linear 200ms !important; }
  .nav-sub.open { opacity: 1; transition: opacity 200ms ease !important; }
  .nav-links { transform: none !important; }
  .story-media .device { transform: none !important; transition: opacity 200ms ease; }
}
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Fotos reais (enviadas pelo painel). Sem foto, a seção fica só com texto ---------- */
.foto { display: block; max-width: 100%; height: auto; }
.cores { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cores i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.on-dark .cores i, .hl-slide .cores i { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }

.hero-media .foto { max-height: min(56vh, 520px); width: auto; margin-inline: auto; border-radius: var(--radius-card); }
.hero.sem-midia { min-height: 0; padding-bottom: clamp(64px, 10vw, 120px); }
.hero.sem-midia .hero-media { display: none; }

.tile-media .foto { width: min(84%, 440px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card) var(--radius-card) 0 0; }
.tile.sem-midia { min-height: clamp(280px, 30vw, 360px); justify-content: center; padding-bottom: clamp(36px, 5vw, 52px); }
.tile.sem-midia .tile-media { display: none; }

.pcard-media .foto { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.pcard.sem-midia .pcard-media { display: none; }
.pcard.sem-midia .badge { position: static; align-self: flex-start; margin-bottom: 14px; }
.pcard.sem-midia .pcard-swatches { justify-content: flex-start; margin: 0 0 14px; }
.pcard.sem-midia .pcard-swatches:empty { display: none; }

.hl-slide .foto { position: absolute; right: 5%; bottom: 7%; height: 72%; width: auto; max-width: 46%; object-fit: cover; border-radius: var(--radius-card); }
.hl-slide.sem-midia { min-height: clamp(300px, 32vw, 380px); }
.hl-slide .cores { justify-content: flex-start; margin-top: 18px; }
@media (max-width: 600px) {
  .hl-slide .foto { position: static; height: auto; max-width: 100%; width: 100%; aspect-ratio: 4 / 3; margin: 20px 0; }
}

/* Foto ilustrativa (Unsplash): crédito pequeno abaixo da imagem */
.credito { display: block; margin-top: 8px; font-size: 0.75rem; line-height: 1.4; color: var(--muted); }
.credito a { text-decoration: underline; text-underline-offset: 2px; }
