/* ============================================================
   onlyWA — minimal monochrome + mint accent
   ============================================================ */

:root {
  --ink: #0b0c0e;
  --ink-2: #1a1c20;
  --ink-3: #2a2d33;
  --paper: #f7f6f2;
  --paper-2: #eeede7;
  --paper-3: #e3e1d9;
  --line: #d9d7ce;
  --line-2: #c4c2b8;
  --muted: #6b6a63;
  --muted-2: #9a978c;

  --accent: #0ac775;           /* mint */
  --accent-ink: #00331d;
  --accent-soft: #d7f5e6;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-sm: 0 1px 0 rgba(10, 12, 14, 0.04), 0 1px 3px rgba(10, 12, 14, 0.06);
  --shadow: 0 2px 4px rgba(10,12,14,.04), 0 12px 32px -12px rgba(10,12,14,.18);
  --shadow-lg: 0 12px 48px -16px rgba(10,12,14,.28);

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

html.dark {
  --ink: #f3efe7;
  --ink-2: #e1ddd3;
  --ink-3: #c9c5bb;
  --paper: #0b0c0e;
  --paper-2: #131418;
  --paper-3: #1c1e23;
  --line: #262830;
  --line-2: #343741;
  --muted: #8a887f;
  --muted-2: #62615a;
  --accent-soft: #10311f;
  --shadow: 0 2px 4px rgba(0,0,0,.35), 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 12px 48px -16px rgba(0,0,0,.75);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.serif { font-family: var(--f-serif); font-weight: 400; letter-spacing: -0.01em; font-style: italic; }
.mono  { font-family: var(--f-mono); letter-spacing: 0; }
.small { font-size: 13px; color: var(--muted); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
section { padding: 100px 0; position: relative; }
section.tight { padding: 72px 0; }
.divider { height: 1px; background: var(--line); width: 100%; }

/* ---------- Button ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font: 500 14px/1 var(--f-sans);
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--ink-2); }
.btn.accent { background: var(--accent); color: #002415; }
.btn.accent:hover { background: #09b268; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.sm { padding: 8px 12px; font-size: 13px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
  /* GPU layer — prevents scroll jitter from backdrop-filter repaint */
  transform: translateZ(0);
  will-change: transform;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font: 700 13px/1 var(--f-sans); letter-spacing: -0.02em;
  position: relative;
}
.logo-mark::after{
  content:""; position:absolute; right:-3px; bottom:-3px;
  width:10px; height:10px; background: var(--accent);
  border-radius: 50%; border: 2px solid var(--paper);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-3); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}
.hamburger:hover { background: var(--paper-2); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 16px 28px 20px;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  color: var(--ink-3);
  text-decoration: none;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--ink); }
.mobile-menu .mobile-cta { margin-top: 12px; }

@media (max-width: 820px){
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta .btn.ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 960px){ .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.hero h1 .serif { font-size: 1.05em; }
.hero-sub {
  margin-top: 26px;
  font-size: 19px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.45;
}
.hero-ctas { margin-top: 34px; display: flex; gap: 10px; flex-wrap: wrap; }

.hero-meta {
  display: flex; gap: 28px; margin-top: 44px; padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-meta .stat { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .stat b { font: 500 24px/1 var(--f-sans); letter-spacing: -0.02em; }
.hero-meta .stat span { color: var(--muted); font-size: 12px; }

/* Hero full-bleed animation frame */
.hero-stage {
  position: relative;
  aspect-ratio: 5/4.6;
  min-height: 500px;
  border-radius: var(--radius-xl);
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.cell {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  overflow: hidden;
  min-height: 260px;
  display: flex; flex-direction: column;
}
.cell.dark { background: var(--ink); color: var(--paper); border-color: var(--ink-2); }
.cell.dark .cell-label { color: var(--paper-3); }
.cell.dark .cell-title { color: var(--paper); }
.cell.dark .cell-body { color: color-mix(in oklab, var(--paper) 70%, var(--ink)); }
.cell.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.cell.accent .cell-label { color: rgba(0,40,24,.6); }
.cell.accent .cell-title { color: var(--accent-ink); }
.cell.accent .cell-body { color: rgba(0,40,24,.78); }

.cell-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.cell-label .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.cell-title { font-size: 22px; letter-spacing: -0.02em; margin-top: 8px; font-weight: 500; }
.cell-body { font-size: 14px; color: var(--muted); margin-top: 6px; max-width: 42ch; }
.cell-figure { flex: 1; margin-top: 16px; position: relative; overflow: hidden; border-radius: var(--radius); }

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* Bento cells as links */
.cell-link {
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cell-link:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow); }
.cell-link.dark:hover { border-color: var(--paper-3); }
.cell-link.accent:hover { border-color: rgba(0,40,24,.3); }
.cell-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.7;
  transition: opacity .15s ease, gap .15s ease;
}
.cell-link:hover .cell-cta { opacity: 1; gap: 10px; }

.services-allcta {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--ink); text-decoration: none;
  margin-left: 6px; font-weight: 500;
}
.services-allcta:hover { text-decoration: underline; }
.tall { min-height: 360px; }
.short { min-height: 220px; }

@media (max-width: 900px){
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
}

/* ---------- Section header ---------- */
.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 40px; gap: 32px; flex-wrap: wrap;
}
.sec-head h2 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.03em; line-height: 1.02;
  max-width: 16ch;
}
.sec-head p { color: var(--muted); max-width: 42ch; font-size: 15px; }

