/* ==========================================================================
   ELBA MGA LIMITED — STRIPE DESIGN SYSTEM
   Precision Financial-Infrastructure Identity
   Engineered directly from stripe.design.md token specifications
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* ------------------------------------------------------------------------
     1. COLOR SYSTEM (STRIPE CANONICAL TOKENS)
     ------------------------------------------------------------------------ */
  --stripe-primary: #533afd;
  --stripe-accent: #635bff;
  --stripe-accent-hover: #4032c8;
  --stripe-accent-pressed: #2e2b8c;
  --stripe-ink: #0a2540;          /* Deep navy headline & authoritative ink */
  --stripe-body: #425466;         /* Soft readable paragraph neutral */
  --stripe-muted: #727f96;        /* Captions, microcopy, placeholder */
  --stripe-canvas: #f6f9fc;       /* Pale blue-gray technical atmosphere */
  --stripe-surface: #ffffff;      /* Pure white card and form base */
  --stripe-surface-alt: #fafbfd;  /* Subtle row tint inside tables/cards */
  --stripe-border: #e7ecf1;       /* Quiet 1px divider */
  --stripe-border-strong: #c1c9d2;/* Strong keyline */
  --stripe-link: #635bff;
  
  /* Semantics */
  --stripe-success: #09825d;
  --stripe-warning: #bb5504;
  --stripe-error: #cd3d64;
  
  /* Brand Signatures & Accents */
  --stripe-brand-violet-soft: #e8e9ff;
  --stripe-signature-purple: #9966ff;
  --stripe-signature-cyan: #11efe3;
  --stripe-signature-magenta: #ff5996;
  --stripe-signature-orange: #ff6118;
  --stripe-super-navy: #061b31;
  --stripe-footer-bg: #0a2540;
  --stripe-code-ink: #1a1f36;
  --stripe-on-primary: #ffffff;
  --stripe-on-dark: #ffffff;

  /* ------------------------------------------------------------------------
     2. TYPOGRAPHY SYSTEM
     ------------------------------------------------------------------------ */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SourceCodePro', SFMono-Regular, Consolas, monospace;

  /* ------------------------------------------------------------------------
     3. RADII & SPACING (STRIPE PRECISE SCALE)
     ------------------------------------------------------------------------ */
  --rounded-sm: 4px;
  --rounded-md: 6px;
  --rounded-lg: 8px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 48px;
  --spacing-section: clamp(4rem, 8vw, 6rem);

  /* ------------------------------------------------------------------------
     4. ELEVATION & SHADOWS (LAYERED BUT RESTRAINED)
     ------------------------------------------------------------------------ */
  --shadow-card: 0 15px 35px rgba(49, 49, 93, 0.08), 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 18px 40px -10px rgba(49, 49, 93, 0.12), 0 8px 18px -6px rgba(0, 0, 0, 0.06);
  --shadow-hero-panel: 0 20px 80px -16px rgba(0, 55, 112, 0.14), 0 10px 60px -16px rgba(0, 59, 137, 0.06);
  --shadow-code-panel: 0 24px 60px -12px rgba(6, 27, 49, 0.35);
  --shadow-sticky-nav: 0 15px 35px rgba(49, 49, 93, 0.10), 0 5px 15px rgba(0, 0, 0, 0.08);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */

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

html {
  font-size: 16px;
  background-color: var(--stripe-canvas);
  color: var(--stripe-body);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--stripe-canvas);
  color: var(--stripe-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.font-mono {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--stripe-accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
  z-index: 2;
}

.section-spacing {
  padding-top: var(--spacing-section);
  padding-bottom: var(--spacing-section);
}

/* ==========================================================================
   STRIPE SIGNATURE ANGLED HERO MESH
   ========================================================================== */

.stripe-hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 640px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.stripe-angled-stripe {
  position: absolute;
  top: -140px;
  left: -10%;
  width: 120%;
  height: 480px;
  transform: skewY(-6deg);
  background: linear-gradient(135deg, rgba(83, 58, 253, 0.07) 0%, rgba(99, 91, 255, 0.12) 30%, rgba(17, 239, 227, 0.08) 60%, rgba(255, 89, 150, 0.05) 85%, transparent 100%);
  border-bottom: 1px solid rgba(99, 91, 255, 0.1);
}

.stripe-angled-stripe::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--stripe-primary) 0%, var(--stripe-signature-cyan) 35%, var(--stripe-signature-purple) 70%, var(--stripe-signature-orange) 100%);
  opacity: 0.85;
}

/* Top Regulatory Bar */
.reg-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--stripe-border);
  padding: 0.45rem 0;
  font-size: 13px;
  color: var(--stripe-muted);
  font-weight: 400;
}

.reg-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reg-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--stripe-body);
}

.reg-badge-inline strong {
  color: var(--stripe-ink);
  font-weight: 600;
}

