/* Dhando POS — landing_page_3
   Brand from the logo: navy "Dhan", cyan→blue "Do" chevron.
   Type: Bricolage Grotesque + Noto Sans + IBM Plex Mono.
   Space: 8px grid. Radius is sharp except the phone. */

:root {
  --paper: #F3F8FC;
  --sheet: #F7FBFE;
  --white: #FFFFFF;
  --ink: #0B1B3A;
  --ink-2: #3A4A63;
  --muted: #667085;
  --line: #D6E4F2;
  --brand: #2061FB;
  --brand-2: #33C9FC;
  --stamp: #2061FB;
  --stamp-deep: #1242C7;
  --teal: #0E7A6B;
  --teal-soft: #E6F6F2;
  --night: #0B1B3A;
  --night-2: #122445;
  --receipt: #FFFDF6;
  --brass: #C4A35A;
  --ok: #168A5A;
  --warn: #C45C12;
  --offline: #E11D48;

  --font-display: "Bricolage Grotesque", "Noto Sans Devanagari", sans-serif;
  --font-body: "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --nav-h: 72px;
  --max: 1160px;
  --gutter: clamp(20px, 4.2vw, 48px);
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 88px;
  --s8: 128px;

  --phone-w: 278px;
  --phone-r: 34px;
  --btn-r: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  min-height: 100dvh;
  max-width: 100%;
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  z-index: 90;
  pointer-events: none;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  font-size: 13px;
}

.skip:focus {
  top: 12px;
}

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

/* ── Type ────────────────────────────────────────────────────────── */

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--ink);
}

.lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
}

.muted {
  color: var(--muted);
}

/* ── Buttons / stamp ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--btn-r);
  font-weight: 700;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}

.btn-stamp {
  background: linear-gradient(90deg, var(--brand-2) 0%, var(--brand) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(32, 97, 251, 0.22);
  letter-spacing: 0.01em;
}

.btn-stamp:hover {
  background: linear-gradient(90deg, #1AB4F2 0%, var(--stamp-deep) 100%);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 12px 18px;
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ── NAV ─────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, background 200ms;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--sheet) 92%, transparent);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.nav-links a:hover {
  color: var(--ink);
}

.has-dropdown { position: relative; }

.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.has-dropdown .chev {
  font-size: 10px;
  opacity: 0.55;
  transition: transform 160ms var(--ease);
}

.has-dropdown:hover > a,
.has-dropdown:focus-within > a { color: var(--ink); }

.has-dropdown:hover .chev,
.has-dropdown:focus-within .chev {
  transform: rotate(180deg);
  opacity: 1;
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(11, 27, 58, 0.12);
  z-index: 220;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0s 160ms;
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

.dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: #EEF4FF;
  color: var(--brand);
}

.drawer details {
  border-bottom: 1px solid var(--line);
}

.drawer summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 4px;
  font-weight: 700;
}

.drawer summary::-webkit-details-marker { display: none; }

.drawer details a {
  padding: 8px 4px 8px 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 16px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  margin-left: auto;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  transition: transform 160ms var(--ease), top 160ms var(--ease), background 160ms var(--ease);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

.drawer {
  display: none;
}

/* ── HERO ────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 40px 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  gap: 32px;
  align-items: end;
  min-height: calc(100dvh - var(--nav-h) - 88px);
}

.hero-copy {
  padding-bottom: 56px;
}

.hero .kicker {
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--brand);
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.hero-aside {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.hero-aside a { color: var(--brand); }

.hero-fine {
  font-size: 13px;
  color: var(--muted);
}

.hero-fine a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tour-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-stage {
  position: relative;
  height: 100%;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-devices {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  width: 100%;
  position: relative;
  z-index: 4;
}

.counter-top {
  position: absolute;
  left: -8%;
  right: -20%;
  bottom: 0;
  height: 92px;
  background:
    linear-gradient(180deg, #3A434F 0%, #252B33 40%, #1A1F26 100%);
  box-shadow: 0 -8px 0 #4A5562 inset;
  z-index: 2;
}

.counter-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
  background: linear-gradient(90deg, #8A6A3A, #C4A35A 40%, #8A6A3A);
}

.phone {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  width: var(--phone-w);
  margin-bottom: 48px;
  background: #11151C;
  border-radius: var(--phone-r);
  padding: 10px;
  box-shadow:
    0 30px 60px rgba(16, 24, 38, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: rotate(-3.5deg) translateY(12px);
  animation: phone-settle 1.1s var(--ease) both;
}

.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  background: #eef2f6;
  aspect-ratio: 390 / 844;
}

.phone-screen picture {
  display: block;
  width: 100%;
  height: 100%;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-notch {
  display: none;
}

.printer-block {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  width: 210px;
  margin-bottom: 36px;
  filter: drop-shadow(8px 18px 16px rgba(16, 24, 38, 0.28));
  pointer-events: none;
}

.printer-video {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  transform: rotate(4deg);
}

.float-chip {
  position: absolute;
  z-index: 6;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(16, 24, 38, 0.1);
  animation: chip-float 4.5s ease-in-out infinite;
}

.float-chip.offline {
  left: 2%;
  top: 18%;
  color: var(--teal);
}

.float-chip.print {
  right: -2%;
  top: 38%;
  color: var(--ink);
  animation-delay: -1.6s;
}

/* ── Marquee ─────────────────────────────────────────────────────── */

