/* ============================================================================
   GeradorPix — PIX ARCADE / CRT  ·  arcade.css
   Cinematic fliperama theme with dark/light public palettes. Structural concept: "Attract-Mode
   Cabinet" — the page plays like an arcade machine: CRT attract screen (hero),
   INSERT COIN (free generator), SELECT YOUR PLAYER (plans), BOSS FIGHT (Extreme).
   All copy composited in code over textures. No text baked into imagery.
   ========================================================================== */

/* -------- Pixel display face (self-hosted, OFL) -------- */
@font-face {
  font-family: "Press Start 2P";
  src: url("fonts/PressStart2P-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================ TOKENS ============================ */
:root {
  /* palette (locked) */
  --teal:  #00bfa5;
  --glow:  #00e0c6;
  --mid:   #32bcad;
  --amber: #f1c15f;
  --coral: #ff6b76;

  --bg0: #050a0c;
  --bg1: #0b1012;
  --bg2: #101619;
  --bg3: #0a0f11;

  --ink:  #ecfffb;
  --ink2: #e6f6f3;
  --muted:#8fb0aa;      /* nudged brighter than #78938f for AA on small text */
  --muted-2:#6f8c87;

  --line:   rgba(0, 224, 198, .16);
  --line-2: rgba(0, 224, 198, .28);
  --hair:   rgba(120, 147, 143, .18);

  /* Canvas atmosphere reads these alongside the semantic theme colors. */
  --spark-line-alpha: .12;
  --spark-teal-alpha: .55;
  --spark-amber-alpha: .60;

  --font-pixel: "Press Start 2P", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-body:  system-ui, -apple-system, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
  --font-mono:  ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  --shell: min(1180px, 92vw);
  --gap-section: clamp(4.5rem, 9vw, 8rem);
  --radius: 14px;

  --ease-elegant: cubic-bezier(.33, 1, .68, 1);
  --ease-smooth:  cubic-bezier(.16, 1, .3, 1);
  --ease-snap:    cubic-bezier(.77, 0, .175, 1);

  --focus: 0 0 0 2px var(--bg0), 0 0 0 4px var(--glow);
}

:root[data-theme="light"] {
  --teal: #008f7c;
  --glow: #007f70;
  --mid: #176f64;
  --amber: #9a6300;
  --coral: #c23c4a;
  --bg0: #eef5f3;
  --bg1: #ffffff;
  --bg2: #f5faf8;
  --bg3: #e7f2ef;
  --ink: #08201c;
  --ink2: #274b44;
  --muted: #4d6a64;
  --muted-2: #647e78;
  --line: rgba(0, 126, 108, .18);
  --line-2: rgba(0, 126, 108, .34);
  --hair: rgba(34, 86, 77, .2);
  --spark-line-alpha: .17;
  --spark-teal-alpha: .72;
  --spark-amber-alpha: .76;
  --focus: 0 0 0 2px #ffffff, 0 0 0 4px var(--glow);
}

/* ============================ RESET / BASE ============================ */
*, *::before, *::after { box-sizing: border-box; }

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

html:focus-within { scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink2);
  background: var(--bg0);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Starfield and CRT noise live in the shared public shell. */

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

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

h1, h2, h3, h4 { margin: 0; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--glow); color: #05201c; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #060c0e; }
::-webkit-scrollbar-thumb {
  background: #16302c;
  border: 3px solid #060c0e;
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover { background: #1d4a43; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.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;
}

/* shared helpers */
.shell { width: var(--shell); margin-inline: auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: clamp(.62rem, 1.3vw, .74rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--glow);
  font-weight: 600;
}
.kicker::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--glow);
  box-shadow: 0 0 10px var(--glow);
  animation: blink 1.6s steps(1) infinite;
}
.kicker .chan {
  width: 1.15em; height: 1.15em;
  margin-left: .1em;
  image-rendering: pixelated;
  background: center / contain no-repeat;
}
.kicker .chan.wa { background-image: url("sprite-chat-green.png"); }
.kicker .chan.tg { background-image: url("sprite-chat-blue.png"); }

.pixel {
  font-family: var(--font-pixel);
  text-transform: uppercase;
  line-height: 1.35;
  letter-spacing: 0;
}

.section-eyebrow {
  font-family: var(--font-pixel);
  font-size: clamp(.85rem, 2.4vw, 1.35rem);
  color: var(--ink);
  text-shadow: 0 0 18px rgba(0, 224, 198, .35);
  line-height: 1.5;
}
.section-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  max-width: 60ch;
  margin-top: 1rem;
}

.section {
  position: relative;
  padding-block: var(--gap-section);
}
.page-home .section {
  padding-block: clamp(2.75rem, 4vw, 3.75rem);
}
.page-generator #gratis {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: var(--gap-section);
}
.section-head { margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-home .section-head { margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head .kicker + .section-eyebrow,
.section-head .insert-coin + .section-eyebrow { margin-top: 1rem; }
.section-kicker--center { justify-content: center; }

/* thin horizontal rule of light */
.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  margin: 0;
}

/* ============================ BUTTONS (arcade press) ============================ */
.abtn {
  --btn-bg: #0d1618;
  --btn-fg: var(--ink);
  --btn-edge: rgba(0, 224, 198, .35);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-family: var(--font-pixel);
  font-size: clamp(.62rem, 1.15vw, .74rem);
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  padding: 1.05em 1.4em;
  border: 2px solid var(--btn-edge);
  border-radius: 10px;
  cursor: pointer;
  transition: transform .12s var(--ease-snap),
              box-shadow .18s var(--ease-smooth),
              background .18s var(--ease-smooth),
              border-color .18s var(--ease-smooth);
  box-shadow: 0 5px 0 0 #04302a, 0 12px 22px -10px rgba(0, 224, 198, .5);
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}
.abtn:hover { transform: translateY(-1px); border-color: var(--glow); }
.abtn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 0 #04302a, 0 4px 10px -6px rgba(0, 224, 198, .5);
}

.abtn--primary {
  --btn-bg: linear-gradient(180deg, #00e0c6, #00a892);
  --btn-fg: #04211d;
  --btn-edge: #6bffe9;
  color: #04211d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
  box-shadow: 0 5px 0 0 #037061, 0 16px 30px -12px rgba(0, 224, 198, .75);
}
.abtn--primary:active { box-shadow: 0 1px 0 0 #037061, 0 6px 14px -8px rgba(0, 224, 198, .7); }

.abtn--ghost {
  --btn-bg: transparent;
  --btn-edge: rgba(120, 147, 143, .4);
  color: var(--muted);
  box-shadow: none;
}
.abtn--ghost:hover { color: var(--ink); border-color: var(--line-2); }
.abtn--ghost:active { transform: translateY(2px); box-shadow: none; }

.abtn--coral {
  --btn-bg: linear-gradient(180deg, #ff7d86, #e14c58);
  --btn-fg: #2a0608;
  --btn-edge: #ffb3b8;
  color: #2a0608;
  box-shadow: 0 5px 0 0 #8f2b33, 0 16px 30px -12px rgba(255, 107, 118, .7);
}
.abtn--coral:active { box-shadow: 0 1px 0 0 #8f2b33; }

.abtn[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
  filter: grayscale(.4);
}

.abtn--sm {
  padding: .55em 1.15em;
  font-size: .58rem;
  min-height: 40px;
  line-height: 1.15;
}

/* coin sprite prefix for the "insert coin" flavor */
.abtn .coin {
  width: 1.2em; height: 1.2em;
  background: url("sprite-coin.png") center / contain no-repeat;
  image-rendering: pixelated;
  flex: none;
}

/* ============================ HEADER / NAV ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2rem);
  background: linear-gradient(180deg, rgba(5, 10, 12, .92), rgba(5, 10, 12, .62));
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-pixel);
  font-size: clamp(.72rem, 1.5vw, .9rem);
  color: var(--ink);
  letter-spacing: .01em;
}
.brand img { width: 24px; height: 24px; image-rendering: auto; }
.brand:hover { color: var(--glow); }

.nav-primary {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.9rem);
}
.nav-links {
  display: flex;
  gap: clamp(1rem, 2vw, 1.7rem);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  color: var(--muted);
  padding-block: .3rem;
  transition: color .18s var(--ease-smooth);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--glow);
  box-shadow: 0 0 8px var(--glow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s var(--ease-smooth);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* calm-mode toggle */
.calm-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: #0c1416;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: .5em .9em;
  min-height: 40px;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
.calm-toggle .led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted-2);
  box-shadow: none;
  transition: background .2s, box-shadow .2s;
}
.calm-toggle:hover { color: var(--ink); border-color: var(--line-2); }
[data-calm="1"] .calm-toggle { color: var(--glow); border-color: var(--line-2); }
[data-calm="1"] .calm-toggle .led { background: var(--glow); box-shadow: 0 0 8px var(--glow); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: #0c1416;
  border: 1px solid var(--hair);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--glow);
  position: relative;
  transition: transform .24s var(--ease-snap), opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
[data-nav-open] .nav-toggle span { background: transparent; }
[data-nav-open] .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
[data-nav-open] .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ============================ HERO / CRT ============================ */
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.6rem, 3vw, 2.4rem);
  overflow: hidden;
}
.hero__sky {
  position: absolute;
  inset: -10% -10% 0 -10%;
  background:
    radial-gradient(640px 360px at 72% 12%, rgba(0, 224, 198, .10), transparent 68%),
    radial-gradient(520px 300px at 18% 18%, rgba(241, 193, 95, .055), transparent 70%);
  opacity: .52;
  z-index: 0;
  will-change: transform;
}
:root[data-theme="light"] .page-home .hero {
  background:
    radial-gradient(760px 420px at 50% 8%, rgba(255, 255, 255, .45), transparent 68%),
    linear-gradient(180deg, rgba(228, 243, 239, .28), rgba(238, 245, 243, 0));
}
:root[data-theme="light"] .page-home .hero__sky {
  background:
    radial-gradient(640px 360px at 72% 12%, rgba(0, 143, 124, .11), transparent 68%),
    radial-gradient(520px 300px at 18% 18%, rgba(154, 99, 0, .075), transparent 70%);
  mix-blend-mode: multiply;
  opacity: .78;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .86) 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .86) 72%, transparent 100%);
}
.hero__spark {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: clamp(1.6rem, 3vw, 2.4rem);
}

