/* =================================================================
   Lattice AI — Stylesheet

   Architecture: CSS Cascade Layers (FOUND-02)
   Token System: CSS Custom Properties (FOUND-01)
   Typography: Fluid clamp() scaling (FOUND-03)
   Layout: Mobile-first min-width queries (FOUND-04)

   HOW TO EDIT:
   - Colors: Update :root variables in @layer tokens
   - Typography: Update font-size variables in @layer tokens
   - Spacing: Update space variables in @layer tokens
   - Components: Add styles in @layer components
   ================================================================= */

/* Layer order declaration — cascade precedence (FOUND-02)
   Later layers override earlier ones when specificity is equal.
   utilities > components > layout > base > tokens > reset */
@layer reset, tokens, base, layout, components, utilities;

/* -----------------------------------------------------------------
   RESET — Minimal modern reset
   ----------------------------------------------------------------- */
@layer reset {

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

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

  a {
    text-decoration: none;
    color: inherit;
  }

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

  ul,
  ol {
    list-style: none;
  }
}

/* -----------------------------------------------------------------
   TOKENS — All design tokens as CSS custom properties (FOUND-01)

   HOW TO RE-THEME:
   Change --color-primary and its derived variants.
   All components reference these variables via var().
   ----------------------------------------------------------------- */
@layer tokens {
  :root {
    /* ── Colors ─────────────────────────────────────────────────── */
    --color-primary: #0F766E;
    --color-primary-hover: #115E59;
    --color-primary-active: #134E4A;
    --color-primary-muted: #DDF7EF;
    --color-accent: #E7653B;
    --color-ink: #16130F;
    --color-paper: #FFF8EC;
    --color-mist: #E9F6F1;

    --color-text: #16130F;
    --color-text-secondary: #5D554C;

    --color-bg: #FFF8EC;
    --color-bg-subtle: #F3EEE3;

    /* Border */
    --color-border: #E2E8F0;

    /* Dark steel-black panel + cream-white foreground (problem bridge) */
    --color-steel-black: #1F2430;
    --color-cream-white: #F5F1E8;

    /* Cool gray scale (blue-tinted, locked decision) */
    --color-gray-100: #F1F5F9;
    --color-gray-200: #E2E8F0;
    --color-gray-300: #CBD5E1;
    --color-gray-400: #94A3B8;
    --color-gray-500: #64748B;
    --color-gray-600: #475569;
    --color-gray-700: #334155;

    /* ── Typography ─────────────────────────────────────────────── */
    --font-family: 'Manrope', ui-sans-serif, sans-serif;
    --font-display: 'Newsreader', Georgia, serif;

    /* Fluid font sizes using clamp() (FOUND-03)
       Formula: clamp(min, preferred, max)
       Base: 16px → 18px | H1: ~36px → 48px | H2: ~28px → 36px | H3: ~20px → 24px */
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-size-sm: clamp(0.875rem, 0.85rem + 0.125vw, 0.9375rem);
    --font-size-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
    --font-size-h1: clamp(3.1rem, 2rem + 5.2vw, 7rem);
    --font-size-h2: clamp(1.75rem, 1.4rem + 1.75vw, 2.25rem);
    --font-size-h3: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --font-size-h4: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);

    /* Font weights (locked decision: 400, 500, 700) */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Line heights */
    --line-height-body: 1.6;
    --line-height-heading: 1.2;

    /* Letter spacing */
    --letter-spacing-tight: 0;
    --letter-spacing-normal: 0;

    /* ── Spacing ────────────────────────────────────────────────── */
    --space-xs: 0.25rem;
    /* 4px */
    --space-sm: 0.5rem;
    /* 8px */
    --space-md: 1rem;
    /* 16px */
    --space-lg: 1.5rem;
    /* 24px */
    --space-xl: 2rem;
    /* 32px */
    --space-2xl: 3rem;
    /* 48px */
    --space-3xl: 4rem;
    /* 64px */
    --space-4xl: 6rem;
    /* 96px */

    /* Section vertical gap — fluid between mobile and desktop */
    --section-gap: clamp(2rem, 1.5rem + 2vw, 3rem);

    /* ── Layout ─────────────────────────────────────────────────── */
    --container-max: 1200px;
    --container-padding: clamp(1rem, 0.5rem + 2.5vw, 2rem);

    /* ── Cards & Surfaces ───────────────────────────────────────── */
    --radius-sm: 0.375rem;
    /* 6px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */
    --radius-xl: 1rem;
    /* 16px */

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
      0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
      0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* ── Transitions ────────────────────────────────────────────── */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* ── Header ─────────────────────────────────────────────────── */
    --header-height: 70px;
  }
}

/* -----------------------------------------------------------------
   BASE — Element defaults (no classes, just elements)
   ----------------------------------------------------------------- */
@layer base {
  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
  }

  .site-header+main {
    padding-top: var(--header-height);
  }

  .site-header+main:has(#hero) {
    padding-top: 0;
  }

  h1 {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-text);
  }

  h2 {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-text);
  }

  h3 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-heading);
    color: var(--color-text);
  }

  p {
    margin-bottom: var(--space-md);
  }

  p:last-child {
    margin-bottom: 0;
  }

  a:focus-visible,
  button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
  }
}

/* -----------------------------------------------------------------
   LAYOUT — Structural classes (containers, sections, grids)
   ----------------------------------------------------------------- */
@layer layout {
  .container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
    width: 100%;
  }

  .section {
    padding-block: var(--section-gap);
  }

  /* Offset scroll target for sticky header */
  section[id] {
    scroll-margin-top: var(--header-height, 70px);
  }
}

/* -----------------------------------------------------------------
   COMPONENTS — Component styles added in subsequent phases

   Phase 2: nav, hero, problem
   Phase 3: product cards, how-it-works, use cases, integrations, FAQ
   Phase 4: agent cards, audit form, pricing, final CTA
   Phase 5: footer
   ----------------------------------------------------------------- */
