/* ═══════════════════════════════════════════════════════
   Platemint — Cinematic Kitchen OS Landing Page
   Design: Premium dark, tactile, chef-built, system-like
   Patterns: 21st.dev polish, editorial depth, CSS-only glow
   Pure static CSS — no framework, no build step
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts (Inter) loaded in HTML ── */

/* ── Design Tokens ── */
:root {
  /* Perlé Indigo Palette (LOCKED — from app) */
  --perle-bg:       #0B1F3B;
  --perle-bg2:      #07162A;
  --perle-surface:  #1A2C42;
  --perle-panel:    rgba(26, 44, 66, 0.75);
  --perle-panel-solid: #1A2C42;

  /* Accents */
  --perle-gold:     #D4AF37;
  --perle-gold-dim: #8A701E;
  --perle-orange:   #E66D00;
  --perle-brand:    #205E7E;
  --perle-brand-dark: #16425B;

  /* Glow utilities */
  --glow-gold:      rgba(212, 175, 55, 0.12);
  --glow-teal:      rgba(32, 94, 126, 0.18);
  --grid-line:      rgba(255, 255, 255, 0.03);

  /* Neutrals */
  --perle-cream:      #F6F1E8;
  --perle-porcelain:  #FFFDF9;
  --perle-line:       #E4DDD2;
  --perle-ink:        #1B1B1F;
  --perle-smoke:      #5B5C63;

  /* Semantic */
  --text-heading:   #FFFFFF;
  --text-body:      #CBD5E1;
  --text-muted:     rgba(203, 213, 225, 0.6);
  --border-subtle:  rgba(255, 255, 255, 0.08);
  --border-light:   rgba(255, 255, 255, 0.12);

  /* Spacing */
  --section-pad-y:  6rem;
  --section-pad-x:  1.5rem;
  --container-max:  1200px;
  --radius:         1rem;
  --radius-lg:      1.5rem;

  /* Transitions */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--perle-bg);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  isolation: isolate;
}

/* ── Cinema Stage Layer ── */
.cinema-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cinema-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 800px at var(--mx, 50%) var(--my, 50%),
    rgba(212, 175, 55, 0.07) 0%,
    rgba(32, 94, 126, 0.04) 40%,
    transparent 80%
  );
  transition: background 0.15s ease;
}

/* Stacking context above Cinema Stage */
section, footer {
  position: relative;
  z-index: 1;
}

/* Safety net — prevents any stray element creating horizontal scroll */
html { overflow-x: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
h4 { font-size: 1rem; font-weight: 600; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--perle-gold);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--perle-gold);
  opacity: 0.5;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0.75rem auto 0;
  line-height: 1.75;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

section {
  padding: var(--section-pad-y) 0;
  position: relative;
}

.text-center { text-align: center; }

/* ── Glass Panel (from app) ── */
.glass-panel {
  background: var(--perle-panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.glass-card {
  background: rgba(26, 44, 66, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out), box-shadow 0.3s ease;
}

@media (hover: hover) {
  .glass-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-6px) scale(1.015);
    box-shadow: 
      0 20px 45px -15px rgba(0, 0, 0, 0.75),
      0 0 35px -5px rgba(32, 94, 126, 0.28),
      0 0 15px -3px rgba(212, 175, 55, 0.18);
  }

  /* Pricing cards manage their own hover transforms — suppress glass-card default */
  .glass-card.price-card:hover,
  .glass-card.founding-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.25);
  }

  /* Featured price card (chef plan) can have a stronger gold glow */
  .price-card.featured:hover {
    border-color: var(--perle-gold);
    box-shadow:
      0 25px 55px -15px rgba(0, 0, 0, 0.8),
      0 0 45px -5px rgba(212, 175, 55, 0.48);
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  letter-spacing: 0.01em;
  min-height: 48px; /* touch-friendly */
}

.btn-primary {
  background: var(--perle-orange);
  color: #fff;
  box-shadow: 0 4px 20px -4px rgba(230, 109, 0, 0.4);
}
.btn-primary:hover {
  background: #d46000;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px -4px rgba(230, 109, 0, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-heading);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-gold {
  background: linear-gradient(135deg, var(--perle-gold), #C49B2F);
  color: var(--perle-bg);
  font-weight: 700;
  box-shadow: 0 4px 20px -4px rgba(212, 175, 55, 0.35);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px -4px rgba(212, 175, 55, 0.5);
}

.btn:focus-visible,
.btn-ghost:focus-visible,
.logo:focus-visible,
.nav-links a:focus-visible,
.footer-links a:focus-visible,
.social-badge:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* ════════════════════════════════════════
   HEADER / NAV
   ════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header .container {
  max-width: 1760px;
  width: 100%;
  padding-left: clamp(1.25rem, 2.5vw, 2.5rem);
  padding-right: clamp(1.25rem, 2.5vw, 2.5rem);
}

.site-header.scrolled {
  background: rgba(11, 31, 59, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 7px;
}

.logo-mark--sm {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text-heading); }

.nav-cta {
  padding: 0.55rem 1.25rem;
  background: var(--perle-orange);
  color: #fff !important;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover {
  background: #d46000;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ════════════════════════════════════════
   HERO — Cinematic Kitchen OS Command Centre
   ════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  position: relative;
  /* overflow-x: clip — clips horizontal overflow without creating a new scroll container.
     This lets the perspective shadow/glow extend visually but prevents actual scrollbar. */
  overflow-x: clip;
  overflow-y: visible;
  background: linear-gradient(160deg, #060f1e 0%, #0a1929 45%, #0B1F3B 100%);
  display: flex;
  flex-direction: column;
}

/* ── Layered atmospheric depth — section-level, not global ── */
.ambient-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform;
}

/* Fallback for browsers that do not support mix-blend-mode or render it poorly:
   standard radial-gradients with opacity look great on dark backgrounds natively. */
@supports not (mix-blend-mode: screen) {
  .hero-orb {
    opacity: 0.85;
  }
}

/* Orb 1: Warm gold — upper right, behind product */
.hero-orb--gold {
  top: -10%;
  right: -5%;
  width: clamp(350px, 45vw, 650px);
  height: clamp(350px, 45vw, 650px);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.04) 50%, transparent 80%);
  animation: orb-float-gold 14s ease-in-out infinite;
}

/* Orb 2: Teal — middle left, behind editorial content */
.hero-orb--teal {
  top: 10%;
  left: -10%;
  width: clamp(300px, 40vw, 550px);
  height: clamp(300px, 40vw, 550px);
  background: radial-gradient(circle, rgba(32, 94, 126, 0.22) 0%, rgba(32, 94, 126, 0.06) 60%, transparent 80%);
  animation: orb-float-teal 18s ease-in-out infinite;
}

/* Orb 3: Soft pearl — center top, adding organic sheen */
.hero-orb--pearl {
  top: -15%;
  left: 35%;
  width: clamp(250px, 30vw, 450px);
  height: clamp(250px, 30vw, 450px);
  background: radial-gradient(circle, rgba(246, 241, 232, 0.08) 0%, rgba(246, 241, 232, 0.02) 50%, transparent 80%);
  animation: orb-float-pearl 16s ease-in-out infinite;
}

/* Orb 4: Deep navy — bottom center, floor shadow contrast */
.hero-orb--navy {
  bottom: -20%;
  right: 15%;
  width: clamp(400px, 50vw, 750px);
  height: clamp(400px, 50vw, 750px);
  background: radial-gradient(circle, rgba(11, 31, 59, 0.5) 0%, rgba(7, 22, 42, 0.2) 60%, transparent 80%);
  animation: orb-float-navy 22s ease-in-out infinite;
}

/* Hardware-accelerated organic drift keyframes */
@keyframes orb-float-gold {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}

@keyframes orb-float-teal {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, 25px) scale(1.06); }
}

@keyframes orb-float-pearl {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, 30px) scale(1.05); }
}

@keyframes orb-float-navy {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -15px) scale(1.04); }
}

/* 3D Perspective Grid Floor */
.hero-grid-depth {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center bottom;
  transform: perspective(600px) rotateX(60deg);
  transform-origin: center bottom;
  pointer-events: none;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 80%);
  z-index: 0;
}

/* Fine dot grid overlay (flat, maps behind container) */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 55% 75% at 70% 48%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 70% 48%, black 0%, transparent 100%);
  z-index: 0;
}