/* CRT frame — the bezel is isolated from the screen so each theme can finish
   the cabinet independently without altering the image asset or its geometry. */
.crt {
  --ink: #ecfffb;
  --ink2: #e6f6f3;
  --muted: #8fb0aa;
  --muted-2: #6f8c87;
  --glow: #00e0c6;
  --mid: #32bcad;
  --amber: #f1c15f;
  --line: rgba(0, 224, 198, .16);
  --line-2: rgba(0, 224, 198, .28);
  --crt-shadow-y: 40px;
  --crt-shadow-blur: 60px;
  --crt-shadow-color: rgba(0, 0, 0, .6);
  position: relative;
  width: min(880px, 100%);
  aspect-ratio: 1600 / 1200;      /* matches bezel-crt.png so the frame never distorts */
  background: none;
  filter: drop-shadow(0 var(--crt-shadow-y) var(--crt-shadow-blur) var(--crt-shadow-color));
}
.crt::before,
.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6%;
  pointer-events: none;
}
.crt::before {
  z-index: 0;
  background: url("bezel-crt.png") center / 100% 100% no-repeat;
}
.crt::after {
  z-index: 1;
  opacity: 0;
}
/* Screen aligned to the PNG's transparent window (L10.5% T14% W78.94% H71.92%). */
.crt__screen {
  position: absolute;
  z-index: 2;
  left: 10.5%;
  top: 14%;
  width: 78.94%;
  height: 71.92%;
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 50% 8%, rgba(0, 224, 198, .10), transparent 55%),
    linear-gradient(180deg, #071316 0%, #040d0f 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(.5rem, 1.3vw, .95rem);
  padding: clamp(.75rem, 1.8vw, 1.3rem) clamp(1rem, 2.8vw, 2rem);
  box-shadow: inset 0 0 0 1px rgba(0, 224, 198, .12), inset 0 0 80px rgba(0, 0, 0, .7);
}
.crt__screen::before {   /* scanlines */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, .28) 3px, rgba(0, 0, 0, .28) 3px);
  background-size: 100% 3px;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 4;
  opacity: .55;
}
.crt__screen::after {    /* vignette + subtle flicker */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%);
  pointer-events: none;
  z-index: 5;
  animation: flicker 5.5s steps(60) infinite;
}
.crt__content {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: clamp(.55rem, 1.25vw, .9rem);
}

.hero__title {
  font-family: var(--font-pixel);
  color: var(--ink);
  font-size: clamp(1rem, 3.2vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: .01em;
  text-shadow: 0 0 22px rgba(0, 224, 198, .45), 0 4px 0 rgba(0, 0, 0, .5);
}
.hero__title .ln {
  display: block;
}
.hero__title .ln + .ln { margin-top: .28em; color: var(--glow); }
.hero__title .blink-caret::after {
  content: "_";
  color: var(--amber);
  margin-left: .12em;
  animation: blink 1s steps(1) infinite;
}

.hero__sub {
  color: var(--ink2);
  font-size: clamp(.88rem, 1.3vw, .98rem);
  line-height: 1.48;
  max-width: 62ch;
}

/* 11-second attract-mode story. It is a visual demo only: the QR-like block is
   deliberately invalid and stamped DEMO so the TV can never create a payment. */
.crt-demo {
  min-height: 166px;
  padding: .65rem .75rem .72rem;
  overflow: hidden;
  color: var(--ink2);
  background: rgba(2, 10, 11, .72);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-family: var(--font-mono);
}
.crt-demo__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding-bottom: .45rem;
  border-bottom: 1px dashed var(--line);
}
.demo-stamp,
.demo-clock {
  font-size: clamp(.48rem, .9vw, .58rem);
  line-height: 1.25;
  letter-spacing: .1em;
  color: var(--amber);
}
.demo-clock { color: var(--mid); font-variant-numeric: tabular-nums; }
.demo-stage { position: relative; min-height: 112px; margin-top: .55rem; }
.demo-stage::before {
  content: "AGUARDANDO NOVA MENSAGEM…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--mid);
  font-size: .62rem;
  letter-spacing: .08em;
}
.demo-message,
.demo-cart,
.demo-payment,
.demo-processing,
.crt-demo .engine,
.demo-final {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .32s var(--ease-smooth), transform .32s var(--ease-smooth);
}
.demo-message {
  display: grid;
  align-content: center;
  gap: .45rem;
  padding: .8rem 1rem;
  background: rgba(50, 188, 173, .08);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.demo-message__from { color: var(--mid); font-size: .54rem; letter-spacing: .11em; }
.demo-message strong { color: var(--ink); font-size: clamp(.78rem, 1.4vw, .94rem); }
.demo-cart {
  display: grid;
  align-content: center;
  gap: .3rem;
  padding-inline: .2rem;
  font-size: clamp(.58rem, 1vw, .7rem);
}
.demo-cart span,
.demo-cart strong { display: flex; align-items: center; gap: .5rem; }
.demo-cart b { color: var(--mid); }
.demo-cart em { margin-left: auto; color: var(--ink); font-style: normal; }
.demo-cart strong { margin-top: .15rem; padding-top: .35rem; color: var(--amber); border-top: 1px dashed var(--line-2); }
.demo-cart strong em { color: var(--amber); }
.demo-payment,
.demo-processing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  color: var(--ink);
  font-size: clamp(.7rem, 1.25vw, .86rem);
}
.demo-payment span {
  width: 11px; height: 11px;
  border: 2px solid var(--glow);
  box-shadow: inset 0 0 0 2px #061012, inset 0 0 0 8px var(--glow), 0 0 10px rgba(0, 224, 198, .55);
}
.demo-payment b { color: var(--glow); }
.demo-processing { color: var(--mid); letter-spacing: .1em; font-size: .64rem; }
.demo-processing i {
  width: 18px; height: 18px;
  border: 2px solid var(--line-2);
  border-top-color: var(--glow);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.crt-demo[data-demo-step="message"] .demo-message,
.crt-demo[data-demo-step="selected"] .demo-cart,
.crt-demo[data-demo-step="build-1"] .demo-payment,
.crt-demo[data-demo-step="build-2"] .demo-processing,
.crt-demo[data-demo-step="build-3"] .engine,
.crt-demo[data-demo-step="ready"] .engine,
.crt-demo[data-demo-step="copied"] .engine,
.crt-demo[data-demo-step="ready"] .demo-final,
.crt-demo[data-demo-step="copied"] .demo-final {
  opacity: 1;
  transform: none;
}
.crt-demo:not([data-demo-step="waiting"]) .demo-stage::before { opacity: 0; }

/* HUD as an organized grid: STATUS spans the full width as a status bar,
   the four spec chips fill a tidy 2×2 below — no ragged wrap, no right void. */
.hud {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: clamp(.54rem, 1vw, .63rem);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hud li:first-child { grid-column: 1 / -1; }
.hud li {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  color: var(--mid);
  background: rgba(0, 224, 198, .06);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .38em .6em;
}
.hud li b { color: var(--ink); font-weight: 600; }
.hud li .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 6px var(--glow);
}

/* Final QR + copy-band frame inside the non-payable TV demo. */
.engine {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: rgba(4, 13, 15, .7);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: .55rem .7rem;
  font-family: var(--font-mono);
}
.demo-qr {
  position: relative;
  width: 70px; height: 70px;
  padding: 5px;
  background:
    linear-gradient(90deg, #061012 12%, transparent 12% 22%, #061012 22% 34%, transparent 34% 48%, #061012 48% 62%, transparent 62% 73%, #061012 73%),
    linear-gradient(#061012 10%, transparent 10% 23%, #061012 23% 38%, transparent 38% 51%, #061012 51% 66%, transparent 66% 78%, #061012 78%),
    #fff;
  background-size: 19px 19px, 17px 17px, auto;
  border: 5px solid #fff;
  flex: none;
}
.demo-qr i {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  padding: .18rem .25rem;
  color: #2a1900;
  background: var(--amber);
  font-size: .44rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .05em;
}
.demo-copy-band { min-width: 0; display: grid; gap: .35rem; }
.demo-copy-band b { color: var(--glow); font-size: .62rem; letter-spacing: .1em; }
.demo-copy-band i {
  max-width: 38ch;
  overflow: hidden;
  color: var(--muted);
  font-size: .54rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-final {
  inset: auto .2rem .05rem;
  color: var(--glow);
  font-family: var(--font-pixel);
  font-size: clamp(.46rem, .9vw, .58rem);
  line-height: 1.5;
  text-align: right;
  text-shadow: 0 0 12px rgba(0, 224, 198, .45);
}
.crt-demo .engine { inset: 0 0 26px; }

/* hero control deck (CTAs) */
.hero__deck {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.hero__deck .abtn { min-height: 44px; }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: .2rem;
  flex-basis: 100%;
}
.badge {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mid);
  border: 1px dashed var(--line-2);
  border-radius: 999px;
  padding: .4em .8em;
}

/* one-time CRT power-on choreography (hidden only when JS is present) */
html.js .crt { opacity: 0; }
.crt.power-on { animation: crt-on 1.1s var(--ease-smooth) forwards; }
.crt.power-on .crt__content > * { opacity: 0; animation: hud-in .6s var(--ease-smooth) forwards; }
.crt.power-on .crt__content > *:nth-child(1) { animation-delay: .45s; }
.crt.power-on .crt__content > *:nth-child(2) { animation-delay: .58s; }
.crt.power-on .crt__content > *:nth-child(3) { animation-delay: .72s; }
.crt.power-on .crt__content > *:nth-child(4) { animation-delay: .86s; }
.crt.power-on .crt__content > *:nth-child(5) { animation-delay: 1s; }

/* ============================ FLUXO (phases) ============================ */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.9rem, 2vw, 1.4rem);
}
.phase {
  position: relative;
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.4rem;
  overflow: hidden;
  transition: transform .3s var(--ease-smooth), border-color .3s, box-shadow .3s;
}
.phase::before {   /* dither texture wash */
  content: "";
  position: absolute; inset: 0;
  background: url("dither-teal.png") repeat top left / 128px;
  opacity: .05;
  pointer-events: none;
}
.phase:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 20px 50px -30px rgba(0, 224, 198, .5);
}
.phase__no {
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  color: var(--amber);
  text-shadow: 0 0 16px rgba(241, 193, 95, .4);
}
.phase__label {
  display: block;
  margin: .9rem 0 .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--glow);
}
.phase h3 {
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}
.phase p { margin-top: .55rem; color: var(--muted); font-size: .93rem; }
.phase__pip {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 26px; height: 26px;
  image-rendering: pixelated;
  opacity: .85;
}

