/* AlgoTailor v18 - evidence-first site. Brand: assets/brand/brand-guidelines.md */
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #090d12; --panel: #111821; --panel-2: #0d131a; --line: #1f2935;
  --text: #f1f4f7; --muted: #8794a3; --teal: #22d39a; --teal-dim: rgba(34, 211, 154, .14);
  --red: #ff4b55; --amber: #ffb547;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --shell: 1180px; --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
.shell { width: min(var(--shell), 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--teal); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.honeypot, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
/* Anchored sections clear the fixed header; grid children may shrink so long log lines scroll inside .log instead of widening the page */
section[id] { scroll-margin-top: 78px; }
.proof-inner > *, .work-feature > *, .brokers-inner > *, .contact-section > div > *, .pain-grid > *, .service-grid > *, .terms-grid > *, .steps > * { min-width: 0; }

/* Type */
.eyebrow { font: 700 12px/1.4 var(--mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: 16px; }
h1, .display { font-weight: 800; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(40px, 6.4vw, 84px); }
h2 { font-weight: 800; letter-spacing: -.03em; line-height: 1.08; font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-weight: 600; letter-spacing: -.01em; line-height: 1.25; font-size: 21px; }
.lede { font-size: clamp(18px, 1.8vw, 22px); color: #c9d2dc; margin-top: 18px; max-width: 34ch; }
.accent { color: var(--teal); }
.muted-span { color: var(--muted); }
.struck { position: relative; color: var(--text); }
.struck::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: .09em; background: var(--red); border-radius: 4px; }
.small-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.text-link { background: none; border: 0; padding: 0; color: var(--teal); font-weight: 600; text-decoration: none; cursor: pointer; }
.text-link:hover { text-decoration: underline; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--teal); color: var(--ink); font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(34, 211, 154, .28); }
.button.secondary, .button-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, .22); }
.button-small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: linear-gradient(180deg, rgba(9, 13, 18, .92), rgba(9, 13, 18, .55)); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand-link img { height: 28px; width: auto; }
.desktop-nav { display: flex; gap: 26px; margin-left: auto; }
.desktop-nav a { text-decoration: none; color: #c3ccd6; font-size: 15px; }
.desktop-nav a:hover { color: var(--text); }
.mobile-nav { display: none; position: relative; margin-left: auto; }
.mobile-nav summary { list-style: none; cursor: pointer; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; right: 0; top: 52px; display: grid; min-width: 220px; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.mobile-nav nav a { padding: 12px 14px; text-decoration: none; border-radius: 8px; }
.mobile-nav nav a:hover { background: var(--panel-2); }

/* Scroll story */
.story { position: relative; height: 920vh; }
.story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 13, 18, .94) 0%, rgba(9, 13, 18, .66) 44%, rgba(9, 13, 18, .18) 78%), linear-gradient(0deg, var(--ink) 0%, transparent 24%); }
.story-captions { position: relative; height: 100%; display: grid; align-items: center; }
.story-caption { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 440px); justify-content: space-between; align-items: center; gap: 48px; opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; pointer-events: none; }
.story-caption.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story-caption .display { font-size: clamp(36px, 5vw, 68px); }
.story-caption h1 { font-size: clamp(40px, 5.6vw, 76px); }
.story-caption .lede { max-width: 46ch; }
.chapter-no { color: var(--teal); margin-right: 14px; }
/* Proof crop: real captures sit inside the four corner brackets of the Proof Frame (brand-guidelines 5) */
.story-proof { margin: 0; }
.proof-crop { position: relative; padding: 14px; background:
  linear-gradient(var(--text), var(--text)) 0 0 / 22px 2px no-repeat, linear-gradient(var(--text), var(--text)) 0 0 / 2px 22px no-repeat,
  linear-gradient(var(--text), var(--text)) 100% 0 / 22px 2px no-repeat, linear-gradient(var(--text), var(--text)) 100% 0 / 2px 22px no-repeat,
  linear-gradient(var(--text), var(--text)) 0 100% / 22px 2px no-repeat, linear-gradient(var(--text), var(--text)) 0 100% / 2px 22px no-repeat,
  linear-gradient(var(--text), var(--text)) 100% 100% / 22px 2px no-repeat, linear-gradient(var(--text), var(--text)) 100% 100% / 2px 22px no-repeat; }