.ticker {
  border-block: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding: 14px 0;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 36s linear infinite;
}

.ticker-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0 28px;
  white-space: nowrap;
}

.ticker-track span::before {
  content: "•";
  color: var(--brand-2);
  margin-right: 28px;
}

/* ── Sections ────────────────────────────────────────────────────── */

.band {
  padding: var(--s7) 0;
  scroll-margin-top: calc(var(--nav-h) + 28px);
}

.band-head {
  max-width: 640px;
  margin-bottom: var(--s5);
}

.band-head.center {
  margin-inline: auto;
  text-align: center;
}

.band-title {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 10px 0 16px;
}

.band-title em {
  font-style: normal;
  color: var(--brand);
}

.band--white { background: var(--white); }
.band--sheet { background: var(--sheet); }
.band--paper { background: var(--paper); }
.band--night {
  background: var(--night);
  color: #E8EDF3;
}

.band--night .band-title,
.band--night .display { color: #F4F7FB; }

.band--night .band-title em { color: var(--brand-2); }

.band--night .lead,
.band--night .band-lead { color: #B7C2D0; }

.band-lead {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 48ch;
}

/* ── Voices (customer POV video testimonials) ────────────────────── */

.voices {
  display: grid;
  grid-template-columns: 1fr 1.45fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--s2);
  max-width: 820px;
  margin-inline: auto;
  align-items: center;
}

.voice[data-slot="0"] { grid-column: 1; grid-row: 1; }
.voice[data-slot="1"] { grid-column: 1; grid-row: 2; }
.voice[data-slot="2"] { grid-column: 2; grid-row: 1 / 3; display: flex; }
.voice[data-slot="3"] { grid-column: 3; grid-row: 1; }
.voice[data-slot="4"] { grid-column: 3; grid-row: 2; }

.voice[data-slot="2"] .voice-frame {
  width: min(360px, 38vw);
  max-height: 100%;
  margin-inline: auto;
  box-shadow: 0 24px 50px -24px rgba(32, 97, 251, 0.5);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}

.voice.is-featured .voice-tag {
  background: var(--brand);
  border-color: var(--brand);
}

.voice:not(.is-featured) {
  cursor: pointer;
}

.voice:not(.is-featured) .voice-cap { display: none; }

.voice:not(.is-featured) .voice-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.voice {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(11, 27, 58, 0.02);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
    border-color 220ms var(--ease);
}

.voice:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: 0 14px 30px -18px rgba(32, 97, 251, 0.45);
}

.voice-frame {
  position: relative;
  aspect-ratio: 1 / 1; /* Instagram post square */
  background: var(--night);
  overflow: hidden;
}

.voice-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.voice-video:not(:fullscreen) {
  aspect-ratio: 1 / 1;
}

