:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --text: #17222c;
  --muted: #4c5a66;
  --primary: #0e3a5c;
  --accent: #1668a3;
  --accent-dark: #10527f;
  --card: #ffffff;
  --border: #e3e0d8;
  --shadow: 0 12px 30px rgba(23, 34, 44, 0.07);
  /* "Inside the machine" surfaces — used only where content is literally
     on-prem output: hero terminal, pilot card, footer. */
  --machine: #0f1720;
  --machine-border: #243140;
  --machine-text: #d7e0e8;
  /* Status LED — small doses, always meaning "local / running / safe". */
  --led: #2fb344;
  --font-display: 'Space Grotesk', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes rowReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes accordionOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroGlowA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-40px, 30px, 0) scale(1.08); }
}

@keyframes heroGlowB {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(50px, -25px, 0) scale(1.1); }
}

.aos { opacity: 0; }
.aos-row { opacity: 0; }

.aos.is-visible[data-aos="fade-up"]    { animation: fadeUp    0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.aos.is-visible[data-aos="fade-in"]    { animation: fadeIn    0.50s ease forwards; }
.aos.is-visible[data-aos="scale-in"]   { animation: scaleIn   0.50s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.aos.is-visible[data-aos="slide-left"] { animation: slideLeft 0.60s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

.aos-row.is-visible { animation: rowReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

.aos[data-aos-delay="100"] { animation-delay: 0.10s; }
.aos[data-aos-delay="200"] { animation-delay: 0.20s; }
.aos[data-aos-delay="300"] { animation-delay: 0.30s; }
.aos[data-aos-delay="400"] { animation-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .aos,
  .aos-row {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .hero::before,
  .hero::after,
  .faq-item[open] .faq-answer {
    animation: none !important;
  }

  .button.primary::after {
    display: none;
  }

  header,
  .nav,
  .card,
  .button,
  .nav-links a::after,
  .solutions-links a {
    transition: none !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

/* Scoped to the site header (a direct child of body) so <header> elements inside
   page content — e.g. a blog post's title block — don't inherit sticky chrome. */
body > header {
  position: sticky;
  top: 0;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
  transition: box-shadow 0.3s ease;
}

body > header.is-scrolled {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  transition: padding 0.3s ease;
}

header.is-scrolled .nav {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.brand {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  color: var(--primary);
}

.brand span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  border-color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border: none;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--accent-dark);
  color: white;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* padding + matching negative margin: layout is unchanged, but the box
     extends outward so glow blobs and card shadows aren't clipped */
  padding: 3rem 1.5rem;
  margin: -3rem -1.5rem;
  background:
    linear-gradient(to bottom, rgba(248, 250, 252, 0) 0%, var(--bg) 85%),
    radial-gradient(rgba(15, 61, 96, 0.09) 1px, transparent 1.5px);
  background-size: auto, 26px 26px;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle at center, rgba(29, 155, 240, 0.16), transparent 70%);
  animation: heroGlowA 18s ease-in-out infinite alternate;
}

.hero::after {
  width: 480px;
  height: 480px;
  bottom: -200px;
  left: -140px;
  background: radial-gradient(circle at center, rgba(15, 61, 96, 0.12), transparent 70%);
  animation: heroGlowB 22s ease-in-out infinite alternate;
}

.hero-card {
  background: var(--card);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin: 0 0 1rem;
}

.hero p {
  color: var(--muted);
}

.hero p.hero-offer {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: rgba(29, 155, 240, 0.08);
  border-radius: 0 12px 12px 0;
  color: var(--primary);
  font-weight: 600;
}

.cred-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1.5rem 0 0;
}

.cred-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}

.cred-strip li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.button:active {
  transform: scale(0.97);
}

.button.primary {
  background: var(--primary);
  color: white;
}

.button.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #0b2f4c;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(29, 155, 240, 0.3);
}

.button.primary:hover::after,
.button.primary:focus-visible::after {
  transform: translateX(100%);
}

.button.secondary {
  background: white;
  border-color: var(--border);
  color: var(--primary);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.section {
  margin-top: 3rem;
}

.section h2 {
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.13);
  transform: translateY(-3px);
  border-color: rgba(29, 155, 240, 0.45);
}

.card:hover::before {
  transform: scaleX(1);
}

.pilot-card,
.cta-card {
  background: linear-gradient(135deg, #0f3d60 0%, #0b2235 100%);
  border-color: rgba(29, 155, 240, 0.35);
  color: #e2e8f0;
  box-shadow: 0 20px 45px rgba(15, 61, 96, 0.3);
}

.pilot-card h2,
.cta-card h2 {
  color: #ffffff;
  margin-top: 0;
}

.pilot-card p,
.cta-card p,
.pilot-card .list {
  color: #c7d6e6;
}

.pilot-card .list li::marker {
  color: var(--accent);
}

.cta-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.cta-card .cta-row {
  justify-content: center;
}

.cta-card .button.primary {
  background: var(--accent);
}

.cta-card .button.primary:hover,
.cta-card .button.primary:focus-visible {
  background: var(--accent-dark);
}

.cta-card .button.secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-card .button.secondary:hover,
.cta-card .button.secondary:focus-visible {
  border-color: white;
  outline-color: white;
  color: white;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #e2f1ff;
  color: #0b3758;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.list {
  padding-left: 1.2rem;
  color: var(--muted);
}

.section-lead {
  color: var(--muted);
  max-width: 62ch;
  margin-top: 0.5rem;
}

.uc-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.uc-card p {
  color: var(--muted);
}

.uc-card .uc-more {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent-dark);
  transition: color 0.2s ease;
}

.uc-card:hover,
.uc-card:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.uc-card:hover .uc-more,
.uc-card:focus-visible .uc-more {
  color: var(--accent);
}

.uc-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: rgba(29, 155, 240, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-bottom: 0.6rem;
}

.uc-tag:hover,
.uc-tag:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.solutions-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.solutions-links a {
  font-weight: 600;
  color: var(--accent-dark);
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.solutions-links a:hover,
.solutions-links a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateX(3px);
  box-shadow: var(--shadow);
}

.stack-img {
  display: block;
  margin: 2rem auto 0;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.table thead th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.table tbody tr {
  transition: background 0.2s ease;
}

.table tbody tr:nth-child(even) {
  background: rgba(226, 232, 240, 0.35);
}

.table tbody tr:hover {
  background: rgba(29, 155, 240, 0.07);
}

.table td:first-child {
  font-weight: 700;
  color: var(--primary);
}

.table td:last-child {
  font-weight: 600;
  color: var(--accent-dark);
}

.was-price {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 400;
  margin-right: 0.35rem;
}

.price-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
  margin-top: 0.15rem;
}

.faq-grid {
  grid-template-columns: 1fr;
  max-width: 820px;
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary);
}

.faq-item summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 2px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
}

