:root{
  --ink:#0A0A0A;
  --paper:#FAFAF7;
  --forest:#1F4E3D;
  --mist:#6B6B6B;
  --rule:#E5E5E0;
  --signal:#D97757;
}
*{ -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
html,body{ background:var(--paper); color:var(--ink); }
body{ font-family:'Inter',system-ui,sans-serif; line-height:1.6; font-size:16px; }
body h1,body h2,body h3,body h4{ font-family:'Inter Tight',sans-serif; font-weight:600; letter-spacing:-0.03em; line-height:1.02; color:var(--ink); }
body h1{ font-size:clamp(2rem, 6vw, 5.25rem); letter-spacing:-0.04em; line-height:1.04; }
body h2{ font-size:clamp(1.875rem, 3.5vw, 3rem); letter-spacing:-0.03em; line-height:1.1; }
body h3{ font-size:1.375rem; line-height:1.3; letter-spacing:-0.02em; }
.h1-tight{ line-height:0.98; }
.lead{ font-size:clamp(1.25rem, 2.2vw, 1.875rem); line-height:1.35; color:var(--ink); font-weight:400; letter-spacing:-0.01em; }
p{ color:var(--ink); }
.container-x{ max-width:1200px; margin-left:auto; margin-right:auto; padding-left:1.5rem; padding-right:1.5rem; }
.mono{ font-family:'JetBrains Mono',ui-monospace,monospace; }
.label{ font-family:'JetBrains Mono',ui-monospace,monospace; font-size:0.75rem; text-transform:uppercase; letter-spacing:0.12em; color:var(--mist); }
.hairline{ border:1px solid var(--rule); }
.border-rule{ border-color:var(--rule); }
.text-mist{ color:var(--mist); }
.text-forest{ color:var(--forest); }
.bg-forest{ background:var(--forest); }
.bg-paper{ background:var(--paper); }
.bg-ink{ background:var(--ink); }
.text-paper{ color:var(--paper); }
a{ color:inherit; }
.btn{ display:inline-flex; align-items:center; gap:0.5rem; padding:0.875rem 1.5rem; font-family:'Inter',sans-serif; font-weight:500; font-size:0.95rem; transition:opacity 0.2s, background 0.2s, color 0.2s; }
.btn-signal{ background:var(--signal); color:#fff; }
.btn-signal:hover{ opacity:0.92; }
.btn-ink{ background:var(--ink); color:var(--paper); }
.btn-ink:hover{ opacity:0.88; }
.btn-outline{ background:transparent; color:var(--ink); border:1px solid var(--ink); }
.btn-outline:hover{ background:var(--ink); color:var(--paper); }
.btn-paper{ background:var(--paper); color:var(--ink); }
.btn-paper:hover{ opacity:0.9; }
.divider{ height:1px; background:var(--rule); }
.wordmark{ display:inline-block; line-height:1; }
.nav-link{ font-size:0.9rem; color:var(--ink); }
.nav-link:hover{ color:var(--mist); }
.mobile-menu{ display:none; }
.mobile-menu.open{ display:block; }
.cookie-banner{ position:fixed; bottom:1rem; left:1rem; right:1rem; max-width:560px; margin-left:auto; margin-right:auto; background:var(--ink); color:var(--paper); padding:1rem 1.25rem; font-size:0.875rem; display:none; z-index:50; }
.cookie-banner.show{ display:flex; flex-wrap:wrap; gap:0.75rem; align-items:center; justify-content:space-between; }
@media (min-width:768px){
  .mobile-toggle{ display:none; }
  .desktop-nav{ display:flex; }
}
@media (max-width:767px){
  .desktop-nav{ display:none; }
}

/* Agent stack */
.agent-stack{ display:flex; align-items:center; }
.agent-avatar{
  width:84px; height:84px; border-radius:50%;
  border:3px solid var(--paper);
  background:var(--rule);
  margin-left:-20px;
  overflow:hidden;
  flex-shrink:0;
  animation: gentle-float 5s ease-in-out infinite;
  position:relative;
  box-sizing:border-box;
}
.agent-avatar:first-child{ margin-left:0; }
.agent-avatar:nth-child(1){ animation-delay:0s;   z-index:5; }
.agent-avatar:nth-child(2){ animation-delay:0.6s; z-index:4; }
.agent-avatar:nth-child(3){ animation-delay:1.2s; z-index:3; }
.agent-avatar:nth-child(4){ animation-delay:1.8s; z-index:2; }
.agent-avatar:nth-child(5){ animation-delay:2.4s; z-index:1; }
.agent-avatar svg{ width:100%; height:100%; display:block; }
.agent-avatar img{ width:100%; height:100%; display:block; object-fit:cover; }
.agent-more{
  margin-left:-20px; width:84px; height:84px; border-radius:50%;
  border:1px solid var(--rule); background:var(--paper);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  font-family:'JetBrains Mono', monospace; font-size:0.85rem; color:var(--forest);
}
@keyframes gentle-float{
  0%,100%{ transform: translateY(0); }
  50%   { transform: translateY(-6px); }
}

/* Region pills */
.region-pill{
  display:inline-flex; align-items:center; gap:0.5rem;
  padding:0.4rem 0.75rem;
  border:1px solid var(--rule);
  font-family:'JetBrains Mono', monospace; font-size:0.75rem;
  color:var(--ink); background:var(--paper);
  border-radius:999px;
}
.region-pill::before{
  content:""; width:6px; height:6px; border-radius:50%; background:var(--forest);
}

/* Scroll reveal */
.reveal{ opacity:0; transform: translateY(12px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .agent-avatar{ animation:none; }
  .reveal{ opacity:1; transform:none; transition:none; }
}

.stat-num{ font-variant-numeric: tabular-nums; }

/* Page hero (sub-pages) */
.page-hero{ padding-top:5rem; padding-bottom:4rem; border-bottom:1px solid var(--rule); }
.breadcrumb{ font-family:'JetBrains Mono', monospace; font-size:0.75rem; color:var(--mist); text-transform:uppercase; letter-spacing:0.1em; }
.breadcrumb a{ color:var(--mist); }
.breadcrumb a:hover{ color:var(--ink); }

/* Faq */
.faq-item{ border-bottom:1px solid var(--rule); padding:1.5rem 0; }
.faq-item summary{ list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary h3{ font-size:1.1rem; line-height:1.4; }
.faq-item .marker{ font-family:'JetBrains Mono', monospace; font-size:1.25rem; color:var(--forest); line-height:1; padding-top:0.2rem; }
.faq-item[open] .marker{ transform:rotate(45deg); transition:transform 0.2s ease; }
.faq-item .marker{ transition:transform 0.2s ease; }
.faq-body{ padding-top:1rem; color:var(--mist); line-height:1.65; max-width:60ch; }

/* Form */
.form-field{ display:flex; flex-direction:column; gap:0.5rem; }
.form-field label{ font-family:'JetBrains Mono', monospace; font-size:0.75rem; text-transform:uppercase; letter-spacing:0.1em; color:var(--mist); }
.form-field input, .form-field textarea, .form-field select{
  background:var(--paper); border:1px solid var(--rule); padding:0.75rem 1rem;
  font-family:'Inter', sans-serif; font-size:0.95rem; color:var(--ink);
  width:100%; border-radius:0;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{
  outline:none; border-color:var(--ink);
}

/* Article (legal/case study) */
.prose{ max-width:70ch; }
.prose h2{ font-size:1.5rem; margin-top:2.5rem; margin-bottom:1rem; }
.prose h3{ font-size:1.125rem; margin-top:1.75rem; margin-bottom:0.75rem; }
.prose p{ margin-bottom:1rem; line-height:1.7; }
.prose ul{ margin-bottom:1rem; padding-left:1.25rem; }
.prose ul li{ list-style:disc; margin-bottom:0.4rem; }
.prose ol{ margin-bottom:1rem; padding-left:1.25rem; }
.prose ol li{ list-style:decimal; margin-bottom:0.4rem; }
.prose strong{ font-weight:600; }
.prose a{ color:var(--forest); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:2px; }
.prose a:hover{ opacity:0.65; }
.prose .lead-note{ font-size:1.0625rem; color:var(--mist); border-left:2px solid var(--forest); padding-left:1rem; margin:1.5rem 0; }
.article-toc{ border:1px solid var(--rule); padding:1.5rem; margin-bottom:2.5rem; }
.article-toc .label{ margin-bottom:0.75rem; }
.article-toc ol{ padding-left:1.1rem; }
.article-toc ol li{ list-style:decimal; margin-bottom:0.35rem; }
.article-toc a{ color:var(--ink); text-decoration:none; }
.article-toc a:hover{ color:var(--forest); }

/* Comparison table */
.compare-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.compare-table{ width:100%; min-width:760px; border-collapse:collapse; border:1px solid var(--rule); background:var(--paper); }
.compare-table thead th{
  font-family:'Inter Tight', sans-serif; font-weight:600; font-size:0.95rem;
  text-align:left; padding:1.25rem 1.1rem; border-bottom:1px solid var(--rule);
  color:var(--ink); vertical-align:bottom;
}
.compare-table thead th.brand-col{
  background: rgba(31,78,61,0.06);
  color:var(--forest);
  position:relative;
}
.compare-table .badge{
  display:inline-block; margin-left:0.4rem; padding:0.15rem 0.55rem;
  background:var(--forest); color:var(--paper);
  font-family:'JetBrains Mono', monospace; font-size:0.65rem;
  font-weight:500; letter-spacing:0.04em; text-transform:uppercase;
  border-radius:999px; vertical-align:middle;
}
.compare-table tbody td{
  padding:0.95rem 1.1rem; border-bottom:1px solid var(--rule);
  font-size:0.95rem; vertical-align:top;
}
.compare-table tbody td:first-child{ color:var(--ink); }
.compare-table tbody td.brand-col{
  background: rgba(31,78,61,0.04);
  color:var(--forest); font-weight:500;
}
.compare-table tbody td.muted{ color:var(--mist); }
.compare-table tbody tr.group td{
  font-family:'JetBrains Mono', monospace; font-size:0.7rem;
  text-transform:uppercase; letter-spacing:0.12em; color:var(--mist);
  background:#F2F0EA; padding:0.6rem 1.1rem;
  border-bottom:1px solid var(--rule); border-top:1px solid var(--rule);
}
.compare-table tbody tr.group:first-child td{ border-top:none; }
.compare-table tbody tr:last-child td{ border-bottom:none; }
.check{ color:var(--forest); margin-right:0.35rem; }

/* KPI block */
.kpi-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(180px,1fr)); border-top:1px solid var(--rule); border-left:1px solid var(--rule); }
.kpi-grid .kpi{ padding:1.5rem; border-right:1px solid var(--rule); border-bottom:1px solid var(--rule); }
.kpi-grid .kpi .num{ font-family:'JetBrains Mono', monospace; font-size:1.875rem; font-weight:500; color:var(--forest); letter-spacing:-0.02em; }
.kpi-grid .kpi .lbl{ font-family:'JetBrains Mono', monospace; font-size:0.7rem; text-transform:uppercase; letter-spacing:0.1em; color:var(--mist); margin-top:0.5rem; }


/* Hero phone-frame video + intro modal */
.hero-grid{ display:grid; grid-template-columns:1fr; gap:3rem; align-items:center; }
@media (min-width:980px){
  .hero-grid{ grid-template-columns:minmax(0, 1.25fr) minmax(280px, 360px); gap:5rem; }
}
.hero-video-col{ display:flex; justify-content:center; }
.phone-frame{
  position:relative;
  width:min(300px, 70vw);
  aspect-ratio:9/19;
  background:var(--ink);
  border-radius:38px;
  padding:9px;
  box-shadow:0 30px 60px -20px rgba(10,10,10,0.28), 0 0 0 1px rgba(10,10,10,0.08);
  overflow:hidden;
}
.phone-frame::before{
  content:""; position:absolute; top:18px; left:50%; transform:translateX(-50%);
  width:90px; height:22px; background:var(--ink); border-radius:14px; z-index:2;
}
.phone-video{
  width:100%; height:100%;
  object-fit:cover;
  border-radius:30px;
  display:block;
  background:#000;
}
.watch-btn{
  position:absolute;
  left:50%; bottom:22px;
  transform:translateX(-50%);
  display:inline-flex; align-items:center; gap:0.55rem;
  background:rgba(250,250,247,0.96);
  color:var(--ink);
  border:none;
  padding:0.6rem 1rem;
  border-radius:999px;
  font-family:'Inter Tight',sans-serif;
  font-weight:500; font-size:0.82rem;
  cursor:pointer;
  white-space:nowrap;
  z-index:3;
  transition:opacity 0.2s, transform 0.2s;
}
.watch-btn:hover{ opacity:0.92; transform:translateX(-50%) translateY(-2px); }
.watch-btn-play{
  display:inline-flex; align-items:center; justify-content:center;
  width:18px; height:18px; border-radius:50%; background:var(--forest); color:var(--paper);
  font-size:0.55rem; padding-left:2px;
}

.video-modal{
  position:fixed; inset:0;
  background:rgba(10,10,10,0.9);
  display:none;
  align-items:center; justify-content:center;
  z-index:100;
  padding:2rem;
}
.video-modal.open{ display:flex; }
.video-modal-stage{
  position:relative;
  width:min(420px, 100%);
  aspect-ratio:9/16;
  background:#000;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 30px 80px -10px rgba(0,0,0,0.6);
}
.video-modal-stage video{ width:100%; height:100%; object-fit:contain; background:#000; display:block; }
.video-modal-close{
  position:absolute; top:1.25rem; right:1.5rem;
  background:transparent; color:var(--paper);
  border:1px solid rgba(250,250,247,0.35);
  font-size:1.35rem; line-height:1;
  width:42px; height:42px; border-radius:50%;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  z-index:101;
}
.video-modal-close:hover{ background:rgba(250,250,247,0.1); }

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


/* Picture-in-picture inset on hero phone */
.pip-watch{
  position:absolute; right:14px; bottom:18px;
  width:36%; aspect-ratio:9/16;
  background:#000;
  border:2px solid rgba(250,250,247,0.9);
  border-radius:12px;
  overflow:hidden;
  cursor:pointer;
  box-shadow:0 10px 24px -6px rgba(0,0,0,0.45);
  padding:0; margin:0;
  z-index:3;
  transition:transform 0.2s, border-color 0.2s;
}
.pip-watch:hover{ transform:scale(1.05); border-color:var(--paper); }
.pip-video{ width:100%; height:100%; object-fit:cover; display:block; pointer-events:none; background:#000; }
.pip-label{
  position:absolute; left:0; right:0; bottom:0;
  background:linear-gradient(transparent, rgba(10,10,10,0.85));
  color:var(--paper);
  font-family:'Inter Tight',sans-serif; font-weight:500; font-size:0.65rem;
  padding:0.9rem 0.35rem 0.4rem; text-align:center; letter-spacing:0.02em;
  pointer-events:none;
}


/* Phone-frame dual videos: swap on click */
.hf-video{ position:absolute; background:#000; display:block; }
.hf-main{
  inset:0; width:100%; height:100%;
  object-fit:cover; border-radius:30px;
  z-index:1;
  transition:opacity 0.2s;
}
.hf-pip{
  right:14px; bottom:18px;
  width:36%; aspect-ratio:9/16;
  object-fit:cover;
  border-radius:12px;
  border:2px solid rgba(250,250,247,0.9);
  box-shadow:0 10px 24px -6px rgba(0,0,0,0.45);
  cursor:pointer;
  z-index:3;
  transition:transform 0.2s, border-color 0.2s;
}
.hf-pip:hover{ transform:scale(1.05); border-color:var(--paper); }
.hf-pip-label{
  position:absolute;
  right:14px; bottom:18px;
  width:36%; aspect-ratio:9/16;
  pointer-events:none;
  display:flex; align-items:flex-end; justify-content:center;
  padding-bottom:0.45rem;
  background:linear-gradient(transparent 60%, rgba(10,10,10,0.8));
  color:var(--paper);
  font-family:'Inter Tight',sans-serif;
  font-weight:500; font-size:0.65rem; letter-spacing:0.02em;
  border-radius:12px;
  z-index:4;
}


/* Wordmark logo: subtle reveal + hover */
.wm{ overflow:visible; }
.wm-sourcing{
  opacity:0;
  animation: wm-slide-in 0.7s cubic-bezier(0.2,0.7,0.2,1) 0.15s forwards;
  transition: opacity 0.25s ease;
}
.wm-tm{
  opacity:0;
  animation: wm-fade-in 0.5s ease 0.55s forwards;
  transition: opacity 0.25s ease;
}
@keyframes wm-slide-in{
  0%{ opacity:0; transform:translateX(-5px); }
  100%{ opacity:0.55; transform:translateX(0); }
}
@keyframes wm-fade-in{
  0%{ opacity:0; }
  100%{ opacity:0.5; }
}
a:hover .wm-sourcing{ opacity:0.85; }
a:hover .wm-tm{ opacity:0.75; }
a[aria-label$="home"]::before{content:"";display:inline-block;width:28px;height:28px;margin-right:10px;vertical-align:middle;flex:0 0 auto;background:url("/assets/img/logo-mark.svg") center/contain no-repeat}
@media (prefers-reduced-motion: reduce){
  .wm-sourcing{ opacity:0.55; animation:none; }
  .wm-tm{ opacity:0.5; animation:none; }
}
