/* ============================================================
   PLAT marketing — design system v2
   Harvey.ai-inspired layout rhythm · OpenAI-style typography (Geist)
   Loaded ONLY by redesigned pages (index.html, agency.html …).
   Legacy pages keep styles.css until they migrate (Phase 2).
   CANONICAL NAV + FOOTER live in index.html — copy from there
   when migrating a page (there is no partials/build system).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper: #FAFAF9;
  --ink: #0F0E0D;
  --ink-soft: #333129;
  --ink-faint: #6E6B64;
  --surface-alt: #F2F1F0;
  --line: #E7E5E1;
  --dark-text: #FFFFFF;
  --dark-text-dim: rgba(255, 255, 255, 0.72);
  --dark-text-faint: rgba(255, 255, 255, 0.5);
  --dark-line: rgba(255, 255, 255, 0.14);
  --dark-surface: #191817;

  --font-sans: 'Geist', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1240px;
  --radius-frame: 20px;
  --radius-card: 14px;
  --radius-pill: 999px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
/* height:auto keeps the intrinsic ratio when max-width shrinks an image
   that carries width/height attributes (class rules still override) */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

h1, .display {
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
}
h2, .headline {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-soft); }
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.mono { font-family: var(--font-mono); }

section { padding: 112px 0; }
@media (max-width: 900px) { section { padding: 64px 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { opacity: 0.85; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-faint); }
.btn-on-dark { background: #fff; color: var(--ink); }
.btn-on-dark:hover { opacity: 0.88; }
.btn-ghost-dark { border-color: var(--dark-line); color: #fff; background: transparent; }
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, 0.4); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  padding: 9px 16px;
}
.announce a { font-weight: 500; color: var(--ink); }
.announce a:hover { text-decoration: underline; }
.announce .mono { font-size: 12.5px; }

/* ---------- Nav ---------- */
.nav-v2 {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav-v2.scrolled { border-bottom-color: var(--line); }
.nav-v2-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo-img { height: 22px; width: auto; }

/* Software | Agency segmented control */
.seg {
  display: inline-flex;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}
.seg a {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  transition: color 0.15s, background 0.15s;
}
.seg a:hover { color: var(--ink); }
.seg a.active { background: var(--ink); color: #fff; }

.nav-v2-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
/* Holds the cloned Software|Agency toggle — mobile sheet only */
.seg-mobile-slot { display: none; }
.nav-v2-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 450;
  color: var(--ink-soft);
  border-radius: 8px;
}
.nav-v2-links > li > a:hover { color: var(--ink); background: var(--surface-alt); }
.nav-chevron { font-size: 9px; color: var(--ink-faint); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 14, 13, 0.08);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: 8px;
}
.nav-dropdown-menu a:hover { background: var(--surface-alt); color: var(--ink); }

.nav-v2-actions { display: flex; align-items: center; gap: 10px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero-v2 { padding: 88px 0 56px; }
.hero-v2-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: end;
}
.hero-v2 h1 { margin-top: 16px; }
.hero-v2-right { display: flex; flex-direction: column; gap: 24px; padding-bottom: 8px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Klaviyo partner pill */
.klaviyo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  width: fit-content;
}
.klaviyo-badge-logo { height: 14px; width: auto; }
.klaviyo-badge-divider { width: 1px; height: 14px; background: var(--line); }
.klaviyo-badge-text {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

/* ---------- Demo video frame ---------- */
.demo-band { padding: 32px 0 96px; }
.demo-frame {
  position: relative;
  border-radius: var(--radius-frame);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(15, 14, 13, 0.1);
  background: var(--ink);
  aspect-ratio: 16 / 9;
}
.demo-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.demo-sound, .demo-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 14, 13, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s;
}
.demo-sound { bottom: 16px; right: 16px; }
.demo-sound[hidden] { display: none; }
.demo-sound:hover, .demo-play:hover { background: rgba(15, 14, 13, 0.9); }
.demo-play {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15px;
  padding: 12px 24px;
}

/* ---------- Stat-led logo wall ---------- */
.wall { text-align: center; padding: 96px 0 80px; }
.wall h2 { max-width: 720px; margin: 0 auto; }
.wall h2 .mono { font-weight: 500; }
.wall-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 48px;
}
/* brightness(0) forces every logo to an ink silhouette — some source PNGs
   (AU Vodka) are white-on-transparent and would vanish on the light ground */
