/* ============================================================================
   veauto — marketing site
   Editorial / magazine. Warm paper, ink, Fraunces + Hanken Grotesk.
   Brand-agnostic monochrome; WhatsApp green is the only accent.
   Mirrors src/app/globals.css tokens, dialed up for marketing.
   ========================================================================== */

@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
  img, picture, svg { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
  ul { list-style: none; }
  :focus-visible { outline: 2px solid hsl(var(--ink)); outline-offset: 3px; border-radius: 4px; }
}

@layer base {
  :root {
    /* ---- tokens (HSL channels, mirrored from the app) ---- */
    --paper: 40 18% 95%;        /* #F4F2EC warm paper            */
    --paper-2: 38 16% 92%;      /* slightly deeper paper for bands */
    --ink: 24 8% 11%;           /* warm near-black                */
    --ink-soft: 24 7% 20%;
    --card: 0 0% 100%;
    --muted: 28 5% 42%;
    --muted-2: 28 6% 56%;
    --border: 34 11% 85%;       /* warm hairline                  */
    --border-strong: 30 9% 74%;
    --wa: 145 58% 36%;          /* WhatsApp green — only accent   */
    --wa-soft: 145 45% 94%;
    --good: 145 50% 32%;
    --bad: 4 64% 44%;
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1.25rem;

    --shadow-soft: 0 1px 2px hsl(24 8% 11% / 0.04), 0 10px 30px -18px hsl(24 8% 11% / 0.16);
    --shadow-lift: 0 2px 8px hsl(24 8% 11% / 0.06), 0 24px 50px -28px hsl(24 8% 11% / 0.22);
    --shadow-float: 0 6px 16px hsl(24 8% 11% / 0.08), 0 40px 80px -36px hsl(24 8% 11% / 0.34);

    --font-display: 'Fraunces', 'Times New Roman', serif;
    --font-body: 'Hanken Grotesk', system-ui, sans-serif;

    --container: 72rem;
    --gutter: clamp(1.25rem, 5vw, 3rem);
  }

  html { font-size: 100%; }

  body {
    background: hsl(var(--paper));
    color: hsl(var(--ink));
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-feature-settings: 'ss01';
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  h1, h2, h3, h4 { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 600; line-height: 1.04; letter-spacing: -0.018em; }
  h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
  h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
  h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
  em { font-style: italic; }
  strong { font-weight: 700; }

  /* fixed paper grain — barely there atmosphere */
  body::before {
    content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
    opacity: 0.55; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  }
}

@layer components {
  /* ---- layout ---- */
  .container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
  .container-wide { max-width: 84rem; }
  .section { position: relative; padding-block: clamp(4rem, 9vw, 8rem); }
  .band { background: hsl(var(--paper-2)); border-block: 1px solid hsl(var(--border)); }
  .band-ink { background: hsl(var(--ink)); color: hsl(var(--paper)); }
  .band-ink h1, .band-ink h2, .band-ink h3 { color: hsl(var(--paper)); }

  /* ---- type helpers ---- */
  .label {
    text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.6875rem;
    font-weight: 700; line-height: 1; font-family: var(--font-body);
    color: hsl(var(--muted));
  }
  .nums { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
  .lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: hsl(var(--muted)); line-height: 1.5; }
  .ital { font-style: italic; font-weight: 400; }
  .muted { color: hsl(var(--muted)); }
  .eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; }
  .eyebrow::before { content: ''; width: 1.75rem; height: 1px; background: hsl(var(--border-strong)); }

  /* serif wordmark used in nav + footer (matches components/brand/logo.tsx) */
  .wordmark { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1; display: inline-flex; align-items: baseline; }
  .wordmark b { font-weight: 800; }
  .wordmark i { font-weight: 400; font-style: italic; color: hsl(var(--muted)); }
  .wordmark .dot { width: 0.42rem; height: 0.42rem; background: hsl(var(--ink)); border-radius: 2px; transform: rotate(45deg); margin-right: 0.5rem; align-self: center; }

  /* ---- surfaces ---- */
  .glass {
    background: hsl(0 0% 100% / 0.7);
    backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid hsl(0 0% 100% / 0.6);
  }
  .glass-dark {
    background: hsl(24 10% 8% / 0.5);
    backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid hsl(0 0% 100% / 0.14); color: hsl(var(--paper));
  }
  .card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }

  /* ---- buttons ---- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    font-family: var(--font-body); font-weight: 600; font-size: 0.975rem;
    padding: 0.85rem 1.4rem; border-radius: 999px; line-height: 1;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
  }
  .btn svg { width: 1.05em; height: 1.05em; }
  .btn-ink { background: hsl(var(--ink)); color: hsl(var(--paper)); box-shadow: var(--shadow-soft); }
  .btn-ink:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
  .btn-ghost { color: hsl(var(--ink)); border: 1px solid transparent; }
  .btn-ghost:hover { background: hsl(var(--ink) / 0.06); }
  .btn-outline { border: 1px solid hsl(var(--border-strong)); color: hsl(var(--ink)); background: hsl(var(--card)); }
  .btn-outline:hover { border-color: hsl(var(--ink)); transform: translateY(-2px); }
  .btn-wa { background: hsl(var(--wa)); color: #fff; }
  .btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px hsl(var(--wa) / 0.6); }
  .btn-lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
  .btn-paper { background: hsl(var(--paper)); color: hsl(var(--ink)); }
  .btn-paper:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

  /* ---- nav ---- */
  .nav {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid hsl(var(--border));
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; gap: 1rem; }
  .nav-links { display: flex; align-items: center; gap: 0.35rem; }
  .nav-links a { padding: 0.5rem 0.85rem; border-radius: 999px; font-size: 0.95rem; font-weight: 500; color: hsl(var(--ink-soft)); transition: background 0.15s; }
  .nav-links a:hover { background: hsl(var(--ink) / 0.06); }
  .nav-links a[aria-current="page"] { color: hsl(var(--ink)); font-weight: 600; }
  .nav-cta { display: flex; align-items: center; gap: 0.5rem; }
  .nav-toggle { display: none; width: 2.5rem; height: 2.5rem; border-radius: 999px; align-items: center; justify-content: center; }
  .nav-toggle svg { width: 1.4rem; height: 1.4rem; }

  /* ---- floating product chips (hero annotations) ---- */
  .chip {
    position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 0.85rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
    box-shadow: var(--shadow-float); white-space: nowrap;
  }
  .chip .dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: hsl(var(--wa)); flex: none; }
  .chip svg { width: 0.95rem; height: 0.95rem; }

  /* ---- product mockup primitives (look like the real app) ---- */
  .mock { border-radius: var(--radius-lg); background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-lift); overflow: hidden; }
  .mock-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid hsl(var(--border)); }
  .mock-bar .tl { width: 0.6rem; height: 0.6rem; border-radius: 999px; background: hsl(var(--border-strong)); }
  .mock-url { margin-left: 0.5rem; font-size: 0.78rem; color: hsl(var(--muted)); font-variant-numeric: tabular-nums; }

  .store-head { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.1rem; border-bottom: 1px solid hsl(var(--border)); }
  .store-logo { width: 3rem; height: 3rem; border-radius: 999px; background: hsl(var(--ink)); color: hsl(var(--paper)); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; flex: none; }
  .store-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; gap: 0.4rem; }
  .store-meta { font-size: 0.82rem; color: hsl(var(--muted)); }

  .badge-verified { display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 999px; background: hsl(var(--ink)); color: hsl(var(--paper)); flex: none; }
  .badge-verified svg { width: 0.7rem; height: 0.7rem; }

  /* car card */
  .car { border-radius: var(--radius); overflow: hidden; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); }
  .car-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: hsl(var(--paper-2)); }
  .car-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
  .car:hover .car-photo img { transform: scale(1.04); }
  .car-tags { position: absolute; top: 0.6rem; left: 0.6rem; display: flex; gap: 0.35rem; }
  .car-tag { font-size: 0.68rem; font-weight: 700; padding: 0.3rem 0.55rem; border-radius: 999px; letter-spacing: 0.02em; }
  .car-body { padding: 0.8rem 0.9rem 0.95rem; }
  .car-title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
  .car-spec { font-size: 0.8rem; color: hsl(var(--muted)); margin-top: 0.15rem; }
  .car-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid hsl(var(--border)); }
  .price { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
  .price-locked { filter: blur(7px); user-select: none; }
  .price-cta { font-size: 0.82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.3rem; }

  /* CRM lead row */
  .crm { padding: 0.4rem; }
  .crm-row { display: flex; gap: 0.8rem; padding: 0.85rem; border-radius: var(--radius); align-items: flex-start; }
  .crm-row + .crm-row { border-top: 1px solid hsl(var(--border)); border-radius: 0; }
  .lead-avatar { width: 2.6rem; height: 2.6rem; border-radius: 999px; background: hsl(var(--paper-2)); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; flex: none; color: hsl(var(--ink-soft)); }
  .lead-name { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 0.4rem; }
  .lead-contact { font-size: 0.82rem; color: hsl(var(--muted)); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 0.35rem; }
  .lead-context { margin-top: 0.5rem; display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.5rem; background: hsl(var(--paper)); border-radius: var(--radius-sm); border: 1px solid hsl(var(--border)); }
  .lead-thumb { width: 2.1rem; height: 2.1rem; border-radius: 0.4rem; object-fit: cover; flex: none; }
  .lead-context .ctx { font-size: 0.76rem; line-height: 1.3; }
  .lead-context .ctx b { font-weight: 700; }
  .offer { font-variant-numeric: tabular-nums; font-weight: 700; color: hsl(var(--good)); }

  .pill { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.5rem; border-radius: 999px; }
  .pill-good { background: hsl(var(--wa-soft)); color: hsl(var(--good)); }
  .pill-bad { background: hsl(var(--bad) / 0.1); color: hsl(var(--bad)); }
  .pill-ink { background: hsl(var(--ink) / 0.07); color: hsl(var(--ink-soft)); }
  .pill svg { width: 0.85em; height: 0.85em; }

  .dot-status { width: 0.5rem; height: 0.5rem; border-radius: 999px; display: inline-block; }
  .dot-active { background: hsl(var(--wa)); }
  .dot-paused { background: hsl(var(--muted-2)); }

  /* stat card (dashboard ganancia) */
  .stat { padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid hsl(var(--border)); background: hsl(var(--card)); }
  .stat-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.3rem); font-variant-numeric: tabular-nums; line-height: 1; margin-top: 0.4rem; }
  .stat-help { font-size: 0.78rem; color: hsl(var(--muted)); margin-top: 0.45rem; }

  /* ---- feature/value cards ---- */
  .grid { display: grid; gap: 1.1rem; }
  .feature-card { padding: 1.6rem; border-radius: var(--radius-lg); background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-soft); transition: transform 0.2s ease, box-shadow 0.2s ease; height: 100%; }
  a.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  .feature-icon { width: 2.9rem; height: 2.9rem; border-radius: 0.85rem; background: hsl(var(--ink)); color: hsl(var(--paper)); display: grid; place-items: center; }
  .feature-icon svg { width: 1.35rem; height: 1.35rem; }
  .feature-card h3 { margin-top: 1rem; }
  .feature-card p { margin-top: 0.5rem; color: hsl(var(--muted)); font-size: 0.97rem; }
  .feature-more { margin-top: 0.9rem; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.35rem; }
  .feature-more svg { width: 1em; height: 1em; transition: transform 0.18s; }
  a.feature-card:hover .feature-more svg { transform: translateX(3px); }

  /* ---- nightmare list ---- */
  .pain { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.05rem 0; border-bottom: 1px solid hsl(var(--border)); }
  .pain:last-child { border-bottom: 0; }
  .pain-x { width: 1.7rem; height: 1.7rem; border-radius: 999px; border: 1px solid hsl(var(--border-strong)); display: grid; place-items: center; flex: none; margin-top: 0.1rem; color: hsl(var(--muted)); }
  .pain-x svg { width: 0.85rem; height: 0.85rem; }
  .pain b { font-weight: 600; }
  .pain p { color: hsl(var(--muted)); font-size: 0.95rem; margin-top: 0.1rem; }

  /* steps */
  .step-n { font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; color: hsl(var(--border-strong)); line-height: 1; }

  /* ---- gate dialog mockup ---- */
  .gate { border-radius: var(--radius-lg); border: 1px solid hsl(var(--border)); background: hsl(var(--card)); box-shadow: var(--shadow-float); padding: 1.3rem; max-width: 22rem; }
  .gate-field { border: 1px solid hsl(var(--border)); border-radius: var(--radius-sm); padding: 0.7rem 0.8rem; font-size: 0.9rem; color: hsl(var(--ink)); display: flex; align-items: center; gap: 0.5rem; }
  .gate-field .ph { color: hsl(var(--muted-2)); }
  .seg { display: inline-flex; background: hsl(var(--paper-2)); border-radius: 999px; padding: 0.25rem; gap: 0.2rem; }
  .seg span { font-size: 0.8rem; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: 999px; }
  .seg .on { background: hsl(var(--card)); box-shadow: var(--shadow-soft); }

  /* ---- pricing ---- */
  .price-card { padding: 1.8rem; border-radius: var(--radius-lg); border: 1px solid hsl(var(--border)); background: hsl(var(--card)); box-shadow: var(--shadow-soft); height: 100%; display: flex; flex-direction: column; }
  .price-card.pro { background: hsl(var(--ink)); color: hsl(var(--paper)); border-color: hsl(var(--ink)); }
  .price-card.pro .muted, .price-card.pro .label { color: hsl(var(--paper) / 0.6); }
  .price-amount { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; line-height: 1; }
  .price-list { margin-top: 1.2rem; display: grid; gap: 0.7rem; }
  .price-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
  .price-list svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: 0.15rem; color: hsl(var(--wa)); }
  .price-card.pro .price-list svg { color: hsl(var(--paper)); }

  /* ---- comparison table (pricing) ---- */
  .cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cmp { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 30rem; }
  .cmp thead th { font-family: var(--font-body); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: hsl(var(--muted)); padding: 0 0.9rem 0.9rem; text-align: center; }
  .cmp thead th:first-child { text-align: left; }
  .cmp tbody th { font-weight: 500; text-align: left; padding: 0.85rem 0.9rem; border-top: 1px solid hsl(var(--border)); }
  .cmp tbody td { text-align: center; padding: 0.85rem 0.9rem; border-top: 1px solid hsl(var(--border)); font-variant-numeric: tabular-nums; color: hsl(var(--ink-soft)); }
  .cmp .cmp-pro { background: hsl(var(--ink) / 0.035); }
  .cmp thead .cmp-pro { color: hsl(var(--ink)); border-radius: 0.6rem 0.6rem 0 0; }
  .cmp td[data-yes]::before { content: ''; display: inline-block; vertical-align: middle; width: 1.2rem; height: 1.2rem; border-radius: 999px; background-color: hsl(var(--wa)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.78rem no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.78rem no-repeat; }
  .cmp td[data-no]::before { content: '–'; color: hsl(var(--muted-2)); font-weight: 600; font-size: 1.1rem; }

  /* ---- faq ---- */
  .faq-item { border-bottom: 1px solid hsl(var(--border)); }
  .faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.35rem); }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary .plus { width: 1.6rem; height: 1.6rem; flex: none; position: relative; }
  .faq-item summary .plus::before, .faq-item summary .plus::after { content: ''; position: absolute; background: hsl(var(--ink)); transition: transform 0.2s; }
  .faq-item summary .plus::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
  .faq-item summary .plus::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
  .faq-item[open] summary .plus::after { transform: translateX(-50%) scaleY(0); }
  .faq-item .faq-body { padding-bottom: 1.4rem; color: hsl(var(--muted)); max-width: 48rem; }

  /* ---- footer ---- */
  .footer { border-top: 1px solid hsl(var(--border)); padding-block: 3.5rem; }
  .footer-grid { display: flex; flex-wrap: wrap; gap: 2.5rem 4rem; justify-content: space-between; }
  .footer-col h4 { font-family: var(--font-body); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; color: hsl(var(--muted)); margin-bottom: 0.9rem; }
  .footer-col a { display: block; padding: 0.3rem 0; color: hsl(var(--ink-soft)); font-size: 0.95rem; }
  .footer-col a:hover { color: hsl(var(--ink)); }

  /* photo treatment — keep cars in colour, gentle warm cohesion */
  .ph-warm { filter: saturate(0.96) contrast(1.02); }
  .ph-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-lift); }
}

