/* apreet.com — base stylesheet
   Brand: bright sky-blue #00b8ec, white surfaces, photographic hero. */

:root {
  --primary: #00b8ec;
  /* Text/link/eyebrow accent on light backgrounds. Uses the brand "bottom blue"
     (#00659a, ~6.3:1 on white) rather than #0099ca (3.27:1) so accent text meets
     WCAG AA. Buttons/gradients still use the lighter --primary / --primary-light. */
  --primary-dark: #00659a;
  --primary-light: #31c5f4;
  --accent: #fd8a00;
  --text: #111827;
  --text-muted: #5b6470;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --surface: #ffffff;                 /* cards, popovers, panels */
  --header-bg: rgba(255,255,255,0.85); /* sticky header / mobile nav */
  --hover-bg: rgba(0,0,0,0.06);
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-lg: 0 14px 36px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --radius: 12px;
  color-scheme: light;
}

/* Dark theme. Set by js/cta.js (no-FOUC inline head script) from saved choice or
   OS preference. Navy surfaces from the brand's blue family; accent text uses the
   brighter brand blue (#31c5f4) for AA contrast on dark. */
:root[data-theme="dark"] {
  --primary-dark: #31c5f4;            /* accent text/links on dark (AA on navy) */
  --text: #e7e9fb;
  --text-muted: #a6abce;
  --bg: #0b1020;
  --bg-alt: #11142b;
  --surface: #161a2e;
  --header-bg: rgba(11,16,32,0.85);
  --hover-bg: rgba(255,255,255,0.08);
  --border: #272c4d;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-lg: 0 14px 36px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.4);
  color-scheme: dark;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }
/* Links embedded in running text need a non-color affordance (underline) so they
   are distinguishable without relying on color alone (WCAG 1.4.1 / axe
   link-in-text-block). Block links (cards, nav, footer lists) are exempt. */
.story p a, .story li a, .lead a, .intro p a, .section-head p a,
.card p a, .meta a, .byline a {
  text-decoration: underline; text-underline-offset: 2px;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

h1, h2, h3 {
  color: var(--text);
  font-weight: 800;
  font-feature-settings: "kern", "ss01";
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}
h2 {
  font-size: clamp(1.75rem, 4.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
p + p { margin-top: 0.85rem; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; top: -100%; left: 16px;
  padding: 12px 24px; background: var(--primary); color: #fff;
  border-radius: 8px; z-index: 10000; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-top: 12px; padding-bottom: 12px;
}
.site-logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; flex-shrink: 0; }
.site-logo:hover { color: var(--primary-dark); }
.site-logo img { width: auto; height: 38px; flex-shrink: 0; object-fit: contain; }
.site-logo span { font-size: 1.45rem; }

.site-nav {
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px);
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--text);
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover { color: var(--primary-dark); border-bottom-color: var(--primary); }

.btn-sm { padding: 9px 18px; font-size: 0.92rem; }
.site-header .site-cta { flex-shrink: 0; width: auto; max-width: none; animation: none; }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent; border: 0;
  color: var(--text); border-radius: 8px;
  cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: var(--hover-bg); }
/* iOS Safari: SVG paths with fill="none" can swallow taps before the button sees them. */
.nav-toggle svg, .nav-toggle svg * { pointer-events: none; }

/* Dark / light theme toggle (in the header). Shows a moon in light mode (tap to
   go dark) and a sun in dark mode (tap to go light). */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent; border: 0;
  color: var(--text); border-radius: 8px;
  cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { background: var(--hover-bg); }
