/* ==========================================================================
   Cloud Access LLC — Vending Solutions
   Design system + site styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand blues, pulled from the logo gradient (bright cyan-blue → deep navy) */
  --ink-900: #04122b;
  --ink-800: #071d42;
  --ink-700: #0b2c63;
  --ink-600: #10407f;

  --brand-700: #0a56b8;
  --brand-600: #0f6fe0;
  --brand-500: #2b95f5;
  --brand-400: #4fb0fb;
  --brand-300: #8ccefd;
  --brand-100: #dceeff;
  --brand-50: #f0f7ff;

  --paper: #ffffff;
  --paper-alt: #f4f8fd;
  --line: #e1eaf5;
  --line-strong: #c9daed;

  --text: #14213a;
  --text-mute: #56688a;
  --text-invert: #ffffff;
  --text-invert-mute: #a9c4e6;

  --signal: #00d2ff;
  --warn-bg: #fff7e6;
  --warn-line: #f0d093;
  --warn-text: #6b4a05;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--brand-400) 0%, var(--brand-600) 100%);
  --grad-deep: linear-gradient(165deg, #123a7d 0%, var(--ink-800) 55%, var(--ink-900) 100%);
  --grad-text: linear-gradient(120deg, #9fdcff 0%, #4fb0fb 45%, #ffffff 100%);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Fluid type scale */
  --fs-display: clamp(2.6rem, 1.4rem + 4.6vw, 4.6rem);
  --fs-h1: clamp(2.1rem, 1.35rem + 3vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.42vw, 1.28rem);
  --fs-body: 1.02rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.79rem;

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(9, 30, 66, 0.08), 0 2px 6px rgba(9, 30, 66, 0.05);
  --sh-md: 0 4px 12px rgba(9, 30, 66, 0.08), 0 12px 28px rgba(9, 30, 66, 0.07);
  --sh-lg: 0 8px 24px rgba(9, 30, 66, 0.1), 0 28px 60px rgba(9, 30, 66, 0.12);
  --sh-glow: 0 10px 34px rgba(15, 111, 224, 0.34);

  --wrap: 1180px;
  --wrap-narrow: 780px;

  --ease: cubic-bezier(0.22, 0.68, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--s-4);
  line-height: 1.12;
  letter-spacing: -0.032em;
  font-weight: 800;
  color: var(--ink-800);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
  font-weight: 750;
}

p {
  margin: 0 0 var(--s-4);
  text-wrap: pretty;
}

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

a:hover {
  color: var(--brand-700);
}

ul,
ol {
  margin: 0 0 var(--s-4);
  padding-left: 1.2em;
}

li {
  margin-bottom: var(--s-2);
}

strong {
  font-weight: 680;
  color: var(--ink-800);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s-7) 0;
}

::selection {
  background: var(--brand-300);
  color: var(--ink-900);
}

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-900);
  color: #fff;
  padding: var(--s-3) var(--s-5);
  z-index: 999;
  border-radius: 0 0 var(--r-sm) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2.5rem, var(--wrap-narrow));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--alt {
  background: var(--paper-alt);
}

.section--tint {
  background: linear-gradient(180deg, var(--brand-50) 0%, #ffffff 100%);
}

.section--deep {
  background: var(--grad-deep);
  color: var(--text-invert);
}

.section--deep h2,
.section--deep h3,
.section--deep h4 {
  color: #fff;
}

.section--deep p {
  color: var(--text-invert-mute);
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--s-7);
}

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

.grid {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-2\@lg {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--wide-left {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .split--wide-right {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .split__media--first {
    order: -1;
  }
}

.stack > * + * {
  margin-top: var(--s-4);
}

.center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--s-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.section--deep .eyebrow {
  color: var(--brand-300);
}

.section--deep .eyebrow::before {
  background: var(--brand-400);
}

.eyebrow--center {
  justify-content: center;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-mute);
}

.section--deep .lead {
  color: var(--text-invert-mute);
}

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

.fineprint {
  font-size: var(--fs-sm);
  color: var(--text-mute);
  line-height: 1.6;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.85em 1.65em;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-glow);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 14px 40px rgba(15, 111, 224, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  color: var(--brand-700);
  border-color: var(--brand-400);
  background: var(--brand-50);
}

.section--deep .btn--ghost,
.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.section--deep .btn--ghost:hover,
.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--ink-800);
  box-shadow: var(--sh-md);
}

.btn--white:hover {
  color: var(--brand-700);
}