/* ============================ GRÁTIS / INSERT COIN ============================ */
.free {
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(0, 191, 165, .08), transparent 60%),
    var(--bg3);
  border-block: 1px solid var(--line);
}
.free-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}
.insert-coin {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-pixel);
  font-size: clamp(.7rem, 1.8vw, .95rem);
  color: var(--amber);
  text-shadow: 0 0 18px rgba(241, 193, 95, .45);
  animation: blink 1.15s steps(1) infinite;
}
.insert-coin .coin {
  width: 1.3em; height: 1.3em;
  background: url("sprite-coin.png") center / contain no-repeat;
  image-rendering: pixelated;
}

/* the cabinet-styled generator panel */
.cabinet {
  position: relative;
  background: linear-gradient(180deg, #0c1315, #080f11);
  border: 2px solid var(--line-2);
  border-radius: 18px;
  padding: 1.5rem clamp(1.1rem, 2.5vw, 1.7rem) 1.6rem;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(0, 0, 0, .4);
}
.cabinet__marquee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px dashed var(--line-2);
}
.cabinet__marquee strong {
  font-family: var(--font-pixel);
  font-size: .8rem;
  color: var(--ink);
  text-shadow: 0 0 16px rgba(0, 224, 198, .35);
}
.cabinet__marquee small {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .05em;
}

.free-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin-bottom: 1.2rem;
  padding: .35rem;
  background: #060d0f;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.free-tab {
  min-width: 0;
  display: grid;
  gap: .35rem;
  text-align: left;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: .9rem 1rem;
  cursor: pointer;
  transition: color .18s, background .18s, border-color .18s, transform .12s var(--ease-snap);
}
.free-tab:hover { color: var(--ink); border-color: var(--line); }
.free-tab:active { transform: translateY(1px); }
.free-tab.active {
  color: var(--ink);
  background: rgba(0, 224, 198, .08);
  border-color: var(--line-2);
  box-shadow: inset 0 -2px 0 var(--glow);
}
.free-tab strong {
  font-family: var(--font-pixel);
  font-size: clamp(.62rem, 1.3vw, .74rem);
  line-height: 1.45;
}
.free-tab small {
  font-family: var(--font-mono);
  font-size: .66rem;
  line-height: 1.35;
  color: var(--muted-2);
}
.free-tab.active small { color: var(--mid); }