/* ---------- Process (numbered steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px){ .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .steps { grid-template-columns: 1fr; } }
.step {
  padding: 26px 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  position: relative;
  min-height: 220px;
  display: flex; flex-direction: column;
}
.step-num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 58px;
  color: var(--accent);
  line-height: 0.8;
  margin-bottom: 30px;
}
.step h4 { font-size: 18px; margin-bottom: 6px; font-weight: 500; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Chat demo (big) ---------- */
.chatdemo {
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: var(--paper);
  padding: 64px;
  display: grid; grid-template-columns: 1fr 380px; gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px){ .chatdemo { grid-template-columns: 1fr; padding: 40px; } }
.chatdemo h2 { color: var(--paper); font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1.05; }
.chatdemo p { color: color-mix(in oklab, var(--paper) 66%, var(--ink)); margin-top: 18px; font-size: 16px; max-width: 48ch; }
.chatdemo .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: var(--paper);
  font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
}
.phone-frame {
  width: 340px; height: 600px;
  border-radius: 46px;
  background: #121316;
  border: 3px solid #2a2c31;
  padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
  margin: 0 auto;
}
.phone-screen {
  width: 100%; height: 100%;
  background: #0b3621;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px){ .cases { grid-template-columns: 1fr; } }
.case {
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex; flex-direction: column;
  min-height: 280px;
}
.case-metric { font-family: var(--f-serif); font-style: italic; font-size: 72px; line-height: 0.9; letter-spacing: -0.03em; }
.case-metric small { font: 500 18px/1 var(--f-sans); color: var(--muted); font-style: normal; letter-spacing: -0.01em; margin-left: 6px; }
.case-type { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.case-type .k { color: var(--muted); font-size: 13px; }
.case-type .v { font-size: 15px; font-weight: 500; }

/* ---------- Featured case ---------- */
.fcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper-2);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (max-width: 940px){ .fcase { grid-template-columns: 1fr; } }

.fcase-main { padding: 44px 44px 40px; display: flex; flex-direction: column; }
@media (max-width: 560px){ .fcase-main { padding: 30px 24px 32px; } }

.fcase-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.fcase-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  flex-shrink: 0; animation: fcase-pulse 2.4s ease-out infinite;
}
@keyframes fcase-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 65%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.fcase-client {
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(34px, 4.4vw, 50px); line-height: 1; letter-spacing: -0.02em;
  margin: 16px 0 6px;
}
.fcase-client .fdots { color: var(--accent); font-style: normal; }
.fcase-segment { color: var(--muted); font-size: 14px; }

.fcase-lede { font-size: 16px; line-height: 1.55; margin: 22px 0 0; max-width: 54ch; color: var(--ink-2); }
.fcase-lede b { font-weight: 600; color: var(--ink); }

