/* Shared styles for every Logic Pipeline page. */
:root {
  --ink: #05080E;
  --panel: #0C121C;
  --line-dark: #1E2A3A;
  --field-line: #4C5B70;
  --text-on-dark: #E8EEF6;
  --soft-on-dark: #C3CEDC;
  --muted-on-dark: #A3B1C2;
  --paper: #F4F6F9;
  --surface: #FFFFFF;
  --line: #D6DDE6;
  --text: #0B1220;
  --muted: #4A5568;
  --accent: #2B90F5;
  --accent-hi: #63B6FF;
  --error: #FFB4A6;
  --display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 8vw, 112px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
a:hover { opacity: .85; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 12px 16px; background: var(--accent); color: var(--ink); font-weight: 600; border-radius: 4px; text-decoration: none; }
.skip-link:focus { top: 16px; }
.container { max-width: 1200px; margin: 0 auto; }
.section { padding: var(--section-y) var(--gutter); }
.section.flush-top { padding-top: 0; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dark { background: var(--ink); color: var(--text-on-dark); }
.dark .eyebrow { color: var(--muted-on-dark); }
.h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; max-width: 20em; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(36px, 4vw, 56px); }
.two-col > .section-head { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(28px, 5vw, 72px); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 28px; background: var(--accent); color: var(--ink); font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; border: 0; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.btn svg { flex: none; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-lg { min-height: 72px; padding: 0 44px; font-size: 21px; gap: 14px; }

/* Header */
.site-header { background-color: var(--ink); color: var(--text-on-dark); background-image: linear-gradient(rgba(232,238,246,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(232,238,246,0.04) 1px, transparent 1px); background-size: 48px 48px; }
.nav { padding: 0 var(--gutter); border-bottom: 1px solid var(--line-dark); }
.nav-inner { max-width: 1200px; margin: 0 auto; min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; padding: 12px 0; }
.nav-links .nav-phone { font-family: var(--mono); font-size: 14px; color: var(--muted-on-dark); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 420px) { .brand img { height: 40px; } .nav-inner { min-height: 72px; gap: 12px; } .nav .btn-sm { padding: 0 16px; } }

/* Hero */
.hero { padding: clamp(56px, 6.2vw, 88px) var(--gutter) clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -0.025em; }
.hero h1 .hl { color: var(--accent-hi); }
.hero .lede { color: var(--soft-on-dark); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.hero-actions .call { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }

.demo { display: flex; flex-direction: column; gap: 16px; }
.demo-card { border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.demo-voice { background: var(--panel); border: 1px solid var(--line-dark); }
.demo-rag { background: var(--paper); color: var(--text); margin-left: clamp(0px, 4vw, 56px); gap: 14px; }
.demo-head { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-dark); }
.demo-rag .demo-head { color: var(--muted); }
.turns { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.45; }
.turn { display: flex; gap: 16px; }
.who { flex: none; width: 58px; padding-top: 3px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted-on-dark); }
.turn.caller .said { color: var(--soft-on-dark); }
.turn.agent .who { color: var(--accent-hi); }
.flow { display: flex; align-items: center; padding-top: 18px; border-top: 1px solid var(--line-dark); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.flow .node { padding: 7px 10px; border: 1px solid var(--line-dark); border-radius: 3px; white-space: nowrap; }
.flow .wire { flex: 1 1 auto; min-width: 12px; max-width: 56px; height: 1px; background: var(--accent); }
.flow .node.on { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.rag-q { font-size: 16px; line-height: 1.45; color: var(--muted); }
.rag-a { font-size: 18px; line-height: 1.4; font-weight: 500; }
.rag-src { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.rag-src span:first-child { color: var(--muted); }
.rag-src span:last-child { padding: 6px 10px; border: 1px solid var(--text); border-radius: 3px; }

/* Light sections */
.light { background: var(--paper); color: var(--text); }
.lede-muted { color: var(--muted); }
.rule-top { padding-top: 40px; border-top: 1px solid var(--text); }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.service .strip { display: flex; align-items: center; font-family: var(--mono); font-size: clamp(9px, 2.5vw, 11px); letter-spacing: 0.04em; text-transform: uppercase; }
.strip .node { padding: 7px 10px; border: 1px solid var(--text); border-radius: 3px; white-space: nowrap; }
.strip .node.on { padding: 8px 10px; border: 0; background: var(--text); color: var(--accent-hi); }
.strip .wire { flex: 1 1 auto; min-width: 10px; height: 1px; background: var(--text); }
.service-title { display: flex; flex-direction: column; gap: 10px; }
.service-title .num { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.service h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -0.015em; }
.service .tagline { font-size: 19px; font-weight: 500; line-height: 1.4; }
.service .desc { color: var(--muted); }
.checks li { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 6px 0; border-top: 1px solid var(--line); font-weight: 500; line-height: 1.4; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--text); }
.center-cta { display: flex; justify-content: center; margin-top: 48px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 0; }
.step { display: flex; flex-direction: column; gap: 20px; }
.step .track { display: flex; align-items: center; }
.step .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.step .line { flex: 1 1 auto; height: 1px; background: var(--field-line); }
.step .end { flex: none; width: 12px; height: 12px; border: 1px solid var(--accent); }
.step-body { display: flex; flex-direction: column; gap: 12px; padding-right: clamp(16px, 3vw, 48px); }
.step-body .num { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--muted-on-dark); }
.step h3 { font-size: 28px; line-height: 1.15; letter-spacing: -0.015em; }
.step p:last-child { color: var(--soft-on-dark); }

/* FAQ */
.faq-list { border-top: 1px solid var(--text); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 72px; padding: 18px 0; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.25; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--text); border-radius: 50%; font-family: var(--mono); font-size: 18px; font-weight: 400; }
.faq-list details[open] summary::after { content: "\2212"; background: var(--text); color: var(--paper); }
.faq-list .answer { padding: 0 56px 24px 0; color: var(--muted); max-width: 46em; }
@media (max-width: 600px) { .faq-list .answer { padding-right: 0; } }

/* About */
.about-meta { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Contact */
.contact-copy { display: flex; flex-direction: column; gap: 24px; }
.contact-copy h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; }
.contact-copy .lede { color: var(--soft-on-dark); max-width: 30em; }
.details { margin: 8px 0 0; font-style: normal; }
.detail { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.detail:last-child { border-bottom: 1px solid var(--line-dark); }
.detail .label { flex: none; width: 96px; padding-top: 3px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-dark); }
.detail .value { font-size: 18px; line-height: 1.45; }
.detail .links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 500; }

.form { background: var(--panel); border: 1px solid var(--line-dark); border-radius: 6px; padding: clamp(24px, 3vw, 40px); margin: 0; }
.form-fields { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.field label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft-on-dark); }
.field input, .field textarea { width: 100%; padding: 0 16px; background: var(--ink); border: 1px solid var(--field-line); border-radius: 4px; color: var(--text-on-dark); font: inherit; }
.field input { height: 52px; }
.field textarea { min-height: 148px; padding: 14px 16px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; color: var(--error); }
.form-done { display: none; flex-direction: column; justify-content: center; gap: 12px; min-height: 240px; outline: none; }
.form-done .eyebrow { color: var(--accent-hi); }
.form-done .big { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -0.015em; }
.form-done p:last-child { color: var(--soft-on-dark); }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: 48px var(--gutter) 40px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px 48px; align-items: start; }
.footer-logo img { width: 200px; }
.site-footer address { font-style: normal; line-height: 1.7; color: var(--soft-on-dark); }
.foot-title { margin-bottom: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-dark); }
.foot-links { display: flex; flex-direction: column; }
.foot-links a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--soft-on-dark); }
.copyright { max-width: 1200px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--line-dark); }

