/* SpineAI website. One hand-written stylesheet.
   Palette, type scale and spacing follow site/design-brief.md, Part 2. */

:root {
  --bg: #FAFBFD;
  --surface: #FFFFFF;
  --surface-tint: #EEF3F9;
  --surface-accent: #E7ECFF;
  --ink: #0C1A2B;
  --text: #34475C;
  --muted: #5B6B7D;
  --border: #E2E8F0;
  --border-hover: #D3DCE8;
  --accent: #2F55F0;
  --accent-hover: #2141D2;
  --accent-glow: #8FB4FF;
  --success: #1E9E6A;
  --on-dark: #F3F6FA;
  --on-dark-muted: #A9B6C6;

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* type scale: mobile size at 640px, desktop size at 1024px, clamp() between */
  --fs-h1: clamp(44px, 8.333vw - 9.33px, 76px);
  --fs-h2: clamp(34px, 5.208vw + 0.67px, 54px);
  --fs-h3: clamp(19px, 0.781vw + 14px, 22px);
  --fs-h4: clamp(16px, 0.26vw + 14.33px, 17px);
  --fs-lead: clamp(17px, 0.521vw + 13.67px, 19px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-eyebrow: 12px;

  --container: 1200px;
  --gutter: 24px;
  --section-gap: 128px;

  --r-input: 8px;
  --r-tile: 12px;
  --r-header: 16px;
  --r-card: 20px;
  --r-panel: 28px;
  --r-pill: 999px;

  --shadow-header: 0 6px 24px -12px rgba(12, 26, 43, .18);
  --shadow-dropdown: 0 16px 40px -16px rgba(12, 26, 43, .22);
  --shadow-card-hover: 0 12px 32px -18px rgba(12, 26, 43, .20);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --header-top: 16px;
  --header-h: 64px;
}

@media (max-width: 1023px) { :root { --section-gap: 96px; } }
@media (max-width: 959px) { :root { --header-top: 12px; --header-h: 56px; } }
@media (max-width: 640px) { :root { --gutter: 16px; --section-gap: 72px; } }

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 104px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.icon { width: 20px; height: 20px; flex: none; }
address { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-input);
}
.skip-link:focus { top: 16px; }

h1, h2, h3, h4 { color: var(--ink); margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
h4 { font-size: var(--fs-h4); line-height: 1.35; letter-spacing: -0.005em; font-weight: 600; }
h1 em, h2 em { font-style: italic; }
h2 .muted, h1 .muted { color: var(--muted); }

.lead { font-size: var(--fs-lead); line-height: 1.55; letter-spacing: -0.005em; color: var(--text); }
.microline { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-accent); color: var(--accent);
  font-size: 13px; font-weight: 500; line-height: 1.2;
  padding: 6px 12px; border-radius: var(--r-pill); margin: 0 0 20px;
}
.eyebrow .icon { width: 15px; height: 15px; }
.eyebrow-label {
  font-size: var(--fs-eyebrow); line-height: 1.2; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 12px;
}

.hl { background: var(--surface-accent); color: var(--ink); border-radius: 4px; padding: 2px 6px; font-weight: 500; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* tidy, visible placeholder for values not decided yet */
.ph {
  display: inline-block; font-size: .92em; line-height: 1.4; color: var(--muted);
  background: var(--surface-tint); border: 1px dashed #B5C2D2; border-radius: 6px; padding: 0 6px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  font: 600 15px/1 var(--font-text); white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn-lg { height: 48px; padding: 0 24px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(#3A60F5, #2F55F0); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1B2D44; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-tint); }
.btn-chev { width: 16px; height: 16px; margin-right: -4px; transition: transform .15s; }
.btn:hover .btn-chev { transform: translateX(2px); }

.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; }
.link-arrow { width: 17px; height: 17px; transition: transform .15s; }
.text-link:hover .link-arrow, .card-link:hover .link-arrow { transform: translateX(2px); }
.prose a, .section p a, .faq a { text-decoration: none; font-weight: 500; }
.prose a:hover, .section p a:hover, .faq a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- header */

.site-header { position: fixed; top: var(--header-top); left: 0; right: 0; z-index: 50; pointer-events: none; }
.header-card {
  pointer-events: auto;
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; gap: 16px; padding: 0 12px 0 20px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--r-header);
  box-shadow: var(--shadow-header);
  position: relative;
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); flex: none; }
.wordmark-mark { width: 26px; height: 26px; }
.wordmark-text { font: 600 20px/1 var(--font-text); letter-spacing: -0.02em; }
.wordmark-text span { color: var(--accent); }