/* ── Full-bleed stage layout ── */
/* Grid with minmax(0,...) columns is the key safety mechanism:
   grid children can never force the grid wider than the viewport. */
.hero-stage {
  flex: 1;
  display: grid;
  /* Left: editorial (36%). Right: product (64%) */
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  align-items: center;
  position: relative;
  z-index: 1;
  width: min(100% - clamp(2rem, 4vw, 5rem), 1760px);
  margin-inline: auto;
  padding-top: 6rem;
  padding-bottom: 5.5rem;
  gap: 2rem;
}

/* ── LEFT: Editorial content column ── */
.hero-content {
  min-width: 0; /* required for grid child — prevents overflow */
  max-width: 420px;
  position: relative;
  z-index: 2;
}

/* Hero badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.48rem 1.1rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--perle-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  box-shadow: 0 0 24px -4px rgba(212, 175, 55, 0.14);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--perle-gold);
  border-radius: 50%;
  animation: pulse-dot 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.75); }
}

/* Editorial headline — bigger, tighter, more confident */
.hero h1 {
  font-size: clamp(2.8rem, 4.8vw, 4.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.hero h1 .accent {
  color: var(--perle-gold);
}

.hero h1 .hero-subline-for {
  font-size: 0.8em;
  color: var(--perle-gold);
  font-weight: 800;
  display: inline-block;
  margin: 0.1rem 0;
  letter-spacing: -0.015em;
}

.hero h1 .hero-subline-chefs {
  font-size: 0.8em;
  color: var(--perle-gold);
  font-weight: 800;
  display: inline-block;
  letter-spacing: -0.015em;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(203, 213, 225, 0.8);
  max-width: 430px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

/* Ghost CTA — secondary style for hero only */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(203, 213, 225, 0.75);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  letter-spacing: 0.01em;
  min-height: 48px;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-heading);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: rgba(203, 213, 225, 0.45);
  flex-wrap: wrap;
}

.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-proof-item svg {
  width: 14px;
  height: 14px;
  color: var(--perle-gold);
  opacity: 0.7;
  flex-shrink: 0;
}

/* ── RIGHT: Dominant product column ── */
.hero-product {
  position: relative;
  min-width: 0;      /* required for grid child — prevents overflow forcing */
  width: 100%;
  max-width: 100%;
  z-index: 1;
  margin-top: -5.5rem; /* lifted slightly higher to anchor with headline block */
}

/* Cinematic ambient halo — warm light source behind the product */
/* Uses layered CSS gradients, no filter:blur, no GPU overhead */
.product-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 115%;
  height: 140%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%,
      rgba(230, 109, 0, 0.18) 0%,
      rgba(212, 175, 55, 0.10) 28%,
      rgba(32, 94, 126, 0.07) 52%,
      transparent 68%
    );
}

/* ── Product frame — the dominant visual ── */
.mockup-frame {
  position: relative;
  z-index: 1;
  /* Constrain to the product column — image scales with the column, never forces overflow */
  width: 100%;
  max-width: 100%;
  background: #05111f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;

  /* Perspective tilt — the transform renders into the element's visual layer.
     overflow-x:clip on .hero clips any pixel bleed without causing a scrollbar. */
  transform: perspective(2000px) rotateY(var(--tilt-y, -3.5deg)) rotateX(var(--tilt-x, 1.8deg));
  transition: transform 0.4s var(--ease-out);

  /* Multi-layered cinematic shadow and glow */
  box-shadow:
    0 35px 120px -20px rgba(0, 0, 0, 0.95),
    -25px 25px 90px -25px rgba(0, 0, 0, 0.7),
    0 0 100px -10px rgba(32, 94, 126, 0.42), /* stronger teal glow */
    0 0 50px -5px rgba(212, 175, 55, 0.22),  /* stronger gold glow */
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Top-edge gradient shimmer — warm to teal */
.mockup-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(230, 109, 0, 0.5) 20%,
    rgba(212, 175, 55, 0.6) 50%,
    rgba(32, 94, 126, 0.35) 80%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Subtle inner vignette on the screenshot */
.mockup-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(5, 17, 31, 0.15) 0%, transparent 20%);
  pointer-events: none;
  z-index: 2;
}

/* Faux 3D floating effect wrapper */
.mockup-float-wrap.product-float {
  width: 100%;
  animation: product-float-3d 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes product-float-3d {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(0.6deg); }
}

/* Mac-style title bar */
.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(5, 17, 31, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.mockup-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mockup-bar span:nth-child(1) { background: #ff5f56; opacity: 0.85; }
.mockup-bar span:nth-child(2) { background: #ffbd2e; opacity: 0.85; }
.mockup-bar span:nth-child(3) { background: #27c93f; opacity: 0.85; }

.hero-dashboard-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ── Floating annotation chips ── */
/* Bigger, more intentional, clearly readable */
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.05rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
  /* Dark, solid background — no backdrop-filter cost on old iPhones */
  background: rgba(5, 15, 30, 0.93);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--perle-gold);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.6),
    0 0  18px -4px rgba(212, 175, 55, 0.18);
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease;
}

.hero-chip:hover {
  background: rgba(5, 15, 30, 0.98);
  border-color: var(--perle-gold) !important;
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.7),
    0 0 24px -2px rgba(212, 175, 55, 0.3) !important;
  animation-play-state: paused !important;
}

/* Floating annotation chips styles */
.motion-chip {
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  will-change: transform;
}

.hero-chip.hero-chip--nw {
  animation-name: chip-float-nw;
  animation-duration: 6s;
}

.hero-chip.hero-chip--ne {
  animation-name: chip-float-ne;
  animation-duration: 7s;
  animation-delay: 0.5s;
}

.hero-chip.hero-chip--se {
  animation-name: chip-float-se;
  animation-duration: 6.5s;
  animation-delay: 1s;
}

.hero-chip.hero-chip--sw {
  animation-name: chip-float-sw;
  animation-duration: 7.5s;
  animation-delay: 1.5s;
}

@keyframes chip-float-nw {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-7px) translateX(3px); }
}

@keyframes chip-float-ne {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-9px) translateX(-4px); }
}

@keyframes chip-float-se {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-6px) translateX(4px); }
}

@keyframes chip-float-sw {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-8px) translateX(-3px); }
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chip-dot--gold {
  background: var(--perle-gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.chip-dot--teal {
  background: #4FBFD4;
  box-shadow: 0 0 8px rgba(79, 191, 212, 0.55);
  animation: pulse-dot 2.5s ease-in-out infinite 0.9s;
}

.chip-dot--muted {
  background: rgba(203, 213, 225, 0.35);
}

/* Teal chip variant */
.hero-chip--ne {
  border-color: rgba(79, 191, 212, 0.3);
  color: #6dcee0;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6), 0 0 18px -4px rgba(79, 191, 212, 0.2);
}

.hero-chip--ne:hover {
  border-color: #4FBFD4 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 24px -2px rgba(79, 191, 212, 0.3) !important;
  transform: translateY(-4px) scale(1.05) !important;
  animation-play-state: paused !important;
}

/* Muted chip variant */
.hero-chip--sw {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(203, 213, 225, 0.55);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.hero-chip--sw:hover {
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: rgba(203, 213, 225, 0.8) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
  transform: translateY(-4px) scale(1.05) !important;
  animation-play-state: paused !important;
}

/* Chip positions — relative to .hero-product.
   Right-side chips pulled inside the product column (no negative right offset)
   so they never push past the grid column boundary. */
.hero-chip--nw { top: -18px;  left: 7%; }
.hero-chip--ne { top: 18%;    right: 14px; } /* inside column, not -px */
.hero-chip--se { bottom: 22%; right: 14px; } /* inside column, not -px */
.hero-chip--sw { bottom: -16px; left: 10%; }

/* Mobile chip row */
.hero-chip-row-mobile {
  display: none;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
  justify-content: center;
}






/* ════════════════════════════════════════
   CINEMATIC STORY INTERLUDE
   ════════════════════════════════════════ */
.story-interlude {
  background: var(--perle-bg2);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

/* Section-level dot-grid bg */
.story-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.7;
}

/* Top & bottom fades to blend into adjacent sections */
.story-interlude::before,
.story-interlude::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 1;
}
.story-interlude::before {
  top: 0;
  background: linear-gradient(to bottom, var(--perle-bg), transparent);
}
.story-interlude::after {
  bottom: 0;
  background: linear-gradient(to top, var(--perle-bg), transparent);
}

.story-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.story-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-body);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
  position: relative;
  z-index: 2;
}