.proof-crop img, .proof-crop video { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.story-proof figcaption { margin-top: 10px; font: 400 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }
.story-proof-video { justify-self: end; width: 100%; }
.story-caption-wide { grid-template-columns: minmax(0, 470px) minmax(0, 680px); }
.story-caption-wide .display { font-size: clamp(34px, 4.2vw, 58px); }
.story-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.story-steps li { display: flex; align-items: baseline; gap: 14px; font-size: 18px; color: #c9d2dc; }
.story-steps span { font: 700 13px var(--mono); color: var(--teal); min-width: 26px; }
.story-rail { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 12px 10px; border-radius: 12px; background: rgba(9, 13, 18, .55); display: grid; gap: 12px; font: 700 10px var(--mono); letter-spacing: .1em; color: rgba(135, 148, 163, .55); }
.story-rail li { padding-right: 16px; position: relative; transition: color .3s ease; }
.story-rail li::after { content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 1px; background: currentColor; }
.story-rail li.is-active { color: var(--teal); }
.story-rail li.is-active::after { width: 12px; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font: 700 11px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(var(--teal), transparent); }
.story.is-static { height: auto; }
.story.is-static .story-stage { position: relative; height: auto; min-height: 100vh; padding: 140px 0 80px; }
.story.is-static .story-captions { display: grid; gap: 56px; align-content: center; }
.story.is-static .story-caption { grid-area: auto; opacity: 1; transform: none; }
.story.is-static .scroll-hint, .story.is-static .story-rail { display: none; }
@media (max-width: 1000px) {
  .story-caption { grid-template-columns: 1fr; gap: 22px; align-content: end; }
  .story-proof { max-width: 420px; order: -1; }
  .story-rail { display: none; }
}

/* Proof bar */
.proofbar { border-block: 1px solid var(--line); background: var(--panel-2); }
.proofbar-inner { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; gap: 24px; padding: 30px 0; }
.proofbar strong { display: block; font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.proofbar span { color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.pain-grid, .service-grid, .terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.terms-grid { grid-template-columns: repeat(2, 1fr); }
.pain-card, .service, .terms-grid > div, .steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.pain-card { border-left: 4px solid var(--red); }
.pain-x { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border-radius: 10px; background: rgba(255, 75, 85, .12); color: var(--red); font-weight: 800; }
.pain-card p, .service p, .terms-grid p, .steps p, .work-copy p, .proof-copy > p, .brokers p { color: #b6c0cb; margin-top: 12px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-n { display: block; font: 700 13px var(--mono); color: var(--teal); margin-bottom: 18px; letter-spacing: .1em; }
.service { display: flex; flex-direction: column; }
.service .service-select { margin-top: auto; padding-top: 22px; align-self: flex-start; }

/* Proof */
.proof { background: radial-gradient(900px 500px at 85% 20%, rgba(34, 211, 154, .08), transparent 70%), var(--panel-2); border-block: 1px solid var(--line); }
.proof-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.log { margin-top: 28px; padding: 22px 24px; background: #070a0e; border: 1px solid var(--line); border-radius: 14px; font: 400 14px/1.75 var(--mono); color: #d7dee6; overflow-x: auto; }
.log p { white-space: nowrap; }
.log-title { color: var(--muted); font-size: 11px; letter-spacing: .14em; margin-bottom: 8px; }
.log-red { color: var(--red); }
.log-green { color: var(--teal); }
.tests { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.tests li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tests span { font: 700 13px var(--mono); color: #5aa9ff; width: 26px; }
.tests b { margin-left: auto; font: 700 11px var(--mono); letter-spacing: .08em; color: var(--ink); background: var(--teal); padding: 3px 8px; border-radius: 6px; }
.tests b.b-wait { background: transparent; color: var(--amber); border: 1px solid var(--amber); }
.proof-phone { justify-self: center; width: min(340px, 100%); padding: 10px; border-radius: 34px; background: #000; border: 1px solid #2b3643; box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 6px #0f151c; }
.proof-phone video { width: 100%; aspect-ratio: 9 / 16; border-radius: 26px; object-fit: cover; background: #000; }

/* Proof frame: every real screenshot is cropped inside the four corner brackets (brand signature) */
.frame-media { position: relative; display: block; padding: 14px; }
.frame-media img, .frame-media video { width: 100%; border-radius: 8px; }
.frame-media::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--text), var(--text)) 0 0 / 34px 3px no-repeat, linear-gradient(var(--text), var(--text)) 0 0 / 3px 34px no-repeat,
    linear-gradient(var(--text), var(--text)) 100% 0 / 34px 3px no-repeat, linear-gradient(var(--text), var(--text)) 100% 0 / 3px 34px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 100% / 34px 3px no-repeat, linear-gradient(var(--text), var(--text)) 0 100% / 3px 34px no-repeat,
    linear-gradient(var(--text), var(--text)) 100% 100% / 34px 3px no-repeat, linear-gradient(var(--text), var(--text)) 100% 100% / 3px 34px no-repeat;
  transition: inset .5s cubic-bezier(.2, .8, .2, 1); }
.frame-media:hover::before, .in .frame-media::before { inset: 4px; }
.work-feature { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center; }
.proof-index { font: 700 12px var(--mono); letter-spacing: .12em; color: var(--teal); margin-bottom: 14px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 16px; margin-top: 30px; }
.gallery img { aspect-ratio: 16 / 10; object-fit: cover; }

/* Brokers */
.brokers { background: var(--panel-2); border-block: 1px solid var(--line); }
.brokers-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.brokers .button { margin-top: 28px; }
.case-study { margin-top: clamp(48px, 7vw, 88px); }
.case-study h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; margin-top: 8px; }
.case-study > p:not(.eyebrow) { max-width: 820px; }
.case-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.case-shots figure { margin: 0; min-width: 0; }
.case-shots .proof-crop { display: block; }
.case-shots figcaption { color: #8d99a6; font-size: 14px; line-height: 1.5; margin-top: 10px; }
.brokers .case-note { color: #8d99a6; font-size: 14px; margin-top: 20px; }
@media (max-width: 1000px) { .case-shots { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding: 16px 18px 16px 50px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: #d3dae2; }
.checks li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 8px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: translateY(-70%) rotate(-45deg); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 30px 22px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 18px; font-size: 24px; color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 22px; color: #b6c0cb; }

/* Contact (markup from the live v17 page; ids unchanged for app.js / chat-ui.js) */
.contact-section { padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--line); background: radial-gradient(800px 500px at 10% 0%, rgba(34, 211, 154, .07), transparent 70%); }
.contact-section > div { width: min(var(--shell), 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-section h2 span { color: var(--muted); }
.contact-section h2 + p { color: #b6c0cb; margin-top: 18px; }
.contact-chat, .contact-email { display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.contact-icon { flex: none; fill: none; stroke: var(--teal); stroke-width: 1.8; }
.contact-chat p, .contact-email p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.brief-form { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 36px); }
.form-heading { display: flex; justify-content: space-between; font: 700 11px var(--mono); letter-spacing: .14em; color: var(--muted); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brief-form label { display: block; font-size: 14px; color: #c9d2dc; margin-bottom: 18px; }
.brief-form input, .brief-form select, .brief-form textarea { display: block; width: 100%; margin-top: 8px; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1px solid #2a3644; background: #0b1016; color: var(--text); font: 400 16px var(--sans); }
.brief-form textarea { min-height: 140px; resize: vertical; }
.brief-form input:focus, .brief-form select:focus, .brief-form textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-dim); }
.form-disclosure { font-size: 13px; color: var(--muted); margin: 6px 0 8px; }
.privacy-inline { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; }
#submit-brief { width: 100%; margin-top: 18px; }
#form-status { margin-top: 14px; font-size: 14px; color: var(--teal); }

/* Generic dialogs (the chat dialog is styled by chat.css) */
dialog:not(#chat-dialog) { width: min(640px, 100vw - 32px); max-height: calc(100dvh - 48px); padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--text); overflow-y: auto; }
dialog:not(#chat-dialog)::backdrop { background: rgba(3, 6, 10, .78); backdrop-filter: blur(4px); }
dialog:not(#chat-dialog) h2 { font-size: 30px; margin: 10px 0 16px; }
dialog:not(#chat-dialog) p { color: #b6c0cb; font-size: 15px; margin-bottom: 14px; }
dialog:not(#chat-dialog) textarea { width: 100%; min-height: 220px; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: #0b1016; color: var(--text); font: 13px/1.7 var(--mono); }
dialog:not(#chat-dialog) .dialog-close { float: right; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 36ch; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: #c3ccd6; text-decoration: none; font-size: 15px; }
.footer-bottom { display: flex; gap: 24px; align-items: flex-start; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom p:nth-child(2) { flex: 1; }
#privacy-button { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 12px; cursor: pointer; }

/* v18-4: past client builds (real, anonymised screenshots) */
.gallery-note { font: 400 13px/1.6 var(--mono); color: var(--muted); margin-top: 14px; }
.builds-head { max-width: 760px; margin: 80px 0 28px; }
.builds-head p:not(.proof-index) { color: #b6c0cb; margin-top: 12px; }
.builds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.builds > * { min-width: 0; }
.build { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 26px; }
.build .frame-media { margin-bottom: 14px; }
.build img { aspect-ratio: 4 / 3; object-fit: cover; }
.build .proof-index, .build h3, .build p:not(.proof-index) { padding-inline: 10px; }
.build .proof-index { margin-bottom: 8px; }
.build p:not(.proof-index) { color: #b6c0cb; margin-top: 10px; }

/* v18-4: common jobs (EA bug fix, MT4 to MT5, Manager API) */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.jobs > * { min-width: 0; }
.job { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; scroll-margin-top: 90px; }
.job > p:not(.proof-index) { color: #b6c0cb; margin-top: 12px; }
.job-list { list-style: none; margin: 18px 0 4px; padding: 0; display: grid; gap: 10px; }
.job-list li { position: relative; padding-left: 22px; font-size: 15px; color: #d3dae2; }
.job-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }
.job .service-select, .job > .text-link { margin-top: auto; padding-top: 22px; align-self: flex-start; }

/* v18-4: blog (static pages under /blog/) */
.blog-main { padding: 130px 0 90px; }
.post { max-width: 760px; margin-inline: auto; }
.post-meta { font: 700 12px/1.4 var(--mono); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.post-meta a { color: var(--teal); text-decoration: none; }
.post h1 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 26px; overflow-wrap: break-word; }
.post h2 { font-size: clamp(24px, 3vw, 32px); margin: 52px 0 16px; overflow-wrap: break-word; }
.post h3 { margin: 32px 0 12px; }
.post p, .post li { color: #c9d2dc; overflow-wrap: break-word; }
.post p { margin: 0 0 18px; }
.post ul, .post ol { padding-left: 22px; margin: 0 0 20px; }
.post li { margin-bottom: 8px; }
.post a { color: var(--teal); }
.post strong { color: var(--text); }
.post code { font: 400 .86em var(--mono); background: #0b1016; border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; }
.post pre { margin: 0 0 22px; padding: 18px 20px; background: #070a0e; border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.post pre code { background: none; border: 0; padding: 0; font-size: 14px; line-height: 1.7; color: #d7dee6; overflow-wrap: normal; white-space: pre; }
.post hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0 24px; }
.post hr + p { font-size: 13px; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 22px; }
.post table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 15px; }
.post th, .post td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.post th { font: 700 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-cta { margin-top: 48px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.post-cta p { margin-bottom: 0; }
.post-cta .button { margin-top: 20px; }
.blog-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 860px; }
.blog-list a { display: block; padding: 26px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.blog-list a:hover { border-color: var(--teal); }
.blog-list h2 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -.015em; line-height: 1.3; }
.blog-list p { color: #b6c0cb; margin-top: 10px; }
.blog-list .text-link { display: inline-block; margin-top: 14px; }

/* Reveal on scroll (story.js adds .in; without JS everything stays visible) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .desktop-nav, .header-cta { display: none; }
  .mobile-nav { display: block; }
  .pain-grid, .service-grid, .steps { grid-template-columns: 1fr 1fr; }
  .jobs { grid-template-columns: 1fr; }
  .proof-inner, .work-feature, .brokers-inner, .contact-section > div { grid-template-columns: 1fr; }
  .proofbar-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .pain-grid, .service-grid, .steps, .terms-grid, .tests, .gallery, .form-row, .builds { grid-template-columns: 1fr; }
  .job, .post-cta { padding: 22px; }
  .blog-list a { padding: 22px; }
  .story-shade { background: linear-gradient(0deg, rgba(9, 13, 18, .95) 15%, rgba(9, 13, 18, .45) 60%, rgba(9, 13, 18, .25)); }
  .story-captions { align-items: end; padding-bottom: 84px; }
  .story-proof { max-width: 300px; }
  .proof-crop { padding: 10px; }
  .story-caption .lede { font-size: 16px; margin-top: 12px; }
  .story-steps li { font-size: 16px; }
  .scroll-hint { display: none; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .story-caption { transition: none; }
}

/* v19-6: Google Ads measurement question, shown only to visitors from an ad (ads.js). */
.ads-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 560px; margin-inline: auto; padding: 16px 18px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45); color: var(--text); font: 14px/1.5 var(--sans);
}
.ads-consent p { margin: 0; flex: 1 1 280px; color: var(--muted); }
.ads-consent-actions { display: flex; gap: 8px; margin-left: auto; }
.ads-consent button {
  font: 600 14px var(--sans); padding: 9px 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--text);
}
.ads-consent .ads-consent-allow { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.ads-consent button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* v20: static hero (no scroll-scrubbed story), 4-step process, compact broker strip, shorter mobile page. */
.hero { padding: clamp(110px, 13vw, 160px) 0 clamp(48px, 7vw, 90px); background: radial-gradient(900px 520px at 80% 30%, rgba(34, 211, 154, .07), transparent 70%), var(--ink); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-inner > * { min-width: 0; }
.hero h1 { font-size: clamp(38px, 5.2vw, 70px); }
.hero .lede { max-width: 40ch; }
.hero .cta-row { margin-top: 26px; }
.hero-platforms { margin-top: 22px; color: var(--muted); font-size: 15px; }
.hero-media { margin: 0; }
.hero-media figcaption { margin-top: 10px; font: 400 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.section-sub { color: #b6c0cb; margin-top: 14px; max-width: 62ch; }
.brokers-strip-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; padding: clamp(26px, 4vw, 44px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.brokers-strip-inner > * { min-width: 0; }
.brokers-strip-inner p:not(.eyebrow) { color: #b6c0cb; margin-top: 12px; }
.brokers-strip-inner .cta-row { margin-top: 0; }
.brokers-strip { padding-block: clamp(40px, 6vw, 70px); }
.optional-contact-details .form-row + .form-row { margin-top: 14px; }
@media (max-width: 1000px) {
  .hero-inner, .brokers-strip-inner { grid-template-columns: 1fr; }
  .steps-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: 96px; }
  .hero h1 { font-size: 38px; }
  .hero .lede { font-size: 17px; }
  .hero .cta-row .button { flex: 1 1 100%; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 30px; }
  .steps-4 { grid-template-columns: 1fr; }
  .pain-card, .service, .terms-grid > div, .steps li { padding: 22px; }
  .builds { grid-template-columns: 1fr 1fr; gap: 14px; }
  .build > p:not(.proof-index) { display: none; }
  .build h3 { font-size: 15px; }
  .proof-phone { max-width: 300px; margin-inline: auto; }
}

/* v20b: 3-chapter story (shorter scroll), reviews, founder. */
.story.story-3 { height: 330vh; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reviews > * { min-width: 0; }
.review { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.review blockquote { margin: 0; font-size: 18px; line-height: 1.5; color: var(--text); }
.review figcaption { margin-top: auto; font: 400 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }
.founder { padding-block: clamp(40px, 6vw, 70px); }
.founder-inner { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(24px, 4vw, 40px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.founder-inner > * { min-width: 0; }
.founder-inner figure { margin: 0; }
.founder-inner img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); display: block; }
.founder-inner figcaption { margin-top: 8px; font: 400 11px/1.4 var(--mono); color: var(--muted); max-width: 170px; }
.founder-inner p:not(.eyebrow) { color: #b6c0cb; margin-top: 12px; max-width: 66ch; }
@media (max-width: 1000px) { .reviews { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .story.story-3 { height: 300vh; }
  .story-3 .story-captions { align-items: center; padding-bottom: 0; }
  .story-3 .story-caption .display { font-size: 32px; }
  .story-3 .story-proof-video { max-width: 320px; }
  .founder-inner { grid-template-columns: 1fr; }
  .founder-inner img { width: 112px; height: 112px; }
}