.wall-logos img { height: 26px; width: auto; opacity: 0.55; filter: brightness(0); transition: opacity 0.15s; }
.wall-logos img:hover { opacity: 0.85; }
.wall-logos img.wl-lg { height: 34px; }

/* Brands-we-track marquee */
.brand-marquee {
  margin-top: 44px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.brand-marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  padding-right: 40px;
}
.brand-marquee .bm-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}
.brand-marquee .bm-name { font-size: 14.5px; color: var(--ink-faint); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .brand-marquee-inner { animation: none; flex-wrap: wrap; white-space: normal; }
}

/* ---------- Section headers ---------- */
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head p { margin-top: 16px; }
.sec-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Platform grid ---------- */
.alt-section { background: var(--surface-alt); }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.p-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s, transform 0.15s;
}
.p-card:hover { border-color: var(--ink-faint); transform: translateY(-2px); }
.p-num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); }
.p-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.p-card p { font-size: 15px; color: var(--ink-soft); }
.p-link { font-size: 14px; font-weight: 500; margin-top: auto; padding-top: 8px; }
.p-card:hover .p-link { text-decoration: underline; }

/* ---------- MCP banner ---------- */
.mcp-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.mcp-copy .eyebrow { margin-bottom: 14px; }
.mcp-copy p { margin-top: 16px; }
.mcp-points { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.mcp-points li {
  font-size: 15px;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.mcp-points li::before { content: '—'; position: absolute; left: 0; color: var(--ink-faint); }
.mcp-mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-frame);
  box-shadow: 0 16px 48px rgba(15, 14, 13, 0.07);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mcp-msg {
  font-size: 14px;
  line-height: 1.55;
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 88%;
}
.mcp-msg.user { background: var(--ink); color: #fff; align-self: flex-end; }
.mcp-msg.ai { background: var(--surface-alt); color: var(--ink-soft); align-self: flex-start; }
.mcp-msg.ai .mono { font-size: 12.5px; color: var(--ink); }
.mcp-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); }
.step h3 { font-size: 19px; font-weight: 600; margin: 10px 0 8px; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Oversized testimonial ---------- */
.quote-band blockquote {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
  font-weight: 450;
  letter-spacing: -0.01em;
  max-width: 900px;
}
.quote-attr { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
}
.quote-name { font-size: 15px; font-weight: 600; }
.quote-role { font-size: 13.5px; color: var(--ink-faint); }

/* ---------- Dark band ---------- */
.dark-band { background: var(--ink); color: var(--dark-text); }
.dark-band .eyebrow { color: var(--dark-text-faint); }
.dark-band .sec-head p { color: var(--dark-text-dim); }

.work-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.work-card-v2 { display: flex; flex-direction: column; gap: 14px; }
.work-media-v2 {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--dark-line);
  aspect-ratio: 4 / 3;
}
.work-media-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.work-card-v2:hover .work-media-v2 img { transform: scale(1.025); }
.work-name-v2 { font-size: 17px; font-weight: 600; display: flex; align-items: baseline; gap: 10px; }
.work-years-v2 { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--dark-text-faint); }
.work-note-v2 { font-size: 14.5px; color: var(--dark-text-dim); }

/* Light variant (agency page) */
.work-grid-v2.on-light .work-media-v2 { border-color: var(--line); }
.work-grid-v2.on-light .work-years-v2 { color: var(--ink-faint); }
.work-grid-v2.on-light .work-note-v2 { color: var(--ink-soft); }