/* Staggered reveal for story block elements */
.story-interlude .reveal:nth-child(1) { transition-delay: 0ms; }
.story-interlude .reveal:nth-child(2) { transition-delay: 150ms; }

/* ════════════════════════════════════════
   INTRO / POSITIONING
   ════════════════════════════════════════ */
.intro {
  background: linear-gradient(180deg, var(--perle-bg) 0%, var(--perle-bg2) 100%);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-text h2 {
  margin-bottom: 1.25rem;
}

.intro-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ── Promise Cards (21st.dev-inspired display cards) ── */
.promise-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.promise-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(26, 44, 66, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.promise-card:hover {
  border-color: rgba(212, 175, 55, 0.22);
  transform: translateX(4px);
  box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.3);
}

.promise-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promise-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--perle-gold);
}

.promise-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.promise-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ════════════════════════════════════════
   CAPABILITIES
   ════════════════════════════════════════ */
.capabilities {
  background: var(--perle-bg2);
}

.capabilities-header {
  display: grid;
  justify-items: center;
  width: 100%;
}

.capabilities-header .section-label {
  justify-content: center;
  margin-inline: auto;
}

.capabilities-header .section-label::before,
.capabilities-header .section-label::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--perle-gold);
  opacity: 0.5;
}

.capabilities-header .section-subtitle {
  margin-inline: auto;
}

/* 3-column grid; 7th card spans full width */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.cap-card {
  --cap-accent: #9b87f5;
  --cap-accent-rgb: 155, 135, 245;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem;
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease, border-left-color 0.3s ease,
              transform 0.3s var(--ease-out), box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--cap-accent-rgb), 0.1);
  border: 1px solid rgba(var(--cap-accent-rgb), 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--cap-accent);
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.cap-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cap-card:hover {
  border-left-color: rgba(var(--cap-accent-rgb), 0.52);
}

.cap-card--intelligence { --cap-accent: #a78bfa; --cap-accent-rgb: 167, 139, 250; }
.cap-card--adapt { --cap-accent: #4ea8ff; --cap-accent-rgb: 78, 168, 255; }
.cap-card--library { --cap-accent: #718dff; --cap-accent-rgb: 113, 141, 255; }
.cap-card--costing { --cap-accent: #38d5e8; --cap-accent-rgb: 56, 213, 232; }
.cap-card--ops { --cap-accent: #f2b84b; --cap-accent-rgb: 242, 184, 75; }
.cap-card--print { --cap-accent: #ff8a3d; --cap-accent-rgb: 255, 138, 61; }
.cap-card--studio {
  --cap-accent: #55d6b1;
  --cap-accent-rgb: 85, 214, 177;
  --studio-active: #b5ffe9;
  --studio-active-rgb: 105, 237, 199;
}
.cap-card--roadmap {
  --cap-accent: #ff5ca8;
  --cap-accent-rgb: 255, 92, 168;
  --roadmap-gold: #ffd081;
  --roadmap-gold-rgb: 245, 168, 55;
  --roadmap-lime: #d9ff8e;
  --roadmap-lime-rgb: 174, 255, 65;
  --roadmap-pink: #ffb2d3;
  --roadmap-pink-rgb: 255, 76, 156;
  --roadmap-steel: #b4c3d8;
  --roadmap-steel-rgb: 121, 144, 174;
}

/* Muted icon for beta/soon capabilities */
.cap-icon--soon {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.cap-icon--soon svg { stroke: var(--text-muted); }

/* Brand (teal) icon variant — used for Costing */
.cap-icon--brand {
  background: rgba(32, 94, 126, 0.12);
  border-color: rgba(32, 94, 126, 0.2);
}
.cap-icon--brand svg { stroke: var(--perle-brand); }

/* Badge row inside a cap card header */
.cap-header-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.cap-header-row h3 { margin-bottom: 0; }

.cap-card h3 {
  margin-bottom: 0.6rem;
}

.cap-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Costing card — subtle brand highlight */
.cap-card--costing {
  border-color: rgba(56, 213, 232, 0.16);
}
.cap-card--costing:hover {
  border-color: rgba(56, 213, 232, 0.28);
  border-left-color: rgba(56, 213, 232, 0.52);
  box-shadow: 0 12px 40px -8px rgba(56, 213, 232, 0.1);
}

/* Wide card — spans all 3 columns (Coming Next / Roadmap) */
.cap-card--wide {
  grid-column: 1 / -1;
}

.cap-card-wide-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.cap-card-wide-inner .cap-icon {
  margin-bottom: 0;
}

.cap-wide-text {
  flex: 1;
  min-width: 0;
}

.cap-card--studio {
  border-color: rgba(85, 214, 177, 0.16);
}

.cap-card--roadmap {
  background: rgba(26, 44, 66, 0.58);
  border-color: rgba(var(--cap-accent-rgb), 0.2);
  border-left-color: rgba(var(--cap-accent-rgb), 0.4);
}

/* ════════════════════════════════════════
   SYSTEM MAP — Connected Pathway
   Desktop: horizontal  |  Mobile: vertical
   ════════════════════════════════════════ */
.system-map {
  background: var(--perle-bg);
  overflow: hidden;
}



/* ── System Deck Section (Overlapping Cards Stack) ── */
.system-deck-section {
  padding: var(--section-pad-y) 0;
  background: var(--perle-bg);
  overflow: hidden;
}

.system-deck-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3.5rem;
  
  /* Module Accent Definitions */
  --module-accent: #E5C158;
  --module-accent-soft: rgba(229, 193, 88, 0.08);
  --module-glow: rgba(229, 193, 88, 0.15);
  --module-accent-rgb: 229, 193, 88;
}

/* Module Accent Specific Themes */
[data-theme="intake"] {
  --module-accent: #E5C158;
  --module-accent-soft: rgba(229, 193, 88, 0.08);
  --module-glow: rgba(229, 193, 88, 0.15);
  --module-accent-rgb: 229, 193, 88;
}
[data-theme="intelligence"] {
  --module-accent: #4FBFD4;
  --module-accent-soft: rgba(79, 191, 212, 0.08);
  --module-glow: rgba(79, 191, 212, 0.15);
  --module-accent-rgb: 79, 191, 212;
}
[data-theme="library"] {
  --module-accent: #5DADE2;
  --module-accent-soft: rgba(93, 173, 226, 0.08);
  --module-glow: rgba(93, 173, 226, 0.15);
  --module-accent-rgb: 93, 173, 226;
}
[data-theme="costing"] {
  --module-accent: #A2B997;
  --module-accent-soft: rgba(162, 185, 151, 0.08);
  --module-glow: rgba(162, 185, 151, 0.15);
  --module-accent-rgb: 162, 185, 151;
}
[data-theme="print"] {
  --module-accent: #F5B041;
  --module-accent-soft: rgba(245, 176, 65, 0.08);
  --module-glow: rgba(245, 176, 65, 0.15);
  --module-accent-rgb: 245, 176, 65;
}
[data-theme="prep"] {
  --module-accent: #8F7EE5;
  --module-accent-soft: rgba(143, 126, 229, 0.08);
  --module-glow: rgba(143, 126, 229, 0.15);
  --module-accent-rgb: 143, 126, 229;
}
[data-theme="clarity"] {
  --module-accent: #F39C12;
  --module-accent-soft: rgba(243, 156, 18, 0.08);
  --module-glow: rgba(243, 156, 18, 0.15);
  --module-accent-rgb: 243, 156, 18;
}

.system-deck-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

/* Stepper Navigation Buttons */
.system-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: relative;
  z-index: 5;
}

.system-step-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s var(--ease-out);
}
.step-icon-mini {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.45;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.step-icon-mini svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}
.system-step-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-heading);
}
.system-step-btn:hover .step-icon-mini {
  opacity: 0.85;
}

.system-step-btn.is-active {
  background: var(--module-accent-soft);
  border-color: rgba(var(--module-accent-rgb), 0.35);
  color: var(--module-accent);
  box-shadow: 0 0 12px rgba(var(--module-accent-rgb), 0.08);
}
.system-step-btn.is-active .step-icon-mini {
  opacity: 1;
  color: var(--module-accent);
}
.system-step-btn:focus-visible {
  outline: 2px solid var(--module-accent);
  outline-offset: 2px;
}

/* Console Display Panel */
.system-console-panel {
  padding: 2.5rem;
  border-radius: 12px;
  background: rgba(11, 31, 59, 0.45);
  border: 1px solid rgba(var(--module-accent-rgb), 0.2);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transition: border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.6s ease;
  display: flex;
  flex-direction: column;
  min-height: 275px;
}

/* Glow effects behind console panel */
.system-console-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 10% 10%, rgba(var(--module-accent-rgb), 0.12) 0%, transparent 60%);
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.console-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--module-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.6s ease;
}