.faq-item[open] .faq-answer {
  animation: accordionOpen 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer p {
  margin: 0;
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
}

.notice {
  background: #fff4e5;
  border: 1px solid #ffd8a8;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  color: #7a4a00;
}

.footer {
  background: #0b1b2d;
  color: #e2e8f0;
  padding: 2.5rem 1.5rem;
}

.footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer a {
  color: #d6e3f5;
}

.footer-fine {
  font-size: 0.8rem;
  color: #94a3b8;
}

.form {
  display: grid;
  gap: 1rem;
}

.form label {
  font-weight: 600;
}

.form input,
.form textarea,
.form select {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
}

.form input:focus-visible,
.form textarea:focus-visible,
.form select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form textarea:disabled {
  background: var(--bg);
  color: var(--muted);
  cursor: not-allowed;
}

.form .hidden-field {
  display: none;
}

/* Enter-to-send hint under the chat composer. */
.chat-hint {
  margin: -0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}

.status.success {
  background: #dcfce7;
  color: #166534;
}

.status.error {
  background: #fee2e2;
  color: #991b1b;
}

.toggle-group {
  display: inline-flex;
  gap: 0.5rem;
  background: #e2e8f0;
  padding: 0.4rem;
  border-radius: 999px;
}

.toggle-button {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.toggle-button.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.toggle-button[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.chat-shell {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

.chat-window {
  background: var(--card);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 360px;
  max-height: 460px;
  overflow-y: auto;
}

.chat-message {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: #f1f5f9;
}

.chat-message.user {
  background: #dbeafe;
  margin-left: auto;
}

.chat-message.assistant {
  background: #f8fafc;
}

.chat-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.chat-message p {
  margin: 0;
  white-space: pre-wrap; /* model output carries its own line breaks */
}

/* Rendered markdown blocks (headings, lists, code) inside an assistant
   answer. Streaming tokens still land in a plain <p> (styled above); these
   only apply once the finished answer is re-rendered as markdown. */
.chat-message > :is(p, ul, ol, pre, h1, h2, h3, h4, h5, h6) + :is(p, ul, ol, pre, h1, h2, h3, h4, h5, h6) {
  margin-top: 0.6rem;
}

.chat-message ul,
.chat-message ol {
  margin: 0;
  padding-left: 1.2rem;
}

.chat-message li + li {
  margin-top: 0.2rem;
}

.chat-message h1,
.chat-message h2,
.chat-message h3,
.chat-message h4,
.chat-message h5,
.chat-message h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.chat-message pre {
  margin: 0;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: auto;
}

.chat-message pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.chat-message code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #e2e8f0;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.88em;
}

/* Citations under an answer. Muted and set smaller than the answer: they are
   provenance, not part of the argument. */
.chat-sources {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

.chat-sources-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.chat-sources ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.chat-sources li {
  margin-bottom: 0.2rem;
}

.chat-source-tag {
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.7rem;
  white-space: nowrap;
}

.chat-nudge {
  background: #ecfdf5;
}

/* Clickable example questions shown before the first turn. Hidden once a real
   question is sent, restored by "Clear chat". */
.chat-suggestions-title {
  margin: 0 0 0.6rem;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
}

.chat-suggestions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chat-suggestion {
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--accent-dark);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.chat-suggestion:hover,
.chat-suggestion:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

/* The contact gate shares the chat card's shape so unlocking the demo reads as
   the same surface changing state, not a different page. */
.gate {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.gate h2 {
  margin-top: 0;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Founder block (about page)                                          */
/* ------------------------------------------------------------------ */
.founder {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

.founder-photo img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.founder-bio h3 {
  margin: 0 0 0.25rem;
  color: var(--primary);
  font-size: 1.3rem;
}

.founder-role {
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--accent-dark);
}

/* ------------------------------------------------------------------ */
/* Paired form fields (e.g. company size + preferred language)         */
/* ------------------------------------------------------------------ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row > div {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

/* Surface field-level validation only after the user has interacted. */
.form input:user-invalid,
.form textarea:user-invalid {
  border-color: #dc2626;
}

.form input:user-invalid:focus-visible,
.form textarea:user-invalid:focus-visible {
  outline-color: #dc2626;
  border-color: #dc2626;
}

/* ------------------------------------------------------------------ */
/* Booking embed (responsive framed iframe)                            */
/* ------------------------------------------------------------------ */
.booking-embed {
  position: relative;
  width: 100%;
  height: 640px;
  max-height: 80vh;
  margin: 1.5rem 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--card);
}

.booking-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ------------------------------------------------------------------ */
/* Whole-card links (services → verticals)                             */
/* ------------------------------------------------------------------ */
.card-link {
  display: block;
  color: inherit;
}

.card-link:hover,
.card-link:focus-visible {
  color: inherit;
}

/* ------------------------------------------------------------------ */
/* Readiness checklist (resources page)                                */
/* ------------------------------------------------------------------ */
.checklist h3 {
  color: var(--primary);
  margin: 1.5rem 0 0.5rem;
}

.checklist-items {
  margin: 0 0 0.5rem;
  padding-left: 1.4rem;
  color: var(--muted);
}

.checklist-items li {
  margin: 0.35rem 0;
}

/* ------------------------------------------------------------------ */
/* Disabled + loading button states                                    */
/* ------------------------------------------------------------------ */
.button:disabled,
.button[disabled],
.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button:disabled::after,
.button[disabled]::after {
  display: none;
}

.button.is-loading {
  color: transparent !important;
  pointer-events: none;
}

.button.is-loading::before {
  content: '';
  position: absolute;
  width: 1.05em;
  height: 1.05em;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------------ */
/* Chat "typing" indicator                                             */
/* ------------------------------------------------------------------ */
.chat-message.typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
}

.chat-message.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.chat-message.typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-message.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ------------------------------------------------------------------ */
/* Retrieval indicator -- real staged progress through the hybrid search  */
/* pipeline (embed -> search -> rerank), then a flip through the actual   */
/* retrieved document titles before the answer starts streaming in. Uses */
/* the "inside the machine" dark surface so it reads as the retrieval    */
/* system at work, distinct from the ordinary chat bubbles around it.    */
/* ------------------------------------------------------------------ */
.chat-message.chat-retrieval {
  background: var(--machine);
  border: 1px solid var(--machine-border);
}

.chat-retrieval-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.chat-retrieval-step {
  position: relative;
  padding: 0.1rem 0.3rem 0.1rem 1.1rem;
  font-size: 0.85rem;
  color: rgba(215, 224, 232, 0.45);
}

.chat-retrieval-step::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--machine-border);
}

.chat-retrieval-step.is-active {
  color: var(--machine-text);
  background-image: linear-gradient(90deg, transparent, rgba(215, 224, 232, 0.14), transparent);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: scanSweep 1.6s ease-in-out infinite;
}

.chat-retrieval-step.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(22, 104, 163, 0.7);
}

.chat-retrieval-step.is-done {
  color: rgba(215, 224, 232, 0.75);
}

.chat-retrieval-step.is-done::before {
  background: var(--led);
  box-shadow: 0 0 6px rgba(47, 179, 68, 0.6);
}

.chat-retrieval-docs {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--machine-border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--machine-text);
  animation: fadeIn 0.35s ease;
}

@keyframes scanSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Streaming answer: a blinking caret at the end of the growing text, using the
   same cursorBlink keyframe as the hero terminal. */
.chat-message.streaming p::after {
  content: '\258A';
  display: inline-block;
  margin-left: 0.1em;
  color: var(--accent);
  animation: cursorBlink 1.1s steps(1) infinite;
}

/* ------------------------------------------------------------------ */
/* Clearer keyboard focus for header + footer navigation               */
/* ------------------------------------------------------------------ */
.nav-links a:focus-visible,
.lang-toggle:focus-visible,
.nav-cta:focus-visible,
.brand:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .button.is-loading::before,
  .chat-message.typing span,
  .chat-retrieval-step.is-active,
  .chat-retrieval-docs,
  .chat-message.streaming p::after {
    animation: none !important;
  }
}

