/* toolkit.fun public pages: product-led marketing shell */

body.marketing-page { background: #F7F9FB; overflow-x: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 249, 251, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.marketing-nav-in {
  width: calc(100% - 48px);
  max-width: 1180px;
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.marketing-nav-links { display: flex; align-items: center; gap: 22px; }
.marketing-nav-link { color: var(--txt-3); font: 600 13px var(--sans); }
.marketing-nav-link:hover, .marketing-nav-link.active { color: var(--txt); }
.marketing-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.marketing-main { overflow: hidden; }
.marketing-wrap { width: calc(100% - 48px); max-width: 1180px; margin: 0 auto; }
.marketing-section { padding: 76px 0; }
.marketing-band { border-top: 1px solid var(--line); background: #fff; }
.marketing-band.muted { background: #F1F5F7; }

.eyebrow {
  color: var(--coral-deep);
  font: 700 11px var(--mono);
  text-transform: uppercase;
}

.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading h2 { margin: 10px 0 12px; font: 800 32px/1.22 var(--sans); letter-spacing: 0; }
.section-heading p { margin: 0; color: var(--txt-3); font-size: 15px; line-height: 1.75; }

.marketing-hero {
  min-height: min(690px, calc(100svh - 62px));
  padding: 44px 0 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-copy { max-width: 810px; }
.hero-copy h1 { margin: 12px 0 8px; font: 800 52px/1.04 var(--sans); letter-spacing: 0; }
.hero-brand-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 58px !important;
  font-weight: 600 !important;
  letter-spacing: .004em !important;
}
.hero-brand-title span {
  color: var(--coral-deep);
  font-style: italic;
  font-weight: 600;
}
.hero-statement { margin: 0; max-width: 790px; font: 700 26px/1.35 var(--sans); color: var(--txt-2); }
.hero-detail { max-width: 720px; margin: 15px 0 20px; color: var(--txt-3); font-size: 15px; line-height: 1.72; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-facts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 19px; color: var(--txt-3); font-size: 12.5px; }
.hero-facts b { color: var(--txt); }

.workbench-scene {
  height: 292px;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
  overflow: hidden;
}

.scene-side { background: #F8FAFC; border-right: 1px solid var(--line); padding: 16px 12px; }
.scene-side-title { margin: 0 7px 12px; color: var(--muted-2); font: 700 10px var(--mono); }
.scene-tool { width: 100%; display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 7px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--txt-3); font-size: 12px; text-align: left; }
.scene-tool:hover { background: #EEF7F6; color: var(--txt); }
.scene-tool.active { background: var(--coral-tint); color: var(--coral-deep); font-weight: 700; }
.scene-tool:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.scene-tool-mark { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; font: 700 10px var(--mono); }
.scene-main { min-width: 0; display: flex; flex-direction: column; }
.scene-head { height: 46px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line-soft); }
.scene-head .surface-title { min-width: 0; }
.scene-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--green); font: 600 11px var(--sans); }
.scene-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22C55E; }
.scene-work { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; }
.scene-pane { min-width: 0; padding: 15px 17px; }
.scene-pane + .scene-pane { border-left: 1px solid var(--line-soft); background: #FBFCFD; }
.scene-input { width: 100%; height: 105px; margin-top: 8px; resize: none; font: 12px/1.6 var(--mono); }
.scene-run-row { margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.scene-output { height: 144px; margin-top: 8px; overflow: auto; white-space: pre-wrap; }

.journey { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journey-item { min-width: 0; padding: 18px 20px 20px 0; position: relative; }
.journey-item + .journey-item { padding-left: 20px; border-left: 1px solid var(--line); }
.journey-n { color: var(--coral-deep); font: 700 11px var(--mono); }
.journey-title { margin: 8px 0 4px; font: 700 15px var(--sans); }
.journey-copy { color: var(--txt-3); font-size: 12.5px; line-height: 1.6; }

.scroll-story {
  position: relative;
  min-height: 350vh;
  padding: 30px 0 0;
  --story-progress: 25%;
}
.story-stage {
  position: sticky;
  top: 74px;
  height: min(720px, calc(100vh - 96px));
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(270px, .64fr) minmax(360px, 1fr) minmax(260px, .56fr);
  gap: 24px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(20, 184, 166, .08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(148, 163, 184, .12) 0 1px, transparent 1px 100%),
    #fff;
  background-size: 42px 42px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .13);
  overflow: hidden;
}
.scroll-story.is-pinned .story-stage {
  position: fixed;
  top: 74px;
  z-index: 4;
}
.scroll-story.is-after .story-stage {
  position: absolute;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
}
.story-stage::before {
  content: '';
  position: absolute;
  left: 26px;
  right: 26px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, .42), rgba(245, 158, 11, .38), transparent);
  transform: translateY(-50%);
  pointer-events: none;
}
.story-copy-panel, .story-screen, .story-steps { position: relative; z-index: 1; }
.story-copy-panel { align-self: center; }
.story-kicker { color: var(--coral-deep); font: 700 11px var(--mono); text-transform: uppercase; }
.story-copy-panel h3 { min-height: 146px; margin: 14px 0 12px; font: 800 38px/1.16 var(--sans); letter-spacing: 0; }
.story-copy-panel p { min-height: 84px; margin: 0 0 26px; color: var(--txt-3); font-size: 15px; line-height: 1.75; }
.story-screen {
  align-self: center;
  border: 1px solid rgba(148, 163, 184, .44);
  border-radius: 8px;
  overflow: hidden;
  background: #F8FAFC;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}
.story-toolbar { height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); background: #fff; color: var(--txt-2); font: 700 11px var(--mono); }
.story-live-dot { margin-left: auto; color: var(--green); }
.story-live-dot::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 6px rgba(34, 197, 94, .10); }
.story-progress-label { margin-top: 12px; color: var(--muted-2); font: 700 11px var(--mono); }
.story-canvas { min-height: 280px; display: grid; grid-template-columns: 116px minmax(90px, 1fr) 160px; gap: 18px; align-items: center; padding: 30px; }
.story-node { min-height: 74px; display: grid; place-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--txt); font: 800 12px var(--mono); text-align: center; box-shadow: 0 10px 28px rgba(15, 23, 42, .08); }
.story-node-b { background: #ECFDF5; border-color: rgba(20, 184, 166, .46); color: var(--coral-deep); }
.story-path { height: 5px; position: relative; background: #D9E2EA; overflow: hidden; }
.story-path span { position: absolute; inset: 0 auto 0 0; width: var(--story-progress, 25%); background: linear-gradient(90deg, var(--coral), #F59E0B); transition: width .32s ease, height .32s ease; }
.story-console { min-height: 116px; margin: 0; border-radius: 0; border: 0; padding: 18px; white-space: pre-wrap; }
.story-progress { height: 6px; background: var(--line-soft); overflow: hidden; }
.story-progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--coral), #F59E0B); transition: width .32s ease; }
.story-steps { align-self: center; display: grid; gap: 12px; }
.story-step {
  min-height: 116px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .70);
  opacity: .50;
  transform: scale(.98);
  transition: opacity .28s ease, transform .28s ease, border-color .28s ease, background .28s ease, box-shadow .28s ease;
}
.story-step.is-active { opacity: 1; transform: scale(1); border-color: rgba(20, 184, 166, .48); background: #fff; box-shadow: 0 14px 34px rgba(15, 23, 42, .10); }
.story-step h3 { margin: 7px 0 6px; font: 800 17px var(--sans); }
.story-step p { margin: 0; color: var(--txt-3); font-size: 13px; line-height: 1.65; }

[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .58s ease, transform .58s ease;
}
[data-scroll-reveal].is-visible { opacity: 1; transform: translateY(0); }

.feature-row { display: grid; grid-template-columns: minmax(0, .82fr) minmax(500px, 1.18fr); gap: 64px; align-items: center; padding: 70px 0; }
.feature-row.reverse { grid-template-columns: minmax(500px, 1.18fr) minmax(0, .82fr); }
.feature-row.reverse .feature-copy { order: 2; }
.feature-copy h2 { margin: 10px 0 14px; font: 800 30px/1.25 var(--sans); letter-spacing: 0; }
.feature-copy p { color: var(--txt-3); font-size: 14.5px; line-height: 1.75; }
.feature-points { display: grid; gap: 10px; margin: 22px 0; }
.feature-point { display: flex; gap: 10px; color: var(--txt-2); font-size: 13px; line-height: 1.55; }
.feature-point::before { content: ''; width: 7px; height: 7px; flex: none; margin-top: 7px; border-radius: 50%; background: var(--coral); }

.product-surface { border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; box-shadow: 0 14px 38px rgba(15, 23, 42, .08); overflow: hidden; }
.surface-bar { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); background: #FAFBFC; }
.surface-title { color: var(--txt-2); font: 700 11px var(--mono); }
.surface-body { padding: 17px; }

.studio-preview { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(190px, .55fr); min-height: 310px; }
.studio-code { min-width: 0; border-right: 1px solid var(--line); background: #101827; color: #D1FAE5; padding: 18px; font: 11.5px/1.7 var(--mono); white-space: pre-wrap; }
.agent-note { padding: 18px; background: #F8FAFC; }
.agent-note h3 { margin: 0 0 12px; font: 700 13px var(--sans); }
.agent-line { margin: 0 0 13px; padding-left: 12px; border-left: 2px solid var(--coral); color: var(--txt-3); font-size: 12px; line-height: 1.55; }
.agent-action { margin-top: 16px; display: flex; gap: 8px; }

.dist-tabs { display: flex; gap: 2px; padding: 4px; background: var(--line-soft); border-radius: 7px; }
.dist-tab { min-width: 70px; border: 0; border-radius: 5px; padding: 7px 10px; background: transparent; color: var(--txt-3); font: 700 11px var(--sans); }
.dist-tab.on { background: #fff; color: var(--txt); box-shadow: 0 1px 3px rgba(15, 23, 42, .10); }
.dist-code { min-height: 190px; margin: 0; border-radius: 0; border: 0; padding: 20px; white-space: pre-wrap; overflow: auto; }
.receipt-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line-soft); align-items: center; font-size: 11.5px; }
.receipt-ok { color: var(--green); font-weight: 700; }

.iteration-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.iteration-item { padding: 26px 24px 4px 0; }
.iteration-item + .iteration-item { padding-left: 24px; border-left: 1px solid var(--line); }
.iteration-item h3 { margin: 9px 0 7px; font: 700 16px var(--sans); }
.iteration-item p { margin: 0; color: var(--txt-3); font-size: 13px; line-height: 1.65; }

.pricing-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(480px, .9fr); gap: 56px; align-items: center; }
.pricing-teaser h2 { margin: 10px 0 14px; font: 800 31px/1.25 var(--sans); }
.pricing-teaser p { color: var(--txt-3); line-height: 1.72; }
.pricing-lines { border-top: 1px solid var(--line); }
.pricing-line { display: grid; grid-template-columns: 80px 100px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: center; }
.pricing-line strong { font-size: 13px; }
.pricing-line .price-preview { font: 700 13px var(--mono); }
.pricing-line span:last-child { color: var(--txt-3); font-size: 12.5px; }

.open-teaser { display: grid; grid-template-columns: minmax(0, .8fr) minmax(500px, 1.2fr); gap: 56px; align-items: center; }
.open-teaser h2 { margin: 10px 0 14px; font: 800 31px/1.25 var(--sans); }
.open-list { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.open-list-item { padding: 20px; }
.open-list-item + .open-list-item { border-left: 1px solid var(--line); }
.open-list-item code { color: var(--coral-deep); font: 700 11px var(--mono); }
.open-list-item h3 { margin: 10px 0 7px; font: 700 14px var(--sans); }
.open-list-item p { margin: 0; color: var(--txt-3); font-size: 12px; line-height: 1.6; }

.marketing-footer { border-top: 1px solid var(--line); background: #fff; }
.marketing-footer-in { min-height: 82px; display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 12.5px; }
.marketing-footer-in a:hover { color: var(--txt); }
.split-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }

/* Authentication shared by public pages */
.auth-modal { width: min(430px, calc(100vw - 32px)); padding: 0; overflow: hidden; border: 1px solid rgba(226, 232, 240, .95); border-radius: 8px; box-shadow: 0 24px 80px rgba(15, 23, 42, .22); }
.auth-head { padding: 24px 26px 18px; background: #F8FAFC; border-bottom: 1px solid var(--line-soft); position: relative; }
.auth-close { position: absolute; right: 16px; top: 16px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--txt-3); cursor: pointer; font: 700 17px var(--sans); }
.auth-brand { display: flex; align-items: center; gap: 10px; color: var(--txt-2); font: 700 12px var(--mono); margin-bottom: 14px; }
.auth-title { font: 800 24px/1.2 var(--sans); margin: 0; letter-spacing: 0; }
.auth-sub { color: var(--txt-3); font-size: 13px; line-height: 1.65; margin: 8px 0 0; }
.auth-body { padding: 22px 26px 26px; }
.oauth-stack { display: grid; gap: 10px; }
.oauth-btn { width: 100%; justify-content: center; min-height: 42px; font-size: 13.5px; border-color: #CBD5E1; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.oauth-mark { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--paper); color: var(--ink); font: 800 12px var(--sans); }
.auth-sep { display: flex; align-items: center; gap: 10px; margin: 16px 0 15px; color: var(--muted-2); font: 600 12px var(--sans); }
.auth-sep::before, .auth-sep::after { content: ''; height: 1px; flex: 1; background: var(--line-soft); }
.auth-field { display: block; margin-bottom: 12px; }
.auth-field .input { width: 100%; margin-top: 7px; min-height: 42px; border-radius: 8px; }
.auth-submit { width: 100%; justify-content: center; min-height: 42px; margin-top: 4px; }
.auth-error { display: none; margin: 12px 0 0; padding: 10px 12px; border: 1px solid #FECACA; background: #FFF7F7; color: var(--red); border-radius: 8px; font-size: 12.5px; line-height: 1.55; }
.auth-foot { margin-top: 13px; display: flex; align-items: center; justify-content: center; }
.auth-cancel { border: 0; background: transparent; color: var(--muted-2); font: 600 12.5px var(--sans); cursor: pointer; }

/* Pricing page */
.pricing-hero { padding: 66px 0 30px; }
.pricing-hero h1, .open-hero h1 { max-width: 780px; margin: 12px 0 14px; font: 800 42px/1.18 var(--sans); letter-spacing: 0; }
.pricing-hero p, .open-hero > p { max-width: 720px; color: var(--txt-3); font-size: 15px; line-height: 1.75; }
.pricing-controls { margin-top: 34px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing-controls .input { width: auto; min-width: 118px; padding: 8px 12px; }
.pricing-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 26px 0 56px; align-items: stretch; }
.pricing-card { display: flex; flex-direction: column; min-height: 440px; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pricing-card.featured { border-color: var(--coral); box-shadow: 0 12px 34px rgba(20, 184, 166, .13); }
.pricing-card-head { min-height: 106px; }
.pricing-card h2 { margin: 0; font: 800 20px var(--sans); }
.pricing-price { margin: 15px 0 5px; font: 800 34px var(--sans); }
.pricing-price small { color: var(--muted); font: 500 12.5px var(--sans); }
.pricing-feature-list { flex: 1; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.pricing-feature { display: flex; gap: 9px; padding: 6px 0; color: var(--txt-2); font-size: 13px; line-height: 1.45; }
.pricing-feature::before { content: '✓'; color: var(--coral-deep); font-weight: 800; }
.pricing-card .btn { width: 100%; justify-content: center; margin-top: 20px; }
.pricing-note { padding: 18px 0 70px; border-top: 1px solid var(--line); color: var(--txt-3); font-size: 13px; line-height: 1.7; }
.capability-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.capability-panel { display: flex; flex-direction: column; min-height: 282px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.capability-panel.cloud { border-color: rgba(240, 85, 43, .36); }
.capability-kicker { color: var(--coral-deep); font: 700 11px var(--mono); }
.capability-panel h3 { margin: 10px 0 12px; font: 800 22px/1.25 var(--sans); letter-spacing: 0; }
.capability-panel ul { flex: 1; margin: 0; padding: 0; list-style: none; display: grid; align-content: start; gap: 10px; }
.capability-panel li { display: flex; gap: 10px; color: var(--txt-3); font-size: 13px; line-height: 1.6; }
.capability-panel li::before { content: ''; width: 7px; height: 7px; flex: none; margin-top: 7px; border-radius: 50%; background: var(--coral); }
.capability-panel .btn { align-self: flex-start; margin-top: 20px; }
.comparison { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.comparison th, .comparison td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: 12.5px; }
.comparison th { color: var(--txt-2); font-weight: 700; background: #F8FAFC; }
.comparison td:first-child { color: var(--txt-3); }

/* Open-source status page */
.open-hero { padding: 66px 0 54px; }
.hero-repo-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.hero-repo-link {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.hero-repo-link:hover {
  border-color: rgba(20, 184, 166, .4);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}
.hero-repo-link.primary {
  border-color: rgba(20, 184, 166, .42);
  background: #ECFEFF;
}
.repo-link-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.github-mark { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #2B3137; opacity: .88; }
.github-mark svg { width: 16px; height: 16px; display: block; fill: currentColor; }
.hero-repo-link .github-mark,
.repo-link .github-mark { margin-top: 1px; }
.hero-repo-link strong { color: var(--ink); font: 800 15px var(--mono); }
.hero-repo-link span { color: var(--txt-3); font-size: 12.5px; line-height: 1.6; }
.status-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.status-cell { padding: 20px; }
.status-cell + .status-cell { border-left: 1px solid var(--line); }
.status-label { display: inline-flex; align-items: center; gap: 7px; color: var(--coral-deep); font: 700 10px var(--mono); }
.status-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.status-label.closed { color: var(--amber); }
.status-label.closed::before { background: #F59E0B; }
.status-cell h2 { margin: 10px 0 7px; font: 700 15px var(--sans); }
.status-cell p { margin: 0; color: var(--txt-3); font-size: 12.5px; line-height: 1.6; }
.open-boundary { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.open-boundary h2, .roadmap h2 { margin: 10px 0 14px; font: 800 30px/1.25 var(--sans); }
.boundary-list { border-top: 1px solid var(--line); }
.boundary-item { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.boundary-item strong { font: 700 12px var(--mono); color: var(--coral-deep); }
.boundary-item span { color: var(--txt-3); font-size: 13px; line-height: 1.65; }
.roadmap-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 28px; }
.roadmap-step { padding: 24px 24px 0 0; }
.roadmap-step + .roadmap-step { padding-left: 24px; border-left: 1px solid var(--line); }
.roadmap-step h3 { margin: 9px 0 7px; font: 700 15px var(--sans); }
.roadmap-step p { margin: 0; color: var(--txt-3); font-size: 12.5px; line-height: 1.65; }
.repo-strip { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.repo-strip-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.repo-strip-head h2 { margin: 8px 0 0; font-size: 24px; }
.repo-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.repo-link { min-width: 0; padding: 18px 20px; display: grid; gap: 6px; }
.repo-link + .repo-link { border-left: 1px solid var(--line); }
.repo-link strong { color: var(--ink); font: 800 15px var(--mono); }
.repo-link span { color: var(--txt-3); font-size: 12.5px; line-height: 1.6; }
.repo-link:hover { background: #F8FAFC; }
.license-note { margin-top: 34px; padding: 18px 20px; border: 1px solid rgba(20, 184, 166, .28); border-radius: 8px; background: #ECFEFF; color: var(--txt-2); font-size: 13px; line-height: 1.7; }

@media (max-width: 900px) {
  .marketing-nav-in, .marketing-wrap { width: calc(100% - 32px); max-width: 1180px; }
  .marketing-nav-in { min-height: 62px; gap: 12px; flex-wrap: wrap; padding: 10px 0; }
  .marketing-nav-links { order: 3; width: 100%; gap: 16px; overflow-x: auto; padding-bottom: 2px; }
  .marketing-nav-link { flex: none; font-size: 12px; }
  .marketing-section { padding: 56px 0; }
  .marketing-hero { min-height: auto; padding: 34px 0 28px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-brand-title { font-size: 44px !important; }
  .hero-statement { font-size: 21px; }
  .workbench-scene { height: auto; grid-template-columns: 1fr; margin-top: 24px; }
  .scene-side {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
  }
  .scene-side-title { flex: none; margin: 0 4px 0 0; }
  .scene-tool { width: auto; flex: 0 0 auto; }
  .scene-work { grid-template-columns: 1fr; overflow: auto; }
  .scene-pane { padding: 13px 14px; }
  .scene-pane + .scene-pane { border-left: 0; border-top: 1px solid var(--line-soft); }
  .scene-input { height: 78px; }
  .scene-output { height: 82px; }
  .journey { grid-template-columns: 1fr 1fr; }
  .journey-item:nth-child(3) { border-left: 0; }
  .journey-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .scroll-story { min-height: 0; padding-top: 36px; }
  .story-stage {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
    background-size: 34px 34px;
  }
  .scroll-story.is-pinned .story-stage,
  .scroll-story.is-after .story-stage {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
  }
  .story-stage::before { left: 22px; right: 22px; top: 45%; }
  .story-copy-panel h3, .story-copy-panel p { min-height: 0; }
  .story-copy-panel h3 { font-size: 30px; }
  .story-screen { align-self: stretch; }
  .story-canvas { min-height: 220px; }
  .story-step { min-height: 0; opacity: 1; transform: none; }
  .feature-row, .feature-row.reverse, .pricing-teaser, .open-teaser, .open-boundary { grid-template-columns: 1fr; gap: 30px; }
  .split-cta { grid-template-columns: 1fr; }
  .feature-row { padding: 54px 0; }
  .feature-row.reverse .feature-copy { order: 0; }
  .studio-preview { grid-template-columns: 1fr; }
  .studio-code { border-right: 0; border-bottom: 1px solid var(--line); }
  .iteration-grid, .pricing-plans, .capability-split, .open-list, .status-strip, .roadmap-steps, .repo-links, .hero-repo-links { grid-template-columns: 1fr; }
  .iteration-item + .iteration-item, .open-list-item + .open-list-item, .status-cell + .status-cell, .roadmap-step + .roadmap-step, .repo-link + .repo-link { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .pricing-line { grid-template-columns: 64px 82px 1fr; }
  .marketing-footer-in { flex-wrap: wrap; padding: 22px 0; }
  .pricing-hero, .open-hero { padding-top: 46px; }
  .pricing-hero h1, .open-hero h1 { font-size: 34px; }
  .pricing-card { min-height: 0; }
  .comparison { min-width: 680px; }
  .comparison-wrap { overflow-x: auto; }
  .boundary-item { grid-template-columns: 1fr; gap: 7px; }
}

@media (max-width: 560px) {
  .marketing-nav-actions .btn.dark { padding-left: 10px; padding-right: 10px; }
  .marketing-nav-actions { gap: 6px; }
  .marketing-nav .navbar-brand-text { font-size: 18px; }
  .marketing-nav .brand-logo-svg { width: 36px; height: 36px; }
  .hero-brand-title { font-size: 38px !important; }
  .hero-statement, .hero-detail, .hero-facts { overflow-wrap: anywhere; }
  .hero-statement { font-size: 20px; }
  .scene-head { gap: 7px; padding: 0 14px; }
  .scene-head .surface-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .scene-status { display: none; }
  .journey { grid-template-columns: 1fr; }
  .journey-item + .journey-item, .journey-item:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero-facts { gap: 12px 18px; }
  .studio-preview { min-height: 0; }
  .agent-action { flex-wrap: wrap; }
  .receipt-row { grid-template-columns: 76px 1fr; }
  .receipt-row span:last-child { grid-column: 2; }
  .story-canvas { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .story-path { height: 34px; width: 3px; justify-self: center; }
  .story-path span { width: 100%; height: var(--story-progress, 25%); inset: 0 0 auto; }
  .story-stage { padding: 22px; }
  .story-copy-panel h3 { font-size: 27px; }
  .story-console { min-height: 92px; }
  .pricing-controls { align-items: stretch; }
  .pricing-controls > * { flex: 1; }
  .pricing-controls .input { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  [data-scroll-reveal], .story-step, .story-path span, .story-progress span {
    transition: none;
    transform: none;
  }
  [data-scroll-reveal] { opacity: 1; }
}