.console-progress-text {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}
#deck-console-num {
  color: var(--module-accent);
  font-weight: bold;
  transition: color 0.6s ease;
}

.console-body {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.console-icon-wrap {
  position: relative;
  display: inline-block;
}

.console-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(var(--module-accent-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--module-accent);
  box-shadow: 0 0 15px var(--module-glow);
  transition: all 0.4s var(--ease-out);
}
.console-icon-circle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.console-icon-circle.transitioning {
  opacity: 0;
  transform: scale(0.9);
}

.console-pulse-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--module-accent);
  border: 2px solid #0B1F3B;
  box-shadow: 0 0 8px var(--module-accent);
  transition: background-color 0.6s ease, box-shadow 0.6s ease;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--module-accent-rgb), 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--module-accent-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--module-accent-rgb), 0);
  }
}
.console-icon-circle.pulse-active {
  animation: pulse-glow 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1;
}

.console-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.console-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  margin: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.console-title.transitioning,
.console-status-line.transitioning {
  opacity: 0;
  transform: translateY(-4px);
}

.console-status-line {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Flow input / output flow-io box */
.console-flow-io {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  margin-top: 1rem;
  transition: border-color 0.6s ease, opacity 0.15s ease, transform 0.15s ease;
}
.console-flow-io.transitioning {
  opacity: 0;
  transform: translateY(4px);
}
.flow-io-box {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.flow-label {
  font-family: monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.8;
}
.flow-val {
  font-size: 0.82rem;
  color: var(--text-heading);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  opacity: 0.35;
  width: 14px;
  height: 14px;
}
.flow-arrow svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

/* Progress rail */
.console-progress-rail {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1px;
  overflow: hidden;
  margin-top: 2rem;
}
.progress-rail-fill {
  height: 100%;
  background: var(--module-accent);
  width: 14.28%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.6s ease;
}

/* Stacked Visual Card Deck */
.system-card-stack-wrap {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.system-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.system-card {
  position: relative;
  inset: auto;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--module-accent);
  background: #0B1F3B;
  background: rgba(11, 31, 59, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform-origin: center center;
  cursor: pointer;
  backface-visibility: hidden;
  user-select: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              background-color 0.4s ease;
}

.system-card.is-active {
  border-color: rgba(var(--module-accent-rgb), 0.45);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--module-accent-rgb), 0.1);
}

/* Desktop viewport layered card stack layout */
@media (min-width: 1025px) {
  .motion-ready .system-card-stack {
    position: relative;
    height: 480px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: block;
  }
  
  .motion-ready .system-card {
    position: absolute;
    inset: 0;
    width: auto;
    transform: translate3d(var(--card-tx, 0px), var(--card-ty, 0px), 0) rotate(var(--card-rot, 0deg)) scale(var(--card-scale, 1));
    z-index: var(--card-zi, 1);
    opacity: var(--card-op, 1);
    pointer-events: var(--card-pe, auto);
  }

  /* Active card hover effect */
  .motion-ready .system-card.is-active:hover {
    transform: translate3d(0, -12px, 0) rotate(0deg) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(var(--module-accent-rgb), 0.15);
    background-color: rgba(26, 44, 66, 0.95);
  }

  /* Hover spreads the stack background cards */
  .motion-ready .system-card-stack:hover .system-card:not(.is-active) {
    transform: translate3d(calc(var(--card-tx) * 1.35), calc(var(--card-ty) * 1.35), 0) rotate(calc(var(--card-rot) * 1.15)) scale(var(--card-scale));
  }
}

.system-card:focus-visible {
  outline: 2px solid var(--module-accent);
  outline-offset: 4px;
}

.system-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-num {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.6;
}
.card-chip {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 10px;
  color: var(--module-accent);
  background: var(--module-accent-soft);
  border: 1px solid rgba(var(--module-accent-rgb), 0.2);
  transition: color 0.6s ease, background 0.6s ease, border-color 0.6s ease;
}

.system-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 1rem 0 0.5rem 0;
}
.system-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Inner card flow-io details */
.card-io-flow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.85;
  margin-top: 1rem;
}
.card-io-flow .io-arrow {
  color: var(--module-accent);
  font-weight: bold;
  transition: color 0.6s ease;
}
.card-io-flow .io-step {
  background: rgba(255, 255, 255, 0.015);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.card-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}
.card-icon-circle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.system-card.is-active .card-icon-circle {
  color: var(--module-accent);
  border-color: rgba(var(--module-accent-rgb), 0.35);
  background: rgba(var(--module-accent-rgb), 0.04);
  box-shadow: 0 0 15px rgba(var(--module-accent-rgb), 0.15);
}

.system-card-bottom {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.card-outcome-label {
  font-family: monospace;
  color: var(--module-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  transition: color 0.6s ease;
}
.card-outcome-text {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

   ════════════════════════════════════════ */
.why-different {
  background: linear-gradient(180deg, var(--perle-bg) 0%, var(--perle-bg2) 100%);
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.diff-card {
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
}

.diff-marker {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--perle-gold), rgba(212, 175, 55, 0.15));
  flex-shrink: 0;
  min-height: 60px;
}

.diff-card h3 {
  margin-bottom: 0.5rem;
}

.diff-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ════════════════════════════════════════
   SIFAS / FOOD OS FOUNDATION
   ════════════════════════════════════════ */
.sifas-foundation {
  background: var(--perle-bg);
  position: relative;
}

/* Section-level teal orb */
.sifas-orb {
  position: absolute;
  top: -20%;
  right: -15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 94, 126, 0.09) 0%, transparent 65%);
  pointer-events: none;
}

.sifas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.sifas-text h2 {
  margin-bottom: 1.25rem;
}

.sifas-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.sifas-note {
  font-style: italic;
  color: var(--perle-gold);
  font-size: 0.92rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid rgba(212, 175, 55, 0.3);
  margin-top: 1.25rem;
  background: rgba(212, 175, 55, 0.04);
  border-radius: 0 0.5rem 0.5rem 0;
  opacity: 0.9;
}

.sifas-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sifas-pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(26, 44, 66, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.sifas-pillar:hover {
  border-color: rgba(32, 94, 126, 0.25);
  transform: translateX(3px);
}

.sifas-pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(32, 94, 126, 0.12);
  border: 1px solid rgba(32, 94, 126, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sifas-pillar-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--perle-brand);
}

.sifas-pillar-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.3rem;
}

.sifas-pillar-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ════════════════════════════════════════
   BUILT FOR
   ════════════════════════════════════════ */
.built-for {
  background: var(--perle-bg2);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.role-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.role-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(32, 94, 126, 0.12);
  border: 1px solid rgba(32, 94, 126, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--perle-brand);
  transition: background 0.3s ease, transform 0.3s ease;
}

.role-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--perle-brand);
}

.role-card:hover .role-icon {
  transform: scale(1.08);
}

/* Owner-Chefs (Gold Pop) */
.role-card--owner .role-icon {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.28);
  color: var(--perle-gold);
}
.role-card--owner .role-icon svg {
  stroke: var(--perle-gold);
}
.role-card--owner:hover .role-icon {
  background: rgba(212, 175, 55, 0.16);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
}

/* Head Chefs (Teal Pop) */
.role-card--head .role-icon {
  background: rgba(79, 191, 212, 0.08);
  border-color: rgba(79, 191, 212, 0.28);
  color: #4FBFD4;
}
.role-card--head .role-icon svg {
  stroke: #4FBFD4;
}
.role-card--head:hover .role-icon {
  background: rgba(79, 191, 212, 0.16);
  box-shadow: 0 0 16px rgba(79, 191, 212, 0.2);
}

