/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background-color: #f9fafb;
}

/* Tabular numerals for finance-grade consistency */
.proof-stat,
.plan-price,
.countup,
.pricing-suffix,
.how-step__digit {
    font-variant-numeric: tabular-nums;
}

html {
    scroll-behavior: smooth;
}

.force-break {
display: inline-block;
white-space: normal;
}

/* Utility Classes */
.gradient-text {
    /* Premium indigo→purple gradient (removed cyan for a more editorial, Apple/Bloomberg tone) */
    background: linear-gradient(90deg, #4338ca, #6b46c1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(31, 38, 135, 0.15);
    border-bottom: 1px solid rgba(31, 38, 135, 0.1);
    transition: backdrop-filter 0.3s ease, background 0.3s ease;
}

/* Refined glass only for the hero card to avoid impacting nav/cards */
.hero-content.glass-effect {
    background: rgba(255, 255, 255, 0.58);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 24px rgba(17, 24, 39, 0.08),
        0 2px 8px rgba(17, 24, 39, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-content.glass-effect::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Hero typography and spacing (keep font sizes the same) */
.hero-content h1 {
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1rem; /* tighten slightly for hierarchy */
}

/* Subtle hero kicker style (uppercase, thin, tracked) */
.hero-kicker {
    font-size: 0.8125rem; /* 13px */
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b; /* slate-500 */
    font-weight: 400; /* thinner tone with Poppins */
    margin-bottom: 0.375rem; /* ~6px */
}

.hero-content .hero-lead {
    color: #4b5563; /* gray-600: refined, less heavy */
    line-height: 1.6; /* slightly tighter for density */
    letter-spacing: -0.005em; /* subtle tightening */
    margin-bottom: 2.25rem; /* 36px loose gap before form */
}

/* When the form is hidden, tighten lead→CTA spacing for better grouping */
.hero-content.form-hidden .hero-lead {
    margin-bottom: 0.875rem; /* ~14px on mobile */
}
@media (min-width: 768px) {
    .hero-content.form-hidden .hero-lead {
        margin-bottom: 1rem; /* 16px on md+ */
    }
}

.hero-content .hero-form {
    margin-top: 0; /* spacing controlled by .hero-lead margin-bottom */
}

/* Hero form grid layout */
#hero-form {
    display: grid; /* reinforce Tailwind grid in case classes change */
    grid-template-columns: 1fr; /* stack on mobile */
}

/* Allow inputs to shrink within grid columns without forcing overflow */
#hero-form input[type="url"],
#hero-form input[type="email"],
#hero-form input[type="text"] {
    min-width: 0;
}

/* Prevent CTA text wrapping and align items on wider viewports */
#hero-form button {
    white-space: nowrap;
}

@media (min-width: 768px) {
    #hero-form {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; /* URL wider, then email, then auto-sized CTA */
        align-items: center;
    }
}

/* Center disclaimer under the form */
.hero-content .hero-disclaimer {
    text-align: center;
    margin-top: 0.75rem; /* ~12px tight gap after form */
}

/* Mobile Menu Styles */
.mobile-menu-button {
    display: none;
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    nav {
        padding: 0.5rem 1rem;
    }

    .logo img {
        height: 2.25rem;
    }

    .mobile-menu-button {
        display: block;
        position: relative;
        z-index: 50;
        padding: 0.5rem;
    }

    .md\:flex {
        display: none !important;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 40;
        padding: 7rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu.active {
        transform: translateX(0);
    }
}

.mobile-menu-panel {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: 1rem; /* calm separation between groups */
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 0 1rem;
}

.mobile-menu a {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1F2937;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.875rem 1.5rem;
    width: 100%;
    text-align: center;
    border-radius: 8px;
}

.mobile-menu a:not(.cta-button):hover {
    color: #4f46e5; /* indigo-600 */
    background: rgba(79, 70, 229, 0.06);
}

.mobile-menu .cta-button {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(45deg, #4338ca, #6b46c1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.22);
    border: none;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

.mobile-menu .cta-button.cta-button--indigo {
    background: #4f46e5; /* indigo-600 */
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.25);
}

.mobile-menu .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(67, 56, 202, 0.32);
    background: linear-gradient(45deg, #3730a3, #5a3cbf);
    color: #ffffff; /* keep text white on hover */
}

.mobile-menu .cta-button.cta-button--indigo:hover {
    background: #4338ca; /* indigo-700 */
    box-shadow: 0 6px 12px -2px rgba(67, 56, 202, 0.35);
    color: #ffffff; /* keep text white on hover */
}

/* Actions block (CTA + Sign in) */
.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* slightly tighter within actions */
    padding: 0 1rem;
    margin-top: 1.25rem;
    padding-top: 0; /* cleaner look without divider */
}

/* Tall screens: center primary links vertically; keep actions pinned to bottom */
@media (min-height: 720px) {
    .mobile-menu-panel {
        display: grid;
        grid-template-rows: 1fr auto 1fr auto; /* [spacer] [links] [spacer] [actions] */
        min-height: 100%;
    }
    .mobile-menu-links { grid-row: 2; }
    .mobile-menu-actions { grid-row: 4; }
}

/* Mobile link + icon alignment and subtle tinting */
.mobile-menu .mobile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* keep labels centered like original */
    gap: 0.625rem; /* 10px visual rhythm between icon and label */
}