/* ==========================================================================
   STRIPE NAVIGATION (CLEAN, TECHNICAL, RESPONSIVE)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stripe-border);
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sticky-nav);
}

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

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-emblem-stripe {
  width: 36px;
  height: 36px;
  border-radius: var(--rounded-md);
  background: linear-gradient(135deg, var(--stripe-primary) 0%, var(--stripe-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(83, 58, 253, 0.25);
}

.brand-emblem-stripe svg {
  width: 20px;
  height: 20px;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--stripe-ink);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stripe-accent);
  font-weight: 600;
}

.nav-links-stripe {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link-stripe {
  font-size: 15px;
  font-weight: 500;
  color: var(--stripe-body);
  transition: color var(--transition-fast);
  padding: 0.4rem 0;
  position: relative;
}

.nav-link-stripe:hover {
  color: var(--stripe-ink);
}

.nav-link-stripe.active {
  color: var(--stripe-primary);
  font-weight: 600;
}

.nav-link-stripe.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--stripe-primary);
  border-radius: var(--rounded-pill);
}

/* ==========================================================================
   STRIPE BUTTONS & PILLS (EXACT SPECIFICATION)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
  padding: 6px 16px 7px;
  border-radius: var(--rounded-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--stripe-primary);
  color: var(--stripe-on-primary);
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(83, 58, 253, 0.25);
}

.btn-primary:hover {
  background-color: var(--stripe-accent-hover);
  box-shadow: 0 4px 12px rgba(83, 58, 253, 0.35);
  color: #ffffff;
}

.btn-primary:active {
  background-color: var(--stripe-accent-pressed);
}

.btn-secondary {
  background-color: var(--stripe-surface);
  color: var(--stripe-primary);
  border: 1px solid var(--stripe-brand-violet-soft);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
  background-color: #fbfcff;
  border-color: var(--stripe-accent);
  color: var(--stripe-accent-hover);
}

.btn-dark {
  background-color: var(--stripe-ink);
  color: var(--stripe-on-dark);
  border: 1px solid transparent;
}

.btn-dark:hover {
  background-color: var(--stripe-super-navy);
  color: #ffffff;
}

.btn-link {
  background: transparent;
  color: var(--stripe-link);
  padding: 0;
  font-weight: 500;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-link:hover {
  color: var(--stripe-accent-hover);
}

.btn-link:hover svg {
  transform: translateX(3px);
}

.btn-link svg {
  transition: transform var(--transition-fast);
}

/* ==========================================================================
   TYPOGRAPHY HIERARCHY (SÖHNE / SF PRO INK SCALE)
   ========================================================================== */

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: 0.015em;
  color: var(--stripe-primary);
  padding: 4px 12px;
  background: var(--stripe-brand-violet-soft);
  border: 1px solid rgba(99, 91, 255, 0.2);
  border-radius: var(--rounded-pill);
  margin-bottom: 1.5rem;
}

.display-hero {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--stripe-ink);
  text-wrap: balance;
  margin-bottom: 1.25rem;
}

.display-hero .violet-text {
  color: var(--stripe-primary);
}

.body-hero {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--stripe-body);
  max-width: 680px;
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--stripe-ink);
  text-wrap: balance;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--stripe-body);
  max-width: 640px;
}

.card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.33;
  letter-spacing: 0;
  color: var(--stripe-ink);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   STRIPE HERO ANGLED PANEL & CAPACITY TERMINAL
   ========================================================================== */

.hero-panel-wrap {
  margin-top: 3.5rem;
  background: var(--stripe-surface);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--stripe-border);
  box-shadow: var(--shadow-hero-panel);
  overflow: hidden;
  position: relative;
}

