/* Private AI sales page. System fonts only: zero third-party requests. */

:root {
  --bg: #f6f4ee;
  --bg-alt: #eeebe3;
  --surface: #fffdf8;
  --ink: #15171b;
  --muted: #5a5f69;
  --line: #ddd8cc;
  --accent: #1d5c47;
  --accent-ink: #ffffff;
  --accent-soft: #dfeae3;
  --node-bg: #111418;
  --node-ink: #e9e7e1;
  --node-muted: #8b919b;
  --ok: #5fd39a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114;
    --bg-alt: #14171b;
    --surface: #181b20;
    --ink: #ecebe6;
    --muted: #9ba1ab;
    --line: #2a2e35;
    --accent: #6fcf9f;
    --accent-ink: #0b1a13;
    --accent-soft: #17291f;
    --node-bg: #0a0c0f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.12; margin-bottom: 1rem; }
h3 { font-size: 1.08rem; line-height: 1.35; }
p { margin: 0; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.alt { background: var(--bg-alt); }
.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.intro { color: var(--muted); max-width: 62ch; font-size: 1.08rem; }
.fine { color: var(--muted); font-size: 0.88rem; margin-top: 1.25rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.35em; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  font: 600 0.98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none; touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px -8px var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-sm { padding: 0.6em 1.05em; font-size: 0.9rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 2rem; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand-mark {
  width: 22px; height: 33px; background: currentColor;
  -webkit-mask: url(/logo.svg) center / contain no-repeat; mask: url(/logo.svg) center / contain no-repeat;
}
.nav nav { display: flex; gap: 1.6rem; margin-left: auto; font-size: 0.93rem; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0 48px;
  background:
    radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: 0.35;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 60%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); line-height: 1.02; margin-bottom: 1.5rem; }
h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 54ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.node {
  margin: 0; padding: 1.25rem 1.4rem 1rem; border-radius: 18px;
  background: var(--node-bg); color: var(--node-ink); font-family: var(--mono); font-size: 0.86rem;
  box-shadow: 0 30px 60px -30px rgba(10, 20, 15, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.node-head { display: flex; align-items: center; gap: 0.6rem; padding-bottom: 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.node-head .tag { margin-left: auto; white-space: nowrap; padding: 0.15em 0.6em; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; color: var(--node-muted); font-size: 0.76rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 211, 154, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(95, 211, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 211, 154, 0); } }
.node dl { margin: 0.4rem 0 0; }
.node dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.62rem 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.07); }
.node dt { color: var(--node-muted); }
.node dd { margin: 0; text-align: right; }
.node dd.ok { color: var(--ok); }
.node figcaption { margin-top: 0.8rem; color: var(--node-muted); font-size: 0.72rem; text-align: right; opacity: 0.7; }

.strip {
  position: relative; margin-top: clamp(48px, 7vw, 88px); padding-top: 1.5rem;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem;
  color: var(--muted); font-size: 0.9rem;
}
.strip .names { display: inline-flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-left: 0.6rem; color: var(--ink); }

/* Why private AI */
.cards { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cards article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.cards h3 { margin-bottom: 0.45rem; }
.cards p { color: var(--muted); font-size: 0.95rem; }

/* What we do */
.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding-top: 3.2rem; }
.steps li::before {
  content: counter(st); position: absolute; top: 0; left: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); font: 600 0.9rem var(--mono); background: var(--bg);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.1rem; left: 2.8rem; right: -1.9rem; height: 1px; background: var(--line); }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--muted); font-size: 0.93rem; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.direct { color: var(--muted); margin-top: 1.5rem; }
.direct a { color: var(--accent); font-weight: 600; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.35); }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form fieldset + fieldset { margin-top: 2rem; }
.form.js fieldset + fieldset { margin-top: 0; }
.form legend { font: 600 1.3rem/1.3 var(--serif); margin-bottom: 1rem; padding: 0; }
.q { font-weight: 600; margin: 1.5rem 0 0.75rem; font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips label { cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 0.5em 0.95em; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.9rem; transition: all 0.15s; background: var(--bg);
}
.chips label:hover span { border-color: var(--muted); }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.field { display: grid; gap: 0.35rem; font-size: 0.88rem; font-weight: 600; margin-top: 1.25rem; }
.row .field { margin-top: 0; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 1rem var(--sans); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.7em 0.85em; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .btn { margin-top: 1.5rem; }
.form-actions { display: flex; justify-content: space-between; gap: 0.75rem; }
.hp { position: absolute; left: -9999px; }
.progress { height: 3px; background: var(--line); border-radius: 3px; margin-bottom: 1.75rem; overflow: hidden; }
.progress span { display: block; height: 100%; width: 50%; background: var(--accent); transition: width 0.3s ease; }
.form[data-step="2"] .progress span { width: 100%; }
.form:not(.js) .js-only { display: none; }
.done h3 { font: 600 1.5rem var(--serif); margin-bottom: 0.6rem; }
.done p { color: var(--muted); }
.done a { color: var(--accent); }
.status { margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); }
.status:empty { display: none; }
.status a { color: var(--accent); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.footer-inner p:last-child { max-width: 52ch; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .node { max-width: 520px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps li { padding: 0 0 0 3.4rem; min-height: 2.2rem; }
  .steps li:not(:last-child)::after { top: 2.6rem; bottom: -1.2rem; left: 1.1rem; right: auto; width: 1px; height: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .row { grid-template-columns: 1fr; }
  .strip { flex-direction: column; }
  .strip .names { display: flex; margin: 0.3rem 0 0; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .node { font-size: 0.8rem; padding: 1.1rem 1.1rem 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