/* Ensure icon sizing works pre/post Lucide replacement (i -> svg) */
.mobile-menu .mobile-link .mobile-link-icon,
.mobile-menu .mobile-link svg.mobile-link-icon,
.mobile-menu .mobile-link svg.lucide {
    width: 1.125rem; /* 18px */
    height: 1.125rem;
    color: #4b5563; /* gray-600 base */
    transition: color 0.18s ease;
}

/* Respect hover tone from links while subtly tinting icon */
.mobile-menu .mobile-link:hover .mobile-link-icon,
.mobile-menu .mobile-link:hover svg.mobile-link-icon,
.mobile-menu .mobile-link:hover svg.lucide {
    color: #4f46e5; /* indigo-600 */
}

/* Accessible focus outline without heavy glow */
.mobile-menu .mobile-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(79,70,229,0.14), 0 0 0 4px rgba(79,70,229,0.08);
    border-radius: 8px;
}

/* Hamburger Icon */
.hamburger {
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 24px;
    background: #1F2937;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span:nth-child(1) { top: 2px; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* Navigation Styles */
nav {
    transition: background-color 0.3s ease;
}

/* Nav-specific glass to match draft header: crisp, neutral, minimal shadow */
nav.glass-effect {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: none; /* reset base .glass-effect border */
    border-bottom: 1px solid rgba(229, 231, 235, 0.9); /* gray-200 */
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

/* Anchor offset for fixed header */
section[id] {
    scroll-margin-top: 80px;
}

.nav-link {
    transition: color 0.3s ease;
    color: #1F2937;  
    padding: 0 12px;  
}

.nav-link:hover {
    color: #4f46e5; /* indigo-600 for hover */
}

nav .container > div:nth-child(2) {
    margin-left: 120px;  
}

.sticky-nav {
    position: fixed;
    top: -100px;
    transition: top 0.3s ease;
    width: 100%;
    backdrop-filter: blur(10px);
}

.sticky-nav.visible {
    top: 0;
}

/* Hero Section Styles */
#hero {
    position: relative;
    overflow: hidden;
    /* Use stable viewport height to avoid reflow when mobile UI shows/hides */
    min-height: 100vh;   /* fallback for older browsers */
    height: 100svh;      /* stable viewport height (small viewport) */
    height: 100dvh;      /* prefer dynamic viewport to follow address bar show/hide */
    display: flex;
    align-items: center;
    padding: 4rem 0 4rem; /* small top gap under fixed nav, centered to full viewport */
}

.hero-content {
    opacity: 0;
    position: relative;
    z-index: 10;
    padding: 4rem 3rem; /* generous internal spacing */
    width: 54%;
    max-width: 800px;
    margin-left: 10%;
    border-radius: 1.375rem;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Class to trigger fade-in animation */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.background-shapes {
    opacity: 0;
    transition: opacity 0.05s linear;
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    contain: layout paint;
}

/* Softening overlay above shapes (keeps shapes visible, reduces visual noise) */
.hero-soften {
    position: absolute;
    inset: 0;
    z-index: 2; /* above shapes (z:1), below hero content (z:10) */
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.06) 0%,
        rgba(255,255,255,0.00) 40%,
        rgba(255,255,255,0.08) 100%
    );
}

/* For non-mobile devices, show shapes immediately when .shapes-loaded is present */
@media (min-width: 769px) {
    .shapes-loaded .background-shapes {
        transition: none;
    }
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    top: 30%;
    right: 15%;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #6b46c1, #00c6ff);
    border-radius: 50%;
}

.shape-2 {
    top: 57%;
    right: 25%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #00c6ff, #6b46c1);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shape-3 {
    bottom: 7%;
    right: 35%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #6b46c1, #00c6ff);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Scroll Indicator Styles */
.scroll-indicator {
    position: absolute; /* desktop: anchor to #hero so it scrolls away */
    bottom: 16px;
    left: 0;
    right: 0;
    transform: none; /* avoid transform conflicts with child animations */
    cursor: pointer;
    z-index: 10;
    display: flex; /* allow centering without transforms */
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
  .scroll-indicator {
    bottom: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* Mobile: disable arrow bounce animation to prevent jank when browser UI shows/hides */
@media (max-width: 768px) {
  .scroll-indicator .animate-bounce,
  .scroll-indicator .chevron-bounce { animation: none !important; }
}

/* Mobile: keep indicator fixed to the viewport bottom (CSS-only, no JS) */
@media (max-width: 768px) {
  .scroll-indicator {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    z-index: 20;
  }
}

/* Mobile: prefer stable viewport height for hero to reduce layout shifts during URL bar hide/show */
@media (max-width: 768px) {
  #hero {
    height: 100vh;   /* fallback */
    height: 100svh;  /* use small viewport height to avoid layout growth when URL bar hides */
  }
}

/* Scroll indicator base: avoid transform will-change and transitions that can conflict with keyframes */
.scroll-indicator { will-change: opacity; backface-visibility: hidden; }
.scroll-indicator.is-hidden { opacity: 0; pointer-events: none; }

/* Subtle chevron bounce (smaller amplitude than Tailwind's animate-bounce) */
@keyframes chevron-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.scroll-indicator svg { will-change: transform; }
.scroll-indicator .chevron-bounce { animation: chevron-bounce 1.6s infinite cubic-bezier(0.22, 0.61, 0.36, 1); }

/* Crisp, momentum-based dismiss that feels synced with section reveal */
@keyframes arrow-dismiss {
  0% { opacity: 1; transform: translate3d(0, 0, 0); }
  55% { opacity: 0.12; transform: translate3d(0, 6px, 0); }
  100% { opacity: 0; transform: translate3d(0, 10px, 0); }
}
.scroll-indicator.is-dismissing {
  animation: arrow-dismiss 170ms cubic-bezier(0.20, 0.80, 0.20, 1) forwards;
  pointer-events: none; /* prevent clicks during the short dismiss window */
  transition: none !important; /* avoid opacity transition fighting keyframes */
  will-change: opacity, transform; /* ensure compositor promotion during dismiss */
  contain: paint; /* isolate painting to avoid flicker on viewport resize */
}
/* Pause bounce during dismiss for a crisp, Apple-like feel */
.scroll-indicator.is-dismissing .chevron-bounce { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator.is-dismissing { animation: none; }
}

/* Section Spacing - Unified 8pt-based vertical rhythm */
#product {
    padding: 5rem 0; /* py-20: consistent with other sections */
}
#pricing {
    padding: 6rem 0;
}

