/* ============================================================
   Quantilus Redesign Preview Theme
   One locked light theme (warm paper + single teal accent).
   Radius rule: buttons = pill, containers = 16px, chips = pill.
   ============================================================ */

:root {
  --paper:        #faf9f5;
  --paper-soft:   #f2f0e9;
  --paper-deep:   #e9e6dc;

  --ink:          #16211f;
  --ink-soft:     #38453f;
  --muted:        #62706c;
  --line:         #e3e0d5;
  --line-soft:    #edebe1;

  /* Single accent: teal. Text-safe value for light bg, bright for graphics. */
  --accent:       #0f766e;
  --accent-bright:#20b6ae;
  --accent-soft:  #d9efec;
  --accent-ghost: rgba(32, 182, 174, 0.07);

  /* Deep ink surface (used once: CTA block, plus terminal component) */
  --deep:         #11201e;
  --deep-soft:    #182b28;
  --deep-ink:     #f4f3ec;
  --deep-muted:   rgba(244, 243, 236, 0.6);
  --deep-line:    rgba(244, 243, 236, 0.1);
  --accent-on-deep: #6fd2ca;

  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body:    'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --r-card: 16px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; }

::selection { background: var(--accent-soft); color: var(--ink); }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }

.sub {
  color: var(--muted);
  max-width: 38em;
  margin-top: 1.1rem;
  font-size: 1.0625rem;
}

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.8rem 1.6rem; border-radius: var(--r-pill);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--accent); color: #fdfdfa; }
.btn--primary:hover { background: #0c5f59; transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--on-deep { background: var(--accent-bright); color: var(--deep); }
.btn--on-deep:hover { background: #7adcd4; transform: translateY(-2px); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: 68px;
  background: rgba(250, 249, 245, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header .container {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: var(--ink); letter-spacing: -0.02em;
}
.logo span { color: var(--accent-bright); }
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active { color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: 0.25s var(--ease); }

/* ---------- Hero: asymmetric split ---------- */
.hero {
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 360px at 86% 8%, var(--accent-ghost), transparent 70%),
    radial-gradient(500px 400px at 6% 92%, rgba(32,182,174,0.05), transparent 70%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 4rem; align-items: center; position: relative;
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.hero__title {
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.4rem);
  font-weight: 650;
  line-height: 1.04;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__sub {
  margin-top: 1.4rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 32em;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

/* Entrance: rise + fade, gated on reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(22px); animation: rise 0.8s var(--ease) forwards; }
  .rise-1 { animation-delay: 0.05s; }
  .rise-2 { animation-delay: 0.16s; }
  .rise-3 { animation-delay: 0.28s; }
  .rise-4 { animation-delay: 0.4s; }
  @keyframes rise { to { opacity: 1; transform: translateY(0); } }
}

/* ---------- Terminal (dark component, signature demo) ---------- */
.terminal {
  background: var(--deep);
  border: 1px solid rgba(32, 182, 174, 0.18);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 32, 30, 0.18);
}
.terminal__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--deep-line);
}
.terminal__title {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--deep-muted); letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.terminal__tabs { display: flex; gap: 0.4rem; flex-shrink: 0; }
.scenario-tab {
  font-family: var(--font-mono); font-size: 0.66rem;
  color: var(--deep-muted);
  padding: 0.3rem 0.7rem; border-radius: var(--r-pill);
  border: 1px solid var(--deep-line);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.scenario-tab:hover { color: var(--deep-ink); }
.scenario-tab.active {
  color: var(--deep);
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}
.terminal__body {
  height: 420px; overflow-y: auto;
  padding: 1.2rem 1.3rem;
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.75;
  scrollbar-width: thin; scrollbar-color: var(--deep-soft) transparent;
}
.terminal__line { display: block; margin-bottom: 0.35rem; word-break: break-word; }
.terminal__line--prompt { color: rgba(244, 243, 236, 0.38); }
.terminal__line--user   { color: var(--deep-ink); }
.terminal__line--tool   { color: var(--accent-on-deep); }
.terminal__line--tool::before { content: "▸ "; opacity: 0.7; }
.terminal__line--result { color: rgba(244, 243, 236, 0.55); padding-left: 1.1em; }
.terminal__line--agent  {
  color: var(--deep-ink);
  background: rgba(32, 182, 174, 0.09);
  border-left: 2px solid var(--accent-bright);
  padding: 0.55rem 0.8rem; margin-top: 0.55rem;
  border-radius: 0 8px 8px 0;
}
.terminal__cursor {
  display: inline-block; width: 8px; height: 15px;
  background: var(--accent-bright); vertical-align: text-bottom;
}
@media (prefers-reduced-motion: no-preference) {
  .terminal__cursor { animation: blink 1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
}

/* ---------- Marquee (the one allowed) ---------- */
.marquee-section {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 1.6rem 0;
  background: var(--paper-soft);
}
.marquee-section__label {
  font-size: 0.85rem; color: var(--muted); text-align: center; margin-bottom: 1rem;
}
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper-soft), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--paper-soft), transparent); }
.marquee__rail { display: flex; width: max-content; }
.marquee__track { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item {
  font-family: var(--font-display); font-weight: 550; font-size: 1.15rem;
  color: var(--muted); white-space: nowrap;
  padding: 0 2.4rem;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee__rail { animation: marquee 46s linear infinite; }
  .marquee:hover .marquee__rail { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}

/* ---------- Sections ---------- */
.section { padding: 7rem 0; }
.section--tint { background: var(--paper-soft); }
.section-head { max-width: 760px; margin-bottom: 3.5rem; }

/* Scroll reveal */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .reveal-stagger.in > * { opacity: 1; transform: none; }
  .reveal-stagger.in > *:nth-child(2) { transition-delay: 0.09s; }
  .reveal-stagger.in > *:nth-child(3) { transition-delay: 0.18s; }
  .reveal-stagger.in > *:nth-child(4) { transition-delay: 0.27s; }
  .reveal-stagger.in > *:nth-child(5) { transition-delay: 0.36s; }
}

/* ---------- The gap: editorial statement ---------- */
.gap-statement h2 {
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem);
  max-width: 18em;
}
.gap-statement .gap-body {
  margin-top: 1.8rem;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 36em;
}
.gap-statement .gap-body strong { color: var(--ink); font-weight: 600; }