.voice-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(11, 27, 58, 0.55);
  backdrop-filter: blur(6px);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.voice-cap {
  padding: 14px 16px 16px;
  display: grid;
  gap: 6px;
}

.voice-quote {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
}

.voice-name {
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.voices-note {
  margin-top: var(--s4);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* Tap-to-play affordance */
.voice-video::-webkit-media-controls {
  display: none !important;
}

@media (max-width: 700px) {
  .voices {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    max-width: 460px;
  }
  .voice { grid-column: auto !important; grid-row: auto !important; }
  .voice[data-slot="2"] { grid-column: 1 / -1 !important; }
  .voice[data-slot="2"] .voice-frame { width: 100%; max-width: 320px; }
  .voice:not(.is-featured) .voice-cap { display: grid; }
  .voice-quote { font-size: 13px; }
  .voice-name { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .voice:hover { transform: none; }
}

/* ── Voice lightbox (popup with audio + prev/next) ──────────────── */

.voice-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}

.voice-modal[hidden] { display: none !important; }

.voice-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 33, 0.86);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.voice-modal-stage {
  position: relative;
  z-index: 2;
  width: min(92vw, 560px);
  display: grid;
  gap: 14px;
}

.voice-modal-video {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.voice-modal-cap {
  background: var(--white);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.voice-modal-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.voice-modal-quote {
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
}

.voice-modal-name {
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.voice-close,
.voice-nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(11, 27, 58, 0.55);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.voice-close svg,
.voice-nav svg { width: 22px; height: 22px; pointer-events: none; }

.voice-close {
  top: clamp(16px, 4vw, 28px);
  right: clamp(16px, 4vw, 28px);
}

.voice-close:hover { background: rgba(225, 29, 72, 0.85); transform: rotate(90deg); }

.voice-nav { top: 50%; transform: translateY(-50%); }
.voice-prev { left: clamp(8px, 3vw, 24px); }
.voice-next { right: clamp(8px, 3vw, 24px); }

.voice-nav:hover { background: var(--brand); }
.voice-nav:active { transform: translateY(-50%) scale(0.94); }

.voice-counter {
  position: absolute;
  z-index: 3;
  bottom: clamp(14px, 3vw, 22px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--white);
  background: rgba(11, 27, 58, 0.55);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 560px) {
  .voice-nav { width: 38px; height: 38px; }
  .voice-nav svg { width: 18px; height: 18px; }
  .voice-modal-stage { width: 92vw; }
  .voice-modal-quote { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .voice-close:hover { transform: none; }
  .voice-nav:active { transform: translateY(-50%); }
}

/* ── Proof ───────────────────────────────────────────────────────── */

.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}

.proof-item {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.proof-item:last-child { border-right: 0; }

.proof-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.proof-num span {
  color: var(--brand);
}

.proof-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Tour ────────────────────────────────────────────────────────── */

.tour {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.tour-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}

.tour-tab {
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

.tour-tab.is-active {
  border-left-color: var(--brand);
  color: var(--ink);
  background: var(--white);
}

.tour-tab small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.tour-frame {
  display: flex;
  justify-content: center;
  background:
    linear-gradient(180deg, transparent 0%, transparent 70%, #252B33 70%, #1A1F26 100%);
  padding: 24px 24px 72px;
  min-height: 640px;
}

.tour-frame .phone {
  transform: none;
  animation: none;
  margin: 0;
}

.tour-caption {
  margin-top: 20px;
  max-width: 42ch;
}

/* ── Ledger ──────────────────────────────────────────────────────── */

.ledger {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.ledger th,
.ledger td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.ledger th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--sheet);
}

.ledger tr:hover td {
  background: #F7F9FB;
}

.ledger .mark {
  font-family: var(--font-mono);
  color: var(--teal);
  font-weight: 600;
}

.ledger .name {
  font-weight: 700;
  color: var(--ink);
}

.ledger .why {
  color: var(--ink-2);
  font-size: 14px;
}

/* ── Splits ──────────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.scene-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scene-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.scene-list b {
  display: block;
  margin-bottom: 2px;
}

.dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  background: var(--teal-soft);
  color: var(--teal);
}

.band--night .dot {
  background: #1C3A34;
  color: #8EE0C8;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F87171;
  margin-bottom: 16px;
}

.signal i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F87171;
  animation: pulse 1.4s ease-in-out infinite;
}

.offline-phone {
  position: relative;
  padding-bottom: 28px;
}

.offline-phone .phone {
  transform: none;
  animation: none;
  margin: 0 auto;
}

.queued {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  background: #14201C;
  color: #8EE0C8;
  border: 1px solid #2A5A4C;
  padding: 10px 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  white-space: nowrap;
  z-index: 6;
}

/* ── Print / labels ──────────────────────────────────────────────── */

.print-row {
  display: grid;
  grid-template-columns: 1fr 280px 1fr;
  gap: 32px;
  align-items: center;
}

.printer-shot {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--white);
}

.band--night .pill {
  background: var(--night-2);
  border-color: #2A3546;
  color: #D5DEE8;
}

.labels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.label-tag {
  background: var(--white);
  border: 1px dashed #C9B48A;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #222;
}

.label-tag strong {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  margin-bottom: 4px;
}

.barcode {
  height: 28px;
  margin: 8px 0 4px;
  background: repeating-linear-gradient(
    90deg,
    #111 0 2px,
    transparent 2px 3px,
    #111 3px 4px,
    transparent 4px 6px,
    #111 6px 7px,
    transparent 7px 8px
  );
}

/* ── Restaurant ──────────────────────────────────────────────────── */

.floor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #1A2434;
  padding: 16px;
  border: 1px solid #2A3546;
}

.table-tile {
  aspect-ratio: 1.2;
  display: grid;
  place-content: center;
  gap: 4px;
  background: #121A26;
  border: 1px solid #2A3546;
  font-size: 13px;
  text-align: center;
}

.table-tile b {
  font-family: var(--font-display);
  font-size: 22px;
}

.table-tile.free { color: #8EE0C8; border-color: #245C4C; }
.table-tile.busy { color: #F5C16C; border-color: #6A4E22; }
.table-tile.ready { color: #7EB6FF; border-color: #2A4E7A; }

.kot {
  margin-top: 12px;
  background: #121A26;
  border: 1px dashed #3A4658;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #C9D4E0;
}

/* ── Appearance ──────────────────────────────────────────────────── */

.theme-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.theme-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.theme-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
}

.theme-card figcaption {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Steps ───────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
}

.step-n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stamp);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--ink-2);
}

.step-join {
  width: 24px;
  align-self: center;
  height: 1px;
  background: var(--stamp);
}

/* ── Pricing ─────────────────────────────────────────────────────── */

.price-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--white);
  margin: 8px 0 28px;
}

.price-toggle button {
  background: transparent;
  border: 0;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}

.price-toggle button.is-on {
  background: var(--ink);
  color: var(--white);
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rate {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
}

.rate.is-hot {
  border-color: var(--stamp);
  box-shadow: 0 0 0 1px var(--stamp);
}

.rate-badge {
  position: absolute;
  top: 0;
  right: 16px;
  background: var(--stamp);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 8px;
}

.rate h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 4px;
}

.rate-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.rate-amt {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.rate-amt small {
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0;
}

.rate ul {
  list-style: none;
  margin: 20px 0 24px;
  color: var(--ink-2);
  font-size: 14px;
}

.rate li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.rate .btn {
  width: 100%;
  justify-content: center;
}

.price-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ── FAQ ─────────────────────────────────────────────────────────── */

.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 8px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--stamp);
}