.section-title {
    margin-bottom: 3rem;
    line-height: 1.12;
    letter-spacing: -0.012em;
    font-weight: 600; /* match hero H1 tone */
}

/* Tighten all h2 headings for consistent rhythm (Jobs-like) */
h2 {
    line-height: 1.12;
    letter-spacing: -0.012em;
    font-weight: 600; /* semibold for calmer section titles */
}

/* Tighter spacing for the product section title to match other sections */
#product .section-title {
    margin-bottom: 1rem;
}

.feature-card, .pricing-card {
    margin-bottom: 2rem;
}

/* Feature Section Styles */
#product {
    background: linear-gradient(180deg, #fbfdfe 0%, #f9fafb 100%);
    position: relative;
    overflow: hidden;
}

/* No hairline between Product and Capabilities; rely on tonality + whitespace */
#capabilities {
    border-top: 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 2rem;
    border-radius: 1rem;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(17, 24, 39, 0.10);
}

.feature-card h3 {
    /* Match headline accent to premium indigo→purple */
    background: linear-gradient(90deg, #4338ca, #6b46c1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Neutral card style to match draft aesthetics */
.advantage-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9); /* gray-200 */
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
    padding: 2rem;
    border-radius: 1rem;
}

.advantage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(17, 24, 39, 0.10);
    border-color: rgba(229, 231, 235, 1);
}

/* Understated variant for Product feature cards (outline-only) */
.product-card {
    background: transparent; /* outline-only, no fill */
    border-color: rgba(17, 24, 39, 0.10); /* light outline */
    box-shadow: none; /* no elevation */
}
.product-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -24px rgba(17, 24, 39, 0.28); /* subtle lift without darkening */
    border-color: rgba(79, 70, 229, 0.18); /* subtle indigo tint */
}

/* Gentle icon accent for product cards */
.advantage-card.product-card .feature-icon svg,
.advantage-card.product-card .feature-icon i {
    color: #6366f1; /* indigo-500 */
}
.advantage-card.product-card:hover .feature-icon svg,
.advantage-card.product-card:hover .feature-icon i {
    color: #4f46e5; /* indigo-600 */
}

.advantage-card h3 {
    color: #111827; /* gray-900 */
    letter-spacing: -0.01em;
}

.feature-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem; /* slightly tighter under-heading spacing for product cards */
}

/* Product: rely on .feature-icon gap; remove UA default top margin on first paragraph */
#product .advantage-card p {
    margin-top: 0;
}
/* Card typography harmonization — Product and Capabilities */
/* Mobile defaults: headings 16/semibold; body 14 with comfortable line-height */
#product .advantage-card h3,
#capabilities .advantage-card h3 {
    font-size: 1rem; /* 16px */
}

/* Product card titles: thinner than bold for calmer hierarchy */
#product .advantage-card h3 { font-weight: 600; }

#product .advantage-card p,
#capabilities .advantage-card p {
    font-size: 0.875rem; /* 14px */
    line-height: 1.6;
    color: #374151; /* gray-700 for better readability vs. bold titles */
}

/* md+ viewports: headings 18/semibold; body 15 for dense, readable copy */
@media (min-width: 768px) {
  #product .advantage-card h3,
  #capabilities .advantage-card h3 {
      font-size: 1.125rem; /* 18px */
  }
  #product .advantage-card h3 { font-weight: 600; }

  #product .advantage-card p,
  #capabilities .advantage-card p {
      font-size: 0.9375rem; /* 15px */
      line-height: 1.6;
      color: #374151; /* ensure darker tone on md+ as well */
  }
}

.feature-icon svg {
    width: 1.5rem; /* 24px to match lucide w-6 h-6 */
    height: 1.5rem;
    margin-right: 0; /* gap handles spacing */
}

/* Subtle icon tint on hover for premium, restrained interactivity */
.advantage-card .feature-icon svg,
.advantage-card .feature-icon i {
    color: #4b5563; /* gray-600 */
    transition: color 0.18s ease;
}
.advantage-card:hover .feature-icon svg,
.advantage-card:hover .feature-icon i {
    color: #4f46e5; /* indigo-600 */
}

/* Capabilities section: small inline heading icons */
.capabilities-heading-icon {
    width: 1.125rem; /* 18px */
    height: 1.125rem;
    display: inline-block;
    vertical-align: -2px; /* optical align with text */
    margin-right: 0.5rem; /* 8px gap before heading text */
    color: #4b5563; /* gray-600 */
    transition: color 0.18s ease;
}
.advantage-card:hover h3 .capabilities-heading-icon {
    color: #4f46e5; /* indigo-600 */
}

