:root {
  color-scheme: light;
  --ink: #17201f;
  --ink-soft: #47514f;
  --muted: #65716e;
  --line: rgba(23, 32, 31, 0.1);
  --paper: #f6f8f4;
  --surface: #f8faf5;
  --white: #ffffff;
  --green: #0f5b4c;
  --green-dark: #0c483d;
  --gold: #f3c84b;
  --rust: #d7743f;
  --blue: #3c5f8f;
  --shadow: 0 24px 60px rgba(23, 32, 31, 0.14);
  --brand-gradient: linear-gradient(135deg, #0f5b4c, #d7743f, #f3c84b);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 244, 0.98)),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.app-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 74px;
  padding: 0 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--brand-gradient);
  border-radius: 8px;
  color: #10201e;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: -2px;
}

.nav-links {
  align-items: center;
  background: #eef2ea;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 4px;
  padding: 6px;
}

.nav-links a,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover {
  background: var(--white);
  color: var(--ink);
}

.nav-cta,
.primary-button,
.secondary-button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

.nav-cta,
.primary-button {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(15, 91, 76, 0.22);
}

.secondary-button {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(8, 16, 16, 0.92), rgba(8, 16, 16, 0.62) 52%, rgba(8, 16, 16, 0.2)),
    linear-gradient(180deg, rgba(8, 16, 16, 0.05), rgba(8, 16, 16, 0.86)),
    url("https://images.unsplash.com/photo-1677756119517-756a188d2d94?auto=format&fit=crop&w=1800&q=82")
      center / cover;
  color: var(--white);
  display: flex;
  min-height: calc(100vh - 132px);
  padding: 68px 24px;
}

.kit-hero {
  margin: 0 auto;
  max-width: 1180px;
  padding: 84px 24px 36px;
}

.kit-hero h1 {
  max-width: 980px;
}

.dashboard-hero {
  align-items: end;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.35fr) 320px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 84px 24px 36px;
}

.readiness-card {
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  padding: 24px;
}

.readiness-card span,
.readiness-card small {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-weight: 850;
}

.readiness-card strong {
  display: block;
  font-size: 64px;
  line-height: 1;
  margin: 18px 0;
}

.progress-shell {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  height: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.progress-shell div {
  background: var(--brand-gradient);
  border-radius: 999px;
  height: 100%;
  transition: width 180ms ease;
  width: 0;
}

.hero-copy {
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
}

.eyebrow {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 8vw, 76px);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 24px;
  max-width: 900px;
}

h2 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
}

h3 {
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-lede {
  color: var(--ink-soft);
  font-size: 20px;
  max-width: 720px;
}

.hero .hero-lede {
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.hero-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 36px 0 0;
  max-width: 720px;
}

.hero-metrics div {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding-top: 14px;
}

.hero-metrics dt {
  font-size: 26px;
  font-weight: 900;
}

.hero-metrics dd {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  margin: 0;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero .secondary-button {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.system-preview {
  margin: -48px auto 0;
  max-width: 1180px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.photo-proof-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 84px 24px 24px;
}

.photo-proof-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.1fr 0.9fr 1fr;
}

.photo-proof-card {
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  min-height: 320px;
  overflow: hidden;
  position: relative;
}

.photo-proof-card img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.photo-proof-card::after {
  background:
    linear-gradient(180deg, rgba(23, 32, 31, 0.04), rgba(23, 32, 31, 0.86)),
    linear-gradient(90deg, rgba(15, 91, 76, 0.45), rgba(215, 116, 63, 0.08));
  content: "";
  inset: 0;
  position: absolute;
}

.photo-proof-card div {
  bottom: 0;
  display: grid;
  gap: 8px;
  left: 0;
  padding: 22px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.photo-proof-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.photo-proof-card strong {
  font-size: 21px;
  line-height: 1.14;
}

.photo-proof-card p {
  color: rgba(255, 255, 255, 0.76);
  margin: 0;
}

.hero-visual {
  align-self: center;
  background:
    linear-gradient(135deg, rgba(15, 91, 76, 0.14), transparent 44%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 420px;
  overflow: hidden;
  padding: 22px;
}

.visual-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: -22px -22px 22px;
  padding: 18px 22px;
}

.visual-header span {
  color: var(--muted);
  font-weight: 800;
}

.pulse-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pulse-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 130px;
  padding: 18px;
}

.pulse-card span,
.pulse-card small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.pulse-card strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  margin: 14px 0 10px;
}

.pulse-card.warm {
  background: rgba(243, 200, 75, 0.16);
}

.pulse-card.cool {
  background: rgba(60, 95, 143, 0.12);
}

.pulse-card.green {
  background: rgba(15, 91, 76, 0.12);
}

.pulse-card.ink {
  background: rgba(23, 32, 31, 0.08);
}

.flow-lane {
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 22px;
}

.flow-lane div {
  align-items: center;
  display: flex;
  font-weight: 800;
  gap: 12px;
}

.flow-lane span {
  background: var(--gold);
  border-radius: 999px;
  display: inline-block;
  height: 12px;
  width: 12px;
}

.mini-brief {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 20px;
  padding: 18px;
}

.mini-brief strong,
.mini-brief p {
  display: block;
  margin: 0;
}

.mini-brief p {
  color: var(--muted);
  margin-top: 8px;
}

.section-band,
.module-section,
.pilot-section,
.case-section,
.showcase-section,
.portal-section,
.kit-section,
.dashboard-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 84px 24px;
}