/* Sous Chefs (Orange Pop) */
.role-card--sous .role-icon {
  background: rgba(230, 109, 0, 0.08);
  border-color: rgba(230, 109, 0, 0.28);
  color: var(--perle-orange);
}
.role-card--sous .role-icon svg {
  stroke: var(--perle-orange);
}
.role-card--sous:hover .role-icon {
  background: rgba(230, 109, 0, 0.16);
  box-shadow: 0 0 16px rgba(230, 109, 0, 0.2);
}

/* Cafés & Small Teams (Blue Pop) */
.role-card--team .role-icon {
  background: rgba(32, 94, 126, 0.12);
  border-color: rgba(32, 94, 126, 0.28);
  color: #6dcee0;
}
.role-card--team .role-icon svg {
  stroke: #6dcee0;
}
.role-card--team:hover .role-icon {
  background: rgba(32, 94, 126, 0.22);
  box-shadow: 0 0 16px rgba(32, 94, 126, 0.2);
}

.role-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.role-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ════════════════════════════════════════
   PRICING
   ════════════════════════════════════════ */
.pricing {
  background: var(--perle-bg);
}

.pricing-explanation {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0.5rem auto 0;
  line-height: 1.6;
  opacity: 0.9;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  align-items: start;
}

.price-card {
  padding: 2rem 1.1rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    transform 0.35s var(--ease-out, cubic-bezier(0.22,1,0.36,1)),
    box-shadow 0.3s ease;
}

/* Selectable cards — cursor and user-select guard on save badges */
.price-card[data-plan],
.founding-card[data-plan] {
  cursor: pointer;
}

.price-card[data-plan] .founding-save-tag,
.founding-card[data-plan] .founding-save-tag {
  user-select: none;
  -webkit-user-select: none;
}

/* Hover lift for selectable pricing cards */
@media (hover: hover) {
  /* Normal price cards */
  .glass-card.price-card[data-plan]:hover {
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-5px) scale(1.01);
    box-shadow:
      0 20px 50px -12px rgba(0, 0, 0, 0.7),
      0 0 30px -5px rgba(32, 94, 126, 0.2);
  }

  .glass-card.price-card[data-plan].featured:hover {
    border-color: rgba(212, 175, 55, 0.55);
    transform: translateY(-5px) scale(1.04);
    box-shadow:
      0 24px 60px -12px rgba(0, 0, 0, 0.8),
      0 0 40px -5px rgba(212, 175, 55, 0.3);
  }

  /* Founding cards already have their own hover rules below,
     but ensure the glass-card suppressor does not blank them out */
  .glass-card.founding-card[data-plan]:hover {
    transform: translateY(-6px) scale(1.015);
  }
}