/* Proof & Trust: harmonize card typography */
.proof-card h3,
.trust-card h3 {
    font-size: 1rem; /* 16px */
    font-weight: 600;
    letter-spacing: -0.01em;
}
.proof-card p,
.trust-card p {
    font-size: 0.875rem; /* 14px */
    line-height: 1.6;
}

@media (min-width: 768px) {
  .proof-card h3,
  .trust-card h3 {
      font-size: 1.125rem; /* 18px */
      font-weight: 600;
  }
  .proof-card p,
  .trust-card p {
      font-size: 0.9375rem; /* 15px */
      line-height: 1.6;
  }
}

/* Thesis cards: harmonize headings and primary body paragraph (does not affect bullet list text-sm) */
.thesis-card-purple h3,
.thesis-card-indigo h3,
.thesis-card-emerald h3 {
    font-size: 1rem; /* 16px */
    font-weight: 600;
    letter-spacing: -0.01em;
}

.thesis-card-purple > p,
.thesis-card-indigo > p,
.thesis-card-emerald > p {
    font-size: 0.875rem; /* 14px */
    line-height: 1.6;
}

@media (min-width: 768px) {
  .thesis-card-purple h3,
  .thesis-card-indigo h3,
  .thesis-card-emerald h3 {
      font-size: 1.125rem; /* 18px */
  }
  .thesis-card-purple > p,
  .thesis-card-indigo > p,
  .thesis-card-emerald > p {
      font-size: 0.9375rem; /* 15px */
  }
}

/* How It Works Section - Vertical Timeline Layout */
#how-it-works {
    border-top: 0;
    position: relative;
}

/* Subtle background texture for premium feel */
#how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(79,70,229,0.02) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(79,70,229,0.015) 0%, transparent 50%);
    pointer-events: none;
}

.how-wrapper {
    position: relative;
    display: grid;
    justify-content: center; /* center the composition */
}

.how-steps {
    position: relative;
    /* Define a dedicated timeline column width so we can center precisely */
    --timeline-col: 4rem;
    --timeline-border: 1px; /* keep in sync with .how-step__number border */
    margin-inline: auto; /* ensure the list itself is centered */
    width: 100%; /* occupy full width of the wrapper */
    list-style: none;
    padding: 0;
    margin: 0;
}
.how-steps::before {
    content: '';
    position: absolute;
    left: calc(var(--timeline-col) / 2);
    top: calc(var(--timeline-col) / 2); /* center of first circle */
    bottom: calc(var(--timeline-col) / 2); /* center of last circle */
    width: 1px;
    background: linear-gradient(180deg, rgba(17,24,39,0.08) 0%, rgba(17,24,39,0.04) 50%, rgba(17,24,39,0.08) 100%);
}

.how-step {
    position: relative;
    display: grid;
    /* 3-col grid: bubble | body | ghost bubble (for balance) */
    grid-template-columns: var(--timeline-col) 1fr var(--timeline-col);
    column-gap: 1rem;
    align-items: start;
    padding-bottom: 1rem;
}
.how-step:last-child {
    padding-bottom: 0;
}

.how-step__content {
    position: relative;
    display: contents; /* allow grid children to place directly */
}

.how-step__number {
    grid-column: 1;
    grid-row: 1;
    width: var(--timeline-col);
    height: var(--timeline-col);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: var(--timeline-border) solid rgba(17,24,39,0.08);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(17,24,39,0.04);
    justify-self: center;
}

.how-step__digit {
    font-size: 1.125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #4338ca; /* indigo-700 for emphasis */
    letter-spacing: -0.025em;
}

.how-step__body {
    grid-column: 2 / 4; /* let text occupy the right balancing column too */
    grid-row: 1;
    padding-top: 0.5rem;
}

.how-step__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827; /* gray-900 */
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.how-step__description {
    color: #6b7280; /* gray-500 */
    line-height: 1.6;
    font-size: 0.9375rem;
    max-width: 36rem; /* wider measure for this section */
}

/* Sentence wrapping control: mobile defaults to natural wrapping (inline).
   On md+ viewports, keep the entire following sentence on one line; if it
   doesn't fully fit at line end, it moves as a whole to the next line. */
.no-wrap-next { display: inline; }
@media (min-width: 768px) {
  .no-wrap-next { white-space: nowrap; }
}

