/* =====================================================================
   Listo site — shared styles (v2 design system)
   Linear × Anthropic: white, blue-dominant, terracotta accent, hairlines.
   ===================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: var(--tnum);   /* tabular numerals everywhere */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--blue-pale); color: var(--ink); }

/* ------------ Layout primitives ------------ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: clamp(80px, 10vw, 128px) 0;
  position: relative;
}
.section-tight { padding: clamp(64px, 7vw, 96px) 0; }

.hairline { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* Two-column "headline + body" split */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.split--wide { grid-template-columns: 1fr 1.15fr; }
.split-body { padding-top: 0; }

/* ------------ Eyebrow: [blue dot] LABEL ------------ */
.eyebrow {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow.no-rule::before { display: none; }

.mono { font-family: var(--mono); }
.serif { font-family: var(--sans); }   /* legacy alias */

/* ------------ Headlines ------------ */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: var(--ls-headline);
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

/* Neutralise legacy emphasis (was italic blue). In the v2 system, only an
   explicit `.hl` span carries emphasis — as a terracotta word with a drawn
   underline. We only drop the italic/weight here; colour is left to inherit
   naturally so the `.hl` rule below always wins on accent words. */
h1 em, h2 em, h3 em, h4 em,
.display em, .h1 em, .h2 em, .h3 em,
.lead em, .body em, .pillar-tag em {
  font-style: normal;
  font-weight: inherit;
}

/* The accent moment: terracotta word with an underline that draws on reveal. */
.hl {
  color: var(--terracotta);
  font-style: normal;
  background-image: linear-gradient(to top, rgba(227, 83, 54, 0.42) 0.10em, transparent 0.10em);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left bottom;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.reveal.in .hl,
.in .hl,
.hl.in {
  background-size: 100% 100%;
  transition: background-size 900ms var(--ease-out) 560ms;
}

.display {
  font-family: var(--display);
  font-size: var(--fs-hero);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-weight: 600;
  text-wrap: balance;
}
.h1 {
  font-family: var(--display);
  font-size: var(--fs-h1);
  line-height: var(--lh-headline);
  letter-spacing: var(--ls-headline);
  font-weight: 600;
  text-wrap: balance;
}
.h2 {
  font-family: var(--display);
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: var(--ls-headline);
  font-weight: 600;
  text-wrap: balance;
}
.h3 {
  font-family: var(--display);
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: -0.018em;
  font-weight: 600;
}

.lead {
  font-family: var(--sans);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--ink-soft);
  font-weight: 400;
  text-wrap: pretty;
}

.body { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-soft); }
.body p { margin: 0 0 18px; }

.caption {
  font-family: var(--mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Closing "statement" line (pull-quote-ish, ends some sections) */
.statement {
  font-family: var(--sans);
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--ink);
  max-width: 880px;
  text-wrap: balance;
}

/* ------------ Buttons ------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--r-lg);
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: var(--shadow-blue); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 14px 20px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
}
.btn-ghost:hover { color: var(--terracotta); border-color: var(--terracotta); }

/* ------------ Inline / text links ------------ */
.link, .body a, .lead a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.link:hover, .body a:hover, .lead a:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

/* ------------ Nav (white, 64px, hairline) ------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 13px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-brand img { height: 26px; }                 /* wordmark */
.nav-brand img.nav-brand-mark { height: 34px; width: auto; }   /* mark — override img rule */
.nav-brand-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  transition: color var(--dur-base) var(--ease-standard);
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--blue); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -21px;
  height: 2px;
  background: var(--blue);
}
.nav-cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
  padding: 11px 18px;
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: background var(--dur-base) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.nav-cta:hover { background: var(--blue-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  margin: -10px -8px -10px 0;
  padding: 0;
  background: transparent; border: 0;
  color: var(--ink); cursor: pointer;
  border-radius: var(--r-sm);
  font-family: var(--sans);
}
.nav-toggle:hover { color: var(--blue); }

/* ------------ Language toggle ------------ */
.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-lang-opt {
  color: var(--ink-mute);
  text-decoration: none;
  padding: 4px 2px;
  transition: color var(--dur-base) var(--ease-standard);
}
.nav-lang-opt.active { color: var(--ink); font-weight: 600; }
.nav-lang-opt:hover { color: var(--blue); }
.nav-lang-sep { color: var(--ink-faint); }

/* ------------ Footer (dark, every page) ------------ */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 72px 0 48px;
  background: #101B2B;
}
.footer .footer-brand p { color: rgba(255, 255, 255, 0.7); }
.footer .footer-brand p em { color: #fff; }
.footer .footer-col h4 { color: rgba(255, 255, 255, 0.5); }
.footer .footer-col a { color: rgba(255, 255, 255, 0.78); }
.footer .footer-col a:hover { color: var(--blue-light); }
.footer .footer-bottom { color: rgba(255, 255, 255, 0.5); border-top-color: rgba(255, 255, 255, 0.12); }
.footer-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.footer-brand-lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-brand-lockup img { height: 24px; }
.footer-brand-mark { height: 28px; width: auto; }
.footer-brand-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.footer-brand p {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 300px;
  line-height: 1.5;
  margin: 0;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-mute);
  margin: 0 0 18px;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 5px 0;
  transition: color var(--dur-base) var(--ease-standard);
}
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  max-width: var(--container-wide);
  margin: 64px auto 0;
  padding: 24px 40px 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ------------ Reveal / stagger (whispered motion) ------------ */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 60ms; }