.hero-panel-topbar {
  padding: 0.85rem 1.5rem;
  background: var(--stripe-surface-alt);
  border-bottom: 1px solid var(--stripe-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.mac-traffic-lights {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mac-dot.r { background: #ff5f56; }
.mac-dot.y { background: #ffbd2e; }
.mac-dot.g { background: #27c93f; }

/* Segmented Line Controller (Pill-based mode switch) */
.stripe-segmented-control {
  display: flex;
  background: var(--stripe-canvas);
  padding: 3px;
  border-radius: var(--rounded-pill);
  border: 1px solid var(--stripe-border);
  gap: 2px;
  overflow-x: auto;
}

.segment-item-btn {
  padding: 5px 14px;
  border-radius: var(--rounded-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--stripe-body);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.segment-item-btn:hover {
  color: var(--stripe-ink);
}

.segment-item-btn.active {
  background: var(--stripe-accent);
  color: var(--stripe-on-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(99, 91, 255, 0.35);
}

.terminal-inner-grid {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: center;
}

.terminal-metric-huge {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--stripe-ink);
  margin: 0.5rem 0;
}

.terminal-badge-chip {
  display: inline-block;
  padding: 3px 10px;
  background: var(--stripe-canvas);
  border: 1px solid var(--stripe-border);
  border-radius: var(--rounded-md);
  font-size: 13px;
  color: var(--stripe-body);
  font-weight: 400;
}

/* ==========================================================================
   STRIPE BENTO PRODUCT CARDS & 5 SPECIALIST PRACTICES
   ========================================================================== */

.bento-grid-stripe {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.bento-card-stripe {
  background: var(--stripe-surface);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--stripe-border);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-card-stripe:hover {
  transform: translateY(-3px);
  border-color: var(--stripe-accent);
  box-shadow: var(--shadow-card-hover);
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-4 { grid-column: span 4; }

.bento-stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--stripe-primary);
  margin-bottom: 0.35rem;
}

.fine-dashed-divider {
  border-bottom: 1px dashed var(--stripe-border);
  margin: 1.25rem 0;
}

/* ==========================================================================
   STRIPE PRICING & APPETITE CARDS (FINE ROWS & DASHED DIVIDERS)
   ========================================================================== */

.pricing-table-card {
  background: var(--stripe-surface);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--stripe-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-top: 2.5rem;
}

.pricing-row-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.2fr;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--stripe-border);
  font-size: 15px;
  color: var(--stripe-body);
}

.pricing-row-item:nth-child(even) {
  background: var(--stripe-surface-alt);
}

.pricing-row-item:last-child {
  border-bottom: none;
}

.pricing-row-header {
  background: var(--stripe-canvas) !important;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stripe-muted);
}

/* ==========================================================================
   STRIPE DEVELOPER CODE PANELS (DARK DOCS SURFACE)
   ========================================================================== */

.docs-code-panel {
  background: var(--stripe-code-ink);
  color: #e3e8ee;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-code-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.docs-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #8792a2;
}

.code-token-keyword { color: #ff5996; }
.code-token-fn { color: #11efe3; }
.code-token-str { color: #80e9ff; }
.code-token-num { color: #ffbc75; }
.code-token-comment { color: #697386; }

/* ==========================================================================
   PAYMENT ELEMENT CARD & WIZARD (STRIPE CHECKOUT FORM)
   ========================================================================== */

.payment-element-card {
  background: var(--stripe-surface);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--stripe-border);
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.form-group-stripe {
  margin-bottom: 1.25rem;
}

.form-label-stripe {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: 0.015em;
  color: var(--stripe-ink);
  margin-bottom: 6px;
}

.input-payment {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--stripe-ink);
  background: var(--stripe-surface);
  border: 1px solid var(--stripe-border);
  border-radius: var(--rounded-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-payment:focus {
  border-color: var(--stripe-accent);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.18);
}

textarea.input-payment {
  resize: vertical;
  min-height: 100px;
}

select.input-payment {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23727f96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Encrypted Dropzone */
.stripe-dropzone {
  border: 2px dashed var(--stripe-border-strong);
  border-radius: var(--rounded-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--stripe-surface-alt);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.stripe-dropzone:hover, .stripe-dropzone.drag-over {
  border-color: var(--stripe-primary);
  background: var(--stripe-brand-violet-soft);
}

/* ==========================================================================
   STATISTIC TILES (DATA-FIRST BLOCKS)
   ========================================================================== */

.stat-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.stat-tile {
  padding: 24px 0;
  border-top: 2px solid var(--stripe-border);
}

.stat-tile-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--stripe-ink);
  letter-spacing: -0.02em;
}

.stat-tile-label {
  font-size: 14px;
  color: var(--stripe-muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   STRIPE FOOTER (DEEP NAVY FINANCIAL ANCHOR #0A2540)
   ========================================================================== */

.site-footer-stripe {
  background-color: var(--stripe-footer-bg);
  color: #adb5bd;
  padding: 64px 0 36px;
  margin-top: auto;
  font-size: 14px;
  line-height: 1.6;
}

.footer-grid-stripe {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-link-stripe {
  color: #adb5bd;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link-stripe:hover {
  color: #ffffff;
}

.footer-legal-bar {
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--stripe-signature-cyan);
  border-radius: var(--rounded-sm);
  margin-bottom: 2rem;
  font-size: 13px;
  line-height: 1.65;
  color: #8f9ba8;
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER & RESPONSIVE QUERIES
   ========================================================================== */

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--rounded-md);
  background: var(--stripe-surface);
  border: 1px solid var(--stripe-border);
  color: var(--stripe-ink);
  cursor: pointer;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 85vw);
  height: 100vh;
  background: var(--stripe-surface);
  border-left: 1px solid var(--stripe-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 3000;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-close {
  align-self: flex-end;
  background: var(--stripe-canvas);
  border: 1px solid var(--stripe-border);
  color: var(--stripe-ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-drawer-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--stripe-body);
  padding: 0.65rem 0.75rem;
  border-radius: var(--rounded-md);
}

.mobile-drawer-link:hover, .mobile-drawer-link.active {
  color: var(--stripe-primary);
  background: var(--stripe-brand-violet-soft);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 992px) {
  .nav-links-stripe { display: none; }
  .mobile-nav-toggle { display: inline-flex; }
  .header-actions-desktop { display: none; }
  .terminal-inner-grid { grid-template-columns: 1fr; }
  .bento-span-7, .bento-span-5, .bento-span-4 { grid-column: span 12; }
  .footer-grid-stripe { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-grid-stripe { grid-template-columns: 1fr; }
  .reg-strip-inner { flex-direction: column; align-items: flex-start; }
  .pricing-row-item { grid-template-columns: 1fr; gap: 0.5rem; }
}