.faq details[open] summary::after { content: "–"; }

.faq p {
  padding: 0 8px 20px;
  color: var(--ink-2);
  max-width: 72ch;
}

/* ── Contact ─────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 4px 0 8px;
}

.contact-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.contact-card a.btn {
  font-size: 14px;
}

/* ── Final CTA ───────────────────────────────────────────────────── */

.finale {
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(800px 280px at 50% 0%, rgba(32, 97, 251, 0.28), transparent 70%),
    var(--night);
  color: #F4F7FB;
}

.finale h2 {
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.12;
  margin: 12px 0 16px;
  max-width: 18ch;
  margin-inline: auto;
}

.finale p {
  color: #B7C2D0;
  margin-bottom: 28px;
}

/* ── Footer ──────────────────────────────────────────────────────── */

.foot {
  background: #0B111A;
  color: #9AA8B8;
  padding: 40px 0 28px;
  font-size: 13px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.foot a:hover { color: #fff; }

.foot h4 {
  color: #E8EDF3;
  font-size: 13px;
  margin-bottom: 12px;
}

.foot ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-line {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 10px var(--gutter) 0;
}

.entity {
  border-top: 1px solid #1C2633;
  padding-top: 28px;
  margin-bottom: 28px;
}

.entity h2 {
  color: #E8EDF3;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}

.entity dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}

.entity dt {
  color: #E8EDF3;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.entity dd {
  color: #9AA8B8;
  font-size: 13px;
  line-height: 1.5;
}

.entity a { color: #8EC8FF; }

.foot-copy {
  border-top: 1px solid #1C2633;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Reveal ──────────────────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  animation: none;
}

[data-reveal].is-in {
  animation: rise 700ms var(--ease) forwards;
}

/* ── Motion ──────────────────────────────────────────────────────── */

@keyframes phone-settle {
  from { opacity: 0; transform: rotate(-8deg) translateY(40px); }
  to   { opacity: 1; transform: rotate(-3.5deg) translateY(12px); }
}

@keyframes receipt-drop {
  from { opacity: 0; transform: rotate(6deg) translateY(-24px); }
  to   { opacity: 1; transform: rotate(6deg) translateY(0); }
}

@keyframes line-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-18deg) scale(1.3); }
  to   { opacity: 1; transform: rotate(-8deg) scale(1); }
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .nav-links,
  .nav-cta { display: none; }

  .nav-toggle { display: grid; place-items: center; }

  .drawer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: var(--sheet);
    border-bottom: 1px solid var(--line);
  }

  .drawer[hidden] { display: none; }

  .drawer a {
    padding: 12px 4px;
    font-weight: 700;
  }

  .hero-grid,
  .split,
  .split.reverse,
  .tour,
  .print-row,
  .price-grid,
  .contact-grid,
  .theme-row,
  .steps,
  .proof,
  .foot-grid {
    display: flex;
    flex-direction: column;
    direction: ltr;
  }

  .hero-grid {
    min-height: 0;
    gap: 8px;
    align-items: stretch;
  }

  .hero-copy {
    position: relative;
    z-index: 5;
    padding-bottom: 12px;
  }

  .hero-title { font-size: clamp(32px, 9vw, 48px); line-height: 1.12; }

  .hero-stage {
    min-height: 0;
    height: auto;
    margin-top: 12px;
    justify-content: center;
    overflow: visible;
    pointer-events: none;
  }

  .hero-devices {
    gap: 12px;
    justify-content: center;
  }

  .hero-stage .phone {
    width: min(200px, 46%);
    transform: none !important;
    animation: none !important;
    margin: 0 0 36px;
  }

  .hero-stage .printer-block {
    display: block;
    width: min(148px, 38%);
    margin: 0 0 22px;
  }

  .hero-stage .printer-video {
    transform: rotate(2deg);
  }

  .counter-top {
    left: 0;
    right: 0;
  }

  .float-chip { display: none; }

  .band { padding: 56px 0; }

  .tour-frame {
    min-height: 0;
    padding: 12px 12px 56px;
  }

  .counter-top { height: 64px; }

  .proof-item { border-right: 0; border-bottom: 1px solid var(--line); }

  .tour-tabs {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
  }

  .tour-tab { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .tour-tab.is-active { border-bottom-color: var(--stamp); }

  .labels-grid { grid-template-columns: 1fr 1fr; }

  .ledger { min-width: 0; }
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger td {
    display: block;
    width: 100%;
  }
  .ledger tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .ledger td { padding: 2px 16px; border: 0; }
  .ledger .mark { font-size: 12px; }

  .entity dl { grid-template-columns: 1fr; }

  .step-join { width: 1px; height: 16px; margin: 0 auto; }

  .float-chip.print { display: none; }
}