/* ---------- Process rows ---------- */
.process { margin-top: 0.5rem; }
.process__row {
  display: grid;
  grid-template-columns: 110px minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: 2.5rem; align-items: start;
  padding: 2.6rem 0;
}
.process__row + .process__row { border-top: 1px solid var(--line); }
.process__num {
  font-family: var(--font-display); font-weight: 650;
  font-size: clamp(2.4rem, 2rem + 1.6vw, 3.4rem);
  line-height: 1; color: var(--paper-deep);
  -webkit-text-stroke: 1.5px var(--accent-bright);
}
.process__row h3 { font-size: 1.5rem; }
.process__row p { color: var(--muted); }

/* ---------- Flow section ---------- */
.flow-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.5rem;
  margin-top: 3rem;
}
.flow-svg { width: 100%; height: auto; display: block; }
.flow-rail { stroke: var(--accent-soft); stroke-width: 2.5; fill: none; }
.flow-source { fill: var(--accent-bright); }
.flow-hub { fill: var(--accent-ghost); stroke: var(--accent-bright); stroke-width: 1.5; }
.flow-hub-label { font-family: var(--font-body); font-weight: 600; font-size: 15px; fill: var(--ink); }
.flow-hub-sub { font-family: var(--font-body); font-size: 12.5px; fill: var(--muted); }
.flow-label { font-family: var(--font-body); font-weight: 600; font-size: 13.5px; fill: var(--ink-soft); }
.flow-sublabel { font-family: var(--font-body); font-size: 12px; fill: var(--muted); }
.flow-zone--auto { fill: var(--accent-bright); }
.flow-zone--team { fill: var(--ink-soft); }
.flow-count { font-family: var(--font-mono); font-size: 17px; font-weight: 500; }
.flow-count--auto { fill: var(--accent); }
.flow-count--team { fill: var(--ink-soft); }
.flow-token--auto { fill: var(--accent-bright); opacity: 0.85; }
.flow-token--team { fill: var(--ink-soft); opacity: 0.8; }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
  margin-top: 3rem;
}
.bento__cell {
  border-radius: var(--r-card);
  padding: 2rem;
  border: 1px solid var(--line);
  background: #fff;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 0.7rem;
}
.bento__cell h3 { font-size: 1.3rem; }
.bento__cell p { color: var(--muted); font-size: 0.97rem; }
.bento__cell--wide { grid-column: span 4; background: var(--accent-ghost); border-color: var(--accent-soft); }
.bento__cell--third { grid-column: span 2; }
.bento__cell--deep {
  grid-column: span 2;
  background: var(--deep); border-color: var(--deep);
  justify-content: flex-end;
}
.bento__cell--deep .bento__big {
  font-family: var(--font-display); font-weight: 650;
  font-size: 3.4rem; line-height: 1; color: var(--accent-on-deep);
}
.bento__cell--deep p { color: var(--deep-muted); }
.bento__cell--models { background: var(--paper-soft); }
.bento__models {
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 2.1;
  color: var(--ink-soft);
}
.bento__models b { color: var(--accent); font-weight: 500; }