.nav-desktop { flex: 1; display: flex; justify-content: center; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: var(--r-pill);
  font: 500 15px/1.2 var(--font-text); letter-spacing: -0.005em; color: var(--text);
  background: transparent; border: 0; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--surface-tint); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent);
}
.dropdown-toggle .icon { width: 16px; height: 16px; transition: transform .16s; }
.dropdown-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.nav-contact { color: var(--text); font-weight: 500; font-size: 15px; padding: 8px 4px; }
.nav-contact:hover, .nav-contact[aria-current="page"] { color: var(--ink); }
.site-header-minimal .header-card { justify-content: space-between; }

/* Industries dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 22px); left: 50%; width: 640px; margin-left: -320px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-dropdown); padding: 12px;
  opacity: 0; transform: translateY(4px); transition: opacity .16s, transform .16s;
}
.dropdown::before { /* hover bridge across the gap under the header */
  content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px;
}
.dropdown.is-open { opacity: 1; transform: none; }
.dropdown .eyebrow-label { padding: 8px 12px 4px; margin: 0; }
.dropdown-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dropdown-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-tile);
  color: var(--ink); transition: background-color .15s;
}
.dropdown-row:hover, .dropdown-row:focus-visible { background: var(--surface-tint); }
.dropdown-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dropdown-name { font-size: 15px; font-weight: 500; line-height: 1.3; }
.dropdown-desc { font-size: 13px; color: var(--muted); line-height: 1.35; }
.row-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.dropdown-row:hover .row-chev { transform: translateX(2px); }
.dropdown-all {
  display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 12px; border-top: 1px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--accent);
}
.dropdown-all .icon { width: 16px; height: 16px; transition: transform .15s; }
.dropdown-all:hover .icon { transform: translateX(2px); }

.icon-tile {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-tile); background: var(--surface-tint); color: var(--ink);
}
.icon-tile .icon { width: 20px; height: 20px; }

/* mobile menu */
.menu-button {
  display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); border: 0; cursor: pointer; place-items: center; padding: 0;
}
.menu-icon { position: relative; width: 16px; height: 10px; display: block; }
.menu-icon span {
  position: absolute; left: 0; width: 16px; height: 1.8px; border-radius: 2px; background: #fff;
  transition: transform .2s var(--ease), top .2s var(--ease);
}
.menu-icon span:first-child { top: 0; }
.menu-icon span:last-child { top: 8.2px; }
.menu-button[aria-expanded="true"] .menu-icon span:first-child { top: 4.1px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon span:last-child { top: 4.1px; transform: rotate(-45deg); }

.menu-backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: auto;
  background: rgba(12, 26, 43, .25); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .16s;
}
.mobile-menu {
  pointer-events: auto; position: relative;
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 8px auto 0; max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-header);
  box-shadow: var(--shadow-dropdown); padding: 24px;
  opacity: 0; transform: translateY(4px); transition: opacity .16s, transform .16s;
}
.menu-backdrop.is-open, .mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu ul { list-style: none; margin-bottom: 28px; }
.mobile-main li + li { margin-top: 10px; }
.mobile-main a { font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; line-height: 1.3; }
.mobile-industries li + li { margin-top: 8px; }
.mobile-industries a { font-size: 17px; color: var(--text); line-height: 1.4; }
.mobile-menu a[aria-current="page"] { color: var(--accent); }
.mobile-menu-foot { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 959px) {
  .nav-desktop, .header-actions { display: none; }
  .header-actions-always { display: flex; }
  .menu-button { display: grid; }
  .header-card { padding: 0 8px 0 16px; }
}
@media (min-width: 960px) {
  .mobile-menu, .menu-backdrop { display: none; }
}
@media (max-width: 1080px) and (min-width: 960px) {
  .nav-link { padding: 8px 10px; }
  .nav-contact { display: none; }
}

