:root {
  --bg-darkest:   #04080f;
  --bg-dark:      #070d1a;
  --bg-card:      #0d1528;
  --bg-surface:   #111c30;
  --bg-surface2:  #1a2740;
  --accent:       steelblue;
  --accent-light: #B0C4DE;
  --accent-dark:  dodgerblue;
  --violet:       #38bdf8;
  --teal:         #14b8a6;
  --amber:        #f59e0b;
  --rose:         #f43f5e;
  --cyan:         #06b6d4;
  --text:         #e2e8f0;
  --text-muted:   #94a3b8;
  --text-faint:   #8b9cb3;
  --border:       #1e2e45;
  --border-light: #2a3f5e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-darkest);
  color: var(--text);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 3px; }

/* ── Shared utilities ─────────────────────── */

.gradient-text {
  background: linear-gradient(135deg, steelblue, lightblue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section { padding: 6rem 0; }
.section-darkest { background: var(--bg-darkest); }

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ── NAVBAR ────────────────────────────────── */

.navbar {
  background: transparent;
  padding: 1.25rem 0;
  position: fixed;
  /* Plain width:100% (or left:0;right:0) still overflows past the true
     viewport edge by a classic scrollbar's width -- same root cause as the
     famous 100vw scrollbar bug, since a fixed element's containing block is
     sized the same way. --scrollbar-w (showcase.js) is the one number CSS
     can't measure itself; below Bootstrap's 576px breakpoint .container
     stretches to match this width (it only centers at a fixed max-width
     above it), so without the correction the nav's right-side padding lands
     exactly on the true edge instead of inside it -- flush, with no gap. */
  top: 0; left: 0; width: calc(100% - var(--scrollbar-w, 0px));
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.navbar.scrolled {
  background: rgba(7,13,26,0.94);
  box-shadow: 0 1px 0 var(--border);
  padding: 0.75rem 0;
  backdrop-filter: blur(14px);
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.navbar-brand .accent { color: skyblue }

/* ── Unified nav (matches the app pages' nav exactly) ── */
.nav-bar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Centered, big, uppercase tabs — identical to .page-tabs on the app pages. */
.page-tabs {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 1.75rem;
}
.page-tabs a {
  color: #94a3b8;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.page-tabs a:hover { color: #cbd5e1; }
.page-tabs a.active { color: #fff; }

/* Language dropdown — identical to .lang-switcher on the app pages. */
.lang-dropdown {
  background: #1e293b;
  border: 1px solid #8b9cb3;
  color: #94a3b8;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  width: auto;
  outline: none;
}
.lang-dropdown:hover { border-color: steelblue; color: #f1f5f9; }

/* Sign in / Sign out button — identical to the app pages' nav button.
   appearance:none is required because Bootstrap (loaded on this page only)
   forces native button chrome, which would otherwise ignore the custom
   background/text/border colours. */
.nav-auth-btn {
  appearance: none;
  -webkit-appearance: none;
  background: steelblue;
  border: 1px solid #8b9cb3;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-auth-btn:hover { background: rgb(56, 104, 144); color: #fff; }

/* A narrow window used to push the tab bar onto a second row here, at 991px.
   The number was Bootstrap's: .container is capped at a fixed max-width below
   the 992px breakpoint (540px from 576px up, 720px from 768px up) rather than
   tracking the viewport, so the tabs' absolute centering -- built for the
   roomier ≥992px container -- ran into the lang dropdown and Sign in across
   that whole 641-991px band.  The whole bar folds into a hamburger instead now,
   and css/nav-menu.css owns that; js/nav-menu.js measures .nav-bar-inner itself,
   so the container's jumps are read rather than guessed at.

   What stays here is this page's own: the bar is transparent until you scroll,
   and a panel hanging off nothing reads as one that has come loose. */
nav.nav-open {
  background: rgba(7,13,26,0.94);
  backdrop-filter: blur(14px);
}

/* ── HERO ──────────────────────────────────── */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  /* Overrides the shorthand above: the fixed navbar's height is not a constant
     (it shrinks on scroll, and grew a second row before the tabs moved into the
     hamburger), and a hardcoded value here buries the heading under it. See
     --nav-h in showcase.js. */
  padding-top: calc(var(--nav-h, 4.5rem) + 1rem);
  /* Mascot photo as background — dark gradient on the left preserves text legibility */
  background-image:
    linear-gradient(
      100deg,
      #04080f  0%,
      #04080f  22%,
      rgba(4,8,15,0.93) 36%,
      rgba(4,8,15,0.60) 52%,
      rgba(4,8,15,0.25) 68%,
      rgba(4,8,15,0.06) 84%
    ),
    url('/static/img/mascot.webp');
  /* gradient covers full element; image is sized to ~68% of section height, flush right */
  background-size: 100% 100%, auto 68%;
  background-position: left top, right center;
  background-repeat: no-repeat, no-repeat;
  background-color: #04080f;
}

/* Subtle grid lines on the dark left half */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to right, black 0%, black 30%, transparent 60%);
  pointer-events: none;
}

/* Blue haze overlay that ties the photo into the colour scheme */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 80% at 78% 50%,
    rgba(60,80,220,0.13) 0%,
    transparent 70%
  );
  pointer-events: none;
}

#hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 510px;
  margin-bottom: 2.25rem;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2.25rem;
}

.btn-primary-cta {
  background: steelblue;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 22px rgba(99,102,241,0.45);
}
.btn-primary-cta:hover {
  background: rgb(74, 186, 255);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.55);
}

.btn-secondary-cta {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-secondary-cta:hover {
  border-color: var(--accent);
  background: rgba(99,102,241,0.08);
  color: #fff;
}

.hero-trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.trust-item i { color: var(--teal); font-size: 0.72rem; }

/* ── FEATURES ──────────────────────────────── */

#features { background: var(--bg-dark); }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, dodgerblue, lightblue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(20, 21, 60, 0.416);
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(99,102,241,0.12);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.fi-indigo { background:rgba(99,102,241,0.13); color:var(--accent-light); }
.fi-violet { background:rgba(139,92,246,0.13); color:var(--violet); }
.fi-teal   { background:rgba(20,184,166,0.13);  color:var(--teal); }
.fi-amber  { background:rgba(245,158,11,0.13);  color:var(--amber); }
.fi-rose   { background:rgba(244,63,94,0.13);   color:#fb7185; }
.fi-cyan   { background:rgba(6,182,212,0.13);   color:#22d3ee; }
.fi-orange { background:rgba(6,182,212,0.13);   color:#e0a354; }

.feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.55rem;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── HOW IT WORKS ──────────────────────────── */

.step-card {
  text-align: center;
  padding: 0 1rem;
}
.step-number {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, deepskyblue, dodgerblue);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 0 0 10px rgba(99,102,241,0.08);
}
.step-icon-wrap {
  font-size: 1.75rem;
  color: skyblue;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}
.step-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}
.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── STATS ─────────────────────────────────── */

.stats-section {
  background: linear-gradient(135deg, #08101f, #0b1430);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item { text-align: center; padding: 1rem 0.5rem; }
.stat-value {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.stat-unit {
  font-size: 45%;
  vertical-align: middle;
  letter-spacing: 0;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── TECH STACK ────────────────────────────── */

#tech-stack { background: var(--bg-dark); }

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}
.tech-badge:hover { border-color: dodgerblue; color: #fff; }

/* ── TESTIMONIALS ──────────────────────────── */

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  transition: border-color 0.3s, transform 0.3s;
}
.testimonial-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.t-stars { color: #fbbf24; font-size: 0.88rem; margin-bottom: 1rem; letter-spacing: 2px; }

.t-text {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.72;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.t-author { display: flex; align-items: center; gap: 0.75rem; }

.t-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, cornflowerblue, steelblue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.t-name { font-size: 0.88rem; font-weight: 700; color: #fff; }
.t-role { font-size: 0.78rem; color: var(--text-muted); }

/* ── CTA ───────────────────────────────────── */

.cta-section {
  background: linear-gradient(135deg, #0d1025 0%, #19329d 50%, #0a1525 100%);
  position: relative;
  overflow: hidden;
}
.cta-blob {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.btn-accent {
  background: SteelBlue;
  color: #fff;
  border: none;
  padding: 0.9rem 2.6rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 22px rgba(99,102,241,0.45);
}
.btn-accent:hover {
  background: rgb(74, 186, 255);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 34px rgba(99,102,241,0.55);
}

/* ── FOOTER ────────────────────────────────── */

footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.75rem;
}
.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.footer-brand .accent { color: skyblue; }
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 240px;
  line-height: 1.55;
}
.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.footer-link {
  display: block;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
  cursor: pointer;
}
a.footer-link:hover { color: #fff; }

.footer-hr {
  border-color: var(--border);
  margin: 2.25rem 0 1.5rem;
  opacity: 1;
}
.footer-bottom {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ── RESPONSIVE ────────────────────────────── */

@media (max-width: 991px) {
  #hero {
    text-align: center;
    /* On tablet/mobile, anchor the image higher so the face is visible */
    background-position: center top;
    background-image:
      linear-gradient(
        180deg,
        rgba(4,8,15,0.15) 0%,
        rgba(4,8,15,0.55) 35%,
        #04080f 65%
      ),
      url('/static/img/mascot.webp');
  }
  .hero-desc  { margin-left: auto; margin-right: auto; }
  .hero-cta-row { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-copy  { order: 2; }
}

/* ─── New: tablet / large-phone ──────────────── */
@media (max-width: 767px) {
  /* Stack CTA buttons vertically and centre them */
  .hero-cta-row {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .btn-primary-cta,
  .btn-secondary-cta {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  /* Trust items in a tidy column */
  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

/* ─── Small mobile (≤ 575 px) ─────────────────── */
@media (max-width: 575px) {
  .section { padding: 3.5rem 0; }

  /* Hero: more top padding for navbar clearance, stronger overlay so text pops */
  #hero {
    padding-bottom: 3.5rem;
    padding-top: calc(var(--nav-h, 5.5rem) + 1rem);
    background-image:
      linear-gradient(
        180deg,
        rgba(4,8,15,0.40) 0%,
        rgba(4,8,15,0.75) 44%,
        #04080f 68%
      ),
      url('/static/img/mascot.webp');
  }

  /* Slightly smaller headline so it never wraps awkwardly */
  #hero h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
    letter-spacing: -0.03em;
  }

  /* Buttons full-width (no max-width cap on very small screens) */
  .btn-primary-cta,
  .btn-secondary-cta {
    max-width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Feature cards — tighter padding saves vertical space */
  .feature-card { padding: 1.4rem 1.25rem; }

  /* Section titles — prevent them from growing too large via clamp */
  .section-title {
    font-size: clamp(1.55rem, 6.5vw, 2rem);
  }

  /* Tech badges: force a clean 2-column grid */
  .tech-badge {
    flex: 1 1 calc(50% - 0.75rem);
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.55rem 0.85rem;
  }

  /* CTA section's main button goes full-width */
  .btn-accent {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  /* Footer: tighten vertical padding */
  footer { padding: 2.5rem 0 1.5rem; }
  .footer-tagline { max-width: 100%; }
}

/* ── Demo card (the live demo) ─────────────────────────────────────────── */

/* No max-width: the card spans the .container, the same width as the three
   step cards in #how-it-works above it. */
.demo-player {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 575px) {
  .demo-player { padding: 1.5rem 1.25rem; }
}

.demo-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* .section-subtitle's 560px cap was sized for the old 560px card; in the full-
   width one it left a narrow column in a wide box. */
#live-demo .section-subtitle { max-width: 720px; }

/* The phone line, under the call-link button. */
.demo-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.demo-phone-text {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.demo-phone-number {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.demo-phone-number:hover { color: var(--accent-light); }

/* ── Language Switcher ──────────────────────────────────────────────────── */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}

.lang-btn:hover {
  color: #fff;
  background: rgba(99,102,241,0.12);
}

.lang-btn.active {
  color: skyblue;
}

.lang-sep {
  color: var(--text-faint);
  font-size: 0.72rem;
  user-select: none;
  line-height: 1;
}

/* ── Live Demo Section ──────────────────────────────────────────────────── */

/* Both buttons are links now (the call page, then tel:), hence the colour and
   text-decoration: without them the browser's link styles win over the pill. */
.live-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, steelblue, dodgerblue);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, background 0.2s;
  box-shadow: 0 4px 18px rgba(70, 130, 180, 0.35);
}

.live-demo-btn:hover {
  color: #fff;
  opacity: 0.9;
  transform: translateY(-1px);
}

.live-demo-btn-secondary {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  box-shadow: 0 4px 18px rgba(20, 184, 166, 0.3);
}

/* ── Calendar preview ──────────────────────────────────────────────────── */

#calendar-preview .calendar-preview-desc { max-width: 680px; }

.calendar-shot {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* The pictures stop mid-afternoon, part-way through a row of cards; the fade
   says "and the day goes on" instead of looking cropped by accident.  The
   enlarged view shows them unfaded. */
.calendar-shot-link {
  position: relative;
  display: block;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.calendar-shot-link img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
          mask-image: linear-gradient(to bottom, #000 78%, transparent);
}

.calendar-shot-link:hover {
  transform: translateY(-4px);
  border-color: var(--accent-light);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.55);
}

/* Says "this opens" without words; brightens on hover. */
.calendar-shot-zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 15, 0.75);
  border: 1px solid var(--border-light);
  color: var(--text);
  opacity: 0.8;
  transition: opacity 0.2s, background 0.2s;
}

.calendar-shot-link:hover .calendar-shot-zoom,
.calendar-shot-link:focus-visible .calendar-shot-zoom {
  opacity: 1;
  background: steelblue;
}

.calendar-shot figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.calendar-shot figcaption strong {
  font-size: 1.05rem;
  color: var(--text);
}

.calendar-preview-list {
  list-style: none;
  margin: 2.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 2rem;
  font-size: 0.95rem;
  color: var(--text);
}

.calendar-preview-list i {
  width: 1.4rem;
  color: var(--accent-light);
}

/* ── Lightbox ──────────────────────────────────────────────────────────── */

/* margin: auto is what centres a modal <dialog>, and the "* { margin: 0 }"
   reset at the top of this file takes it away — without it the lightbox opens
   pinned to the top-left corner. */
.lightbox {
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text);
  max-width: min(96vw, 1400px);
  max-height: 94vh;
  overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox::backdrop {
  background: rgba(2, 5, 10, 0.85);
  backdrop-filter: blur(3px);
}

.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(94vh - 4rem);
  object-fit: contain;
}

.lightbox-caption {
  margin: 0;
  padding: 0.85rem 1.25rem 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(4, 8, 15, 0.8);
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover { background: steelblue; }

/* The page behind an open lightbox stays put. */
html.lightbox-open { overflow: hidden; }

/* ── Pricing ───────────────────────────────────────────────────────────── */
/* Cards are built by showcase.js (_initPricing); same frame as .feature-card. */

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  border-color: var(--border-light);
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(99,102,241,0.12);
}

.pricing-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0;
}

.pricing-price { display: flex; align-items: baseline; gap: 0.3rem; }
.pricing-amount { font-size: 2.2rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.pricing-per { font-size: 0.95rem; color: var(--text-muted); }

.pricing-intro {
  font-size: 0.85rem;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
}

.pricing-calls { font-size: 0.97rem; color: var(--text-muted); }
.pricing-calls i { color: var(--accent-light); margin-right: 0.2rem; }
.pricing-calls strong { color: var(--text); }

/* Pinned to the bottom so the three buttons line up whichever card carries
   the intro badge. */
.pricing-cta { margin-top: auto; }

.pricing-overage {
  margin: 2rem auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pricing-overage i { color: var(--accent-light); margin-right: 0.3rem; }
.pricing-overage strong { color: var(--text); }

/* ── Walkthrough video ─────────────────────────────────────────────────────── */
/* .section-subtitle is capped at 560px with no side margins, which is right in
   the left-aligned sections it was written for. Centred over an 830px video it
   left the text hugging the left edge with a matching gap on the right, so give
   it auto margins here — and a little more room, enough for the sentence to sit
   on one line at desktop width without forcing it in narrower languages. */
#video .section-subtitle {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

/* Bootstrap's .ratio handles the 16:9 box; this only frames it so the player
   does not sit on the dark background as a bare white rectangle. */
.video-frame {
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.video-frame iframe { border: 0; }

/* ── Focus visibility ────────────────────────────────────────────────────────
   The rules above remove the native outline from inputs and selects and often
   replace it with a colour change only, which is invisible to anyone who
   cannot distinguish the two colours and disappears entirely in forced-colours
   mode. Keyboard users need to be able to see where they are. */
:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
  border-radius: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}

/* Honour the OS-level preference: pulses, spins and smooth scrolling are
   decorative, and for some people they are a migraine or a vestibular episode. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