/* Hover state only on number circle */
.how-step__number {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.how-step__number:hover {
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
}
.how-step__digit {
    transition: color 0.2s ease;
}
.how-step__number:hover .how-step__digit {
    color: #4f46e5; /* indigo-600 */
}

/* Subtle scale-in on reveal for number circles */
.chat-reveal.is-visible .how-step__number {
    animation: how-circle-in 180ms cubic-bezier(.2,.8,.2,1) both;
}
@keyframes how-circle-in {
    from { transform: scale(0.98); }
    to   { transform: scale(1); }
}

.how-cta-row { 
    text-align: center; 
}
.how-cta-row .cta-button { align-self: center; }

/* Kicker tone and tracking */
.how-kicker {
    letter-spacing: 0.14em;
    color: #64748b; /* slate-500 for cooler editorial tone */
}

/* CTA callout refinement */
.how-cta-card {
    border-color: rgba(17,24,39,0.06) !important; /* softer hairline */
    padding: calc(1.5rem + 2px);
}
@media (min-width: 768px) {
    .how-cta-card { padding: calc(2rem + 2px); }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .how-steps { --timeline-col: 3rem; }
    .how-steps::before {
        top: calc(var(--timeline-col) / 2);
        bottom: calc(var(--timeline-col) / 2);
    }
    .how-step__digit { font-size: 1rem; }
    .how-step__title { font-size: 1.125rem; }
    .how-step__description { font-size: 0.875rem; }
}

/* Pricing Section Styles - Bloomberg-inspired Professional Aesthetic */
#pricing {
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Calmer, more neutral editorial canvas */
    background: linear-gradient(180deg, #fbfdfe 0%, #f9fafb 100%);
}

.pricing-container {
    position: relative;
    z-index: 1;
}

.pricing-kicker {
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.pricing-lead {
    line-height: 1.65;
    color: #475569;
    font-weight: 400;
}

/* Reusable lead tone for section intros (placed after pricing-lead to override its color when combined) */
.section-lead {
    color: #374151; /* gray-700 */
    line-height: 1.6;
    letter-spacing: -0.005em;
}

/* Enhanced card styling with subtle professional touches */
.pricing-card {
    --badge-offset: 2rem; /* faux space equal to pill height + mb-3 (~32px) */
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 
        0 1px 3px rgba(17, 24, 39, 0.04),
        0 1px 2px rgba(17, 24, 39, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(17, 24, 39, 0.08),
        0 2px 4px rgba(17, 24, 39, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
}

/* Ensure equal header row height and symmetrical alignment */
.pricing-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 1.75rem; /* 28px, aligns with text-xl default line-height */
    margin-bottom: 0.5rem; /* mb-2 */
}
.pricing-header .plan-title {
    line-height: 1.2; /* tighten for premium typography */
    letter-spacing: -0.01em;
}

.pricing-card--primary {
    border-color: rgba(79, 70, 229, 0.15);
    position: relative;
}

.pricing-card--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem; /* align with card inner padding (p-8) */
    right: 2rem;
    height: 2px; /* thinner, crisper premium rail */
    /* End-fading accent rail for a graceful termination */
    background: linear-gradient(
        90deg,
        rgba(99,102,241,0) 0%,
        rgba(99,102,241,0.25) 16%,
        rgba(79,70,229,0.50) 50%,
        rgba(99,102,241,0.25) 84%,
        rgba(99,102,241,0) 100%
    );
    opacity: 0.9; /* start calm */
    /* Extra edge refinement: taper ends via mask for consistent cap shape */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    border-radius: 2px;
    transition: opacity 180ms ease; /* ultra subtle shimmer on hover */
}

.pricing-card--primary::after {
    content: '';
    position: absolute;
    top: 2px; /* sits just beneath the accent rail */
    left: 2rem; /* align with accent rail inset */
    right: 2rem;
    height: 1px;
    /* Subtle inner highlight to create a machined-metal feel */
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.45) 12%,
        rgba(255,255,255,0.70) 50%,
        rgba(255,255,255,0.45) 88%,
        rgba(255,255,255,0) 100%
    );
    opacity: 0.4;
    transition: opacity 180ms ease;
}

.pricing-card--primary:hover {
    border-color: rgba(79, 70, 229, 0.22);
    box-shadow: 
        0 4px 12px rgba(79, 70, 229, 0.12),
        0 2px 4px rgba(79, 70, 229, 0.08);
}

/* Feather-light rail shimmer on hover */
.pricing-card--primary:hover::before { opacity: 1; }
.pricing-card--primary:hover::after { opacity: 0.5; }

/* pricing-pill: use a neutral, snobby-VC approved variant (deduped) */
/* See consolidated rules further below around ".pricing-pill" */

/* Subtle divider enhancement */
.pricing-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(15, 23, 42, 0.12) 20%, rgba(15, 23, 42, 0.12) 80%, transparent 100%);
    margin: 1.25rem 0; /* tighter rhythm */
}

/* Enhanced feature list styling (consolidated below) */

/* Chat Example Section Styles */
/* Subtle editorial background and refined chat bubbles with indigo-accented chips */
.chat-section {
    position: relative;
    /* Gentle neutral gradient for an editorial canvas */
    background: linear-gradient(180deg, #fbfdfe 0%, #f6f7fb 100%);
}

/* Optional ultra-faint gridlines to suggest data structure (Bloomberg-esque) */
.chat-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(17,24,39,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17,24,39,0.03) 1px, transparent 1px);
    background-size: 100% 64px, 64px 100%;
    opacity: 0.4;
}

.chat-thread {
    position: relative;
    z-index: 1; /* above gridlines */
}

.chat-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.chat-row--user {
    justify-content: flex-end;
}

