@font-face {
  font-family: "LorinDIN";
  src: url("../fonts/bahnschrift-pt.woff2") format("woff2");
  font-weight: 300 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-base: #090C11;
  --bg-elevated: #0E121A;
  --surface: #111620;
  --surface-hover: #161D2B;
  --surface-dark: #07090D;
  --border: rgba(255, 255, 255, 0.085);
  --border-gold: rgba(245, 199, 26, 0.34);
  --border-gold-strong: rgba(245, 199, 26, 0.88);
  --gold: #F5C71A;
  --gold-soft: rgba(245, 199, 26, 0.12);
  --gold-glow: rgba(245, 199, 26, 0.24);
  --ink: #F8FAFC;
  --ink-body: #CBD5E1;
  --ink-muted: #94A3B8;
  --badge-before: #EB4B4B;
  --badge-after: #34D399;
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-pill: 9999px;
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-atelier: 0 14px 36px -14px rgba(2, 4, 8, 0.88);
  --shadow-gold-glow: 0 0 22px -6px rgba(245, 199, 26, 0.32);
  --font-display: "LorinDIN", "Bahnschrift", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--ink);
  line-height: 1.48;
  min-height: 100dvh;
  overflow-x: clip;
  position: relative;
}

/* Filete dourado superior de atelier + atmosfera metálica sem costura */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(ellipse 90% 42% at 50% -5%, rgba(245, 199, 26, 0.06), transparent 68%),
    radial-gradient(ellipse 70% 40% at 50% 105%, rgba(245, 199, 26, 0.03), transparent 65%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.01) 0px,
      rgba(255, 255, 255, 0.01) 1px,
      transparent 1px,
      transparent 18px
    );
}

.top-hairline {
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 199, 26, 0.72) 50%, transparent 100%);
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:where(a, button, input, label, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: 444px;
  margin-inline: auto;
  padding: 0 18px 34px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================================================
 * 1. HERO SEAMLESS DE ATELIER (SEM CAIXINHA RECORTADA)
 * ========================================================= */
@keyframes heroEnter {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.hero {
  position: relative;
  padding-top: 8px;
  width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: heroEnter 420ms var(--ease-spring) both;
}

.hero-backdrop {
  position: relative;
  width: 100%;
  height: 184px;
  overflow: hidden;
  pointer-events: none;
  /* Mascara eliptica radial que dissolve todas as 4 bordas sem retangulo nem estouro */
  -webkit-mask-image: radial-gradient(ellipse 90% 92% at 50% 42%, rgba(0, 0, 0, 1) 36%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 92% at 50% 42%, rgba(0, 0, 0, 1) 36%, transparent 100%);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: contrast(1.06) brightness(0.9);
}

.hero-body {
  width: 100%;
  margin-top: -78px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo-wrap {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.brand-logo {
  width: 156px;
  height: auto;
  aspect-ratio: 1140 / 911;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.95));
}

.location-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(14, 18, 26, 0.85);
  border: 1px solid var(--border-gold);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  white-space: nowrap;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--badge-after);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.16;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 0.89rem;
  color: var(--ink-body);
  max-width: 34ch;
  margin-bottom: 14px;
}

/* Linha arquitetônica com diamante dourado */
.diamond-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 78%;
  max-width: 240px;
  margin-bottom: 16px;
}

.diamond-rule::before,
.diamond-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.72;
}

.diamond-gem {
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--gold);
  background: var(--bg-base);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Botões usinados de alto padrão */