/* Metrics row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--dark-line);
  margin-top: 80px;
  padding-top: 56px;
}
.metric-val {
  font-family: var(--font-mono);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.metric-label { font-size: 14px; color: var(--dark-text-dim); margin-top: 10px; }

/* ---------- Pricing teaser ---------- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}
.toggle-label { font-size: 14px; font-weight: 500; color: var(--ink-faint); cursor: default; }
.toggle-label.active { color: var(--ink); }
.toggle-track {
  width: 44px;
  height: 24px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  position: relative;
  cursor: pointer;
}
.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--ink);
  border-radius: 50%;
  transition: left 0.18s ease;
}
.toggle-track.active .toggle-knob { left: 22px; }
.toggle-save {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

.price-card {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-frame);
  box-shadow: 0 16px 48px rgba(15, 14, 13, 0.06);
  padding: 40px;
  text-align: left;
}
.price-card .pricing-type {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  font-weight: 500;
}
.price-card .pricing-name { font-size: 22px; font-weight: 600; margin: 8px 0 16px; }
.pricing-amount { font-family: var(--font-mono); font-size: 44px; font-weight: 500; letter-spacing: -0.02em; }
.pricing-period { font-size: 14px; color: var(--ink-faint); }
.price-card .pricing-desc { font-size: 14.5px; color: var(--ink-soft); margin: 14px 0 22px; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-feature {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding-left: 24px;
  position: relative;
}
.pricing-feature::before { content: '✓'; position: absolute; left: 0; color: var(--ink); font-weight: 600; }
.price-note { text-align: center; margin-top: 28px; font-size: 14.5px; color: var(--ink-faint); }
.price-note a { color: var(--ink); font-weight: 500; }
.price-note a:hover { text-decoration: underline; }

/* ---------- Retainer block (agency page) ---------- */
.retainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-frame);
  padding: 48px;
}
.retainer-tag {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.retainer h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.retainer p { font-size: 14.5px; color: var(--ink-soft); margin-top: 14px; max-width: 380px; }

/* ---------- Tools strip (agency page) ---------- */
.tools-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
}
.tool-chip img { height: 14px; width: 14px; }

/* ---------- Hero stat row (agency page) ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 56px;
  width: fit-content;
  margin-top: 48px;
}
.stat-row .metric-val { color: var(--ink); font-size: clamp(26px, 2.6vw, 36px); }
.stat-row .metric-label { color: var(--ink-faint); margin-top: 6px; font-size: 13.5px; }

/* ---------- Testimonial cards (agency page) ---------- */
.proof-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.proof-card-v2 {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
}
.proof-card-v2 .proof-quote { font-size: 16.5px; line-height: 1.55; color: var(--ink-soft); }
.proof-card-v2 .quote-attr { margin-top: 22px; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; padding: 140px 0; }
.final-cta h2 { max-width: 700px; margin: 0 auto 20px; }
.final-cta .lede { max-width: 560px; margin: 0 auto 36px; }
.final-cta .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.footer-v2 { border-top: 1px solid var(--line); padding: 72px 0 0; }
.footer-v2-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo-img { height: 20px; width: auto; }
.footer-desc { font-size: 14px; color: var(--ink-faint); margin-top: 16px; max-width: 260px; }
.footer-col-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-v2-bottom {
  max-width: var(--container);
  margin: 56px auto 0;
  padding: 20px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-faint);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--ink); }

/* ---------- Scroll reveals (v2 pages don't load styles.css) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
html.js .reveal-delay-1 { transition-delay: 0.08s; }
html.js .reveal-delay-2 { transition-delay: 0.16s; }
html.js .reveal-delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .nav-v2-inner { padding: 0 20px; height: 60px; gap: 12px; }
  /* the desktop right-push lives on .nav-v2-links, which is hidden here */
  .nav-v2-actions { margin-left: auto; }
  .nav-v2 .seg { display: none; }
  .nav-v2-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 2px;
    box-shadow: 0 24px 40px rgba(15, 14, 13, 0.08);
  }
  .nav-v2.nav-open .nav-v2-links { display: flex; }
  .seg-mobile-slot { display: block; }
  .nav-v2-links .seg {
    display: inline-flex;
    margin: 6px 0 12px;
    width: fit-content;
  }
  .nav-v2-links > li > a { padding: 11px 8px; font-size: 16px; }
  .nav-dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--surface-alt);
    margin: 4px 0 8px;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-v2-actions .btn-ghost { display: none; }
  .nav-hamburger { display: flex; }

  .hero-v2 { padding: 48px 0 32px; }
  .hero-v2-grid { grid-template-columns: 1fr; gap: 32px; }
  .demo-band { padding: 16px 0 56px; }
  .wall { padding: 56px 0; }
  .wall-logos { gap: 32px; }
  .platform-grid { grid-template-columns: 1fr; }
  .mcp-banner { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .work-grid-v2 { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); margin-top: 56px; padding-top: 40px; }
  .retainer { grid-template-columns: 1fr; padding: 24px; gap: 32px; }
  .retainer > div { min-width: 0; }
  .retainer .pricing-amount { font-size: 32px; }
  .proof-grid-v2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); width: 100%; gap: 28px; }
  .final-cta { padding: 88px 0; }
  .footer-v2-top { grid-template-columns: 1fr 1fr; }
  .footer-v2-bottom { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
  .announce { font-size: 12px; padding: 8px 12px; }
  .hero-ctas .btn { width: 100%; }
  /* long-label buttons wrap instead of overflowing tiny screens */
  .btn { max-width: 100%; white-space: normal; height: auto; min-height: 44px; padding-top: 10px; padding-bottom: 10px; text-align: center; }
  .metrics-row { grid-template-columns: 1fr; }
  .footer-v2-top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-v2-top > div:first-child { grid-column: 1 / -1; }
  .wall-logos img { height: 20px; }
  .wall-logos img.wl-lg { height: 26px; }
}