.chat-avatar {
    width: 2.5rem; /* 40px */
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-bubble {
    max-width: min(720px, 88%);
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(17,24,39,0.08);
    box-shadow: 0 1px 2px rgba(17,24,39,0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.chat-bubble--user {
    background: #f3f4f6; /* gray-100 */
    border-bottom-right-radius: 0.5rem;
}

.chat-bubble--devan {
    background: #ffffff;
    border-bottom-left-radius: 0.5rem;
    /* Slightly more generous padding for better balance */
    padding: 1.25rem 1.5rem;
}

.chat-bubble--devan:hover {
    border-color: rgba(79,70,229,0.22); /* indigo hint on hover */
    box-shadow: 0 4px 12px -6px rgba(17,24,39,0.12);
}

/* Emphasis chips for funding rounds/amounts */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.17rem 0.56rem; /* slightly plusher, still compact */
    border-radius: 9999px;
    font-size: 0.8125rem; /* ~13px */
    line-height: 1.2;
    font-weight: 600;
    font-variant-numeric: tabular-nums; /* align numbers and currency values */
    border: 0; /* remove hard border for a softer, premium feel */
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    vertical-align: baseline;
}

.chip--indigo {
    /* Gentle gradient with subtle inset border using box-shadow */
    background: linear-gradient(180deg, #eef2ff 0%, #e7eafb 100%);
    color: #4338ca; /* indigo-700 for a calmer, premium look */
    box-shadow:
        0 1px 0 rgba(17, 24, 39, 0.04),
        inset 0 0 0 1px rgba(79, 70, 229, 0.14);
}

.chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -8px rgba(17,24,39,0.18);
}

/* Variant-specific hover refinement */
.chip--indigo:hover {
    background: linear-gradient(180deg, #e9edff 0%, #e2e7ff 100%);
    box-shadow:
        0 8px 16px -12px rgba(17, 24, 39, 0.25),
        inset 0 0 0 1px rgba(79, 70, 229, 0.20);
}

/* Reveal animation utilities */
.chat-reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 380ms ease-out, transform 380ms ease-out;
}

.chat-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tighter text rhythm inside chat bubbles */
.chat-bubble p {
    color: #374151; /* gray-700 */
    line-height: 1.6; /* improve readability */
}
.chat-bubble p strong {
    color: #111827; /* gray-900 */
}

/* Sources affordance */
.sources-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #4b5563; /* gray-600 */
    text-decoration: none;
    border-bottom: 1px dashed rgba(75,85,99,0.35);
    padding-bottom: 2px;
    transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.sources-link:hover {
    color: #4f46e5; /* indigo-600 */
    border-color: rgba(79,70,229,0.45);
    transform: translateY(-1px);
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
    .chat-reveal { transition: none; transform: none; }
    .chip, .chat-bubble { transition: none; }
    .how-step { transition: none; }
    .how-step__number { transition: none; }
    .chat-reveal.is-visible .how-step__number { animation: none !important; }
    .pricing-card { transition: none; }
    .pricing-card:hover { transform: none; box-shadow: 0 2px 6px rgba(17,24,39,0.06); }
    /* Disable bouncing arrow animation for motion-sensitive users */
    .scroll-indicator .animate-bounce { animation: none !important; }
}

/* Typed cursor refinement within chat section */
.chat-section .typed-cursor { display: none !important; }
/* Subtle footnote aligned under bubble */
.chat-footnote {
    margin-left: calc(2.5rem + 1rem); /* avatar width (40px/2.5rem) + gap(1rem) */
    margin-top: 0.9rem !important; /* a notch lower */
    width: min(720px, 88%); /* match bubble width */
    color: #6b7280; /* gray-500 */
    text-align: center; /* center under the bubble */
}

/* Mobile layout refinements for chat example */
@media (max-width: 640px) {
    /* Stack avatar above bubble to avoid horizontal crowding */
    .chat-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.625rem; /* tighter vertical rhythm on mobile */
    }

    /* Smaller avatars and place above the bubble by reordering */
    .chat-row .chat-avatar {
      width: 2rem; /* 32px */
      height: 2rem;
      order: -1; /* move before bubble when stacked */
      align-self: flex-start; /* default left alignment */
      font-size: 0.875rem; /* calm letter size for initial */
    }

    /* Keep alignment semantics: Devan (assistant) left, User right */
    .chat-row--user .chat-bubble,
    .chat-row--user .chat-avatar {
      align-self: flex-end; /* right-align user message group */
    }

    /* Allow bubbles to expand on mobile without forcing full-width, so alignment shows */
    .chat-row .chat-bubble {
      max-width: 100%;
      width: auto;
    }

    /* Footnote should not indent on mobile */
    .chat-footnote {
      margin-left: 0;
      width: 100%;
      text-align: center;
    }
}

/* Proof (Case Study) Section */
.proof-section {
    background: #ffffff;
    border-top: 0;
}

.proof-card {
    background: #ffffff;
    border-radius: 0.9rem;
    border: 1px solid rgba(17,24,39,0.06);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 6px 18px -12px rgba(17,24,39,0.18);
    transition: transform 180ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.proof-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -18px rgba(17,24,39,0.24);
    border-color: rgba(17,24,39,0.10);
}

.proof-stat {
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    color: #4338ca; /* indigo-700 for premium calm */
}
.proof-stat .proof-suffix {
    margin-left: 0.05em;
}

.proof-footnote {
    color: #6b7280; /* gray-500 */
}

/* Proof footnote link: keep default look identical; darken subtly on hover */
.proof-footnote a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}
.proof-footnote a:hover {
    color: #4b5563; /* gray-600 on hover for subtle emphasis */
}

/* Trust & Security Section */
.trust-section {
    background: #ffffff; /* unify with proof-section for visual grouping */
    border-top: 0; /* avoid double hairline between grouped sections */
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    justify-content: center;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.6rem;
    background: #f8fafc; /* very light */
    color: #475569; /* slate-600 */
    border: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 0.8125rem;
    line-height: 1.1;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}
.trust-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -16px rgba(15,23,42,0.25);
    color: #3730a3; /* indigo-800 tint on hover */
}