@media (max-width: 980px) {
  .wa { display: none; }

  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 140;
    background: var(--night);
    border-top: 1px solid #24344A;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  .dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-weight: 700;
    font-size: 15px;
    color: #E8EDF3;
  }

  .dock-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff !important;
  }

  body.has-cookie .dock { display: none; }
  body:not(.has-cookie) { padding-bottom: 68px; }
}

@media (max-width: 560px) {
  body::before { width: 2px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .hero-stage {
    min-height: 0;
    justify-content: center;
  }
  .hero-devices {
    gap: 10px;
    padding-inline: 4px;
  }
  .hero-stage .phone {
    width: 48%;
    max-width: 168px;
    margin: 0 0 40px;
  }
  .hero-stage .printer-block {
    display: block;
    width: 42%;
    max-width: 150px;
    margin: 0 0 28px;
  }
  .hero-copy { padding-bottom: 8px; }
  .shop-line { text-align: left; padding-top: 12px; }
  .proof-num { font-size: 32px; }
  .theme-card img { height: 140px; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
  .legal-hero { padding: 32px 0 20px; }
  .nav-logo img { height: 30px; }
}

/* ── Legal pages ─────────────────────────────────────────────────── */

.legal-hero {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.legal-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 10px 0 12px;
}

.legal-meta {
  font-size: 14px;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  padding: 48px 0 88px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.legal-toc a {
  color: var(--ink-2);
  padding: 4px 0 4px 10px;
  border-left: 2px solid var(--line);
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--brand);
  border-left-color: var(--brand);
}

.legal-doc {
  max-width: 72ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}

.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 36px 0 12px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.legal-doc h3 {
  font-size: 17px;
  color: var(--ink);
  margin: 22px 0 8px;
}

.legal-doc p,
.legal-doc ul,
.legal-doc ol {
  margin-bottom: 14px;
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 1.2em;
}

.legal-doc li { margin-bottom: 6px; }

.legal-doc a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 14px;
}

.legal-doc th,
.legal-doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal-doc th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--sheet);
}

