/* Lama Works: shared styles for lama.works */

/* Fonts: self-hosted, latin subset */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens: light is the default */
:root {
  color-scheme: light;
  --paper: #F6F4EF;
  --paper-2: #EEEAE2;
  --surface: #FFFFFF;
  --ink: #13171C;
  --ink-2: #4A525C;
  --line: #E3DFD6;
  --line-2: #D3CDC1;
  --field: #8C877D;
  --accent: #0F6E66;
  --accent-hover: #0B5953;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEFEA;
  --signal: #B4460E;
  --signal-soft: #FBE9DD;
  --dot: #D9D3C7;
  --panel: #0F6E66;
  --panel-ink: #FFFFFF;
  --panel-ink-2: #D3ECE6;
  --panel-dot: rgb(255 255 255 / 0.2);
  --shadow-1: 0 1px 2px rgb(19 23 28 / 0.04), 0 4px 16px -8px rgb(19 23 28 / 0.08);
  --shadow-2: 0 1px 2px rgb(19 23 28 / 0.05), 0 18px 40px -18px rgb(19 23 28 / 0.18);
  --shadow-3: 0 2px 4px rgb(19 23 28 / 0.05), 0 24px 48px -16px rgb(19 23 28 / 0.22);

  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans-el: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", system-ui, sans-serif;

  --maxw: 1120px;
  --gutter: 16px;
  --header-h: 64px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0E1215;
    --paper-2: #1C2228;
    --surface: #151A1F;
    --ink: #ECEAE4;
    --ink-2: #A3ABB3;
    --line: #252C33;
    --line-2: #333C45;
    --field: #66707A;
    --accent: #4FC1B0;
    --accent-hover: #72D2C4;
    --accent-ink: #062320;
    --accent-soft: #123A35;
    --signal: #F59E6B;
    --signal-soft: #3A2217;
    --dot: #252C33;
    --panel: #123A35;
    --panel-ink: #ECEAE4;
    --panel-ink-2: #B9CCC8;
    --panel-dot: rgb(255 255 255 / 0.12);
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px -8px rgb(0 0 0 / 0.4);
    --shadow-2: 0 1px 2px rgb(0 0 0 / 0.35), 0 18px 40px -18px rgb(0 0 0 / 0.6);
    --shadow-3: 0 2px 4px rgb(0 0 0 / 0.35), 0 24px 48px -16px rgb(0 0 0 / 0.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0E1215;
  --paper-2: #1C2228;
  --surface: #151A1F;
  --ink: #ECEAE4;
  --ink-2: #A3ABB3;
  --line: #252C33;
  --line-2: #333C45;
  --field: #66707A;
  --accent: #4FC1B0;
  --accent-hover: #72D2C4;
  --accent-ink: #062320;
  --accent-soft: #123A35;
  --signal: #F59E6B;
  --signal-soft: #3A2217;
  --dot: #252C33;
  --panel: #123A35;
  --panel-ink: #ECEAE4;
  --panel-ink-2: #B9CCC8;
  --panel-dot: rgb(255 255 255 / 0.12);
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px -8px rgb(0 0 0 / 0.4);
  --shadow-2: 0 1px 2px rgb(0 0 0 / 0.35), 0 18px 40px -18px rgb(0 0 0 / 0.6);
  --shadow-3: 0 2px 4px rgb(0 0 0 / 0.35), 0 24px 48px -16px rgb(0 0 0 / 0.7);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01" off;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
.nowrap { white-space: nowrap; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
:lang(el) { font-family: var(--sans-el); }
svg { flex: none; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--accent-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 0.9688rem/1.2 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-sm { min-height: 38px; padding: 0 16px; border-radius: 10px; font-size: 0.9063rem; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.btn-arrow { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
.btn:hover .btn-arrow { transform: translateX(2px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
}
.brand .mark { width: 28px; height: 28px; }
.wordmark {
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.025em;
  line-height: 1;
}
.wordmark .dot { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -6px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-toggle .bar { transition: transform 0.2s ease; transform-origin: 12px 12px; }
.nav-toggle[aria-expanded="true"] .bar-1 { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar-2 { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 32px -24px rgb(19 23 28 / 0.25);
  }
  .js .site-header.is-open .site-nav { display: flex; }
  .js .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav-links a {
    padding: 14px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.0625rem;
  }
  .js .nav-links a:hover { background: none; color: var(--accent); }
  .js .nav-cta { min-height: 48px; font-size: 1rem; }

  /* Without JavaScript the links stay visible in a second row */
  .no-js .header-inner { flex-wrap: wrap; row-gap: 0; }
  .no-js .site-nav { width: 100%; overflow-x: auto; padding-bottom: 8px; }
  .no-js .nav-links a { padding: 6px 10px 6px 0; white-space: nowrap; }
  .no-js .nav-cta { display: none; }
}

/* Sections */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-pilot { padding-top: 0; scroll-margin-top: 24px; }
.band-surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
}
.section-text { color: var(--ink-2); font-size: 1.125rem; line-height: 1.6; }
.section-sub { margin-top: 18px; color: var(--ink-2); font-size: 1.0625rem; }

/* Hero */
.hero { padding-block: clamp(32px, 4vw, 56px) clamp(64px, 8vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.875rem, 1.6rem + 3.7vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.018em;
}
h1 em { font-style: italic; color: var(--accent); letter-spacing: -0.01em; }
.lead {
  max-width: 34em;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.hero-note .sep { color: var(--ink-2); font-weight: 700; }

/* Hero illustration */
.hero-art { position: relative; min-width: 0; }
.hero-art figcaption {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  text-align: right;
}
.art {
  position: relative;
  padding: 62px 24px 150px 36px;
  font-size: 14px;
  line-height: 1.45;
}
.art-dots {
  position: absolute;
  z-index: 0;
  inset: 24px -8px 16px 0;
  border-radius: 28px;
  background-image: radial-gradient(circle at 1px 1px, var(--dot) 1.1px, transparent 1.4px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 42%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 42%, transparent 100%);
}
.art p { margin: 0; }

.chat {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); flex: none; }
.chat-title { font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.badge-ai {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.chat-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 20px; }
.msg { display: flex; flex-direction: column; gap: 6px; max-width: 86%; }
.msg-staff { align-self: flex-start; align-items: flex-start; max-width: 80%; }
.msg-bot { align-self: flex-end; align-items: flex-end; }
.msg-from { display: inline-flex; align-items: center; gap: 6px; padding-inline: 4px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.from-mark { width: 14px; height: 14px; }
.bubble { padding: 10px 14px 11px; border-radius: 16px; color: var(--ink); }
.msg-staff .bubble { background: var(--paper-2); border-top-left-radius: 6px; }
.msg-bot .bubble { background: var(--accent-soft); border-top-right-radius: 6px; }
.bubble .tr {
  margin-top: 8px !important;
  padding-top: 7px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.45;
}
.chat-compose {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}
.compose-field { flex: 1; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.compose-send {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
}
.compose-send svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-signal { background: var(--signal-soft); color: var(--signal); }
.tag-accent { background: var(--accent-soft); color: var(--accent); }

.approval {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: min(340px, 68%);
  padding: 16px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-3);
}
.approval-title { margin-top: 12px !important; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
.approval-meta { margin-top: 6px !important; color: var(--ink-2); font-size: 12.5px; }
.approval-actions { display: flex; gap: 8px; margin-top: 14px; }
.fake-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
}
.fake-btn-primary { background: var(--accent); color: var(--accent-ink); }
.fake-btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }

.toast {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  display: flex;
  gap: 12px;
  width: 292px;
  padding: 14px 16px 15px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-3);
}
.toast-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.toast-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.toast-body p { margin-top: 7px !important; color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }

@media (prefers-reduced-motion: no-preference) {
  .chat { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .approval { animation: rise 0.7s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .toast { animation: rise 0.7s 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Why now (inverted band) */
.band-ink {
  --ink: #ECEAE4;
  --ink-2: #A9B0B8;
  --line: #2B333B;
  --line-2: #3A444E;
  --surface: #1A2026;
  --accent: #5CC7B7;
  --accent-soft: #123A35;
  --signal: #F59E6B;
  background: #13171C;
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band-ink { background: #151A1F; border-block: 1px solid #252C33; }
}
:root[data-theme="dark"] .band-ink { background: #151A1F; border-block: 1px solid #252C33; }

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.band-ink .section-text { color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 36px 36px 4px 0; }
.stat + .stat { padding-left: 36px; border-left: 1px solid var(--line); }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(4rem, 3rem + 3vw, 5.75rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--signal);
}
.stat-num .unit { font-size: 0.5em; letter-spacing: -0.01em; }
.stat-text { margin-top: 20px; max-width: 30ch; color: var(--ink); font-size: 1.0625rem; line-height: 1.5; }
.stat-src { margin-top: 20px; color: var(--ink-2); font-size: 0.875rem; }
.stat-src a { color: var(--ink); display: inline-flex; align-items: center; gap: 4px; text-decoration-color: var(--line-2); }
.stat-src a:hover { text-decoration-color: currentColor; }
.ext { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }

/* Icons */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Product */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 20px;
  align-items: center;
  align-content: start;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.icon-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 1.4rem + 0.6vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
}
.feature p { grid-column: 1 / -1; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 1rem; }

/* How it works */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: calc((100% - 96px) / 4 - 22px);
  border-top: 1px dashed var(--line-2);
}
.step { position: relative; }
.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1;
}
.step h3 {
  margin-top: 28px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 1.1;
}
.step p { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }

/* Built for clinics */
.clinics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.clinics-copy .section-text { margin-top: 24px; max-width: 34em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
}
.chips li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.trust-grid li { padding: clamp(24px, 3vw, 36px); background: var(--paper); }
.trust-grid .icon { color: var(--accent); }
.trust-grid h3 { margin-top: 22px; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.trust-grid p { margin-top: 8px; color: var(--ink-2); font-size: 0.9688rem; line-height: 1.55; }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-2); }
.plan-tag {
  position: absolute;
  top: -13px;
  left: clamp(26px, 3vw, 34px);
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.plan-size { margin-top: 4px; color: var(--ink-2); font-size: 0.9375rem; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 28px; }
.plan-price .amount { font-family: var(--serif); font-size: 3.5rem; line-height: 1; letter-spacing: -0.02em; }
.plan-price .per, .plan-price .from { color: var(--ink-2); font-size: 0.9375rem; }
.plan-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 32px !important;
  padding-top: 26px !important;
  border-top: 1px solid var(--line);
  font-size: 0.9688rem;
  line-height: 1.45;
}
.plan-list li { position: relative; padding-left: 28px; }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.3em;
  width: 14px;
  height: 8px;
  border-left: 1.75px solid var(--accent);
  border-bottom: 1.75px solid var(--accent);
  transform: rotate(-45deg) translate(1px, -1px);
  transform-origin: center;
}
.plan .btn { margin-top: auto; width: 100%; }
.plans-note { margin-top: 28px; text-align: center; color: var(--ink-2); font-size: 0.9688rem; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.person {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 22px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.monogram {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.625rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.person h3 { font-family: var(--serif); font-weight: 400; font-size: 1.875rem; line-height: 1.08; }
.role { margin-top: 10px; color: var(--accent); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.bio { margin-top: 14px; color: var(--ink-2); font-size: 1rem; }
.team-note { display: flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--ink-2); font-size: 0.9688rem; }
.team-note svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  display: block;
  padding: 22px 52px 22px 0;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  border-radius: 4px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-icon {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  margin: -0.75px 0 0 -5px;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.faq-icon::after { transform: rotate(90deg); }
details[open] .faq-icon::after { transform: rotate(0deg); }
.answer { padding: 0 52px 24px 0; color: var(--ink-2); font-size: 1.0625rem; max-width: 64ch; }

/* Pilot form */
.pilot {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.pilot-intro {
  position: relative;
  padding: clamp(28px, 5vw, 56px);
  background: var(--panel);
  color: var(--panel-ink);
}
.panel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background-image: radial-gradient(circle at 1px 1px, var(--panel-dot) 1.1px, transparent 1.4px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent);
  mask-image: linear-gradient(to top, #000 10%, transparent);
  pointer-events: none;
}
.pilot-intro h2, .pilot-intro .section-text { position: relative; z-index: 1; }
.pilot-intro .section-text { margin-top: 20px; max-width: 30em; color: var(--panel-ink-2); }
.pilot-form { padding: clamp(24px, 5vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full, .field-check, .form-actions, .form-status { grid-column: 1 / -1; }
.field label, .field-check label { font-size: 0.9375rem; font-weight: 500; line-height: 1.4; }
.req { color: var(--signal); font-weight: 600; }
.opt { color: var(--ink-2); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--field);
  border-radius: var(--r-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
  border-radius: var(--r-sm);
}
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select svg {
  position: absolute;
  right: 14px;
  top: 50%;
  margin-top: -8px;
  pointer-events: none;
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.field-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 4px;
}
.field-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.field-check label { color: var(--ink-2); font-weight: 400; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.form-help { flex: 1 1 240px; color: var(--ink-2); font-size: 0.875rem; line-height: 1.5; }
.form-status {
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.9688rem;
}
.form-status:empty { padding: 0; background: none; }
.form-status.is-error { background: var(--signal-soft); }

/* Footer */
.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 28px 48px; }
.footer-brand p { margin-top: 14px; color: var(--ink-2); font-size: 0.9688rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; color: var(--ink-2); font-size: 0.9688rem; }
.footer-links a { color: var(--ink); }
.footer-links a:hover { color: var(--accent); }
.copyright { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.875rem; }

/* Article pages (privacy, 404) */
.article { max-width: 720px; margin-inline: auto; padding-block: clamp(48px, 8vw, 104px); }
.article h1 { font-size: clamp(2.75rem, 2rem + 3vw, 4rem); }
.article .updated { margin-top: 16px; color: var(--ink-2); font-size: 0.9688rem; }
.article h2 { margin-top: 48px; font-size: clamp(1.75rem, 1.5rem + 1vw, 2.125rem); line-height: 1.15; }
.article p { margin-top: 14px; font-size: 1.0625rem; line-height: 1.7; }
.article .intro-rule { margin-top: 32px; border: 0; border-top: 1px solid var(--line); }
.notfound { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.notfound .mark-lg { width: 56px; height: 56px; margin-bottom: 32px; }
.notfound p { color: var(--ink-2); }
.notfound .btn { margin-top: 32px; }

/* Responsive */
@media (max-width: 1199px) {
  .art { padding-left: 16px; }
  .toast { width: 262px; right: -8px; }
  .hero-actions .btn-lg { padding: 0 20px; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .hero-note { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-note .sep { display: none; }
  .hero-note span:not(.sep) { display: inline-flex; align-items: center; gap: 10px; }
  .hero-note span:not(.sep)::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
}
@media (max-width: 1023px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; gap: 28px; }
}
@media (max-width: 959px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 580px; width: 100%; margin-inline: auto; }
  .split-head, .clinics, .faq, .pilot { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps::before { display: none; }
  .team { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding: 28px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .steps::before {
    display: block;
    top: 22px;
    bottom: 22px;
    left: 22px;
    right: auto;
    border-top: 0;
    border-left: 1px dashed var(--line-2);
  }
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; }
  .step-num { grid-row: span 2; }
  .step h3 { margin-top: 6px; font-size: 1.75rem; }
  .pilot-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .hero-actions .btn { width: 100%; }
  .art { padding: 0; }
  .art-dots { inset: -16px -16px; border-radius: 0; }
  .approval {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: -46px 0 0 22px;
  }
  .toast {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: 14px 22px 0 0;
  }
  .hero-art figcaption { text-align: left; }
  .hero-note { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-note .sep { display: none; }
  .hero-note span:not(.sep) { display: inline-flex; align-items: center; gap: 10px; }
  .hero-note span:not(.sep)::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
  .person { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .monogram { width: 56px; height: 56px; font-size: 1.4rem; }
  .form-actions .btn { width: 100%; }
  .faq-list summary { font-size: 1.0625rem; }
  .answer { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 600px) and (max-width: 959px) {
  .person { grid-template-columns: 64px minmax(0, 1fr); gap: 24px; }
}

/* Incident */
.incident {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.incident-copy h2 { margin-top: 16px; }
.incident-copy .section-text { margin-top: 24px; max-width: 34em; }
.incident-list { margin-bottom: 0 !important; max-width: 34em; color: var(--ink); }
.incident-art { min-width: 0; margin: 0; }
.incident-art figcaption { margin-top: 12px; text-align: right; color: var(--ink-2); font-size: 0.8125rem; }
.art.art-static { padding: 0; }
.art-static .chat { animation: none; }
.band-ink .chat { --paper-2: #262E36; box-shadow: none; }
@media (max-width: 959px) {
  .incident { grid-template-columns: minmax(0, 1fr); }
  .incident-art { max-width: 580px; width: 100%; margin-inline: auto; }
}
@media (max-width: 599px) {
  .incident-art figcaption { text-align: left; }
}