.fcase-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin: 26px 0 28px; padding: 22px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fcase-stat { display: flex; flex-direction: column; gap: 5px; }
.fcase-stat b { font-family: var(--f-serif); font-style: italic; font-size: 36px; line-height: 1; letter-spacing: -0.02em; }
.fcase-stat span { color: var(--muted); font-size: 12.5px; }

.fcase-ship {
  list-style: none; padding: 0; margin: 0 0 30px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 13px 26px;
}
@media (max-width: 560px){ .fcase-ship { grid-template-columns: 1fr; } }
.fcase-ship li { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); display: flex; gap: 9px; align-items: flex-start; }
.fcase-ship li b { font-weight: 600; color: var(--ink); }
.fcase-tick { color: var(--accent); flex-shrink: 0; display: inline-flex; margin-top: 1px; }

.fcase-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }

/* Right — illustrative WhatsApp console (dark in both themes) */
.fcase-console {
  background: #0b1f17;
  background-image: radial-gradient(circle at 18% 12%, rgba(10,199,117,.10), transparent 42%);
  color: #e9edef;
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 14px;
  border-left: 1px solid var(--line);
}
@media (max-width: 940px){ .fcase-console { border-left: none; border-top: 1px solid var(--line); } }

.fcase-console-head {
  display: flex; align-items: center; gap: 11px;
  padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.fcase-console-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: #005c4b; color: #e9edef;
  display: grid; place-items: center; flex-shrink: 0;
}
.fcase-console-id { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.fcase-console-id b { font-size: 14px; font-weight: 600; }
.fcase-console-id span { font-size: 11px; color: rgba(233,237,239,.55); }
.fcase-console-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(233,237,239,.7);
}

.fcase-thread { display: flex; flex-direction: column; gap: 9px; flex: 1; justify-content: center; padding: 4px 0; }
.fbub {
  max-width: 85%; padding: 9px 11px 7px; border-radius: 12px;
  font-size: 13px; line-height: 1.42; box-shadow: 0 1px 1px rgba(0,0,0,.18);
}
.fbub b { font-weight: 600; }
.fbub.out { align-self: flex-end; background: #005c4b; border-bottom-right-radius: 4px; }
.fbub.in  { align-self: flex-start; background: #202c33; border-bottom-left-radius: 4px; }
.fbub .fmeta { display: block; text-align: right; font-size: 10px; color: rgba(233,237,239,.5); margin-top: 3px; }
.fbub .ftick { color: #53bdeb; margin-left: 3px; }

.fcase-props {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding-top: 13px; border-top: 1px solid rgba(255,255,255,.08);
}
.fcase-prop {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(233,243,238,.72);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 5px 9px; border-radius: 999px;
}

/* ---------- Pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px){ .prices { grid-template-columns: 1fr; } }
.price {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 30px;
  background: var(--paper-2);
  display: flex; flex-direction: column;
}
.price.feature { background: var(--ink); color: var(--paper); border-color: var(--ink); position: relative; }
.price .tag {
  position: absolute; top: 18px; right: 18px;
  background: var(--accent); color: var(--accent-ink);
  padding: 4px 10px; border-radius: 999px;
  font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
}
.price h4 { font-size: 16px; font-weight: 500; letter-spacing: 0; margin-bottom: 6px; color: inherit; }
.price .amount { font-family: var(--f-serif); font-size: 56px; line-height: 1; letter-spacing: -0.02em; font-style: italic; margin: 18px 0 6px; }
.price .amount small { font: 500 14px/1 var(--f-sans); color: var(--muted); font-style: normal; margin-left: 4px; }
.price.feature .amount small { color: color-mix(in oklab, var(--paper) 55%, var(--ink)); }
.price ul { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 10px; }
.price li { font-size: 14px; display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.price.feature li { color: color-mix(in oklab, var(--paper) 78%, var(--ink)); }
.price li::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 3px;
  box-shadow: inset 0 0 0 3px var(--paper-2);
}
.price.feature li::before { box-shadow: inset 0 0 0 3px var(--ink); }
.price .footer-cta { margin-top: auto; }

/* ---------- FAQ ---------- */
.faqs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); padding: 22px 4px; cursor: pointer; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 18px; letter-spacing: -0.01em; }
.faq-q .i {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: transform .25s ease, background .2s;
  flex-shrink: 0;
}
.faq.open .faq-q .i { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .2s ease;
  color: var(--muted); font-size: 15px; line-height: 1.55;
}
.faq.open .faq-a { max-height: 400px; padding-top: 14px; }

/* ---------- Contact ---------- */
.contact {
  border-radius: var(--radius-xl);
  padding: 64px;
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  position: relative; overflow: hidden;
}
@media (max-width: 900px){ .contact { grid-template-columns: 1fr; padding: 36px; } }
.contact h2 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1.02; }
.contact .formbox {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: 400 15px/1.4 var(--f-sans);
  color: var(--ink);
  outline: none;
  transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink); background: var(--paper);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px){ .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: 60px 0 40px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { color: var(--ink); font-size: 13px; font-weight: 500; margin-bottom: 14px; letter-spacing: 0; }
.footer a { color: var(--muted); text-decoration: none; display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 10px;
}

/* ---------- Anim primitives ---------- */
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.caret { display: inline-block; width: 2px; background: currentColor; animation: blink 1s step-end infinite; }

@keyframes marquee-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse-dot { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.6); opacity: 0.2; } }
@keyframes drift { 0% { transform: translateY(0); } 50% { transform: translateY(-4px); } 100% { transform: translateY(0); } }

