:root {
  --bg-color: #f5f1eb;
  --surface: #FFFFFF;
  --surface-soft: rgba(255, 255, 255, 0.82);
  --font-sans: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  --text-main: #111111;
  --text-muted: #5f6472;
  --border: #000000;
  --border-subtle: rgba(0, 0, 0, 0.10);
  --bg-ink: #0f1724;
  --bg-steel: #1b2a3b;
  --bg-signal: #78c4ff;
  --bg-signal-soft: rgba(120, 196, 255, 0.12);

  --primary: #000000;
  --accent: #5DE265;
  --accent-hover: #4ade80;

  --danger: #EF4444;
  --warning: #F59E0B;
  --success: #10B981;

  --shadow-hard: 5px 5px 0px var(--primary);
  --shadow-soft: 0 18px 48px rgba(15, 23, 42, 0.09);
  --focus-ring: 0 0 0 3px rgba(0, 0, 0, 0.15);

  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 28px;
  --space-lg: 56px;
  --space-xl: 96px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--bg-color);
  background-image: linear-gradient(180deg, #f2ebe2 0%, #e5ddd1 100%);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  position: relative;
}

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-scene::before,
.bg-scene::after {
  content: "";
  position: absolute;
  inset: 0;
}

.bg-scene::before {
  background:
    linear-gradient(115deg, rgba(255, 248, 238, 0.34) 0%, rgba(255, 248, 238, 0) 28%),
    radial-gradient(860px circle at 50% -10%, rgba(255, 247, 236, 0.44), rgba(255, 247, 236, 0) 64%),
    radial-gradient(760px circle at 50% 100%, rgba(54, 44, 31, 0.06), rgba(54, 44, 31, 0) 68%);
  opacity: 0.7;
}

.bg-scene::after {
  display: none;
}

.bg-gradient-wash {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(900px circle at 8% 10%, rgba(200, 210, 225, 0.15) 0%, rgba(200, 210, 225, 0) 52%),
    radial-gradient(800px circle at 86% 22%, rgba(185, 195, 215, 0.20) 0%, rgba(185, 195, 215, 0) 50%),
    radial-gradient(680px circle at 52% 84%, rgba(220, 230, 245, 0.25) 0%, rgba(220, 230, 245, 0) 52%),
    linear-gradient(180deg, #F9FAFB 0%, #F1F3F5 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 150, 180, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 150, 180, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 38%, black 30%, transparent 92%);
  opacity: 0.6;
}

.bg-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.48;
  will-change: transform;
}

.bg-glow-a {
  width: min(40vw, 540px);
  height: min(40vw, 540px);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 243, 228, 0.5), rgba(255, 243, 228, 0));
}

.bg-glow-b {
  width: min(46vw, 620px);
  height: min(46vw, 620px);
  top: 18%;
  right: -12%;
  background: radial-gradient(circle at 50% 44%, rgba(150, 196, 230, 0.2), rgba(150, 196, 230, 0));
}

.bg-glow-c {
  width: min(38vw, 500px);
  height: min(38vw, 500px);
  bottom: -18%;
  left: 22%;
  background: radial-gradient(circle at 44% 44%, rgba(126, 98, 67, 0.2), rgba(126, 98, 67, 0));
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    radial-gradient(rgba(54, 44, 31, 0.12) 0.6px, transparent 0.6px),
    radial-gradient(rgba(255, 249, 241, 0.52) 0.5px, transparent 0.5px);
  background-size: 3px 3px, 8px 8px;
  background-position: 0 0, 21px 15px;
}

.bg-particles {
  position: absolute;
  inset: 0;
}

.bg-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 1px;
  background: rgba(54, 44, 31, 0.28);
  box-shadow: 0 0 0 2px rgba(150, 196, 230, 0.1);
  will-change: transform, opacity;
}

@media (max-width: 768px) {
  .bg-gradient-wash {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(900px circle at 8% 10%, rgba(200, 210, 225, 0.15) 0%, rgba(200, 210, 225, 0) 52%),
    radial-gradient(800px circle at 86% 22%, rgba(185, 195, 215, 0.20) 0%, rgba(185, 195, 215, 0) 50%),
    radial-gradient(680px circle at 52% 84%, rgba(220, 230, 245, 0.25) 0%, rgba(220, 230, 245, 0) 52%),
    linear-gradient(180deg, #F9FAFB 0%, #F1F3F5 100%);
}

  .bg-grid {
    background-size: 42px 42px;
    opacity: 0.32;
  }

  .bg-particle {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 0 2px rgba(150, 196, 230, 0.08);
  }
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  width: calc(100% - 48px);
  max-width: 1100px;
  margin: 20px auto 0;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 16px;
  z-index: 50;
  box-shadow: var(--shadow-soft);
}

.brand {
  font-weight: 700;
  letter-spacing: -0.5px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-center {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  display: none;
  gap: 2px;
}
@media(min-width: 768px) {
  .nav-center { display: flex; }
}

.nav-center a {
  text-decoration: none;
  color: inherit;
  padding: 4px 10px;
  border-radius: 20px;
  transition: background 0.15s ease;
}
.nav-center a:hover {
  background: rgba(0, 0, 0, 0.06);
  opacity: 1;
}
.nav-center .divider {
  width: 1px;
  height: 12px;
  background: #D1D5DB;
  margin: 0 4px;
}

.nav-btn-dark {
  background: var(--primary);
  color: #FFF;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.nav-btn-dark:hover { transform: scale(1.05); }

/* MAIN WRAPPER */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0 32px 80px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* LANDING CENTERED */
.landing-layout {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  width: 100%;
  padding-top: 62px;
  padding-bottom: 60px;
}
.landing-layout.active { display: flex; }

.hero-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

.hero-banner-card {
  position: relative;
  overflow: visible;
  background: transparent;
  color: var(--text-main);
  border-radius: 0;
  border: none;
  padding: clamp(32px, 5vw, 64px) 0;
  box-shadow: none;
}

.hero-banner-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  min-height: clamp(400px, 58vh, 640px);
}

.hero-copy-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 18px;
  background: rgba(0, 0, 0, 0.03);
}

.hero-text h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5.8vw, 4.8rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -1.7px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.08em;
}

