/* SAIN public site. Ink + blue on a warm off-white, Space Grotesk over Inter (2026-11-28, from the
   design canvas "custom AI assistants"; was deep teal + coral with Source Serif 4, and before that
   ink navy + amber). */

:root {
  --ground: #f6f5f1;
  --surface: #ffffff;
  --soft: #f0efea;
  --line: #e2e0d9;
  --field: #c9ccd3;
  --ink: #16181d;
  --muted: #4a505b;
  --accent: #2b59c3;
  --accent-2: #2249a3;
  --accent-soft: #eaf0fb;
  --accent-line: #c9d6f2;
  --dark-line: #3a3e47;
  --on-dark-body: #c9ced8;
  --on-dark-muted: #a9b1c0;
  --on-dark-accent: #8fb0f0;
  --on-accent-muted: #e6ecfa;
  --radius: 12px;
  --radius-lg: 16px;
  --measure: 45rem;
  /* Side gutter, growing to center the content once the screen is wider than --max. */
  --max: 75rem;
  --pad: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: inherit;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.19rem; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2c2f37; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--soft); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1.05rem; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem var(--pad);
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: 1.98rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
}
/* The mark: two gate posts in the text color, the blue proposal passing between them. */
.mark { width: 2.7rem; height: 2.7rem; fill: var(--accent); }
.mark .post { fill: currentColor; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }
.top .btn { padding: 0.7rem 1.2rem; font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 48rem) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
}

/* Sections: ground by default, a white band between borders where the design alternates. */
section { padding: clamp(3.5rem, 8vw, 5rem) var(--pad); scroll-margin-top: 3rem; }
.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: var(--measure);
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.section-head p { font-size: 1.125rem; color: var(--muted); }

/* Hero: the pitch beside a sample conversation. */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 3.5rem;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.hero .lede { max-width: 33rem; font-size: 1.19rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.demo {
  margin: 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(22, 24, 29, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.demo figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.demo figcaption strong { color: var(--ink); }
.turn {
  max-width: 85%;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.turn-user { align-self: flex-start; background: var(--soft); }
.turn-agent { align-self: flex-end; background: var(--accent-soft); }
.cite {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  vertical-align: 0.15em;
}
.sources {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.sources li { margin-bottom: 0.25rem; }
.sources .cite { margin-right: 0.4rem; }

/* Card grids */
.cards { display: grid; gap: 1.25rem; }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.cards article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cards article p { color: var(--muted); }
.band .cards article { background: transparent; }
.time {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent) !important;
}

/* Industry tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 1.5rem; }
.tab {
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--field);
  background: var(--surface);
  color: var(--ink);
  font: 600 0.95rem Inter, system-ui, sans-serif;
  cursor: pointer;
}
.tab:hover { border-color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.industry article { padding: 1.375rem; }

/* Onboard it like a new hire */
.dark { background: var(--ink); color: #fff; }
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 3rem;
  align-items: start;
}
.job {
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.job .eyebrow { font-size: 0.8125rem; color: var(--on-dark-muted); }
.job h2 { font-size: 2rem; }
.job dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(5.5rem, 8.75rem) 1fr;
  gap: 0.625rem 1rem;
}
.job dt { color: var(--on-dark-muted); }
.job dd { margin: 0; }
.onboard { display: flex; flex-direction: column; gap: 1.75rem; }
.onboard ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.375rem; }
.onboard li { display: flex; gap: 1rem; }
.onboard .n {
  flex: 0 0 2rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--on-dark-accent);
}
.onboard h3 { margin-bottom: 0.25rem; }
.onboard p { color: var(--on-dark-body); }
.onboard .fine { font-size: 0.9rem; color: var(--on-dark-muted); }

/* Before and after */
.compare h3 { font-size: 1.375rem; color: var(--muted); }
.compare ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.875rem; }
.compare .after { background: var(--accent-soft); border-color: var(--accent-line); }
.compare .after h3 { color: var(--accent); }

/* Hand-off checklist and calculator */
.tools > * {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tools h2 { font-size: 1.875rem; }
.tools p { color: var(--muted); }
.handoff label { display: flex; gap: 0.75rem; align-items: center; min-height: 44px; cursor: pointer; }
.handoff input { width: 20px; height: 20px; accent-color: var(--accent); }
.handoff .btn { align-self: flex-start; margin-top: 0.25rem; }
.calc label { font-weight: 600; font-size: 0.875rem; }
.calc input {
  min-height: 48px;
  padding: 0 0.875rem;
  border: 1px solid var(--field);
  border-radius: 8px;
  font: 1rem Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}
.calc input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc-out { border-top: 1px solid var(--line); padding-top: 1.125rem; display: flex; flex-direction: column; gap: 0.25rem; }
.calc-out p { font-size: 0.875rem; }
.calc-out output {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
}

/* What stays with you, and the controls behind it */
.control-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem 2.5rem;
  color: var(--muted);
}
.control-list strong { display: block; color: var(--ink); margin-bottom: 0.25rem; }
.fit {
  margin-top: 2.25rem;
  padding: 1.25rem 1.5rem;
  max-width: var(--measure);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Stories */
.stories article { padding: 1.75rem; }
.stories .changes { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.stories strong { color: var(--ink); }

/* Contact: the accent panel at the foot of the page. */
.contact-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
}
.contact-copy { max-width: 40rem; display: flex; flex-direction: column; gap: 0.625rem; }
.contact p { font-size: 1.125rem; color: var(--on-accent-muted); }
.contact-box { align-items: flex-start; }
.contact-copy { flex: 1 1 18rem; }

/* The demo form, on the accent panel. */
.demo-form, .demo-done { flex: 1 1 26rem; max-width: 36rem; }
.demo-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.demo-fields label { display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.875rem; font-weight: 600; color: #fff; }
.demo-fields .wide { grid-column: 1 / -1; }
.demo-fields .optional { font-weight: 400; color: var(--on-accent-muted); }
.demo-fields input, .demo-fields select, .demo-fields textarea {
  min-height: 48px;
  padding: 0.625rem 0.875rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 1rem Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}
.demo-fields textarea { resize: vertical; }
.demo-fields input:focus-visible, .demo-fields select:focus-visible, .demo-fields textarea:focus-visible,
.demo-form .btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.demo-fields .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact .demo-handoff { margin-top: 1rem; font-size: 0.95rem; }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.25rem; }
.demo-form .btn { border: 0; cursor: pointer; }
.demo-form .btn:disabled { opacity: 0.7; cursor: progress; }
.contact .demo-status { font-size: 0.95rem; color: #fff; }
.demo-done { display: flex; flex-direction: column; gap: 0.5rem; outline: none; }
.demo-done h3 { font-size: 1.5rem; }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.foot .brand { color: var(--ink); font-size: 1.575rem; }
.foot .mark { width: 2.16rem; height: 2.16rem; }
.foot .email { display: inline-flex; align-items: center; gap: 0.25rem; margin-left: 1rem; }
.copy-email {
  display: inline-flex;
  padding: 0.375rem;
  border: 0;
  border-radius: 0.375rem;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.copy-email[hidden] { display: none; }
.copy-email:hover, .copy-email:focus-visible { color: var(--accent); background: var(--accent-soft); }
.copy-done { font-size: 0.8125rem; color: var(--accent); }
.foot .copyright { flex-basis: 100%; font-size: 0.8125rem; }