@layer components {

  /* ── Site Header ──────────────────────────────────────────── */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 248, 236, 0.78);
    border-bottom: 1px solid rgba(22, 19, 15, 0.08);
    backdrop-filter: blur(16px);
    padding-block: 0.85rem;
  }

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

  .site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    letter-spacing: 0;
  }

  .site-logo-text {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-h4);
    color: var(--color-text);
  }

  /* ── Navigation ───────────────────────────────────────────── */
  .nav-list {
    display: flex;
    gap: var(--space-lg);
  }

  .nav-link {
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    transition: color var(--transition-base);
    padding: var(--space-xs) 0;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    color: var(--color-ink);
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
  }

  .nav-login {
    color: var(--color-ink);
  }

  /* ── Nav Toggle / Hamburger ───────────────────────────────── */
  .nav-toggle {
    display: none;
    padding: var(--space-xs);
    z-index: 60;
  }

  .hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    position: relative;
    transition: background var(--transition-base);
  }

  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: transform var(--transition-slow), top var(--transition-slow);
  }

  .hamburger::before {
    top: -7px;
  }

  .hamburger::after {
    top: 7px;
  }

  /* Hamburger → X animation when open */
  .nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* ── Mobile Navigation ────────────────────────────────────── */
  @media (max-width: 767px) {
    .nav-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .nav-menu {
      position: absolute;
      top: var(--header-height);
      left: 0;
      right: 0;
      background-color: var(--color-bg);
      box-shadow: var(--shadow-lg);
      padding: var(--space-xl) var(--container-padding);
      transform: translateY(-10px);
      opacity: 0;
      visibility: hidden;
      transition: transform var(--transition-slow),
        opacity var(--transition-slow),
        visibility var(--transition-slow);
      z-index: 40;
    }

    .nav-menu.nav-open {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
    }

    .nav-list {
      flex-direction: column;
      align-items: center;
      gap: var(--space-md);
    }

    .nav-link {
      font-size: var(--font-size-base);
      padding: var(--space-sm) 0;
    }

    .header-cta {
      display: block;
      width: 100%;
      text-align: center;
      margin-top: var(--space-md);
    }

    .nav-actions {
      width: 100%;
      flex-direction: column;
      gap: var(--space-sm);
      margin-top: var(--space-md);
    }

    .nav-actions .nav-login {
      padding: var(--space-sm) 0;
    }

    .nav-actions .header-cta {
      margin-top: 0;
    }
  }

  /* Desktop: nav inline, toggle hidden */
  @media (min-width: 768px) {
    .nav-menu {
      display: flex;
      align-items: center;
      gap: var(--space-xl);
    }
  }

  /* ── Buttons ──────────────────────────────────────────────── */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    border-radius: 999px;
    transition: background var(--transition-base),
      color var(--transition-base),
      box-shadow var(--transition-base),
      transform var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
  }

  .btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
  }

  .btn-lg {
    padding: 0.85rem 1.45rem;
    font-size: var(--font-size-lg);
  }

  .btn-primary {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.24);
  }

  .btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
  }

  .btn-primary:active {
    background-color: var(--color-primary-active);
    border-color: var(--color-primary-active);
  }

  .btn-ghost {
    background: rgba(255, 248, 236, 0.74);
    border: 2px solid rgba(22, 19, 15, 0.18);
    color: var(--color-ink);
  }

  .btn-ghost:hover {
    background: var(--color-ink);
    border-color: var(--color-ink);
    color: #FFFFFF;
    transform: translateY(-2px);
  }

  /* ── Hero Section ─────────────────────────────────────────── */
  .hero-content {
    min-height: calc(100svh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(40vw, 610px);
    max-width: 610px;
    margin-inline: 0;
    padding-top: var(--header-height);
    position: relative;
    z-index: 1;
  }

  #hero {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    padding-block: 0;
    background:
      linear-gradient(90deg, rgba(255, 248, 236, 0.98) 0%, rgba(255, 248, 236, 0.94) 31%, rgba(255, 248, 236, 0.5) 45%, rgba(255, 248, 236, 0.06) 63%, rgba(255, 248, 236, 0) 100%),
      linear-gradient(180deg, rgba(255, 248, 236, 0.12) 0%, rgba(255, 248, 236, 0.02) 62%, rgba(255, 248, 236, 0.55) 100%),
      url('assets/hero-image.png') center center / cover no-repeat;
    isolation: isolate;
  }

  #hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 12% 28%, rgba(231, 101, 59, 0.12), transparent 28%),
      radial-gradient(circle at 24% 86%, rgba(15, 118, 110, 0.14), transparent 34%),
      linear-gradient(180deg, rgba(255, 248, 236, 0) 80%, var(--color-bg) 100%);
    pointer-events: none;
    z-index: 0;
  }

  #hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 9rem;
    background: linear-gradient(180deg, rgba(255, 248, 236, 0), var(--color-bg));
    pointer-events: none;
    z-index: 0;
  }

  #hero h1 {
    margin-bottom: var(--space-lg);
  }

  .hero-brand {
    font-family: var(--font-display);
    font-size: clamp(4.2rem, 2.8rem + 4.1vw, 6.2rem);
    line-height: 0.88;
    color: var(--color-ink);
    margin-bottom: clamp(1rem, 2vw, 1.45rem);
    animation: hero-rise 700ms ease both;
    text-wrap: balance;
  }

  .hero-title {
    max-width: 560px;
    font-family: var(--font-family);
    font-weight: 800;
    font-size: clamp(2rem, 1.5rem + 1.35vw, 2.75rem);
    line-height: 1.06;
    color: var(--color-ink);
    animation: hero-rise 850ms 80ms ease both;
    text-wrap: balance;
  }

  .hero-rotating {
    position: relative;
    display: block;
  }

  /* Invisible sizer: all phrases stacked in one grid cell, so the box always
     reserves the height of the tallest phrase at the current viewport width. */
  .hero-rotating-sizer {
    display: grid;
    visibility: hidden;
  }

  .hero-rotating-sizer>span {
    grid-area: 1 / 1;
  }

  .hero-rotating-text {
    color: var(--color-primary);
  }

  /* Overlay the animated text on the sizer so typing never reflows the page. */
  .hero-rotating .hero-rotating-text {
    position: absolute;
    inset: 0;
  }

  .hero-rotating-text.hero-typing {
    border-right: 2px solid var(--color-primary);
    animation: hero-cursor-blink 0.6s steps(1) infinite;
  }

  @keyframes hero-cursor-blink {

    0%,
    100% {
      border-color: var(--color-primary);
    }

    50% {
      border-color: transparent;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-rotating-text.hero-typing {
      animation: none;
      border-right: none;
    }
  }

  .hero-subtitle {
    color: var(--color-text-secondary);
    font-size: clamp(1rem, 0.88rem + 0.45vw, 1.18rem);
    max-width: 520px;
    margin-inline: 0;
    margin-bottom: var(--space-lg);
    animation: hero-rise 900ms 160ms ease both;
  }

  .hero-intake {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-sm);
    max-width: 600px;
    padding: 0.35rem;
    border: 1px solid rgba(22, 19, 15, 0.18);
    border-radius: 999px;
    background: rgba(255, 248, 236, 0.78);
    box-shadow: 0 26px 70px rgba(22, 19, 15, 0.12);
    backdrop-filter: blur(14px);
    animation: hero-rise 950ms 240ms ease both;
  }

  .hero-url-input {
    flex: 1 1 16rem;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--color-ink);
    font: inherit;
    font-weight: var(--font-weight-medium);
    padding: 0.95rem 1.2rem;
    outline: 0;
  }

  .hero-url-input::placeholder {
    color: rgba(22, 19, 15, 0.48);
  }

  .hero-url-input--error {
    color: #B42318;
  }

  .hero-submit {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero-intake-status {
    min-height: 1.7rem;
    margin-top: var(--space-sm);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
  }

  .hero-intake-status--error,
  .hero-intake .form-submit-error {
    color: #B42318;
  }

  .hero-intake .form-submit-error {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 1rem;
    right: 1rem;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
  }

  .hero-illustration {
    display: none;
  }

  /* Mobile: stack CTAs vertically */
  @media (max-width: 620px) {
    .hero-intake {
      flex-direction: column;
      align-items: stretch;
      border-radius: 1.5rem;
      padding: var(--space-sm);
      background: rgba(255, 248, 236, 0.9);
    }

    .hero-url-input {
      flex: 0 0 auto;
      width: 100%;
      padding: 0.9rem 1rem;
    }

    .hero-submit {
      flex: 0 0 auto;
      width: 100%;
    }

    .hero-intake .form-submit-error {
      position: static;
      margin: 0 var(--space-sm) var(--space-sm);
    }
  }

  @keyframes hero-rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    #hero {
      animation: hero-atmosphere 16s ease-in-out infinite alternate;
    }
  }

  @keyframes hero-atmosphere {
    from {
      background-position: center, center, center center;
    }

    to {
      background-position: center, center, center 48%;
    }
  }

  @media (max-width: 767px) {
    #hero {
      min-height: 100svh;
      background:
        linear-gradient(180deg, rgba(255, 248, 236, 0.96) 0%, rgba(255, 248, 236, 0.88) 48%, rgba(255, 248, 236, 0.2) 100%),
        linear-gradient(90deg, rgba(255, 248, 236, 0.94) 0%, rgba(255, 248, 236, 0.74) 58%, rgba(255, 248, 236, 0.14) 100%),
        url('assets/hero-image.png') 50% bottom / 205% auto no-repeat;
    }

    .hero-content {
      justify-content: flex-start;
      padding-top: calc(var(--header-height) + 2rem);
      min-height: 100svh;
      width: 100%;
      max-width: 100%;
    }

    .hero-brand {
      font-size: clamp(3.1rem, 14vw, 5rem);
      margin-bottom: var(--space-md);
    }

    .hero-title {
      font-size: clamp(1.62rem, 6.7vw, 2.35rem);
      line-height: 1.07;
    }

    .hero-subtitle {
      max-width: 34rem;
      font-size: clamp(1rem, 4.4vw, 1.15rem);
      margin-bottom: var(--space-md);
    }
  }

  /* ── Section Variants ─────────────────────────────────────── */
  .section-alt {
    background-color: var(--color-bg-subtle);
  }

  .section-title {
    text-align: center;
    margin-bottom: var(--space-md);
  }

  .section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
  }

  /* Final landing hero composition: live copy + readable product-flow visual. */
  #hero {
    min-height: 100svh;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
      radial-gradient(circle at 78% 44%, rgba(15, 118, 110, 0.18), transparent 24rem),
      radial-gradient(circle at 58% 24%, rgba(231, 101, 59, 0.11), transparent 22rem),
      linear-gradient(115deg, #fff8ec 0%, #fff8ec 42%, #eef8f3 100%);
  }

  #hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      linear-gradient(rgba(22, 19, 15, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(22, 19, 15, 0.028) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%);
    opacity: 0.55;
  }

  #hero .hero-content {
    position: relative;
    z-index: 2;
    min-height: 100svh;
    width: min(40rem, 40vw);
    max-width: 34rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: var(--header-height);
    padding-bottom: clamp(2rem, 5vh, 4rem);
    text-align: left;
  }

  #hero .hero-brand {
    margin: 0 0 clamp(1rem, 2vh, 1.4rem);
    font-size: clamp(3.6rem, 2.8rem + 2.5vw, 5.1rem);
    line-height: 0.86;
  }

  #hero .hero-title {
    width: 100%;
    max-width: 29rem;
    margin: 0 0 clamp(1rem, 2vh, 1.35rem);
    display: block;
    font-size: clamp(1.85rem, 1.24rem + 1.22vw, 2.35rem);
    line-height: 1.05;
    text-align: left;
  }

  #hero .hero-subtitle {
    max-width: 29rem;
    margin: 0 0 clamp(1.35rem, 3vh, 2rem);
    font-size: clamp(0.98rem, 0.9rem + 0.28vw, 1.08rem);
    line-height: 1.58;
    text-align: left;
  }

  #hero .hero-intake {
    max-width: 29rem;
    margin-inline: 0;
    padding: 0.22rem;
    gap: 0.3rem;
    border-color: rgba(22, 19, 15, 0.16);
    box-shadow: 0 18px 48px rgba(22, 19, 15, 0.10);
  }

  #hero .hero-url-input {
    min-height: 3.25rem;
    padding: 0.65rem 0.75rem 0.65rem 1.1rem;
    font-size: clamp(0.95rem, 0.9rem + 0.22vw, 1.08rem);
  }

  #hero .hero-submit {
    min-height: 3.25rem;
    padding: 0.72rem 1.35rem;
    font-size: clamp(0.95rem, 0.9rem + 0.18vw, 1.05rem);
    border-radius: 999px;
  }

  .hero-system-visual {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: clamp(-1rem, 1.2vw, 1.75rem);
    width: min(61vw, 64rem);
    height: auto;
    transform: translateY(-50%);
    color: var(--color-ink);
  }

  .hero-system-visual::before {
    content: '';
    position: absolute;
    inset: 5% 1% 1% 3%;
    border-radius: 2.4rem;
    background:
      radial-gradient(circle at 62% 52%, rgba(15, 118, 110, 0.18), transparent 17rem),
      radial-gradient(circle at 82% 42%, rgba(231, 101, 59, 0.12), transparent 14rem);
    filter: blur(18px);
  }

  .hero-system-visual::after {
    content: '';
    position: absolute;
    z-index: 3;
    left: 10%;
    right: 9%;
    top: 49%;
    height: 2px;
    border-radius: 2.25rem;
    background: linear-gradient(90deg, rgba(22, 19, 15, 0), rgba(15, 118, 110, 0.64), rgba(231, 101, 59, 0.54), rgba(22, 19, 15, 0));
    background-size: 180% 100%;
    pointer-events: none;
    animation: hero-line-flow 6s linear infinite;
  }

  .hero-proof-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 2.4rem;
    opacity: 1;
    filter: saturate(1.1) contrast(1.04);
    transform: rotate(-0.2deg);
    mask-image:
      linear-gradient(180deg, transparent 0%, #000 7%, #000 90%, transparent 100%),
      linear-gradient(90deg, transparent 0%, #000 5%, #000 98%, transparent 100%);
    mask-composite: intersect;
    animation: hero-proof-drift 24s ease-in-out infinite;
  }

  .hero-proof-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 9% 48%, rgba(255, 248, 236, 0.88), rgba(255, 248, 236, 0.22) 39%, rgba(255, 248, 236, 0) 62%),
      linear-gradient(180deg, rgba(255, 248, 236, 0.22) 0%, rgba(255, 248, 236, 0.04) 46%, rgba(255, 248, 236, 0.02) 100%),
      linear-gradient(90deg, rgba(255, 248, 236, 0.05), rgba(238, 248, 243, 0.02));
    display: none;
  }

  .hero-proof-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
    scale: 1.0;
  }

  .hero-prompt-card,
  .hero-app-card,
  .hero-action-card {
    position: absolute;
    z-index: 4;
    background: rgba(255, 253, 245, 0.94);
    border: 1px solid rgba(22, 19, 15, 0.1);
    box-shadow: 0 22px 54px rgba(22, 19, 15, 0.12);
    backdrop-filter: blur(20px);
    animation: hero-card-float 8s ease-in-out infinite;
    overflow-wrap: anywhere;
  }

  .hero-prompt-card span,
  .hero-app-card span,
  .hero-action-card span {
    display: block;
    margin-bottom: 0.42rem;
    color: rgba(22, 19, 15, 0.58);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .hero-prompt-card strong,
  .hero-app-card strong,
  .hero-action-card strong {
    display: block;
    color: var(--color-ink);
    font-size: clamp(0.92rem, 0.8rem + 0.35vw, 1.12rem);
    line-height: 1.24;
  }

  .hero-prompt-card {
    left: -10%;
    top: 40%;
    width: clamp(11.5rem, 14.5vw, 14.5rem);
    min-height: auto;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
  }

  .hero-platform-card {
    display: none;
  }

  .hero-platform-card span {
    color: var(--color-primary);
    font-size: 0.76rem;
  }

  .hero-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.45rem;
  }

  .hero-pill-row b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.05rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.09);
    border: 1px solid rgba(15, 118, 110, 0.18);
    color: var(--color-primary);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }

  .hero-app-card {
    right: 8%;
    top: 20%;
    width: clamp(11.5rem, 14.5vw, 14.5rem);
    min-height: auto;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    animation-delay: -4.1s;
  }

  .hero-action-card {
    right: -5%;
    bottom: -8%;
    width: clamp(11.5rem, 14.5vw, 14.5rem);
    min-height: auto;
    padding: 0.8rem 1rem;
    border-color: rgba(231, 101, 59, 0.28);
    border-radius: 1rem;
    animation-delay: -1.1s;
  }

  .hero-action-card span {
    color: #a94721;
  }

  @keyframes hero-card-float {

    0%,
    100% {
      translate: 0 0;
    }

    50% {
      translate: 0 -10px;
    }
  }

  @keyframes hero-line-flow {
    from {
      background-position: 0% 50%;
    }

    to {
      background-position: 220% 50%;
    }
  }

  @keyframes hero-sheen {
    from {
      opacity: 0.35;
      transform: translateX(-1.2rem);
    }

    to {
      opacity: 0.75;
      transform: translateX(1rem);
    }
  }

  @keyframes hero-proof-drift {
    0% {
      translate: 0 0;
    }

    15% {
      translate: 0 -1.5rem;
    }

    /* Up */
    30% {
      translate: 0 1.2rem;
    }

    /* Down */
    45% {
      translate: -1.5rem 0.5rem;
    }

    /* Left */
    60% {
      translate: 1.5rem -0.5rem;
    }

    /* Right */
    80% {
      translate: -1.2rem -1.2rem;
    }

    /* Diagonal */
    100% {
      translate: 0 0;
    }
  }

  @media (max-width: 980px) {
    #hero {
      background:
        radial-gradient(circle at 86% 78%, rgba(15, 118, 110, 0.16), transparent 16rem),
        linear-gradient(180deg, #fff8ec 0%, #fff8ec 64%, #eef8f3 100%);
    }

    #hero::before {
      mask-image: none;
      opacity: 0.3;
    }

    #hero .hero-content {
      width: 100%;
      max-width: 40rem;
      align-items: flex-start;
      justify-content: flex-start;
      padding-top: calc(var(--header-height) + 2rem);
    }

    #hero .hero-brand {
      font-size: clamp(3.4rem, 14vw, 5.6rem);
    }

    #hero .hero-title {
      font-size: clamp(1.75rem, 6.4vw, 2.55rem);
    }

    #hero .hero-intake {
      max-width: 100%;
    }

    #hero .hero-url-input,
    #hero .hero-submit {
      min-height: 3.05rem;
    }

    .hero-system-visual {
      position: relative;
      right: auto;
      top: auto;
      width: 100%;
      max-width: 40rem;
      height: 18rem;
      margin: -1rem auto 2rem;
      transform: none;
      z-index: 1;
    }

    .hero-proof-image {
      inset: -4% -6% -4% 0;
      opacity: 0.68;
      border-radius: 1.5rem;
    }

    .hero-prompt-card {
      display: none;
    }

    .hero-platform-card {
      display: none;
    }

    .hero-app-card {
      right: 4%;
      top: 2rem;
      width: min(13.5rem, 46%);
      min-height: 8rem;
      padding: 1rem;
      border-radius: 1.2rem;
    }

    .hero-action-card {
      right: 4%;
      bottom: 1rem;
      width: min(14rem, 52%);
      min-height: 7rem;
      padding: 1rem;
      border-radius: 1.2rem;
    }

    .hero-system-visual::after {
      left: 20%;
      right: 12%;
      top: 48%;
    }
  }

  @media (max-width: 640px) {
    .hero-proof-image {
      opacity: 0.50;
    }

    .hero-app-card,
    .hero-action-card {
      display: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {

    .hero-proof-image,
    .hero-visual-figure,
    .hero-float-box,
    .hero-system-visual::after {
      animation: none !important;
    }
  }

  /* ── Problem Section (interactive ChatGPT mock) ───────────── */
  .problem-eyebrow {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
  }

  .problem-chat {
    position: relative;
    width: min(920px, 100%);
    min-height: 440px;
    max-width: 100%;
    margin: var(--space-xl) auto 0;
    display: flex;
    flex-direction: column;
    background:
      linear-gradient(145deg, rgba(255, 248, 236, 0.96), rgba(233, 246, 241, 0.82));
    border: 1px solid rgba(22, 19, 15, 0.14);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(22, 19, 15, 0.12);
  }

  .problem-chat::before {
    content: '';
    position: absolute;
    inset: auto -8% -24% 35%;
    height: 55%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.14), transparent 64%);
    pointer-events: none;
  }

  .problem-chat-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid rgba(22, 19, 15, 0.1);
    background-color: rgba(255, 248, 236, 0.78);
  }

  .problem-chat-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: var(--radius-md);
    background-color: #000;
  }

  .problem-chat-label {
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
  }

  .problem-chat-model {
    margin-left: auto;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 2px var(--space-xs);
  }

  .problem-chat-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: var(--space-xl);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .problem-chat-user {
    display: inline-block;
    max-width: min(82%, 38rem);
    margin-left: auto;
    margin-bottom: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background-color: rgba(255, 248, 236, 0.9);
    border: 1px solid rgba(22, 19, 15, 0.08);
    border-radius: 22px;
    color: var(--color-text);
    /* Right-align the bubble within the body */
    float: right;
    clear: both;
  }

  .problem-chat-assistant {
    display: flex;
    gap: var(--space-md);
    clear: both;
    max-width: 46rem;
  }

  .problem-chat-assistant .problem-chat-avatar {
    margin-top: 2px;
  }

  .problem-chat-content {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--color-text);
  }

  .problem-aitext {
    color: var(--color-text);
  }

  .problem-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 1px;
    vertical-align: text-bottom;
    background-color: var(--color-primary);
    animation: problem-cursor-blink 1s steps(2, start) infinite;
  }

  @keyframes problem-cursor-blink {

    0%,
    100% {
      opacity: 1;
    }

    50% {
      opacity: 0;
    }
  }

  .problem-output {
    margin-top: var(--space-sm);
  }

  /* List recommendations */
  .problem-rec {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--color-border);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--transition-base), transform var(--transition-base);
  }

  .problem-rec.problem-revealed {
    opacity: 1;
    transform: none;
  }

  .problem-rec-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: var(--radius-sm);
    background-color: var(--color-primary-muted);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
  }

  .problem-rec-info {
    display: flex;
    flex-direction: column;
  }

  .problem-rec-name {
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
  }

  .problem-rec-note {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
  }

  /* Booking card */
  .problem-booking {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--transition-base), transform var(--transition-base);
  }

  .problem-booking.problem-revealed {
    opacity: 1;
    transform: none;
  }

  .problem-booking-provider {
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-sm);
  }

  .problem-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
  }

  .problem-slot {
    width: 100%;
  }

  .problem-confirm-note {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin: 0;
  }

  /* Food grid */
  .problem-food-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .problem-food-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--transition-base), transform var(--transition-base);
  }

  .problem-food-card.problem-revealed {
    opacity: 1;
    transform: none;
  }

  .problem-food-pic {
    height: 70px;
    background-color: var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
  }

  .problem-food-pic svg {
    width: 28px;
    height: 28px;
  }

  .problem-food-pic.c-coral {
    background-color: #FEE2E2;
  }

  .problem-food-pic.c-green {
    background-color: #DCFCE7;
  }

  .problem-food-pic.c-purple {
    background-color: #EDE9FE;
  }

  .problem-food-pic.c-amber {
    background-color: #FEF3C7;
  }

  .problem-food-name {
    font-weight: var(--font-weight-bold);
    padding: var(--space-sm) var(--space-sm) 0;
  }

  .problem-food-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    padding: 2px var(--space-sm) var(--space-xs);
  }

  .problem-food-price {
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    padding: 0 var(--space-sm) var(--space-sm);
  }

  .problem-food-add {
    width: 100%;
    margin-top: auto;
    border-radius: 0;
  }

  /* Callout — soft red surface (brand-adjacent danger family) */
  .problem-callout {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background-color: rgba(255, 248, 236, 0.82);
    border: 1px solid rgba(231, 101, 59, 0.28);
    border-radius: 18px;
    transition: opacity var(--transition-base);
  }

  .problem-callout-title {
    margin: 0 0 var(--space-xs);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
  }

  .problem-callout-sub {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
  }

  /* Switcher pills */
  .problem-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
  }

  .problem-pill {
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background-color: var(--color-bg);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
  }

  .problem-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
  }

  .problem-pill--active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
  }

  /* Bridge — dark steel-black panel */
  .problem-bridge {
    text-align: center;
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background-color: var(--color-steel-black);
    color: var(--color-cream-white);
    border-radius: 24px;
  }

  .problem-bridge-line {
    position: relative;
    font-size: clamp(2rem, 1.25rem + 3vw, 4rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-cream-white);
    margin-bottom: 0;
  }

  /* Invisible sizer reserves the full sentence's height (including wrapping) so
     the typewriter reveal and clear/retype loop never shift the page. */
  .problem-bridge-sizer {
    visibility: hidden;
  }

  .problem-bridge-text {
    position: absolute;
    inset: 0;
  }

  /* Tighten the gap between the problem section and the How It Works image */
  #problem {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-xl);
  }

  @media (max-width: 767px) {
    .problem-chat {
      min-height: 0;
      border-radius: 24px;
    }

    .problem-chat-header,
    .problem-chat-body {
      padding: var(--space-md);
    }

    .problem-chat-user {
      max-width: 100%;
      padding: var(--space-sm) var(--space-md);
    }

    .problem-chat-assistant {
      max-width: 100%;
    }

    .problem-switcher {
      justify-content: flex-start;
      overflow-x: auto;
      flex-wrap: nowrap;
      padding-bottom: var(--space-xs);
    }

    .problem-pill {
      flex: 0 0 auto;
    }
  }

  #how-it-works {
    padding-top: var(--space-3xl);
  }

  .process-section {
    position: relative;
    overflow: hidden;
    background:
      linear-gradient(180deg, var(--color-bg) 0%, #F7EFE1 100%);
  }

  .process-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 10% 20%, rgba(15, 118, 110, 0.12), transparent 28%),
      radial-gradient(circle at 86% 70%, rgba(231, 101, 59, 0.12), transparent 32%);
    pointer-events: none;
  }

  .process-container {
    position: relative;
  }

  .process-title {
    max-width: 680px;
    margin-inline: auto;
  }

  .process-subtitle {
    max-width: 720px;
  }

  .process-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
  }

  .process-step {
    position: relative;
    min-height: 16rem;
    padding: var(--space-xl);
    border: 1px solid rgba(22, 19, 15, 0.12);
    background: rgba(255, 248, 236, 0.62);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
  }

  .process-step::before {
    content: '';
    position: absolute;
    inset: auto -20% -30% 28%;
    height: 65%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.18), transparent 62%);
    transform: rotate(-10deg);
    pointer-events: none;
  }

  .process-marker {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 5.5rem);
    line-height: 1;
    color: rgba(22, 19, 15, 0.12);
  }

  .process-label {
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: var(--font-size-sm);
  }

  .process-step-title {
    max-width: 20rem;
    margin-bottom: var(--space-sm);
    font-size: clamp(1.45rem, 1.2rem + 1vw, 2.2rem);
    font-weight: 800;
  }

  .process-description {
    position: relative;
    max-width: 28rem;
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
  }

  @media (min-width: 820px) {
    .process-flow {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .process-step {
      min-height: 22rem;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .problem-cursor {
      animation: none;
    }

    .problem-rec,
    .problem-booking,
    .problem-food-card,
    .problem-callout {
      transition: none;
    }
  }

  /* ── Products Section ────────────────────────────────────── */
  .products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
  }

  @media (min-width: 768px) {
    .products-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .product-card {
    background-color: var(--color-bg);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    display: flex;
    flex-direction: column;
  }

  .product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }

  .product-icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
  }

  .product-icon svg {
    width: 48px;
    height: 48px;
  }

  .product-card h3 {
    margin-bottom: var(--space-md);
  }

  .product-tagline {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
  }

  .product-capabilities {
    text-align: left;
    margin-bottom: var(--space-lg);
  }

  .product-capabilities li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
  }

  .product-capabilities li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
  }

  .product-cta {
    margin-top: auto;
  }

  /* ── Use Cases Section ───────────────────────────────────── */
  .use-cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
  }

  @media (min-width: 640px) {
    .use-cases-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 1024px) {
    .use-cases-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .use-case-card {
    background-color: #0F172A;
    background-image: linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.80)), var(--card-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
  }

  .use-case-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }

  .use-case-card h3 {
    color: #FFFFFF;
    margin-bottom: var(--space-sm);
  }

  .use-case-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-sm);
  }

  .use-cases-footer {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    max-width: 640px;
    margin-inline: auto;
    margin-top: var(--space-2xl);
  }

  /* ── FAQ Section ─────────────────────────────────────────── */
  .faq-list {
    max-width: 800px;
    margin-inline: auto;
    margin-top: var(--space-2xl);
  }

  .faq-item {
    border-bottom: 1px solid var(--color-border);
  }

  .faq-item:first-child {
    border-top: 1px solid var(--color-border);
  }

  .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-lg) 0;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-family);
    gap: var(--space-md);
    line-height: var(--line-height-body);
  }

  .faq-question:hover {
    color: var(--color-primary);
  }

  .faq-chevron {
    flex-shrink: 0;
    transition: transform var(--transition-base);
    color: var(--color-gray-400);
  }

  .faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
  }

  .faq-answer {
    padding-bottom: var(--space-lg);
  }

  .faq-answer[hidden] {
    display: none;
  }

  .faq-answer p {
    color: var(--color-text-secondary);
    line-height: var(--line-height-body);
  }

  /* ── Agent Cards Section ─────────────────────────────── */
  .agents-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
  }

  @media (min-width: 768px) {
    .agents-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .agent-card {
    background-color: var(--color-bg);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    overflow: hidden;
    border-top: 4px solid var(--color-border);
  }

  .agent-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }

  .agent-card--marketing {
    border-top-color: #16A34A;
  }

  .agent-card--sales {
    border-top-color: var(--color-primary);
  }

  .agent-card--support {
    border-top-color: #9333EA;
  }

  .agent-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
  }

  .agent-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .agent-icon svg {
    width: 36px;
    height: 36px;
  }

  .agent-header h3 {
    margin-bottom: 0;
  }

  .agent-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm);
  }

  .chat-mockup {
    background-color: var(--color-bg-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
  }

  .chat-bubble {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    max-width: 85%;
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-body);
  }

  .chat-bubble:last-child {
    margin-bottom: 0;
  }

  .chat-bubble--visitor {
    background-color: var(--color-gray-200);
    color: var(--color-text);
    margin-left: auto;
    border-bottom-right-radius: var(--radius-sm);
    text-align: right;
  }

  .chat-bubble--agent {
    background-color: var(--color-primary-muted);
    color: var(--color-text);
    margin-right: auto;
    border-bottom-left-radius: var(--radius-sm);
  }

  .chat-bubble p {
    margin-bottom: 0;
  }

  .agent-capabilities {
    text-align: left;
  }

  .agent-capabilities li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
  }

  .agent-capabilities li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
  }

  /* ── Audit Form Section ──────────────────────────────── */
  .audit-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: start;
    margin-top: var(--space-2xl);
  }

  @media (min-width: 768px) {
    .audit-content {
      grid-template-columns: 1fr 1fr;
    }
  }

  .audit-info h3 {
    margin-bottom: var(--space-lg);
  }

  .audit-benefits li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
  }

  .audit-benefits li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
  }

  .form-group {
    margin-bottom: var(--space-lg);
  }

  .form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    color: var(--color-text);
  }

  .form-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-base);
    background: var(--color-bg);
  }

  .form-input:focus {
    border-color: var(--color-primary);
    outline: 2px solid var(--color-primary);
    outline-offset: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  }

  .form-input.form-input--error {
    border-color: #DC2626;
  }

  .form-error {
    display: none;
    color: #DC2626;
    font-size: var(--font-size-sm);
    margin-top: var(--space-xs);
  }

  .form-error.form-error--visible {
    display: block;
  }

  .audit-submit {
    width: 100%;
    margin-top: var(--space-sm);
  }

  .audit-success {
    text-align: center;
    padding: var(--space-2xl);
  }

  .audit-success[hidden] {
    display: none;
  }

  .audit-success-message {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
  }

  .audit-social-proof {
    text-align: center;
    color: var(--color-gray-400);
    font-size: var(--font-size-sm);
    margin-top: var(--space-xl);
    font-style: italic;
  }

  /* -- Contact Form Section ---------------------------------------- */
  .contact-form-wrapper {
    max-width: 600px;
    margin: var(--space-2xl) auto 0;
  }

  .contact-textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-base);
    background: var(--color-bg);
    resize: vertical;
    min-height: 120px;
  }

  .contact-textarea:focus {
    border-color: var(--color-primary);
    outline: 2px solid var(--color-primary);
    outline-offset: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  }

  .contact-textarea.form-input--error {
    border-color: #DC2626;
  }

  .contact-submit {
    width: 100%;
    margin-top: var(--space-sm);
  }

  .contact-success {
    text-align: center;
    padding: var(--space-2xl);
  }

  .contact-success[hidden] {
    display: none;
  }

  .contact-success-message {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
  }

  /* ── Form loading and error states (quick-2) ─────────── */
  .btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .form-submit-error {
    color: #DC2626;
    font-size: var(--font-size-sm);
    text-align: center;
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background-color: #FEF2F2;
    border-radius: var(--radius-md);
  }

  /* ── Blog Section ─────────────────────────────────────────── */
  .blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
  }

  @media (min-width: 640px) {
    .blog-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 1024px) {
    .blog-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .blog-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
  }

  .blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }

  .blog-card:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }

  .blog-card-content {
    padding: var(--space-lg);
  }

  .blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
  }

  .blog-tag {
    display: inline-block;
    background-color: var(--color-primary-muted);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    padding: 2px var(--space-sm);
    border-radius: var(--radius-xl);
  }

  .blog-card-title {
    margin-bottom: var(--space-sm);
  }

  .blog-card-date {
    color: var(--color-gray-400);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-sm);
  }

  .blog-card-excerpt {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
  }

  .blog-card-link {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
  }

  .blog-loading {
    text-align: center;
    color: var(--color-text-secondary);
    padding: var(--space-2xl) 0;
  }

  .blog-empty {
    text-align: center;
    color: var(--color-gray-400);
    padding: var(--space-2xl) 0;
    font-size: var(--font-size-lg);
  }

  /* Blog detail view */
  .blog-detail[hidden] {
    display: none;
  }

  .blog-back {
    margin-bottom: var(--space-xl);
  }

  .blog-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
  }

  .blog-detail-title {
    margin-bottom: var(--space-md);
  }

  .blog-detail-meta {
    color: var(--color-gray-400);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-lg);
  }

  .blog-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
  }

  .blog-detail-content {
    max-width: 720px;
    margin-inline: auto;
    line-height: 1.8;
    color: var(--color-text);
  }

  .blog-detail-content h2,
  .blog-detail-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
  }

  .blog-detail-content p {
    margin-bottom: var(--space-lg);
  }

  .blog-detail-content ul,
  .blog-detail-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
    list-style: disc;
  }

  .blog-detail-content li {
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
  }

  .blog-detail-content a {
    color: var(--color-primary);
    text-decoration: underline;
  }

  .blog-detail-content a:hover {
    color: var(--color-primary-hover);
  }

  .blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
  }

  .blog-detail-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--space-lg);
    margin: var(--space-lg) 0;
    color: var(--color-text-secondary);
    font-style: italic;
  }

  /* ── Final CTA Section ───────────────────────────────── */
  .section-dark {
    background-color: #0F172A;
    color: var(--color-bg);
  }

  .section-dark .container {
    text-align: center;
  }

  .final-cta-title {
    color: var(--color-bg);
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-h2);
  }

  /* ── Pricing Section ─────────────────────────────────── */
  .pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    align-items: start;
  }

  @media (min-width: 768px) {
    .pricing-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (min-width: 1024px) {
    .pricing-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }

  .pricing-includes {
    text-align: center;
    margin-top: var(--space-xl);
  }

  .pricing-includes-label {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
  }

  .pricing-includes-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs);
  }

  .pricing-includes-badge {
    display: inline-block;
    background-color: var(--color-primary-muted);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-xl);
  }

  .pricing-small-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: var(--space-sm);
  }

  .pricing-card {
    background-color: var(--color-bg);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid var(--color-border);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
  }

  .pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }

  .pricing-card--highlighted {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
  }

  @media (min-width: 768px) {
    .pricing-card--highlighted {
      transform: translateY(-0.25rem);
    }

    .pricing-card--highlighted:hover {
      transform: translateY(-0.4rem);
    }
  }

  .pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-primary);
    color: var(--color-bg);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
  }

  .pricing-name {
    font-size: var(--font-size-h3);
    margin-bottom: var(--space-sm);
    text-align: center;
  }

  .pricing-price {
    text-align: center;
    margin-bottom: var(--space-md);
  }

  .pricing-amount {
    display: inline-block;
    max-width: 100%;
    font-size: clamp(2rem, 1.2rem + 2.2vw, 3.4rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    overflow-wrap: anywhere;
  }

  .pricing-amount--text {
    font-size: clamp(1.75rem, 1.2rem + 1vw, 2.4rem);
    word-break: normal;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .pricing-period {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
  }

  .pricing-description {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    text-align: center;
    margin-bottom: var(--space-lg);
  }

  .pricing-features {
    margin-bottom: var(--space-xl);
  }

  .pricing-features li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
  }

  .pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
  }

  .pricing-cta {
    margin-top: auto;
    width: 100%;
    text-align: center;
  }

  .pricing-cta--clicked {
    opacity: 0.7;
    cursor: default;
  }

  /* ── Footer ──────────────────────────────────────────── */
  .site-footer {
    background: var(--color-text);
    color: var(--color-bg);
    padding: var(--space-3xl) 0 var(--space-xl);
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .footer-brand {
    text-align: left;
  }

  .footer-logo {
    color: var(--color-bg);
    font-size: var(--font-size-lg);
    font-weight: 700;
    text-decoration: none;
  }

  .footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
  }

  .footer-link {
    color: var(--color-gray-300);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-base);
  }

  .footer-link:hover,
  .footer-link:focus-visible {
    color: var(--color-bg);
  }

  .footer-copyright {
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
  }

  /* Logo image in header */
  .site-logo-img {
    display: block;
    height: 42px;
    width: auto;
  }

  @media (min-width: 768px) {
    .footer-inner {
      grid-template-columns: 1fr auto 1fr;
      text-align: left;
      align-items: baseline;
    }

    .footer-copyright {
      text-align: right;
    }
  }
}

