/* ==========================================================================
   PushStart AI — shared styles
   Design direction: B2B software tool, calm/confident, dense but readable.
   Palette: deep navy (#0F172A) + confident green accent (#16A34A).
   No gradients, no decorative hero, restrained cards (radius <= 8px).
   ========================================================================== */

:root {
  --navy: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --ink: #0f172a;
  --slate: #475569;
  --slate-light: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;

  --green: #16a34a;
  --green-700: #15803d;
  --green-50: #ecfdf3;
  --amber-50: #fffbeb;
  --amber-line: #fde68a;
  --amber-ink: #92400e;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);

  --container: 1080px;
  --header-height: 60px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* ----- Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: 0;
}
h2 {
  font-size: 1.65rem;
  letter-spacing: 0;
}
h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--green-700);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Accessibility: visible keyboard focus + skip link */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Honeypot field for the future live form (hidden from real users) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
li {
  margin-bottom: 0.35rem;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-muted);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 48px 0;
}
.section--tight {
  padding: 32px 0;
}
.section--muted {
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-700);
  margin: 0 0 0.5rem;
}

.muted {
  color: var(--slate);
}
.small {
  font-size: 0.85rem;
}

/* ----- Header / nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  display: block;
}
.brand-ai {
  color: var(--green-700);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--slate);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--navy);
  background: var(--surface-muted);
  text-decoration: none;
}
.nav-links a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle span::before {
  position: absolute;
  top: -6px;
}
.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
  max-width: 100%;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-700);
  border-color: var(--green-700);
}
.btn-dark {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-dark:hover {
  background: var(--navy-800);
}
.btn-ghost {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--surface-muted);
}
.btn-small {
  padding: 7px 12px;
  font-size: 0.85rem;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ----- Hero (compact, no big marketing block) ----- */
.hero {
  padding: 34px 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: center;
}
.hero-copy {
  min-width: 0;
}
.hero h1 {
  margin-bottom: 0.4rem;
  max-width: 15ch;
}
.hero .lede {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 60ch;
  margin-bottom: 1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 14px;
}
.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.hero-proof-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 600;
}
.trust-marker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.trust-marker svg {
  flex: none;
}