.fade-in-up { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.fade-in-up.inview { opacity: 1; transform: translateY(0); }

/* ---------- Tweaks panel overrides ---------- */
[data-tweaks-panel] * { color: var(--ink); }

/* ============================================================
   Product pages — /products and /products/<slug>
   ============================================================ */

.pp-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); text-decoration: none;
  font: 500 13px/1 var(--f-sans);
  padding: 6px 0; margin-bottom: 24px;
  transition: color .15s;
}
.pp-back:hover { color: var(--ink); }
.pp-back span { font-size: 14px; }

.pp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.pp-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}

/* Hero */
.pp-hero { padding: 56px 0 80px; }
.pp-tone-ink { background: var(--ink); color: var(--paper); }
.pp-tone-ink .pp-back { color: color-mix(in oklab, var(--paper) 55%, var(--ink)); }
.pp-tone-ink .pp-back:hover { color: var(--paper); }
.pp-tone-ink .pp-eyebrow { color: color-mix(in oklab, var(--paper) 60%, var(--ink)); }
.pp-tone-ink .pp-title { color: var(--paper); }
.pp-tone-ink .pp-sub { color: color-mix(in oklab, var(--paper) 72%, var(--ink)); }

.pp-tone-accent { background: var(--accent); color: var(--accent-ink); }
.pp-tone-accent .pp-back { color: color-mix(in oklab, var(--accent-ink) 58%, transparent); }
.pp-tone-accent .pp-back:hover { color: var(--accent-ink); }
.pp-tone-accent .pp-eyebrow { color: color-mix(in oklab, var(--accent-ink) 62%, transparent); }
.pp-tone-accent .pp-title { color: var(--accent-ink); }
.pp-tone-accent .pp-sub { color: color-mix(in oklab, var(--accent-ink) 78%, transparent); }

/* Button overrides for tone-shifted heroes: default btn colors are
   ink-on-paper, which collapse on dark / accent backgrounds. */
.pp-tone-ink .btn.primary { background: var(--paper); color: var(--ink); }
.pp-tone-ink .btn.primary:hover { background: var(--paper-2); }
.pp-tone-ink .btn.ghost {
  background: transparent;
  color: var(--paper);
  border-color: color-mix(in oklab, var(--paper) 28%, transparent);
}
.pp-tone-ink .btn.ghost:hover { background: color-mix(in oklab, var(--paper) 10%, transparent); }

