/* ============================================================
   Kinn marketing site — recreated from the Astro staging build.
   Tokens + global utilities + per-section styles, one file.
   ============================================================ */

/* ---- Tokens (from styles/tokens.css) ---- */
:root {
  --mint: #6BDEB4; --blue: #47A2C9; --yellow: #F4CF6C; --purple: #9149A9; --lavender: #C496D4;
  --mint-soft: #E3F9F0; --blue-soft: #E5F2F8; --yellow-soft: #FCF4DC; --purple-soft: #F6EEF9;
  --bg: #FCFBFA; --surface: #FFFFFF; --ink: #1F1D20; --dim: #5C5762; --faint: #8D8794; --line: #E7E4E1;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --display: "Funnel Display", "DM Sans", system-ui, sans-serif;
  --r-card: 8px; --r-sm: 5px; --r-pill: 6px;
  --shadow-soft: 0 12px 32px -12px rgba(31, 29, 32, .18);
  --max-w: 1280px; --max-w-wide: 1440px; --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---- Base resets (from styles/global.css) ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--ink);
  line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { letter-spacing: -.03em; }
h1, h2 { font-family: var(--display); }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--max-w-wide); }
.sec-pad { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.sec-surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 48px; padding: 0 1.4rem; border-radius: var(--r-pill);
  font-family: inherit; font-size: .9375rem; font-weight: 700; letter-spacing: -.005em;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 2px #1f1d20e6; }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 5px #1f1d20e6; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { height: 40px; padding: 0 1.05rem; font-size: .875rem; border-width: 1.5px; }
.ctas { display: flex; gap: .85rem; flex-wrap: wrap; }

/* ---- Eyebrow / kicker ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 1.25rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: var(--r-pill); background: linear-gradient(135deg, var(--mint), var(--blue)); }

/* ---- Section heading block ---- */
.sec-head { max-width: 60ch; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.02; font-weight: 800; margin: 0 0 1rem; }
.sec-head p { font-size: 1.125rem; color: var(--dim); margin: 0; line-height: 1.55; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ============================================================
   NAV
   ============================================================ */
/* justify-content centers the inner bar: the nav-inner is capped at 1440px
   (container-wide) but its inline margin:0 stops it self-centering on very wide
   screens, so we center it from the flex parent instead. */
.nav { position: sticky; top: 0; z-index: 100; height: 70px; display: flex; align-items: center; justify-content: center; background: transparent; border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease; }
.nav.scrolled { background: rgba(252,251,250,.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 2rem; width: 100%; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.125rem; }
.brand-logo { height: 50px; width: 110px; object-fit: fill; display: block; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: conic-gradient(from 220deg, var(--mint), var(--blue), var(--purple), var(--yellow), var(--mint)); }
.nav-menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: var(--r-sm); font-size: .9375rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: color .15s ease, background .15s ease; }
.nav-link:hover, .nav-item:hover .nav-link, .nav-item:focus-within .nav-link { color: var(--ink); background: var(--bg); }
.caret { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-soft); padding: .6rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dd-item { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .8rem; border-radius: var(--r-sm); transition: background .15s ease; }
.dd-item:hover { background: color-mix(in oklch, var(--bg), var(--line) 45%); }
.dd-ic { flex: none; }
.dd-ic.c1 svg, .dd-ic.c2 svg, .dd-ic.c3 svg, .dd-ic.c4 svg { color: var(--ink); }
/* Solutions: icons also use ink to match the menu text */
.dd-item[href*="open-source"] .dd-ic svg,
.dd-item[href*="game-studios"] .dd-ic svg,
.dd-item[href*="consumer-software"] .dd-ic svg { color: var(--ink); }
.dd-item b { display: block; font-size: .9063rem; font-weight: 700; margin-bottom: .1rem; }
.dd-item span span, .dd-item > span > span { font-size: .8125rem; color: var(--dim); line-height: 1.4; font-weight: 400; }
.dd-item > span { display: block; }
.nav-spacer { flex: 1; }
.nav-right { display: flex; align-items: center; gap: .65rem; }
.nav-burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
.nav-burger svg { width: 20px; height: 20px; }
.mobile-menu { display: none; position: fixed; inset: 70px 0 0; z-index: 99; background: var(--bg); padding: 1.5rem var(--gutter); overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu h4 { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 1.5rem 0 .5rem; }
.mobile-menu a.m-link { display: block; padding: .7rem 0; font-size: 1.0625rem; font-weight: 600; border-bottom: 1px solid var(--line); }
@media (max-width: 1000px) {
  .nav-menu { display: none; }
  .nav-right .btn-line { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ============================================================
   HERO (HeroHome — solid mint)
   ============================================================ */
.hero-home { position: relative; min-height: auto; margin-top: -70px; padding-top: 70px; overflow: hidden; display: flex; flex-direction: column; text-align: center; background: var(--hero-bg, var(--lavender)); color: var(--ink); --fx-o: .85; }

/* ---- Soft grain (reusable analog texture) ---- */
.grain { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: var(--grain-o, .5);
  mix-blend-mode: soft-light;
}

/* ---- Hero background FX (technical patterns) ---- */
.hero-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: var(--fx-o, .85); }
.hero-fx::before, .hero-fx::after { content: ""; position: absolute; inset: -14%; }
.hero-fx::after { display: none; }

.hero-home[data-bg="solid"] .hero-fx::before { display: none; }

/* Grid drift */
.hero-home[data-bg="grid"] .hero-fx::before {
  background-image: linear-gradient(rgba(31,29,32,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(31,29,32,.10) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 74% 64% at 50% 44%, transparent 24%, #000 80%);
          mask-image: radial-gradient(ellipse 74% 64% at 50% 44%, transparent 24%, #000 80%);
  animation: fxGridDrift 28s linear infinite;
}
@keyframes fxGridDrift { to { background-position: 60px 60px; } }

/* Dot matrix */
.hero-home[data-bg="dots"] .hero-fx::before {
  background-image: radial-gradient(rgba(31,29,32,.20) 1.7px, transparent 2.1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 74% 64% at 50% 44%, transparent 22%, #000 82%);
          mask-image: radial-gradient(ellipse 74% 64% at 50% 44%, transparent 22%, #000 82%);
  animation: fxDotDrift 34s linear infinite;
}
@keyframes fxDotDrift { to { background-position: 0 28px; } }

/* Plus / CAD matrix */
.hero-home[data-bg="plus"] .hero-fx::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cg stroke='%231F1D20' stroke-width='1.3' opacity='.55'%3E%3Cpath d='M23 17.5v11M17.5 23h11'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 76% 66% at 50% 44%, transparent 22%, #000 82%);
          mask-image: radial-gradient(ellipse 76% 66% at 50% 44%, transparent 22%, #000 82%);
  animation: fxPlusDrift 36s linear infinite;
}
@keyframes fxPlusDrift { to { background-position: 46px 46px; } }

/* Diagonal hairlines */
.hero-home[data-bg="lines"] .hero-fx::before {
  background-image: repeating-linear-gradient(46deg, rgba(31,29,32,.085) 0 1px, transparent 1px 24px);
  -webkit-mask-image: radial-gradient(ellipse 84% 74% at 50% 44%, transparent 18%, #000 84%);
          mask-image: radial-gradient(ellipse 84% 74% at 50% 44%, transparent 18%, #000 84%);
  animation: fxLineSlide 22s linear infinite;
}
@keyframes fxLineSlide { to { background-position: 240px 0; } }

/* Contour / topo rings */
.hero-home[data-bg="topo"] .hero-fx::before {
  background-image: repeating-radial-gradient(circle at 50% 46%, transparent 0 40px, rgba(31,29,32,.075) 40px 41px);
  -webkit-mask-image: radial-gradient(ellipse 92% 82% at 50% 46%, transparent 12%, #000 86%);
          mask-image: radial-gradient(ellipse 92% 82% at 50% 46%, transparent 12%, #000 86%);
  animation: fxTopoPulse 16s ease-in-out infinite;
}
@keyframes fxTopoPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* Scan grid: static grid + sweeping highlight */
.hero-home[data-bg="scan"] .hero-fx::before {
  background-image: linear-gradient(rgba(31,29,32,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(31,29,32,.09) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 72% at 50% 44%, transparent 20%, #000 82%);
          mask-image: radial-gradient(ellipse 80% 72% at 50% 44%, transparent 20%, #000 82%);
}
.hero-home[data-bg="scan"] .hero-fx::after {
  display: block; inset: 0; height: 24%;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.6) 50%, transparent 100%);
  animation: fxScan 7s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes fxScan { 0% { transform: translateY(-60%); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateY(480%); opacity: 0; } }

.hero-home[data-anim="off"] .hero-fx::before, .hero-home[data-anim="off"] .hero-fx::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hero-fx::before, .hero-fx::after { animation: none !important; }
}

/* ---- Agents background FX (same pattern vocabulary as hero) ---- */
.agents .agents-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: var(--afx-o, .8); }
.agents-fx::before, .agents-fx::after { content: ""; position: absolute; inset: -14%; }
.agents-fx::after { display: none; }
.agents[data-bg="solid"] .agents-fx::before { display: none; }

.agents[data-bg="grid"] .agents-fx::before {
  background-image: linear-gradient(rgba(31,29,32,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(31,29,32,.10) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, transparent 18%, #000 82%);
          mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, transparent 18%, #000 82%);
  animation: fxGridDrift 28s linear infinite;
}
.agents[data-bg="dots"] .agents-fx::before {
  background-image: radial-gradient(rgba(31,29,32,.20) 1.7px, transparent 2.1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 14%, #000 86%);
          mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 14%, #000 86%);
  animation: fxDotDrift 34s linear infinite;
}
.agents[data-bg="plus"] .agents-fx::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cg stroke='%231F1D20' stroke-width='1.3' opacity='.55'%3E%3Cpath d='M23 17.5v11M17.5 23h11'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 14%, #000 86%);
          mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 14%, #000 86%);
  animation: fxPlusDrift 36s linear infinite;
}
.agents[data-bg="lines"] .agents-fx::before {
  background-image: repeating-linear-gradient(46deg, rgba(31,29,32,.085) 0 1px, transparent 1px 24px);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 10%, #000 88%);
          mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 10%, #000 88%);
  animation: fxLineSlide 22s linear infinite;
}
.agents[data-bg="topo"] .agents-fx::before {
  background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0 40px, rgba(31,29,32,.075) 40px 41px);
  -webkit-mask-image: radial-gradient(ellipse 96% 96% at 50% 50%, transparent 8%, #000 90%);
          mask-image: radial-gradient(ellipse 96% 96% at 50% 50%, transparent 8%, #000 90%);
  animation: fxTopoPulse 16s ease-in-out infinite;
}
.agents[data-anim="off"] .agents-fx::before { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .agents-fx::before { animation: none !important; } }
.center-content { position: relative; z-index: 2; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(2.5rem, 6vw, 4.25rem) var(--gutter) clamp(1.75rem, 3.5vw, 2.75rem); }
.center-content .eyebrow { justify-content: center; margin-bottom: 1.75rem; color: var(--ink); }
.center-content .eyebrow .dot { background: var(--ink); }
.center-content h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1.0; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 1.5rem; max-width: 32ch; color: var(--ink); }
.center-content h1 .em { background: transparent; color: var(--ink); padding: 0; border-radius: 0; }
.center-content p { font-size: clamp(1.0625rem, 1.7vw, 1.3125rem); color: rgba(31,29,32,.74); max-width: 52ch; margin: 0 0 2.25rem; }
.center-content .ctas { justify-content: center; }
.hero-home .btn-line { color: var(--ink); border-color: var(--ink); }
.hero-home .btn-line:hover { background: var(--ink); color: var(--mint); }
.hero-mock { position: relative; z-index: 1; display: flex; justify-content: center; padding: 0 var(--gutter); margin-top: auto; }
.hero-mock img { display: block; width: min(1180px, 100%); height: auto; filter: drop-shadow(3px 9px 60px rgba(0,0,0,.09)); }
.product-window { width: min(1060px, 100%); margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card) var(--r-card) 0 0; box-shadow: 0 24px 60px -18px rgba(31,29,32,.30); overflow: hidden; }
.pw-chrome { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.pw-chrome .tl { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.pw-chrome .tl:nth-child(1) { background: #f0b8b8; }
.pw-chrome .tl:nth-child(2) { background: var(--yellow); }
.pw-chrome .tl:nth-child(3) { background: var(--mint); }
.pw-chrome .pw-url { margin-left: .5rem; font-family: var(--mono); font-size: .72rem; color: var(--faint); }
.pw-bar { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.pw-input { flex: 1; text-align: left; font-size: .9375rem; color: var(--faint); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .65rem 1rem; }
.pw-send { width: 38px; height: 38px; flex: none; border-radius: var(--r-sm); background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.pw-body { padding: 1.25rem; text-align: left; }
.pw-answer { border: 2px solid var(--ink); border-radius: var(--r-sm); box-shadow: 4px 4px 0 var(--purple); padding: 1rem 1.15rem; }
.pw-lab { font-family: var(--mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); display: block; margin-bottom: .5rem; }
.pw-text { font-size: .9063rem; color: var(--ink); line-height: 1.5; }
@media (max-width: 600px) { .product-peek { height: 140px; } }

/* ============================================================
   SOURCES PICKER (ChannelBand)
   ============================================================ */
.picker { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); align-items: stretch; }
.pick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5px; background: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--r-card); overflow: hidden; }
.pcell { background: var(--surface); border: none; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1.25rem .5rem; transition: background .18s ease; }
.pcell span { font-weight: 600; font-size: .8125rem; }
.pcell img { opacity: .8; transition: opacity .18s ease; }
.pcell:hover { background: var(--bg); }
.pcell.on { background: var(--mint); }
.pcell.on img { opacity: 1; }
.pcell i, .pcell svg { width: 24px; height: 24px; color: var(--ink); opacity: .8; stroke-width: 1.75; transition: opacity .18s ease; }
.pcell.on i, .pcell.on svg { opacity: 1; }
.pick-groups { display: flex; flex-direction: column; gap: 1.5rem; }
.pick-glabel { display: flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: .7rem; }
.pick-glabel .gdot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.pick-panel { border: 1.5px solid var(--ink); border-radius: var(--r-card); padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; box-shadow: 6px 6px 0 var(--mint); }
.pp-src { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
.pp-txt { font-size: 1.125rem; font-weight: 600; line-height: 1.4; margin: .85rem 0 auto; min-height: 3.5em; }
.pp-meta { display: flex; align-items: center; gap: .6rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .8438rem; color: var(--dim); }
.pp-arrow { width: 18px; height: 1.5px; background: var(--ink); flex: none; position: relative; }
.pp-arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: rotate(45deg); }
@media (max-width: 860px) { .picker { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pick-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   PLAYGROUND
   ============================================================ */
.demo-window { margin-top: clamp(2rem, 4vw, 3rem); border: 1.5px solid var(--ink); border-radius: var(--r-card); overflow: hidden; box-shadow: 8px 8px 0 var(--mint); }
.dw-chrome { display: flex; align-items: center; gap: .8rem; padding: .8rem 1.1rem; border-bottom: 1.5px solid var(--ink); background: var(--bg); }
.dw-chrome .tl { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.dw-chrome .tl:nth-child(1) { background: #f0b8b8; }
.dw-chrome .tl:nth-child(2) { background: var(--yellow); }
.dw-chrome .tl:nth-child(3) { background: var(--mint); }
.dw-chrome .dw-url { margin-left: .5rem; font-family: var(--mono); font-size: .75rem; color: var(--faint); }
.dw-chrome .dw-hint { margin-left: auto; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.demo-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.demo-tile { --tile-pad: clamp(1.5rem, 2.5vw, 2rem); padding: var(--tile-pad); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: .3rem; transition: background .2s ease; position: relative; overflow: hidden; }
.demo-tile:first-child { border-left: none; }
.demo-tile:hover { background: var(--bg); }
.dt-icon { margin: calc(-1 * var(--tile-pad)) calc(-1 * var(--tile-pad)) .9rem; width: auto; aspect-ratio: 16 / 10; border: none; border-radius: 0; border-bottom: 1px solid var(--line); background-color: var(--bg); background-image: repeating-linear-gradient(45deg, rgba(31,29,32,.06) 0 1px, transparent 1px 10px); display: flex; align-items: center; justify-content: center; }
.dt-icon::after { content: "cover art"; font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.dt-name { font-weight: 700; font-size: 1.0625rem; }
.dt-cat { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.dt-sources { font-size: .8125rem; color: var(--dim); margin-top: .35rem; }
.dt-go { margin-top: 1rem; font-weight: 700; font-size: .875rem; color: var(--ink); }
.demo-tile:hover .dt-go { color: var(--purple); }
@media (max-width: 860px) {
  .demo-grid { grid-template-columns: 1fr 1fr; }
  .demo-tile:nth-child(odd) { border-left: none; }
  .demo-tile:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-tile { border-left: none; border-top: 1px solid var(--line); }
  .demo-tile:first-child { border-top: none; }
}

/* ============================================================
   CUSTOMER TYPES (vertical color cards + rotor headline)
   ============================================================ */
.ct-headline { display: inline; }
.rotor { display: inline-flex; overflow: hidden; vertical-align: bottom; box-sizing: content-box; padding-bottom: 3px; border-bottom: 3px solid var(--purple); transition: width .5s cubic-bezier(.76, 0, .24, 1); }
.rotor-track { display: flex; flex-direction: column; }
.rotor-item { display: flex; align-items: center; white-space: nowrap; line-height: 1.1; font-weight: 900; }
@media (prefers-reduced-motion: reduce) { .rotor { transition: none; } .rotor-track { transition: none !important; } }
.ct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); }
.ct-card { border: 1.5px solid var(--ink); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.ct-card:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); }
.ct-head { padding: 1.5rem 1.5rem 1.25rem; color: var(--ink); display: flex; flex-direction: column; gap: .75rem; border-bottom: 1.5px solid var(--ink); min-height: 150px; }
.ct-card:nth-child(1) .ct-head { background: var(--mint); }
.ct-card:nth-child(2) .ct-head { background: var(--blue); }
.ct-card:nth-child(3) .ct-head { background: var(--yellow); }
.ct-n { font-family: var(--mono); font-size: .72rem; font-weight: 600; }
.ct-ph { width: 76px; height: 76px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background-color: rgba(255,255,255,.45); background-image: repeating-linear-gradient(45deg, rgba(31,29,32,.16) 0 1px, transparent 1px 9px); display: flex; align-items: center; justify-content: center; }
.ct-ph::after { content: "3d icon"; font-family: var(--mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(31,29,32,.62); }
.ct-ico { flex: none; display: inline-flex; align-items: center; justify-content: flex-start; }
.ct-ico svg { width: 40px; height: 40px; color: var(--ink); stroke-width: 1.75; }

/* ---- Lucide line glyphs inside icon slots ---- */
.dd-ic, .agent-ava { display: inline-flex; align-items: center; justify-content: center; }
.dd-ic svg { width: 20px; height: 20px; stroke-width: 2; }
.agent-ava svg { width: 22px; height: 22px; color: var(--ink); stroke-width: 2; }

/* ---- Grain over a colored background (reusable) ---- */
.grain-bg { position: relative; }
.grain-bg::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px 200px; opacity: var(--grain-o, .55); mix-blend-mode: soft-light; }
.grain-bg > * { position: relative; z-index: 1; }
.ct-head h3 { margin: 0; font-size: 1.5rem; font-weight: 800; line-height: 1.05; }
.ct-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.ct-body p { margin: 0 0 1.1rem; color: var(--dim); font-size: .9063rem; }
.ct-ex { font-family: var(--mono); font-size: .72rem; color: var(--faint); margin-bottom: 1.25rem; }
.ct-go { margin-top: auto; font-weight: 700; font-size: .9063rem; display: inline-flex; align-items: center; gap: .4rem; transition: gap .2s ease; }
.ct-card:hover .ct-go { gap: .65rem; }
@media (max-width: 860px) { .ct-grid { grid-template-columns: 1fr; } .ct-head { min-height: 0; } }

/* ============================================================
   TEAM SWITCHER (tabs)
   ============================================================ */
.teams-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 2.5rem 0 1.5rem; }
.tab { font-family: var(--sans); font-weight: 700; font-size: .9375rem; padding: .7rem 1.3rem; border-radius: var(--r-pill); cursor: pointer; background: var(--surface); border: 1.5px solid var(--line); color: var(--dim); transition: all .2s ease; }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab[data-t="0"].on { box-shadow: 4px 4px 0 var(--yellow); }
.tab[data-t="1"].on { box-shadow: 4px 4px 0 var(--mint); }
.tab[data-t="2"].on { box-shadow: 4px 4px 0 var(--purple); }
.tab[data-t="3"].on { box-shadow: 4px 4px 0 var(--blue); }
.team-panel { display: none; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(1.75rem, 3.5vw, 3rem); }
.team-panel.on { display: grid; }
.team-panel h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 .75rem; font-weight: 800; }
.team-panel > div > p { color: var(--dim); margin: 0 0 1.25rem; font-size: 1.0313rem; }
.team-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.team-points li { display: flex; gap: .65rem; align-items: baseline; font-size: .9375rem; font-weight: 500; }
.team-points .ck { color: var(--ink); font-weight: 800; flex: none; }
.win { border: 1.5px solid var(--ink); border-radius: var(--r-card); overflow: hidden; box-shadow: 6px 6px 0 var(--ink); }
.win-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem .9rem; background: var(--bg); border-bottom: 1.5px solid var(--ink); }
.win-bar span { width: 11px; height: 11px; border-radius: 999px; background: var(--line); border: 1px solid var(--ink); }
.win-bar em { margin-left: .5rem; font-family: var(--mono); font-size: .68rem; font-style: normal; color: var(--faint); }
.shot-img { display: block; width: 100%; height: auto; }
.shot { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; background-color: var(--bg); background-image: repeating-linear-gradient(45deg, var(--line) 0, var(--line) 1px, transparent 1px, transparent 11px); }
.shot-cap { font-family: var(--mono); font-size: .72rem; color: var(--faint); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .35rem .8rem; }
@media (max-width: 860px) { .team-panel.on { grid-template-columns: 1fr; } }

/* ============================================================
   AGENTS
   ============================================================ */
.agents { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.75rem; }
.agent-card { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); padding: 1.6rem; display: flex; flex-direction: column; }
.agent-top { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.agent-ava { width: 42px; height: 42px; border-radius: var(--r-sm); border: 1.5px solid var(--ink); flex: none; }
.agent-card:nth-child(1) .agent-ava { background: var(--purple-soft); }
.agent-card:nth-child(2) .agent-ava { background: var(--mint-soft); }
.agent-card:nth-child(3) .agent-ava { background: var(--blue-soft); }
.agent-top b { font-size: 1.0313rem; }
.agent-top .role { display: block; font-family: var(--mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.agent-tools { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.agent-tools span { font-family: var(--mono); font-size: .68rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .25rem .6rem; color: var(--dim); }
.agent-action { margin-top: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .8rem .95rem; font-size: .8438rem; color: var(--dim); }
.agent-action b { color: var(--ink); }
@media (max-width: 900px) { .agent-grid { grid-template-columns: 1fr; } }

/* ============================================================
   WORKFLOW INTEGRATIONS (outputs)
   ============================================================ */
.out-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); border-radius: var(--r-card); overflow: hidden; margin-top: clamp(2rem, 4vw, 3rem); }
.out-cell { display: flex; align-items: center; gap: .7rem; padding: 1.4rem 1.5rem; border-left: 1px solid var(--line); border-top: 1px solid var(--line); font-weight: 600; font-size: .9375rem; }
.out-cell img { opacity: .85; }
.out-cell:nth-child(-n+4) { border-top: none; }
.out-cell:nth-child(4n+1) { border-left: none; }
@media (max-width: 760px) {
  .out-grid { grid-template-columns: 1fr 1fr; }
  .out-cell:nth-child(-n+4) { border-top: 1px solid var(--line); }
  .out-cell:nth-child(-n+2) { border-top: none; }
  .out-cell:nth-child(4n+1) { border-left: 1px solid var(--line); }
  .out-cell:nth-child(odd) { border-left: none; }
}

/* ============================================================
   COMPARISON
   ============================================================ */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); align-items: stretch; }
.vs-col { border-radius: var(--r-card); padding: clamp(1.75rem, 3vw, 2.5rem); }
.vs-col.them { border: 1.5px dashed var(--line); color: var(--dim); }
.vs-col.us { border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 #9149A9; }
.vs-col h3 { font-size: 1.25rem; margin: 0 0 1.5rem; font-weight: 800; display: flex; align-items: center; gap: .6rem; }
.vs-col.them h3 { color: var(--faint); font-weight: 700; }
.us-mark { width: 16px; height: 16px; border-radius: 4px; background: #9149A9; border: 1.5px solid var(--ink); }
.vs-col h3.vs-logo { margin: -2px 0 1.5rem; }
.vs-col h3.vs-logo img { height: 26px; width: auto; display: block; }
.vs-col ul { list-style: none; margin: 0; padding: 0; }
.vs-col li { display: flex; gap: .75rem; align-items: baseline; padding: .85rem 0; font-size: .9688rem; }
.vs-col li + li { border-top: 1px solid var(--line); }
.vs-col.us li { font-weight: 500; color: var(--ink); }
.mk { flex: none; font-weight: 800; }
.vs-col.them .mk { color: var(--faint); }
.mk.ok { color: #9149A9; }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }

/* ============================================================
   METRICS (yellow band)
   ============================================================ */
.metrics { background: var(--yellow); color: var(--ink); padding: clamp(3rem, 6vw, 5rem) 0; }
.metrics .kick { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 1.5rem; }
.metrics h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 clamp(2rem, 4vw, 3rem); max-width: none; text-wrap: balance; }
.metrics h2 .ln { display: block; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); border-radius: var(--r-card); overflow: hidden; }
.metric { padding: clamp(1.5rem, 3vw, 2.5rem); border-left: 1.5px solid var(--ink); }
.metric:first-child { border-left: none; }
.metric .v { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; display: block; margin-bottom: .6rem; }
.metric .k { font-size: .9375rem; font-weight: 500; line-height: 1.35; max-width: 18ch; }
@media (max-width: 760px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric { border-left: 1.5px solid var(--ink); border-top: 1.5px solid var(--ink); }
  .metric:nth-child(odd) { border-left: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-top: none; }
}
@media (max-width: 460px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { border-left: none; border-top: 1.5px solid var(--ink); }
  /* Re-assert the 2nd metric's divider: the 2-column rule above removes it
     via :nth-child(2), which outranks the plain .metric rule here. Without
     this, the first two metrics merge into one box on mobile. */
  .metric:nth-child(2) { border-top: 1.5px solid var(--ink); }
  .metric:first-child { border-top: none; }
}

/* ============================================================
   TRUST
   ============================================================ */
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.trust-item { padding: 1.75rem 1.5rem 0; border-left: 1px solid var(--line); }
.trust-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 1rem; border-radius: var(--r-sm); border: 1.5px solid var(--ink); background: none; }
.trust-ic svg { width: 24px; height: 24px; color: var(--ink); stroke-width: 1.75; }
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-item h3 { margin: 0 0 .5rem; font-size: 1.0625rem; font-weight: 700; }
.trust-item p { margin: 0; color: var(--dim); font-size: .9063rem; line-height: 1.5; }
@media (max-width: 760px) {
  .trust-row { grid-template-columns: 1fr; }
  .trust-item { border-left: none; padding: 1.5rem 0 0; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes { text-align: center; }
.quotes-stage { position: relative; min-height: 340px; display: flex; align-items: center; }
.qslide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; padding: 0 var(--gutter); }
.qslide.on { opacity: 1; visibility: visible; }
.qslide blockquote { font-size: clamp(1.5rem, 3.4vw, 2.7rem); line-height: 1.14; font-weight: 700; margin: 0 0 1.75rem; max-width: 26ch; }
.qslide .u { text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .1em; }
.qslide:nth-child(1) .u { text-decoration-color: var(--mint); }
.qslide:nth-child(2) .u { text-decoration-color: var(--purple); }
.qslide:nth-child(3) .u { text-decoration-color: var(--blue); }
.qwho { display: flex; align-items: center; gap: .85rem; }
.qwho .ava { width: 44px; height: 44px; border-radius: var(--r-pill); border: 2px solid var(--ink); object-fit: cover; display: block; }
.qslide:nth-child(1) .ava { background: linear-gradient(135deg, var(--mint), var(--blue)); }
.qslide:nth-child(2) .ava { background: linear-gradient(135deg, var(--yellow), var(--purple)); }
.qslide:nth-child(3) .ava { background: linear-gradient(135deg, var(--blue), var(--mint)); }
.qwho .nm { text-align: left; font-size: .9063rem; }
.qwho .nm b { display: block; }
.qwho .nm span { color: var(--faint); font-size: .8125rem; }
.qdots { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; }
.qdot { width: 34px; height: 5px; border-radius: var(--r-pill); background: var(--line); border: none; cursor: pointer; padding: 0; transition: background .25s; }
.qdot.on { background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .qslide { transition: none; } }

/* ============================================================
   PRICING TEASER
   ============================================================ */
.pricing-frame { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); border: 1.5px solid var(--ink); border-radius: var(--r-card); overflow: hidden; }
.pricing-head { padding: clamp(2rem, 4vw, 3.5rem); }
.pricing-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 1rem; font-weight: 800; }
.pricing-head p { color: var(--dim); font-size: 1.0313rem; margin: 0 0 1.75rem; max-width: 38ch; }
.pricing-tiers { display: grid; grid-template-columns: 1fr 1fr 1fr; border-left: 1.5px solid var(--ink); }
.tier { padding: clamp(1.5rem, 2.5vw, 2rem) 1.25rem; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: .4rem; }
.tier:first-child { border-left: none; }
.tier-name { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.tier-price { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.tier-price .per { font-family: var(--sans); font-size: .8125rem; font-weight: 500; color: var(--faint); margin-left: .15rem; }
.tier-note { font-size: .8125rem; color: var(--dim); line-height: 1.4; margin-top: .25rem; }
@media (max-width: 860px) {
  .pricing-frame { grid-template-columns: 1fr; }
  .pricing-tiers { border-left: none; border-top: 1.5px solid var(--ink); }
}
@media (max-width: 520px) {
  .pricing-tiers { grid-template-columns: 1fr; }
  .tier { border-left: none; border-top: 1px solid var(--line); }
  .tier:first-child { border-top: none; }
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.blog-head .sec-head { margin: 0; }
.blog-list { border-top: 1px solid var(--line); }
.blog-item { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); transition: padding-left .25s ease; }
.blog-item:hover { padding-left: 1rem; }
.blog-item .blog-thumb { width: 60px; aspect-ratio: 6 / 9; flex: none; border-radius: var(--r-sm); border: 1.5px solid var(--line); background:
  repeating-linear-gradient(135deg, rgba(31,29,32,.06) 0 7px, transparent 7px 14px), var(--bg);
  position: relative; transition: transform .25s ease; }
.blog-item .blog-thumb::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
  background: rgba(31,29,32,.28);
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='1.6'/%3E%3Cpath d='m21 15-4.5-4.5L6 21'/%3E%3C/svg%3E");
          mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='1.6'/%3E%3Cpath d='m21 15-4.5-4.5L6 21'/%3E%3C/svg%3E"); }
.blog-item:hover .blog-thumb { transform: translateY(-2px); }
.blog-item h3 { margin: 0; font-size: clamp(1.05rem, 2vw, 1.375rem); font-weight: 700; letter-spacing: -0.015em; }
.blog-item .cat { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); white-space: nowrap; }
@media (max-width: 560px) {
  .blog-item { grid-template-columns: auto 1fr; }
  .blog-item .cat { display: none; }
}

/* ============================================================
   END CTA (mint band)
   ============================================================ */
.endcta { background: var(--mint); color: var(--ink); padding: clamp(3rem, 6vw, 5.5rem) 0; }
.endcta-frame { border: 1.5px solid var(--ink); border-radius: var(--r-card); overflow: hidden; }
.endcta-head { padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem); border-bottom: 1.5px solid var(--ink); }
.endcta .kick { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 1.25rem; }
.endcta-head h2 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: .98; font-weight: 800; margin: 0; max-width: 16ch; }
.endcta-foot { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3.5rem); }
.endcta-foot p { margin: 0; font-size: 1.0625rem; max-width: 44ch; font-weight: 500; }
.endcta .btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.endcta .btn-line:hover { background: var(--ink); color: var(--mint); }
@media (max-width: 640px) { .endcta-foot { flex-direction: column; align-items: flex-start; } }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { position: relative; overflow: hidden; background: #36133E; color: #E5D5EA;
  border-radius: 40px 40px 0 0; margin-top: clamp(3rem, 6vw, 6rem);
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(13rem, 22vw, 20rem); }
.foot-grid { position: relative; z-index: 2; display: grid; align-items: start;
  grid-template-columns: 1.5fr 1.1fr 1.1fr 0.9fr 0.9fr; gap: 2rem clamp(1.5rem, 3vw, 3rem); }
.foot-tagline p { margin: 0; max-width: 30ch; font-size: 1.0625rem; line-height: 1.5; color: #E5D5EA; }
.foot-col h4 { font-family: var(--sans); font-weight: 700; font-size: .9375rem; letter-spacing: .01em;
  text-transform: none; color: #C9B6D0; margin: 0 0 1.5rem; }
.foot-col a { display: block; color: #E5D5EA; font-size: 1rem; font-weight: 500; padding: .55rem 0;
  text-decoration: none; transition: color .18s cubic-bezier(.16,1,.3,1); }
.foot-col a:hover { color: #fff; }
.foot-legal { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 0; }
.foot-legal a { color: #E5D5EA; font-size: 1rem; font-weight: 500; padding: .55rem 0; text-decoration: none; transition: color .18s cubic-bezier(.16,1,.3,1); }
.foot-legal a:hover { color: #fff; }
.foot-legal span { margin-top: .55rem; padding: .55rem 0; color: #C9B6D0; font-size: 1rem; }
/* Giant footer logomark watermark. The markup still contains the "KINN" text
   (aria-hidden, kept for re-sync stability); we hide it with font-size:0 and
   paint the purple logomark as a background image so it bleeds off the bottom
   like the old wordmark did. */
.foot-wordmark { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none;
  font-size: 0; height: clamp(11rem, 30vw, 30rem);
  background-image: url("logo-mark-watermark.svg");
  background-repeat: no-repeat; background-position: center bottom; background-size: contain;
  transform: translateY(22%); }
/* Footer brand logo, sits above the tagline (injected by scripts/finalize.mjs) */
.foot-logo { display: block; width: 116px; height: auto; margin: 0 0 1.25rem; }
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-tagline { grid-column: 1 / -1; }
  .foot-legal { align-items: flex-start; text-align: left; }
}
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ghost (hero convergence — not used by HeroHome, kept harmless) */
.ghost { position: fixed; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .65rem .9rem; font-size: .8125rem; color: var(--dim); pointer-events: none; opacity: 0; white-space: nowrap; }

/* ============================================================
   HEADLINE FOLD ENTRANCE  (shared; behaviour lives in site.js)
   Primary headlines — .hero-home h1, .sec-head h2, .pricing-head h2,
   .endcta-head h2 — are split into words and fold open on scroll.
   site.js does the word-splitting + scroll trigger automatically on
   any page that loads it. Pair with the tiny <head> pre-fold guard
   (see CLAUDE.md / the page skeleton) so an above-the-fold hero
   headline doesn't flash before it folds.
   ============================================================ */
.pre-fold .hero-home h1, .pre-fold .page-hero h1 { opacity: 0; }
.fold-h { perspective: 900px; }
.fold-h .w { display: inline-block; white-space: pre; will-change: transform, opacity; }
.fold-h[data-fold] .w { opacity: 0; transform: rotateX(-92deg); transform-origin: top center; }
.fold-h[data-fold].play .w { animation: hlFold .78s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * .07s); }
@keyframes hlFold { 0% { opacity: 0; transform: rotateX(-92deg); } 45% { opacity: 1; } 100% { opacity: 1; transform: none; } }

.fold-sub { opacity: 0; }
.fold-sub.sub-in { animation: hlSub .72s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.2s + var(--si, 0) * .08s); }
@keyframes hlSub { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .fold-h[data-fold] .w { opacity: 1 !important; transform: none !important; animation: none !important; }
  .fold-sub { opacity: 1 !important; transform: none !important; animation: none !important; }
  .pre-fold .hero-home h1, .pre-fold .page-hero h1 { opacity: 1 !important; }
}

/* ============================================================
   INTERIOR PAGES  (Feature + Solution pages)
   Shared primitives composed with the section patterns above and
   the existing utilities. Set --accent / --accent-soft on <body>
   for per-page identity (hard-shadow highlights, soft CTA band).
   ============================================================ */
:root { --accent: var(--purple); --accent-soft: var(--purple-soft); }

/* Generic muted lead paragraph */
.sub { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--dim); line-height: 1.55; }

/* Interior hero — centered, warm canvas, faint technical FX. h1 folds via site.js.
   Tucks up under the sticky nav (like .hero-home) so the nav reads transparent at
   the top of the page and turns opaque on scroll. */
.page-hero { position: relative; overflow: hidden; text-align: center; border-bottom: 1px solid var(--line); margin-top: -70px; padding: calc(70px + clamp(3.5rem, 7vw, 6rem)) 0 clamp(2.75rem, 5vw, 4.25rem); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font-family: var(--display); font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.0; letter-spacing: -0.04em; font-weight: 800; margin: 0 auto 1.25rem; max-width: 18ch; }
.page-hero .sub { max-width: 52ch; margin: 0 auto; }
.page-hero .ctas { justify-content: center; margin-top: 2rem; }
.page-hero-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .6;
  background-image: linear-gradient(rgba(31,29,32,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(31,29,32,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 68% 72% at 50% 28%, #000 18%, transparent 78%);
          mask-image: radial-gradient(ellipse 68% 72% at 50% 28%, #000 18%, transparent 78%); }

/* Two-column text | visual */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.split.wide-right { grid-template-columns: 1fr 1.1fr; }
@media (max-width: 880px) { .split, .split.wide-right { grid-template-columns: 1fr; } }

/* Inline proof statistics (display numbers, no band) */
.statline { display: flex; flex-wrap: wrap; gap: clamp(1.75rem, 4vw, 3.5rem); margin-top: 1.75rem; }
.statline .stat .v { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; display: block; }
.statline .stat .k { font-size: .9375rem; color: var(--dim); margin-top: .45rem; max-width: 22ch; display: block; }

/* Mono chips row (sources / integrations / tags) */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.chips .chip { font-family: var(--mono); font-size: .78rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .5rem .9rem; color: var(--dim); }

/* Soft accent CTA panel — lighter than the mint .endcta band. h2 folds via site.js. */
.cta-soft { text-align: center; background: var(--accent-soft); border: 2px solid var(--ink); border-radius: var(--r-card); padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem); }
.cta-soft h2 { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.03; margin: 0 auto 1rem; max-width: 22ch; }
.cta-soft .sub { max-width: 50ch; margin: 0 auto 1.75rem; }
.cta-soft .ctas { justify-content: center; }

/* Solid-accent band — bold color block (set --accent on the page). Dark text,
   ink frame, holds a window mock with an ink hard-shadow. */
.accent-band { background: var(--accent); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 20px; padding: clamp(2rem, 4vw, 3.5rem); }
.accent-band .win { box-shadow: 6px 6px 0 var(--ink); }

/* Compact trust strip (solution pages) — accent hard-shadow */
.trust-strip { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-card); padding: 1.2rem 1.6rem; box-shadow: 4px 4px 0 var(--accent); }
.trust-strip .lead { font-weight: 700; font-size: 1.0625rem; }

/* FAQ / Q&A cards */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 2rem; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.5rem 1.6rem; }
.faq-card h3 { margin: 0 0 .5rem; font-size: 1.0625rem; font-weight: 700; }
.faq-card p { margin: 0; color: var(--dim); font-size: .92rem; line-height: 1.5; }

/* ============================================================
   LEGAL / long-form document pages
   ============================================================ */
.legal-head { border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem); }
.legal-head .eyebrow { margin-bottom: 1rem; }
.legal-head h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.legal-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: 1.25rem; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.legal-meta b { color: var(--dim); font-weight: 500; }
.legal-body { max-width: 74ch; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.legal-body > p:first-child { font-size: 1.0625rem; color: var(--ink); }
.legal-body h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.4rem; margin: 2.75rem 0 .9rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.legal-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1.5rem; }
.legal-body h3 { font-weight: 700; font-size: 1.1rem; margin: 1.75rem 0 .6rem; }
.legal-body p { font-size: 1rem; line-height: 1.7; color: var(--dim); margin: 0 0 1.1rem; }
.legal-body ul { margin: 0 0 1.2rem; padding-left: 1.3rem; color: var(--dim); }
.legal-body li { margin-bottom: .45rem; line-height: 1.6; }
.legal-body a { color: var(--purple); text-decoration: underline; text-underline-offset: .15em; }
.legal-body strong { color: var(--ink); font-weight: 700; }