.btn-machined {
  width: 100%;
  max-width: 310px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, #171D29 0%, #0E121A 100%);
  border: 1.5px solid var(--border-gold-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--shadow-gold-glow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, scale 140ms var(--ease-spring), box-shadow 160ms ease;
}

.btn-machined svg {
  color: var(--gold);
}

.btn-machined:active {
  scale: 0.985;
}

.btn-gold {
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, #FAD038 0%, #EAB80C 100%);
  border: 1px solid rgba(255, 240, 170, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 26px -10px rgba(245, 199, 26, 0.45);
  color: #090C11;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: filter 160ms ease, scale 140ms var(--ease-spring);
}

.btn-gold:active {
  scale: 0.985;
}

@media (hover: hover) {
  .btn-machined:hover {
    border-color: var(--gold);
    background: linear-gradient(180deg, #1E2534 0%, #121722 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 28px -6px rgba(245, 199, 26, 0.48);
  }
  .btn-gold:hover {
    filter: brightness(1.06);
  }
}

/* Rótulos de seção */
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(245, 199, 26, 0.35), transparent);
}

/* =========================================================
 * 2. GRADE 2X2 ATELIER COM BORDAS CHANFRADAS & TRAÇO ///
 * ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, #131924 0%, #0D1119 100%);
  border: 1px solid var(--border-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-atelier);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, scale 140ms var(--ease-spring);
}

.choice-card:active {
  scale: 0.985;
}

.choice-card:has(> input:checked) {
  border-color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--shadow-gold-glow);
}

.choice-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.choice-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--surface-dark);
  overflow: hidden;
}

.choice-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 300ms var(--ease-spring);
}

.choice-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 12, 17, 0.08) 0%, rgba(13, 17, 25, 0.72) 100%);
  pointer-events: none;
}

.choice-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(9, 12, 17, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.choice-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold);
  scale: 0;
  transition: scale 160ms var(--ease-spring);
}

.choice-card:has(> input:checked) .choice-dot {
  border-color: var(--gold);
  background-color: #090C11;
}

.choice-card:has(> input:checked) .choice-dot::after {
  scale: 1;
}

.choice-footer {
  padding: 9px 10px 10px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #10151F 0%, #0B0F17 100%);
}

.choice-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--ink);
  line-height: 1.24;
  min-width: 0;
}

/* Marcas técnicas /// no canto inferior direito igual ao conceito Nano Banana */
.choice-hash {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(245, 199, 26, 0.35);
  flex-shrink: 0;
  align-self: flex-end;
  user-select: none;
}

.choice-card:has(> input:checked) .choice-hash {
  color: var(--gold);
}

@media (hover: hover) {
  .choice-card:hover {
    border-color: rgba(245, 199, 26, 0.65);
  }
  .choice-card:hover .choice-media img {
    scale: 1.03;
  }
}

.service-hint {
  margin-top: 9px;
  font-size: 0.81rem;
  color: var(--ink-muted);
  text-align: center;
}

/* =========================================================
 * 3. COMPARADOR ANTES X DEPOIS COM RÉGUA DE PRECISÃO
 * ========================================================= */
.compare-card {
  background: linear-gradient(180deg, #121722 0%, #0C1018 100%);
  border: 1px solid var(--border-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-atelier);
  border-radius: var(--r-md);
  padding: 11px;
}

.compare-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.compare-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--ink);
  min-width: 0;
}

.compare-pills {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.compare-btn {
  min-height: 44px;
  padding: 6px 9px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  background-color: var(--surface-dark);
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.compare-btn[aria-pressed="true"] {
  background-color: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}

.compare-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-sm);
  overflow: hidden;
  background-color: var(--surface-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  touch-action: pan-y;
  user-select: none;
}

.compare-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compare-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-layer-before {
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.compare-tag {
  position: absolute;
  bottom: 10px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: var(--r-xs);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background-color: rgba(9, 12, 17, 0.88);
  color: var(--ink);
  pointer-events: none;
}

.compare-tag-before {
  left: 10px;
  border: 1px solid var(--badge-before);
}

.compare-tag-after {
  right: 10px;
  border: 1px solid var(--badge-after);
}

/* Barra vertical dourada usinada + anel duplo */
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2.5px;
  background: linear-gradient(180deg, rgba(245, 199, 26, 0.3) 0%, #F5C71A 20%, #F5C71A 80%, rgba(245, 199, 26, 0.3) 100%);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1F2636 0%, #090C11 100%);
  border: 2px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px rgba(9, 12, 17, 0.72), 0 6px 16px rgba(0, 0, 0, 0.7);
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  margin: 0;
}

/* Fallback sem JS: lado a lado automático */
.no-js .compare-pills,
.no-js .compare-handle,
.no-js .compare-range {
  display: none;
}

.no-js .compare-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  aspect-ratio: auto;
  background: transparent;
  border: 0;
}

.no-js .compare-layer {
  position: relative;
  inset: auto;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-xs);
  overflow: hidden;
  border: 1px solid var(--border);
  clip-path: none;
}

.no-js .compare-tag-after {
  right: auto;
  left: 8px;
}

.no-js .compare-tag-before {
  bottom: auto;
  top: 8px;
  left: 8px;
}

/* =========================================================
 * 4. YOUTUBE & RODAPÉ ATELIER
 * ========================================================= */
.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, #131924 0%, #0D1119 100%);
  border: 1px solid var(--border-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 150ms ease, scale 140ms var(--ease-spring);
}

.link-card:active {
  scale: 0.985;
}

@media (hover: hover) {
  .link-card:hover {
    border-color: var(--gold);
  }
}

.link-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--r-xs);
  background-color: var(--surface-dark);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  display: grid;
  place-items: center;
}

.link-label {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  min-width: 0;
  flex: 1;
}

.link-arrow {
  color: var(--gold);
  flex-shrink: 0;
}

.site-footer {
  padding-top: 16px;
  border-top: 1px solid transparent;
  background-image: linear-gradient(var(--bg-base), var(--bg-base)), linear-gradient(90deg, transparent, rgba(245, 199, 26, 0.4), transparent);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-size: 0.74rem;
}

/* Reveal seguro abaixo da dobra */
:where(.js-anim) :where(.reveal) {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 340ms var(--ease-spring), translate 340ms var(--ease-spring);
}

:where(.js-anim) .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero {
    animation: none;
  }
  :where(.js-anim) :where(.reveal) {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
  .btn-machined,
  .btn-gold,
  .choice-card,
  .choice-media img,
  .link-card,
  .compare-btn {
    transition: none;
  }
}