/* ---------- Industries: description rows ---------- */
.industry-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 3rem;
  padding: 2.8rem 0;
  align-items: start;
  transition: background 0.3s var(--ease);
}
.industry-row + .industry-row { border-top: 1px solid var(--line); }
.industry-row h3 {
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  font-weight: 600;
  transition: color 0.3s var(--ease);
}
.industry-row:hover h3 { color: var(--accent); }
.industry-row p { color: var(--muted); }
.industry-row__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chip {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 0.3rem 0.8rem; border-radius: var(--r-pill);
  background: var(--paper-soft); border: 1px solid var(--line);
  color: var(--ink-soft);
}
.industry-row__go {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.2rem; font-weight: 600; font-size: 0.92rem; color: var(--accent);
}
.industry-row__go .arrow { transition: transform 0.25s var(--ease); }
.industry-row:hover .industry-row__go .arrow { transform: translateX(4px); }
.industries-more { margin-top: 2.6rem; color: var(--muted); font-size: 0.95rem; }
.industries-more a { color: var(--accent); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1.2rem;
  padding: 1.4rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0; font-size: 1.4rem; font-weight: 400; color: var(--accent);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { padding: 0 2.5rem 1.4rem 0; color: var(--muted); }
.faq-item a { color: var(--accent); font-weight: 600; }
.faq-more { margin-top: 2rem; }
.faq-more a { color: var(--accent); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- CTA block (the single deliberate dark moment) ---------- */
.cta-section { padding: 5rem 0 7rem; }
.cta-block {
  background: var(--deep);
  border-radius: 24px;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 300px at 50% 115%, rgba(32, 182, 174, 0.22), transparent 70%);
}
.cta-block h2 { color: var(--deep-ink); font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); position: relative; }
.cta-block h2 em { font-style: normal; color: var(--accent-on-deep); }
.cta-block p {
  color: var(--deep-muted); max-width: 34em; margin: 1.2rem auto 2.2rem; position: relative;
}
.cta-block .btn { position: relative; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 3rem;
}
.footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.footer__brand span { color: var(--accent-bright); }
.footer__desc { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; max-width: 30em; }
.footer__desc a { text-decoration: underline; }
.footer h4 {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink); margin-bottom: 1rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__links a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem; padding-top: 1.6rem;
  font-size: 0.82rem; color: var(--muted);
}