.legal-note {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 14px 16px;
  margin: 16px 0 24px;
  font-size: 14px;
}

.foot-copy a {
  color: #8EC8FF;
  margin-left: 12px;
}

.cookie {
  position: fixed;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  z-index: 150;
  background: var(--night);
  color: #E8EDF3;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(11, 27, 58, 0.28);
  border: 0;
  border-top: 1px solid #24344A;
}

.cookie { display: block; }
.cookie[hidden] { display: none !important; }

.cookie-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cookie p {
  font-size: 14px;
  line-height: 1.45;
  color: #C5D3E4;
}

.cookie a { color: #8EC8FF; text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
}

.cookie-actions .btn-ghost {
  border-color: #4A5C73;
  color: #E8EDF3;
}

.ledger-wrap { overflow-x: auto; }

@media (max-width: 980px) {
  .legal-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .legal-toc a {
    border-left: 0;
    padding: 4px 0;
  }
}

/* ── WhatsApp widget ─────────────────────────────────────────────── */

.wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 160;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

body.has-cookie .wa { bottom: 168px; }

.dock { display: none; }

.wa-bubble {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  pointer-events: auto;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 8px 22px rgba(18, 140, 126, 0.4);
  cursor: pointer;
  color: #fff;
}

.wa-bubble:hover { transform: scale(1.06); }

.wa-bubble svg { width: 28px; height: 28px; }

.wa-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--stamp);
  border: 2px solid #fff;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  animation: pulse 1.6s ease-in-out infinite;
}

.wa-popup {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(300px, calc(100vw - 40px));
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(11, 27, 58, 0.18);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}