/* -----------------------------------------------------------------
   UTILITIES — Helper classes
   ----------------------------------------------------------------- */
@layer utilities {

  /* Skip-to-content link (STRC-02) — visible only on keyboard focus */
  .skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-bg);
    padding: var(--space-sm) var(--space-md);
    z-index: 100;
    transition: top var(--transition-base);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    border-radius: 0 0 var(--radius-sm) 0;
  }

  .skip-link:focus {
    top: 0;
  }

  /* Screen-reader only — visually hidden but accessible */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }

  /* ── Blog post page — bottom CTA row (quick-21) ────────────────── */
  .blog-post-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    max-width: 720px;
  }

  /* "View all posts" link below 3-post homepage preview (quick-21) */
  .blog-view-all {
    margin-top: var(--space-lg);
    text-align: center;
  }
}

/* ==========================================================================
   UI/UX STYLE ELEVATION OVERRIDES
   ========================================================================== */

/* 1. Typography & Hierarchy overrides */
#hero .hero-subtitle,
.section-subtitle,
.form-error {
  font-size: 14px !important;
  /* text-sm */
  line-height: 1.5 !important;
}

label,
.field label,
.form-group label {
  font-size: 14px !important;
  /* text-sm */
  font-weight: 600 !important;
  /* semibold/medium weight */
  letter-spacing: normal !important;
  /* tracking-normal */
  text-transform: none !important;
  color: #334155 !important;
  /* text-slate-700 */
  display: block !important;
  margin-bottom: 6px !important;
}