/* ---------------------------------------------------------------- layout */

main { padding-top: calc(var(--header-top) + var(--header-h) + 24px); overflow-x: clip; }

.section {
  width: 100%; max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto; padding: calc(var(--section-gap) / 2) var(--gutter);
}
.section-narrow { max-width: calc(720px + 2 * var(--gutter)); }

.head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.head h2 + p, .head h2 + .lead { margin-top: 18px; }
.head > p:not(:first-child) { font-size: var(--fs-lead); line-height: 1.55; max-width: 620px; margin-left: auto; margin-right: auto; }
.head > p:first-child { margin: 0; }
.head-left { text-align: left; margin-left: 0; }
.head-left > p:not(:first-child) { margin-left: 0; }
@media (max-width: 640px) { .head { margin-bottom: 32px; } }

.after-note { text-align: center; max-width: 680px; margin: 40px auto 0; font-size: var(--fs-lead); color: var(--ink); }
.button-row { text-align: center; margin: 40px 0 0; }

/* ---------------------------------------------------------------- hero */

.hero { text-align: center; padding: 72px var(--gutter) 0; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; }
.hero h1 { max-width: 900px; margin: 0 auto; }
.hero .lead { max-width: 620px; margin: 24px auto 0; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.hero .microline { margin-top: 16px; }
@media (max-width: 640px) { .hero { padding-top: 40px; } }

.hero-visual { position: relative; max-width: 880px; margin: 64px auto 0; padding-bottom: 8px; }
.hero-wash {
  position: absolute; inset: -60px -12% -40px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 55% at 50% 40%, rgba(143, 180, 255, .45), transparent 70%),
    radial-gradient(40% 50% at 18% 60%, rgba(231, 236, 255, .9), transparent 70%),
    radial-gradient(40% 50% at 82% 55%, rgba(231, 236, 255, .9), transparent 70%);
  filter: blur(8px);
}
.chat-card {
  position: relative; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: 0 30px 60px -36px rgba(12, 26, 43, .35); padding: 20px 24px 24px;
}
.chat-card { animation: chat-in .5s var(--ease) .15s both; }
@keyframes chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.chat-avatar { width: 24px; height: 24px; }
.chat-title { font-weight: 600; color: var(--ink); font-size: 15px; }
.chat-sub { font-size: 13px; color: var(--muted); }
.chat-input {
  display: flex; align-items: center; gap: 12px;
  height: 68px; padding: 0 10px 0 18px;
  border: 1px solid #CCD7E6; border-radius: 16px; background: var(--surface);
  box-shadow: 0 0 0 4px rgba(47, 85, 240, .06);
}
.chat-spark { color: var(--accent); width: 22px; height: 22px; }
.chat-text { flex: 1; min-width: 0; display: flex; align-items: center; font-size: 18px; color: var(--ink); overflow: hidden; white-space: nowrap; }
.chat-typed { overflow: hidden; text-overflow: clip; }
.chat-caret { width: 2px; height: 22px; background: var(--accent); margin-left: 2px; flex: none; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chat-send { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.chat-send .icon { width: 18px; height: 18px; }
.chat-try { margin: 22px 0 12px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill);
  font-size: 14px; color: var(--ink); white-space: nowrap;
}
.chip-ico { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-accent); color: var(--accent); display: grid; place-items: center; }
.chip-ico .icon { width: 14px; height: 14px; }