.free-form { display: grid; gap: 1rem; }
.free-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.free-form[data-free-mode="fixed"] [data-amount-field] { display: none; }
.free-form[data-free-mode="fixed"] .free-grid2--charge { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--glow);
}
.field-input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--ink);
  background: #060d0f;
  border: 0;
  border-bottom: 2px solid var(--line-2);
  border-radius: 4px 4px 0 0;
  padding: .7rem .7rem;
  transition: border-color .18s, background .18s, box-shadow .18s;
  appearance: none;
}
.field-input::placeholder { color: var(--muted-2); }
.field-input:focus {
  outline: none;
  border-bottom-color: var(--glow);
  background: #08171a;
  box-shadow: 0 6px 18px -14px rgba(0, 224, 198, .8);
}
select.field-input {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mid) 50%),
    linear-gradient(135deg, var(--mid) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field-hint { font-family: var(--font-mono); font-size: .66rem; color: var(--muted-2); }
.field-optional {
  color: var(--amber);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: none;
}
.field-required { color: var(--amber); }
.key-detected {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: .55rem .7rem;
  color: var(--muted);
  background: rgba(0, 224, 198, .04);
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: .7rem;
  line-height: 1.35;
}
.key-detected:not([data-key-type="unknown"]) { color: var(--ink); border-style: solid; }
.key-detected:not([data-key-type="unknown"])::before {
  content: "";
  width: 7px; height: 7px;
  margin-right: .5rem;
  flex: none;
  background: var(--glow);
  box-shadow: 0 0 8px rgba(0, 224, 198, .55);
}

.free-actions { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.free-status {
  min-height: 1.4rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
}
.free-status strong { color: var(--coral); font-weight: 600; letter-spacing: .02em; }
.free-status[data-tone="ok"] strong { color: var(--glow); }
.free-status[data-tone="warn"] strong { color: var(--amber); }

/* aviso honesto */
.free-note {
  font-size: .92rem;
  color: var(--muted);
  border-left: 2px solid var(--line-2);
  padding-left: 1rem;
  margin-top: 1.4rem;
}
.free-note b { color: var(--ink); }

/* side rail (product channels) */
.free-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.install-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.3rem 4.1rem;
  transition: transform .3s var(--ease-smooth), border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.install-card::before {
  content: "";
  position: absolute;
  left: 1.3rem; top: 1.4rem;
  width: 34px; height: 34px;
  image-rendering: pixelated;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.install-card.ext::before { background-image: url("sprite-chat-green.png"); }
.install-card.app::before { background-image: url("sprite-bot.png"); }
.install-card.dashboard::before { background-image: url("sprite-qr.png"); }
.install-card.api::before { background-image: url("sprite-zap.png"); }
.install-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 22px 50px -34px rgba(0, 224, 198, .55); }
.install-card span {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--glow);
}
.install-card strong { color: var(--ink); font-size: 1rem; }
.install-card small { color: var(--muted); font-size: .86rem; line-height: 1.5; }

/* ============================ QR MODAL / BOTTOM-SHEET ============================ */
.free-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  background: rgba(3, 8, 9, .8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.free-overlay.show { display: flex; }
:root.modal-open,
body.modal-open { overflow: hidden; overscroll-behavior: none; }
body.modal-open .woot-widget-holder,
body.modal-open .woot--bubble-holder,
body.modal-open .woot-widget-bubble,
body.modal-open #chatwoot_live_chat_widget { display: none !important; }
:root[data-public-menu-open="true"] .woot-widget-holder,
:root[data-public-menu-open="true"] .woot--bubble-holder,
:root[data-public-menu-open="true"] .woot-widget-bubble,
:root[data-public-menu-open="true"] #chatwoot_live_chat_widget { display: none !important; }

.free-modal {
  width: min(920px, calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #0c1517, #070f11);
  border: 2px solid var(--line-2);
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 224, 198, .15);
  animation: modal-in .32s var(--ease-smooth);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px dashed var(--line-2);
}
.modal-head h2 {
  font-family: var(--font-pixel);
  font-size: .72rem;
  color: var(--ink);
  text-shadow: 0 0 14px rgba(0, 224, 198, .35);
}
.modal-close {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: .45em .7em;
  cursor: pointer;
}
.modal-close:hover { color: var(--ink); border-color: var(--line-2); }

.free-modal-body {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 1.3rem;
  padding: 1.4rem;
  align-items: start;
  scrollbar-gutter: stable both-edges;
}
.free-qr-card {
  display: grid;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  justify-items: center;
  gap: .75rem;
  padding: 1.25rem;
  border: 2px solid #008f7c;
  border-radius: 18px;
  color: #08201c;
  background: #f3fbf8;
  box-shadow: inset 0 0 0 1px rgba(0, 143, 124, .14), 0 24px 48px -28px rgba(0, 0, 0, .45);
}
.free-modal[data-result-mode="fixed"] { width: min(920px, calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))); }
.free-modal[data-output-theme="dark"] .free-qr-card {
  color: #ecfffb;
  background: linear-gradient(180deg, #102022, #071011);
  border-color: #00c7b0;
  box-shadow: inset 0 0 0 1px rgba(132, 255, 233, .12), 0 24px 48px -28px rgba(0, 0, 0, .8);
}
.free-modal[data-output-theme="dark"] .free-qr-card__title { color: #f1c15f; }
.free-modal[data-output-theme="light"] .free-qr-card {
  color: #08201c;
  background: #f3fbf8;
  border-color: #008f7c;
  box-shadow: inset 0 0 0 1px rgba(0, 143, 124, .14), 0 24px 48px -28px rgba(0, 0, 0, .45);
}
.free-qr-card__title {
  font-family: var(--font-pixel);
  font-size: .72rem;
  line-height: 1.4;
  color: #9a6300;
  text-align: center;
}
.free-qr-card__brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: inherit;
}
.free-qr-card__brand img { width: 32px; height: 32px; }
.free-qr-card__amount {
  max-width: 28ch;
  color: inherit;
  font-family: var(--font-mono);
  font-size: .75rem;
  line-height: 1.45;
  text-align: center;
  letter-spacing: .08em;
}
.free-qr-card__amount[hidden] { display: none; }
.free-modal[data-output-theme="dark"] .free-qr-card__amount { color: #75f5df; }
.free-modal[data-output-theme="light"] .free-qr-card__amount { color: #006e60; }
.free-qr-card__hint {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: inherit;
  opacity: .76;
  text-align: center;
}
.free-qr-card__recipient {
  max-width: 25ch;
  color: inherit;
  font-family: var(--font-mono);
  font-size: .84rem;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}
.free-result-hint {
  padding: .8rem .9rem;
  color: var(--ink2);
  background: rgba(0, 224, 198, .06);
  border-left: 2px solid var(--glow);
  font-size: .84rem;
  line-height: 1.5;
}
.free-qr {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(0, 143, 124, .28);
}
.free-qr svg, .free-qr img { width: 100%; height: 100%; display: block; }
.free-qr-inline { width: 100%; height: 100%; }
.modal-copy { min-width: 0; display: grid; gap: .9rem; }
.free-output-theme {
  display: grid;
  gap: .45rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg2) 82%, transparent);
}
.free-output-theme__controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.free-output-theme__option {
  min-height: 42px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font: 700 .76rem/1 var(--font-mono);
  cursor: pointer;
}
.free-output-theme__option[aria-pressed="true"] {
  color: var(--ink);
  background: rgba(0, 224, 198, .1);
  border-color: var(--glow);
  box-shadow: inset 0 -2px 0 var(--glow);
}
.free-ta {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.5;
  word-break: break-all;
}
.modal-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.free-fixed-action[hidden] { display: none !important; }
.modal-status { font-family: var(--font-mono); font-size: .74rem; color: var(--mid); min-height: 1.1rem; }
#gpixPrintRoot { display: none; }

@media print {
  @page { margin: 14mm; }
  body.gpix-print-qr {
    min-height: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }
  body.gpix-print-qr::before,
  body.gpix-print-qr::after { content: none !important; display: none !important; }
  body.gpix-print-qr > *:not(#gpixPrintRoot) { display: none !important; }
  body.gpix-print-qr #gpixPrintRoot {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
  }
  #gpixPrintRoot .free-qr-card {
    width: 140mm !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 12mm !important;
    color: #08201c !important;
    background: #f3fbf8 !important;
    border: 1.5mm solid #008f7c !important;
    border-radius: 6mm !important;
    box-shadow: none !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  #gpixPrintRoot .free-qr {
    width: 104mm !important;
    height: 104mm !important;
    padding: 5mm !important;
    box-shadow: none !important;
  }
  #gpixPrintRoot .free-qr-card__title { font-size: 12pt !important; }
  #gpixPrintRoot .free-qr-card__recipient { font-size: 12pt !important; color: inherit !important; }
  #gpixPrintRoot .free-qr-card__brand { display: flex !important; font-size: 18pt !important; }
  #gpixPrintRoot .free-qr-card__brand img { width: 12mm !important; height: 12mm !important; }
  #gpixPrintRoot .free-qr-card__hint { font-size: 10pt !important; }
  #gpixPrintRoot[data-output-theme="dark"] .free-qr-card {
    color: #ecfffb !important;
    background: #071011 !important;
    border-color: #00c7b0 !important;
  }
  #gpixPrintRoot[data-output-theme="dark"] .free-qr-card__title { color: #f1c15f !important; }
}

/* ============================ 4 ROTAS ============================ */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
}
.route {
  position: relative;
  display: flex;
  gap: 1.1rem;
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 1.4rem;
  overflow: hidden;
  transition: transform .3s var(--ease-smooth), border-color .3s, box-shadow .3s;
}
.route:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 26px 60px -36px rgba(0, 224, 198, .55); }
.route__icon {
  flex: none;
  width: 46px; height: 46px;
  image-rendering: pixelated;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  margin-top: .1rem;
}
.route[data-icon="chat"] .route__icon  { background-image: url("sprite-chat-green.png"); }
.route[data-icon="zap"] .route__icon   { background-image: url("sprite-zap.png"); }
.route[data-icon="qr"] .route__icon    { background-image: url("sprite-qr.png"); }
.route[data-icon="bot"] .route__icon   { background-image: url("sprite-bot.png"); }
.route__body h3 { font-size: 1.08rem; color: var(--ink); font-weight: 600; }
.route__body p { margin-top: .5rem; color: var(--muted); font-size: .95rem; line-height: 1.6; }