/* 2. Input & Text Fields (Textboxes) overrides */
.form-input,
.contact-textarea {
  background-color: rgba(248, 250, 252, 0.5) !important;
  /* bg-slate-50/50 */
  border: 1px solid #cbd5e1 !important;
  /* border-slate-300 */
  padding: 8px 12px !important;
  /* py-2 px-3 */
  min-height: 44px !important;
  /* 44px minimum target sizes */
  box-sizing: border-box !important;
  font-size: 14px !important;
  /* text-sm/text-base input fields */
  border-radius: 8px !important;
  color: #1e293b !important;
  /* slate-800 text */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-input:focus,
.contact-textarea:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  /* focus:border-blue-500 */
  background-color: #ffffff !important;
  /* focus:bg-white */
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
  /* focus:ring-2 focus:ring-blue-500/10 */
}

/* Rounded search input style override for Hero Section Intake */
#hero .hero-intake {
  background-color: rgba(248, 250, 252, 0.5) !important;
  /* bg-slate-50/50 */
  border: 1px solid #cbd5e1 !important;
  /* border-slate-300 */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

#hero .hero-intake:focus-within {
  border-color: #3b82f6 !important;
  /* focus:border-blue-500 */
  background-color: #ffffff !important;
  /* focus:bg-white */
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
  /* focus:ring-2 focus:ring-blue-500/10 */
}