@media (max-width: 760px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 0.75rem;
  }

  main {
    padding: 2rem 1rem 3rem;
  }

  .hero {
    padding: 2rem 1rem;
    margin: -2rem -1rem;
  }

  .hero-card {
    padding: 1.5rem;
  }

  .section {
    margin-top: 2.25rem;
  }

  /* Pricing and other tables scroll sideways instead of overflowing the page. */
  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .chat-window {
    min-height: 260px;
    max-height: 55vh;
    padding: 1rem;
  }

  /* 16px inputs prevent iOS Safari from zooming the page on focus. */
  .form input,
  .form textarea,
  .form select {
    font-size: 16px;
  }

  /* Stack paired fields and the founder photo/bio on narrow screens. */
  .form-row {
    grid-template-columns: 1fr;
  }

  .founder {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    justify-items: center;
    text-align: center;
  }

  .founder-bio {
    text-align: left;
  }

  .booking-embed {
    height: 560px;
  }
}

@media (max-width: 480px) {
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .button {
    width: 100%;
  }

  .card,
  .pilot-card {
    padding: 1.25rem;
  }

  .table th,
  .table td {
    padding: 0.55rem;
    font-size: 0.9rem;
  }

  .toggle-group {
    flex-wrap: wrap;
    border-radius: 16px;
  }
}

