/* === TOKENS === */
:root {
    --ink-black: #030202;
    --cloud-white: #FFFFFF;
    --saffron: #FFA62B;
    /* Darker saffron for hover states on yellow buttons */
    --saffron-dark: #d99a2f;
    --plasma-blue: #68A9BA;
    --oxford-blue: #020029;
    --ash-grey: #878787;
    --dim-grey: #121212;
    /* Slightly lighter variant for vertical fades on dark cards */
    --dim-grey-light: #484848;
    --shogun-red: #E63946;
    /* Derived tokens */
    --text-primary: var(--ink-black);
    --text-muted: var(--ash-grey);
    --border-light: rgba(135, 135, 135, 0.2);
    --bg-light: rgba(135, 135, 135, 0.05);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    /* Motion tokens */
    --reveal-duration: 420ms;
    --reveal-stagger: 90ms;
    --reveal-distance: 12px;
}

/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--cloud-white);
    color: var(--ink-black);
    line-height: 1.6;
    font-weight: 400;
}

/* === TYPOGRAPHY === */
h1 { font-family: 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-family: 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 500; margin-bottom: 0.75rem; }
p  { font-size: clamp(1rem, 2vw, 1.125rem); margin-bottom: 1.5rem; }
.lead { font-size: clamp(1.125rem, 2.5vw, 1.375rem); color: var(--ash-grey); font-weight: 400; }
.text-plasma { color: var(--plasma-blue); }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 7rem 0; }
.section-large { padding: 6rem 0; }
.grid { display: grid; gap: 2rem; }