#hero .hero-url-input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 44px !important;
  padding: 8px 16px !important;
  color: #1e293b !important;
}

#hero .hero-url-input:focus {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

input::placeholder,
textarea::placeholder,
.form-input::placeholder,
.hero-url-input::placeholder {
  color: #94a3b8 !important;
  /* text-slate-400 placeholder */
  opacity: 1 !important;
}

/* 3. Buttons & Controls overrides */
.btn-primary,
.hero-submit,
.audit-submit {
  background-color: #2563eb !important;
  /* solid bg-blue-600 */
  border: 1px solid #2563eb !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  /* Maintain pill shape for landing page */
  padding: 10px 18px !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 4px 12px 0 rgba(191, 219, 254, 0.5) !important;
  /* shadow-sm shadow-blue-200/50 */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.btn-primary:hover,
.hero-submit:hover,
.audit-submit:hover {
  background-color: #1d4ed8 !important;
  /* hover:bg-blue-700 */
  border-color: #1d4ed8 !important;
  transform: translateY(0) !important;
}

.btn-primary:active,
.hero-submit:active,
.audit-submit:active {
  transform: scale(0.98) !important;
  /* active:scale-[0.98] */
}

.btn-ghost {
  background-color: transparent !important;
  border: 1px solid #cbd5e1 !important;
  /* subtle border */
  color: #334155 !important;
  /* lightweight text color */
  border-radius: 999px !important;
  /* Maintain pill shape */
  padding: 8px 14px !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ==========================================================================
   LANDING HERO STABILIZATION
   One authoritative public-site hero layout so desktop/mobile stop fighting.
   ========================================================================== */

body .site-header {
  background: rgba(255, 248, 236, 0.94);
  backdrop-filter: blur(18px);
}

body .site-logo-text,
body .nav-link,
body .nav-login {
  color: var(--color-ink) !important;
}

body .header-cta,
body .hero-submit {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
  box-shadow: 0 18px 42px rgba(15, 118, 110, 0.18) !important;
}

body .header-cta:hover,
body .hero-submit:hover {
  background: var(--color-primary-hover) !important;
  border-color: var(--color-primary-hover) !important;
}

body #hero {
  min-height: 100svh;
  padding: 0;
  overflow-x: clip;
  overflow-y: visible;
  background:
    radial-gradient(circle at 74% 46%, rgba(163, 230, 222, 0.3), transparent 28rem),
    radial-gradient(circle at 54% 20%, rgba(244, 114, 54, 0.12), transparent 24rem),
    linear-gradient(115deg, #fff9ef 0%, #fff7ea 44%, #eef8f3 100%);
}

body #hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(22, 19, 15, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 19, 15, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.36;
}

body #hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 249, 239, 0.97) 0%, rgba(255, 249, 239, 0.9) 40%, rgba(255, 249, 239, 0.35) 62%, rgba(255, 249, 239, 0) 82%);
}