@layer utilities {
  .flow > * + * { margin-top: var(--flow, 1.1rem); }
  .center { text-align: center; }
  .mx-auto { margin-inline: auto; }
  .maxw-sm { max-width: 32rem; } .maxw-md { max-width: 42rem; } .maxw-lg { max-width: 52rem; } .maxw-xl { max-width: 60rem; }
  .row { display: flex; gap: 0.75rem; align-items: center; }
  .row-wrap { flex-wrap: wrap; }
  .between { justify-content: space-between; }
  .gap-sm { gap: 0.5rem; } .gap-lg { gap: 1.5rem; }
  .mt-sm { margin-top: 0.75rem; } .mt-md { margin-top: 1.5rem; } .mt-lg { margin-top: 2.5rem; }
  .hide-mobile { } .only-mobile { display: none; }
  .hr { height: 1px; background: hsl(var(--border)); border: 0; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  /* scroll reveal */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: 0.08s; }
  .reveal[data-delay="2"] { transition-delay: 0.16s; }
  .reveal[data-delay="3"] { transition-delay: 0.24s; }
  .reveal[data-delay="4"] { transition-delay: 0.32s; }
}

/* load-in stagger for hero */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.animate-in > * { opacity: 0; animation: rise 0.8s cubic-bezier(0.22,1,0.36,1) forwards; }
.animate-in > *:nth-child(1) { animation-delay: 0.05s; }
.animate-in > *:nth-child(2) { animation-delay: 0.15s; }
.animate-in > *:nth-child(3) { animation-delay: 0.25s; }
.animate-in > *:nth-child(4) { animation-delay: 0.35s; }
.animate-in > *:nth-child(5) { animation-delay: 0.45s; }