.systems {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 40px 40px 0; padding-top: 0;
}
.systems::before { /* line from the chat card down to the rail */
  content: ""; position: absolute; left: 50%; top: -40px; height: 20px; border-left: 1px solid #C3CEDD;
}
.systems::after { /* the rail joining the four tiles */
  content: ""; position: absolute; left: 12.5%; right: 12.5%; top: -20px; border-top: 1px solid #C3CEDD;
}
.system {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; background: rgba(255, 255, 255, .85); border: 1px solid var(--border); border-radius: 14px;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.system::before { content: ""; position: absolute; left: 50%; top: -21px; height: 20px; border-left: 1px solid #C3CEDD; }
.system .icon { width: 18px; height: 18px; color: var(--muted); }

@media (max-width: 640px) {
  .hero-visual { margin-top: 48px; }
  .chat-card { padding: 16px 16px 18px; }
  .chat-sub { display: none; }
  .chat-input { height: 76px; padding-left: 14px; }
  .chat-text { font-size: 16px; white-space: normal; line-height: 1.35; align-items: center; }
  .chat-typed { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .chat-caret { display: none; }
  .chip:nth-child(n+4) { display: none; }
  .systems { display: none; }
}

/* ---------------------------------------------------------------- page hero (inner pages) */

.page-hero { text-align: center; padding: 72px var(--gutter) 24px; }
.page-hero-inner { max-width: 860px; margin: 0 auto; }
.page-hero .lead { max-width: 640px; margin: 22px auto 0; }
.page-hero .lead:empty { display: none; }
.page-hero .eyebrow:empty { display: none; }
@media (max-width: 640px) { .page-hero { padding-top: 40px; } }

/* ---------------------------------------------------------------- cards */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .cards, .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; gap: 16px; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 32px; color: var(--text);
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 15.5px; }
.card p + p { margin-top: 10px; }
.card .icon-tile { margin-bottom: 20px; width: 44px; height: 44px; }
.card .icon-tile .icon { width: 22px; height: 22px; }
.card .counter { display: block; font-size: 12px; color: var(--muted); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .card { padding: 24px; } }

.card.illustrated { padding: 12px 12px 32px; text-align: center; }
.card.illustrated > :not(.illo) { padding: 0 20px; }
.card.illustrated h3 { margin-top: 24px; }
.illo {
  height: 200px; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(80% 90% at 50% 0%, #fff 0%, transparent 70%), linear-gradient(180deg, #E9F0FA, var(--surface-tint));
}
.illo svg { width: 100%; height: 100%; }

.card-link { display: block; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); border-color: var(--border-hover); }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--accent); }

.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry-card { padding: 28px; }
.industry-card .icon-tile { margin-bottom: 18px; }
.industry-card h3 { font-size: 19px; margin-bottom: 8px; }
.industry-card p { font-size: 15px; }
@media (max-width: 1023px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .industry-grid { grid-template-columns: 1fr; gap: 14px; } .industry-card { padding: 22px; } }

/* example cards with an icon */
.example h3 { font-size: 19px; }

/* ---------------------------------------------------------------- dark steps band */