body #hero .container.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  max-width: min(1320px, calc(100vw - 64px));
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--header-height) + 4.5rem) 0 4.25rem;
  display: grid;
  grid-template-columns: minmax(0, 31rem) minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
  column-gap: clamp(2rem, 4vw, 5rem);
}

body #hero .hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

body #hero .hero-brand,
body #hero .hero-title,
body #hero .hero-subtitle,
body #hero .hero-intake,
body #hero .hero-intake-status {
  grid-column: auto;
}

body #hero .hero-brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(4rem, 5.2vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  text-wrap: balance;
}

body #hero .hero-title {
  margin: 0 0 1.15rem;
  max-width: 29rem;
  font-size: clamp(1.95rem, 1.6rem + 1vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  text-wrap: balance;
}

body #hero .hero-title span {
  display: block;
}

body #hero .hero-subtitle {
  margin: 0 0 1.8rem !important;
  max-width: 27rem;
  font-size: clamp(1rem, 0.92rem + 0.2vw, 1.12rem) !important;
  line-height: 1.55 !important;
  color: rgba(22, 19, 15, 0.72) !important;
}

body #hero .hero-intake {
  position: relative;
  z-index: 2;
  max-width: 28rem;
  margin: 0;
  padding: 0.28rem !important;
  gap: 0.28rem;
  border-radius: 999px !important;
  border: 1px solid rgba(22, 19, 15, 0.12) !important;
  background: rgba(255, 253, 248, 0.96) !important;
  box-shadow: 0 18px 48px rgba(22, 19, 15, 0.12) !important;
}