.pp-tone-accent .btn.primary { background: var(--accent-ink); color: var(--accent); }
.pp-tone-accent .btn.primary:hover { background: #001a10; }
.pp-tone-accent .btn.ghost {
  background: transparent;
  color: var(--accent-ink);
  border-color: rgba(0,40,24,.25);
}
.pp-tone-accent .btn.ghost:hover { background: rgba(0,40,24,.06); }

.pp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .pp-hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.pp-title {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-top: 18px;
  max-width: 16ch;
}
.pp-sub {
  margin-top: 22px;
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.5;
}
.pp-cta-row { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }

.pp-hero-glyph {
  aspect-ratio: 1;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  border-radius: var(--radius-xl);
  background: color-mix(in oklab, currentColor 6%, transparent);
  border: 1px solid color-mix(in oklab, currentColor 12%, transparent);
  display: grid;
  place-items: center;
}
.pp-tone-paper .pp-hero-glyph { background: var(--paper-2); border-color: var(--line); }
.pp-hero-glyph-inner {
  width: 88px; height: 88px;
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, currentColor 10%, transparent);
  display: grid; place-items: center;
  color: inherit;
}

/* Blocks */
.pp-block { padding: 72px 0; }
.pp-tone-paper-2 { background: var(--paper-2); }
@media (max-width: 768px) { .pp-block { padding: 52px 0; } }

/* Capabilities */
.pp-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .pp-cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pp-cap-grid { grid-template-columns: 1fr; } }

.pp-cap {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex; flex-direction: column;
  gap: 8px;
}
.pp-tone-paper-2 ~ .pp-cap, .pp-block.pp-tone-paper-2 .pp-cap { background: var(--paper); }
.pp-cap-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.pp-cap-title { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.pp-cap-body { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Steps */
.pp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .pp-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pp-steps { grid-template-columns: 1fr; } }
.pp-step {
  padding: 26px 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  min-height: 200px;
  display: flex; flex-direction: column;
}
.pp-step-num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 18px;
}
.pp-step h4 { font-size: 16px; margin-bottom: 6px; font-weight: 500; letter-spacing: -0.01em; }
.pp-step p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }

/* Evidence */
.pp-evidence {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex; flex-direction: column;
  gap: 24px;
}
@media (max-width: 768px) { .pp-evidence { padding: 32px 24px; border-radius: var(--radius-lg); } }
.pp-evidence-tag {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.pp-evidence-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.pp-evidence-headline {
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 56ch;
  color: var(--paper);
}
.pp-evidence-points {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 12px;
}
.pp-evidence-points li {
  display: flex; align-items: flex-start; gap: 12px;
  color: color-mix(in oklab, var(--paper) 80%, var(--ink));
  font-size: 15px;
  line-height: 1.5;
}
.pp-evidence-bullet {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.pp-tech-row {
  margin-top: 8px;
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-3);
}
.pp-tech-chip {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ink-2);
  color: color-mix(in oklab, var(--paper) 72%, var(--ink));
  border: 1px solid var(--ink-3);
}