/* ------------------------------------------------------------------ */
/* Print: strip chrome so the resources checklist prints cleanly       */
/* ------------------------------------------------------------------ */
@media print {
  body > header,
  .footer,
  .skip-link,
  .button,
  .cta-card,
  .booking-embed {
    display: none !important;
  }

  main {
    max-width: none;
    padding: 0;
  }

  body {
    background: #fff;
  }

  .card,
  .checklist {
    box-shadow: none;
    border: 1px solid #cbd5e1;
    break-inside: avoid;
  }

  .checklist-items li {
    break-inside: avoid;
  }
}

/* ==========================================================================
   Restyle layer — typography, machine surfaces, section variance.
   Appended last on purpose: equal-specificity overrides of the base theme.
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  font-weight: 500; font-style: normal; font-display: swap;
  src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700; font-style: normal; font-display: swap;
  src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 500; font-style: normal; font-display: swap;
  src: url('/fonts/space-grotesk-vietnamese-500-normal.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700; font-style: normal; font-display: swap;
  src: url('/fonts/space-grotesk-vietnamese-700-normal.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400; font-style: normal; font-display: swap;
  src: url('/fonts/ibm-plex-mono-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 600; font-style: normal; font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400; font-style: normal; font-display: swap;
  src: url('/fonts/ibm-plex-mono-vietnamese-400-normal.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 600; font-style: normal; font-display: swap;
  src: url('/fonts/ibm-plex-mono-vietnamese-600-normal.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* --- Typography ---------------------------------------------------------- */