.theme-toggle svg { width: 20px; height: 20px; pointer-events: none; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 820px) {
  .site-header .container { position: relative; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 24px 16px;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .site-nav a {
    padding: 14px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .site-nav a:last-of-type { border-bottom: 0; }
  .site-nav a:hover { border-bottom-color: var(--border); color: var(--primary-dark); }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}
@media (max-width: 480px) {
  .site-header .site-cta { display: none; }
}

/* Hero — full-bleed photo with subtle gradient overlay
   Photo's subject (face) sits in the left third — copy goes opposite so face stays clear. */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 112px) 0 clamp(56px, 9vw, 96px);
  color: #fff;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(8,15,30,0.10) 0%, rgba(8,15,30,0.55) 75%, rgba(8,15,30,0.70) 100%),
    url('/images/hero-bg.webp') 30% top / cover no-repeat;
  text-align: left;
  overflow: hidden;
}
.hero h1 {
  color: #fff;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 28px rgba(0,0,0,0.55);
  max-width: 16ch;
}
.hero p.lead {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  color: rgba(255,255,255,0.94);
  max-width: 38ch;
  margin-bottom: 2rem;
  text-shadow: 0 1px 16px rgba(0,0,0,0.55);
  font-weight: 500;
  text-wrap: balance;
  line-height: 1.5;
}

/* Desktop & tablet: face left, copy right.
   Horizontal gradient keeps the face clear and only dims the right half for text. */
@media (min-width: 720px) {
  .hero {
    background:
      linear-gradient(100deg,
        rgba(8,15,30,0.05) 0%,
        rgba(8,15,30,0.10) 35%,
        rgba(8,15,30,0.55) 60%,
        rgba(8,15,30,0.65) 100%),
      url('/images/hero-bg.webp') left center / cover no-repeat;
  }
  .hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 5vw, 64px);
  }
  .hero .container > * { grid-column: 2; }
  .hero h1 { max-width: 14ch; }
}