.route-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1rem, 2.2vw, 1.5rem);
  padding: clamp(1.35rem, 3vw, 1.8rem);
  background: linear-gradient(110deg, rgba(0, 224, 198, .14), rgba(0, 224, 198, .035));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 28px 64px -46px rgba(0, 224, 198, .68);
}
.route-callout h3 { color: var(--ink); font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.route-callout p { max-width: 70ch; margin-top: .45rem; color: var(--muted); font-size: .96rem; line-height: 1.6; }
.route-callout .abtn { flex: none; white-space: nowrap; }

/* ============================ INTEGRATIONS ============================ */
.integration-section {
  overflow: hidden;
  overflow: clip;
  scroll-margin-top: 5rem;
  padding-block: clamp(1.6rem, 2.5vw, 2.25rem) !important;
  color: #eafffb;
  background: #020505;
  border-block: 1px solid rgba(0, 224, 198, .18);
}
.integration-heading {
  display: flex;
  align-items: baseline;
  gap: .55rem 1.25rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}
.integration-heading .kicker { flex: 0 0 auto; }
.integration-heading .section-eyebrow {
  flex: 0 0 auto;
  color: #eafffb;
  font-size: clamp(.78rem, 1.35vw, 1.05rem);
  line-height: 1.45;
}
.integration-heading p {
  flex: 1 1 28rem;
  min-width: 0;
  color: #89aaa5;
  font-size: clamp(.76rem, 1vw, .88rem);
  line-height: 1.5;
}
.integration-stage {
  width: 100%;
  outline: none;
}
.integration-stage:focus-visible {
  box-shadow: inset 0 0 0 2px var(--glow);
}
.integration-lane {
  display: grid;
  gap: .7rem;
}
.integration-lane__head {
  display: flex;
  align-items: baseline;
  gap: .8rem 1.25rem;
  flex-wrap: wrap;
}
.integration-lane__head h3 {
  font-family: var(--font-pixel);
  font-size: clamp(.62rem, 1.2vw, .76rem);
  line-height: 1.45;
  color: var(--glow);
}
.integration-lane__head p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}
.integration-marquee {
  --integration-fade: clamp(2rem, 4vw, 5rem);
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-block: .3rem;
  mask-image: linear-gradient(90deg, transparent, #000 var(--integration-fade), #000 calc(100% - var(--integration-fade)), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--integration-fade), #000 calc(100% - var(--integration-fade)), transparent);
}
.integration-marquee__track {
  display: flex;
  width: max-content;
  min-width: max-content;
  animation: integration-scroll 58s linear infinite;
  will-change: transform;
}
.integration-lane--gateways .integration-marquee__track {
  animation-duration: 52s;
  animation-direction: reverse;
}
.integration-stage:hover .integration-marquee__track,
.integration-stage:focus-within .integration-marquee__track { animation-play-state: paused; }
.integration-marquee__list {
  --integration-gap: clamp(1.7rem, 3vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--integration-gap);
  flex: none;
  min-width: 100vw;
  margin: 0;
  padding: 0 calc(var(--integration-gap) / 2);
  list-style: none;
}
.integration-brand {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  height: clamp(2.35rem, 3.2vw, 3rem);
  padding: 0;
  opacity: .86;
  transition: opacity .2s var(--ease-smooth), transform .24s var(--ease-smooth), filter .24s;
}
.integration-brand--icon { width: clamp(2.35rem, 3.2vw, 3rem); }
.integration-brand--wordmark { width: clamp(5.8rem, 8vw, 8.5rem); }
.integration-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(.92) drop-shadow(0 0 10px rgba(0, 224, 198, .08));
}
:root[data-theme="dark"] .integration-brand img {
  filter: brightness(1.12) saturate(.96) drop-shadow(0 0 11px rgba(0, 224, 198, .1));
}
.integration-brand:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.035);
}
.integration-note {
  max-width: 78ch;
  margin: clamp(.85rem, 1.4vw, 1.1rem) auto 0;
  color: #789994;
  font-size: clamp(.72rem, .9vw, .8rem);
  line-height: 1.55;
  text-align: center;
}

/* ============================ PLANOS / SELECT YOUR PLAYER ============================ */
.pricing {
  position: relative;
  background:
    radial-gradient(800px 500px at 50% -10%, rgba(0, 191, 165, .08), transparent 60%);
}
.pricing > * { position: relative; z-index: 1; }

.billing-toggle { display: flex; justify-content: center; margin: 1.6rem 0 clamp(2.2rem, 4vw, 3rem); }
.toggle {
  display: inline-flex;
  gap: .25rem;
  background: #0a1214;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: .3rem;
}
.toggle button {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: .6em 1.2em;
  cursor: pointer;
  transition: color .2s, background .2s, box-shadow .2s;
}
.toggle button.active {
  color: #04211d;
  background: linear-gradient(180deg, #00e0c6, #00a892);
  box-shadow: 0 0 16px rgba(0, 224, 198, .4);
}

.pricing-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.8vw, 1.4rem);
  align-items: stretch;
}
.pricing-rail.has-visible-extreme { grid-template-columns: repeat(5, 1fr); }