.wa-popup.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.wa-head {
  background: #0B1B3A;
  color: #fff;
  padding: 14px 14px 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-head strong { display: block; font-size: 14px; }
.wa-head span { font-size: 11px; color: #8EE0C8; }

.wa-x {
  margin-left: auto;
  background: none;
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.wa-body {
  padding: 14px 16px;
  background: #F3F8FC;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.wa-go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 14px 14px;
  padding: 11px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

/* ── Lead modal ──────────────────────────────────────────────────── */

.lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(11, 27, 58, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.lead-overlay[hidden] { display: none !important; }

.lead-card {
  position: relative;
  width: min(860px, 100%);
  margin: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(11, 27, 58, 0.28);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

.lead-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  align-items: stretch;
}

.lead-main { min-width: 0; }

.lead-head {
  padding: 22px 22px 0;
  position: relative;
}

.lead-head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.03em;
  margin: 6px 0 8px;
}

.lead-head p { color: var(--ink-2); font-size: 14px; padding-bottom: 8px; }

.lead-head .kicker[hidden],
.lead-head h2[hidden],
.lead-head p[hidden] { display: none !important; }

body.has-lead .cookie { visibility: hidden; pointer-events: none; }

.lead-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 27, 58, 0.35);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
}

.lead-form {
  padding: 8px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-form[hidden] { display: none !important; }

.lead-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.lead-form input,
.lead-form select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--sheet);
  font: inherit;
}

.lead-form input.is-err,
.lead-form select.is-err { border-color: #D61F26; }

.lead-form .btn { width: 100%; justify-content: center; }

.lead-note { font-size: 12px; color: var(--muted); text-align: center; }

.lead-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-err {
  margin: 0;
  font-size: 13px;
  color: #D61F26;
  text-align: center;
}

.lead-err[hidden] { display: none !important; }

.lead-thanks {
  padding: 4px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-thanks[hidden] { display: none !important; }

.lead-thanks .lead-thanks-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}

.lead-thanks p { color: var(--ink-2); font-size: 14px; margin: 0; }

.lead-thanks .btn { width: 100%; justify-content: center; }

.lead-offer {
  background: var(--night);
  color: #E8EDF3;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.lead-offer .kicker { color: var(--brand-2); margin-bottom: 10px; }

.lead-offer-pack {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

.lead-offer-plus {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--brand-2);
  margin: 6px 0 0;
}

.lead-offer-price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 14px 0 0;
  line-height: 1;
}

.lead-offer-price span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: #8EC8FF;
  margin-left: 6px;
}

.lead-offer-devices {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding: 16px 4px 4px;
}

.lead-device-phone {
  width: 118px;
  margin: 0;
  padding: 5px;
  background: #11151C;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  transform: rotate(-3.5deg);
  overflow: hidden;
}

.lead-device-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.lead-device-printer {
  width: 90px;
  height: auto;
  display: block;
  transform: rotate(4deg);
  filter: drop-shadow(4px 10px 12px rgba(0, 0, 0, 0.4));
}

@media (max-width: 860px) {
  .lead-split {
    grid-template-columns: 1fr;
  }

  .lead-offer {
    order: -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "kicker devices"
      "pack devices"
      "plus devices"
      "price devices";
    column-gap: 8px;
    row-gap: 2px;
    align-items: center;
    min-height: 0;
    padding: 16px 44px 12px 16px;
  }

  .lead-offer .kicker { grid-area: kicker; margin-bottom: 4px; }
  .lead-offer-pack { grid-area: pack; font-size: 16px; }
  .lead-offer-plus { grid-area: plus; font-size: 14px; margin-top: 0; }
  .lead-offer-price { grid-area: price; font-size: 26px; margin-top: 6px; }

  .lead-offer-devices {
    grid-area: devices;
    margin-top: 0;
    padding: 0;
    gap: 6px;
  }

  .lead-device-phone { width: 52px; padding: 3px; border-radius: 8px; }
  .lead-device-phone img { border-radius: 6px; }
  .lead-device-printer { width: 42px; }

  .lead-head { padding-top: 16px; }
}

@media (max-width: 980px) {
  .wa { display: none !important; }
}

@media (max-width: 560px) {
  .wa { right: 14px; bottom: 14px; }
  body.has-cookie .wa { bottom: 196px; }
}