/* ============================== HERO COMPOSITION ======================= */
.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 0.4rem; }
.hero-sub { margin-top: 1.4rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.hero-trust { margin-top: 1.1rem; font-size: 0.88rem; color: hsl(var(--muted)); display: flex; align-items: center; gap: 0.5rem; }

/* overlapping stack on the right */
.stack { position: relative; min-height: 30rem; }
.stack-store { position: relative; z-index: 2; width: min(100%, 23rem); margin-left: auto; transform: rotate(1.2deg); }
.stack-crm { position: absolute; z-index: 4; left: -1rem; bottom: -1.5rem; width: min(82%, 19rem); transform: rotate(-2.2deg); }
.stack .chip-1 { top: 1.5rem; left: -1.5rem; }
.stack .chip-2 { top: 11rem; right: -1.2rem; }
.stack .chip-3 { bottom: 4.5rem; right: -0.5rem; }
.stack .float { animation: floaty 6s ease-in-out infinite; }
.stack .float.d1 { animation-delay: -2s; }
.stack .float.d2 { animation-delay: -4s; }

/* connector lines for chips (subtle) */
.tick { position: absolute; z-index: 3; border-top: 1.5px dashed hsl(var(--border-strong)); }

/* ============================== FEATURE HERO ========================== */
.fhero { position: relative; padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.fhero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

/* ============================== RESPONSIVE ============================ */
@media (max-width: 900px) {
  .hero-grid, .fhero-grid { grid-template-columns: 1fr; }
  .stack { min-height: 26rem; margin-top: 1rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 4.25rem; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.75rem var(--gutter) 1.25rem; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--paper)); }
  .nav.open .nav-links a { padding: 0.85rem 0.5rem; border-radius: var(--radius-sm); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .only-mobile { display: revert; }
  .hide-sm { display: none; }
  .stack-store { width: 100%; transform: rotate(0.6deg); }
  .stack-crm { position: relative; left: 0; bottom: 0; margin-top: 1.5rem; width: 100%; transform: rotate(-1deg); }
  .stack .chip-1, .stack .chip-2, .stack .chip-3 { position: static; display: inline-flex; margin: 0.3rem 0.3rem 0 0; }
  .stack { display: flex; flex-direction: column; }
  .footer-grid { gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .animate-in > * { opacity: 1; animation: none; }
}