/* Related */
.pp-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .pp-related { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pp-related { grid-template-columns: 1fr; } }
.pp-related-card {
  display: flex; flex-direction: column;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform .15s ease, border-color .15s ease;
}
.pp-related-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.pp-related-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink);
  margin-bottom: 8px;
}
.pp-related-name { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.pp-related-sub {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.pp-related-arrow {
  position: absolute; top: 22px; right: 20px;
  color: var(--muted);
}

/* CTA card (bottom) */
.pp-cta-card {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
@media (max-width: 760px) {
  .pp-cta-card { flex-direction: column; align-items: flex-start; padding: 36px 28px; gap: 24px; border-radius: var(--radius-lg); }
}
.pp-cta-card .pp-eyebrow { color: color-mix(in oklab, var(--accent-ink) 62%, transparent); }
.pp-cta-title {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.025em;
  margin-top: 12px;
  color: var(--accent-ink);
}
.pp-cta-sub { color: color-mix(in oklab, var(--accent-ink) 78%, transparent); margin-top: 8px; max-width: 50ch; font-size: 15px; }
.pp-cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
@media (max-width: 760px) { .pp-cta-actions { align-items: stretch; width: 100%; } }
.pp-cta-card .btn.primary { background: var(--accent-ink); color: var(--accent); }
.pp-cta-card .btn.primary:hover { background: #001a10; }
.pp-cta-card .btn.ghost { border-color: rgba(0,40,24,.25); color: var(--accent-ink); }
.pp-cta-card .btn.ghost:hover { background: rgba(0,40,24,.06); }

/* Products index */
.pp-index-head { max-width: 760px; }
.pp-index-title {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-top: 18px;
}
.pp-index-sub {
  margin-top: 22px;
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.5;
}

.pp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .pp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pp-grid { grid-template-columns: 1fr; } }
.pp-card {
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px 22px;
  text-decoration: none;
  color: inherit;
  min-height: 260px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.pp-card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow); }
.pp-card-ink { background: var(--ink); color: var(--paper); border-color: var(--ink-2); }
.pp-card-ink .pp-card-eyebrow, .pp-card-ink .pp-card-sub { color: color-mix(in oklab, var(--paper) 60%, var(--ink)); }
.pp-card-accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pp-card-accent .pp-card-eyebrow, .pp-card-accent .pp-card-sub { color: color-mix(in oklab, var(--accent-ink) 72%, transparent); }
.pp-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: color-mix(in oklab, currentColor 8%, transparent);
  border: 1px solid color-mix(in oklab, currentColor 12%, transparent);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.pp-card-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.pp-card-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.pp-card-sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.pp-card-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Mobile tuning */
@media (max-width: 768px) {
  .pp-hero { padding: 36px 0 56px; }
  .pp-hero-glyph { max-width: 200px; }
  .pp-cap { padding: 20px 18px; }
  .pp-evidence { padding: 28px 22px; gap: 18px; }
  .pp-evidence-headline { font-size: 20px; }
  .pp-card { min-height: 220px; padding: 22px 20px; }
  .pp-card-name { font-size: 19px; }
}

/* ---------- Scrollbar (subtle) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Touch / tap performance ---------- */
a, button { touch-action: manipulation; }

/* ---------- Mobile — comprehensive responsive pass ---------- */
@media (max-width: 768px) {
  /* Tighter page padding */
  .wrap { padding: 0 18px; }
  section { padding: 64px 0; }
  section.tight { padding: 48px 0; }

  /* Nav: drop blur on mobile to eliminate scroll jitter */
  .nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  /* Hero */
  .hero { padding: 28px 0 52px; }
  .hero h1 { font-size: clamp(36px, 9vw, 52px); }
  .hero-sub { font-size: 16px; margin-top: 18px; }
  .hero-ctas { margin-top: 24px; }
  /* Hide the complex animated stage on mobile — too heavy, causes jitter */
  .hero-stage { display: none; }
  .hero-meta { margin-top: 32px; gap: 20px; }
  .hero-meta .stat b { font-size: 20px; }

  /* Bento cells */
  .cell { min-height: 200px; padding: 18px; }
  .cell.tall { min-height: 240px; }
  .cell.short { min-height: 160px; }
  .cell-title { font-size: 18px; }

  /* Section headings */
  .sec-head { margin-bottom: 28px; }
  .sec-head h2 { font-size: clamp(26px, 7vw, 36px); }

  /* Steps */
  .step { min-height: auto; padding: 20px 18px; }
  .step-num { font-size: 44px; margin-bottom: 20px; }

  /* Chat demo */
  .chatdemo { padding: 32px 24px; gap: 32px; }
  .phone-frame {
    width: 100%;
    max-width: 280px;
    height: 500px;
    border-radius: 36px;
  }

  /* Cases */
  .case { min-height: auto; padding: 22px; }
  .case-metric { font-size: 56px; }

  /* Pricing */
  .price { padding: 22px 20px 24px; }
  .price .amount { font-size: 44px; }

  /* FAQ */
  .faq-q { font-size: 16px; }

  /* Contact */
  .contact { padding: 28px 22px; gap: 32px; border-radius: var(--radius-lg); }
  .contact .formbox { padding: 20px; }

  /* Footer */
  .footer { padding: 44px 0 28px; }
  .footer-bottom { font-size: 12px; }
}

/* Very small phones */
@media (max-width: 390px) {
  .wrap { padding: 0 14px; }
  .hero h1 { font-size: 34px; }
  .phone-frame { max-width: 240px; height: 420px; }
}
