/* FoldStacs — site styles (light, futuristic)
   Brand: 05.01 "Rounded · Electric"
   Type: Outfit (display), Inter (text), JetBrains Mono (technical labels) */

:root {
  --bg: #FFFFFF;
  --bg-2: #F5F8FD;
  --surface: #FFFFFF;
  --surface-2: #F8FAFE;
  --ink: #0B1B3F;
  --body: #334155;
  --muted: #5B6B82;
  --line: #E3E8F0;
  --line-strong: #CBD5E1;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-mid: #60A5FA;
  --blue-light: #BFDBFE;
  --blue-tint: #EFF4FF;
  --cyan: #0E7490;
  --cyan-glow: #06B6D4;
  --green: #047857;
  --green-bg: #ECFDF5;
  --amber: #92400E;
  --amber-bg: #FEF3C7;
  --red: #B91C1C;
  --red-bg: #FEF2F2;

  --font-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 22px;
  --container: 1180px;
  --gutter: 24px;
  --section: 120px;
  --glow: 0 10px 30px -10px rgba(37, 99, 235, 0.55);
  --shadow: 0 1px 2px rgba(11, 27, 63, 0.04), 0 30px 70px -30px rgba(30, 64, 175, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue-light); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.7rem, 1.9rem + 4.2vw, 5rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.2rem); line-height: 1.08; }
h3 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; line-height: 1.35; letter-spacing: 0; }
p { margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

.soft { color: var(--muted); }
.accent { color: var(--blue); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12.5px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-dark);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px 8px 12px;
  background: rgba(255, 255, 255, 0.8);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-glow); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); } }

