/* Marketing layouts, built against the Nocturne handoff. */
:root { --font-mono: 'IBM Plex Mono', monospace; --muted: color-mix(in srgb, var(--color-text) 78%, transparent); --quiet: color-mix(in srgb, var(--color-text) 64%, transparent); --hairline: linear-gradient(to right, transparent, var(--color-neutral-700) 48px calc(100% - 48px), transparent); }
body { background: radial-gradient(1200px 720px at 82% -160px, color-mix(in srgb, var(--color-accent-900) 75%, transparent), transparent 60%), radial-gradient(1100px 800px at -10% 100%, color-mix(in srgb, black 30%, transparent), transparent 55%), var(--color-bg); text-wrap: pretty; }
a { color: var(--color-accent-300); text-decoration: none; }
a:hover { color: var(--color-accent-200); }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.container { max-width: 1160px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 72px); }
.nav { padding-inline: max(clamp(20px, 5vw, 72px), calc((100% - 1160px) / 2 + 32px)); }
.nav .nav-brand { font-size: 18px; white-space: nowrap; }
.nav .btn { white-space: nowrap; }
.hero { padding: 96px 0 64px; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.12; margin: 0 0 0 -0.06em; }
.hero h1 > span { display: block; }
.home-hero { padding: 112px 0 84px; }
.home-hero h1 { font-size: clamp(42px, 6vw, 80px); line-height: 1.1; }
/* Reserve the tallest line at every width, so the rotating headline never moves the page. */
.hero h1 > .hero-rotation { display: grid; }
.hero-rotation > span { grid-area: 1 / 1; }
.hero-measure { visibility: hidden; pointer-events: none; }
[data-hero-line] { transition: opacity .4s ease; }
[data-hero-line].fading { opacity: 0; }
.hero-copy { font-size: 17px; line-height: 1.65; max-width: 56ch; margin: 36px 0 0; color: color-mix(in srgb, var(--color-text) 86%, transparent); }
.home-hero .hero-copy { margin-top: 40px; }
.actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: 32px; }
.results-band { background: radial-gradient(900px 420px at 85% -40%, color-mix(in srgb, var(--color-section-glow) 70%, transparent), transparent 64%), var(--color-section); padding: 70px 0; }
.quickstart-band { padding-block: 64px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 42px 28px; }
.metric-number { font-family: var(--font-mono); font-weight: 500; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; margin: 0; }
.metric-label { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); margin: 14px 0 0; }
.kicker { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); margin: 0 0 18px; }
.hero .kicker { margin-bottom: 20px; }
.section-heading { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; letter-spacing: -.012em; margin: 0; max-width: 24ch; }
.section-intro { font-size: 15.5px; line-height: 1.8; max-width: 54ch; margin: 24px 0 0; color: var(--muted); }
.approach { padding: 98px 0 70px; }
.feature-rows { margin-top: 40px; }
.feature-row { display: grid; grid-template-columns: minmax(56px, 120px) minmax(0, 340px) minmax(0, 1fr); gap: 16px clamp(24px, 4vw, 64px); align-items: baseline; padding: 34px 0; }
.feature-row + .feature-row { background: var(--hairline) top / 100% 1px no-repeat; }
.row-number { font-family: var(--font-mono); font-size: 14px; color: var(--color-accent); margin: 0; }
.feature-row h3 { font-size: 24px; letter-spacing: -.01em; margin: 0; }
.row-body { font-size: 15.5px; line-height: 1.8; margin: 0; color: var(--muted); max-width: 52ch; }
.client-results { padding: 40px 0 70px; }
.client-results .section-heading { max-width: 26ch; }
.result-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-4); margin-top: 44px; }
.card-kicker { font-family: var(--font-mono); line-height: 1.55; margin-bottom: var(--space-3); }
.card-body { margin-top: 12px; }
.card-result { font-family: var(--font-mono); font-size: 13px; color: var(--color-accent-300); margin: 20px 0 0; }
.results-link { margin: 32px 0 0; }
.section-rule { height: 1px; border: 0; margin: 0; background: linear-gradient(to right, transparent, var(--color-divider) 48px calc(100% - 48px), transparent); }
.founder { padding: 70px 0; }
.founder blockquote { font-family: var(--font-heading); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; letter-spacing: -.01em; max-width: 36ch; margin: 0; text-indent: -.474em; }
.founder p { font-size: 15px; line-height: 1.65; color: var(--quiet); margin: 28px 0 0; text-indent: -1.267em; }
.closing { padding: 64px 0 84px; }
.home-hero ~ .closing, .founder ~ .closing { padding-top: 70px; }
.closing h2 { font-size: 26px; margin: 0; }
.closing p { font-size: 15.5px; line-height: 1.8; color: var(--muted); margin: 18px 0 0; max-width: 54ch; }
.closing .actions { margin-top: 28px; }
.site-footer { padding-top: 48px; padding-bottom: 56px; font-size: 13px; line-height: 2; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.site-footer p { margin: 0; }
.tagline { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 10px; }
.footer-contact a { color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.footer-contact a:hover { color: var(--color-accent); }
.social { display: inline-flex; font-size: 20px; line-height: 1; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.weeks { padding: 90px 0 60px; }
.weeks .feature-row { grid-template-columns: minmax(72px, 140px) minmax(0, 320px) minmax(0, 1fr); }
.weeks .feature-row h3 { font-size: 22px; }
.cases-hero { padding-bottom: 40px; }
.case-studies { padding: 40px 0 20px; }
.case-study { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px clamp(24px, 5vw, 80px); align-items: start; padding: 48px 0; background: var(--hairline) top / 100% 1px no-repeat; }
.case-study .kicker { margin: 0; }
.case-study h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -.01em; margin: 18px 0 0; }
.case-study h2 ~ p { font-size: 15.5px; line-height: 1.8; color: var(--muted); margin: 18px 0 0; max-width: 52ch; }
.case-study h2 ~ p + p { margin-top: 14px; }
.case-study strong { color: var(--color-text); font-weight: 500; }
.case-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-content: start; padding-top: 6px; }
.case-metrics .metric-number { font-size: 40px; color: var(--color-accent-300); }
.case-metrics .metric-label { margin-top: 12px; line-height: 1.55; }
.chat-toggle { position: fixed; right: 24px; bottom: 24px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--color-accent); background: var(--color-surface); color: var(--color-accent); font-size: 20px; box-shadow: var(--shadow-md); z-index: 50; }
.chat-toggle:hover { background: var(--color-accent-900); }
.chat-panel { position: fixed; right: 24px; bottom: 92px; width: min(360px, calc(100vw - 48px)); max-height: calc(100dvh - 116px); background: var(--color-surface); border: 1px solid var(--color-neutral-800); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; z-index: 50; }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--color-neutral-800); }
.chat-header h2 { font-family: var(--font-mono); font-size: 12px; line-height: 1.55; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent); margin: 0; }
.chat-messages { padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 320px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.chat-message { font-size: 14px; line-height: 1.6; padding: 10px 12px; border-radius: 8px; max-width: 90%; margin: 0; background: var(--color-neutral-900); align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; flex-shrink: 0; }
.chat-message.user { background: var(--color-accent-900); align-self: flex-end; }
.chat-message a { text-decoration: underline; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat-suggestions button { background: transparent; color: var(--color-accent); }
.chat-suggestions button:hover { background: var(--color-accent-900); }
.chat-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--color-neutral-800); }
.chat-form input { flex: 1; min-width: 0; }
.chat-header, .chat-suggestions, .chat-form { flex-shrink: 0; }
.chat-form .input::placeholder { color: var(--color-neutral-400); opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-200%); padding: 8px 16px; z-index: 100; background: var(--color-surface); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 880px) { .feature-row, .weeks .feature-row { grid-template-columns: 1fr; gap: 10px; } .nav { flex-wrap: wrap; } }
@media (max-width: 560px) { .nav .nav-text { display: none; } .nav { flex-wrap: nowrap; } }
@media (max-width: 360px) { .nav .nav-brand { font-size: 16px; } .nav { gap: 8px; } .nav .btn { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { [data-hero-line] { transition: none; } }
/* Keep the accent chip readable while its background changes on hover. */
.chat-suggestions button:hover { color: var(--color-accent-300); }

/* Preserve the original brain artwork in the brand, Sage, and founder section. */
.nav .nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-brain, .chat-brain, .founder-brain { flex-shrink: 0; object-fit: contain; }
.brand-brain { width: 32px; height: 32px; }
.chat-header h2 { display: flex; align-items: center; gap: 8px; }
.chat-brain { width: 24px; height: 24px; }
.founder-brain { width: 64px; height: 64px; margin-bottom: 24px; }
@media (max-width: 400px) {
  .nav .nav-brand { white-space: normal; gap: 8px; }
  .nav-brand span { max-width: 112px; line-height: 1.2; }
}

/* Restored business content uses the same Nocturne type, colors and fading rules. */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--color-bg) 96%, transparent); border-bottom: 1px solid var(--color-divider); }
html { scroll-padding-top: 120px; }
.anchor-alias { display: block; }
.restored-section { padding: 64px 0; border-top: 1px solid transparent; background: var(--hairline) top / 100% 1px no-repeat; }
.editorial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; margin-top: 36px; }
.three-columns { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.editorial-card { padding: 24px; background: var(--color-surface); border-radius: var(--radius-md); }
.editorial-card h3 { font-size: 22px; line-height: 1.3; margin: 0 0 18px; }
.editorial-card p, .editorial-card li, .scope-list li { color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.editorial-card .row-number { color: var(--color-accent-300); margin-bottom: 12px; }
.editorial-card ul, .scope-list { padding-left: 20px; margin: 20px 0 0; }
.editorial-card li + li, .scope-list li + li { margin-top: 12px; }
.editorial-card .btn { margin-top: 20px; }
.scope-list { max-width: 70ch; margin-top: 28px; }
.founder .kicker { color: var(--color-accent); font: 12px/1.55 var(--font-mono); text-indent: 0; margin: 0 0 18px; }
.founder-story { max-width: 70ch; margin-top: 28px; }
.founder-story p { font-size: 17px; line-height: 1.8; text-indent: 0; color: var(--muted); margin: 18px 0 0; }
.founder-story p:last-child { color: var(--color-accent-300); }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; margin-top: 36px; }
.role-card { display: flex; flex-direction: column; padding: 24px; background: var(--color-surface); border-radius: var(--radius-md); color: var(--color-text); }
.role-card:hover { background: var(--color-accent-900); }
.role-card h3 { font-size: 24px; margin-bottom: 16px; }
.role-card p { color: var(--muted); font-size: 15px; line-height: 1.7; flex: 1; }
.role-status { display: block; font: 12px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--color-accent-300); margin-top: 20px; }
.partner-section { padding-top: 48px; padding-bottom: 48px; }
.partner-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: center; padding-top: 48px; background: var(--hairline) top / 100% 1px no-repeat; }
.partner-link { display: inline-block; background: var(--color-neutral-100); padding: 12px 16px; border-radius: var(--radius-md); }
.partner-link img { width: 180px; height: 48px; object-fit: contain; object-position: left center; }
.partner-grid h2 { font-size: 24px; line-height: 1.3; margin-bottom: 16px; }
.partner-grid p:not(.kicker) { color: var(--muted); font-size: 15.5px; line-height: 1.8; max-width: 54ch; }
.site-footer .footer-location, .site-footer .footer-sage { margin-top: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; }
.footer-links a { color: var(--quiet); }
.footer-links a:hover { color: var(--color-accent-300); }
.delivery-weeks { margin-top: 40px; }
.delivery-week { padding: 40px 0; background: var(--hairline) top / 100% 1px no-repeat; }
.delivery-heading { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: baseline; gap: 24px; }
.delivery-heading h3 { font-size: 24px; line-height: 1.3; margin: 0; }
.delivery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; margin: 28px 0 0 144px; }
.delivery-grid h4 { font: 12px/1.5 var(--font-mono); color: var(--color-accent-300); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.delivery-grid ul, .delivery-grid ol { padding-left: 20px; margin: 0; }
.delivery-grid li, .delivery-value { font-size: 15.5px; line-height: 1.8; color: var(--muted); }
.delivery-grid li + li { margin-top: 14px; }
.delivery-value { margin-top: 24px; }
.delivery-value strong { font-weight: 500; color: var(--color-text); }
.confidence-list { display: flex; flex-wrap: wrap; gap: 20px 40px; list-style: none; padding: 0; margin: 32px 0 0; color: var(--color-accent-300); font: 12px/1.6 var(--font-mono); }
.contact-alternatives { padding-bottom: 64px; color: var(--quiet); }
.contact-alternatives .editorial-grid { margin-top: 28px; }
.contact-alternatives h3 { font-size: 20px; margin-bottom: 14px; }
.chat-message.bot { white-space: normal; }
.chat-message.bot > :first-child { margin-top: 0; }
.chat-message.bot > :last-child { margin-bottom: 0; }
.chat-message.bot p { margin: 0 0 10px; }
.chat-message.bot h3, .chat-message.bot h4 { font-size: 16px; line-height: 1.4; margin: 14px 0 8px; }
.chat-message.bot ul, .chat-message.bot ol { padding-left: 20px; margin: 10px 0; }
.chat-message.bot pre { overflow-x: auto; white-space: pre-wrap; background: var(--color-bg); padding: 8px; border-radius: 4px; }
.chat-message.bot code { font-family: var(--font-mono); font-size: 12px; }
.chat-message.bot table { border-collapse: collapse; display: block; max-width: 100%; overflow-x: auto; }
.chat-message.bot th, .chat-message.bot td { border: 1px solid var(--color-divider); padding: 6px; }
.chat-suggestions button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 880px) { .delivery-grid { margin-left: 0; } }
@media (max-width: 560px) { .delivery-grid, .partner-grid { grid-template-columns: 1fr; gap: 24px; } .delivery-heading { grid-template-columns: 1fr; gap: 12px; } .editorial-card { padding: 20px; } }