/* === HEADER === */
header { padding: 1.5rem 0; border-bottom: 4px solid var(--cloud-white); background-color: #000; }
.header-content { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.logo { font-size: 1.5rem; font-weight: 600; color: var(--cloud-white); text-decoration: none; display: flex; align-items: flex-end; gap: 0.5rem; }
.logo-image { width: 2em; height: 2em; object-fit: contain; vertical-align: middle; margin: 0; }
header .btn-secondary { color: var(--cloud-white); border-color: var(--cloud-white); }
header .btn-secondary:hover { color: var(--ash-grey); border-color: var(--ash-grey); }

/* === BUTTONS === */
.btn { display: inline-block; padding: 1rem 2rem; font-size: 1rem; font-weight: 500; text-decoration: none; border-radius: 6px; transition: all 0.2s ease; border: none; cursor: pointer; font-family: inherit; text-align: center; }
.btn-primary { background-color: var(--saffron); color: var(--ink-black); }
.btn-primary:hover { background-color: var(--saffron-dark); color: var(--ink-black); }
.btn-secondary { background-color: transparent; color: var(--ink-black); border: 1px solid var(--ash-grey); }
.btn-secondary:hover { border-color: var(--ash-grey); color: var(--ash-grey); }

/* === CARDS === */
.card { background-color: var(--cloud-white); padding: 1.5rem; border-radius: 12px; }
.cta-card { background-color: var(--cloud-white); padding: 3rem 2rem; border-radius: 16px; max-width: 600px; margin: 0 auto; }
.cta-card p { color: var(--ash-grey); }

/* === HERO === */
.hero {
    text-align: center;
    /* Keep vertical padding on inner container */
    padding: 0;
    background-color: var(--oxford-blue);
    /* Tile the network graphic across the full width */
    background-image: url('network_blue.svg');
    background-repeat: repeat-x;
    background-position: top center;
    /* Each tile height matches hero height; width scales, repeat fills X */
    background-size: auto 100%;
}
.hero .container {
    padding: 6rem 0 8rem;
}
.hero h1 { color: var(--cloud-white); }
.hero .lead { color: var(--cloud-white); }
.hero .btn-secondary { color: var(--cloud-white); border-color: var(--cloud-white); }
.hero .btn-secondary:hover { color: var(--ash-grey); border-color: var(--ash-grey); }
.cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === LANDING: Shared header + hero background === */
.landing .site-top {
    /* Base background under the masked pattern and content */
    --fade-clear: 48px;  /* pattern fully hidden through this distance from top */
    --fade-end: 140px;   /* pattern fully visible by this distance from top */
    /* Gradient depth = header height + 25% of hero height (set via JS) */
    --grad-depth: 280px; /* sensible fallback */
    background-color: var(--oxford-blue);
    position: relative;
}
.landing .site-top::after {
    /* Top color fade: black to deep blue, limited to --grad-depth */
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: var(--grad-depth);
    background: linear-gradient(to bottom, #000 0%, var(--oxford-blue) 100%);
    pointer-events: none;
    z-index: 2; /* above header background, below network overlay and content */
}
.landing .site-top::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('network_blue.svg');
    background-repeat: repeat-x;
    background-position: top center;
    background-size: auto 100%;
    /* Fade-in away from header: transparent at top → opaque below */
    -webkit-mask-image: linear-gradient(to bottom,
      rgba(0,0,0,0) 0,
      rgba(0,0,0,0) var(--fade-clear),
      rgba(0,0,0,1) var(--fade-end)
    );
    mask-image: linear-gradient(to bottom,
      rgba(0,0,0,0) 0,
      rgba(0,0,0,0) var(--fade-clear),
      rgba(0,0,0,1) var(--fade-end)
    );
    pointer-events: none;
    z-index: 3; /* above header background and top gradient, below content */
}
.landing header { position: relative; z-index: 5; }
.landing header .header-content { position: relative; z-index: 6; }
.landing .hero { position: relative; z-index: 4; }

@media (min-width: 768px) {
  .landing .site-top { --fade-clear: 72px; --fade-end: 180px; }
}

/* === FOOTER === */
footer { background-color: #000; }
footer p { color: #bdbdbd; }
.landing footer { border-top: none; }
.landing .hero {
    background: transparent;
}
.landing header {
    border-bottom: none;
    background-color: transparent;
}
.landing header .logo {
    color: var(--cloud-white);
}
.landing .why-nominds {
    /* Uniform deep blue (no gradient) */
    background-color: var(--oxford-blue);
    background-image: none;
    /* Network overlay fade distances and positioning */
    --why-top-fade-clear: 72px;   /* longer transparent start */
    --why-top-fade-end: 220px;    /* fade reaches opacity later */
    --why-bottom-fade-clear: 48px;
    --why-bottom-fade-end: 160px;
    --why-pattern-height: 280px; /* match bottom visual scale */
    position: relative;
}
.landing .final-cta {
    /* Match hero base color and add bottom fade to footer */
    --bottom-grad-depth: 280px; /* default fade depth */
    /* Network fade distances (from the bottom upward) */
    --bottom-fade-clear: 48px; /* pattern fully hidden near footer */
    --bottom-fade-end: 160px;  /* pattern fully visible above this */
    background-color: var(--oxford-blue);
    background-image: linear-gradient(to bottom, var(--oxford-blue) 0%, #000 100%);
    background-repeat: no-repeat;
    background-size: 100% var(--bottom-grad-depth);
    background-position: bottom center;
    /* Reduce bottom gap to footer on landing */
    padding-bottom: 2rem;
    /* Enable positioning context for overlay */
    position: relative;
}
/* Overlay network pattern that fades toward the footer */
.landing .final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('network_blue.svg');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 100%;
    /* Fade-out near footer: transparent at bottom → opaque above */
    -webkit-mask-image: linear-gradient(to top,
      rgba(0,0,0,0) 0,
      rgba(0,0,0,0) var(--bottom-fade-clear),
      rgba(0,0,0,1) var(--bottom-fade-end)
    );
    mask-image: linear-gradient(to top,
      rgba(0,0,0,0) 0,
      rgba(0,0,0,0) var(--bottom-fade-clear),
      rgba(0,0,0,1) var(--bottom-fade-end)
    );
    pointer-events: none;
    z-index: 1; /* above background gradient, below content */
}
/* Ensure content sits above the overlay */
.landing .final-cta > .container { position: relative; z-index: 2; }
/* Why-nominds overlays: top fade-in and bottom fade-out (mirrored) */
.why-nominds::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: var(--why-pattern-height, 280px);
    background-image: url('network_blue.svg');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 100%;
    /* Fade toward the top of the section: transparent at top → opaque below */
    -webkit-mask-image: linear-gradient(to bottom,
      rgba(0,0,0,0) 0,
      rgba(0,0,0,0) var(--why-top-fade-clear, 36px),
      rgba(0,0,0,1) var(--why-top-fade-end, 140px)
    );
    mask-image: linear-gradient(to bottom,
      rgba(0,0,0,0) 0,
      rgba(0,0,0,0) var(--why-top-fade-clear, 36px),
      rgba(0,0,0,1) var(--why-top-fade-end, 140px)
    );
    pointer-events: none;
    z-index: 1;
}
.landing .why-nominds > .container { position: relative; z-index: 2; }
/* Improve readability for section heading/intro on dark bg, preserve white cards */
.landing .why-nominds > .container > h2,
.landing .why-nominds > .container > p { color: var(--cloud-white); }
.landing .why-nominds .text-muted { color: #d0d0d0; }

/* Section-specific card backgrounds */
/* Use dim grey cards within Why Nominds and Final CTA, with vertical fade */
.why-nominds .feature-item {
  background: linear-gradient(to bottom, var(--dim-grey) 0%, var(--dim-grey-light) 100%);
  border: 1px solid #bdbdbd; /* solid grey line */
}
.final-cta .cta-card {
  background: linear-gradient(to bottom, var(--dim-grey) 0%, var(--dim-grey-light) 100%);
  border: 1px solid #bdbdbd; /* solid grey line */
}

@media (min-width: 768px) {
  .landing .final-cta { 
    --bottom-grad-depth: 340px; 
    --bottom-fade-clear: 72px; 
    --bottom-fade-end: 200px;
  }
  .landing .why-nominds {
    --why-top-fade-clear: 96px;   /* longer transparent start (desktop) */
    --why-top-fade-end: 300px;    /* extended fade length (desktop) */
    --why-bottom-fade-clear: 72px;
    --why-bottom-fade-end: 200px;
    --why-pattern-height: 340px;
  }
  /* Keep footer close on desktop as well */
  .landing .final-cta { padding-bottom: 2rem; }
}
.landing header .btn-secondary {
    color: var(--cloud-white);
    border-color: var(--cloud-white);
}
.landing header .btn-secondary:hover {
    color: var(--ash-grey);
    border-color: var(--ash-grey);
}

/* === SECTION BACKGROUNDS === */

.problems { 
    background: var(--cloud-white);
}

.flows-section {
    background: var(--cloud-white);
}

.dashboard {
    background: var(--cloud-white);
}

.why-nominds { 
    background: var(--cloud-white);
}

.final-cta {
    background: var(--cloud-white);
}

/* === SECTION HEIGHT (Desktop Only) === */
/* Normalize section spacing; remove forced full-screen height */
@media (min-width: 768px) {
    .final-cta { padding: 10rem 0; }
}

/* === GRIDS (examples used on homepage) === */
.problems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.problems h2 { margin-bottom: 1rem; }
.problem-item { 
    text-align: center; 
    padding: 1.5rem; 
    border: 1px solid rgba(135, 135, 135, 0.2);
    border-radius: 12px;
    background: var(--cloud-white);
}
.problem-icon { width: 200px; height: 200px; background-color: var(--cloud-white); border-radius: 12px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
/* Ensure SVG/IMG icons fit nicely inside the problem icon container */
.problem-icon img { width: 200px; height: 200px; display: block; object-fit: contain; }

.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3rem; margin-top: 3rem; }
.solution-card { background-color: var(--cloud-white); padding: 2.5rem; border-radius: 12px; transition: transform 0.2s ease; }
.solution-card:hover { transform: translateY(-4px); }
.solution-icon { width: 50px; height: 50px; background-color: var(--saffron); border-radius: 8px; margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: center; color: var(--ink-black); font-size: 1.25rem; font-weight: 600; }

.why-nominds { background-color: var(--cloud-white); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-item { 
    text-align: center; 
    border: 1px solid rgba(135, 135, 135, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    background: var(--cloud-white);
}
.feature-item h4 { font-size: 1.125rem; font-weight: 500; margin-bottom: 0.75rem; }
.feature-item p { color: var(--ash-grey); font-size: 1rem; margin-bottom: 0; }

.final-cta { text-align: center; padding: 7rem 0; }

/* === FOOTER === */
footer { border-top: 4px solid var(--cloud-white); padding: 2rem 0; text-align: center; }
footer p { color: #bdbdbd; font-size: 0.875rem; margin-bottom: 0; }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-muted { color: var(--ash-grey); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.pill { display: inline-block; font-size: 0.85rem; color: var(--shogun-red); background: #fff; border: 1px solid var(--shogun-red); padding: 0.25rem 0.65rem; border-radius: 999px; margin-bottom: 0.75rem; }
.muted { color: var(--ash-grey); font-size: 0.95rem; }

/* Responsive label toggles */
.only-mobile { display: none !important; }
.only-desktop { display: inline !important; }
@media (max-width: 767px) {
  .only-mobile { display: inline !important; }
  .only-desktop { display: none !important; }
}

/* === HOW IT WORKS (Steps) === */
.steps { list-style: none; padding-left: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.steps li { background: var(--cloud-white); border: 1px solid var(--border-light); border-radius: 12px; padding: 1rem 1.25rem; }
.steps li strong { display: block; margin-bottom: 0.35rem; }

/* === RESPONSIVE === */
@media (min-width: 768px) {
    .container { padding: 0 2rem; }
    .hero .container { padding: 8rem 0 10rem; }
    .section { padding: 10rem 0; }
    .section-large { padding: 12rem 0; }
}

@media (max-width: 767px) {
    .cta-group { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; }
}
/* Mobile: prevent hero subheader overflow */
@media (max-width: 767px) {
  .hero .lead {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }
}
/* Mobile: eliminate any subpixel seam between dark sections */
@media (max-width: 767px) {
  .landing .final-cta { margin-top: -1px; }
}

/* FLOWS */

.flow-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.70rem;
    color: var(--text-primary);
    text-align: center;
}

.flow-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    text-align: center;
}

/* Theme-specific hover styles */

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.step-number {
    background: var(--shogun-red);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.step-title {
    font-weight: 600;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-muted);
    margin-left: 3rem;
}

.step-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    margin-left: 3rem;
    display: none;
}

.step-details.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.flow-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.metric {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--shogun-red);
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile tweaks for steps */
@media (max-width: 768px) {
    .step-description,
    .step-details { margin-left: 2rem; }
}

/* === REFACTORED FLOWS (Phase 2) === */
.flows-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin: 1.5rem 0 2rem; }
.nav-chip { background: var(--cloud-white); border: 1px solid var(--border-light); color: var(--ink-black); text-decoration: none; padding: 0.5rem 1rem; border-radius: 999px; transition: all 0.2s ease; }
.nav-chip:hover { color: var(--plasma-blue); border-color: var(--plasma-blue); }
.nav-chip.active { color: var(--plasma-blue); border-color: var(--plasma-blue); }

.lead-flow { margin-top: 0.5rem; }
.lead-steps { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
@media (min-width: 768px) { .lead-steps { grid-template-columns: 1fr 1fr; } }
.lead-step { background: var(--cloud-white); border: 1px solid var(--border-light); border-radius: 12px; padding: 1rem 1.25rem; cursor: pointer; transition: all 0.2s ease; }
.lead-step:hover { border-color: var(--plasma-blue); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.lead-step .step-header { display: flex; align-items: center; gap: 0.75rem; }
.lead-step .step-title { font-weight: 600; }
.lead-step .step-details { margin-top: 0.5rem; color: var(--text-muted); margin-left: 2.75rem; display: none; }
.lead-step.open .step-details { display: block; }

.flow-teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 2rem; }
.flow-teaser { border: 1px solid var(--border-light); transition: all 0.2s ease; }
.flow-teaser:hover { border-color: var(--plasma-blue); box-shadow: var(--shadow-hover); transform: translateY(-2px); }

/* === FLOWS: 3-COLUMN GRID (Phase 2) === */
.flow-row { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 1rem; 
  padding: 1.25rem; 
  border: 1px solid var(--border-light); 
  border-radius: 12px; 
  background: var(--cloud-white);
}
.flow-row + .flow-row { margin-top: 1.25rem; }
.flow-left .flow-title, .flow-left .flow-description { text-align: left; }
.flow-image { display: flex; align-items: center; justify-content: center; padding: 0.75rem; }
.flow-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: var(--cloud-white);
}
.flow-row .flow-metrics { border-top: none; padding-top: 0; margin-top: 0; }
/* Metrics styling within flow rows */
.flow-row .flow-metrics { display: flex; flex-direction: column; gap: 0.75rem; }
.flow-row .metric { 
  text-align: left; 
  padding: 0.75rem 1rem; 
  background: var(--bg-light); 
  border: none; 
  border-radius: 10px; 
  display: grid; 
  grid-template-columns: 30% 70%; 
  column-gap: 0.75rem; 
  align-items: center;
}
.flow-row .metric-value { font-size: 1.4rem; font-weight: 700; color: var(--oxford-blue); white-space: nowrap; line-height: 1; }
.flow-row .metric-label { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* Subtle, per-row metric borders; stat values remain black for readability */
@media (min-width: 1024px) {
  .flow-row { grid-template-columns: 25% 50% 25%; align-items: stretch; column-gap: 0; padding: 0; }
  .flow-left, .flow-metrics { padding: 1rem; }
  .flow-image { padding: 1.5rem; }
  .flow-image img { max-width: 60%; }
  .flow-left { border-right: 1px solid var(--border-light); }
  .flow-image { border-right: 1px solid var(--border-light); }
  /* Extra breathing room above first metric */
  .flow-row .flow-metrics { padding-top: 1.25rem; }
}

/* Mobile/Tablet responsiveness */
@media (max-width: 1023px) {
  .flow-row { padding: 1rem; }
  .flow-row .flow-metrics { 
    margin-top: 0.75rem; 
    padding-top: 0.75rem; 
    border-top: 1px solid var(--border-light);
    gap: 0.75rem;
  }
  .metric { padding: 0.75rem; }
  .metric-value { font-size: 1.35rem; }
}
@media (max-width: 480px) {
  .flow-row { padding: 0.75rem; }
}

/* === PILOT TIMELINE === */
.pilot-timeline { background: var(--cloud-white); }
.timeline { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.stage { background: var(--cloud-white); border: 1px solid var(--border-light); border-radius: 12px; padding: 1.25rem; position: relative; }
.stage-number { width: 36px; height: 36px; border-radius: 50%; background: var(--plasma-blue); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; margin-bottom: 0.5rem; }
.stage h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.stage p { color: var(--text-muted); margin: 0; }

/* === PILOT TIMELINE CONNECTORS === */
/* Hide numbers; indicate sequence via connectors */
.pilot-timeline .stage-number { display: none; }
/* Base for connectors */
.timeline .stage { position: relative; overflow: visible; }
.timeline .stage::after { content: ""; position: absolute; pointer-events: none; display: block; z-index: 2; }

/* Desktop/tablet: horizontal connectors (→ with red chevron) */
@media (min-width: 768px) {
  /* Chevron pointing right (SVG background) */
  .timeline .stage::after {
    top: 50%;
    /* Center chevron in the 1rem grid gap: gap/2 - chevron/2 */
    right: calc(-0.5rem - 6px);
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2301BAEF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 2l4 4-4 4'/></svg>");
  }
  /* Hide connector on last card in each row (4-column grid) */
  .timeline .stage:nth-child(4n)::after { display: none; }
}

/* Mobile: vertical connectors (↓ with red chevron) */
@media (max-width: 767px) {
  /* Chevron pointing down (SVG background) */
  .timeline .stage::after {
    left: 50%;
    /* Center chevron in the 1rem grid gap: gap/2 - chevron/2 */
    bottom: calc(-0.5rem - 6px);
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2301BAEF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 4l4 4 4-4'/></svg>");
  }
  /* Hide connector on the final card */
  .timeline .stage:last-child::after { display: none; }
}

/* === FAQ === */
.faq { max-width: 900px; margin: 0 auto; }
.faq details { border: 1px solid var(--border-light); border-radius: 10px; padding: 0.75rem 1rem; background: var(--cloud-white); }
.faq details + details { margin-top: 0.75rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--text-muted); margin-top: 0.5rem; }

/* === STICKY CTA BAR === */
.sticky-cta { position: fixed; right: 16px; bottom: 16px; left: auto; display: none; z-index: 1000; }
.sticky-cta .bar { width: 280px; margin: 0; background: var(--cloud-white); border: 1px solid var(--border-light); border-radius: 16px; box-shadow: var(--shadow-hover); display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0.5rem; padding: 1rem; position: relative; }
.sticky-cta .msg { font-size: 0.95rem; text-align: center; line-height: 1.3; margin-top: 0.25rem; }
.sticky-cta .bar .btn { width: 100%; white-space: nowrap; }
.sticky-cta .close { position: absolute; top: 6px; right: 6px; background: transparent; border: none; cursor: pointer; color: var(--ash-grey); font-size: 1rem; padding: 0.25rem; border-radius: 6px; }
.sticky-cta .close:hover { color: var(--shogun-red); }
@media (max-width: 480px) {
  .sticky-cta .msg { font-size: 0.9rem; }
  .sticky-cta .bar { width: 240px; padding: 0.75rem; }
}
/* Hide floating CTA on mobile */
@media (max-width: 767px) {
  .sticky-cta { display: none !important; }
}

/* === SCROLL REVEAL (soft) === */
.reveal-prepare { opacity: 0; transform: translateY(var(--reveal-distance, 12px)); will-change: opacity, transform; }
.reveal-show { 
  opacity: 1; 
  transform: translateY(0); 
  transition: opacity var(--reveal-duration, 420ms) ease, transform var(--reveal-duration, 420ms) ease; 
  transition-delay: var(--reveal-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-prepare, .reveal-show { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* === BACK TO TOP === */
/* back-to-top removed */

/* === HOVER POLISH === */
.feature-item { transition: all 0.2s ease; }
.feature-item:hover { border-color: var(--plasma-blue); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
/* Suppress blue hover border on dark cards; keep solid grey */
.landing .why-nominds .feature-item:hover { border-color: #bdbdbd; box-shadow: none; }
.final-cta .cta-card:hover { border-color: #bdbdbd; box-shadow: none; }

/* === CARD TEXT ON DARK BACKGROUND === */
/* Ensure readable white text inside dim-grey cards in Why Nominds and Final CTA. */
/* Excludes buttons so primary button keeps its intended contrast. */
.why-nominds .feature-item,
.why-nominds .feature-item h1,
.why-nominds .feature-item h2,
.why-nominds .feature-item h3,
.why-nominds .feature-item h4,
.why-nominds .feature-item h5,
.why-nominds .feature-item h6,
.why-nominds .feature-item p,
.why-nominds .feature-item li,
.why-nominds .feature-item small,
.why-nominds .feature-item span,
.why-nominds .feature-item strong,
.why-nominds .feature-item a,
.final-cta .cta-card,
.final-cta .cta-card h1,
.final-cta .cta-card h2,
.final-cta .cta-card h3,
.final-cta .cta-card h4,
.final-cta .cta-card h5,
.final-cta .cta-card h6,
.final-cta .cta-card p,
.final-cta .cta-card li,
.final-cta .cta-card small,
.final-cta .cta-card span,
.final-cta .cta-card strong,
.final-cta .cta-card a {
  color: var(--cloud-white);
}
/* Ensure paragraphs in dark cards use ash-grey for readability */
.why-nominds .feature-item p { color: var(--ash-grey); }
.final-cta .cta-card p { color: var(--ash-grey); }
/* Keep primary button text black on yellow background */
.final-cta .cta-card .btn-primary { color: var(--ink-black); }
.final-cta .cta-card .btn-primary:hover { color: var(--ink-black); }