/* ---------- Mobile ---------- */
@media (max-width: 1023px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 2rem 1.2rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0; width: 100%; font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 900px) {
  .section { padding: 4.5rem 0; }
  .hero { padding: 3rem 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .terminal__body { height: 340px; }
  .process__row { grid-template-columns: 1fr; gap: 0.8rem; padding: 2.2rem 0; }
  .process__num { font-size: 2.2rem; }
  .bento { grid-template-columns: 1fr; }
  .bento__cell--wide, .bento__cell--third, .bento__cell--deep { grid-column: span 1; }
  .industry-row { grid-template-columns: 1fr; gap: 1rem; padding: 2.2rem 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
  .cta-block { padding: 3.5rem 1.6rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  .container { padding: 0 1.25rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .terminal__bar { flex-wrap: wrap; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}

/* ---------- Engineering pillars (loop + harness) ---------- */
.pillars-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-top: 3rem;
}
.pillar-x__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.pillar-x__def {
  margin-top: 0.7rem;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--accent);
}
.pillar-x__body { margin-top: 1rem; color: var(--muted); }
.pillar-x__seq {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft);
}
.pillar-x__seq span {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 0.3rem 0.75rem;
}
.pillar-x__seq i { color: var(--accent-bright); font-style: normal; }
.pillar-x__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }

@media (max-width: 900px) {
  .pillars-2 { grid-template-columns: 1fr; gap: 2.4rem; }
}

/* ============================================================
   INTERIOR PAGES: shared content components
   Reuse these across every non-home page for consistency.
   ============================================================ */

/* Anchored sections clear the sticky header */
:target { scroll-margin-top: 90px; }

/* ---------- Page hero (interior, no terminal) ---------- */
.page-hero {
  padding: 4.5rem 0 3.5rem;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 380px at 88% -12%, var(--accent-ghost), transparent 70%);
}
.page-hero__inner { position: relative; max-width: 900px; }
.page-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.1rem;
}
.page-hero h1 {
  font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em;
  line-height: 1.05; color: var(--ink);
  font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem);
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero__lead {
  margin-top: 1.3rem; font-size: 1.18rem; color: var(--muted); max-width: 42em;
}

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.3rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* ---------- Lead paragraph ---------- */
.lede {
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  line-height: 1.55; color: var(--ink-soft); max-width: 32em;
}

/* ---------- Prose (long-form: blog, glossary, legal) ---------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-top: 2.6rem; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); font-weight: 500; border-bottom: 1px solid var(--accent-soft); }
.prose a:hover { border-color: var(--accent); }
.prose ul { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.prose ul > li { position: relative; padding-left: 1.4rem; }
.prose ul > li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright);
}
.prose ol { padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.55rem; }
.prose blockquote {
  padding: 0.3rem 0 0.3rem 1.4rem; border-left: 1px solid var(--line);
  color: var(--muted); font-size: 1.1rem;
}

/* ---------- Tick list (feature bullets) ---------- */
.ticks { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.ticks li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright);
}

/* ---------- Generic two-column split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }

/* ---------- Numbered detail rows (service lines, etc.) ---------- */
.lines { margin-top: 1rem; }
.line {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem; align-items: start; padding: 3rem 0;
}
.line + .line { border-top: 1px solid var(--line); }
.line__k {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem;
}
.line h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.line > div > p { color: var(--muted); margin-top: 0.8rem; }
.line__aside {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.7rem;
}
.line__aside h4 { font-size: 1.05rem; }
.line__aside p { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }

/* ---------- Tile grid (generic cards) ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.tile { border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; padding: 1.8rem; }
.tile__k {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 0.6rem;
}
.tile h3 { font-size: 1.2rem; }
.tile p { color: var(--muted); margin-top: 0.6rem; font-size: 0.97rem; }

/* ---------- Callout / note ---------- */
.callout {
  background: var(--accent-ghost); border: 1px solid var(--accent-soft);
  border-radius: var(--r-card); padding: 1.6rem 1.8rem; color: var(--ink-soft);
}
.callout strong { color: var(--ink); }

/* ---------- Badge / price band ---------- */
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.72rem;
  font-weight: 500; letter-spacing: 0.04em; color: var(--accent);
  padding: 0.3rem 0.75rem; background: var(--accent-ghost);
  border: 1px solid var(--accent-soft); border-radius: var(--r-pill);
}

/* ---------- Stats row ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; }
.stat__n {
  font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); color: var(--ink); line-height: 1;
}
.stat__l { color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; }

/* ---------- Pricing tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.tier {
  border: 1px solid var(--line); border-radius: var(--r-card); background: #fff;
  padding: 2rem; display: flex; flex-direction: column; gap: 0.7rem;
}
.tier--feature { background: var(--deep); border-color: var(--deep); }
.tier__k { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.tier--feature .tier__k { color: var(--accent-on-deep); }
.tier h3 { font-size: 1.3rem; color: var(--ink); }
.tier--feature h3 { color: var(--deep-ink); }
.tier__price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 650; color: var(--ink); }
.tier--feature .tier__price { color: var(--deep-ink); }
.tier__dur { font-size: 0.85rem; color: var(--muted); }
.tier--feature .tier__dur { color: var(--deep-muted); }
.tier p, .tier .ticks li { color: var(--muted); }
.tier--feature p, .tier--feature .ticks li { color: var(--deep-muted); }
.tier--feature .ticks li::before { background: var(--accent-on-deep); }

/* ---------- Comparison table ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tbl th, .tbl td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-weight: 600; color: var(--ink); background: var(--paper-soft); }
.tbl td { color: var(--ink-soft); }
.tbl tr:last-child td { border-bottom: none; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }

/* ---------- Forms (contact) ---------- */
.form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.75rem 0.9rem; color: var(--ink); font-size: 0.97rem;
  font-family: var(--font-body); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 1px;
}
.field__help { font-size: 0.8rem; color: var(--muted); }
.field__err { font-size: 0.8rem; color: #b3261e; }

/* ---------- Section head center variant ---------- */
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .sub { margin-left: auto; margin-right: auto; }

/* ---------- Accordion groups (FAQ-style, reuse .faq-list/.faq-item) ---------- */
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group__title { font-size: 1.2rem; margin-bottom: 0.5rem; }

@media (max-width: 900px) {
  .split, .split--even, .line { grid-template-columns: 1fr; gap: 1.6rem; }
  .line { padding: 2.2rem 0; }
  .page-hero { padding: 3.2rem 0 2.6rem; }
}

/* ---------- Workflow example (cross-system walkthrough) ---------- */
.workflow {
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: #fff; padding: 1.9rem 2rem;
}
.workflow + .workflow { margin-top: 1.1rem; }
.workflow__top { display: flex; flex-direction: column; gap: 0.35rem; }
.workflow__top h3 { font-size: 1.3rem; }
.workflow__field {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent);
}
.workflow__sys { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 1.4rem; }
.workflow__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.9rem; }
.workflow__col h4 {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.7rem;
}
.workflow__col--agent h4 { color: var(--accent); }
.workflow__col > p { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 760px) {
  .workflow { padding: 1.5rem 1.4rem; }
  .workflow__grid { grid-template-columns: 1fr; gap: 1.3rem; }
}

/* ============================================================
   AI IN PRACTICE: field notes
   ============================================================ */
.pillars-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 3rem; }
@media (max-width: 1000px) { .pillars-3 { grid-template-columns: 1fr; gap: 2.4rem; } }