/* Intro / value section — under hero */
.intro {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  background: var(--bg);
}
.intro .container { max-width: 760px; }
.intro .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin: 0 0 14px;
  line-height: 1;
}
.intro .eyebrow::before {
  content: ""; display: block;
  width: 28px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.intro h2 {
  margin-top: 0;
  color: var(--text);
}
.intro p:not(.eyebrow) {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0.85rem;
  text-wrap: pretty;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700; font-size: 1.05rem;
  border: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 8px 22px rgba(0,184,236,0.40), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,184,236,0.50), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:active { transform: translateY(0); }

/* Subtle entry animation + ambient pulse on the CTA */
@keyframes cta-bounce-in {
  0%   { opacity: 0; transform: translateY(14px) scale(0.92); }
  60%  { opacity: 1; transform: translateY(-3px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(0,184,236,0.40), 0 0 0 0 rgba(0,184,236,0.45); }
  50%      { box-shadow: 0 8px 22px rgba(0,184,236,0.40), 0 0 0 10px rgba(0,184,236,0.0); }
}
@keyframes qr-reveal {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.cta-button {
  animation:
    cta-bounce-in 0.6s cubic-bezier(.34,1.56,.64,1) both,
    cta-pulse 2.4s ease-in-out 0.8s infinite;
}
.cta-button:hover { animation-play-state: paused, paused; }
@media (prefers-reduced-motion: reduce) {
  .cta-button { animation: none; }
  .qr-panel   { animation: none; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Download CTA: button always visible. QR popover floats from button on desktop click. */
.cta-block {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 8px;
}
.qr-panel {
  position: absolute;
  /* Opens UPWARD (above the button): the hero CTA sits low in the viewport,
     so a downward popover would fall off-screen and could not be scanned. */
  bottom: calc(100% + 18px);
  left: 0;
  z-index: 50;
  width: 280px;
  padding: 22px 22px 18px;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 26px 60px -12px rgba(15, 23, 42, 0.28),
    0 12px 24px -8px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(0, 184, 236, 0.06);
  text-align: center;
  animation: qr-reveal 0.32s cubic-bezier(.34, 1.46, .64, 1);
  transform-origin: 56px calc(100% + 8px);
}
.qr-panel[hidden] { display: none; }
/* Safety: never taller than the viewport (extreme short windows scroll). */
.qr-panel { max-height: calc(100vh - 96px); overflow-y: auto; }
.qr-panel::before {
  content: "";
  position: absolute;
  /* caret on the bottom edge, pointing down toward the button below */
  bottom: -8px;
  left: 48px;
  width: 16px; height: 16px;
  background: var(--surface);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  transform: rotate(45deg);
}
/* Downward variant: js/cta.js adds .qr-panel--down when there is more room
   below the button than above (e.g. the button sits high in the viewport),
   so the popover never clips off-screen. */
.qr-panel--down {
  top: calc(100% + 18px);
  bottom: auto;
  transform-origin: 56px -8px;
}
.qr-panel--down::before {
  top: -8px;
  bottom: auto;
  border-bottom: 0;
  border-right: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-left: 1px solid rgba(15, 23, 42, 0.06);
}

.qr-close {
  position: absolute;
  top: 8px; right: 10px;
  width: 28px; height: 28px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.qr-close:hover { background: rgba(15, 23, 42, 0.06); color: var(--text); }

.qr-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin: 0 0 4px;
  line-height: 1;
}
.qr-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
}
.qr-frame {
  margin: 16px auto 12px;
  padding: 14px;
  border-radius: 14px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(0, 184, 236, 0.10), rgba(0, 184, 236, 0.02) 60%),
    #ffffff;
  border: 1px solid rgba(0, 184, 236, 0.18);
  display: inline-block;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.qr-frame .qr {
  width: 160px;
  height: 160px;
  display: block;
}
.qr-hint {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 640px) {
  .cta-block { align-items: center; width: 100%; }
}

/* Sections — alternating subtle backgrounds */
.section {
  padding: clamp(64px, 8vw, 112px) 0;
}
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section .container { max-width: 1100px; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary-dark);
  margin-bottom: 12px; line-height: 1;
}
.section-head .eyebrow::before {
  content: ""; width: 24px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.section-head h2 { margin: 0 0 0.5rem; }
.section-head p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto;
}

/* 3-column feature cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 184, 236, 0.3);
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Product showcase: app screenshot beside copy */
.showcase {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--bg);
  border-block: 1px solid var(--border);
}
.showcase .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.showcase-image {
  display: flex;
  justify-content: center;
}
.showcase-image img {
  max-width: 360px;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow:
    0 24px 60px -16px rgba(15, 23, 42, 0.30),
    0 8px 20px -8px rgba(15, 23, 42, 0.16);
}
.showcase-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary-dark);
  margin-bottom: 12px; line-height: 1;
}
.showcase-copy .eyebrow::before {
  content: ""; width: 24px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.showcase-copy h2 { margin-top: 0; margin-bottom: 1rem; }
.showcase-copy > p {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
}
.showcase-points {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 10px;
}
.showcase-points li {
  position: relative;
  padding-left: 28px;
  font-size: 1rem;
  color: var(--text);
}
.showcase-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 0 0 4px rgba(0, 184, 236, 0.12);
}
@media (max-width: 720px) {
  .showcase .container { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .showcase-copy .eyebrow { justify-content: center; }
  .showcase-points { text-align: left; max-width: 360px; margin-left: auto; margin-right: auto; }
}

/* Inline section figure for stories */
.story-figure {
  margin: 0 0 1.75rem;
}
.story-figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

/* Story / long-form blocks */
.story {
  max-width: 720px;
  margin: 0 auto;
}
.story h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin: 1.75rem 0 0.75rem;
}
.story p { margin-bottom: 1rem; line-height: 1.75; }
.story ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 12px;
}
.story ul li {
  position: relative;
  padding: 14px 18px 14px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.98rem;
  color: var(--text);
}
.story ul li::before {
  content: "";
  position: absolute;
  left: 18px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 0 0 4px rgba(0, 184, 236, 0.12);
}

/* Article preview grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.article-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;
}
.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 184, 236, 0.4);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}
.article-card .tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.article-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.article-card .read-more {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.team-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.team-card img.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--bg-alt);
}
.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.team-card .role {
  font-size: 0.85rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.team-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.team-card blockquote {
  margin-top: 0.75rem;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
  font-size: 0.92rem;
  color: var(--text);
}

/* "Featured at" event logos strip */
.events-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.events-strip img {
  height: 32px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: opacity 0.2s, filter 0.2s;
}
.events-strip img:hover {
  opacity: 1;
  filter: grayscale(0);
}
.events-strip .label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-bottom: 4px;
}