/* ============================================================
   INSIGHT TILES — OpenAI-research-style report tiles.
   One shared paper-crease artwork (img/tiles/tile-base.jpg),
   recolored per tile via --tile-hue (hue-rotate).
   ============================================================ */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tile { display: block; text-decoration: none; color: inherit; }
.tile-art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 14, 13, 0.06);
}
.tile-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: hue-rotate(var(--tile-hue, 0deg)) saturate(var(--tile-sat, 1));
  transition: transform 0.35s ease;
}
.tile:hover .tile-art-img { transform: scale(1.03); }
.tile-art-label {
  position: absolute;
  left: 7%;
  top: 30%;
  max-width: 78%;
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: blur(3px);
  padding: 16px 22px;
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #0F0E0D;
}
.tile-title {
  margin-top: 16px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: #0F0E0D;
}
.tile:hover .tile-title { text-decoration: underline; text-underline-offset: 3px; }
.tile-meta {
  margin-top: 8px;
  display: flex;
  gap: 14px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #6E6B64;
}
.tile-meta .tm-type { color: #0F0E0D; font-weight: 500; }
.tile.coming { cursor: default; }
.tile.coming .tile-art-img { opacity: 0.75; }
.tile.coming:hover .tile-art-img { transform: none; }
.tile.coming:hover .tile-title { text-decoration: none; }
/* On dark bands */
.dark-band .tile-title, .tile-grid.on-dark .tile-title { color: #fff; }
.dark-band .tile-meta, .tile-grid.on-dark .tile-meta { color: rgba(255,255,255,0.5); }
.dark-band .tile-meta .tm-type, .tile-grid.on-dark .tile-meta .tm-type { color: #fff; }
@media (max-width: 900px) {
  .tile-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================================
   REPORT LEAD-MAGNET PAGE — Klaviyo-style two-column gate
   ============================================================ */
.lead-crumb { font-size: 13.5px; color: var(--ink-faint); padding-top: 24px; }
.lead-crumb a { color: var(--ink-faint); }
.lead-crumb a:hover { color: var(--ink); }
.lead-crumb .sep { margin: 0 8px; }
.lead-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 72px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 112px;
}
.lead-copy h1 { font-size: clamp(36px, 3.8vw, 54px); }
.lead-copy .lede { margin-top: 24px; }
.lead-copy ul { margin: 20px 0 0 0; padding-left: 22px; list-style: disc; }
.lead-copy li { font-size: 16px; color: var(--ink-soft); margin-bottom: 10px; }
.lead-cover {
  margin-top: 40px;
  border-radius: var(--radius-frame);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(15, 14, 13, 0.08);
  overflow: hidden;
}
.lead-form-card {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-frame);
  box-shadow: 0 16px 48px rgba(15, 14, 13, 0.06);
  padding: 36px;
}
.lead-form-card h2 { font-size: 24px; }
.lead-form-card > p { font-size: 15px; color: var(--ink-soft); margin-top: 10px; }
.lead-form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.lead-form .lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
}
.lead-form input:focus { border-color: var(--ink-faint); }
.lead-form input::placeholder { color: var(--ink-faint); }
.lead-form .btn { height: 48px; margin-top: 4px; }
.lead-consent { font-size: 12.5px; color: var(--ink-faint); line-height: 1.55; margin-top: 4px; }
.lead-status { font-size: 14px; margin-top: 6px; color: var(--ink); }
@media (max-width: 900px) {
  .lead-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; padding-bottom: 64px; }
  /* capture form leads the page on mobile */
  .lead-form-card { position: static; order: 1; }
  .lead-copy { order: 2; }
  .lead-form .lf-row { grid-template-columns: 1fr; }
}

/* ============================================================
   PLATFORM CARDS v2 — real product shots + gradient tile
   ============================================================ */
.p-card-shot {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--surface-alt);
  margin-bottom: 8px;
}
.p-card-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.4s ease;
}
.p-card:hover .p-card-shot img { transform: scale(1.02); }

