:root {
  --paper: #f7f6f1;
  --surface: #fffefa;
  --surface-2: #efeee8;
  --ink: #161915;
  --muted: #626861;
  --line: #d9dbd3;
  --line-strong: #c4c8bf;
  --green: #28cc78;
  --green-dark: #0d7042;
  --green-soft: #e3f6ea;
  --blue: #2868e8;
  --orange: #de7b25;
  --danger: #b94c39;
  --font: "Helvetica Neue", Inter, Helvetica, Arial, sans-serif;
  --shadow: 0 16px 40px rgba(22, 25, 21, .07);
  --radius: 14px;
  --section: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.shell { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section-white { background: var(--surface); }
.section-dark { color: #f8faf7; background: #171c18; border-color: #171c18; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 246, 241, .94); border-bottom: 1px solid rgba(217, 219, 211, .9); backdrop-filter: blur(14px); }
.nav { min-height: 72px; display: grid; grid-template-columns: 180px 1fr auto; gap: 32px; align-items: center; }
.brand { display: inline-flex; align-items: center; }
.brand-lockup { width: 154px; height: 34px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; justify-content: center; align-items: center; gap: 28px; color: #4e544d; font-size: 14px; }
.nav-links a { padding: 8px 0; }
.nav-links .mobile-cta { display: none; }
.nav-links a:hover, .nav-links .is-current { color: var(--ink); }
.nav-links .is-current { box-shadow: inset 0 -1px var(--ink); }
.menu-toggle, .mobile-cta { display: none; }
.button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; border: 1px solid transparent; border-radius: 11px; font-size: 15px; font-weight: 650; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .tab-button:focus-visible, .menu-toggle:focus-visible, summary:focus-visible, .copy-prompt:focus-visible { outline: 3px solid rgba(40, 204, 120, .35); outline-offset: 3px; }
.button-dark { color: #fff; background: var(--ink); }
.button-green { color: #07301d; background: var(--green); }
.button-paper { background: var(--surface); border-color: var(--line-strong); }
.button-compact { min-height: 40px; padding: 0 16px; font-size: 14px; }

.eyebrow { margin: 0 0 14px; color: #606760; font-size: 12px; font-weight: 650; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow.green { color: var(--green-dark); }
.eyebrow.light { color: #aab3aa; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; }
h1 { margin-bottom: 24px; font-size: clamp(54px, 5.2vw, 76px); font-weight: 500; line-height: 1; }
h2 { margin-bottom: 20px; font-size: clamp(36px, 3.5vw, 48px); font-weight: 500; line-height: 1.08; }
h3 { margin-bottom: 10px; font-size: 25px; line-height: 1.14; }
.lede { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.section-head { margin-bottom: 32px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .75fr); gap: 48px; align-items: end; }
.section-head h2 { max-width: 820px; margin-bottom: 0; }
.section-head > p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }

/* Product proof */
.codex-window { overflow: hidden; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.codex-bar { min-height: 48px; padding: 0 16px; display: flex; align-items: center; gap: 12px; color: #747b74; background: #f1f1ed; border-bottom: 1px solid var(--line); font-size: 12px; }
.traffic { display: inline-flex; gap: 7px; }
.traffic i { width: 10px; height: 10px; display: block; border-radius: 50%; background: #ef5c52; }
.traffic i:nth-child(2) { background: #f1b63a; }
.traffic i:nth-child(3) { background: #28bb54; }
.codex-bar strong { color: #4c524c; font-weight: 600; }
.codex-bar > span:last-child { margin-left: auto; }
.codex-layout { display: grid; grid-template-columns: 154px 1fr; min-height: 520px; }
.codex-sidebar { padding: 20px 14px; display: flex; flex-direction: column; gap: 7px; color: #777d77; background: #f4f4f0; border-right: 1px solid var(--line); font-size: 11px; }
.codex-sidebar b { margin-bottom: 12px; color: var(--ink); font-size: 14px; }
.codex-sidebar span { padding: 8px 9px; border-radius: 7px; }
.codex-sidebar .current { color: var(--ink); background: #e6e7e2; font-weight: 650; }
.codex-main { min-width: 0; padding: 26px 28px 20px; display: flex; flex-direction: column; }
.prompt { max-width: 92%; margin: 0 0 25px auto; padding: 14px 16px; color: #353935; background: #eeeeea; border-radius: 12px 12px 3px 12px; font-size: 14px; }
.agent-line { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.agent-line img { width: 28px; height: 28px; object-fit: contain; }
.agent-line span { color: #858b84; }
.work-log { margin: 17px 0 20px 38px; display: grid; gap: 7px; color: #4d534d; font-size: 13px; }
.work-log span { display: flex; align-items: center; gap: 9px; }
.work-log i { width: 18px; height: 18px; display: inline-grid; place-items: center; color: #fff; background: var(--green-dark); border-radius: 50%; font-size: 10px; font-style: normal; }
.artifact { margin-left: 38px; padding: 21px; background: #fbfbf8; border: 1px solid var(--line); border-radius: 12px; }
.artifact-head { padding-bottom: 14px; display: flex; justify-content: space-between; gap: 14px; color: var(--green-dark); border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.artifact h3, .artifact .artifact-title { margin: 18px 0; font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 400; line-height: 1.1; letter-spacing: -.025em; }
.artifact h3 em, .artifact .artifact-title em { color: var(--green-dark); font-style: normal; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 9px; }
.metric-row div { padding: 12px 13px; border-right: 1px solid var(--line); }
.metric-row div:last-child { border-right: 0; }
.metric-row small { display: block; color: #7d837c; font-size: 10px; }
.metric-row strong { display: block; margin-top: 3px; font-size: 19px; }
.metric-row .good { color: var(--green-dark); }
.artifact-note { margin: 15px 0 0; color: var(--muted); font-size: 12px; }
.composer { min-height: 48px; margin-top: auto; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; color: #929791; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.composer b { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 8px; }

/* Home */
.home-hero { padding: 52px 0 64px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.home-hero-copy { max-width: 620px; }
.home-hero .lede { margin-bottom: 28px; }
.home-hero h1 { font-size: clamp(48px, 4.5vw, 66px); line-height: 1.04; text-wrap: balance; }
.audience-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 16px; }
.audience-tabs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.audience-tabs button { min-height: 36px; padding: 4px 0; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 13px; }
.audience-tabs button[aria-selected="true"] { color: var(--green-dark); border-bottom-color: var(--green-dark); }
.audience-rotation { padding: 4px 8px; min-height: 36px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: transparent; font-size: 11px; }
.audience-tabs button:focus-visible, .audience-rotation:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 3px; }
.audience-copy { display: grid; }
.audience-copy > p { grid-area: 1 / 1; min-width: 0; }
/* Keep every panel in the same grid cell to reserve its natural height. */
.audience-copy > p[hidden] { display: block; visibility: hidden; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { margin: 18px 0 0; color: #737a72; font-size: 13px; }
.hero-demo .codex-layout { min-height: 500px; grid-template-columns: 118px minmax(0, 1fr); }
.hero-demo .codex-main { padding: 22px 20px 18px; }
.hero-demo .artifact { margin-left: 0; padding: 18px; }
.hero-demo .artifact-title { font-size: 28px; }
.hero-demo .work-log { margin-left: 0; }
.hero-demo .composer { margin-top: 20px; }

/* Readable task preview: all three scenes share one intrinsic grid footprint. */
.hero-player { min-width: 0; width: 100%; align-self: center; scroll-margin-top: 90px; }
.hero-player .codex-bar { gap: 10px; min-height: 44px; font-size: .875rem; }
.hero-player .codex-bar strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hero-player .codex-bar > span:last-child { font-size: .75rem; white-space: nowrap; }
.hero-stage { display: grid; grid-template-columns: minmax(0,1fr); width: 100%; min-width: 0; min-height: 460px; aspect-ratio: 16 / 10; background: #fff; }
.hero-stage > * { grid-area: 1 / 1; min-width: 0; }
.hero-stage > video[hidden] { display: none; }
.hero-stage > .hero-scene[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.hero-stage video { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; background: #f4f4f1; }
.hero-stage { position: relative; }
.hero-scene { display: grid; min-width: 0; }
.hero-scene-sidebar { display: none; }
.hero-scene-thread { display: flex; flex-direction: column; gap: 16px; padding: 24px; min-width: 0; }
.hero-scene-prompt { align-self: flex-end; max-width: 96%; margin: 0; padding: 12px 15px; border-radius: 12px; background: #f1f1ed; font-size: 1rem; line-height: 1.45; }
.hero-scene-agent { display: flex; align-items: center; gap: 8px; font-size: .875rem; }
.hero-scene-agent img { width: 28px; height: 28px; object-fit: contain; }
.hero-scene-agent > span { color: #667060; font-size: .75rem; margin-left: auto; }
.hero-scene-checks { display: grid; gap: 6px; }
.hero-scene-checks p { margin: 0; font-size: .875rem; line-height: 1.45; color: #4f594f; }
.hero-scene-checks span { color: #148149; margin-right: 8px; }
.hero-scene-result { border-top: 1px solid #e3e6df; padding-top: 14px; }
.hero-scene-result > small { color: #257249; font-size: .75rem; letter-spacing: .04em; }
.hero-scene-result h2 { font-family: var(--font); font-size: 1.5rem; line-height: 1.2; letter-spacing: -.5px; margin: 8px 0 14px; }
.hero-scene-result dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0; }
.hero-scene-result dt { font-size: .75rem; color: #616b5e; }
.hero-scene-result dd { margin: 5px 0 0; font-size: .875rem; line-height: 1.35; font-weight: 600; }
.hero-scene-result > p { margin: 14px 0 0; font-size: .875rem; line-height: 1.45; color: #596452; }
.hero-scene-composer { display: none; }
.hero-player-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 16px; border-top: 1px solid #e3e5df; color: #616b5c; font-size: .75rem; }
.hero-player-controls { display: flex; align-items: center; gap: 12px; }
.hero-player-footer button { min-height: 40px; border: 0; background: transparent; padding: 8px 0; font: inherit; font-size: .875rem; color: #256f48; cursor: pointer; white-space: nowrap; }
.hero-player-footer .audience-rotation { min-width: 64px; padding: 8px 12px; border: 1px solid #cbd4c5; border-radius: 6px; background: #fff; }
.hero-timeline { height: 3px; background: #e9ece5; overflow: hidden; }
.hero-timeline span { display: block; height: 100%; background: #20c575; transform: scaleX(0); transform-origin: left; }
.hero-lightbox { width: min(1080px,94vw); max-height: 92vh; padding: 0; border: 1px solid #dfe4da; border-radius: 14px; color: #171c18; }
.hero-lightbox::backdrop { background: rgb(14 24 17 / 65%); }
.hero-lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid #e1e5dc; font-size: .875rem; }
.hero-lightbox-bar button { padding: 8px 12px; min-height: 40px; border: 1px solid #dfe4da; border-radius: 6px; background: #fff; cursor: pointer; }
.hero-lightbox video { display: block; width: 100%; max-height: 78vh; }
.hero-lightbox .hero-scene-thread { padding: 32px; gap: 22px; }
.hero-lightbox .hero-scene-result h2 { font-size: 2rem; }
@media (max-width: 560px) {
  .hero-stage { aspect-ratio: auto; min-height: 0; }
  .hero-stage video { aspect-ratio: 16 / 10; height: auto; top: 50%; transform: translateY(-50%); }
  .hero-scene-thread { padding: 18px 16px; gap: 14px; }
  .hero-player .codex-bar > span:last-child { display: none; }
  .hero-player .codex-bar { padding-inline: 12px; font-size: .75rem; }
  .hero-player .traffic { gap: 4px; }
  .hero-player .traffic i { width: 8px; height: 8px; }
  .hero-scene-result h2 { font-size: 1.375rem; }
  .hero-scene-result dl { gap: 8px; }
  .hero-player-footer { padding: 10px 14px; }
  .hero-player-controls { width: 100%; justify-content: space-between; }
  .hero-lightbox .hero-scene-thread { padding: 20px; gap: 16px; }
  .hero-lightbox .hero-scene-result h2 { font-size: 1.5rem; }
}

.connect-map { display: grid; grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr); align-items: stretch; }
.source-stack { display: grid; gap: 14px; }
.source-panel { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.source-panel header { margin-bottom: 18px; display: flex; justify-content: space-between; gap: 20px; }
.source-panel header span { color: #898e88; font-size: 11px; }
.source-panel h3 { margin: 0; font-size: 20px; }
.logo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.logo-chip { min-height: 88px; padding: 12px 8px; display: grid; place-items: center; gap: 7px; background: #f8f8f5; border: 1px solid var(--line); border-radius: 10px; text-align: center; font-size: 12px; font-weight: 650; }
.logo-chip img { width: 34px; height: 34px; object-fit: contain; }
.connect-core { position: relative; display: grid; place-items: center; text-align: center; }
.connect-core::before, .connect-core::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-strong); }
.connect-core::after { width: 7px; height: 7px; left: auto; right: 16px; margin-top: -3px; background: var(--green); border-radius: 50%; animation: signal 3.2s linear infinite; }
.core-badge { position: relative; z-index: 2; width: 128px; height: 128px; padding: 20px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 50%; box-shadow: 0 0 0 12px var(--paper); }
.core-badge img { width: 70px; }
.answer-card { padding: 26px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.answer-card .question { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 17px; }
.answer-card h3 { font-family: Georgia, "Times New Roman", serif; font-size: 33px; font-weight: 400; }
.answer-card h3 em { color: var(--green-dark); font-style: normal; }
.driver { margin-top: auto; display: grid; grid-template-columns: 110px 1fr 38px; gap: 10px; align-items: center; font-size: 12px; }
.bar { height: 7px; overflow: hidden; background: #e8e9e4; border-radius: 6px; }
.bar i { height: 100%; display: block; background: var(--blue); border-radius: inherit; }

.workflow-tabs { display: flex; gap: 0; border: 1px solid var(--line-strong); border-radius: 12px 12px 0 0; overflow-x: auto; background: var(--surface); }
.tab-button { min-width: 156px; min-height: 54px; padding: 0 20px; color: #6a706a; background: transparent; border: 0; border-right: 1px solid var(--line); font-weight: 650; }
.tab-button[aria-selected="true"] { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 -3px var(--green); }
.workflow-panel { display: none; min-height: 475px; grid-template-columns: 270px 1fr; background: var(--surface); border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.workflow-panel.is-active { display: grid; }
.workflow-summary { padding: 34px 30px; border-right: 1px solid var(--line); }
.workflow-summary span { color: var(--green-dark); font-size: 11px; font-weight: 750; letter-spacing: .1em; }
.workflow-summary h3 { margin-top: 18px; font-size: 31px; }
.workflow-summary p { color: var(--muted); font-size: 14px; }
.workflow-summary a { display: inline-block; margin-top: 14px; color: var(--green-dark); font-weight: 700; }
.workflow-proof { padding: 28px 32px; }
.workflow-proof .artifact { margin-left: 38px; }

.manual-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 18px; }
.manual-old, .manual-new { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); }
.manual-old { background: #eeede7; }
.manual-new { background: var(--surface); }
.manual-old ol { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.manual-old li { padding: 13px 0; display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--line); color: #555b54; }
.manual-old li::before { counter-increment: steps; content: "0" counter(steps); color: #92978f; font-size: 11px; }
.delivery-flow { margin-top: 26px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.delivery-flow article { padding: 21px; background: #f7f7f3; border: 1px solid var(--line); border-radius: 11px; }
.delivery-flow strong, .delivery-flow small { display: block; }
.delivery-flow small { margin-top: 6px; color: var(--muted); }
.delivery-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 18px; color: var(--green-dark); font-weight: 700; }

.control-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 68px; align-items: center; }
.control-grid h2 { max-width: 570px; }
.control-grid .lede { margin-bottom: 24px; }
.policy-panel { overflow: hidden; background: #202620; border: 1px solid #343c34; border-radius: var(--radius); }
.policy-panel header { padding: 20px 24px; display: flex; justify-content: space-between; border-bottom: 1px solid #343c34; }
.policy-list { display: grid; grid-template-columns: 1fr 1fr; }
.policy-list div { padding: 22px 24px; border-right: 1px solid #343c34; border-bottom: 1px solid #343c34; }
.policy-list div:nth-child(2n) { border-right: 0; }
.policy-list div:nth-last-child(-n+2) { border-bottom: 0; }
.policy-list small { color: #9ba49b; }
.policy-list strong { margin-top: 7px; display: block; color: #fff; }
.policy-list em { color: var(--green); font-style: normal; }

.decision-grid { display: grid; grid-template-columns: 1fr .92fr; gap: 56px; }
.compare-mini { border-top: 1px solid var(--line-strong); }
.compare-mini article { padding: 19px 0; display: grid; grid-template-columns: 160px 1fr; gap: 24px; border-bottom: 1px solid var(--line); }
.compare-mini h3 { margin: 0; font-size: 18px; }
.compare-mini p { margin: 0; color: var(--muted); font-size: 14px; }
.text-link { margin-top: 20px; display: inline-flex; color: var(--green-dark); font-weight: 700; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 19px 28px 19px 0; position: relative; cursor: pointer; font-weight: 650; list-style: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 2px; font-size: 20px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 640px; margin: -3px 0 19px; color: var(--muted); font-size: 14px; }

.install-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 72px; align-items: center; }
.install-grid h2 { color: #fff; }
.install-grid .lede { color: #aeb6ae; }
.install-card { padding: 28px; color: var(--ink); background: #f9faf7; border-radius: var(--radius); }
.install-card header { margin-bottom: 16px; display: flex; justify-content: space-between; color: #6d736d; font-size: 12px; }
.prompt-box { padding: 18px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; background: #eeeeea; border: 1px solid var(--line); border-radius: 10px; }
.prompt-box code { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.55; }
.copy-prompt { min-height: 38px; padding: 0 13px; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 650; }
.install-card footer { margin-top: 15px; color: #747a74; font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; padding: 10px 15px; color: #fff; background: var(--ink); border-radius: 8px; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.footer { padding: 58px 0 24px; background: #111511; color: #daddd8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer-grid strong { margin-bottom: 6px; color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid a { color: #aeb5ad; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 46px; padding-top: 18px; display: flex; justify-content: space-between; color: #858d85; border-top: 1px solid #2b312b; font-size: 12px; }

@keyframes signal { from { transform: translateX(-158px); } to { transform: translateX(0); } }

@media (max-width: 1120px) {
  .shell { width: min(100% - 64px, 1040px); }
  .nav { grid-template-columns: 170px 1fr auto; gap: 20px; }
  .nav-links { gap: 18px; }
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-copy { max-width: 760px; }
  .connect-map { grid-template-columns: 1fr 130px 1fr; }
  .control-grid, .install-grid { grid-template-columns: 1fr 1.15fr; gap: 40px; }
}

@media (max-width: 860px) {
  :root { --section: 68px; }
  .shell { width: min(100% - 40px, 760px); }
  .nav { min-height: 66px; grid-template-columns: 1fr auto; }
  .nav-cta { display: none; }
  .menu-toggle { width: 42px; height: 42px; padding: 10px; display: block; background: transparent; border: 0; }
  .menu-toggle span { width: 20px; height: 1.5px; margin: 5px auto; display: block; background: var(--ink); }
  .nav-links { position: fixed; inset: 66px 0 auto; padding: 28px 20px 34px; display: none; align-items: stretch; flex-direction: column; gap: 4px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links .is-current { box-shadow: none; }
  .nav-links .mobile-cta { margin-top: 10px; display: inline-flex; color: #fff; }
  h1 { font-size: clamp(46px, 11vw, 64px); }
  h2 { font-size: clamp(36px, 8vw, 48px); }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .home-hero { min-height: auto; padding: 58px 0 66px; gap: 46px; }
  .connect-map { grid-template-columns: 1fr; gap: 18px; }
  .connect-core { min-height: 96px; }
  .connect-core::before { top: 0; bottom: 0; left: 50%; width: 1px; height: auto; }
  .connect-core::after { top: auto; bottom: 10px; left: 50%; right: auto; animation: signal-y 3s linear infinite; }
  .core-badge { width: 96px; height: 96px; }
  .workflow-panel.is-active { grid-template-columns: 1fr; }
  .workflow-summary { border-right: 0; border-bottom: 1px solid var(--line); }
  .manual-grid, .control-grid, .decision-grid, .install-grid { grid-template-columns: 1fr; }
  .delivery-flow { grid-template-columns: 1fr; }
  .delivery-flow > span { transform: rotate(90deg); text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@keyframes signal-y { from { transform: translateY(-70px); } to { transform: translateY(0); } }

@media (max-width: 600px) {
  :root { --section: 54px; }
  .shell { width: calc(100% - 40px); }
  .brand-lockup { width: 142px; }
  h1 { margin-bottom: 20px; font-size: 46px; }
  h2 { font-size: 36px; }
  .lede { font-size: 17px; }
  .home-hero { padding-top: 44px; }
  .hero-actions .button { width: 100%; }
  .codex-layout { grid-template-columns: 1fr; min-height: auto; }
  .codex-sidebar { display: none; }
  .codex-main { min-height: 500px; padding: 20px 16px 16px; }
  .prompt { max-width: 100%; }
  .work-log, .artifact { margin-left: 0; }
  .artifact { padding: 17px; }
  .artifact h3 { font-size: 27px; }
  .metric-row { grid-template-columns: 1fr; }
  .metric-row div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-row div:last-child { border-bottom: 0; }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
  .logo-chip { min-height: 80px; font-size: 10px; }
  .workflow-tabs { margin-right: -20px; border-right: 0; border-radius: 10px 0 0 0; }
  .tab-button { min-width: 134px; padding: 0 15px; }
  .workflow-panel { min-height: auto; }
  .workflow-summary, .workflow-proof, .manual-old, .manual-new { padding: 24px 20px; }
  .workflow-proof .artifact { margin-left: 0; }
  .policy-list { grid-template-columns: 1fr; }
  .policy-list div { border-right: 0; }
  .policy-list div:nth-last-child(-n+2) { border-bottom: 1px solid #343c34; }
  .policy-list div:last-child { border-bottom: 0; }
  .compare-mini article { grid-template-columns: 1fr; gap: 7px; }
  .prompt-box { grid-template-columns: 1fr; }
  .copy-prompt { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { gap: 12px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Local polish: each section carries one job. */
[id] { scroll-margin-top: 96px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 4px; }
.skills-section { background: #fff; }
.growth-story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.growth-position h2 { font-family: var(--font); font-size: clamp(36px, 3.7vw, 52px); line-height: 1.04; letter-spacing: -.045em; font-weight: 600; margin: 18px 0 24px; }
.growth-position h2 span { color: var(--green-dark); }
.growth-position .eyebrow { font-size: 12px; letter-spacing: .1em; margin: 0; }
.growth-position .lede { font-size: 17px; line-height: 1.55; max-width: 440px; margin-bottom: 24px; }
.growth-brand-visual { margin: 0; min-width: 0; background: #10251c; color: #fff; }
.growth-founder-photo { background: #f5f5f2; color: var(--ink); overflow: hidden; border-radius: 12px; }
.growth-founder-photo > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
.growth-founder-photo figcaption small { color: var(--muted); }
.expertise-visual { padding: 28px; }
.expertise-goal { padding-bottom: 22px; border-bottom: 1px solid #ffffff29; }
.expertise-goal > span { font-size: 12px; letter-spacing: .12em; color: #98d8b1; }
.expertise-goal p { font-size: 23px; line-height: 1.25; letter-spacing: -.025em; margin: 10px 0 0; }
.expertise-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; padding: 24px 0; }
.expertise-lens > span { display: block; color: #67d59a; font-size: 12px; margin-bottom: 8px; }
.expertise-lens strong { font-size: 16px; font-weight: 500; line-height: 1.3; }
.expertise-lens p { color: #b9d2c2; font-size: 14px; line-height: 1.4; margin: 6px 0 0; }
.expertise-identity { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; padding: 16px 0; }
.expertise-identity img { background: #fff; border-radius: 50%; width: 88px; height: 88px; object-fit: contain; padding: 10px; }
.expertise-identity strong { font-size: 28px; font-weight: 600; letter-spacing: -.04em; margin: 10px 0 7px; }
.expertise-identity > span { color: #98d8b1; font-size: 11px; letter-spacing: .09em; text-align: center; }
.growth-signoff { margin: 30px 0 0; font-size: 17px; line-height: 1.5; color: var(--muted); }
.growth-signoff span { color: var(--green-dark); }
.growth-brand-visual figcaption { display: flex; flex-direction: column; gap: 7px; padding: 20px 24px; font-size: 19px; font-weight: 500; line-height: 1.3; }
.growth-brand-visual small { color: #b9d2c2; font-size: 12px; font-weight: 400; }
.expertise-visual figcaption { border-top: 1px solid #ffffff29; padding: 20px 0 0; }
.growth-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 36px; border-top: 1px solid var(--line-strong); }
.growth-value { padding-top: 24px; }
.growth-value > span { font-size: 12px; letter-spacing: .06em; color: var(--green-dark); }
.growth-value h3 { font-family: var(--font); font-size: 24px; line-height: 1.15; font-weight: 500; letter-spacing: -.025em; margin: 14px 0 12px; }
.growth-value p { font-size: 16px; line-height: 1.5; color: var(--muted); margin: 0; max-width: 370px; }
.demo-caption { margin: 16px 0; color: var(--muted); font-size: 12px; }
.source-answer h3 { font-family: var(--font); font-size: 30px; font-weight: 500; }
.source-answer dl { margin: 10px 0 0; }
.source-answer dl > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.source-answer dt { font-size: 15px; font-weight: 650; }
.source-answer dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.task-window-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding-bottom: 15px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.task-window-label > span:last-child { margin-left: auto; font-size: 12px; }
.workflow-proof .composer { margin-top: 22px; }
.workflow-panel { min-height: 0; }
.workflow-summary p { font-size: 16px; }
.workflow-tabs .tab-button { flex: 1; }
.result-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; align-items: center; }
.manual-checklist ol { list-style: none; padding: 0; margin: 24px 0; counter-reset: manual; }
.manual-checklist li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.manual-checklist li::before { counter-increment: manual; content: "0" counter(manual); display: inline-block; width: 30px; font-size: 12px; color: #777f77; }
.manual-checklist > p { color: var(--muted); font-size: 16px; }
.report-sample { display: block; padding: 28px; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 12px 30px #16191508; border-radius: 12px; transition: border-color .2s; }
.report-sample:hover { border-color: var(--green-dark); }
.report-sample-top { display: flex; justify-content: space-between; gap: 18px; font-size: 12px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.report-sample h3 { margin: 22px 0 14px; font-size: 33px; font-weight: 500; }
.report-sample > p { color: var(--muted); font-size: 13px; }
.sample-report-rows { margin: 24px 0; }
.sample-report-rows > div { display: grid; grid-template-columns: 24px 130px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sample-report-rows b { font-size: 12px; color: var(--green-dark); }
.sample-report-rows span { color: var(--muted); }
.report-sample-bottom { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.report-sample-bottom strong { color: var(--green-dark); }
.approach-grid, .pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.approach-grid article { border-top: 2px solid var(--line-strong); padding: 24px 22px 20px; }
.approach-grid .approach-featured { border-color: var(--green-dark); background: #e9f4ec; }
.approach-grid article > span { font-size: 12px; color: var(--muted); }
.approach-grid h3 { margin-top: 20px; font-size: 25px; font-weight: 500; }
.approach-grid p { font-size: 16px; color: var(--muted); margin-bottom: 0; }
.section-tail { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 24px; }
.section-tail p { margin: 0; color: var(--muted); font-size: 14px; }
.section-tail .text-link { margin: 0; }
.pricing-disclosure { display: flex; align-items: baseline; gap: 16px; padding: 16px 20px; margin-bottom: 24px; border: 1px dashed #c9b789; border-radius: 8px; background: #fffaf0; font-size: 14px; color: #67542d; }
.pricing-disclosure strong { white-space: nowrap; }
.pricing-grid > div { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pricing-grid .plan-featured { border-color: var(--green-dark); box-shadow: inset 0 3px var(--green-dark); }
.pricing-grid h3 { font-size: 32px; font-weight: 500; }
.pricing-grid > div > p:not(.eyebrow) { font-size: 16px; color: var(--muted); }
.plan-price { padding: 20px 0; border-top: 1px solid var(--line); font-size: 18px; font-weight: 550; }
.pricing-grid ul { padding: 0; margin: 0 0 26px; list-style: none; font-size: 14px; color: var(--muted); }
.pricing-grid li { padding: 8px 0 8px 22px; position: relative; }
.pricing-grid li::before { content: "✓"; position: absolute; left: 0; color: var(--green-dark); }
.pricing-grid .button { margin-top: auto; }
.pricing-note { margin-top: 20px; color: var(--muted); font-size: 13px; }
.support-note { margin-top: 28px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.support-note a, .faq-list a { text-decoration: underline; text-underline-offset: 3px; color: var(--green-dark); }
.faq-list p { font-size: 16px; }
.install-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.install-steps li { display: grid; grid-template-columns: 170px 1fr; gap: 14px; font-size: 14px; }
.install-steps span { color: var(--muted); }
.install-help { margin: 22px 0 0; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 13px; }
.install-help a { color: var(--green-dark); text-decoration: underline; }
@media (max-width:1120px) {
  .home-hero { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 24px; }
  .home-hero h1 { font-size: 48px; }
  .hero-demo .codex-layout { grid-template-columns: 1fr; }
  .hero-demo .codex-sidebar { display: none; }
  .skills-intro, .result-layout { gap: 32px; }
}
@media (max-width:860px) {
  .home-hero, .result-layout { grid-template-columns: 1fr; }
  .home-hero { padding: 44px 0 52px; gap: 32px; }
  .home-hero h1 { max-width: 690px; font-size: clamp(42px,7.8vw,60px); }
  .growth-story { grid-template-columns: 1fr; gap: 28px; }
  .pricing-grid, .approach-grid { grid-template-columns: 1fr; }
  .pricing-grid > div { padding: 24px; }
  .pricing-disclosure, .section-tail { flex-direction: column; gap: 8px; }
  .approach-grid article { padding: 22px 0; }
  .approach-grid .approach-featured { padding-inline: 20px; }
  .section-head { gap: 18px; }
}
@media (max-width:560px) {
  :root { --section: 52px; }
  .home-hero h1 { font-size: 43px; }
  .home-hero .lede { font-size: 17px; }
  .growth-values { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  .growth-value { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .growth-value h3 br { display: none; }
  .growth-brand-visual figcaption { padding: 16px; font-size: 17px; }
  .sample-report-rows > div { grid-template-columns: 22px 1fr; gap: 8px; }
  .sample-report-rows span { grid-column: 2; }
  .report-sample { padding: 22px 18px; }
  .report-sample-top, .report-sample-bottom { flex-direction: column; gap: 8px; }
  .report-sample h3 { font-size: 28px; }
  .install-steps li { grid-template-columns: 1fr; gap: 3px; }
  .task-window-label > span:last-child { display: none; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* A full AppsFlyer wordmark needs a wider optical box than symbol logos. */
.logo-chip img[src$="/appsflyer.svg"] { width: 74px; }
.task-composer { display: flex; justify-content: space-between; padding: 14px; margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; color: #858a84; }
.task-window-label { padding: 14px 18px; }