.section-band,
.case-section,
.dashboard-section:nth-of-type(even) {
  background:
    linear-gradient(135deg, rgba(15, 91, 76, 0.06), rgba(243, 200, 75, 0.08)),
    transparent;
}

.module-section,
.portal-section {
  position: relative;
}

.module-section::before,
.portal-section::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 248, 244, 0.9)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1400&q=82")
      center / cover;
  border-radius: 8px;
  content: "";
  display: block;
  height: 220px;
  margin-bottom: 34px;
}

.portal-section::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(246, 248, 244, 0.88)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1400&q=82")
      center / cover;
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  margin-bottom: 0;
}

.week-grid,
.pilot-grid,
.resource-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.week-grid article,
.pilot-grid article,
.resource-grid a,
.module-detail,
.portal {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.week-grid article,
.pilot-grid article,
.resource-grid a {
  min-height: 220px;
  padding: 24px;
}

.resource-grid a {
  color: inherit;
  display: grid;
  gap: 18px;
  text-decoration: none;
}

.resource-grid a:hover {
  border-color: rgba(15, 91, 76, 0.6);
  box-shadow: 0 16px 40px rgba(23, 32, 31, 0.1);
}

.resource-grid span {
  color: var(--gold);
  font-weight: 900;
}

.resource-grid strong {
  display: block;
  font-size: 20px;
}

.resource-grid small {
  color: var(--muted);
  font-size: 14px;
}

.resource-grid.compact a {
  min-height: 96px;
}

.dashboard-grid,
.infra-grid,
.relationship-grid,
.send-map,
.script-grid,
.talking-layout,
.workflow-grid {
  display: grid;
  gap: 16px;
}

.dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.infra-grid,
.relationship-grid,
.send-map,
.talking-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-card,
.infra-grid article,
.relationship-grid article,
.send-map article,
.script-grid article,
.talking-layout article,
.next-actions,
.checklist-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-card,
.infra-grid article,
.relationship-grid article,
.send-map article,
.script-grid article,
.talking-layout article,
.next-actions {
  padding: 24px;
}

.dashboard-card p,
.infra-grid p,
.relationship-grid p,
.send-map p,
.talking-layout li,
.next-actions li {
  color: var(--muted);
}

.card-kicker,
.infra-grid span,
.relationship-grid span,
.send-map span,
.talking-layout span {
  color: var(--green-dark);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.relationship-grid a {
  color: var(--green-dark);
  font-weight: 850;
}

.link-stack {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
}

.link-stack a {
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
}

.link-stack a:hover {
  color: var(--ink);
}

.script-grid article {
  display: grid;
  gap: 14px;
}

.script-grid pre {
  background: #eef2ea;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  margin: 0;
  overflow-x: auto;
  padding: 16px;
  white-space: pre-wrap;
}

.lab-split {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.lab-card,
.workflow-grid article,
.timeline-list article,
.script-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.lab-card span,
.workflow-grid span,
.timeline-list span {
  color: var(--green-dark);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.lab-card p,
.lab-card li,
.workflow-grid p,
.timeline-list p {
  color: var(--muted);
}

.lab-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.lab-card-dark {
  background: var(--ink);
  color: var(--white);
}

.lab-card-dark span,
.lab-card-dark p {
  color: rgba(255, 255, 255, 0.76);
}

.workflow-grid article {
  min-height: 235px;
}

.workflow-grid span {
  color: var(--gold);
  margin-bottom: 36px;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-list article {
  display: grid;
  gap: 10px;
  grid-template-columns: 110px 230px minmax(0, 1fr);
}

.timeline-list strong,
.timeline-list p {
  margin: 0;
}

.script-card pre {
  background: #f2eee4;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #2f3833;
  font: 15px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  margin: 0;
  overflow-x: auto;
  padding: 18px;
  white-space: pre-wrap;
}

.lab-proof-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lab-proof-grid article,
.ops-workspace,
.ops-output-card,
.agent-prompt-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lab-proof-grid article {
  min-height: 190px;
  padding: 24px;
}

.lab-proof-grid span,
.ops-output-card span {
  color: var(--gold);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.lab-proof-grid p,
.ops-panel-header p,
.ops-side-card li,
.ops-output-card li,
.question-list p {
  color: var(--muted);
}

.ops-lab-shell {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: 300px minmax(0, 1fr);
}

.ops-picker {
  display: grid;
  gap: 10px;
}

.ops-choice {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 16px;
  text-align: left;
}

.ops-choice span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-choice strong {
  font-size: 17px;
  line-height: 1.15;
}

.ops-choice.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.ops-choice.active span {
  color: rgba(255, 255, 255, 0.72);
}

.ops-workspace {
  padding: 24px;
}

.ops-panel-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 130px;
  margin-bottom: 22px;
  padding-bottom: 20px;
}

.ops-panel-header h3 {
  font-size: 28px;
}

.ops-panel-header p {
  margin-bottom: 0;
}

.ops-score {
  background: var(--green-dark);
  border-radius: 8px;
  color: var(--white);
  padding: 16px;
  text-align: center;
}

.ops-score strong,
.ops-score span {
  display: block;
}

.ops-score strong {
  font-size: 22px;
  line-height: 1;
}

.ops-score span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 850;
  margin-top: 6px;
}

.ops-input-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 260px;
}

.ops-input-grid label {
  display: grid;
  gap: 10px;
}

.ops-input-grid label span,
.ops-side-card span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-input-grid textarea {
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 330px;
  padding: 16px;
  resize: vertical;
  width: 100%;
}

.ops-side-card {
  align-content: start;
  background: #f2eee4;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.ops-side-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.ops-output-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-output-card {
  padding: 22px;
}

.ops-output-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.agent-prompt-card {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 24px;
}

.agent-prompt-card pre {
  background: #f2eee4;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #2f3833;
  font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding: 16px;
  white-space: pre-wrap;
}

.copy-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.copy-row span {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 850;
}

.owner-workspace {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px 24px 54px;
}

.owner-dashboard-shell {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 260px minmax(0, 1fr);
}

.owner-sidebar,
.owner-main,
.owner-board,
.automation-visual,
.owner-input-card,
.owner-brief-card,
.handoff-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.owner-sidebar {
  align-content: start;
  display: grid;
  gap: 10px;
  padding: 16px;
  position: sticky;
  top: 92px;
}

.owner-firm-card {
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
  padding: 18px;
}

.owner-firm-card span,
.owner-firm-card small {
  color: rgba(255, 255, 255, 0.72);
}

.owner-firm-card span,
.owner-firm-card small,
.owner-firm-card strong {
  display: block;
}

.owner-nav-grid {
  display: grid;
  gap: 10px;
}

.owner-nav {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  min-height: 48px;
  padding: 0 14px;
  text-align: left;
}

.owner-nav.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

.owner-main {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.owner-kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner-kpi-grid article {
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.owner-kpi-grid span,
.agent-use-grid span,
.handoff-card span {
  color: var(--green-dark);
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-kpi-grid strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  margin: 14px 0 8px;
}

.owner-kpi-grid small {
  color: var(--muted);
  font-weight: 800;
}

.owner-view-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.1fr) 360px;
}

.owner-board,
.automation-visual {
  padding: 22px;
}

.owner-board-header {
  margin-bottom: 18px;
}

.owner-row-list {
  display: grid;
  gap: 10px;
}

.owner-row-list div {
  align-items: center;
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 96px minmax(0, 1fr) 120px;
  padding: 13px 14px;
}

.owner-row-list span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-row-list em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 850;
  text-align: right;
}

.visual-header.compact {
  margin-bottom: 16px;
}

.automation-lanes {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.automation-lanes div {
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.automation-lanes span {
  color: var(--gold);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.automation-visual p {
  color: var(--muted);
  margin: 0;
}

.owner-ai-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.owner-input-card,
.owner-brief-card {
  padding: 24px;
}

.input-card-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.input-card-header h3 {
  font-size: 24px;
}

.input-card-header select {
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 0 12px;
}

.owner-input-card textarea {
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 330px;
  padding: 16px;
  resize: vertical;
  width: 100%;
}

.ai-pill {
  background: rgba(183, 137, 43, 0.14);
  border: 1px solid rgba(183, 137, 43, 0.34);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  white-space: nowrap;
}

.ai-pill.live {
  background: rgba(47, 125, 87, 0.12);
  border-color: rgba(47, 125, 87, 0.3);
  color: var(--green-dark);
}

.brief-result {
  display: grid;
  gap: 16px;
}

.brief-result section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.brief-result h4 {
  font-size: 15px;
  margin: 0 0 8px;
}

.brief-result ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.brief-result li,
.confidence-note {
  color: var(--muted);
}

.confidence-note {
  background: #f2eee4;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 12px;
}

.agent-use-grid,
.handoff-grid {
  display: grid;
  gap: 16px;
}

.agent-use-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.handoff-grid {
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
}

.agent-use-grid article,
.handoff-card {
  padding: 24px;
}

.agent-use-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 220px;
}

.agent-use-grid span,
.handoff-card span {
  margin-bottom: 22px;
}

.agent-use-grid p,
.handoff-card p,
.handoff-card li {
  color: var(--muted);
}

.handoff-card.dark {
  background: var(--ink);
  color: var(--white);
}

.handoff-card.dark span,
.handoff-card.dark p {
  color: rgba(255, 255, 255, 0.76);
}

.handoff-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.friend-script {
  margin-top: 18px;
}

.builder-workspace {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px 24px 54px;
}

.builder-scoreboard {
  display: grid;
}

.builder-dashboard-shell {
  align-items: start;
  display: grid;
  gap: 0;
  grid-template-columns: 230px minmax(0, 1fr);
}

.builder-mode-bar,
.builder-main,
.builder-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.builder-mode-bar {
  align-content: start;
  display: grid;
  gap: 12px;
  padding: 16px;
  position: sticky;
  top: 92px;
  z-index: 1;
}

.builder-mode-header {
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.builder-mode-header span,
.builder-mode-header small,
.builder-mode-header strong {
  display: block;
}

.builder-mode-header span,
.builder-mode-header small {
  color: rgba(255, 255, 255, 0.72);
}

.builder-mode-header span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.builder-mode-header strong {
  font-size: 18px;
  line-height: 1.15;
}

.builder-nav-grid {
  display: grid;
  gap: 8px;
}

.builder-nav {
  background: #faf9f5;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  min-height: 48px;
  padding: 0 14px;
  text-align: left;
}

.builder-nav.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

.builder-main {
  display: grid;
  gap: 18px;
  padding: 18px;
  min-width: 0;
}

.builder-panel {
  display: none;
  padding: 24px;
}

.builder-panel.active {
  display: grid;
  gap: 18px;
}

.builder-form-grid,
.builder-plan-grid {
  display: grid;
  gap: 14px;
}

.builder-form-grid {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1.2fr) auto;
}

.builder-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.builder-form-grid label,
.builder-plan-grid label {
  display: grid;
  gap: 8px;
}

.builder-form-grid span,
.builder-plan-grid span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.builder-form-grid input,
.builder-form-grid select,
.builder-plan-grid textarea,
.builder-panel > textarea {
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.builder-plan-grid textarea,
.builder-panel > textarea {
  resize: vertical;
}

.builder-list {
  display: grid;
  gap: 10px;
}

.builder-list-item {
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto;
  padding: 16px;
}

.builder-list-item span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.builder-list-item strong,
.builder-list-item p {
  margin: 0;
}

.builder-list-item p {
  color: var(--muted);
  grid-column: 2 / 3;
}

.builder-remove {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  min-height: 36px;
  padding: 0 10px;
}

.builder-remove:hover {
  border-color: rgba(173, 93, 61, 0.4);
  color: var(--rust);
}

.builder-brief-result {
  margin-top: 6px;
}

.talking-layout ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.tracker-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.checklist-panel {
  display: grid;
  overflow: hidden;
}

.milestone-item {
  align-items: start;
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: 22px minmax(0, 1fr);
  padding: 18px;
}

.milestone-item + .milestone-item {
  border-top: 1px solid var(--line);
}

.milestone-item input {
  accent-color: var(--green-dark);
  margin-top: 5px;
}

.milestone-item small,
.milestone-item strong,
.milestone-item em {
  display: block;
}

.milestone-item small {
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.milestone-item em {
  color: var(--muted);
  font-style: normal;
  margin-top: 4px;
}

.next-actions ol {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.review-board {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.review-board article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 250px;
  padding: 24px;
}

.review-board span {
  color: var(--gold);
  display: block;
  font-weight: 900;
  margin-bottom: 42px;
}

.review-board p,
.question-list p {
  color: var(--muted);
}

.question-list {
  display: grid;
  gap: 12px;
}

.question-list div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 220px minmax(0, 1fr);
  padding: 18px;
}

.question-list strong,
.question-list p {
  margin: 0;
}

.week-grid span {
  color: var(--gold);
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 40px;
}

.week-grid p,
.pilot-grid p,
.case-profile p,
.case-panel p,
.case-panel li,
.module-detail p,
.portal-panel p,
.portal-panel li {
  color: var(--muted);
}

.case-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.85fr 1.15fr;
}

.case-profile,
.case-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.case-profile {
  padding: 28px;
}

.case-profile h3 {
  font-size: 30px;
}

.case-stats {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  padding-top: 22px;
}

.case-stats strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.case-stats span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 8px;
}

.case-demo {
  display: grid;
  gap: 12px;
}

.case-tabs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-tab {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  min-height: 48px;
  padding: 0 14px;
}

.case-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.case-panel {
  min-height: 330px;
  padding: 28px;
}

.case-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.case-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.case-actions div {
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.case-actions strong,
.case-actions span {
  display: block;
}

.case-actions span {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

.showcase-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mock-window {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(23, 32, 28, 0.08);
  min-height: 430px;
  overflow: hidden;
}

.window-bar {
  align-items: center;
  background: #ece9e1;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
}

.window-bar span {
  background: var(--line);
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.window-bar span:first-child {
  background: var(--rust);
}

.window-bar span:nth-child(2) {
  background: var(--gold);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.window-bar strong {
  font-size: 14px;
  margin-left: 8px;
}

.lead-card,
.summary-card,
.brief-visual {
  margin: 18px;
}

.lead-card,
.summary-card {
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.lead-card h3 {
  font-size: 24px;
}

.lead-card p,
.summary-card li,
.visual-note {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-row span {
  background: rgba(47, 125, 87, 0.1);
  border: 1px solid rgba(47, 125, 87, 0.24);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
  padding: 6px 9px;
}

.route-line {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr auto 1fr auto;
  margin: 22px 18px 0;
}

.route-line span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.route-line i {
  background: var(--gold);
  display: block;
  height: 2px;
}

.summary-card div {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.summary-card small {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.summary-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.task-stack {
  display: grid;
  gap: 10px;
  margin: 18px;
}

.task-stack div {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px;
}

.task-stack span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  text-align: right;
}

.brief-visual {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 120px minmax(0, 1fr);
}

.brief-score {
  align-items: center;
  background: var(--green-dark);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  min-height: 120px;
  padding: 16px;
  text-align: center;
}

.brief-score strong {
  font-size: 44px;
  line-height: 1;
}

.brief-score span {
  font-size: 12px;
  font-weight: 850;
}

.bar-list {
  display: grid;
  gap: 14px;
}

.bar-list div {
  background: transparent;
  border-radius: 0;
  display: grid;
  gap: 7px;
  height: auto;
  min-width: 0;
  position: relative;
}

.bar-list div::before {
  background: #ece9e1;
  border-radius: 999px;
  content: "";
  display: block;
  grid-area: 1 / 1;
  height: 16px;
  width: 100%;
}

.bar-list span {
  background: var(--gold);
  border-radius: 999px;
  display: block;
  grid-area: 1 / 1;
  height: 16px;
  position: relative;
  z-index: 1;
}

.bar-list strong {
  color: var(--ink);
  display: block;
  font-size: 13px;
  line-height: 1.15;
  margin-top: 0;
}

.bar-58 {
  width: 58%;
}

.bar-78 {
  width: 78%;
}

.bar-86 {
  width: 86%;
}

.visual-note {
  margin: 56px 18px 0;
}

.consultant-strip {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 16px;
  grid-template-columns: 0.5fr 1fr auto;
  margin-top: 18px;
  padding: 22px;
}

.consultant-strip p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.consultant-strip .primary-button {
  background: var(--white);
  color: var(--ink);
  white-space: nowrap;
}

.module-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 280px minmax(0, 1fr);
}

.module-list,
.portal-sidebar {
  display: grid;
  gap: 10px;
}

button {
  font: inherit;
}

.module-tab,
.portal-link {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  min-height: 48px;
  padding: 0 16px;
  text-align: left;
}

.module-tab.active,
.portal-link.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.module-detail {
  min-height: 420px;
  padding: 30px;
}

.module-detail ul,
.portal-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.badge-row span {
  background: rgba(47, 125, 87, 0.1);
  border: 1px solid rgba(47, 125, 87, 0.24);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  padding: 7px 10px;
}

.portal {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 520px;
  overflow: hidden;
}

.portal-sidebar {
  align-content: start;
  background: #ece9e1;
  border-right: 1px solid var(--line);
  padding: 18px;
}

.portal-firm-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  padding: 16px;
}

.portal-firm-card strong,
.portal-firm-card span,
.portal-firm-card small {
  display: block;
}

.portal-firm-card span,
.portal-firm-card small {
  color: var(--muted);
}

.portal-firm-card small {
  font-weight: 800;
}

.portal-panel {
  padding: 28px;
}

.panel-header {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.score {
  background: var(--green-dark);
  border-radius: 8px;
  color: var(--white);
  min-width: 112px;
  padding: 14px;
  text-align: center;
}

.score strong {
  display: block;
  font-size: 36px;
  line-height: 1;
}

.task-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  overflow: hidden;
}

.task-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.2fr 0.8fr 0.6fr;
  padding: 14px 16px;
}

.task-row:nth-child(odd) {
  background: #faf9f5;
}

.task-row strong {
  display: block;
}

.task-row span {
  color: var(--muted);
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 30px 24px 42px;
}

.site-footer p {
  color: var(--muted);
  margin: 0;
  max-width: 620px;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.ai-assistant {
  bottom: 22px;
  display: grid;
  gap: 12px;
  justify-items: end;
  position: fixed;
  right: 22px;
  z-index: 60;
}

.ai-assistant-launch {
  align-items: center;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(23, 32, 31, 0.22);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  min-height: 52px;
  padding: 8px 14px 8px 8px;
}

.ai-assistant-launch span {
  align-items: center;
  background: var(--brand-gradient);
  border-radius: 6px;
  color: #10201e;
  display: inline-flex;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.ai-assistant-launch strong {
  font-size: 14px;
  letter-spacing: 0;
}

.ai-assistant-panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  max-height: min(690px, calc(100vh - 112px));
  overflow: hidden;
  width: min(390px, calc(100vw - 28px));
}

.ai-assistant.is-open .ai-assistant-panel {
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
}

.ai-assistant-panel header {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 91, 76, 0.08), rgba(215, 116, 63, 0.12)),
    var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px;
}

.ai-assistant-panel header strong,
.ai-assistant-panel header span {
  display: block;
}

.ai-assistant-panel header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ai-assistant-close,
.ai-assistant-prompts button,
.ai-assistant-form button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.ai-assistant-close {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 36px;
  padding: 0 12px;
}

.ai-assistant-messages {
  display: grid;
  gap: 12px;
  max-height: 390px;
  overflow-y: auto;
  padding: 16px;
}

.ai-message {
  border-radius: 8px;
  padding: 12px;
}

.ai-message span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.ai-message p {
  margin: 0;
  white-space: pre-wrap;
}

.ai-message small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 8px;
}

.ai-message.assistant {
  background: #f3f6ef;
  border: 1px solid rgba(15, 91, 76, 0.12);
}

.ai-message.user {
  background: var(--ink);
  color: var(--white);
  justify-self: end;
  max-width: 92%;
}

.ai-message.user span,
.ai-message.user small {
  color: rgba(255, 255, 255, 0.72);
}

.ai-assistant-prompts {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0;
}

.ai-assistant-prompts button {
  background: #eef2ea;
  color: var(--ink);
  font-size: 12px;
  min-height: 32px;
  padding: 0 10px;
  text-align: left;
}

.ai-assistant-form {
  display: grid;
  gap: 8px;
  padding: 12px 16px 16px;
}

.ai-assistant-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ai-assistant-form div {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 74px;
}

.ai-assistant-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 0 12px;
  width: 100%;
}

.ai-assistant-form button {
  background: var(--green);
  color: var(--white);
}

.ai-assistant.is-busy .ai-assistant-form button {
  opacity: 0.72;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 18px;
    padding-top: 18px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hero,
  .dashboard-hero,
  .section-heading,
  .module-layout,
  .case-layout,
  .showcase-grid,
  .consultant-strip,
  .review-board,
  .question-list div,
  .dashboard-grid,
  .infra-grid,
  .relationship-grid,
  .send-map,
  .script-grid,
  .talking-layout,
  .lab-split,
  .workflow-grid,
  .timeline-list article,
  .lab-proof-grid,
  .ops-lab-shell,
  .ops-panel-header,
  .ops-input-grid,
  .ops-output-grid,
  .owner-workspace,
  .owner-dashboard-shell,
  .owner-kpi-grid,
  .owner-view-grid,
  .owner-ai-grid,
  .agent-use-grid,
  .handoff-grid,
  .builder-workspace,
  .builder-dashboard-shell,
  .builder-form-grid,
  .builder-plan-grid,
  .tracker-layout,
  .portal,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .builder-mode-bar {
    position: static;
  }

  .owner-sidebar {
    position: static;
  }

  .owner-nav-grid {
    grid-template-columns: repeat(5, minmax(104px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .owner-nav {
    min-height: 54px;
    padding: 0 8px;
    text-align: center;
  }

  .builder-nav-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .builder-nav {
    min-height: 54px;
    padding: 0 8px;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .system-preview {
    margin-top: 0;
    padding-top: 24px;
  }

  .hero-visual {
    min-height: auto;
  }

  .week-grid,
  .pilot-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    align-items: start;
  }

  .ai-assistant {
    bottom: 14px;
    right: 14px;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 42px;
  }

  .hero-metrics,
  .pulse-grid,
  .case-stats,
  .case-tabs,
  .case-actions,
  .brief-visual,
  .route-line,
  .task-row {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    grid-template-columns: 1fr;
  }

  .owner-row-list div,
  .builder-list-item,
  .input-card-header {
    grid-template-columns: 1fr;
  }

  .owner-row-list em {
    text-align: left;
  }

  .input-card-header {
    display: grid;
  }

  .builder-list-item p {
    grid-column: auto;
  }

  .builder-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