.btn--lg {
  padding: 1em 2em;
  font-size: 1.03rem;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.btn-row--center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   6. Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(9, 30, 66, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand__logo-img {
  height: 46px;
  width: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink-800);
}

.brand__tag {
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 3px;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  font-weight: 570;
  color: var(--ink-700);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.nav__links a:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

.nav__links a[aria-current="page"] {
  color: var(--brand-600);
  background: var(--brand-50);
}

.nav__cta {
  display: none;
}

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink-700);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  padding: var(--s-3) 0 var(--s-6);
  border-top: 1px solid var(--line);
}

.nav__mobile.is-open {
  display: block;
}

.nav__mobile ul {
  list-style: none;
  margin: 0 0 var(--s-4);
  padding: 0;
}

.nav__mobile a {
  display: block;
  padding: 0.8rem 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-700);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 980px) {
  .nav__links,
  .nav__cta {
    display: flex;
  }
  .nav__toggle,
  .nav__mobile {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--grad-deep);
  color: var(--text-invert);
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 7vw, 6.5rem) clamp(4rem, 2rem + 8vw, 7rem);
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__glow::before,
.hero__glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.hero__glow::before {
  width: 640px;
  height: 640px;
  top: -240px;
  right: -140px;
  background: radial-gradient(circle, rgba(79, 176, 251, 0.5), transparent 68%);
}

.hero__glow::after {
  width: 520px;
  height: 520px;
  bottom: -260px;
  left: -160px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.28), transparent 66%);
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(
    ellipse 90% 70% at 50% 20%,
    #000 20%,
    transparent 78%
  );
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}

@media (min-width: 940px) {
  .hero__inner {
    grid-template-columns: 1.08fr 0.92fr;
  }
}

.hero h1 {
  font-size: var(--fs-display);
  color: #fff;
  letter-spacing: -0.042em;
  margin-bottom: var(--s-5);
}

.hero .lead {
  color: #c4dcf7;
  max-width: 34rem;
  margin-bottom: var(--s-6);
}

.hero--sub {
  padding-block: clamp(3rem, 2rem + 5vw, 5rem);
}

.hero--sub h1 {
  font-size: var(--fs-h1);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.42rem 0.95rem 0.42rem 0.5rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--fs-xs);
  font-weight: 620;
  letter-spacing: 0.02em;
  color: #d6e9ff;
  margin-bottom: var(--s-5);
  backdrop-filter: blur(6px);
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.18);
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 210, 255, 0);
  }
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5) var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__proof-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  max-width: 15rem;
}

.hero__proof-item svg {
  flex-shrink: 0;
  color: var(--brand-400);
  margin-top: 2px;
}

.hero__proof-item span {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: #b9d3f2;
}

.hero__proof-item strong {
  display: block;
  color: #fff;
  font-weight: 650;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   8. Machine illustration
   -------------------------------------------------------------------------- */

.machine-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--s-4);
}

.machine-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  width: 78%;
  height: 42px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.45), transparent 70%);
  filter: blur(14px);
  z-index: 0;
}

.machine-svg {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  filter: drop-shadow(0 26px 50px rgba(0, 12, 40, 0.55));
}

.machine-svg .scan-beam {
  animation: scanline 3.2s var(--ease) infinite;
  transform-origin: center;
}

@keyframes scanline {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
  15% {
    opacity: 1;
  }
  60% {
    opacity: 0.85;
    transform: translateY(16px);
  }
  80% {
    opacity: 0;
    transform: translateY(16px);
  }
}

.machine-svg .led {
  animation: blink 2.4s steps(1, end) infinite;
}

@keyframes blink {
  0%,
  60% {
    opacity: 1;
  }
  61%,
  100% {
    opacity: 0.25;
  }
}

.machine-callout {
  position: absolute;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-800);
  font-size: 0.76rem;
  font-weight: 680;
  letter-spacing: -0.01em;
  box-shadow: var(--sh-md);
  white-space: nowrap;
}

.machine-callout::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
}

/* Pinned to the machine's own edges (it is max 340px wide, centred in the
   stage) rather than to the column, so they never drift into the copy. */
.machine-callout--scan {
  bottom: 21%;
  left: 50%;
  transform: translateX(calc(-118px - 52%));
}

.machine-callout--pay {
  bottom: 9%;
  left: 50%;
  transform: translateX(calc(127px - 48%));
}