/* Keyboard focus ring for selectable cards */
.glass-card.price-card[data-plan]:focus-visible,
.glass-card.founding-card[data-plan]:focus-visible {
  outline: 2px solid var(--perle-gold, #D4AF37);
  outline-offset: 3px;
}

/* ── Selected plan state ────────────────────────────────────────────
   Applied by JS via card.classList.add('is-selected').
   High-specificity selectors avoid needing !important.
   Applies to both normal price cards and founding cards.
   ──────────────────────────────────────────────────────────────── */
.glass-card.price-card.is-selected,
.glass-card.founding-card.is-selected {
  border-color: var(--perle-gold, #D4AF37);
  box-shadow:
    0 0 0 2px rgba(212, 175, 55, 0.4),
    0 20px 55px -12px rgba(0, 0, 0, 0.8),
    0 0 50px -8px rgba(212, 175, 55, 0.28);
  outline: none;
}

/* Keep the featured card's scale when selected */
.glass-card.price-card.featured.is-selected {
  transform: scale(1.03);
}

/* Gold top-edge highlight intensifies on founding card selection */
.glass-card.founding-card.is-selected::before {
  opacity: 1;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.7) 30%,
    var(--perle-gold, #D4AF37) 50%,
    rgba(212, 175, 55, 0.7) 70%,
    transparent 100%
  );
}

/* Selected indicator ✓ appended to tier label */
.glass-card.price-card.is-selected .price-tier::after,
.glass-card.founding-card.is-selected .founding-plan-badge::after {
  content: ' ✓';
  color: var(--perle-gold, #D4AF37);
  font-size: 0.75em;
  font-weight: 700;
}

/* Hover on a selected card — keep selected border, allow lift */
@media (hover: hover) {
  .glass-card.price-card[data-plan].is-selected:hover {
    border-color: var(--perle-gold, #D4AF37);
    transform: translateY(-5px) scale(1.01);
    box-shadow:
      0 0 0 2px rgba(212, 175, 55, 0.45),
      0 24px 60px -12px rgba(0, 0, 0, 0.85),
      0 0 55px -8px rgba(212, 175, 55, 0.32);
  }

  .glass-card.price-card[data-plan].featured.is-selected:hover {
    border-color: var(--perle-gold, #D4AF37);
    transform: translateY(-5px) scale(1.04);
  }
}

.price-card.featured {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 50px -12px rgba(212, 175, 55, 0.2);
  transform: scale(1.03);
}

.price-card.featured:hover {
  transform: scale(1.05);
}

.price-featured-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.35rem;
  background: linear-gradient(135deg, var(--perle-gold), #C49B2F);
  color: var(--perle-bg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-featured-badge + .price-tier {
  margin-top: 1.5rem;
}

.price-tier {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--perle-gold);
  margin-bottom: 0.65rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.price-amount--soon {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-muted);
}

.price-amount .period {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-positioning {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.price-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.1rem 0;
}

.price-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
}

.price-chip.gold-chip {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.2);
  color: var(--perle-gold);
}

.price-chip.teal-chip {
  background: rgba(79, 191, 212, 0.08);
  border-color: rgba(79, 191, 212, 0.2);
  color: #6dcee0;
}

.price-setup-line {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  font-weight: 500;
}

.price-best-for {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 0;
  min-height: 58px; /* keeps alignment consistent on desktop */
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  flex: 1;
}

.price-features li {
  font-size: 0.82rem;
  color: var(--text-body);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-features li::before {
  content: '✓';
  color: var(--perle-gold);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.price-card .btn {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  margin-top: auto;
  min-height: 44px;
}

/* ════════════════════════════════════════
   VISION
   ════════════════════════════════════════ */
.vision-subtitle {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 780px;
  margin: 1.25rem auto 3.5rem;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4.5rem;
  text-align: left;
}

.vision-card {
  padding: 2.5rem 2rem;
  position: relative;
}

.vision-card-step {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--perle-gold);
  margin-bottom: 0.85rem;
}

.vision-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  color: var(--text-heading);
}

.vision-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Founder quote supportive block - within vision container */
.founder-support {
  border-top: 1px solid var(--border-subtle);
  padding-top: 3.5rem;
  margin-top: 2rem;
}

.founder-support-inner {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  text-align: left;
  max-width: 820px;
  margin: 0 auto;
}

.founder-avatar-wrap {
  flex-shrink: 0;
}

.founder-avatar-wrap {
  flex-shrink: 0;
}

.founder-avatar {
  width: 200px;
  height: 200px;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--perle-bg2) 0%, var(--perle-surface) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  color: var(--perle-gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  letter-spacing: 0.05em;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 
              0 0 24px -2px rgba(212, 175, 55, 0.16);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Gold inset line overlay rendered on top of the image */
.founder-avatar::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 30px;
  pointer-events: none;
  z-index: 3;
}

.founder-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 2;
  transition: transform 0.5s var(--ease-out);
}

.founder-avatar:hover img {
  transform: scale(1.06);
}

.founder-avatar .avatar-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.founder-quote p {
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 1rem;
}

.founder-cite {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
}

.founder-cite strong {
  color: var(--text-heading);
}

.founder-cite span {
  color: var(--perle-gold);
}

.founder-social {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.social-label-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.social-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
}

.social-badge:hover {
  background: rgba(212, 175, 55, 0.06);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--perle-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
  transform: translateY(-1px);
}

.social-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  transition: transform 0.25s var(--ease-out);
}

.social-badge:hover .social-icon {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .vision-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .founder-support-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }
  .founder-social {
    align-items: center;
  }
  .social-badges {
    justify-content: center;
  }
}

/* ════════════════════════════════════════
   FINAL CTA
   ════════════════════════════════════════ */
.final-cta {
  background: var(--perle-bg);
  padding: 8rem 0; /* plenty of breathing room */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-cinematic-panel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-headline {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.cta-headline span {
  display: block;
}
@media (min-width: 1025px) {
  .cta-headline span {
    white-space: nowrap; /* only force no-wrap on larger desktops to prevent tablet overflow */
  }
}

.cta-supporting {
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 3rem auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.cta-trust {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.site-footer {
  background: var(--perle-bg2);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text-heading); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* ════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ════════════════════════════════════════ */
/* Base states: always visible by default if JS isn't ready */
.reveal,
.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

/* Gated behind JS readiness */
.motion-ready .reveal,
.motion-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-ready .reveal.visible,
.motion-ready .reveal.is-visible,
.motion-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Light blur on desktop only */
@media (min-width: 1101px) {
  .motion-ready .reveal,
  .motion-ready .reveal-on-scroll {
    filter: blur(2px);
    transition: 
      opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
      transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
      filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .motion-ready .reveal.visible,
  .motion-ready .reveal.is-visible,
  .motion-ready .reveal-on-scroll.is-visible {
    filter: blur(0);
  }
}

/* Stagger children */
.reveal-group .reveal:nth-child(1),
.reveal-group .reveal-on-scroll:nth-child(1) { transition-delay: 0ms; }
.reveal-group .reveal:nth-child(2),
.reveal-group .reveal-on-scroll:nth-child(2) { transition-delay: 60ms; }
.reveal-group .reveal:nth-child(3),
.reveal-group .reveal-on-scroll:nth-child(3) { transition-delay: 120ms; }
.reveal-group .reveal:nth-child(4),
.reveal-group .reveal-on-scroll:nth-child(4) { transition-delay: 180ms; }
.reveal-group .reveal:nth-child(5),
.reveal-group .reveal-on-scroll:nth-child(5) { transition-delay: 240ms; }
.reveal-group .reveal:nth-child(6),
.reveal-group .reveal-on-scroll:nth-child(6) { transition-delay: 300ms; }
.reveal-group .reveal:nth-child(7),
.reveal-group .reveal-on-scroll:nth-child(7) { transition-delay: 360ms; }


/* ════════════════════════════════════════
   RECIPE ONBOARDING
   ════════════════════════════════════════ */
.recipe-onboarding {
  background: var(--perle-bg2);
  position: relative;
  overflow: hidden;
}

.onboarding-header {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.onboarding-header h2 {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.onboarding-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.onboarding-card {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.onboarding-card:hover {
  border-color: rgba(212, 175, 55, 0.22);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.onboarding-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--perle-gold);
  margin-bottom: 1.5rem;
}

.onboarding-icon svg {
  width: 24px;
  height: 24px;
}

.onboarding-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.85rem;
}

.onboarding-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ════════════════════════════════════════
   REDUCED MOTION — Old device / accessibility
   ════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .hero-badge-dot,
  .chip-dot--gold,
  .chip-dot--teal { animation: none !important; }

  /* Remove tilt and halo transform on low-motion devices */
  .mockup-frame { transform: none !important; }
  .product-halo { display: none; }

  .mockup-float-wrap,
  .product-float,
  .hero-orb,
  .motion-chip { animation: none !important; }

  .system-card,
  .system-card-stack,
  .system-step-btn,
  .console-title,
  .console-desc,
  .console-telemetry {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ════════════════════════════════════════
   RESPONSIVE — 1100px tablet stacking (Hero only)
   ════════════════════════════════════════ */
@media (max-width: 1100px) {
  /* Hero: single-column stack on tablet/mobile */
  .hero-stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-left: var(--section-pad-x);
    padding-right: var(--section-pad-x);
    padding-top: 5rem;
    padding-bottom: 3rem;
    gap: 2.5rem;
  }
  .hero-content {
    width: 100%;
    max-width: 100%;
  }
  .hero-product {
    width: 100%;
    max-width: 100%;
    transform: none !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
  }

  .mockup-float-wrap,
  .product-float {
    animation: none !important;
  }

  /* Remove tilt entirely on tablet/mobile — cleaner, no GPU cost */
  .mockup-frame {
    transform: none !important;
    /* Pull shadows inward on mobile/tablet so they don't clip */
    box-shadow:
      0 20px 60px -15px rgba(0, 0, 0, 0.8),
      0 0 40px -10px rgba(32, 94, 126, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  /* Hide absolute chips on tablet/mobile — inline row shown below screenshot */
  .hero-chip { display: none !important; }
  .hero-chip-row-mobile { display: flex; }

  /* Scale glow orbs down on tablet/mobile — lower rendering cost & static presentations */
  .hero-orb--gold { width: 80vw; height: 80vw; top: -5%; right: -10%; animation: none !important; }
  .hero-orb--teal { width: 70vw; height: 70vw; top: 15%; left: -10%; animation: none !important; }
  .hero-orb--pearl { width: 50vw; height: 50vw; top: -5%; left: 25%; animation: none !important; }
  .hero-orb--navy { width: 90vw; height: 90vw; bottom: -10%; right: 10%; animation: none !important; }
}

/* ════════════════════════════════════════
   RESPONSIVE — 1024px tablet
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-card--wide { grid-column: 1 / -1; }
  .onboarding-grid { grid-template-columns: repeat(2, 1fr); }

  /* System Deck Layout on Tablet */
  .system-deck-info {
    display: none !important;
  }
  .system-deck-layout {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 2rem;
  }
  .system-card-stack-wrap {
    width: 100%;
  }
  .system-card-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: auto !important;
  }
  .system-card {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: auto !important;
    pointer-events: auto !important;
  }

  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .diff-grid { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .sifas-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ════════════════════════════════════════
   RESPONSIVE — 768px mobile
   ════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --section-pad-y: 4rem;
    --section-pad-x: 1.25rem;
  }

  /* Nav */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 31, 59, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  /* Story */
  .story-interlude { padding: 5rem 0; }

  /* Capabilities */
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card--wide { grid-column: 1; }
  .cap-card-wide-inner { flex-direction: column; gap: 1rem; }

  /* System Deck layout on Mobile */
  .system-card {
    padding: 1.5rem;
  }
  .system-card h3 {
    font-size: 1.15rem;
  }
  .system-card p {
    font-size: 0.9rem;
  }

  /* Others */
  .role-grid { grid-template-columns: 1fr 1fr; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .price-card.featured {
    transform: scale(1);
  }
  .price-card.featured:hover {
    transform: translateY(-2px);
  }

  .hero-sub { font-size: 1rem; }

  .hero-proof {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }
  .hero-buttons .btn { width: 100%; }

  .founder-avatar {
    width: 150px;
    height: 150px;
    font-size: 2.2rem;
    border-radius: 28px;
  }
  .founder-avatar::before {
    inset: 5px;
    border-radius: 23px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }

  .sifas-orb { width: 300px; height: 300px; }
  .onboarding-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   RESPONSIVE — 480px small mobile
   ════════════════════════════════════════ */
@media (max-width: 480px) {
  .role-grid { grid-template-columns: 1fr; }
  .promise-card { flex-direction: column; gap: 0.75rem; }
  .sifas-pillar { flex-direction: column; gap: 0.75rem; }
}

/* ── Utility ── */
.gold-text { color: var(--perle-gold); }
.orange-text { color: var(--perle-orange); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Badges ── */
.badge-soon {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1;
}

.badge-soon-inline {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  vertical-align: middle;
  font-style: normal;
  line-height: 1;
}

.badge-core {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  background: rgba(32, 94, 126, 0.15);
  border: 1px solid rgba(32, 94, 126, 0.28);
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--perle-brand);
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1;
}

/* ── Mockup tag chips — used in mobile chip row ── */
.mockup-tag-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.mockup-tag {
  padding: 0.2rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mockup-tag.gold-tag {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.2);
  color: var(--perle-gold);
}

/* ── Pricing Notes ── */
.price-coming-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -0.25rem;
  margin-bottom: 1rem;
  font-style: italic;
}

/* ════════════════════════════════════════
   FOUNDING ACCESS
   Premium founding offer section.
   Design: calm, trustworthy, chef-founder feel.
   "Founding Access" language — not "discount."
   ════════════════════════════════════════ */

/* ── Nav indicator ── */
.nav-links .nav-founding {
  color: var(--perle-gold);
  font-weight: 600;
}

.nav-links .nav-founding:hover {
  color: #fff;
}

/* ── Section wrapper ── */
.founding-access {
  background: linear-gradient(
    180deg,
    var(--perle-bg2) 0%,
    var(--perle-bg) 40%,
    var(--perle-bg2) 100%
  );
  position: relative;
  overflow: hidden;
  padding: var(--section-pad-y) 0;
}

/* ── Ambient orbs (section-level atmospheric depth) ── */
.founding-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.founding-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.founding-orb--gold {
  top: -5%;
  right: 5%;
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  background: radial-gradient(circle,
    rgba(212, 175, 55, 0.10) 0%,
    rgba(212, 175, 55, 0.03) 55%,
    transparent 75%
  );
  animation: founding-orb-drift-gold 18s ease-in-out infinite;
}

.founding-orb--teal {
  bottom: 10%;
  left: -5%;
  width: clamp(250px, 35vw, 500px);
  height: clamp(250px, 35vw, 500px);
  background: radial-gradient(circle,
    rgba(32, 94, 126, 0.15) 0%,
    rgba(32, 94, 126, 0.04) 55%,
    transparent 75%
  );
  animation: founding-orb-drift-teal 22s ease-in-out infinite;
}

@keyframes founding-orb-drift-gold {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-25px, 20px) scale(1.06); }
}
@keyframes founding-orb-drift-teal {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, -15px) scale(1.05); }
}

/* ── Section inner stacking context ── */
.founding-access .container {
  position: relative;
  z-index: 1;
}

/* ── Section header ── */
.founding-header {
  margin-bottom: 3.5rem;
}

/* Animated limited Founding Access badge */
.founding-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.1rem;
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--perle-gold);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px -6px rgba(212, 175, 55, 0.12);
}

.founding-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--perle-gold);
  border-radius: 50%;
  animation: pulse-dot 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

.founding-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
}

