/* ==========================================================================
   airdate Marketing Website — Editorial Plum & Warm Cream Design System
   Palette sourced directly from AirdateTheme.kt
   ========================================================================== */

:root {
  /* Light Editorial Canvas (from AirdateTheme chat light surfaces) */
  --bg-cream: #FAF6F4;
  --bg-sand: #F3EAE5;
  --bg-blush: #FCEEE9;
  --bg-surface: #FFFFFF;

  /* Deep Cabin Plum Contrast (from AirdateTheme dark surfaces) */
  --cabin-deepest: #140408;
  --cabin-dark: #1C060C;
  --cabin-plum: #2B0912;
  --cabin-wine: #3D0F1B;
  --cabin-card: #240811;
  --cabin-border: #5A2433;

  /* Accents (from AirdateTheme) */
  --coral-bright: #EA5B56;
  --coral-warm: #F47B6A;
  --peach-glow: #F8B195;
  --mode-network: #D8A7CA;

  /* Ink & Rules */
  --ink-primary: #230B12;
  --ink-secondary: #634950;
  --ink-muted: #8C7077;
  --ink-on-dark: #FFF8F4;
  --ink-on-dark-muted: #D6B9C0;
  --ink-on-dark-subtle: #A7848E;
  --hairline: rgba(35, 11, 18, 0.11);
  --hairline-strong: rgba(35, 11, 18, 0.18);

  /* Typography */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii & Shadows */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-phone: 36px;
  --shadow-phone-primary:
    0 28px 60px -18px rgba(28, 6, 12, 0.34),
    0 10px 22px -10px rgba(28, 6, 12, 0.18),
    0 0 0 1px rgba(255, 248, 244, 0.12) inset;
  --shadow-phone-secondary:
    0 22px 46px -16px rgba(28, 6, 12, 0.22),
    0 6px 16px -8px rgba(28, 6, 12, 0.12);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background-color: var(--bg-cream);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--bg-cream);
  color: var(--ink-primary);
  line-height: 1.6;
}

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

button {
  font-family: inherit;
  color: inherit;
}

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

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

.site-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1160px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 28px;
}

/* SEO Prerender Shell */
.seo-shell__inner {
  padding-top: 96px;
  padding-bottom: 96px;
  max-width: 680px;
}

.seo-shell__status {
  margin-top: 24px;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Sticky Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 244, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--cabin-plum) 0%, var(--cabin-deepest) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(28, 6, 12, 0.16);
}

.brand-wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link--active {
  color: var(--ink-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--cabin-plum);
  color: var(--ink-on-dark);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--cabin-wine);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hamburger {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink-primary);
  transition: background-color 0.18s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink-primary);
  transition: transform 0.2s ease, top 0.2s ease;
}

.hamburger::before {
  top: -5px;
}

.hamburger::after {
  top: 5px;
}

.hamburger--open {
  background: transparent;
}

.hamburger--open::before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger--open::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-drawer {
  border-top: 1px solid var(--hairline);
  background: var(--bg-cream);
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  padding-bottom: 18px;
}

.mobile-drawer__link {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-primary);
  border-bottom: 1px solid var(--hairline);
}

.mobile-drawer__link:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-bright);
  margin-bottom: 16px;
}

.eyebrow--light {
  color: var(--peach-glow);
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}

.section-title--light {
  color: var(--ink-on-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 72px 0 96px;
  background:
    radial-gradient(640px 440px at 84% 16%, rgba(248, 177, 149, 0.26) 0%, rgba(250, 246, 244, 0) 70%),
    var(--bg-cream);
  border-bottom: 1px solid var(--hairline);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 540px;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.85rem, 5.2vw, 4.35rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink-primary);
}

.hero-title__accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--coral-bright);
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 24px 0 34px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

/* Store Coming Soon Strip */
.store-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-strip--centered {
  justify-content: center;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-radius: 14px;
  background: var(--cabin-plum);
  color: var(--ink-on-dark);
  border: 1px solid rgba(90, 36, 51, 0.65);
  box-shadow: 0 8px 20px -12px rgba(28, 6, 12, 0.35);
}

.store-glyph {
  color: var(--peach-glow);
  flex-shrink: 0;
}

.store-pill__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-pill__eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-on-dark-muted);
}