@media (min-width: 1120px) {
  .machine-callout {
    display: inline-flex;
  }
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  padding: var(--s-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--line-strong);
}

.card h3 {
  margin-bottom: var(--s-3);
}

.card p:last-child {
  margin-bottom: 0;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
  margin-bottom: var(--s-5);
}

.card--glass {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: none;
  backdrop-filter: blur(10px);
  color: var(--text-invert-mute);
}

.card--glass:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.card--glass h3 {
  color: #fff;
}

.card--glass .card__icon {
  background: rgba(79, 176, 251, 0.16);
  border-color: rgba(79, 176, 251, 0.3);
  color: var(--brand-300);
}

.card--flush {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.card--flush:hover {
  transform: none;
  box-shadow: none;
}

/* Numbered step cards */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 860px) {
  .steps--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .steps--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 560px) and (max-width: 859px) {
  .steps--4,
  .steps--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step {
  counter-increment: step;
  position: relative;
  padding-top: var(--s-6);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-500);
  font-family: var(--font-mono);
}

.step::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 2.6rem;
  right: -1rem;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.steps > .step:last-child::after {
  display: none;
}

@media (max-width: 859px) {
  .step::after {
    display: none;
  }
}

.step h3 {
  font-size: 1.14rem;
  margin-bottom: var(--s-2);
}

.step p {
  font-size: var(--fs-sm);
  color: var(--text-mute);
  margin-bottom: 0;
}

.section--deep .step p {
  color: var(--text-invert-mute);
}

.section--deep .step::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent);
}

/* --------------------------------------------------------------------------
   10. Stats / figures
   -------------------------------------------------------------------------- */

.stat {
  padding: var(--s-5) 0;
}

.stat__num {
  display: block;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--s-2);
}

.section--deep .stat__num {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  font-size: var(--fs-sm);
  color: var(--text-mute);
  line-height: 1.5;
}

.section--deep .stat__label {
  color: var(--text-invert-mute);
}

/* --------------------------------------------------------------------------
   11. Checklist
   -------------------------------------------------------------------------- */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-3);
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  margin: 0;
  line-height: 1.6;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-50);
  border: 1px solid var(--brand-300);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.66em;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--brand-600);
  border-bottom: 2px solid var(--brand-600);
  transform: rotate(42deg);
}

.section--deep .checklist li::before {
  background: rgba(79, 176, 251, 0.14);
  border-color: rgba(79, 176, 251, 0.42);
}

.section--deep .checklist li::after {
  border-color: var(--brand-300);
}

.checklist--split {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .checklist--split {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3) var(--s-6);
  }
}

/* Two-column responsibility table */
.responsibilities {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 780px) {
  .responsibilities {
    grid-template-columns: 1fr 1fr;
  }
}

.resp-col {
  padding: var(--s-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
}

.resp-col--ours {
  background: linear-gradient(165deg, var(--brand-50), #fff 70%);
  border-color: var(--brand-100);
}

.resp-col h3 {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 1.1rem;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}

.resp-col__badge {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--brand-600);
  color: #fff;
}

.resp-col__badge--alt {
  background: var(--ink-700);
}

/* --------------------------------------------------------------------------
   12. Venue type chips
   -------------------------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding: 0;
  margin: 0;
  list-style: none;
}

.chips li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.93rem;
  font-weight: 570;
  color: var(--ink-700);
  box-shadow: var(--sh-sm);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.chips li:hover {
  transform: translateY(-2px);
  border-color: var(--brand-300);
}

.chips li svg {
  color: var(--brand-500);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   13. Compliance / notice blocks
   -------------------------------------------------------------------------- */

.notice {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-text);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice strong {
  color: var(--warn-text);
}

.notice--info {
  background: var(--brand-50);
  border-color: var(--brand-100);
  color: var(--ink-700);
}

.notice--info strong {
  color: var(--ink-800);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px solid currentColor;
  font-size: 1.32rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   14. FAQ accordion
   -------------------------------------------------------------------------- */

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

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

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  padding: var(--s-5) 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 1.06rem;
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.4;
  color: var(--ink-800);
  text-align: left;
  cursor: pointer;
  transition: color 0.18s var(--ease);
}

.faq__q:hover {
  color: var(--brand-600);
}

.faq__icon {
  flex-shrink: 0;
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: transform 0.28s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--ink-700);
  transition: opacity 0.2s var(--ease), background-color 0.2s var(--ease);
}