body #hero .hero-url-input {
  min-height: 3.1rem !important;
  padding: 0.75rem 1.15rem !important;
  font-size: 1rem !important;
  color: var(--color-ink) !important;
}

body #hero .hero-url-input::placeholder {
  color: rgba(22, 19, 15, 0.42) !important;
}

body #hero .hero-submit {
  min-height: 3.1rem;
  padding: 0.75rem 1.3rem !important;
  font-size: 1rem !important;
  white-space: nowrap;
}

body .hero-system-visual {
  position: relative !important;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 1.25rem 0;
  justify-self: center;
}

body .hero-system-visual::before,
body .hero-system-visual::after {
  display: none;
}

body .hero-visual-figure {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.75rem 0;
  animation: hero-visual-float 9s ease-in-out infinite;
  will-change: transform;
}

body .hero-visual-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(26rem, 48vh);
  aspect-ratio: 1024 / 511;
  object-fit: contain;
  object-position: center center;
  border-radius: 1.35rem;
  filter: drop-shadow(0 42px 84px rgba(22, 19, 15, 0.16));
  pointer-events: none;
  user-select: none;
}

@keyframes hero-visual-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1180px) {
  body #hero .container.hero-content {
    grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
    column-gap: 1.5rem;
    padding-top: calc(var(--header-height) + 3.5rem);
  }

  body #hero .hero-brand {
    font-size: clamp(3.35rem, 5vw, 4.8rem);
  }

  body .hero-system-visual {
    width: 100%;
  }

  body .hero-visual-img {
    border-radius: 1.15rem;
  }
}

