/* ============================================
     DESIGN TOKENS — change values here, not below
     ============================================ */
  :root {
    color-scheme: light;

    --color-bg:        #FFFFFF;
    --color-ink:       #14161C;
    --color-ink-soft:  #52565F; /* secondary text */
    --color-line:      #DCDDE3;
    --color-surface:   #F7F7F9; /* light panel background */
    --color-signal:    #2A3FE8; /* primary accent — CTAs, links */
    --color-signal-dark: #1F30B8;
    --color-stamp:     #FF5A2E; /* secondary accent — use sparingly */

    --font-display: 'Space Grotesk', sans-serif;
    --font-body:    'Inter', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    --max-width: 1160px;
    --radius: 10px;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-body);
    color: var(--color-ink);
    background: var(--color-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

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

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

  .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
  }

  /* Section wrapper spacing — every top-level <section> gets this */
  section { padding: 88px 0; }
  section.tight { padding: 64px 0; }

  /* ============================================
     SIGNATURE ELEMENT: WPX-0X monospace tags
     Used beside every section heading, echoes
     garment QC tags from the founder's background
     ============================================ */
  .tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--color-stamp);
    background: rgba(255, 90, 46, 0.08);
    border: 1px solid rgba(255, 90, 46, 0.25);
    border-radius: 4px;
    padding: 3px 9px;
    margin-bottom: 16px;
  }

  .eyebrow-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-ink);
  }

  h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; font-weight: 700; }
  h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin-bottom: 16px; }
  h3 { font-size: 19px; margin-bottom: 8px; }

  p { color: var(--color-ink-soft); }
  .lede { font-size: 18px; max-width: 640px; }

  /* ============================================
     BUTTONS
     ============================================ */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 24px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }
  .btn:hover { transform: translateY(-1px); }

  .btn-primary {
    background: var(--color-signal);
    color: #fff;
  }
  .btn-primary:hover { background: var(--color-signal-dark); }

  .btn-secondary {
    background: transparent;
    border-color: var(--color-line);
    color: var(--color-ink);
  }
  .btn-secondary:hover { border-color: var(--color-ink); }

  .btn-whatsapp {
    background: var(--color-ink);
    color: #fff;
  }
  .btn-whatsapp:hover { background: #000; }

  .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

  /* ============================================
     NAVIGATION
     ============================================ */
  .nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-line);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
  }
  .logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.01em;
  }
  .logo span { color: var(--color-signal); }
  .nav-links {
    display: flex;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
  }
  .nav-links a { color: var(--color-ink-soft); transition: color 0.15s ease; }
  .nav-links a:hover { color: var(--color-ink); }
  .nav-cta { display: flex; align-items: center; gap: 16px; }

  /* Hamburger button — 3 lines that animate into an X when open */
  .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile menu panel — hidden by default, toggled via JS adding
     the "is-open" class (see the initMobileMenu script) */
  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 8px 24px 20px;
    border-top: 1px solid var(--color-line);
  }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu a {
    padding: 12px 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-ink);
    border-bottom: 1px solid var(--color-line);
  }
  .mobile-menu a.btn {
    border-bottom: none;
    text-align: center;
  }

  @media (max-width: 780px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
  }

  /* ============================================
     HERO — soft gradient background, no image.
     A prior full-bleed illustration attempt failed
     because the artwork had its own baked-in UI text
     ("Shop Now") that collided with the real headline —
     gradients have no content, so no collision risk.
     ============================================ */
  .hero {
    padding: 96px 0 72px;
    background: linear-gradient(160deg, #EEF1FF 0%, #FFFFFF 55%, #FFFFFF 100%);
  }
  .hero-inner { max-width: 720px; }
  .hero h1 { margin-bottom: 20px; }

  /* ============================================
     PROBLEM / SOLUTION LISTS
     ============================================ */
  .check-list { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
  .check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    color: var(--color-ink-soft);
  }
  .check-list li::before {
    content: "";
    flex-shrink: 0;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-stamp);
    margin-top: 9px;
  }

  .solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 32px;
  }
  .solution-item {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 18px;
    font-weight: 600;
    font-size: 15px;
  }

  /* ============================================
     HOW IT WORKS — numbered steps (legit sequence)
     ============================================ */
  .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
    counter-reset: step;
  }
  .step {
    position: relative;
    padding-top: 8px;
    border-top: 2px solid var(--color-ink);
  }
  .step-visual {
    aspect-ratio: 1;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
  }
  .step-visual img { width: 100%; height: 100%; object-fit: cover; }
  .step-number {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-signal);
    margin-bottom: 10px;
    display: block;
  }
  .step p { font-size: 15px; }

  /* ============================================
     SERVICES — included items
     ============================================ */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 32px;
  }
  .service-chip {
    border: 1px solid var(--color-line);
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 14.5px;
    font-weight: 500;
  }

  /* ============================================
     PRICING
     ============================================ */
  .pricing-note {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 14.5px;
    margin: 28px 0 36px;
  }
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }
  .price-card {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
  }
  .price-card.featured {
    border-color: var(--color-signal);
    box-shadow: 0 0 0 1px var(--color-signal);
  }
  .price-card .plan-name { font-size: 14px; font-weight: 600; color: var(--color-ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
  .price-card .plan-price { font-family: var(--font-display); font-size: 34px; font-weight: 700; margin: 10px 0 4px; }
  .price-card .plan-price span { font-size: 14px; font-weight: 500; color: var(--color-ink-soft); }
  .price-card .plan-for { font-size: 14.5px; margin-bottom: 20px; }
  .plan-features {
    list-style: none;
    margin: 0 0 24px;
    display: grid;
    gap: 10px;
    flex-grow: 1;
  }
  .plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    color: var(--color-ink-soft);
  }
  .plan-features li::before {
    content: "✓";
    flex-shrink: 0;
    color: var(--color-signal);
    font-weight: 700;
    font-size: 13px;
  }
  .price-card .btn { margin-top: auto; }

  /* ============================================
     COMPARISON TABLE
     ============================================ */
  .compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
    font-size: 14.5px;
  }
  .compare-table th, .compare-table td {
    border: 1px solid var(--color-line);
    padding: 14px 16px;
    text-align: left;
  }
  .compare-table th { background: var(--color-surface); font-weight: 600; }
  .compare-table td.highlight { background: rgba(42, 63, 232, 0.05); font-weight: 600; }
  .table-scroll { overflow-x: auto; }

  /* ============================================
     TARGET CUSTOMER — tag chips
     ============================================ */
  .chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
  .chip {
    border: 1px solid var(--color-line);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 500;
  }

  /* ============================================
     DEMO GALLERY
     ============================================ */
  .demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 32px;
  }
  .demo-card {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .demo-thumb {
    height: 140px;
    background: linear-gradient(135deg, var(--color-surface), #ECEDF3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-ink-soft);
    overflow: hidden;
  }
  .demo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
  .demo-card-body { padding: 16px; }
  .demo-card-body .demo-label { font-size: 12px; color: var(--color-signal); font-family: var(--font-mono); margin-bottom: 4px; }

  /* Category tabs above the demo grid */
  .category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 12px;
  }
  .tab-chip {
    border: 1px solid var(--color-line);
    background: #fff;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .tab-chip.active {
    background: var(--color-ink);
    border-color: var(--color-ink);
    color: #fff;
  }

  /* Premium tier card + badge */
  .demo-card.is-premium {
    border-color: var(--color-stamp);
    position: relative;
  }
  .premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--color-stamp);
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 8px;
  }
  .tier-label {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--color-ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  /* ============================================
     LONG-TERM VISION — dark contrast block
     ============================================ */
  .vision {
    background: var(--color-ink);
    color: #fff;
    border-radius: 20px;
    padding: 56px;
    margin: 0 24px;
    max-width: calc(var(--max-width) - 48px);
    margin-left: auto;
    margin-right: auto;
  }
  .vision h2 { color: #fff; }
  .vision p { color: #C7C9D4; font-size: 17px; max-width: 640px; }
  .vision .tag { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

  /* ============================================
     FAQ — accordion
     ============================================ */
  .faq-list { margin-top: 28px; border-top: 1px solid var(--color-line); }
  .faq-item { border-bottom: 1px solid var(--color-line); }
  .faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 4px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }
  .faq-icon {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--color-signal);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 16px;
  }
  .faq-item.open .faq-icon { transform: rotate(45deg); }
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .faq-answer p { padding: 0 4px 20px; font-size: 15px; }

  /* ============================================
     FINAL CTA
     ============================================ */
  .final-cta { text-align: center; }
  .final-cta h2 { max-width: 620px; margin: 0 auto 28px; }
  .final-cta .cta-row { justify-content: center; }

  /* ============================================
     FOOTER
     ============================================ */
  footer {
    border-top: 1px solid var(--color-line);
    padding: 40px 0;
    font-size: 14px;
    color: var(--color-ink-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  @media (max-width: 640px) {
    section { padding: 56px 0; }
    .vision { padding: 36px 24px; margin: 0 16px; border-radius: 14px; }
  }

  /* ============================================
     ANIMATION SYSTEM
     Two motion patterns only, used consistently:
     1. Hero word-reveal — runs once, on page load
     2. Scroll-reveal (.reveal) — runs once, when a
        section/card enters the viewport
     JS applies the "is-visible" class; CSS just
     defines the before/after states + transition.
     ============================================ */

  /* 1. Hero word-reveal */
  .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.4em);
    filter: blur(4px);
    animation: word-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  @keyframes word-in {
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
  }
  #hero-lede, .hero .cta-row {
    opacity: 0;
    animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  #hero-lede { animation-delay: 0.55s; }
  .hero .cta-row { animation-delay: 0.75s; }
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* 2. Scroll-reveal — applied to section headers and cards */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* Staggered children inside a revealed group (pricing cards, demo cards, etc.) */
  .reveal-group.is-visible > * {
    transition-delay: calc(var(--stagger-index, 0) * 80ms);
  }

  /* Hover polish — small, consistent lift on interactive cards */
  .price-card, .demo-card, .solution-item, .service-chip {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .price-card:hover, .demo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(20, 22, 28, 0.08);
  }
  .price-card.featured:hover { transform: translateY(-4px) scale(1.01); }

  /* Respect users who've asked for reduced motion — content still
     appears, just without the movement/fade choreography. */
  @media (prefers-reduced-motion: reduce) {
    .word, #hero-lede, .hero .cta-row, .reveal {
      animation: none !important;
      transition: none !important;
      opacity: 1 !important;
      transform: none !important;
      filter: none !important;
    }
    .price-card:hover, .demo-card:hover { transform: none; }
  }
  /* Some in-app WebViews apply automatic dark styling even when
     color-scheme:light is set. This forces the light palette back
     on regardless of what dark-mode override the browser attempts. */
  @media (prefers-color-scheme: dark) {
    :root {
      --color-bg:        #FFFFFF;
      --color-ink:       #14161C;
      --color-ink-soft:  #52565F;
      --color-line:      #DCDDE3;
      --color-surface:   #F7F7F9;
      --color-signal:    #2A3FE8;
      --color-signal-dark: #1F30B8;
      --color-stamp:     #FF5A2E;
    }
    body { background: #FFFFFF !important; color: #14161C !important; }
    section, header, footer { background-color: #FFFFFF; }
    h1, h2, h3 { color: #14161C !important; }
    p { color: #52565F !important; }
  }
  /* Sticky floating CTA — appears after scrolling past the hero,
     mirrors the always-visible "Start for Free" pattern but points
     to WhatsApp instead of a self-serve signup. */
  .sticky-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 60;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .sticky-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .sticky-cta .btn {
    box-shadow: 0 8px 20px rgba(20, 22, 28, 0.18);
  }
  @media (max-width: 640px) {
    .sticky-cta { left: 16px; right: 16px; bottom: 16px; }
    .sticky-cta .btn { width: 100%; }
  }