.reveal.delay-2 { transition-delay: 200ms; }
.reveal.delay-3 { transition-delay: 380ms; }
.reveal.delay-4 { transition-delay: 520ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { transition: none; opacity: 1; transform: none; }
  .hl, .reveal.in .hl { transition: none; background-size: 100% 100%; }
}

/* Decorative brand swooshes from v1 — removed in the v2 system (no glow / blob art) */
.swoosh { display: none !important; }

/* ------------ Mid-CTA banner ------------ */
.cta-banner {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 80px 0;
  text-align: center;
}

/* ------------ Final CTA (dark "arrival point" band) ------------ */
.final-cta {
  background: var(--navy);
  border: 0;
  padding: clamp(96px, 12vw, 150px) 0;
  position: relative;
  overflow: hidden;
}
.final-cta .eyebrow { color: var(--blue-light); }
.final-cta h2, .final-cta .display { color: #fff; }
.final-cta .lead { color: rgba(255, 255, 255, 0.72); }
/* "AI" / accent word stays terracotta even on the dark band */
.final-cta .hl { color: var(--terracotta); }
.final-cta .hl { background-image: linear-gradient(to top, rgba(227, 83, 54, 0.5) 0.10em, transparent 0.10em); }
/* Reversed primary button: light on dark */
.final-cta .btn-primary { background: #fff; color: var(--navy); }
.final-cta .btn-primary:hover { background: var(--blue-pale); color: var(--navy); box-shadow: 0 14px 30px -18px rgba(0,0,0,0.5); }

/* ------------ Benchmark page (embedded AI-visibility widget) ------------ */
.benchmark-wrap { padding: 0 0 56px; }
.benchmark-frame { width: 100%; border: 0; display: block; min-height: 640px; background: var(--bg); }

/* ------------ Page header (sub-pages) ------------ */
.page-header {
  padding: clamp(88px, 11vw, 128px) 0 clamp(56px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}

/* ------------ Responsive ------------ */
@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .container, .container-wide { padding: 0 24px; }

  .split, .split--wide { grid-template-columns: 1fr; gap: 32px; }
  .split-body { padding-top: 0; }

  .nav-inner { padding: 12px 24px; gap: 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    /* Full-height overlay below the nav bar so page content can't bleed through.
       Uses absolute (not fixed) because .nav's backdrop-filter is a containing
       block for fixed descendants; height fills the viewport minus the bar. */
    position: absolute;
    top: 100%; left: 0; right: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px 24px 32px;
    background: var(--bg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur-base) var(--ease-standard),
                transform var(--dur-base) var(--ease-standard),
                visibility 0s linear var(--dur-base);
  }
  .nav-open .nav-links {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition: opacity var(--dur-base) var(--ease-standard),
                transform var(--dur-base) var(--ease-standard);
  }
  .nav-link { width: 100%; padding: 12px 0; font-size: 17px; }
  .nav-link.active::after { display: none; }
  .nav-lang {
    width: 100%;
    padding: 14px 0 6px;
    border-top: 1px solid var(--hairline);
    margin-top: 8px;
    font-size: 13px;
  }
  .nav-lang-opt { padding: 6px 4px; }
  .nav-cta {
    display: flex; width: 100%;
    align-items: center; justify-content: center;
    padding: 14px 18px; margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .container, .container-wide { padding: 0 20px; }
  .nav-inner { padding: 12px 20px; }
  .nav-links { padding: 20px 20px 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