.founding-accent {
  color: var(--perle-gold);
}

.founding-intro {
  max-width: 680px;
  margin: 0 auto 1.1rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}

.founding-lock-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Founding pricing grid ── */
.founding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4.5rem;
  align-items: start;
}

/* ── Individual founding card ── */
.founding-card {
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    transform 0.4s var(--ease-out),
    box-shadow 0.3s ease;
}

/* Gold top edge accent */
.founding-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.4) 30%,
    rgba(212, 175, 55, 0.7) 50%,
    rgba(212, 175, 55, 0.4) 70%,
    transparent 100%
  );
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.founding-card:hover::before {
  opacity: 1;
}

/* Featured (kitchen) card */
.founding-card--featured {
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow:
    0 0 60px -15px rgba(212, 175, 55, 0.22),
    0 20px 50px -10px rgba(0, 0, 0, 0.5);
  transform: scale(1.03) translateY(-4px);
}

.founding-card--featured::before {
  opacity: 1;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.6) 30%,
    var(--perle-gold) 50%,
    rgba(212, 175, 55, 0.6) 70%,
    transparent 100%
  );
}

@media (hover: hover) {
  .founding-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-6px) scale(1.015);
    box-shadow:
      0 25px 55px -15px rgba(0, 0, 0, 0.75),
      0 0 40px -5px rgba(32, 94, 126, 0.25),
      0 0 20px -3px rgba(212, 175, 55, 0.15);
  }

  .founding-card--featured:hover {
    border-color: var(--perle-gold);
    transform: scale(1.05) translateY(-6px);
    box-shadow:
      0 30px 70px -15px rgba(0, 0, 0, 0.85),
      0 0 60px -5px rgba(212, 175, 55, 0.4);
  }
}

/* ── Featured ribbon ── */
.founding-featured-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.32rem;
  background: linear-gradient(135deg, var(--perle-gold), #C49B2F);
  color: var(--perle-bg);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* ── Plan badge (tier label) ── */
.founding-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 2rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--perle-gold);
  margin: 1.75rem auto 1.1rem;
}

.founding-plan-badge--light {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.32);
}

/* ── Plan name & description ── */
.founding-plan-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.founding-plan-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  min-height: 48px;
}

/* ── Price block ── */
.founding-price-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.founding-original-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.founding-original-price .strikethrough {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-decoration-thickness: 1.5px;
  opacity: 0.65;
}

.founding-original-price .period {
  font-size: 0.78rem;
  margin-left: 0.15rem;
}

.founding-new-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.founding-new-price .period {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.founding-save-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--perle-gold);
  letter-spacing: 0.04em;
}

/* ── Credits chip ── */
.founding-credits-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(32, 94, 126, 0.12);
  border: 1px solid rgba(32, 94, 126, 0.25);
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 600;
  color: #6dcee0;
  margin: 0 auto 1.5rem;
}

.founding-credits-chip svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* ── Features list ── */
.founding-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.75rem;
  flex: 1;
}

.founding-features li {
  font-size: 0.82rem;
  color: var(--text-body);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.founding-features li:last-child {
  border-bottom: none;
}

.founding-features li::before {
  content: '✓';
  color: var(--perle-gold);
  font-weight: 700;
  font-size: 0.73rem;
  flex-shrink: 0;
}

/* ── CTA buttons ── */
.founding-btn {
  width: 100%;
  padding: 0.8rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 0.75rem;
  letter-spacing: 0.01em;
  min-height: 46px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-heading);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.founding-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* Featured card CTA — gold variant */
.founding-btn--featured {
  background: linear-gradient(135deg, var(--perle-gold), #C49B2F);
  color: var(--perle-bg);
  border: none;
  box-shadow: 0 4px 20px -4px rgba(212, 175, 55, 0.38);
}

.founding-btn--featured:hover {
  background: linear-gradient(135deg, #e0bd45, var(--perle-gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -4px rgba(212, 175, 55, 0.52);
}

/* ── Beta activation note ── */
.founding-beta-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

/* ── Why Founding Access? ── */
.founding-why {
  background: rgba(26, 44, 66, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.founding-why-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.founding-why-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 0.6rem;
  letter-spacing: -0.02em;
}

.founding-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.founding-why-item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.founding-why-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  color: var(--perle-gold);
  flex-shrink: 0;
}

.founding-why-icon svg {
  width: 18px;
  height: 18px;
}

.founding-why-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.3;
}

.founding-why-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Beta activation notice ── */
.founding-activation-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.55;
}

.founding-activation-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--perle-gold);
  opacity: 0.7;
}

/* ════════════════════════════════════════
   FOUNDING ACCESS — RESPONSIVE
   ════════════════════════════════════════ */

/* Large tablets (≤ 1024px): 2-col grid for why section */
@media (max-width: 1024px) {
  .founding-why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

/* Tablet (≤ 860px): stack pricing cards 1-col */
@media (max-width: 860px) {
  .founding-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.25rem;
  }

  /* Reset featured scale on mobile */
  .founding-card--featured {
    transform: none;
  }

  @media (hover: hover) {
    .founding-card--featured:hover {
      transform: translateY(-6px) scale(1.015);
    }
  }

  .founding-why {
    padding: 2rem 1.5rem;
  }

  .founding-why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  .founding-header {
    margin-bottom: 2.5rem;
  }

  .founding-intro {
    font-size: 0.95rem;
  }

  .founding-card {
    padding: 1.75rem 1.25rem;
  }

  .founding-new-price {
    font-size: 2.1rem;
  }

  .founding-why {
    padding: 1.75rem 1.25rem;
  }

  .founding-why-grid {
    gap: 1.25rem;
  }

  .founding-activation-note {
    text-align: center;
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* ── Roadmap Grid (Coming Next features) ── */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.roadmap-item {
  background: rgba(11, 31, 59, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

/* Individual roadmap item top accent bars & glows */
.roadmap-item--assistant {
  border-top: 2px solid rgba(130, 146, 217, 0.62) !important;
}
.roadmap-item--stock {
  border-top: 2px solid rgba(148, 163, 184, 0.22) !important;
}
.roadmap-item--ocr {
  border-top: 2px solid rgba(92, 142, 230, 0.5) !important;
}
.roadmap-item--visual {
  border-top: 2px solid rgba(148, 125, 210, 0.48) !important;
}

@keyframes assistant-pulse {
  0% {
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
    border-top-color: rgba(0, 240, 255, 0.35);
  }
  100% {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.22);
    border-top-color: rgba(0, 240, 255, 0.85);
  }
}

@media (hover: hover) {
  .roadmap-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
  }
  .roadmap-item--assistant:hover {
    box-shadow: 0 8px 24px rgba(130, 146, 217, 0.08);
    border-top-color: rgba(130, 146, 217, 0.78) !important;
  }
  .roadmap-item--stock:hover {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.02);
  }
  .roadmap-item--ocr:hover {
    box-shadow: 0 8px 24px rgba(92, 142, 230, 0.07);
  }
  .roadmap-item--visual:hover {
    box-shadow: 0 8px 24px rgba(148, 125, 210, 0.07);
  }
}

.roadmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.roadmap-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0;
  letter-spacing: -0.01em;
}