.faq__icon::before {
  width: 10px;
  height: 1.6px;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 1.6px;
  height: 10px;
  transform: translate(-50%, -50%);
}

.faq__q[aria-expanded="true"] .faq__icon {
  background: var(--brand-600);
  border-color: var(--brand-600);
  transform: rotate(180deg);
}

.faq__q[aria-expanded="true"] .faq__icon::before {
  background: #fff;
}

.faq__q[aria-expanded="true"] .faq__icon::after {
  opacity: 0;
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease);
}

.faq__a[data-open="true"] {
  grid-template-rows: 1fr;
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  color: var(--text-mute);
  padding-right: clamp(0px, 4vw, 3rem);
}

.faq__a > div > *:last-child {
  margin-bottom: var(--s-5);
}

/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */

.form-card {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}

.field {
  margin-bottom: var(--s-5);
}

.field--row {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 620px) {
  .field--row {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 640;
  color: var(--ink-800);
  margin-bottom: var(--s-2);
}

.label-note {
  font-weight: 450;
  color: var(--text-mute);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.78rem 1rem;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--paper-alt);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(43, 149, 245, 0.16);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%2356688a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text-mute);
  font-weight: 450;
  cursor: pointer;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand-600);
  flex-shrink: 0;
}

.form-status {
  display: none;
  margin-top: var(--s-4);
  padding: var(--s-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  background: #e9f8ef;
  border: 1px solid #a8e0bf;
  color: #14562f;
}

.form-status--err {
  background: #fdecec;
  border: 1px solid #f3b7b7;
  color: #7d1d1d;
}

/* Honeypot */
.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   16. Contact detail list
   -------------------------------------------------------------------------- */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-5);
}

.contact-list li {
  display: flex;
  gap: var(--s-4);
  margin: 0;
}

.contact-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
}

.contact-list dt {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 2px;
}

.contact-list dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink-800);
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--grad-deep);
  color: #fff;
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
}

.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(79, 176, 251, 0.34), transparent 66%);
  filter: blur(80px);
}

.cta-band h2 {
  color: #fff;
  max-width: 22ch;
  margin-inline: auto;
}

.cta-band .lead {
  color: #c4dcf7;
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: var(--s-6);
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink-900);
  color: var(--text-invert-mute);
  padding-block: var(--s-8) var(--s-6);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

.site-footer .brand__name {
  color: #fff;
}

.site-footer .brand__tag {
  color: var(--text-invert-mute);
}

.footer-grid h4 {
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: var(--s-3);
}

.footer-grid a {
  color: var(--text-invert-mute);
}

.footer-grid a:hover {
  color: #fff;
}

.footer-blurb {
  max-width: 30rem;
  margin: var(--s-5) 0 0;
  color: var(--text-invert-mute);
  line-height: 1.65;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-5);
  font-size: var(--fs-xs);
  color: #7e9ec5;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.footer-warning {
  margin-top: var(--s-5);
  padding: var(--s-4);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: #9fbde0;
}

.footer-warning strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   19. Age gate modal
   -------------------------------------------------------------------------- */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  background: rgba(4, 18, 43, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.age-gate.is-open {
  display: flex;
}

.age-gate__panel {
  width: min(100%, 460px);
  padding: clamp(1.75rem, 1rem + 3vw, 2.75rem);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-lg);
  text-align: center;
  animation: gateIn 0.36s var(--ease);
}

@keyframes gateIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.age-gate__panel h2 {
  font-size: 1.5rem;
  margin-bottom: var(--s-3);
}

.age-gate__panel p {
  font-size: var(--fs-sm);
  color: var(--text-mute);
}

.age-gate__mark {
  width: 72px;
  margin: 0 auto var(--s-5);
}

.age-gate__actions {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

@media (min-width: 420px) {
  .age-gate__actions {
    grid-template-columns: 1fr 1fr;
  }
}

.age-gate__deny {
  display: none;
  margin-top: var(--s-5);
  font-size: var(--fs-sm);
  color: #a33;
}

/* --------------------------------------------------------------------------
   20. Reveal on scroll
   -------------------------------------------------------------------------- */

/* Scoped to .js (set by a one-liner in <head>) so that with JavaScript
   disabled — or if the observer never fires — every section stays visible
   rather than silently rendering blank. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   21. Utilities
   -------------------------------------------------------------------------- */

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

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }
.mt-9 { margin-top: var(--s-9); }

@media print {
  .site-header,
  .age-gate,
  .cta-band {
    display: none !important;
  }
}