.hero-lockup .hero-line {
  display: block;
}

.hero-lockup .hero-line-mid {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-subtitle-short { display: none; }
.hero-subtitle-full { display: inline; }

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.68;
  margin-top: 14px;
  margin-bottom: 28px;
  max-width: 50ch;
  opacity: 0;
}

.hero-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  margin-bottom: 24px;
}

.hero-signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 760px;
}

.hero-signal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
  text-align: left;
}

.hero-signal-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.hero-signal-card strong {
  font-size: 0.86rem;
  line-height: 1.4;
  font-weight: 700;
}

.hero-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  color: var(--text-main);
  padding: 11px 18px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
}

.hero-signup-btn,
.hero-ghost-btn {
  min-height: 42px;
}

.hero-ghost-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.35);
}

/* VALUE STRIP (moved out of hero for lower density) */
/* ═══════════ SECONDARY HERO BANNER ═══════════ */
.secondary-hero {
  width: 100%;
  margin-top: 28px;
  position: relative;
}

.secondary-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  background: #0a0a0a;
  border-radius: 24px;
  padding: 48px 52px;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.secondary-hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 50%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.secondary-hero-divider {
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 40px;
  flex-shrink: 0;
}

.secondary-hero-block {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.secondary-hero-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.secondary-hero-value {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.1;
}

.cost-block .secondary-hero-value {
  color: #fca5a5;
}

.promise-block .secondary-hero-value {
  color: #86efac;
}

.secondary-hero-unit {
  font-size: 0.55em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0;
}

.secondary-hero-desc {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  max-width: 36ch;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .secondary-hero-inner {
    grid-template-columns: 1fr;
  }
}

.trust-marquee {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  overflow: visible;
}

.trust-track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: rgba(0, 0, 0, 0.7);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.trust-pill::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  flex-shrink: 0;
}

.hero-visual-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.hero-console-card {
  width: 100%;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 12px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
}

.hero-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.console-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  font-weight: 700;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6b7280;
  box-shadow: 0 0 0 0 rgba(107, 114, 128, 0.4);
  animation: live-dot-pulse 1.45s ease-out infinite;
}

@keyframes live-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(107, 114, 128, 0.4); }
  75% { box-shadow: 0 0 0 8px rgba(107, 114, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 114, 128, 0); }
}

.hero-console-state {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--text-muted);
}

/* ═══════════ STEP DOTS ═══════════ */
.hero-console-steps {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
}

.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.step-dot-inner {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.4s ease;
}

.step-dot.is-active {
  border-color: #6b7280;
  background: rgba(107, 114, 128, 0.08);
}

.step-dot.is-active .step-dot-inner {
  background: #6b7280;
  box-shadow: 0 0 0 0 rgba(107, 114, 128, 0.35);
  animation: step-pulse 1.6s ease-out infinite;
}

.step-dot.is-done {
  border-color: rgba(107, 114, 128, 0.3);
  background: rgba(107, 114, 128, 0.06);
}

.step-dot.is-done .step-dot-inner {
  background: #9ca3af;
  width: 5px;
  height: 5px;
}

@keyframes step-pulse {
  0% { box-shadow: 0 0 0 0 rgba(107, 114, 128, 0.35); }
  70% { box-shadow: 0 0 0 6px rgba(107, 114, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 114, 128, 0); }
}

.step-connector {
  flex: 1;
  height: 1.5px;
  background: rgba(0, 0, 0, 0.08);
  transition: background 0.4s ease;
}

.step-connector.is-done {
  background: rgba(107, 114, 128, 0.25);
}

.hero-step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin: -2px 0 0;
  transition: opacity 0.3s ease;
}

/* ═══════════ SAVINGS BLOCK ═══════════ */
.hero-savings-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
}

.savings-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.savings-value {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  line-height: 1;
}

.savings-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.savings-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6b7280, #9ca3af);
  transition: width 0.3s ease;
}

/* ═══════════ ACTION FEED ═══════════ */

.hero-actions-feed {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-console-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 2px;
}

.hero-console-footer > div {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(17, 24, 39, 0.03);
}

.hero-console-footer strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
}

.console-footer-label {
  display: inline-block;
  margin-bottom: 3px;
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.section-heading p {
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 62ch;
}

.command-board-section,
.proof-band,
.security-section,
.cta-section {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.command-board-section {
  margin-top: 80px;
}

.command-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.board-manifesto-card,
.board-ops-card,
.security-panel,
.cta-shell {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
}

.board-manifesto-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(28px, 4vw, 40px);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74)),
    linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(96, 165, 250, 0.08));
}

.board-manifesto-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.24) 0%, rgba(251, 191, 36, 0) 72%);
  pointer-events: none;
}

.manifesto-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 18px;
}

.board-manifesto-card h3 {
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  max-width: 12ch;
  margin-bottom: 30px;
}

.manifesto-points {
  display: grid;
  gap: 14px;
}