/* ---------- Service pages ---------- */
.crumbs { max-width: 1200px; margin: 0 auto; padding: 20px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-on-dark); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--field-line); }
.crumbs a { text-decoration: none; color: var(--soft-on-dark); }
.page-hero { padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(56px, 7vw, 96px); }
.page-hero .hero-copy { max-width: 820px; }
.page-hero h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.025em; }
.try-it { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; padding: 18px 20px; border: 1px solid var(--line-dark); border-radius: 6px; background: var(--panel); max-width: 640px; }
.try-it .eyebrow { color: var(--accent-hi); }
.try-it a { font-weight: 600; font-size: 18px; }
.prose { max-width: 46em; display: flex; flex-direction: column; gap: 16px; }
.prose p { color: var(--muted); }
.dark .prose p { color: var(--soft-on-dark); }
.use-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.use { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.use h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.use p { color: var(--muted); }
.included { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 32px; }
.steps-4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.timeline-note { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: var(--soft-on-dark); max-width: 46em; }
.timeline-note strong { color: var(--text-on-dark); }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.related a { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.related a span:first-child { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.related a span:last-child { color: var(--muted); font-size: 15px; }
.learn-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: #1460B8; text-decoration: none; }
.learn-more svg { flex: none; }

/* ---------- Top menu: Services dropdown and phone menu ---------- */
.nav { position: relative; z-index: 20; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.nav-dd-btn svg { transition: transform .15s ease; }
.nav-dd.open .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-menu { display: none; position: absolute; left: -16px; top: 100%; z-index: 30; min-width: 330px; margin-top: 6px; padding: 8px; background: var(--panel); border: 1px solid var(--line-dark); border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-dd:hover .nav-dd-menu, .nav-dd.open .nav-dd-menu { display: block; }
.nav-links .nav-dd-menu a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 4px; text-decoration: none; }
.nav-links .nav-dd-menu a:hover, .nav-links .nav-dd-menu a:focus-visible { background: #131C29; opacity: 1; }
.nav-dd-menu .t { font-weight: 600; color: var(--text-on-dark); }
.nav-dd-menu .d { font-size: 13px; font-weight: 400; color: var(--muted-on-dark); }
.nav-dd-menu a[aria-current="page"] .t { color: var(--accent-hi); }
.nav-contact, .menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--line-dark); border-radius: 4px; color: var(--text-on-dark); cursor: pointer; }
  .menu-btn[aria-expanded="true"] { border-color: var(--accent); }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gutter) 20px; background: var(--ink); border-bottom: 1px solid var(--line-dark); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
  .nav-links.open { display: flex; }
  .nav-links > a { display: flex; align-items: center; min-height: 52px; padding: 0; border-bottom: 1px solid var(--line-dark); }
  .nav-links > a.nav-contact { display: flex; border-bottom: 0; color: var(--accent-hi); font-weight: 600; }
  .nav-dd { border-bottom: 1px solid var(--line-dark); padding-bottom: 8px; }
  .nav-dd-btn { display: none; }
  .nav-dd::before { content: "Services"; display: block; padding: 16px 0 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-dark); }
  .nav-dd-menu { display: block; position: static; min-width: 0; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav-dd-menu::before { display: none; }
  .nav-links .nav-dd-menu a { padding: 10px 0; }
}
@media (max-width: 420px) { .nav-actions .btn { display: none; } }