.trust-card {
    background: transparent; /* remove card chrome */
    border-radius: 0;
    border: 0;
    padding: 0; /* rely on grid gap + inner element margins */
    transition: color 180ms ease, background-color 180ms ease;
}
.trust-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}
/* Subtle hover emphasis: darken heading only */
.trust-card:hover h3 { color: #111827; }

/* Mobile refinements for Trust & Security: increase side padding and reduce line length */
@media (max-width: 640px) {
    /* More generous safe area than the default container px */
    .trust-section .container {
      padding-left: 1.75rem; /* ~28px */
      padding-right: 1.75rem;
      /* account for iOS notches if applicable */
      padding-left: calc(1.75rem + env(safe-area-inset-left));
      padding-right: calc(1.75rem + env(safe-area-inset-right));
    }

    /* Comfortable line length and subtle inner breathing room */
    .trust-card h3,
    .trust-card p {
      padding-left: 0.25rem;
      padding-right: 0.25rem;
    }
    .trust-card p {
      max-width: 34ch; /* premium, readable measure */
      margin-left: auto;
      margin-right: auto;
      line-height: 1.65;
    }
}

/* Count-up numbers do not animate color; keep calm */
.countup {
    display: inline-block;
}
#pricing::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    /* ultra-faint neutral texture, finance-appropriate */
    background:
      radial-gradient(circle at 18% 28%, rgba(15,23,42,0.02) 0%, transparent 45%),
      radial-gradient(circle at 82% 72%, rgba(15,23,42,0.018) 0%, transparent 50%);
    pointer-events: none;
}


/* Pricing card variants */
.pricing-card--premium {
    background: #ffffff; /* premium outline instead of heavy gradient */
    border: 1px solid rgba(79,70,229,0.14); /* indigo tint */
    box-shadow:
      0 1px 2px rgba(17,24,39,0.06),
      inset 0 0 0 1px rgba(79,70,229,0.08);
    /* No faux spacer needed; invisible pill provides exact height */
    --badge-offset: 0;
}
.pricing-card--premium:hover {
    border-color: rgba(79,70,229,0.22);
    box-shadow:
      0 10px 24px -18px rgba(17,24,39,0.28),
      inset 0 0 0 1px rgba(79,70,229,0.14);
}

/* Typography scale inside pricing cards */
.plan-title {
    font-size: 1rem; /* tighter, report-like */
    font-weight: 600; /* premium, not shouty */
    color: #111827; /* gray-900 */
    margin-bottom: 0.375rem; /* tighter rhythm */
    margin-top: 0.75rem;
    letter-spacing: -0.005em; /* gentle refinement */
}

/* Removed pseudo-spacer: we now align via (visible/invisible) pill elements */

/* Responsive refinement: slightly tighter faux spacing on mobile */
@media (max-width: 768px) {
  /* no special offsets needed; invisible pill ensures parity */
}

.plan-price {
    font-size: 2.25rem; /* calmer than poster scale */
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.375rem; /* tighter */
    letter-spacing: -0.01em; /* less aggressive */
    font-variant-numeric: tabular-nums; /* align currency numerals */
}

/* On the premium (Enterprise) card, render 'Custom' with slightly less weight */
.pricing-card--premium .plan-price { font-weight: 700; }

.currency-symbol {
    font-size: 1.375rem; /* reduce symbol prominence */
    font-weight: 600;
    vertical-align: top;
    margin-right: 0.125rem;
    color: #374151;
    font-variant-numeric: tabular-nums;
}

.pricing-suffix {
    font-size: 1rem; /* calmer suffix */
    font-weight: 500;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.plan-subtext {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.25rem; /* reduce gap */
    line-height: 1.6;
    font-weight: 400;
}

/* Subtle divider enhancement */
.pricing-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(15, 23, 42, 0.12) 20%, rgba(15, 23, 42, 0.12) 80%, transparent 100%);
    margin: 1.25rem 0;
}

/* Enhanced feature list styling */
.pricing-features {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    font-size: 0.875rem; /* 14px mobile for consistency */
    line-height: 1.6;
    color: #475569;
    margin-bottom: 0.875rem;
}

.pricing-features li:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
  .pricing-features li {
      font-size: 0.9375rem; /* 15px on md+ */
      line-height: 1.6;
  }
}

.pricing-features svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: #6b7280; /* neutral by default */
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.75rem; /* ensure consistent icon gap */
}

.pricing-card--primary .pricing-features svg {
    color: #4f46e5;
}

.pricing-card > a:last-of-type {
    margin-top: auto; /* push CTA to bottom regardless of content height */
}

/* Slightly calmer CTA text inside pricing cards only */
.pricing-card .cta-button {
    font-size: 0.9375rem;
}

/* Icon tint rhythm inside pricing lists */
.pricing-card svg {
    color: #6b7280; /* gray-500 */
    transition: color 0.18s ease;
}
.pricing-card:hover svg {
    color: #4f46e5; /* indigo-600 */
}

/* Small neutral badges (pills) */
.pricing-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.55rem;
    border-radius: 9999px;
    background: #f8fafc; /* slate-50 */
    color: #3f4a5a; /* slightly deeper for contrast */
    border: 1px solid rgba(15,23,42,0.12); /* subtly higher contrast */
    font-size: 0.75rem; /* 12px */
    line-height: 1.1;
    white-space: nowrap;
}
.pricing-card .pricing-pill {
    align-self: flex-start; /* prevent flex stretch across card */
}

/* Assurance row spacing */
.pricing-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.pricing-assurance .pricing-pill { margin: 0; }

.cta-button {
    background: linear-gradient(145deg, #4338ca, #6b46c1);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    font-size: 1rem;
    display: inline-block;
}

/* Premium indigo variant (keeps base spacing/shape, overrides background) */
.cta-button.cta-button--indigo {
    background: #4f46e5; /* indigo-600 */
}
.cta-button.cta-button--indigo:hover {
    background: #4338ca; /* indigo-700 */
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.12);
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.12);
    background: linear-gradient(145deg, #3730a3, #5a3cbf);
}