.band {
  background: var(--ink); color: var(--on-dark-muted); border-radius: var(--r-panel);
  padding: 96px 64px; position: relative; overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: auto -20% -60% 30%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(47, 85, 240, .28), transparent);
}
.band .head h2, .band h3, .band h4 { color: var(--on-dark); }
.band .head > p:not(:first-child) { color: var(--on-dark-muted); }
.band .eyebrow { background: rgba(255, 255, 255, .08); color: #C9D6FF; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: step; margin-top: 64px; }
.step { position: relative; counter-increment: step; }
.step::after {
  content: "0" counter(step); position: absolute; top: 4px; right: 0;
  font-size: 12px; color: var(--on-dark-muted); letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.step-icon { width: 48px; height: 48px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); display: grid; place-items: center; color: var(--on-dark); margin-bottom: 24px; }
.step-icon .icon { width: 24px; height: 24px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { margin: 0; font-size: 15.5px; color: var(--on-dark-muted); }
.band .after-note { color: var(--on-dark); margin-top: 56px; font-size: 16px; }
.band .after-note a { color: #AFC3FF; }
@media (max-width: 1023px) { .band { padding: 72px 40px; } }
@media (max-width: 800px) {
  .band { padding: 56px 24px; }
  .steps { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; padding-left: 0; }
  .step { padding-left: 64px; }
  .step-icon { position: absolute; left: 0; top: 0; margin: 0; }
  .steps::before { content: ""; position: absolute; left: 24px; top: 48px; bottom: 24px; border-left: 1px solid rgba(255, 255, 255, .16); }
  .step::after { right: auto; left: 64px; top: -20px; }
  .step { margin-top: 12px; }
}

/* ---------------------------------------------------------------- split rows */

.split { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
.split.reverse > :first-child { order: 2; }
.split h2 { margin-bottom: 18px; }
.split .lead { margin-bottom: 18px; }
.split-text > :last-child { margin-bottom: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }

.list-check ul, ul.list-check { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.list-check li { position: relative; padding-left: 32px; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F55F0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.numbered ol, ol.numbered { list-style: none; counter-reset: n; display: grid; gap: 12px; margin: 0; padding: 0; }
.numbered li {
  counter-increment: n; position: relative; padding: 18px 20px 18px 64px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; color: var(--text);
}
.numbered li::before {
  content: counter(n); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-accent); color: var(--accent); font-weight: 600; font-size: 14px; display: grid; place-items: center;
}
.numbered li strong { color: var(--ink); font-weight: 600; }

.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); padding: 40px;
}
.panel.tint { background: var(--surface-tint); border-color: transparent; }
@media (max-width: 640px) { .panel { padding: 24px; } }

/* page-specific touches */
.split-text .eyebrow { margin-bottom: 16px; }
.split-text > p:first-child { margin: 0; }
.split-text .list-check + p, .split-text .list-check + .text-link { margin-top: 28px; }
.price-teaser { padding: 56px; }
.price-teaser .split { align-items: center; }
.price-teaser h2 { margin: 0; }
.price-teaser .text-link { margin-top: 28px; }
.step-row { align-items: center; }
.step-row .lead { margin-top: 0; }
.module-examples { display: grid; gap: 16px; }
.module-card { padding: 28px; }
.module-card .icon-tile { margin-bottom: 16px; }
.chat-split { grid-template-columns: 7fr 5fr; align-items: center; }
.where-row { align-items: center; }
.where-row .cards.two { grid-template-columns: 1fr 1fr; }
.industry-note { margin-top: 32px; color: var(--ink); }
.industry-note p { margin: 0 0 16px; }
.industry-note p:last-child { margin: 0; }
.example-panel { text-align: center; padding: 48px 40px; }
.example-panel .eyebrow { background: var(--surface); }
.example-figure { font-family: var(--font-display); font-size: clamp(26px, 2vw + 16px, 36px); line-height: 1.2; color: var(--ink); max-width: 620px; margin: 0 auto 16px; text-wrap: balance; }
.example-figure strong { font-weight: 400; color: var(--accent); }
.example-note { font-size: 14px; color: var(--muted); margin: 0; }
.start-panel { text-align: center; padding: 48px 32px; }
.start-panel .microline { max-width: 460px; margin: 18px auto 0; }
.small-note { font-size: 14px; color: var(--muted); }
.question-cards h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 1vw + 18px, 28px); line-height: 1.2; letter-spacing: -0.01em; }
.band .text-link { color: #AFC3FF; }
.notfound .hero-actions p { margin: 0; }
@media (max-width: 900px) {
  .chat-split { grid-template-columns: 1fr; }
  .price-teaser { padding: 32px 24px; }
}
@media (max-width: 640px) { .where-row .cards.two { grid-template-columns: 1fr; } }

/* framed screenshots from the demo build */
.shot { margin: 0; }
.shot-frame {
  border-radius: var(--r-card); padding: 10px; background: linear-gradient(180deg, #E9F0FA, var(--surface-tint));
  border: 1px solid var(--border);
}
.shot-frame img { border-radius: 12px; width: 100%; background: #0F141B; }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------------------------------------------------------------- comparison */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-panel); border: 1px solid var(--border); overflow: hidden; background: var(--surface); }
.compare-col { padding: 40px; }
.compare-col h3 { font-size: 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.compare-col.after { background: var(--surface-accent); }
.compare-col ul { list-style: none; display: grid; gap: 0; }
.compare-col li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--border); font-size: 15.5px; }
.compare-col.after li { border-top-color: rgba(47, 85, 240, .14); color: var(--ink); }
.compare-col li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 22px; height: 22px; border-radius: 50%;
  background: #EDF1F6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B7D' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.compare-col.after li::before {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E9E6A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 800px) {
  .compare { grid-template-columns: 1fr; gap: 16px; border: 0; background: none; border-radius: 0; overflow: visible; }
  .compare-col { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); padding: 28px 24px; }
  .compare-col.after { background: var(--surface-accent); border-color: transparent; }
}

/* ---------------------------------------------------------------- FAQ */

.faq { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
.faq .head { text-align: left; margin: 0; }
.faq .head > p:not(:first-child) { margin-left: 0; }
.faq-list { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); border-radius: 0; transition: background-color .2s; }
.faq details[open] { background: var(--surface-tint); border-radius: var(--r-tile); border-bottom-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 16px; font-size: 17px; font-weight: 500; color: var(--ink); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; transition: transform .2s var(--ease);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C1A2B' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > :not(summary) { padding: 0 16px; margin: 0 0 16px; max-width: 62ch; }
.faq details > :last-child { padding-bottom: 6px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 32px; } }

/* ---------------------------------------------------------------- CTA panel */

.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); padding: 96px 32px;
}
.cta-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 70% at 50% 120%, rgba(143, 180, 255, .55), transparent 70%),
    radial-gradient(35% 60% at 10% 110%, rgba(231, 236, 255, .9), transparent 70%),
    radial-gradient(35% 60% at 90% 110%, rgba(231, 236, 255, .9), transparent 70%);
}
.cta-panel > * { position: relative; }
.cta-panel h2 { max-width: 720px; margin: 0 auto; }
.cta-panel .lead { max-width: 560px; margin: 18px auto 32px; }
@media (max-width: 640px) { .cta-panel { padding: 64px 20px; } }