.manifesto-point {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.manifesto-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #64748b;
  padding-top: 2px;
}

.manifesto-point p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.82);
}

.board-ops-card {
  border-radius: 28px;
  padding: 22px;
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  color: #f8fafc;
  text-align: left;
}

.ops-card-top,
.ops-priority-card,
.ops-lane-row,
.ops-metric-cell {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ops-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 14px;
}

.ops-chip,
.ops-window,
.security-chip {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ops-window {
  color: rgba(255, 255, 255, 0.55);
}

.ops-priority-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(59, 130, 246, 0.1));
}

.ops-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.54);
}

.ops-priority-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
}

.ops-impact {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #facc15;
  font-size: 0.74rem;
  font-weight: 700;
}

.ops-lane {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ops-lane-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.ops-lane-row.is-live {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(96, 165, 250, 0.08);
}

.ops-lane-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.62);
}

.ops-lane-row p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.86);
}

.ops-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ops-metric-cell {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.ops-metric-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.58);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ops-metric-cell strong {
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.proof-band {
  margin-top: 26px;
}

.proof-band-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.proof-band-card {
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
}

.proof-band-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.proof-band-card strong {
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.security-section {
  margin-top: 88px;
}

.copilot-section {
  width: 100%;
  max-width: 1120px;
  margin: 80px auto 0;
}

.copilot-heading {
  text-align: center;
  margin-bottom: 40px;
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.copilot-heading p {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-top: 12px;
}

.copilot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.1);
}

.copilot-card {
  background: rgba(255, 255, 255, 0.72);
  padding: 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s ease;
}

.copilot-card:hover {
  background: rgba(255, 255, 255, 0.92);
}

.copilot-card::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(15, 23, 42, 0.42);
  display: block;
}

.copilot-card h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0;
  line-height: 1.2;
  color: var(--text-main);
}

.copilot-card p {
  font-size: 0.9rem;
  line-height: 1.68;
  color: var(--text-muted);
  margin: 0;
  max-width: 42ch;
}

/* Reviews ticker */
.reviews-section {
  width: 100%;
  max-width: 760px;
  margin: 80px auto 0;
  text-align: center;
}

.reviews-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.reviews-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.reviews-tagline {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.02;
  margin: 8px 0 0;
  text-align: center;
  color: var(--text-main);
}

.reviews-ticker-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
}

.reviews-ticker-wrap::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.07);
  font-family: Georgia, 'Times New Roman', serif;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.reviews-ticker-wrap::after {
  content: none;
}

.review-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding-top: 62px;
  gap: 16px;
  opacity: 0;
  animation: reviewFade 14s infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes reviewFade {
  0%      { opacity: 0; transform: translateY(10px); }
  6%      { opacity: 1; transform: translateY(0); }
  22%     { opacity: 1; transform: translateY(0); }
  28%     { opacity: 0; transform: translateY(-8px); }
  100%    { opacity: 0; transform: translateY(-8px); }
}

.review-item blockquote {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 600;
  line-height: 1.64;
  letter-spacing: -0.2px;
  color: var(--text-main);
  margin: 0;
  max-width: 60ch;
}

.review-item footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
}

.review-item footer strong {
  color: var(--text-main);
  font-weight: 700;
}

.review-item footer strong::after {
  content: " ·";
  color: rgba(0, 0, 0, 0.25);
  font-weight: 400;
  margin-left: 6px;
}

.review-item footer span {
  color: var(--text-muted);
  font-weight: 500;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.security-panel {
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.security-panel-main {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  color: #f8fafc;
}

.security-panel:not(.security-panel-main) {
  grid-column: span 3;
}

.security-grid > .security-panel:nth-child(4) {
  grid-column: 1 / -1;
}

.security-panel h3 {
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 10px 0 8px;
}

.security-panel p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: inherit;
  opacity: 0.72;
}

.security-panel-main p {
  opacity: 0.78;
}

.security-orbit {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.security-orbit-ring,
.security-orbit-core {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.security-orbit-ring {
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.security-orbit-ring.ring-a {
  transform: scale(1);
}

.security-orbit-ring.ring-b {
  transform: scale(0.74);
  border-color: rgba(251, 191, 36, 0.4);
}

.security-orbit-core {
  inset: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.24), rgba(96, 165, 250, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cta-section {
  margin-top: 28px;
}

.cta-shell {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  width: 100%;
  padding: clamp(28px, 5vw, 42px);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(30, 41, 59, 0.94)),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 35%);
  color: #f8fafc;
}

.cta-copy {
  max-width: 640px;
  text-align: left;
}

.cta-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 10px 0 12px;
}

.cta-copy p {
  font-size: 0.96rem;
  line-height: 1.72;
  color: rgba(248, 250, 252, 0.72);
}

.cta-actions {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cta-primary-btn {
  padding-inline: 26px;
}

.cta-note {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.58);
}

.actions-feed-title {
  margin: 0 0 1px;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.action-card-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.015);
  padding: 7px 10px;
  opacity: 0;
  transform: translateY(7px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.action-card-item + .action-card-item {
  margin-top: 0;
}

.action-card-item.is-generated {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.action-card-item.is-queued {
  opacity: 0.48;
}

.action-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  flex-shrink: 0;
}

.action-card-copy {
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-main);
}

.trust-tail-section {
  width: 100%;
  margin-top: 26px;
}

.hero-signup-btn {
  margin-bottom: 0;
  padding: 11px 24px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  opacity: 1;
  border-radius: 999px;
}

.cursor.blinking {
  display: inline-block;
  opacity: 1;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 16px;
  padding: 14px;
  width: clamp(56px, 7vw, 78px);
  height: clamp(56px, 7vw, 78px);
}
.logo-box svg { width: 100%; height: 100%; }

.flex-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step { 
  display: none; 
  opacity: 0; 
  width: 100%; 
  min-height: 100%; 
  align-items: center; 
  flex-direction: column; 
  padding: 40px 0;
}
.step.active { display: flex; }
.step::before, .step::after {
  content: "";
  flex: 1;
}

/* TOOLS MARKETPLACE STYLES */
.tools-section {
  width: 100%;
  max-width: 1120px;
  margin: 80px auto 0;
  text-align: center;
  position: relative;
  isolation: isolate;
}

.tools-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  gap: 10px;
}
.tools-header h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.9px;
}
.tools-swipe-hint { display: none; }