/* Final CTA — branded section */
.final-cta {
  padding: clamp(64px, 8vw, 96px) 0;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(0, 184, 236, 0.10), transparent 60%),
    var(--bg);
  text-align: center;
  border-top: 1px solid var(--border);
}
.final-cta h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}
.final-cta p {
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}
.final-cta .cta-block { justify-content: center; align-items: center; }
.final-cta .qr-panel { left: 50%; transform: translateX(-50%); }
.final-cta .qr-panel::before { left: 50%; margin-left: -8px; }

/* FAQ — collapsible details */
.prose details {
  border-top: 1px solid var(--border);
  padding: 8px 0;
}
.prose details:last-of-type { border-bottom: 1px solid var(--border); }
.prose details summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 4px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.prose details summary::-webkit-details-marker { display: none; }
.prose details summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s ease;
}
.prose details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}
.prose details summary h2 {
  font-size: 1.08rem;
  margin: 0;
  font-weight: 700;
  color: var(--text);
  display: inline;
  scroll-margin-top: 80px;
}
.prose details summary:hover h2 { color: var(--primary-dark); }
.prose details > p,
.prose details > ul {
  padding: 0 4px 18px;
  margin-top: -4px;
}

/* Page hero (slim, no photo) — for legal/article pages */
.page-hero {
  padding: clamp(48px, 7vw, 80px) 0 clamp(48px, 5vw, 56px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.page-hero .lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0;
}

/* Long-form prose for legal/article pages */
.prose {
  max-width: 70ch;
  margin: 0 auto;
}
/* Vertical padding split out so the mobile `.container { padding: 0 20px }` shorthand
   below doesn't wipe it. Specificity-tied longhands hold across all breakpoints. */
.prose.container {
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.prose h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
  scroll-margin-top: 80px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose p, .prose li {
  font-size: 1.025rem;
  line-height: 1.75;
  color: var(--text);
}
.prose p { margin-bottom: 1rem; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--primary); }
.prose .meta {
  display: block;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: 80px; padding: 48px 0 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.92rem;
  background: var(--bg);
}
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--primary-dark); text-decoration: underline; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px 40px;
  margin-bottom: 32px;
}
.site-footer .footer-col h2 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text);
  margin: 0 0 12px;
}
.site-footer .footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.site-footer .footer-col li { line-height: 1.4; }
.site-footer .footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}
@media (max-width: 719px) {
  .site-footer { padding-top: 36px; }
  .site-footer .footer-grid { gap: 28px; }
}

/* Mobile polish */
@media (max-width: 719px) {
  body { font-size: 1rem; }
  .container { padding: 0 20px; }
  .hero {
    text-align: center;
    /* Photo-dominant: shorter hero so cover crops less of the image's width,
       and shift the focal point so the full face (with hair + forehead) fits. */
    min-height: clamp(520px, 90vw, 660px);
    padding-top: 24px;
    padding-bottom: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
      linear-gradient(180deg,
        rgba(8,15,30,0.0)  0%,
        rgba(8,15,30,0.0)  35%,
        rgba(8,15,30,0.55) 62%,
        rgba(8,15,30,0.85) 85%,
        rgba(8,15,30,0.92) 100%),
      url('/images/hero-bg.webp') 18% 25% / cover no-repeat;
  }
  .hero .container { display: block; }
  .hero h1, .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); max-width: 18ch; }
  .hero p.lead { max-width: 32ch; margin-bottom: 1.5rem; }
  .cta-block { justify-content: center; }
  .btn { padding: 16px 32px; font-size: 1.05rem; width: 100%; max-width: 320px; justify-content: center; }
  .site-logo span { font-size: 1.1rem; }
}

/* Safe-area for notched devices */
@supports (padding: max(0px)) {
  .container { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
}