/* Footer Styles */
.footer-section {
    padding: 60px 0;
    background-color: #1a202c;
    color: #ffffff;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, 10px) rotate(5deg); }
    50% { transform: translate(20px, 0) rotate(10deg); }
    75% { transform: translate(10px, -10px) rotate(5deg); }
}

/* Progress Bar */
.progress-bar {
        position: fixed;
        top: 0;
        left: 0;
        height: 4px;
        background: linear-gradient(90deg, #4338ca, #6b46c1);
        z-index: 1000;
        transition: width 0.1s ease;
    }

/* Accessibility Styles */
/* Fallback focus outline for browsers without :focus-visible support */
a:focus, button:focus {
    outline: 2px dashed #4f46e5;
    outline-offset: 4px;
}

/* Use :focus-visible when supported to limit outlines to keyboard navigation */
@supports selector(:focus-visible) {
    :focus:not(:focus-visible) { outline: none; box-shadow: none; }
    a:focus, button:focus { outline: none; }
    a:focus-visible, button:focus-visible {
        outline: 2px dashed #4f46e5;
        outline-offset: 4px;
    }
}

/* Three.js and Particle Canvas Styles */
#three-container, #particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#three-container {
    z-index: -2;
}

#particle-canvas {
    z-index: -1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    :root { --nav-h: 56px; } /* approximate mobile nav height */
    .hero-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 2.5rem 1.5rem; /* slight bump on mobile too */
        border-radius: 1.5rem;
        box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
        transform: translateY(10px); /* gentle downward nudge for optical centering */
    }
    /* Preserve the offset after fade-in specifically for the hero card */
    .hero-content.fade-in { transform: translateY(10px); }
    
    #hero {
        /* Full visible viewport height on mobile for true full-screen hero */
        height: 100svh;
        min-height: 0; /* prevent base min-height from forcing extra space */
        padding-top: 2rem;
        padding-bottom: 2rem; /* symmetrical padding to keep hero centered */
    }
    
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .gradient-text {
        font-size: 2rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .shape {
        transform: scale(0.7);
    }
    
    #pricing {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .pricing-card {
        margin-bottom: 2rem;
    }
}

/* Desktop-only negative margin */
@media (min-width: 769px) {
    .hero-content {
        margin-top: 0;
    }
}

/* md+ spacing: unified py-28 across all sections */
@media (min-width: 768px) {
    #product { padding: 7rem 0; }
}

/* New styles for the expanded menu */    
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    animation: fadeIn 0.3s;
}

.cookie-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cookie-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.cookie-close:hover,
.cookie-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Tailwind doesn't have a built-in class for custom checkboxes, so we'll create our own */
.custom-checkbox {
    appearance: none;
    height: 1.25rem; /* h-5 */
    width: 1.25rem;  /* w-5 */
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    outline: none; /* focus:outline-none */
    background-color: #ffffff;
    vertical-align: middle;
    display: inline-block;
}
.custom-checkbox:checked {
    background-color: #4f46e5; /* indigo-600 */
    border-color: transparent;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

/* Cookie Styles */
@media (max-width: 768px) {
    #cookie-consent-desktop {
    text-align: left;
    }
}

#cookie-consent.hidden {
    display: none;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#cookie-consent-mobile {
    animation: fadeIn 0.3s ease-out;
}

#cookie-consent-mobile > div {
    animation: slideUp 0.5s ease-out forwards;
}

/* Ensure the desktop version is hidden on mobile */
@media (max-width: 640px) {
    #cookie-consent-desktop {
        display: none;
    }
}

.chevron-arrow {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    margin-right: -2px;
    transform: translateX(0);
    transition: all 0.3s ease;
    position: relative;
    width: 20px;
    height: 24px;
}
.chevron-arrow::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 82%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.75em;
    line-height: 1;
    opacity: 1;
}
.chevron-arrow::after {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 104%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.5em;
    line-height: 1;
    opacity: 0;
}
.cta-button:hover .chevron-arrow::before {
    opacity: 0;
    transform: translateX(6px);
}
.cta-button:hover .chevron-arrow::after {
    opacity: 1;
}
.cta-button:hover .chevron-arrow {
    transform: translateX(2px);
}
.cta-button {
    display: inline-flex;
    align-items: center;
}
@supports (-webkit-touch-callout: none) {
    .typed-cursor {
        display: none !important;
    }
}


#cookie-consent-desktop {
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
    border-top: 1px solid #e5e7eb;
}

#cookie-consent-desktop::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to top, rgba(249, 250, 251, 0.1), rgba(249, 250, 251, 0));
    pointer-events: none;
}

#cookie-consent-desktop .container {
    max-width: 1200px;
}

#cookie-consent-desktop h3 {
    color: #4338ca;
}

#accept-cookies, #customize-cookies {
    min-width: 160px;
}

@media (max-width: 768px) {
    #cookie-consent-desktop .container {
        flex-direction: column;
        align-items: stretch;
    }

    #cookie-consent-desktop .flex-grow {
        margin-bottom: 1rem;
    }

    #cookie-consent-desktop .flex-shrink-0 {
        flex-direction: row;
        justify-content: space-between;
    }

    #accept-cookies, #customize-cookies {
        min-width: 0;
        flex: 1;
    }
}