h1, h2, h3,
.brand,
.button,
.nav-cta {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
}

.badge,
.cred-strip li,
.uc-tag {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.badge {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--primary);
}

.badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 6px rgba(47, 179, 68, 0.7);
}

/* --- Hero terminal (signature element) ----------------------------------- */

.terminal {
  background: var(--machine);
  border: 1px solid var(--machine-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.65;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--machine-border);
  color: #8fa1b3;
  font-size: 0.72rem;
}

.terminal-bar::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #37455a;
  box-shadow: 16px 0 0 #37455a, 32px 0 0 #37455a;
  margin-right: 32px;
}

.terminal-body {
  padding: 1.1rem 1.2rem 1.2rem;
  color: var(--machine-text);
}

.terminal-body .t-cmd { color: #eef4f9; }
.terminal-body .t-cmd::before { content: '$ '; color: #6d7f92; }
.terminal-body .t-out { color: #9db0c2; }
.terminal-body .t-ans { color: var(--machine-text); }
.terminal-body .t-ans em { color: #ffd479; font-style: normal; }
.terminal-body p { margin: 0 0 0.55rem; color: inherit; }

.terminal-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--machine-border);
  color: var(--led);
  font-weight: 600;
  font-size: 0.78rem;
}

.terminal-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 8px rgba(47, 179, 68, 0.8);
}

.terminal-status::after {
  content: '';
  width: 8px;
  height: 15px;
  margin-left: auto;
  background: var(--led);
  animation: cursorBlink 1.1s steps(1) infinite;
}

@keyframes cursorBlink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .terminal-status::after { animation: none; }
}

/* Soften the hero glow to match the warmer palette. */
.hero::before {
  background: radial-gradient(circle at center, rgba(22, 104, 163, 0.12), transparent 70%);
}

/* --- Demo cards with real product screenshots ---------------------------- */

.demo-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.demo-shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--border);
  background: var(--machine);
}

.demo-body {
  padding: 1.3rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.demo-body .cta-row { margin-top: auto; }

.demo-card .uc-tag { margin: 0 0 0.6rem; }

/* --- Section variance ---------------------------------------------------- */

/* Why-local: quiet ruled columns instead of another card grid. */
.quiet-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quiet-grid .card {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 1rem 0 0;
  border-top: 2px solid var(--primary);
}

.quiet-grid .card::before { display: none; }

.quiet-grid .card:hover { transform: none; box-shadow: none; }

/* How-we-work: it is a real sequence — style as a connected step strip. */
.steps-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}

.steps-grid .card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-left: 1px solid var(--border);
}

.steps-grid .card:first-child { border-left: 0; }

.steps-grid .card::before { display: none; }

.steps-grid .card:hover { transform: none; box-shadow: none; }

.steps-grid .card h3 { font-family: var(--font-mono); font-size: 0.95rem; color: var(--accent-dark); }

/* Industries: one bordered band, not a section of cards. */
.band {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 20px;
  padding: 2rem;
}

.band .solutions-links { margin-top: 1.2rem; }

/* --- Machine surfaces align (pilot card + footer) ------------------------- */

.pilot-card,
.footer {
  background: var(--machine);
}