.store-pill__status {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-on-dark);
  margin-top: 2px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.hero-anchor-link {
  font-weight: 600;
  color: var(--ink-primary);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.hero-anchor-link:hover {
  color: var(--coral-bright);
  border-color: var(--coral-bright);
}

.hero-meta__divider {
  opacity: 0.5;
}

/* Hero Framed Phones */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-phone-stage {
  position: relative;
  width: 100%;
  max-width: 470px;
  height: 556px;
}

.phone-frame {
  position: relative;
  display: block;
  padding: 9px;
  border-radius: var(--radius-phone);
  background: linear-gradient(160deg, #35151E 0%, #19070C 55%, #0F0306 100%);
  border: 1px solid rgba(255, 248, 244, 0.16);
  cursor: zoom-in;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.phone-frame__img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  object-fit: cover;
}

.phone-frame--primary {
  position: absolute;
  left: 8px;
  top: 0;
  width: 256px;
  z-index: 2;
  box-shadow: var(--shadow-phone-primary);
}

.phone-frame--primary:hover {
  transform: translateY(-4px);
}

.phone-frame--secondary {
  position: absolute;
  right: 8px;
  top: 46px;
  width: 236px;
  z-index: 1;
  box-shadow: var(--shadow-phone-secondary);
}

.phone-frame--secondary:hover {
  transform: translateY(-4px);
  z-index: 3;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.how-section {
  background: var(--bg-cream);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.step-item {
  border-top: 1px solid var(--hairline-strong);
  padding-top: 24px;
}

.step-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--coral-bright);
  margin-bottom: 14px;
}

.step-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.step-desc {
  margin: 0;
  font-size: 0.9625rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Inside the App Showcase Section
   ========================================================================== */

.showcase-section {
  background: var(--bg-sand);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.showcase-desktop {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 64px;
}

.showcase-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline-strong);
}

.showcase-tab {
  width: 100%;
  text-align: left;
  padding: 22px 18px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline-strong);
  cursor: pointer;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.showcase-tab:hover {
  background: rgba(255, 255, 255, 0.42);
}

.showcase-tab--active {
  background: var(--bg-cream);
  border-radius: 14px;
  border-bottom-color: transparent;
  margin: 8px 0;
  padding: 24px 22px;
  box-shadow: 0 10px 28px -18px rgba(35, 11, 18, 0.24);
}

.showcase-tab__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.showcase-tab__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--coral-bright);
  flex-shrink: 0;
}

.showcase-tab__title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.showcase-tab__desc {
  margin: 12px 0 0 32px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.showcase-highlights {
  margin: 14px 0 0 32px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.showcase-highlights li {
  position: relative;
  padding-left: 14px;
  font-size: 0.875rem;
  color: var(--ink-primary);
}

.showcase-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral-bright);
}

.showcase-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.phone-frame--showcase {
  width: 294px;
  box-shadow: var(--shadow-phone-primary);
}

.phone-frame--showcase:hover {
  transform: translateY(-4px);
}

.showcase-hint {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* Mobile Carousel (hidden on desktop) */
.showcase-mobile {
  display: none;
}

/* ==========================================================================
   Deep Cabin Plum Contrast Section
   ========================================================================== */

.cabin-section {
  background:
    radial-gradient(680px 420px at 82% 0%, rgba(234, 91, 86, 0.14) 0%, rgba(20, 4, 8, 0) 68%),
    linear-gradient(180deg, var(--cabin-plum) 0%, var(--cabin-deepest) 100%);
  color: var(--ink-on-dark);
}

.cabin-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.cabin-lead {
  margin: 16px 0 0;
  font-size: 1.0625rem;
  color: var(--ink-on-dark-muted);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--cabin-border);
  border-left: 1px solid var(--cabin-border);
}

.pillar-cell {
  padding: 34px 32px;
  border-right: 1px solid var(--cabin-border);
  border-bottom: 1px solid var(--cabin-border);
  background: rgba(36, 8, 17, 0.45);
}

.pillar-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-on-dark);
}

.pillar-desc {
  margin: 0;
  font-size: 0.9625rem;
  line-height: 1.65;
  color: var(--ink-on-dark-muted);
}

.cabin-footer-link {
  margin-top: 32px;
}

.cabin-safety-link {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--peach-glow);
  border-bottom: 1px solid rgba(248, 177, 149, 0.45);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.cabin-safety-link:hover {
  color: var(--ink-on-dark);
  border-color: var(--ink-on-dark);
}

/* ==========================================================================
   Closing CTA Section
   ========================================================================== */

.closing-section {
  background: var(--bg-cream);
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}

.closing-inner {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--cabin-plum) 0%, var(--cabin-deepest) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 12px 26px -12px rgba(28, 6, 12, 0.35);
}

.closing-title {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}