.gradient-tile {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 100%;
  background: linear-gradient(115deg, #FFD9D2, #FAFAF9, #FCE3DC, #F6CFC7, #FAFAF9, #FFD9D2);
  background-size: 320% 320%;
  animation: calmflow 14s ease-in-out infinite;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
@keyframes calmflow {
  0% { background-position: 0% 30%; }
  50% { background-position: 100% 70%; }
  100% { background-position: 0% 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .gradient-tile { animation: none; }
}
.gradient-tile .gt-caption {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============================================================
   FEATURE TILES — Harvey-style: tinted dark gradient band with
   copy, product shot anchored to the bottom edge; hover lifts
   the shot to reveal more of the tool.
   ============================================================ */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.feat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-frame);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, var(--ft-tint, rgba(255, 138, 120, 0.16)), transparent 55%),
    linear-gradient(165deg, #262320, #0F0E0D 60%);
  color: #fff;
  padding: 44px 44px 0;
  min-height: 600px;
}
.feat-tile h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.feat-tile > p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--dark-text-dim);
  max-width: 470px;
}
.feat-tile .btn { margin-top: 22px; width: fit-content; }
/* Corner peek: the shot sits inset from the left, bleeding off the
   right and bottom edges; hovering the tile expands it horizontally
   (Harvey-style) while the sibling tiles dim. */
.ft-shot {
  margin-top: 40px;
  margin-left: auto;
  margin-right: -44px;
  width: 82%;
  flex: 1;
  min-height: 280px;
  border-radius: 12px 0 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: none;
  border-right: none;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(24px);
  transition: width 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ft-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.feat-tile:hover .ft-shot { width: 100%; transform: translateY(12px); }
.feat-tile { transition: opacity 0.35s ease; }
.feat-grid:hover .feat-tile:not(:hover) { opacity: 0.55; }
@media (prefers-reduced-motion: reduce) {
  .ft-shot { transform: none; transition: none; width: 100%; }
  .feat-grid:hover .feat-tile:not(:hover) { opacity: 1; }
}

/* Photo tile — full-bleed photograph, gradient-darkened for the copy */
.feat-tile.photo-tile {
  background:
    linear-gradient(200deg, rgba(15, 14, 13, 0.86) 0%, rgba(15, 14, 13, 0.55) 48%, rgba(15, 14, 13, 0.3) 100%),
    url('./img/features/concierge-photo.jpg') center / cover no-repeat;
  padding-bottom: 44px;
}
.feat-tile.photo-tile > p { color: rgba(255, 255, 255, 0.85); }

/* CTA tile — calm animated gradient, ink text */
.feat-tile.cta-tile {
  background: linear-gradient(115deg, #FFD9D2, #FAFAF9, #FCE3DC, #F6CFC7, #FAFAF9, #FFD9D2);
  background-size: 320% 320%;
  animation: calmflow 14s ease-in-out infinite;
  color: var(--ink);
  justify-content: center;
  padding: 44px;
  min-height: 420px;
}
.feat-tile.cta-tile > p { color: var(--ink-soft); }
.feat-tile.cta-tile .hero-ctas { margin-top: 26px; }
.feat-tile.cta-tile .btn { margin-top: 0; }

@media (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat-tile { padding: 28px 24px 0; min-height: 480px; }
  .feat-tile.cta-tile { padding: 28px 24px; min-height: 320px; }
  .ft-shot { margin-top: 28px; margin-right: -24px; width: 90%; transform: translateY(14px); }
  .feat-tile.photo-tile { padding-bottom: 28px; min-height: 380px; }
}

/* ============================================================
   AGENCY VIDEO HERO — Revolut-style: copy left on ink, video
   bleeding in from the right behind a blend gradient.
   ============================================================ */
.hero-agency { position: relative; background: var(--paper); color: var(--ink); overflow: hidden; }
.hero-agency-media { position: absolute; top: 0; right: 0; bottom: 0; width: 54%; }
.hero-agency-media video, .hero-agency-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
/* Blend by dissolving the video itself: an elliptical smoothstep mask
   sized so the falloff completes INSIDE the box (radii ~66%/82% with the
   centre on the subject), intersected with a slim vertical feather for
   the top and bottom edges. */
.hero-agency-media {
  -webkit-mask-image:
    radial-gradient(66% 82% at 72% 30%,
      #000 30%, rgba(0, 0, 0, 0.97) 42%, rgba(0, 0, 0, 0.9) 52%,
      rgba(0, 0, 0, 0.76) 62%, rgba(0, 0, 0, 0.55) 72%, rgba(0, 0, 0, 0.32) 81%,
      rgba(0, 0, 0, 0.14) 89%, rgba(0, 0, 0, 0.04) 95%, transparent 100%),
    linear-gradient(180deg,
      #000 0%, #000 78%,
      rgba(0, 0, 0, 0.55) 88%, rgba(0, 0, 0, 0.15) 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(66% 82% at 72% 30%,
      #000 30%, rgba(0, 0, 0, 0.97) 42%, rgba(0, 0, 0, 0.9) 52%,
      rgba(0, 0, 0, 0.76) 62%, rgba(0, 0, 0, 0.55) 72%, rgba(0, 0, 0, 0.32) 81%,
      rgba(0, 0, 0, 0.14) 89%, rgba(0, 0, 0, 0.04) 95%, transparent 100%),
    linear-gradient(180deg,
      #000 0%, #000 78%,
      rgba(0, 0, 0, 0.55) 88%, rgba(0, 0, 0, 0.15) 96%, transparent 100%);
  mask-composite: intersect;
}
/* whisper of paper tone/* whisper of paper tone to sit the clip into the palette */
.hero-agency-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 250, 249, 0.08);
}
.hero-agency-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 32px 108px;
}
.hero-agency h1 { margin-top: 16px; max-width: 640px; }
.hero-agency .lede { margin-top: 24px; max-width: 520px; }
.hero-agency-cred { margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--ink-faint); max-width: 480px; }
.hero-agency-cred strong { color: var(--ink); font-weight: 500; }
.hero-agency .hero-ctas { margin-top: 32px; }
.hero-agency .klaviyo-badge { margin-top: 28px; }