.pilot-card { border-color: var(--machine-border); }

.pilot-card h2 {
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pilot-card h2::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 8px rgba(47, 179, 68, 0.8);
  flex: none;
}

/* Warmer paper needs the sticky header to match. */
body > header {
  background: rgba(247, 245, 240, 0.92);
}

.hero p.hero-offer {
  background: rgba(22, 104, 163, 0.07);
  border-left-color: var(--accent);
}

/* ==========================================================================
   Blog + cloud-comparison layer
   ========================================================================== */

/* --- Comparison table ---------------------------------------------------- */

/* Wide tables scroll inside their own box instead of pushing the page sideways. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  min-width: 640px;
}

.compare-table tbody th {
  font-weight: 700;
  color: var(--primary);
  width: 26%;
}

/* Neither column is "the answer" here, so drop the accent emphasis the pricing
   table gives its last cell. */
.compare-table td:last-child {
  font-weight: 400;
  color: var(--text);
}

/* --- Blog index ---------------------------------------------------------- */

/* The blog hero has no companion card, so keep it to one readable column. */
.blog-hero {
  grid-template-columns: minmax(0, 68ch);
}

/* The hero pulls following content up with a -3rem bottom margin (see .hero), so
   this needs at least that much to clear it — same trick .section uses. */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: relative;
  margin-top: 3.5rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tag-chip:hover,
.tag-chip:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.tag-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.tag-count {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.7;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.post-card h2,
.post-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.post-card p {
  color: var(--muted);
}

.post-card .uc-more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.post-card:hover .uc-more,
.post-card:focus-visible .uc-more {
  color: var(--accent);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.post-chip {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}

/* --- Post page ----------------------------------------------------------- */

.post {
  max-width: 72ch;
  margin: 0 auto;
  padding-top: 2.5rem;
}

.post-breadcrumb {
  font-weight: 600;
  font-size: 0.9rem;
}

.post-header {
  margin: 1.25rem 0 2rem;
}

.post-header h1 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}

.post-notice {
  margin-bottom: 2rem;
}

.post-footer-row {
  margin-top: 2rem;
}

/* --- Long-form prose ----------------------------------------------------- */

.prose {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--text);
}

.prose > *:first-child {
  margin-top: 0;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose .table-scroll,
.prose pre {
  margin: 0 0 1.35rem;
}

.prose h2 {
  font-size: 1.55rem;
  line-height: 1.25;
  margin: 2.75rem 0 0.9rem;
}

.prose h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.7rem;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  color: var(--primary);
}

.prose a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover,
.prose a:focus-visible {
  color: var(--accent);
}

.prose blockquote {
  padding: 0.25rem 0 0.25rem 1.15rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Tables in prose can be wide. The scrolling lives on the .table-scroll wrapper
   (added by the markdown renderer) so the table stays a real table and fills the
   column; min-width is what makes it scroll instead of squashing on narrow screens. */
.prose table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

/* --border on this paper is ~1.2:1 against the page — a 1px line at that contrast
   reads as no line at all. Row banding does the row-tracking work (same as .table)
   and the separator is darkened enough to actually be seen. */
.prose th,
.prose td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(23, 34, 44, 0.28);
}

.prose tbody tr:nth-child(even) {
  background: rgba(226, 232, 240, 0.35);
}

.prose tbody tr {
  transition: background 0.2s ease;
}

.prose tbody tr:hover {
  background: rgba(29, 155, 240, 0.07);
}

.prose thead th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  white-space: nowrap;
}

/* Code sits on the machine surfaces — same visual language as the hero terminal. */
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(15, 23, 32, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.35em;
}

.prose pre {
  background: var(--machine);
  border: 1px solid var(--machine-border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--machine-text);
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .post {
    padding-top: 1.5rem;
  }

  .prose {
    font-size: 1rem;
  }
}

@media print {
  .tag-list,
  .post-breadcrumb,
  .post-footer-row {
    display: none !important;
  }

  .post {
    max-width: none;
  }

  .prose pre {
    background: #fff;
    border-color: #cbd5e1;
    break-inside: avoid;
  }

  .prose pre code {
    color: #0f1720;
  }

  .prose h2,
  .prose h3 {
    break-after: avoid;
  }
}