/* CSS "cabinet card" */
.cab {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0b1214 0%, #070e10 100%);
  border: 2px solid var(--line);
  border-radius: 16px 16px 12px 12px;
  padding: 0;
  overflow: hidden;
  transition: transform .32s var(--ease-smooth), border-color .32s, box-shadow .32s;
}
.cab::after {   /* scanline sheen over whole cabinet */
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 3px, rgba(0,0,0,.18) 3px 4px);
  opacity: .35;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.cab:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: 0 34px 80px -40px rgba(0, 224, 198, .6);
}
/* marquee (plan name lights up on hover) */
.cab__marquee {
  position: relative;
  z-index: 1;
  padding: 1rem 1.1rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 224, 198, .10), rgba(0, 224, 198, .02));
  border-bottom: 1px solid var(--line);
  transition: background .32s, box-shadow .32s;
}
.cab:hover .cab__marquee { background: linear-gradient(180deg, rgba(0, 224, 198, .22), rgba(0, 224, 198, .05)); box-shadow: inset 0 0 30px rgba(0, 224, 198, .18); }
.cab__char {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .45rem;
}
.cab__name {
  font-family: var(--font-pixel);
  font-size: .66rem;
  line-height: 1.5;
  color: var(--ink);
  text-shadow: 0 0 14px rgba(0, 224, 198, .3);
}
/* screen (tagline + price) */
.cab__screen {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(180deg, #06110f, #040c0d);
  border-bottom: 1px solid var(--line);
}
.cab__tag { color: var(--mid); font-size: .86rem; line-height: 1.5; min-height: 2.6em; }
.price { margin-top: .9rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; }
.price .amount {
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  color: var(--glow);
  text-shadow: 0 0 16px rgba(0, 224, 198, .35);
}
.price .period { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.price .badge-only { display: none; font-family: var(--font-mono); font-size: .66rem; color: var(--amber); }
.cab.only-monthly .badge-only { display: inline; }
.monthly-saving {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  color: var(--amber);
  letter-spacing: .03em;
}
/* body (bullets) */
.cab__body { z-index: 1; position: relative; padding: 1.15rem 1.2rem 0; flex: 1; }
.feature-list { display: grid; gap: .6rem; }
.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .88rem;
  color: var(--ink2);
  line-height: 1.5;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: 10px; height: 10px;
  background: var(--glow);
  clip-path: polygon(0 0, 100% 50%, 0 100%);   /* play triangle */
  box-shadow: 0 0 8px rgba(0, 224, 198, .5);
}
/* control deck (cta) */
.cab__deck {
  z-index: 1;
  position: relative;
  padding: 1.2rem 1.2rem 1.3rem;
  margin-top: 1.1rem;
}
.cab__deck::before {   /* joystick + buttons motif */
  content: "";
  display: block;
  height: 14px;
  margin-bottom: 1rem;
  background:
    radial-gradient(circle at 10px 50%, var(--coral) 0 5px, transparent 6px),
    radial-gradient(circle at 40px 50%, var(--teal) 0 4px, transparent 5px),
    radial-gradient(circle at 58px 50%, var(--amber) 0 4px, transparent 5px),
    radial-gradient(circle at 76px 50%, var(--coral) 0 4px, transparent 5px);
  background-repeat: no-repeat;
  opacity: .8;
}
.cab .plan-cta {
  width: 100%;
  min-height: 54px;
  padding: .85em 1em;
  font-size: clamp(.58rem, .95vw, .66rem);
  line-height: 1.45;
  letter-spacing: .06em;
  white-space: normal;
  text-align: center;
}

/* featured (Gerador + Bot) — the dominant "MAIS ESCOLHIDO" cabinet */
.cab.featured {
  border-color: var(--glow);
  box-shadow: 0 40px 90px -40px rgba(0, 224, 198, .75), 0 0 0 1px rgba(0, 224, 198, .3);
}
.cab.featured .cab__marquee {
  background: linear-gradient(180deg, rgba(0, 224, 198, .26), rgba(0, 224, 198, .06));
  box-shadow: inset 0 0 34px rgba(0, 224, 198, .22);
}
.cab.featured .cab__name { color: var(--glow); }
.cab.featured .price .amount { font-size: 1.18rem; }
/* solid, glowing MAIS ESCOLHIDO chip so the badge reads as dominant */
.cab.featured .cab__badge {
  color: #04211d;
  background: var(--glow);
  border-color: var(--glow);
  font-weight: 700;
  box-shadow: 0 0 18px rgba(0, 224, 198, .55);
}
.ribbon {
  position: absolute;
  z-index: 2;
  top: 12px; right: -34px;
  transform: rotate(45deg);
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #04211d;
  background: var(--glow);
  padding: .35em 2.6em;
  box-shadow: 0 6px 16px -6px rgba(0, 224, 198, .6);
}
.ribbon.extreme-ribbon { background: var(--coral); color: #2a0608; }
.cab__badge {
  display: inline-block;
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--glow);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: .3em .7em;
}

/* extreme / BOSS */
.cab.extreme { border: 0; background: transparent; }
.cab.extreme::before {   /* spinning conic rim */
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: conic-gradient(from 0deg, #ff3d71, #ffc857, #00e0c6, #64e8ff, #ff3d71);
  z-index: 0;
  animation: spin 6s linear infinite;
}
.cab.extreme > * { position: relative; z-index: 2; }
.cab.extreme::after {   /* inner solid + scanlines on top of rim */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 3px, rgba(0,0,0,.18) 3px 4px),
    linear-gradient(180deg, #0b0e12, #070a0d);
  z-index: 1;
  pointer-events: none;
}
.cab.extreme .cab__marquee {
  background: linear-gradient(180deg, rgba(255, 107, 118, .16), rgba(255, 107, 118, .03));
  border-bottom-color: rgba(255, 107, 118, .3);
}
.cab.extreme .cab__char { color: var(--coral); }
.cab.extreme .price .amount { color: var(--amber); }
.cab.extreme .feature-list li::before { background: var(--coral); box-shadow: 0 0 8px rgba(255, 107, 118, .6); }
.cab.extreme .cab__boss {
  width: 40px; height: 40px;
  margin: 0 auto .5rem;
  background: url("sprite-boss.png") center / contain no-repeat;
  image-rendering: pixelated;
  animation: bob 2.4s var(--ease-elegant) infinite;
}
.extreme-availability {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: .8rem;
  letter-spacing: .03em;
}
.extreme-whynow {
  margin-top: .8rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--coral);
  line-height: 1.5;
  text-align: center;
}

/* extreme hidden until server allows */
[data-extreme-plan][hidden] { display: none !important; }

/* ============================ CONFIANÇA ============================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
}
.trust-grid--direct { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust {
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.5rem;
  transition: transform .3s var(--ease-smooth), border-color .3s;
}
.trust:hover { transform: translateY(-3px); border-color: var(--line-2); }
.trust__tag {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--glow);
}
.trust__tag::before { content: ""; width: 10px; height: 10px; background: var(--glow); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.trust h3 { margin: .85rem 0 .55rem; font-size: 1.06rem; color: var(--ink); font-weight: 600; }
.trust p { color: var(--muted); font-size: .93rem; line-height: 1.6; }

/* ============================ FAQ ============================ */
.faq-list {
  display: grid;
  gap: .7rem;
  max-width: 900px;
  margin-inline: auto;
}
.faq-item {
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .25s;
}
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-pixel);
  font-size: .8rem;
  color: var(--glow);
  transition: transform .25s var(--ease-snap);
  flex: none;
}
.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq-item summary:hover { color: var(--glow); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.faq-answer p { margin: 0; }
.faq-answer ul { display: grid; gap: .45rem; }
.faq-answer li { position: relative; padding-left: 1rem; }
.faq-answer li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; background: var(--glow); }
.faq-answer strong { color: var(--ink2); }

/* ============================ FOOTER ============================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg3);
  padding: clamp(1.3rem, 2.6vw, 1.8rem) 0 1.5rem;
}
.footer-inner {
  width: var(--shell);
  max-width: 900px;
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: .7rem;
  text-align: center;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  text-align: center;
}
.footer-top .brand { font-size: .78rem; justify-content: center; }
.footer-copy { color: var(--muted); font-size: .78rem; text-align: center; }
.legal-copy {
  color: var(--muted-2);
  font-size: .55rem;      /* ~12px — compliance text stays fully visible */
  line-height: 1.5;
  text-align: left;
  border-left: 2px solid var(--line);
  padding-left: .9rem;
}
.legal-copy strong { color: var(--muted); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem 1.15rem;
  width: 100%;
  max-width: 760px;      /* keeps the last link clear of the bottom-right Chatwoot bubble on wide screens */
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .03em;
  padding-top: .5rem;
  border-top: 1px solid var(--hair);
}
.footer-links a { color: var(--mid); transition: color .18s; }
.footer-links a:hover { color: var(--glow); }
.footer-microcopy { font-family: var(--font-mono); font-size: .66rem; color: var(--muted-2); }

/* ============================ SALES RHYTHM / SEAMS ============================ */
/* Hero → proof strip in one scroll. */
.hero + .integration-section { padding-top: clamp(2.2rem, 3.5vw, 3.2rem); }

/* simple header (gerador-gratis page): logo left, CTAs right, no section nav */
.site-header--simple { justify-content: space-between; }
.site-header--simple .nav-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

/* reassurance strip directly under the plans — objection dies near the decision */
.pricing-assurance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
}
.pricing-assurance li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.45;
  color: var(--ink2);
  background: rgba(0, 224, 198, .04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem .9rem;
}
.pricing-assurance li span {
  flex: none;
  width: 12px; height: 12px;
  margin-top: .15em;
  background: var(--glow);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  box-shadow: 0 0 8px rgba(0, 224, 198, .5);
}

/* ============================ TEASER / UPSELL BAND ============================ */
/* Compact interstitial CTA — free-generator teaser on home, upsell on the free page */
.gratis-teaser { padding-block: clamp(2.6rem, 5vw, 4.2rem); }
.teaser-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  flex-wrap: wrap;
  background:
    radial-gradient(700px 320px at 0% 0%, rgba(0, 224, 198, .12), transparent 62%),
    linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.3rem) clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: 0 30px 70px -46px rgba(0, 224, 198, .55);
}
.teaser-band__copy { display: grid; gap: .55rem; min-width: min(100%, 22rem); flex: 1 1 24rem; }
.teaser-band__copy .section-eyebrow { font-size: clamp(.82rem, 2vw, 1.12rem); }
.teaser-band__copy p { color: var(--muted); font-size: .95rem; line-height: 1.6; max-width: 56ch; }
.teaser-band__cta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; flex: none; }