.notes-group + .notes-group { margin-top: 4.5rem; }
.notes-group__h {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 0.8rem; margin-bottom: 1.4rem;
}
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 1.1rem; }
.note {
  border: 1px solid var(--line); border-radius: var(--r-card); background: #fff;
  padding: 1.8rem; display: flex; flex-direction: column; gap: 0.8rem;
}
.note__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.note__k {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
}
.note h3 { font-size: 1.22rem; line-height: 1.3; }
.note p { color: var(--muted); font-size: 0.97rem; }
.note__how { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.note__how .chip { font-size: 0.72rem; }
.note .ticks { margin-top: 0.2rem; }
.note .ticks li { font-size: 0.93rem; }
.note__more { margin-top: auto; padding-top: 0.4rem; font-weight: 500; color: var(--accent); font-size: 0.95rem; }
.status {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.22rem 0.6rem; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink-soft);
  white-space: nowrap;
}
.status--live { color: var(--accent); background: var(--accent-ghost); border-color: var(--accent-soft); }
.status--pilot { color: #8a5a00; background: #fbf3e2; border-color: #efdcb3; }
.status--discovery { color: var(--ink-soft); background: var(--paper-soft, #f2f0e9); }

/* ---------- AI in practice: scannable layout ---------- */
.aip-hero { padding: 3.5rem 0 3rem; position: relative; overflow: hidden; }
.aip-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 380px at 88% -12%, var(--accent-ghost), transparent 70%);
}
.aip-hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.aip-hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4rem); line-height: 1.04; }
.aip-hero__lead { margin-top: 1.1rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 34ch; }
.aip-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.6rem; }
.aip-board {
  background: var(--deep); color: var(--deep-ink); border-radius: 22px; padding: 1.6rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; position: relative;
}
.aip-board::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 260px at 100% 0%, rgba(32,182,174,0.22), transparent 70%);
}
.aip-board__cell { position: relative; padding: 1.2rem 1.1rem; }
.aip-board__cell:nth-child(odd) { border-right: 1px solid rgba(244,243,236,0.12); }
.aip-board__cell:nth-child(-n+2) { border-bottom: 1px solid rgba(244,243,236,0.12); }
.aip-board__n {
  font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em; line-height: 1;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); color: #fff;
}
.aip-board__l { margin-top: 0.5rem; font-size: 0.9rem; color: rgba(244,243,236,0.72); line-height: 1.4; }
.aip-board__k {
  display: block; margin-bottom: 0.55rem; font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-bright);
}
@media (max-width: 900px) { .aip-hero__grid { grid-template-columns: 1fr; gap: 2rem; } }

.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 1000px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .proof-grid { grid-template-columns: 1fr; } }
.proof {
  border: 1px solid var(--line); border-radius: var(--r-card); background: #fff;
  padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column; gap: 0.55rem;
  transition: border-color 0.2s, transform 0.2s;
}
.proof:hover { border-color: var(--accent-soft); transform: translateY(-2px); }
.proof__top { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.proof__n {
  font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em; line-height: 1;
  font-size: clamp(2rem, 1.5rem + 1.4vw, 2.6rem); color: var(--accent); margin-top: 0.4rem;
}
.proof__l { font-weight: 600; color: var(--ink); line-height: 1.35; }
.proof__d { color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.proof__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 0.5rem; }
.proof__tags .chip { font-size: 0.7rem; padding: 0.2rem 0.6rem; }
.proof__more { font-size: 0.88rem; font-weight: 500; color: var(--accent); }

.disc-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .disc-strip { grid-template-columns: 1fr; } }
.disc {
  border-left: 3px solid var(--accent-bright); padding: 0.3rem 0 0.3rem 1.1rem;
}
.disc h3 { font-size: 1.25rem; }
.disc p { color: var(--muted); margin-top: 0.35rem; font-size: 0.97rem; }
.section--compact { padding: 4rem 0; }
.cta-block--compact { padding: 3rem 2rem; }
a.proof { color: inherit; text-decoration: none; }