/* ----- Product mock / internal tool preview ----- */
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}
.section-heading h2,
.section-heading p {
  margin: 0;
}
.tool-showcase {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.mock-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.mock-tab {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eaf2f8;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.mock-tab.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.tool-showcase__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.tool-accordion {
  border-top: 1px solid var(--line-strong);
}
.tool-panel {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-strong);
  border-left: 4px solid transparent;
}
.tool-panel.is-active {
  padding-left: 16px;
  border-left-color: var(--green);
}
.tool-panel button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.tool-panel p {
  display: none;
  max-width: 42ch;
  margin: 10px 0 0;
  color: var(--slate);
}
.tool-panel.is-active p {
  display: block;
}
.mock-tool {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}
.mock-tool--hero {
  min-height: 430px;
}
.mock-tool--large {
  min-height: 560px;
}
.mock-tool__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--navy);
  color: #fff;
}
.mock-tool__brand {
  display: block;
  font-weight: 800;
}
.mock-tool__env {
  display: block;
  color: #cbd5e1;
  font-size: 0.76rem;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.status-pill--ok {
  border-color: #bbf7d0;
  background: var(--green-50);
  color: var(--green-700);
}
.status-pill--warn {
  border-color: var(--amber-line);
  background: var(--amber-50);
  color: var(--amber-ink);
}
.mock-tool__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: inherit;
}
.mock-tool__sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  width: 52px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: var(--surface-muted);
}
.sidebar-dot {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}
.sidebar-dot.is-active {
  border-color: var(--green);
  background: var(--green);
}
.mock-tool__nav {
  display: grid;
  align-content: start;
  gap: 5px;
  width: 150px;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  background: var(--surface-muted);
}
.mock-tool__nav-title {
  margin-bottom: 8px;
  color: var(--slate);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.mock-tool__nav span:not(.mock-tool__nav-title) {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--slate);
  font-size: 0.84rem;
  font-weight: 650;
}
.mock-tool__nav span.is-active {
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.mock-tool__content {
  min-width: 0;
  padding: 20px;
}
.mock-tool__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.mock-tool__header h2,
.mock-tool__header h3 {
  margin: 0;
}
.mock-tool__eyebrow {
  margin: 0 0 4px;
  color: var(--green-700);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.mock-tool__date {
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 700;
}
.mock-screen {
  display: none;
}
.mock-screen.is-active {
  display: block;
}
.mock-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.mock-metrics--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mock-metrics div,
.handoff-grid div,
.mock-note-list div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.mock-metrics strong {
  display: block;
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1;
}
.mock-metrics span,
.handoff-grid span,
.mock-note-list span {
  display: block;
  margin-top: 5px;
  color: var(--slate);
  font-size: 0.78rem;
}
.mock-pipeline {
  display: flex;
  height: 92px;
  align-items: end;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}
.mock-pipeline span {
  display: block;
  min-width: 28px;
  border-radius: 5px 5px 0 0;
  background: var(--green);
}
.mock-pipeline span:nth-child(2) {
  background: #0ea5e9;
}
.mock-pipeline span:nth-child(3) {
  background: var(--amber-ink);
}
.mock-pipeline span:nth-child(4) {
  background: var(--navy);
}
.mock-table {
  display: grid;
  gap: 8px;
}
.mock-table div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.mock-table span {
  min-width: 0;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 650;
}
.mock-table b {
  color: var(--slate);
  font-size: 0.74rem;
  white-space: nowrap;
}
.mock-table--dense div {
  padding: 9px 11px;
}
.process-map,
.mock-deploy-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}
.process-map span,
.mock-deploy-line span {
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}
.process-map i,
.mock-deploy-line i {
  flex: 1;
  height: 2px;
  min-width: 18px;
  background: var(--line-strong);
}
.mock-note-list {
  display: grid;
  gap: 10px;
}
.mock-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.mock-form-grid label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 750;
}
.mock-form-grid .wide {
  grid-column: 1 / -1;
}
.mock-form-grid span {
  display: block;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.mock-form-grid .wide span {
  height: 70px;
}
.mock-kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.mock-kanban div {
  min-height: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}
.mock-kanban b {
  display: block;
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 0.8rem;
}
.mock-kanban span {
  display: block;
  height: 32px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.flow-builder {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.flow-builder div {
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.flow-builder b {
  display: block;
  color: var(--green-700);
  font-size: 0.76rem;
  text-transform: uppercase;
}
.flow-builder span {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-weight: 700;
}
.flow-builder i {
  width: 2px;
  height: 18px;
  margin-left: 22px;
  background: var(--line-strong);
}
.handoff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

/* ----- Scroll story ----- */
.scroll-story {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.scroll-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 34px;
  align-items: start;
}
.story-pin {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex;
  min-height: calc(100vh - var(--header-height) - 48px);
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.story-pin h2 {
  margin-bottom: 10px;
  max-width: 15ch;
}
.story-pin p:not(.eyebrow) {
  color: var(--slate);
}
.vertical-build {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 14px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.vertical-build__rail {
  position: relative;
  width: 6px;
  min-height: 210px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}
.vertical-build__fill {
  position: absolute;
  inset: 0 0 auto;
  height: 0%;
  border-radius: inherit;
  background: var(--green);
  transition: height 0.18s ease;
}
.vertical-build__labels {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  align-items: center;
  min-width: 0;
}
.vertical-build__labels span {
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 600;
}
.story-steps {
  display: grid;
  gap: 18px;
}
.story-step {
  display: flex;
  min-height: 58vh;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  opacity: 0.58;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.story-step.is-active {
  border-left-color: var(--green);
  opacity: 1;
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}
.story-step__index {
  margin-bottom: 12px;
  color: var(--green-700);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}
.story-step p {
  margin: 0;
  color: var(--slate);
}

/* ----- Horizontal ownership story ----- */
.horizontal-story {
  height: var(--horizontal-scroll-height, 230vh);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.horizontal-story__sticky {
  position: sticky;
  top: var(--header-height);
  display: flex;
  min-height: calc(100vh - var(--header-height));
  align-items: center;
  padding: 34px 0;
  overflow: hidden;
}
.horizontal-story__head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}
.horizontal-story__head h2 {
  margin: 0;
}
.horizontal-story__head p {
  margin: 0;
}
.horizontal-window {
  overflow: hidden;
}
.horizontal-track {
  display: flex;
  gap: 16px;
  will-change: transform;
}
.ownership-card {
  flex: 0 0 min(420px, calc(100vw - 72px));
  min-height: 282px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.ownership-card__kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 9px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.ownership-card h3 {
  margin-bottom: 8px;
}
.ownership-card p {
  margin: 0;
  color: var(--slate);
}
.horizontal-progress {
  height: 4px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}
.horizontal-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transform: scaleX(var(--horizontal-progress, 0));
  transform-origin: left center;
}

/* ----- Cards / panels ----- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad {
  padding: 20px;
}

.grid {
  display: grid;
  gap: 16px;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.grid > * {
  min-width: 0; /* prevent overflow in grid children */
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.feature h3 {
  margin-bottom: 0.35rem;
}
.feature p {
  margin: 0;
  color: var(--slate);
  font-size: 0.94rem;
}

/* ----- Callouts ----- */
.callout {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.callout strong {
  color: var(--navy);
}
.callout--warn {
  background: var(--amber-50);
  border-color: var(--amber-line);
  color: var(--amber-ink);
}
.callout--info {
  background: var(--green-50);
  border-color: #bbf7d0;
  color: var(--green-700);
}
.callout.compact {
  padding: 9px 11px;
  font-size: 0.82rem;
}

.sample-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-muted);
  border: 1px solid var(--line-strong);
  color: var(--slate);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ----- Demo ----- */
.demo {
  padding-top: 8px;
}
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.panel-head h2,
.panel-head h3 {
  margin: 0;
}

/* Form */
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}
.field .hint {
  font-weight: 400;
  color: var(--slate-light);
}
.input,
.textarea,
.select {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
}
.textarea {
  min-height: 72px;
  resize: vertical;
}
.input:focus,
.textarea:focus,
.select:focus {
  outline: 2px solid rgba(22, 163, 74, 0.35);
  outline-offset: 1px;
  border-color: var(--green);
}

/* Demo output */
.plan {
  display: block;
}
.plan-empty {
  color: var(--slate);
  font-size: 0.95rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  background: var(--surface-muted);
}
.plan-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}
.plan-section:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.plan-section h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-700);
  margin: 0 0 6px;
}
.plan-section p {
  margin: 0 0 0.4rem;
}
.plan-section ul {
  margin: 0;
}
.plan-section li {
  overflow-wrap: anywhere; /* keep user-entered content inside the card */
}

.outline-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 8px;
  background: var(--surface-muted);
}
.outline-card:first-of-type {
  margin-top: 0;
}
.outline-card strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}
.outline-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}
.outline-metric {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #fff;
  min-width: 0;
}
.outline-metric strong {
  display: block;
  font-size: 1.05rem;
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.metric-label {
  display: block;
  color: var(--green-700);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-block;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.8rem;
  color: var(--navy);
}

.kv {
  font-size: 0.9rem;
}
.kv .kv-key {
  font-weight: 600;
  color: var(--navy);
}

.cta-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ----- Prose pages ----- */
.prose {
  max-width: 760px;
}
.prose h2 {
  margin-top: 1.8rem;
}
.prose h3 {
  margin-top: 1.3rem;
}
.prose ul {
  color: var(--slate);
}
.legal-meta {
  color: var(--slate-light);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 36px 0 28px;
  margin-top: 24px;
}
.site-footer a {
  color: #e2e8f0;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.footer-brand {
  max-width: 320px;
}
.footer-brand .brand {
  color: #fff;
}
.footer-brand p {
  color: #94a3b8;
  font-size: 0.88rem;
  margin-top: 8px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 7px;
}
.footer-col a {
  color: #cbd5e1;
  font-size: 0.9rem;
}
.footer-bottom {
  border-top: 1px solid var(--navy-700);
  margin-top: 24px;
  padding-top: 16px;
  color: #94a3b8;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

/* ----- Cookie consent ----- */
.cookie-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}
.cookie-consent__content {
  min-width: 0;
  max-width: 680px;
}
.cookie-consent h2 {
  margin-bottom: 4px;
  font-size: 1rem;
}
.cookie-consent p {
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
}
.cookie-consent__actions {
  display: flex;
  flex: 0 1 430px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.cookie-consent__actions .btn {
  white-space: normal;
}

/* ----- No-JavaScript gate -----
   Markup lives inside <noscript>, so this appears only when JS is blocked.
   The message fades in after 5 seconds; the decline link targets the overlay
   itself, and :target hides it so the static page can be used. */
.noscript-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #000;
  color: #fff;
}
.noscript-gate:target {
  display: none;
}
.noscript-card {
  width: min(100%, 540px);
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: var(--radius);
  background: #0b1220;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(8px);
  animation: noscript-message 260ms ease 5s forwards;
}
.noscript-card h2 {
  color: #fff;
  margin-bottom: 8px;
}
.noscript-card p {
  color: #cbd5e1;
}
.noscript-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.noscript-actions a {
  color: #fff;
}
.noscript-actions .btn-ghost {
  background: transparent;
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.32);
}