.tools-header p {
  font-size: 0.96rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: 0.005em;
  margin: 0;
  max-width: 58ch;
}
.tools-filter {
  display: flex;
  gap: 8px;
}
.filter-btn {
  background: transparent;
  border: 1.5px solid var(--primary);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary);
  transition: all 0.2s;
}
.filter-btn.active {
  background: var(--primary);
  color: #fff;
}
.filter-btn:hover {
  background: rgba(0,0,0,0.05);
}
.filter-btn.active:hover {
  background: var(--primary);
}
.filter-btn.icon-btn {
  padding: 6px 14px;
}
.tools-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 28px;
  width: 100%;
}
.flip-card {
  border-radius: 24px;
  border: 1px solid rgba(12, 20, 34, 0.14);
  perspective: 1400px;
  background: transparent;
  height: clamp(340px, 32vw, 398px);
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
  transform-style: preserve-3d;
  transform: translateZ(0);
}

.flip-card:hover {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
  border-color: rgba(0, 0, 0, 0.22);
}

.flip-card.demo-focus {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
  border-color: rgba(0, 0, 0, 0.22);
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  border-radius: 22px;
  will-change: transform;
}
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 22px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.45);
  overflow: hidden;
}

.flip-card-front::after,
.flip-card-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.22) 100%);
  pointer-events: none;
}
.flip-card-front {
  transform: rotateY(0deg) translateZ(1px);
}
.flip-card-back {
  transform: rotateY(180deg) translateZ(1px);
  justify-content: flex-start;
}

.flip-back-lite {
  justify-content: flex-start;
  gap: 12px;
}

.back-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.28rem, 2vw, 1.5rem);
  line-height: 1.08;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.04em;
}

.back-subtitle {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  font-weight: 400;
  color: rgba(0,0,0,0.65);
}

.back-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.back-points li {
  position: relative;
  padding-left: 16px;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(0,0,0,0.82);
}

.back-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #000;
  position: absolute;
  left: 0;
  top: 0.35rem;
}

.back-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #0f172a;
  padding: 10px 16px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.back-cta:hover {
  background: #111827;
  color: #fff;
  border-color: #111827;
  transform: translateY(-1px);
}

.back-cta-disabled {
  opacity: 0.6;
}

/* ═══════════ CARD BACK ANIMATED VISUALISATIONS ═══════════ */

/* — Insurance: Clause Scanner — */
.card-anim-scan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(15, 23, 42, 0.13);
  border-radius: 12px;
  padding: 10px;
  flex: 1;
  min-height: 0;
}

.scan-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  padding: 6px 7px;
  opacity: 0;
  transform: translateY(6px);
}

.scan-id {
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: rgba(0, 0, 0, 0.45);
  min-width: 40px;
  flex-shrink: 0;
}

.scan-text {
  flex: 1;
  font-size: 0.66rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.35;
}

.scan-badge {
  font-size: 0.48rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.scan-badge.risk { background: #EF4444; color: #fff; }
.scan-badge.warn { background: #F59E0B; color: #fff; }

/* — Credit: Reward Bars — */
.card-anim-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(15, 23, 42, 0.13);
  border-radius: 12px;
  padding: 10px;
  flex: 1;
  min-height: 0;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  padding: 6px 7px;
  opacity: 0;
  transform: translateY(6px);
}

.bar-label {
  width: 44px;
  font-size: 0.64rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.65);
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 7px;
  background: rgba(0, 0, 0, 0.10);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0f172a, #334155);
  border-radius: 999px;
  transition: none;
}

.bar-gain {
  font-size: 0.6rem;
  font-weight: 700;
  color: #000;
  min-width: 42px;
  text-align: right;
  flex-shrink: 0;
}

/* — Wallet: Asset Sync — */
.card-anim-sync {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(15, 23, 42, 0.13);
  border-radius: 12px;
  padding: 10px;
  flex: 1;
  min-height: 0;
}

.sync-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  padding: 6px 8px;
  opacity: 0;
  transform: translateY(6px);
}

.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.sync-row.is-synced .sync-dot {
  background: #16a34a;
  animation: pulse-sync 1.4s ease-in-out 2;
}

@keyframes pulse-sync {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.5); }
}

.sync-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sync-name {
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
}

.sync-amount {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.45);
}

.sync-tick {
  font-size: 0.76rem;
  color: #16a34a;
  font-weight: 700;
  opacity: 0;
  display: inline-block;
  flex-shrink: 0;
}

.flip-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding-top: 6px;
  padding-left: 16px;
  padding-right: 16px;
  gap: 0;
}