.closing-desc {
  margin: 14px 0 32px;
  font-size: 1.05rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Editorial Pages (/privacy, /support)
   ========================================================================== */

.editorial-page {
  padding: 64px 0 96px;
}

.editorial-container {
  max-width: 760px;
}

.back-link {
  display: block;
  width: fit-content;
  margin-bottom: 28px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.18s ease;
}

.back-link:hover {
  color: var(--coral-bright);
}

.editorial-title {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}

.editorial-meta {
  margin: 12px 0 40px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.editorial-lead {
  margin: 16px 0 40px;
  font-size: 1.05rem;
  color: var(--ink-secondary);
}

.editorial-block {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--hairline);
}

.editorial-h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.editorial-p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.safety-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.safety-section-head .editorial-h2 {
  margin: 0;
}

.safety-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--coral-bright);
  flex-shrink: 0;
}

.safety-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.safety-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.965rem;
  line-height: 1.68;
  color: var(--ink-secondary);
}

.safety-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral-bright);
}

.contact-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-strong);
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

.inline-link {
  color: var(--coral-bright);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Support FAQ */
.faq-list {
  border-top: 1px solid var(--hairline-strong);
}

.faq-item {
  border-bottom: 1px solid var(--hairline-strong);
}

.faq-trigger {
  width: 100%;
  padding: 20px 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  cursor: pointer;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
}

.faq-plus {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--coral-bright);
  flex-shrink: 0;
}

.faq-answer {
  margin: 0 0 22px;
  font-size: 0.9625rem;
  line-height: 1.68;
  color: var(--ink-secondary);
  max-width: 660px;
}

.support-card {
  margin-top: 44px;
  padding: 30px 32px;
  border-radius: var(--radius-md);
  background: var(--bg-sand);
  border: 1px solid var(--hairline-strong);
}

.support-card__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.support-card__desc {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

.support-email-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--coral-bright);
  border-bottom: 1px solid var(--coral-bright);
  padding-bottom: 2px;
}

/* ==========================================================================
   Footer & Aegis Attribution
   ========================================================================== */

.site-footer {
  background: var(--bg-cream);
  padding: 48px 0 40px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}

.footer-tagline {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.18s ease;
}

.footer-link:hover {
  color: var(--ink-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
}

.footer-copyright {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.footer-attribution {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.denver-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-sand);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.denver-pill__icon {
  color: var(--coral-bright);
}

.builder-credit {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.builder-credit__link {
  color: var(--ink-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.builder-credit__link:hover {
  color: var(--coral-bright);
  border-color: var(--coral-bright);
}

/* ==========================================================================
   Screenshot Lightbox Modal
   ========================================================================== */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 4, 8, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 92vw;
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -46px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 244, 0.28);
  background: rgba(28, 6, 12, 0.9);
  color: var(--ink-on-dark);
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-phone {
  padding: 8px;
  border-radius: 34px;
  background: #140408;
  border: 1px solid rgba(255, 248, 244, 0.22);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.55);
}

.lightbox-img {
  max-height: 78vh;
  width: auto;
  border-radius: 26px;
}

.lightbox-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.lightbox-caption__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-on-dark);
}

.lightbox-caption__sub {
  font-size: 0.82rem;
  color: var(--ink-on-dark-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-phone-stage {
    max-width: 440px;
    height: 520px;
  }

  .phone-frame--primary {
    width: 240px;
  }

  .phone-frame--secondary {
    width: 222px;
  }

  .steps-grid {
    gap: 28px;
  }

  .showcase-desktop {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .hero-section {
    padding: 40px 0 60px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9.2vw, 2.75rem);
  }

  .hero-phone-stage {
    max-width: 332px;
    height: 416px;
  }

  .phone-frame {
    padding: 7px;
    border-radius: 28px;
  }

  .phone-frame__img {
    border-radius: 21px;
  }

  .phone-frame--primary {
    left: 0;
    width: 190px;
  }

  .phone-frame--secondary {
    right: 0;
    top: 34px;
    width: 174px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  /* Switch Showcase to Horizontal Scroll-Snap Carousel */
  .showcase-desktop {
    display: none;
  }

  .showcase-mobile {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .carousel-track {
    display: flex;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 12px;
    margin: 0;
    scrollbar-width: none;
  }

  .carousel-track::-webkit-scrollbar {
    display: none;
  }

  .carousel-card {
    flex: 0 0 80%;
    max-width: 290px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-cream);
    border: 1px solid var(--hairline);
    border-radius: 22px;
    padding: 20px 18px 22px;
  }

  .phone-frame--carousel {
    width: 186px;
    box-shadow: var(--shadow-phone-secondary);
  }

  .carousel-card__meta {
    width: 100%;
    margin-top: 18px;
  }

  .carousel-card__num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--coral-bright);
  }

  .carousel-card__title {
    margin: 4px 0 6px;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--ink-primary);
  }

  .carousel-card__desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ink-secondary);
  }

  .carousel-swipe-hint {
    display: block;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--ink-muted);
  }

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

  .pillar-cell {
    padding: 24px 22px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox-close {
    top: -46px;
    right: 0;
  }
}