@keyframes noscript-message {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .story-step,
  .story-pin,
  .vertical-build__fill,
  .horizontal-track,
  .horizontal-progress span {
    transition: none;
  }
  .horizontal-story {
    height: auto !important;
  }
  .horizontal-story__sticky {
    position: relative;
    top: auto;
    min-height: auto;
  }
  .horizontal-track {
    transform: none !important;
  }
}

/* ----- Responsive ----- */
@media (max-width: 820px) {
  .hero-grid,
  .section-heading,
  .tool-showcase__grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    max-width: 18ch;
  }
  .mock-tool--hero,
  .mock-tool--large {
    min-height: auto;
  }
  .mock-tool__body {
    min-height: auto;
  }
  .mock-tool__nav {
    width: 124px;
  }
  .mock-metrics,
  .mock-metrics--wide,
  .mock-kanban,
  .handoff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process-map,
  .mock-deploy-line {
    flex-wrap: wrap;
  }
  .process-map i,
  .mock-deploy-line i {
    flex-basis: 22px;
    flex-grow: 1;
  }
  .scroll-story__grid {
    grid-template-columns: 1fr;
  }
  .story-pin {
    position: relative;
    top: auto;
    min-height: auto;
  }
  .story-step {
    min-height: auto;
  }
  .horizontal-story {
    height: auto !important;
  }
  .horizontal-story__sticky {
    position: relative;
    top: auto;
    min-height: auto;
  }
  .horizontal-story__head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .horizontal-window {
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .horizontal-track {
    transform: none !important;
    scroll-snap-type: x mandatory;
  }
  .ownership-card {
    scroll-snap-align: start;
  }
  .horizontal-progress {
    display: none;
  }
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .outline-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 1.85rem;
  }
  h2 {
    font-size: 1.38rem;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    align-items: stretch;
    flex-direction: column;
    width: calc(100% - 24px);
    padding: 14px;
  }
  .cookie-consent__actions {
    flex-basis: auto;
    justify-content: stretch;
  }
  .hero-proof-row span {
    width: 100%;
  }
  .mock-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mock-tab {
    width: 100%;
  }
  .mock-tool__topbar,
  .mock-tool__header {
    align-items: stretch;
    flex-direction: column;
  }
  .mock-tool__body {
    grid-template-columns: 1fr;
  }
  .mock-tool__sidebar {
    display: none;
  }
  .mock-tool__nav {
    display: flex;
    width: auto;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .mock-tool__nav-title {
    display: none;
  }
  .mock-tool__nav span:not(.mock-tool__nav-title) {
    flex: 0 0 auto;
  }
  .mock-tool__content {
    padding: 14px;
  }
  .mock-metrics,
  .mock-metrics--wide,
  .mock-form-grid,
  .mock-kanban,
  .handoff-grid {
    grid-template-columns: 1fr;
  }
  .process-map span,
  .mock-deploy-line span {
    flex: 1 1 42%;
    text-align: center;
  }
  .process-map i,
  .mock-deploy-line i {
    display: none;
  }
  .story-pin {
    padding: 18px;
  }
  .vertical-build {
    grid-template-columns: 1fr;
  }
  .vertical-build__rail {
    width: 100%;
    min-height: 6px;
  }
  .vertical-build__fill {
    width: var(--vertical-fill-width, 0%);
    height: 100% !important;
  }
  .vertical-build__labels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 8px;
  }
  .story-step {
    padding: 18px;
  }
  .horizontal-track {
    display: grid;
    gap: 12px;
  }
  .ownership-card {
    min-height: auto;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px;
  }
  .nav .nav-cta .btn:not(.nav-toggle) {
    display: none; /* keep the top bar clean on mobile; CTA lives in menu/hero */
  }
  .section {
    padding: 36px 0;
  }
  .btn {
    width: 100%;
  }
  .btn-row .btn {
    width: auto;
    flex: 1 1 auto;
  }
}