.roadmap-item p {
  font-size: 0.8rem !important;
  color: var(--text-muted);
  line-height: 1.5 !important;
  margin: 0;
}

.roadmap-item .roadmap-direction {
  margin-top: auto;
  color: rgba(166, 180, 231, 0.82);
  font-size: 0.72rem !important;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Roadmap Badge */
.badge-roadmap {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 100px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--perle-gold, #D4AF37);
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

.cap-card--studio .badge-roadmap {
  color: var(--studio-active);
  background: rgba(var(--studio-active-rgb), 0.16);
  border-color: rgba(var(--studio-active-rgb), 0.48);
  box-shadow: 0 0 12px rgba(var(--studio-active-rgb), 0.1);
  text-shadow: 0 0 8px rgba(var(--studio-active-rgb), 0.15);
}

.badge-roadmap--future {
  color: var(--roadmap-gold);
  background: rgba(var(--roadmap-gold-rgb), 0.15);
  border-color: rgba(var(--roadmap-gold-rgb), 0.4);
  box-shadow: 0 0 12px rgba(var(--roadmap-gold-rgb), 0.08);
  text-shadow: 0 0 8px rgba(var(--roadmap-gold-rgb), 0.13);
}

/* Status Chips */
.roadmap-status {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  line-height: 1;
  white-space: nowrap;
}

.roadmap-status--planned {
  background: rgba(var(--roadmap-steel-rgb), 0.11);
  border: 1px solid rgba(var(--roadmap-steel-rgb), 0.25);
  color: var(--roadmap-steel);
}

.roadmap-status--progress {
  background: rgba(var(--roadmap-lime-rgb), 0.13);
  border: 1px solid rgba(var(--roadmap-lime-rgb), 0.38);
  color: var(--roadmap-lime);
  box-shadow: 0 0 10px rgba(var(--roadmap-lime-rgb), 0.06);
}

.roadmap-status--soon {
  background: rgba(var(--roadmap-pink-rgb), 0.14);
  border: 1px solid rgba(var(--roadmap-pink-rgb), 0.36);
  color: var(--roadmap-pink);
  box-shadow: 0 0 10px rgba(var(--roadmap-pink-rgb), 0.06);
}

.studio-clone-emphasis {
  color: #a9f9e2;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .roadmap-header {
    align-items: flex-start;
  }
}

/* ── Legal pages and application disclosure ── */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--perle-porcelain);
  color: var(--perle-bg);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.skip-link:focus {
  transform: translateY(0);
}

.application-disclosure {
  max-width: 720px;
  margin: 1.1rem auto 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.application-disclosure a,
.legal-content a,
.legal-toc a,
.legal-back-link {
  color: var(--cap-accent);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.45);
  text-underline-offset: 0.2em;
}

.application-disclosure a:hover,
.legal-content a:hover,
.legal-toc a:hover,
.legal-back-link:hover {
  color: #f0cf63;
  text-decoration-color: currentColor;
}

.application-disclosure a:focus-visible,
.legal-content a:focus-visible,
.legal-toc a:focus-visible,
.legal-back-link:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--perle-gold);
  outline-offset: 4px;
  border-radius: 0.2rem;
}

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 12%, rgba(32, 94, 126, 0.14), transparent 28rem),
    radial-gradient(circle at 85% 28%, rgba(212, 175, 55, 0.06), transparent 24rem),
    var(--perle-bg2);
}

.legal-page main {
  display: block;
}

.legal-page main:focus {
  outline: none;
}

.legal-site-header .header-inner {
  justify-content: space-between;
}

.legal-back-link {
  font-size: 0.9rem;
  font-weight: 650;
}

.legal-hero {
  padding: 9.5rem 0 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-container {
  max-width: 1120px;
}

.legal-hero h1 {
  max-width: 850px;
  margin: 0.85rem 0 1.25rem;
  color: var(--text-heading);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.legal-lead {
  max-width: 760px;
  color: var(--text-body);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.legal-updated {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 255px) minmax(0, 1fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: start;
  padding-top: 3rem;
  padding-bottom: 4.5rem;
}

.legal-toc {
  position: sticky;
  top: 7.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: rgba(7, 22, 42, 0.72);
  backdrop-filter: blur(12px);
}

.legal-toc h2 {
  margin: 0 0 0.85rem;
  color: var(--text-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.legal-toc li {
  margin: 0.55rem 0;
  font-size: 0.79rem;
  line-height: 1.45;
}

.legal-toc a {
  color: var(--text-body);
  text-decoration: none;
}

.legal-content {
  min-width: 0;
}

.legal-section {
  padding: 0 0 1.9rem;
  scroll-margin-top: 7rem;
}

.legal-section + .legal-section {
  padding-top: 1.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section h2 {
  margin: 0 0 1.25rem;
  color: var(--text-heading);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.legal-section h3 {
  margin: 1.9rem 0 0.7rem;
  color: var(--perle-cream);
  font-size: 1.05rem;
  line-height: 1.35;
}

.legal-section p,
.legal-section li {
  color: var(--text-body);
  font-size: 0.98rem;
  line-height: 1.78;
}

.legal-section p {
  margin: 0 0 1rem;
}

.legal-section ul,
.legal-section ol {
  margin: 0.8rem 0 1.25rem;
  padding-left: 1.35rem;
}

.legal-section li {
  margin: 0.48rem 0;
}

.legal-section code {
  padding: 0.08rem 0.32rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--perle-cream);
  font-size: 0.86em;
}

.legal-contact-lines {
  margin: 1.25rem 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(212, 175, 55, 0.5);
}

.legal-footer {
  position: relative;
}

.studio-grid {
  border-top-color: rgba(85, 214, 177, 0.14);
}

.studio-item {
  border-color: rgba(85, 214, 177, 0.1);
  background: rgba(16, 49, 58, 0.24);
}

.legal-footer .footer-copy {
  max-width: 1120px;
  margin-inline: auto;
}

.route-error {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 3rem 0;
  text-align: center;
}

.route-error h1 {
  margin: 0.85rem 0 1rem;
  color: var(--text-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.route-error p {
  margin: 0 0 1.75rem;
  color: var(--text-body);
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 2.5rem;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 560px) {
  .legal-hero {
    padding-top: 7.5rem;
    padding-bottom: 2.75rem;
  }

  .legal-back-link {
    font-size: 0.78rem;
  }

  .legal-layout {
    padding-bottom: 4rem;
  }

  .legal-section p,
  .legal-section li {
    font-size: 0.94rem;
  }
}

@media print {
  @page {
    size: A4;
    margin: 16mm;
  }

  html,
  body.legal-page {
    background: #fff !important;
    color: #111 !important;
    font-size: 10.5pt;
  }

  .legal-site-header,
  .legal-toc,
  .legal-footer,
  .skip-link {
    display: none !important;
  }

  .legal-hero {
    padding: 0 0 10mm;
    border-bottom: 1px solid #bbb;
  }

  .legal-hero h1,
  .legal-section h2,
  .legal-section h3 {
    color: #111 !important;
  }

  .legal-lead,
  .legal-updated,
  .legal-section p,
  .legal-section li {
    color: #222 !important;
  }

  .legal-layout {
    display: block;
    max-width: none;
    padding: 10mm 0 0;
  }

  .legal-contact-lines {
    break-inside: avoid;
    border-left-color: #777;
  }

  .legal-section {
    break-inside: auto;
    padding-bottom: 6mm;
    scroll-margin-top: 0;
  }

  .legal-section + .legal-section {
    padding-top: 6mm;
    border-top-color: #bbb;
  }

  .legal-section h2,
  .legal-section h3 {
    break-after: avoid;
  }

  .legal-content a {
    color: #111 !important;
    text-decoration: underline;
  }

  .legal-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    overflow-wrap: anywhere;
  }
}