/* Light theme keeps the same PIX ARCADE geometry while lifting public surfaces. */
:root[data-theme="light"] .abtn:not(.abtn--primary):not(.abtn--coral) { --btn-bg: #ffffff; }
:root[data-theme="light"] .abtn:not(.abtn--primary):not(.abtn--coral) {
  --btn-fg: #0b3029;
  --btn-edge: rgba(0, 127, 112, .5);
  box-shadow: 0 4px 0 0 #176f64, 0 13px 24px -14px rgba(0, 127, 112, .42);
}
:root[data-theme="light"] .abtn--primary {
  --btn-bg: linear-gradient(180deg, #23b9a3 0%, #008f7c 100%);
  --btn-fg: #031b17;
  --btn-edge: #72dfd1;
  color: #031b17;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .32);
  box-shadow: 0 5px 0 0 #00695c, 0 15px 28px -14px rgba(0, 127, 112, .58);
}
:root[data-theme="light"] .abtn--primary:active {
  box-shadow: 0 1px 0 0 #00695c, 0 6px 14px -9px rgba(0, 127, 112, .5);
}
:root[data-theme="light"] .crt {
  --ink: #08201c;
  --ink2: #173f38;
  --muted: #4d6a64;
  --muted-2: #647e78;
  --glow: #007f70;
  --mid: #176f64;
  --amber: #9a6300;
  --line: rgba(0, 126, 108, .18);
  --line-2: rgba(0, 126, 108, .34);
  --crt-shadow-color: rgba(6, 57, 49, .25);
}
:root[data-theme="light"] .crt::before {
  background:
    radial-gradient(32% 13% at 50% 97%, rgba(0, 127, 112, .17), transparent 74%),
    linear-gradient(145deg, #fcfffe 0%, #eef9f6 48%, #dff2ed 100%);
  -webkit-mask: url("bezel-crt.png") center / 100% 100% no-repeat;
  mask: url("bezel-crt.png") center / 100% 100% no-repeat;
}
:root[data-theme="light"] .crt::after {
  background: url("bezel-crt.png") center / 100% 100% no-repeat;
  filter: saturate(1.45) contrast(.88) brightness(1.14);
  mix-blend-mode: multiply;
  opacity: .09;
}
:root[data-theme="light"] .crt__screen {
  background:
    radial-gradient(125% 125% at 50% 6%, rgba(255, 255, 255, .9), transparent 54%),
    linear-gradient(180deg, #dff2ed 0%, #f4fbf9 100%);
  box-shadow:
    0 0 0 2px rgba(249, 255, 253, .94),
    0 0 0 5px rgba(0, 127, 112, .8),
    0 0 0 9px rgba(207, 235, 229, .9),
    inset 0 0 0 1px rgba(0, 126, 108, .22),
    inset 0 0 70px rgba(22, 111, 100, .12);
}
:root[data-theme="light"] .crt__screen::before {
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(8, 32, 28, .07) 3px,
    rgba(8, 32, 28, .07) 3px
  );
  mix-blend-mode: multiply;
  opacity: .68;
}
:root[data-theme="light"] .crt__screen::after {
  background: radial-gradient(120% 90% at 50% 50%, transparent 58%, rgba(22, 87, 76, .17) 100%);
}
:root[data-theme="light"] .crt .hero__title {
  text-shadow: 0 0 20px rgba(0, 127, 112, .16), 0 2px 0 rgba(255, 255, 255, .9);
}
:root[data-theme="light"] .crt-demo {
  background: rgba(255, 255, 255, .68);
  box-shadow: inset 0 0 28px rgba(0, 126, 108, .055);
}
:root[data-theme="light"] .crt-demo__top { border-bottom-color: rgba(0, 126, 108, .24); }
:root[data-theme="light"] .demo-message { background: rgba(0, 126, 108, .075); }
:root[data-theme="light"] .demo-payment span {
  box-shadow:
    inset 0 0 0 2px #eff9f6,
    inset 0 0 0 8px var(--glow),
    0 0 10px rgba(0, 127, 112, .28);
}
:root[data-theme="light"] .crt .hud li { background: rgba(0, 126, 108, .065); }
:root[data-theme="light"] .crt-demo .engine {
  background: rgba(234, 247, 243, .94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}
:root[data-theme="light"] .demo-qr i {
  color: #2a1900;
  background: #f1c15f;
}
:root[data-theme="light"] .demo-final { text-shadow: 0 0 12px rgba(0, 127, 112, .2); }
:root[data-theme="light"] .cabinet {
  background: linear-gradient(180deg, #ffffff, #f4faf8);
  box-shadow: 0 30px 70px -44px rgba(0, 74, 63, .28), inset 0 0 0 1px rgba(255, 255, 255, .7);
}
:root[data-theme="light"] .free-tabs,
:root[data-theme="light"] .toggle { background: #e4f0ed; }
:root[data-theme="light"] .field-input {
  color: var(--ink);
  background-color: #ffffff;
}
:root[data-theme="light"] .field-input:focus { background-color: #f7fcfa; }
:root[data-theme="light"] .install-card,
:root[data-theme="light"] .phase,
:root[data-theme="light"] .route,
:root[data-theme="light"] .trust,
:root[data-theme="light"] .teaser-band {
  background-color: var(--bg1);
  background-image: linear-gradient(180deg, #ffffff, #f4faf8);
}
:root[data-theme="light"] .cab { background: linear-gradient(180deg, #ffffff 0%, #f2f8f6 100%); }
:root[data-theme="light"] .cab::after { opacity: .08; }
:root[data-theme="light"] .cab__screen { background: linear-gradient(180deg, #e8f5f1, #f7fcfa); }
:root[data-theme="light"] .free-modal { background: linear-gradient(180deg, #ffffff, #eef7f4); }
:root[data-theme="light"] .free-overlay { background: rgba(9, 32, 28, .68); }
:root[data-theme="light"] ::-webkit-scrollbar-track { background: #e1ece9; }
:root[data-theme="light"] ::-webkit-scrollbar-thumb { background: #8fbab2; border-color: #e1ece9; }

/* ============================ REVEAL / MOTION ============================ */
/* Hiding is gated behind html.js so the page is never blank without JS. */
.reveal {
  transition:
    opacity .62s var(--ease-smooth),
    transform .72s var(--ease-smooth),
    filter .72s var(--ease-smooth);
}
html.js .reveal { opacity: 0; transform: translateY(24px); filter: blur(2px); }
html.js :is(.cab, .phase, .route, .trust, .faq-item, .cabinet, .free-side).reveal {
  transform: translateY(32px) scale(.985);
}
html.js :is(.route-callout, .integration-marquee).reveal {
  transform: translateY(22px);
}
html.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ============================ KEYFRAMES ============================ */
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .25; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: .82; }
  94% { opacity: 1; }
  97% { opacity: .9; }
  98% { opacity: 1; }
}
@keyframes crt-on {
  0% {
    opacity: 0;
    transform: scaleY(.006) scaleX(1);
    filter: brightness(3) drop-shadow(0 var(--crt-shadow-y) var(--crt-shadow-blur) var(--crt-shadow-color));
  }
  35% {
    opacity: 1;
    transform: scaleY(.02) scaleX(1);
    filter: brightness(2.4) drop-shadow(0 var(--crt-shadow-y) var(--crt-shadow-blur) var(--crt-shadow-color));
  }
  55% {
    transform: scaleY(1) scaleX(1);
    filter: brightness(1.6) drop-shadow(0 var(--crt-shadow-y) var(--crt-shadow-blur) var(--crt-shadow-color));
  }
  70% {
    filter: brightness(1) drop-shadow(0 var(--crt-shadow-y) var(--crt-shadow-blur) var(--crt-shadow-color));
  }
  100% {
    opacity: 1;
    transform: none;
    filter: brightness(1) drop-shadow(0 var(--crt-shadow-y) var(--crt-shadow-blur) var(--crt-shadow-color));
  }
}
@keyframes hud-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes integration-scroll {
  to { transform: translateX(-50%); }
}

/* ============================ RESPONSIVE ============================ */
/* Desktop: lift the featured cabinet above the rail so it clearly dominates.
   High specificity (beats html.js .reveal.is-visible) keeps the scale after reveal. */
@media (min-width: 1041px) {
  .pricing-rail .cab.featured,
  .pricing-rail .cab.featured.is-visible { transform: scale(1.035); z-index: 3; }
  .pricing-rail .cab.featured:hover,
  .pricing-rail .cab.featured.is-visible:hover { transform: translateY(-6px) scale(1.035); }
}

@media (min-width: 861px) and (max-height: 820px) {
  .page-home .hero { padding-block: .8rem 1rem; }
  .page-home .hero__inner { gap: .9rem; }
  .page-home .crt { width: min(690px, 100%); }
  .page-home .crt__content { gap: .42rem; }
  .page-home .hero__sub { font-size: .82rem; line-height: 1.35; }
  .page-home .crt-demo { min-height: 146px; padding-block: .5rem; }
  .page-home .demo-stage { min-height: 96px; }
  .page-home .demo-qr { width: 58px; height: 58px; }
  .page-home .crt-demo .engine { bottom: 22px; }
}

@media (max-width: 1040px) {
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-rail,
  .pricing-rail.has-visible-extreme { grid-template-columns: repeat(2, 1fr); }
  .pricing-assurance { grid-template-columns: repeat(2, 1fr); }
  .trust-grid--direct { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-primary {
    position: fixed;
    inset: 61px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 12, 14, .98);
    border-bottom: 1px solid var(--line-2);
    padding: 1rem clamp(1rem, 4vw, 2rem) 1.4rem;
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s, transform .24s, visibility .24s;
  }
  [data-nav-open] .nav-primary { opacity: 1; transform: none; visibility: visible; }
  .nav-links { flex-direction: column; gap: 0; font-size: .84rem; }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--hair); }
  .nav-links a::after { display: none; }
  .nav-actions { margin-top: 1rem; flex-wrap: wrap; }
  .nav-actions .abtn { flex: 1; }
  .nav-toggle { display: inline-flex; }

  .free-layout { grid-template-columns: 1fr; }
  .routes-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .route-callout { align-items: flex-start; flex-direction: column; }

  /* hero: replace the large bezel asset with a compact CSS frame */
  .crt {
    --crt-shadow-y: 24px;
    --crt-shadow-blur: 38px;
    width: 100%;
    aspect-ratio: auto;
    background: none;
    filter: drop-shadow(0 var(--crt-shadow-y) var(--crt-shadow-blur) var(--crt-shadow-color));
  }
  .crt::before,
  .crt::after { display: none; }
  .crt__screen {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    border: 2px solid var(--line-2);
    border-radius: 14px;
    padding: clamp(1.3rem, 5vw, 1.9rem) clamp(1.2rem, 5vw, 1.7rem);
    box-shadow: inset 0 0 0 1px rgba(0, 224, 198, .12), 0 24px 50px -34px rgba(0, 0, 0, .8);
  }
  :root[data-theme="light"] .crt::before {
    display: block;
    inset: -10px;
    border: 2px solid #007f70;
    border-radius: 20px;
    background: linear-gradient(145deg, #fbf8ec, #dce9e3);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .72);
    -webkit-mask: none;
    mask: none;
  }
  :root[data-theme="light"] .crt::after {
    display: block;
    z-index: 3;
    inset: auto 41% -8px;
    height: 3px;
    border-radius: 999px;
    background: #9a6300;
    filter: none;
    mix-blend-mode: normal;
    opacity: .72;
  }
  :root[data-theme="light"] .crt__screen {
    border: 2px solid rgba(0, 126, 108, .64);
    box-shadow:
      inset 0 0 0 1px rgba(0, 126, 108, .22),
      inset 0 0 70px rgba(22, 111, 100, .12),
      0 0 0 2px rgba(255, 255, 255, .68),
      0 24px 50px -34px rgba(6, 35, 30, .45);
  }
  .crt__screen::before { opacity: .35; }
  .pricing__ghost { display: none; }
}

@media (max-width: 620px) {
  .flow-steps { grid-template-columns: 1fr; }
  .pricing-rail,
  .pricing-rail.has-visible-extreme { grid-template-columns: 1fr; }
  .pricing-assurance { grid-template-columns: 1fr; }
  .free-grid2 { grid-template-columns: 1fr; }
  .free-side { grid-template-columns: 1fr; }
  .free-tabs { gap: .45rem; }
  .free-tab { padding: .75rem .65rem; }
  .free-tab strong { font-size: .58rem; }
  .free-tab small { font-size: .6rem; }
  /* column stack: kill row-wrap so the flex-basis:100% badges row doesn't
     wrap into a second column off-screen right (mobile overflow fix). */
  .hero__deck { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .hero__deck .abtn { width: 100%; }
  .hero__badges { flex-basis: auto; }
  .integration-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: .75rem;
  }
  .integration-heading p {
    flex: 0 1 auto;
    width: 100%;
  }
  .integration-marquee__list {
    --integration-gap: 1.45rem;
  }
  .integration-brand { height: 2.25rem; }
  .integration-brand--icon { width: 2.25rem; }
  .integration-brand--wordmark { width: 5.8rem; }
  .integration-note {
    margin-top: .8rem;
    padding-inline: .75rem;
  }
  .hud { grid-template-columns: 1fr; font-size: .58rem; }
  .crt-demo { min-height: 176px; }
  .demo-stage { min-height: 122px; }
  .demo-qr { width: 62px; height: 62px; }
  .demo-copy-band b { font-size: .55rem; }
  .demo-final { font-size: .44rem; text-align: center; }
  .teaser-band { flex-direction: column; align-items: flex-start; }
  .teaser-band__cta { width: 100%; }
  .teaser-band__cta .abtn { flex: 1 1 auto; }
}

/* QR modal → bottom sheet (breakpoint matched to painel: 640px) */
@media (max-width: 640px) {
  .free-overlay {
    align-items: flex-end;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding:
      max(8px, env(safe-area-inset-top))
      env(safe-area-inset-right)
      0
      env(safe-area-inset-left);
    overflow: hidden;
  }
  .free-modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    max-height: 100%;
    overflow: hidden;
    animation: sheet-up .34s var(--ease-smooth);
  }
  .free-modal[data-result-mode="fixed"] { width: 100%; }
  .modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    flex: 0 0 auto;
    min-height: 56px;
    padding: .65rem .75rem .65rem .9rem;
    background: var(--bg1);
  }
  .modal-head h2 {
    min-width: 0;
    font-size: clamp(.57rem, 2.7vw, .68rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .modal-close {
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    padding: .5rem .65rem;
  }
  .free-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: start;
    gap: .9rem;
    padding:
      .85rem
      max(.75rem, env(safe-area-inset-right))
      max(1rem, env(safe-area-inset-bottom))
      max(.75rem, env(safe-area-inset-left));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    text-align: center;
  }
  .free-qr-card { width: 100%; min-width: 0; max-width: 360px; }
  .free-qr {
    width: min(76vw, 280px);
    height: auto;
    max-width: 100%;
    aspect-ratio: 1;
    padding: clamp(10px, 3vw, 14px);
  }
  .modal-copy { width: 100%; text-align: left; }
  .free-ta {
    min-height: 96px;
    resize: none;
    font-size: max(.8rem, 16px);
  }
  .modal-actions {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }
  .modal-actions .abtn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-inline: .45rem;
    white-space: normal;
  }
  #freeBtnCopy { order: 0; width: 100%; }
  .free-modal:not([data-result-mode="fixed"]) #freeClose2 { grid-column: 1 / -1; }
  .free-modal[data-result-mode="fixed"] .modal-actions {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .free-modal[data-result-mode="fixed"] .modal-actions .abtn {
    min-width: 0;
    white-space: normal;
  }
  .free-modal[data-result-mode="fixed"] .free-fixed-action,
  .free-modal[data-result-mode="fixed"] #freeBtnDownload,
  .free-modal[data-result-mode="fixed"] #freeBtnCopy,
  .free-modal[data-result-mode="fixed"] #freeClose2 { order: 0; }
  .modal-status { text-align: center; }
}

@keyframes sheet-up {
  from { transform: translateY(100%); }
  to   { transform: none; }
}

/* ============================ CALM MODE / REDUCED MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .integration-marquee { overflow: visible; mask-image: none; -webkit-mask-image: none; }
  .integration-marquee__track { display: block; width: auto; min-width: 0; animation: none; transform: none; will-change: auto; }
  .integration-marquee__list { justify-content: center; flex-wrap: wrap; }
  .integration-marquee__list[aria-hidden="true"] { display: none; }
}

[data-calm="1"] *,
[data-calm="1"] *::before,
[data-calm="1"] *::after {
  animation: none !important;
  transition-duration: .001ms !important;
}
[data-calm="1"] .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
[data-calm="1"] .crt { opacity: 1 !important; }
[data-calm="1"] .crt__content > * { opacity: 1 !important; }
[data-calm="1"] .hero__sky { transform: none !important; }
[data-calm="1"] .hero__spark { display: none; }
[data-calm="1"] .integration-marquee { overflow: visible; mask-image: none; -webkit-mask-image: none; }
[data-calm="1"] .integration-marquee__track { display: block; width: auto; min-width: 0; transform: none !important; will-change: auto; }
[data-calm="1"] .integration-marquee__list { justify-content: center; flex-wrap: wrap; }
[data-calm="1"] .integration-marquee__list[aria-hidden="true"] { display: none; }
[data-calm="1"] .crt__screen::after { display: none; }        /* kill flicker */
[data-calm="1"] .crt__screen::before { opacity: .3; }         /* softer scanlines */
[data-calm="1"] .public-atmosphere::after { opacity: .03; }  /* less grain */
[data-calm="1"] .kicker::before,
[data-calm="1"] .insert-coin { opacity: 1; }
[data-calm="1"] .cab.extreme::before { background: var(--coral); }  /* static rim */

/* honor OS reduced-motion even before JS sets calm */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .crt { opacity: 1; }
  .crt__screen::after,
  .hero__spark { animation: none; }
  .cab.extreme::before { animation: none; }
}