@media (max-width: 900px) {
  .hero-agency { display: flex; flex-direction: column; }
  .hero-agency-inner { padding: 48px 20px 36px; order: 1; }
  .hero-agency-media { position: relative; width: 100%; height: 320px; order: 2; }
  .hero-agency-media {
    -webkit-mask-image: radial-gradient(150% 130% at 50% 45%,
      #000 40%, rgba(0, 0, 0, 0.9) 55%, rgba(0, 0, 0, 0.65) 70%,
      rgba(0, 0, 0, 0.35) 83%, rgba(0, 0, 0, 0.1) 93%, transparent 100%);
    mask-image: radial-gradient(150% 130% at 50% 45%,
      #000 40%, rgba(0, 0, 0, 0.9) 55%, rgba(0, 0, 0, 0.65) 70%,
      rgba(0, 0, 0, 0.35) 83%, rgba(0, 0, 0, 0.1) 93%, transparent 100%);
  }
  .hero-agency-media::after { background: rgba(250, 250, 249, 0.08); }
}


/* ============================================================
   SPINNING GRADIENT BORDER — key CTAs only. A conic gradient
   ring rotates behind the pill via the @property-animated angle.
   Browsers without @property show a static gradient ring.
   ============================================================ */
@property --spin-a {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.btn-spin {
  position: relative;
  border-color: transparent;
}
/* Comet trail: a mostly-transparent conic ring with one gradient arc
   that fades in behind its head, orbiting via the animated angle.
   ::before is the crisp trail (over a faint base ring so the edge
   stays defined); ::after is a blurred copy for the glow. Both are
   ring-masked so the button face stays intact. */
.btn-spin::before,
.btn-spin::after {
  content: '';
  position: absolute;
  inset: -2.5px;
  border-radius: var(--radius-pill);
  background:
    conic-gradient(from var(--spin-a),
      transparent 0turn, transparent 0.55turn,
      rgba(255, 138, 120, 0.25) 0.7turn,
      #FF8A78 0.85turn, #C9A6FF 0.97turn,
      transparent 0.995turn, transparent 1turn),
    conic-gradient(rgba(15, 14, 13, 0.12), rgba(15, 14, 13, 0.12));
  padding: 2.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: spin-border 2.8s linear infinite;
  pointer-events: none;
}
.btn-spin::after {
  inset: -3.5px;
  padding: 3.5px;
  filter: blur(5px);
  opacity: 0.7;
}
.btn-spin.btn-ghost { background: var(--paper); }
.btn-spin.btn-ghost:hover { border-color: transparent; }
@keyframes spin-border { to { --spin-a: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .btn-spin::before { animation: none; }
}