/* ---------------------------------------------------------------- prose pages */

.section-prose { padding-top: 24px; }
.prose { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: clamp(28px, 2.6vw + 12px, 38px); margin: 56px 0 16px; }
.prose h3 { margin: 32px 0 10px; font-size: 19px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--muted); }
.prose > :first-child { margin-top: 0; }
.prose .legal { font-size: 15px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 32px; margin-top: 56px; }
.prose .legal h2 { font-family: var(--font-text); font-size: 17px; font-weight: 600; margin: 0 0 12px; letter-spacing: 0; }
.prose .legal p { margin-bottom: .8em; }
.contact-card { text-align: center; }
.contact-card .big { font-size: 22px; color: var(--ink); margin: 6px 0 22px; }

/* ---------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 64px var(--gutter) 32px; margin-top: 32px; }
.footer-inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 4fr 8fr; gap: 48px; }
.footer-desc { color: var(--muted); font-size: 15px; max-width: 34ch; margin: 18px 0 20px; }
.footer-legal { font-size: 14px; color: var(--text); line-height: 1.8; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links ul { list-style: none; }
.footer-links li + li { margin-top: 9px; }
.footer-links a { font-size: 14px; color: var(--text); transition: color .15s; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  max-width: var(--container); margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted);
}
.footer-bottom p { margin: 0; }
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}

/* ---------------------------------------------------------------- 404 */

.notfound { text-align: center; padding-bottom: 40px; }
.notfound .hero-actions { margin-top: 8px; }

/* ---------------------------------------------------------------- motion */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .card-link:hover, .btn:active { transform: none; }
}
.shot-wide { max-width: 1000px; margin: 0 auto; }