.mono { font-family: var(--font-mono); }
.lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem); color: var(--body); max-width: 42rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-text); cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--blue); color: var(--ink); }
.btn-light { background: var(--ink); color: #fff; }
.btn-light:hover { background: var(--blue); color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[aria-disabled="true"] { cursor: not-allowed; color: var(--muted); background: var(--bg-2); border-color: var(--line); box-shadow: none; }
.btn[aria-disabled="true"]:hover { border-color: var(--line); color: var(--muted); }
.text-link { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; color: var(--blue); }
.text-link .arrow { transition: transform .2s ease; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: 0.01em; line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; color: var(--body); font-size: 15px; font-weight: 500; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.nav-badge { font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(14, 116, 144, 0.3); background: #ECFEFF; border-radius: 999px; padding: 4px 7px; }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { min-height: 42px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu { position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(11, 27, 63, 0.2); padding: 12px var(--gutter) 24px; display: none; flex-direction: column; align-items: stretch; gap: 12px; }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { border-radius: 10px; padding: 0 12px; font-size: 16px; }
  .nav-cta .btn { width: 100%; }
}
@media (min-width: 921px) {
  .nav-menu { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: space-between; margin-left: 32px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; max-width: 48rem; margin-bottom: 56px; justify-items: start; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head p { font-size: 1.08rem; }
@media (max-width: 720px) { :root { --section: 80px; --gutter: 16px; } .section-head { margin-bottom: 40px; } }

/* Grid backdrop + glow (hero and CTA) */
.grid-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.grid-bg::after {
  content: ""; position: absolute; left: 50%; top: -260px; width: 900px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.16), rgba(6, 182, 212, 0.06) 60%, transparent);
  filter: blur(10px);
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 0; position: relative; }
.hero-inner { display: grid; gap: 28px; justify-items: start; max-width: 54rem; position: relative; }
.hero.center .hero-inner { justify-items: center; text-align: center; margin: 0 auto; }
.hero.center .btn-row { justify-content: center; }
.hero-note { font: 500 13px/1.5 var(--font-mono); color: var(--muted); }
.hero-visual { margin-top: 80px; position: relative; }
.page-hero { padding: 96px 0 80px; position: relative; }
.page-hero .hero-inner { max-width: 50rem; }
@media (max-width: 720px) { .hero, .page-hero { padding-top: 60px; } .hero-visual { margin-top: 52px; } }

/* Rotating word */
.rotator { display: inline-block; height: 1.08em; overflow: hidden; vertical-align: bottom; }
.rotator > span { display: block; animation: rotate-words 9s cubic-bezier(.7, 0, .2, 1) infinite; }
.rotator > span > span { display: block; height: 1.08em; line-height: 1.08; color: var(--blue); }
@keyframes rotate-words {
  0%, 27% { transform: translateY(0); }
  33%, 60% { transform: translateY(-25%); }
  66%, 93% { transform: translateY(-50%); }
  100% { transform: translateY(-75%); }
}

/* ---------- App mockup ---------- */
.window { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.window::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(37, 99, 235, 0.55), transparent 35%, transparent 70%, rgba(6, 182, 212, 0.45)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.window-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.window-bar .url { margin-left: 12px; font: 12px var(--font-mono); color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; }
.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 440px; }
.app-side { border-right: 1px solid var(--line); padding: 20px 14px; display: grid; align-content: start; gap: 2px; background: var(--surface-2); }
.app-side .side-brand { display: flex; align-items: center; gap: 8px; padding: 0 8px 16px; font: 700 15px/1 var(--font-display); color: var(--ink); }
.app-side .side-brand svg { width: 20px; height: 20px; }
.app-side span.item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--body); }
.app-side span.item.active { background: var(--blue-tint); color: var(--blue-dark); font-weight: 600; }
.app-side span.item b { width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: .5; }
.app-side span.item em { margin-left: auto; font: normal 500 10px/1 var(--font-mono); color: var(--cyan); text-transform: uppercase; letter-spacing: .04em; }
.app-main { padding: 24px; display: grid; gap: 20px; align-content: start; min-width: 0; }
.app-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app-title h4 { font-size: 18px; }
.app-title .chip { font: 12px var(--font-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

.buckets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.bucket { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; background: #fff; }
.bucket small { font-size: 12px; color: var(--muted); }
.bucket strong { font: 600 18px/1.2 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.bucket .bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 6px; }
.bucket .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan-glow)); border-radius: 4px; transform-origin: left; animation: grow 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes grow { from { transform: scaleX(0); } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .15s ease; }
.table tbody tr:hover { background: var(--bg-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .mono { font-size: 12.5px; color: var(--body); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.paid { color: var(--green); background: var(--green-bg); }
.pill.partial { color: var(--amber); background: var(--amber-bg); }
.pill.overdue { color: var(--red); background: var(--red-bg); }
.pill.open { color: var(--blue-dark); background: var(--blue-tint); }
.pill.soon { color: var(--cyan); background: #ECFEFF; }
.copy > .pill, .card > .pill { justify-self: start; }

@media (max-width: 880px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .buckets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .buckets .bucket:nth-child(n+4) { display: none; }
}
@media (max-width: 480px) {
  .app-main { padding: 16px; }
  .buckets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buckets .bucket:nth-child(n+3) { display: none; }
}

/* ---------- Agent console (floating) ---------- */
.agent-card {
  position: absolute; right: -28px; bottom: -48px; width: 360px;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(6, 182, 212, 0.45); border-radius: 18px; padding: 16px;
  box-shadow: 0 30px 60px -24px rgba(11, 27, 63, 0.35), 0 0 50px -20px rgba(6, 182, 212, 0.55);
}
.agent-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.agent-head strong { font: 600 14px/1.2 var(--font-display); color: var(--ink); display: flex; align-items: center; gap: 8px; }
.agent-head strong .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-glow); animation: pulse 2.4s ease-out infinite; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); opacity: 0; }
.feed li .meta { font: 500 11px/1.3 var(--font-mono); color: var(--cyan); }
.feed li .what { font-size: 13px; color: var(--ink); line-height: 1.4; }
.feed li:nth-child(1) { animation: feed1 14s infinite; }
.feed li:nth-child(2) { animation: feed2 14s infinite; }
.feed li:nth-child(3) { animation: feed3 14s infinite; }
.feed li:nth-child(4) { animation: feed4 14s infinite; }
@keyframes feed1 { 0% { opacity: 0; transform: translateY(8px); } 4%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes feed2 { 0%, 18% { opacity: 0; transform: translateY(8px); } 22%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes feed3 { 0%, 38% { opacity: 0; transform: translateY(8px); } 42%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes feed4 { 0%, 58% { opacity: 0; transform: translateY(8px); } 62%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.agent-foot { margin-top: 12px; font: 500 11px/1.4 var(--font-mono); color: var(--muted); }
@media (min-width: 1101px) { .hero-visual .app-main { padding-right: 340px; } .hero-visual .table { min-width: 0; } }
@media (max-width: 1100px) and (min-width: 881px) { .agent-card { right: 16px; bottom: -40px; } .hero-visual .app-main { padding-right: 330px; } .hero-visual .buckets { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hero-visual .buckets .bucket:nth-child(n+4) { display: none; } }
@media (max-width: 880px) { .agent-card { position: relative; right: auto; bottom: auto; width: auto; margin: 16px 0 0; } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; margin-top: 120px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 500 15px/1 var(--font-mono); color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "◆"; font-size: 8px; color: var(--blue); }
.marquee-track span.soon { color: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 720px) { .marquee { margin-top: 80px; } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: grid; gap: 12px; align-content: start; overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card > * { position: relative; }
.card p { color: var(--body); font-size: 15.5px; }
.card .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); border: 1px solid #DBEAFE; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.card .icon svg { width: 20px; height: 20px; }
.card .kicker { font: 500 11.5px/1 var(--font-mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* Cursor spotlight (position set by main.js) */
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(37, 99, 235, 0.09), transparent 45%);
  transition: opacity .3s ease;
}
.spot:hover::before { opacity: 1; }
.spot:hover { border-color: rgba(37, 99, 235, 0.35); transform: translateY(-2px); box-shadow: 0 20px 40px -24px rgba(30, 64, 175, 0.35); }

/* ---------- Platform tabs ---------- */
.tabs { display: grid; gap: 24px; }
.tablist { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); justify-self: start; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0;
  background: transparent; color: var(--body); font: 600 15px/1 var(--font-text); cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.tab small { font: 500 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(11, 27, 63, 0.08), 0 4px 14px -6px rgba(37, 99, 235, 0.4); }
.tab[aria-selected="true"] small { color: var(--blue-dark); }
.tabpanel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); animation: fade-up .45s ease both; }
.tabpanel[hidden] { display: none; }
.tabpanel .copy { padding: 44px; display: grid; gap: 18px; align-content: center; }
.tabpanel .visual { padding: 36px; display: grid; align-content: center; gap: 10px; border-left: 1px solid var(--line); background: radial-gradient(120% 80% at 100% 0%, rgba(37, 99, 235, 0.08), transparent 60%), var(--bg-2); }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 880px) {
  .tablist { border-radius: 18px; justify-self: stretch; }
  .tab { flex: 1 1 auto; justify-content: center; }
  .tabpanel { grid-template-columns: minmax(0, 1fr); }
  .tabpanel .copy, .tabpanel .visual { padding: 26px; }
  .tabpanel .visual { border-left: 0; border-top: 1px solid var(--line); }
}

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15.5px; }
.check-list svg { width: 18px; height: 18px; color: var(--blue); margin-top: 4px; }

.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.mini-row .who { display: grid; gap: 2px; min-width: 0; }
.mini-row .who strong { color: var(--ink); font-weight: 600; }
.mini-row .who small { color: var(--muted); font-size: 12.5px; }

/* Pipeline (CRM preview) */
.pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pipe-col { display: grid; gap: 8px; align-content: start; }
.pipe-col > small { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 2px 4px; }
.deal { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; font-size: 13px; }
.deal strong { color: var(--ink); font-weight: 600; }
.deal span { color: var(--muted); font-size: 12px; }
.deal.hot { border-color: rgba(6, 182, 212, 0.6); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1); }
@media (max-width: 480px) { .pipeline { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--blue), var(--cyan-glow) 50%, var(--line)); }
.step { padding: 28px 24px 0 0; display: grid; gap: 10px; align-content: start; position: relative; }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.step .num { font: 500 13px/1 var(--font-mono); color: var(--blue); letter-spacing: 0.04em; }
.step p { font-size: 15.5px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } .steps::before { display: none; } .step { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Agents loop ---------- */
.loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.loop .card { padding-top: 36px; }
.loop .card .stage { position: absolute; top: 18px; right: 20px; font: 500 11px/1 var(--font-mono); color: var(--muted); }
.loop .card.agent { border-color: rgba(6, 182, 212, 0.4); }
.loop .card.human { border-color: rgba(37, 99, 235, 0.35); }
@media (max-width: 880px) { .loop { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature-row + .feature-row { margin-top: 104px; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 18px; align-content: start; justify-items: start; }
@media (max-width: 880px) { .feature-row { grid-template-columns: minmax(0, 1fr); gap: 32px; } .feature-row.reverse .feature-copy { order: 0; } .feature-row + .feature-row { margin-top: 72px; } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 12px; position: relative; box-shadow: var(--shadow); }

/* Approval flow, animated */
.flow { display: grid; gap: 10px; }
.flow-step { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.flow-step .badge { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--blue-tint); color: var(--blue-dark); font: 600 13px/1 var(--font-mono); }
.flow-step strong { color: var(--ink); font-weight: 600; display: block; }
.flow-step small { color: var(--muted); font-size: 12.5px; }
.flow-step:nth-child(1) { animation: flow1 9s infinite; }
.flow-step:nth-child(2) { animation: flow2 9s infinite; }
.flow-step:nth-child(3) { animation: flow3 9s infinite; }
@keyframes flow1 { 0%, 30% { border-color: rgba(6, 182, 212, 0.7); box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12); } 34%, 100% { border-color: var(--line); box-shadow: none; } }
@keyframes flow2 { 0%, 33% { border-color: var(--line); box-shadow: none; } 36%, 63% { border-color: rgba(6, 182, 212, 0.7); box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12); } 67%, 100% { border-color: var(--line); box-shadow: none; } }
@keyframes flow3 { 0%, 66% { border-color: var(--line); box-shadow: none; } 69%, 97% { border-color: rgba(6, 182, 212, 0.7); box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12); } 100% { border-color: var(--line); box-shadow: none; } }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-item { border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .2s ease, background-color .2s ease; }
.tag-item:hover { border-color: var(--blue); background: var(--blue-tint); }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.roadmap .card { gap: 14px; }
.roadmap .when { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 880px) { .roadmap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 16px 0; font: 600 1.12rem/1.4 var(--font-display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-dark); }
.faq summary .plus { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: #fff; transition: transform .25s ease, border-color .25s ease; }
.faq details[open] summary .plus { transform: rotate(45deg); border-color: var(--blue); }
.faq .answer { padding: 0 0 24px; max-width: 46rem; animation: fade-up .3s ease both; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; padding: 88px 48px; display: grid; gap: 24px; justify-items: center; text-align: center; background: var(--bg-2); }
.cta-band > *:not(.grid-bg) { position: relative; }
.cta-band h2 { max-width: 44rem; }
.cta-band p { max-width: 36rem; }
.cta-band .grid-bg::after { top: auto; bottom: -380px; }
@media (max-width: 720px) { .cta-band { padding: 60px 22px; border-radius: 20px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; align-items: start; position: relative; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 480px) { .form { padding: 20px; } }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font: 400 16px/1.4 var(--font-text); color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form-note { font-size: 13.5px; color: var(--muted); }
.form-status { font-size: 14px; color: var(--green); min-height: 1.4em; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-list li { display: grid; gap: 4px; }
.contact-list small { color: var(--muted); font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-list a, .contact-list span { font: 500 1.15rem/1.4 var(--font-display); color: var(--ink); }
.contact-list a:hover { color: var(--blue); }

/* ---------- Prose ---------- */
.prose { max-width: 44rem; display: grid; gap: 20px; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid h4 { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid ul a { color: var(--body); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.footer-grid ul a:hover { color: var(--ink); }
.footer-about { display: grid; gap: 16px; align-content: start; max-width: 22rem; }
.footer-about p { font-size: 15px; color: var(--muted); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 13px var(--font-mono); color: var(--muted); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer.flush { margin-top: 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 96px 0 0; position: relative; }
.notfound .hero-inner { justify-items: center; margin: 0 auto; }

/* ---------- Scroll reveal (CSS only; falls back to visible) ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 180px; }
  .no-reveal .reveal { animation: none; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Spacing utilities */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-64 { margin-top: 64px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .feed li { opacity: 1 !important; transform: none !important; }
  .rotator > span { transform: none !important; }
  .marquee-track { transform: none !important; }
}
