/* =========================================================
   AXON · LP Diagnóstico — base compartilhada
   Cores: só os códigos do Manual de Marca (+ branco na opção 2).
   ========================================================= */
:root {
  --vinho: #561420;
  --preto: #121212;
  --grafite: #2B2B2A;
  --concreto: #8C8B86;
  --pedra: #ECE9E3;
  --branco: #FFFFFF;

  --f-display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --f-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1328px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ring: var(--preto);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; font-family: var(--f-text); font-size: 17px; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografia ---------- */
.display {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.012em;
  line-height: .98;
  margin: 0;
  text-wrap: balance;
  hyphens: manual;
}
.mono {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lead { font-size: clamp(17px, 1.2vw, 19px); line-height: 1.55; text-wrap: pretty; }

/* ---------- Botão principal ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 60px; padding: 0 30px;
  border: 0; border-radius: 999px;
  background: var(--vinho); color: var(--pedra);
  font-family: var(--f-text); font-weight: 500; font-size: 17px; letter-spacing: -.005em;
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { box-shadow: 0 14px 36px -14px rgba(86, 20, 32, .85); }
.btn:active { transform: scale(.98); }

/* ---------- Espaço reservado de foto (P&B, uma luz) ---------- */
.ph {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--grafite) 0%, var(--preto) 68%);
  color: var(--pedra);
}
.ph::before { /* foco de luz + reflexo no chão */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46% 40% at var(--lx, 62%) var(--ly, 0%), rgba(236, 233, 227, .30), rgba(236, 233, 227, .08) 46%, rgba(236, 233, 227, 0) 74%),
    radial-gradient(30% 7% at var(--lx, 62%) var(--floor, 88%), rgba(236, 233, 227, .16), rgba(236, 233, 227, 0) 70%),
    radial-gradient(120% 90% at 50% 50%, rgba(18, 18, 18, 0) 55%, rgba(18, 18, 18, .65) 100%);
}
.ph::after { /* grão de filme */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.ph__cone { /* cone de luz */
  position: absolute; z-index: -1; pointer-events: none;
  left: var(--lx, 62%); top: -6%; width: 64%; height: calc(var(--floor, 88%) + 8%);
  transform: translateX(-50%); filter: blur(22px);
}
.ph__cone::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(236, 233, 227, .20), rgba(236, 233, 227, .02) 90%);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
}
.ph__label { position: absolute; z-index: 1; color: rgba(236, 233, 227, .62); display: inline-flex; align-items: center; gap: 10px; }
.ph__label::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }

/* ---------- Entrada suave ---------- */
.rise { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.fade { opacity: 0; animation: fade 1.8s var(--ease) forwards; }
@keyframes fade { to { opacity: 1; } }

/* ---------- Modal do formulário (chronosdock) ---------- */
html.modal-open { overflow: hidden; }
.apply-modal {
  padding: 0; border: 0; margin: auto;
  width: min(760px, calc(100vw - 32px));
  height: min(860px, calc(100dvh - 48px));
  max-width: none; max-height: none;
  border-radius: 24px; overflow: hidden;
  background: var(--pedra); color: var(--preto);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .6);
  --ring: var(--preto);
}
.apply-modal[open] { display: flex; flex-direction: column; animation: modal-in .45s var(--ease); }
.apply-modal::backdrop { background: rgba(18, 18, 18, .74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.apply-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 24px; border-bottom: 1px solid rgba(18, 18, 18, .1); }
.apply-modal__bar .mono { color: var(--grafite); }
.apply-modal__close {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 999px;
  background: rgba(18, 18, 18, .07); display: grid; place-items: center;
  transition: background .25s var(--ease);
}
.apply-modal__close:hover { background: rgba(18, 18, 18, .14); }
.apply-modal__close svg { width: 18px; height: 18px; }
.apply-modal__body { position: relative; flex: 1; min-height: 0; background: var(--branco); }
.apply-modal__body iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border: 0; }
.apply-modal__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--grafite); }
@media (max-width: 640px) {
  .apply-modal { width: 100vw; height: 100dvh; border-radius: 0; }
  .apply-modal__bar { padding-top: max(12px, env(safe-area-inset-top)); }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