.poster-front {
  --poster-ink: #0f172a;
  --pill-ink: #e5e7eb;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  color: var(--poster-ink);
  padding: 20px 18px;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.poster-front::after {
  display: none;
}

.poster-front.pastel-mint {
  --poster-ink: #164e3b;
  --pill-ink: #bbf7d0;
  background: linear-gradient(150deg, #edfdf3 0%, #dcf7e7 100%);
}

.poster-front.pastel-peach {
  --poster-ink: #7c2d12;
  --pill-ink: #fed7aa;
  background: linear-gradient(150deg, #fff5e9 0%, #ffe8d1 100%);
}

.poster-front.pastel-sky {
  --poster-ink: #1e3a8a;
  --pill-ink: #bfdbfe;
  background: linear-gradient(150deg, #eff6ff 0%, #dfeeff 100%);
}

.front-pill-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.78);
  background: #0b0b0f;
  overflow: hidden;
  margin-bottom: 12px;
}

.flip-panel-tag {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(15, 23, 42, 0.58);
  font-weight: 700;
  margin-bottom: 14px;
}

.poster-front .flip-panel-tag {
  color: var(--pill-ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 3px 8px;
  max-width: calc(50% - 4px);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-bottom: 0;
}

.flip-panel-title {
  font-family: var(--font-sans);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.04;
  margin-bottom: 14px;
  color: #000;
  letter-spacing: -0.6px;
}

.poster-front .flip-panel-title {
  color: var(--poster-ink);
  font-size: clamp(1.54rem, 2.95vw, 2.06rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.poster-title-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.poster-title-lines span {
  display: block;
  font-size: clamp(1.46rem, 2.82vw, 1.98rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.94;
  padding: 6px 0;
  border-top: 1.6px solid color-mix(in srgb, var(--poster-ink) 55%, transparent);
}

.poster-title-lines span:last-child {
  border-bottom: 1.6px solid color-mix(in srgb, var(--poster-ink) 55%, transparent);
}

.flip-panel-desc {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.66;
  color: rgba(15, 23, 42, 0.72);
  margin-bottom: 16px;
}

.poster-front .flip-panel-desc {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
  color: color-mix(in srgb, var(--poster-ink) 74%, transparent);
  margin-bottom: 14px;
}

.front-metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.front-metric-pill {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.88);
  padding: 5px 9px;
  border-radius: 999px;
}

.poster-front .front-metric-pill {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--pill-ink);
  background: rgba(255, 255, 255, 0.08);
  max-width: calc(50% - 4px);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 3px 8px;
  margin: 0;
}

.card-cta-btn {
  margin-top: auto;
  padding: 11px 20px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.65px;
}

.poster-front .card-cta-btn {
  background: #111827;
  color: #ffffff;
  border: 1px solid #111827;
}

.poster-front .card-cta-btn:hover {
  background: #1f2937;
  color: #ffffff;
}

.card-cta-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.card-desc {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 16px;
  margin-bottom: auto;
}
.bg-green { background: linear-gradient(156deg, #e8f9ea 0%, #ceeed5 62%, #b9e2c3 100%); }
.bg-yellow { background: linear-gradient(156deg, #fff7dc 0%, #fbeab4 62%, #f3dc95 100%); }
.bg-blue { background: linear-gradient(156deg, #edf2f7 0%, #dfe7ef 62%, #d2dce6 100%); }

.card-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}
.card-icon {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.card-rating {
  font-weight: 700;
  font-size: 0.95rem;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.card-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}
.stat {
  display: flex; flex-direction: column; gap: 4px;
}
.stat-label {
  font-size: 0.7rem; font-weight: 600; opacity: 0.7;
}
.stat-val {
  font-size: 1rem; font-weight: 800;
}
.card-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
}
.card-action-text {
  font-size: 0.85rem; font-weight: 600;
}
.btn-black-pill {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-black-pill:hover {
  background: #1f1f1f;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.btn-black-pill:disabled,
.btn-execute:disabled {
  transform: none;
  opacity: 0.55;
  cursor: not-allowed;
}

.widget-btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* GREEN PILL CTA */
.btn-green-pill {
  background: var(--accent);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(93, 226, 101, 0.3);
}
.btn-green-pill:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 6px 16px rgba(93, 226, 101, 0.4);
}

.pill-circles {
  display: flex;
  background: rgba(0,0,0,0.1);
  padding: 4px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.3);
}

.p-cir {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--primary);
  margin-right: -4px;
}
.p-cir:last-child { margin-right: 0; }
.p-cir.yellow { background: #FCD34D; z-index: 3;}
.p-cir.white { background: #FFFFFF; z-index: 2; }
.p-cir.blue { background: #93C5FD; z-index: 1; }

.file-name { margin-top: 16px; font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }

.btn-execute {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 16px;
  transition: transform 0.2s;
}
.btn-execute:hover { transform: scale(1.05); }
.hidden { display: none !important; }

.upload-card { background: #fff; }
.upload-select-btn { margin-bottom: 12px; }
.upload-analyze-btn { margin-top: 20px; }
.file-title {
  margin-bottom: 20px;
  word-break: break-all;
}

.text-center { text-align: center; }

/* PEEK ILLUSTRATION FROM BOTTOM */
.peek-illustration {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 200px;
  pointer-events: none;
  z-index: 0;
}
.peek-card {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 180px;
  background: #FAFAFA;
  border: 2px solid var(--primary);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}
.peek-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 140px; height: 100%;
  background: #FDE047;
  border-right: 2px solid var(--primary);
  transform: skewX(-15deg);
  transform-origin: 0 0;
}
.bold-text {
  position: absolute; left: 16px; top: 24px;
  font-size: 1.5rem; font-weight: 800; line-height: 0.9;
  letter-spacing: -1px; z-index: 2;
}
.pink-circle {
  position: absolute; bottom: -20px; left: 50%;
  width: 60px; height: 60px; border-radius: 50%;
  background: #F472B6; border: 2px solid var(--primary);
}
.blue-circle {
  position: absolute; top: 40px; right: -10px;
  width: 48px; height: 48px; border-radius: 50%;
  background: #3B82F6; border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.chat-icon {
  position: absolute;
  bottom: 24px; right: -80px;
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* PROCESSING */
.processing-wrap { max-width: 500px; width: 100%; text-align: center; }
.processing-header h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; }
.sub-text { margin-bottom: 20px;}

.agent-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; text-align: left; }
.agent-row { display: flex; align-items: center; gap: 20px; padding: 20px; border-radius: 16px; border: 1.5px solid var(--border); transition: 0.3s; background: #fff;}
.agent-row.active { border-color: var(--accent); box-shadow: 4px 4px 0px var(--primary); transform: translate(-2px, -2px); }
.agent-row.done { background: #F8FAFC; color: var(--text-muted); }

.status-indicator { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.dot.loader { background: var(--accent); animation: pulse 1.5s infinite; border: 1px solid var(--primary); }
.dot.check { width: 20px; height: 20px; background: var(--success); position: relative; border-radius: 50%; border: 1.5px solid var(--primary); }
.dot.check::after {
  content: ''; position: absolute; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg); top: 3px; left: 6px;
}
@keyframes pulse { 0% {transform: scale(1);} 50% {transform: scale(1.4);} 100% {transform: scale(1);} }

.agent-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 2px;}

/* RESULTS */
.results-header { text-align: center; margin-bottom: 24px; width: 100%; }
.results-header h2 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -1.5px; }

.results-layout { display: grid; gap: 32px; width: 100%; max-width: 1000px; padding-bottom: 40px;}
@media(min-width: 900px) { .results-layout { grid-template-columns: 1fr 1fr; } }

.metric-card, .insight-card, .scenario-card { padding: 32px; border: 1.5px solid var(--primary); background: #FFF; border-radius: var(--radius-lg); margin-bottom: 24px; }
.shadow-solid { box-shadow: var(--shadow-soft); }
@media(max-width: 960px) {
  .hero-signal-row,
  .proof-band-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-board-grid {
    grid-template-columns: 1fr;
  }

  .cta-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .security-panel-main,
  .security-panel:not(.security-panel-main) {
    grid-column: span 12;
  }

  .security-panel-main {
    grid-template-columns: 140px 1fr;
  }

  .copilot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }

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

  .tools-section { margin-top: 60px; }
  .tools-header { margin-bottom: 32px; }
  .copilot-section { margin-top: 60px; }
  .copilot-heading { margin-bottom: 32px; }
  .copilot-card { padding: 28px 24px; }
  .reviews-section { margin-top: 60px; }
}

@media(max-width: 600px) {

  /* ── Layout shell ── */
  .container { padding: 0 16px 56px; }
  .landing-layout { padding-top: 0; padding-bottom: 40px; }

  /* ── Navbar: keep the pill – it's the brand shape ── */
  .navbar {
    width: calc(100% - 24px);
    padding: 10px 14px;
    border-radius: 999px;
    top: 8px;
    margin-top: 12px;
  }
  .brand { font-size: 1.05rem; }

  /* ── Hero: fills 90% of the first screen ── */
  .hero-banner-card {
    border-radius: 0;
    padding: 0;
    min-height: 90vh;
    min-height: 90svh;
    display: flex;
    flex-direction: column;
  }
  .hero-banner-grid {
    flex: 1;
    display: flex;          /* override grid — single column, simpler as flex */
    flex-direction: column;
    gap: 0;
    min-height: 0;
  }
  .hero-copy-col {
    flex: 1;
    justify-content: flex-start;
    padding-top: 28px;
    padding-bottom: 32px;
  }
  .hero-visual-shell { display: none; }
  .hero-text h1 {
    font-size: clamp(2.5rem, 12vw, 3.2rem);
    line-height: 0.95;
    letter-spacing: -0.8px;
    gap: 0.1em;
    margin-top: auto;    /* pushes h1 away from kicker */
    margin-bottom: auto; /* pushes subtitle+CTA to bottom */
  }
  .hero-kicker { margin-bottom: 0; padding: 4px 10px; font-size: 0.62rem; }
  .hero-subtitle {
    font-size: 1rem;
    color: #3d4148;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 100%;
  }
  .hero-subtitle-short { display: inline; }
  .hero-subtitle-full { display: none; }
  .hero-cta-row { gap: 8px; margin-bottom: 0; flex-wrap: wrap; width: 100%; }
  .hero-signup-btn { width: 100%; justify-content: center; text-align: center; }
  .hero-ghost-btn { width: 100%; justify-content: center; text-align: center; }

  /* ── Stats strip (dark card) ── */
  .secondary-hero { margin-top: 24px; }
  .secondary-hero-inner { padding: 24px 20px; gap: 20px; }
  .secondary-hero-label { font-size: 0.64rem; }
  .secondary-hero-value { font-size: clamp(1.6rem, 7vw, 2rem); }
  .secondary-hero-desc { display: none; } /* value alone is self-explanatory on mobile */

  /* ── Section headings ── */
  .section-heading { gap: 8px; margin-bottom: 22px; }
  .section-heading h2,
  .cta-copy h2 {
    font-size: 1.85rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
  }

  /* ── Module cards (flip) ── */
  .tools-section { margin-top: 44px; }
  .tools-header { margin-bottom: 22px; gap: 8px; }
  .tools-header h2 { font-size: 1.75rem; letter-spacing: -0.04em; }
  .tools-header p { display: none; } /* obvious from context; "flip" instruction irrelevant on touch */
  .tools-grid { gap: 16px; }
  .flip-card { height: 340px; border-width: 1px; }
  .flip-card-front, .flip-card-back { padding: 20px 18px; }
  .poster-front { padding: 18px 16px; }
  .poster-front .flip-panel-desc { display: none; } /* removed to free space for bigger title */
  .poster-title-lines span { font-size: clamp(1.55rem, 8.5vw, 1.9rem); padding: 5px 0; }
  .front-pill-row { gap: 5px; padding: 4px 6px; margin-bottom: 14px; }
  .poster-front .flip-panel-tag,
  .poster-front .front-metric-pill { font-size: 0.58rem; padding: 3px 7px; }
  .back-title { font-size: 1.35rem; line-height: 1.06; }
  .card-anim-scan, .card-anim-bars, .card-anim-sync { padding: 8px; gap: 7px; }
  .scan-row, .bar-row, .sync-row { padding: 5px 6px; gap: 6px; }
  .scan-text, .sync-name { font-size: 0.68rem; }
  .bar-label, .bar-gain, .sync-amount { font-size: 0.62rem; }
  .back-cta { font-size: 0.64rem; padding: 8px 12px; }

  /* ── Copilot section ── */
  .copilot-section { margin-top: 44px; }
  .copilot-heading { margin-bottom: 22px; }
  .copilot-heading p { font-size: 0.86rem; margin-top: 4px; }
  .copilot-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .copilot-card { padding: 18px 14px; gap: 4px; }
  .copilot-card h3 { font-size: 1.05rem; line-height: 1.15; }
  .copilot-card p { display: none; }

  /* ── Reviews ── */
  .reviews-section { margin-top: 44px; }
  .reviews-layout { gap: 16px; }
  .reviews-tagline { font-size: 1.85rem; letter-spacing: -0.04em; line-height: 1.05; }
  .reviews-ticker-wrap { height: 200px; }
  .reviews-ticker-wrap::before { font-size: 4rem; top: -4px; }
  .review-item { padding-top: 48px; gap: 12px; }
  .review-item blockquote { font-size: 0.98rem; }

  /* ── Trust strip ── */
  .trust-tail-section { display: none; }

  /* ── CTA ── */
  .cta-shell { padding: 24px 20px; border-radius: 24px; flex-direction: column; align-items: flex-start; }
  .cta-actions { min-width: 0; width: 100%; }
  .cta-primary-btn { width: 100%; justify-content: center; }

  /* ── Misc results/processing screens ── */
  .metric-card, .insight-card, .scenario-card { padding: 16px; }
  .hero-signal-row, .proof-band-grid, .hero-console-footer, .ops-metric-grid { grid-template-columns: 1fr; }
  .command-board-section, .security-section { margin-top: 60px; }
  .board-manifesto-card, .board-ops-card, .security-panel { border-radius: 24px; padding: 20px; }
  .board-manifesto-card h3 { max-width: none; margin-bottom: 22px; }
  .manifesto-point { grid-template-columns: 1fr; gap: 8px; }
  .ops-lane-row { grid-template-columns: 1fr; gap: 6px; }
  .security-panel-main { grid-template-columns: 1fr; }
  .security-orbit { width: 132px; height: 132px; }
  .value-strip { grid-template-columns: 1fr; gap: 10px; }
  .step-dot { width: 20px; height: 20px; }
  .step-dot-inner { width: 6px; height: 6px; }
  .savings-value { font-size: 1.05rem; }

  /* ═══════════════════════════════════════════════════
     SCROLL-SNAP: Full-viewport sections + card carousel
     ═══════════════════════════════════════════════════ */

  /* Snap on the document scroller; offset for fixed navbar */
  html { scroll-snap-type: y mandatory; scroll-padding-top: 56px; }

  /* No outer horizontal padding — each section handles its own gutters */
  .container { padding: 0; }
  .landing-layout { padding-bottom: 0; }

  /* ── Hero: full viewport ── */
  .hero-text.hero-banner-card {
    min-height: 100svh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 0 16px;
  }
  /* Move hero copy down so kicker clears the fixed navbar */
  .hero-copy-col { padding-top: 72px; }

  /* ── Stats strip: full-bleed dark screen ── */
  .secondary-hero {
    margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .secondary-hero-inner {
    border-radius: 0;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 24px 40px;
    gap: 36px;
  }
  .secondary-hero-divider { display: none; }
  .secondary-hero-value { font-size: clamp(3.8rem, 18vw, 6rem); letter-spacing: -0.05em; line-height: 1; }
  .secondary-hero-label { font-size: 0.78rem; letter-spacing: 0.08em; opacity: 0.7; }

  /* ── Tools section: full viewport + horizontal card carousel ── */
  .tools-section {
    margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 16px;
    padding-top: 72px;
    padding-bottom: 24px;
    box-sizing: border-box;
  }
  .tools-header { margin-bottom: 20px; }
  .tools-swipe-hint {
    display: block;
    margin-top: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.3);
    text-align: center;
  }
  .tools-grid {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    margin: 0 -16px;
    padding: 0 16px 8px;
    scroll-padding-left: 16px;
  }
  .tools-grid::-webkit-scrollbar { display: none; }
  .flip-card {
    flex: 0 0 82vw;
    height: 400px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* ── Copilot: full viewport ── */
  .copilot-section {
    margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 16px 32px;
    box-sizing: border-box;
  }
  .copilot-card { padding: 22px 16px; }
  .copilot-card h3 { font-size: 1.1rem; }

  /* ── Reviews: full viewport ── */
  .reviews-section {
    margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 16px 32px;
    box-sizing: border-box;
  }
  .reviews-ticker-wrap { height: 260px; }

  /* ── CTA: full viewport ── */
  .cta-section {
    margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 16px 48px;
    box-sizing: border-box;
  }
  .cta-shell { border-radius: 28px; padding: 36px 24px; }
}

.metric-label { font-size: 1rem; font-weight: 700; text-transform: uppercase; }
.score-row { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.score-max { font-size: 1.15rem; color: var(--text-muted); font-weight: 700; }
.score-max-year { margin-left: 8px; }
.metric-card h2 { font-size: clamp(3rem, 12vw, 4.5rem); font-weight: 900; letter-spacing: -3px; line-height: 1; }
.progress-bar { width: 100%; height: 10px; background: #F1F5F9; border-radius: 10px; margin-top: 24px; border: 1px solid var(--primary); overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--primary); transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1); }

.card-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.circle-icon { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--primary); background: var(--primary);}
.circle-icon.danger { background: var(--danger); border-color: var(--danger); }
.circle-icon.success { background: var(--success); border-color: var(--success); }
.insight-card h3 { font-size: 1.25rem; font-weight: 700; }

.insight-list { list-style: none; }
.insight-list li { font-size: 0.95rem; margin-bottom: 12px; font-weight: 600; padding-left: 20px; position: relative; }
.insight-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

.scenario-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;}
.scenario-header h3 { font-size: 1.1rem; font-weight: 700; }
.badge { font-size: 0.75rem; padding: 6px 12px; border-radius: 20px; font-weight: 700; text-transform: uppercase; background: #FFF; border: 1px solid var(--primary); }

.cost-breakdown { background: #FAFAFA; border-radius: 16px; padding: 20px; border: 1px solid var(--border); }
.cost-row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-end; font-size: 0.9rem; margin-bottom: 12px; font-weight: 600;}
.cost-row span:first-child { flex: 1; min-width: 0; word-break: break-word; }
.cost-row span:last-child { white-space: nowrap; text-align: right; }
.cost-row.danger { color: var(--danger); }
.cost-divider { height: 1px; background: var(--border); margin: 16px 0; }
.cost-row.total h2 { font-size: 1.8rem; letter-spacing: -1px; margin: 0; line-height: 1; }

.highlighted-scenario { background: #FEF0BB; border-color: #000; }
.badge.invert { background: #000; color: #FEF0BB; }
.cost-row-title { font-weight: 800; }
.cost-note {
  font-size: 0.8rem;
  margin-bottom: 8px;
  margin-top: -4px;
  color: var(--text-muted);
}
.full-width-btn { width: 100%; margin-top: 12px; }

.action-footer { text-align: center; margin-top: 20px; width: 100%; display: flex; justify-content: center; }

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.14);
}

/* WIDGET DESIGN SYSTEM */
.widget-dashboard {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-align: left;
}
.widget-pill {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  margin-top: -10px;
}
.widget-subtitle {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 4px;
}
.widget-mega-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}
.widget-mega-val {
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: 900;
  color: #000;
  letter-spacing: -1.5px;
  line-height: 1;
}
.widget-mega-label {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 800;
  color: rgba(0, 0, 0, 0.55);
}
.widget-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: auto;
}
.widget-list-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.widget-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}
.widget-item-left {
  color: #000;
}
.widget-item-left span {
  color: #666;
  font-weight: 600;
}
.widget-item-right {
  text-align: right;
}
.widget-item-right span {
  color: #000;
}
.widget-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.widget-bar-fill {
  height: 100%;
  border-radius: 4px;
}
.txt-green { color: #00b368; }
.txt-yellow { color: #f5a623; }
.txt-blue { color: #0091ff; }
.txt-red { color: #ff4d4d; }
.bg-fill-green { background: #00b368; }
.bg-fill-yellow { background: #f5a623; }
.bg-fill-blue { background: #0091ff; }
.bg-fill-red { background: #ff4d4d; }

/* Bar width utilities — replaces inline style="width:X%" */
.w-5  { width: 5%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-30 { width: 30%; }
.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-85 { width: 85%; }
.w-100 { width: 100%; }

.widget-warning-pill {
  background: rgba(255, 232, 133, 0.75);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(224, 200, 92, 0.6);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  line-height: 1.3;
}
.widget-btn {
  background: #0f1419;
  color: white;
  border-radius: 999px;
  padding: 10px 16px 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  width: 100%;
  transition: background 0.15s ease;
}
.widget-btn:hover { background: #000; }
.widget-btn .arrow-circle {
  background: white;
  color: black;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
}

button:focus-visible,
.btn-black-pill:focus-visible,
.btn-execute:focus-visible,
.nav-btn-dark:focus-visible,
.flip-card:focus-visible,
.widget-btn:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-hard);
}

@media (hover: none) {
  .flip-card:hover {
    transform: none;
  }

  .flip-card:hover .flip-card-inner {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .live-dot,
  .step-dot-inner,
  .trust-track {
    animation: none !important;
  }

  .dot.loader {
    animation: none !important;
  }

  /* Keep a short transition so card flip remains legible instead of instant face swap. */
  .flip-card-inner {
    transition: transform 0.45s ease !important;
  }
}