@media (max-width: 980px) {
  body #hero::after {
    background: linear-gradient(180deg, rgba(255, 249, 239, 0.98) 0%, rgba(255, 249, 239, 0.92) 52%, rgba(255, 249, 239, 0.24) 100%);
  }

  body #hero .container.hero-content {
    max-width: min(680px, calc(100vw - 40px));
    min-height: auto;
    padding: calc(var(--header-height) + 2rem) 0 2.75rem;
    grid-template-columns: 1fr;
    row-gap: 1.6rem;
  }

  body #hero .hero-brand,
  body #hero .hero-title,
  body #hero .hero-subtitle,
  body #hero .hero-intake,
  body #hero .hero-intake-status,
  body #hero .hero-copy,
  body .hero-system-visual {
    grid-column: 1;
    grid-row: auto;
  }

  body #hero .hero-brand {
    font-size: clamp(3.2rem, 13vw, 5rem);
  }

  body #hero .hero-title {
    max-width: 100%;
    font-size: clamp(1.95rem, 6.8vw, 2.8rem);
  }

  body #hero .hero-subtitle {
    max-width: 100%;
  }

  body #hero .hero-intake {
    max-width: 100%;
  }

  body .hero-system-visual {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
  }

  body .hero-visual-img {
    max-height: none;
  }
}

@media (max-width: 640px) {
  body #hero {
    min-height: auto;
  }

  body #hero .container.hero-content {
    max-width: min(100vw - 24px, 34rem);
    padding: calc(var(--header-height) + 1.6rem) 0 2rem;
    row-gap: 1.2rem;
  }

  body #hero .hero-brand {
    font-size: clamp(2.9rem, 16vw, 4.1rem);
    margin-bottom: 0.75rem;
  }

  body #hero .hero-title {
    font-size: clamp(1.65rem, 9vw, 2.2rem);
    max-width: 18rem;
    margin-bottom: 0.8rem;
  }

  body #hero .hero-subtitle {
    font-size: 0.98rem !important;
    margin-bottom: 1.15rem !important;
  }

  body #hero .hero-intake {
    flex-direction: column;
    border-radius: 1.6rem !important;
    padding: 0.5rem !important;
  }

  body #hero .hero-submit,
  body #hero .hero-url-input {
    width: 100%;
  }

  body .hero-visual-img {
    border-radius: 0.9rem;
    filter: drop-shadow(0 28px 56px rgba(22, 19, 15, 0.14));
  }
}

.btn-ghost:hover {
  background-color: rgba(241, 245, 249, 0.5) !important;
  /* transparent hover background */
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

.btn-ghost:active {
  transform: scale(0.98) !important;
  /* active:scale-[0.98] */
}

/* 4. Cards & Surfaces elevation overrides (fixing muddy shading) */
.product-card,
.agent-card,
.use-case-card,
.pricing-card,
.blog-card,
.problem-chat,
.audit-form-wrapper,
.contact-form-wrapper {
  background-color: #ffffff !important;
  /* elevated pure white card background */
  border: 1px solid rgba(22, 19, 15, 0.05) !important;
  /* subtle border to define boundaries */
  box-shadow: 0 10px 30px -10px rgba(22, 19, 15, 0.06), 0 4px 12px -3px rgba(22, 19, 15, 0.03) !important;
  /* elegant soft shadow */
  transition: box-shadow 0.25s ease-in-out, transform 0.25s ease-in-out, border-color 0.25s ease-in-out !important;
}

.product-card:hover,
.agent-card:hover,
.use-case-card:hover,
.pricing-card:hover,
.blog-card:hover {
  box-shadow: 0 20px 40px -15px rgba(22, 19, 15, 0.12), 0 8px 16px -4px rgba(22, 19, 15, 0.05) !important;
  /* enhanced hover shadow */
  transform: translateY(-4px) !important;
  /* modern hover lift */
  border-color: rgba(15, 118, 110, 0.15) !important;
  /* subtle brand color hover borders */
}

/* Pricing card highlight adjustment */
.pricing-card--highlighted {
  border-color: var(--color-primary) !important;
  box-shadow: 0 20px 40px -15px rgba(15, 118, 110, 0.14), 0 8px 16px -4px rgba(15, 118, 110, 0.06) !important;
}

.pricing-card--highlighted:hover {
  box-shadow: 0 24px 48px -12px rgba(15, 118, 110, 0.22), 0 10px 20px -5px rgba(15, 118, 110, 0.1) !important;
}