:root {
  --pine: #10251d;
  --pine-2: #173a2d;
  --leaf: #4f8a5b;
  --mint: #dce9dc;
  --stone: #f5f1ea;
  --limestone: #d8ccba;
  --clay: #b86f43;
  --brass: #cda35a;
  --sky: #d8e8ef;
  --ink: #17211d;
  --muted: #69756f;
  --line: rgba(23, 33, 29, 0.12);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(18, 31, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--stone);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(245, 241, 234, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 54px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 178px;
}

.brand-mark {
  align-items: center;
  background: var(--pine);
  border-radius: 8px;
  color: var(--stone);
  display: inline-flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

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

.nav-links {
  align-items: center;
  color: rgba(23, 33, 29, 0.78);
  display: flex;
  font-size: 14px;
  gap: 22px;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--pine);
}

.nav-cta,
.button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
}

.nav-cta svg,
.button svg {
  height: 18px;
  width: 18px;
}

.nav-cta,
.button.primary {
  background: var(--pine);
  color: var(--white);
}

.button.glass {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--white);
}

.button.full {
  width: 100%;
}

.hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(6, 20, 15, 0.86), rgba(6, 20, 15, 0.18) 58%, rgba(6, 20, 15, 0.34)),
    url("assets/hero-backyard.jpg") center / cover;
  color: var(--white);
  display: flex;
  min-height: 88vh;
  padding: 110px clamp(18px, 5vw, 70px) 58px;
  position: relative;
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

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

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

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

h1 {
  font-size: clamp(52px, 9vw, 104px);
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 22px;
  max-width: 780px;
}

h2 {
  font-size: clamp(30px, 5vw, 56px);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
  max-width: 900px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.35;
  max-width: 640px;
}

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

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-metrics span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
}

.hero-metrics b {
  color: var(--white);
  margin-right: 6px;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 70px);
}

.section-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto 32px;
  max-width: 1320px;
}

.section-head.compact {
  display: block;
}

.visual-strip,
.planner-band,
.automation-band {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  margin: 0 auto;
  max-width: 1320px;
}

.feature-tile {
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

.feature-tile.tall {
  grid-row: span 2;
  min-height: 536px;
}

.feature-tile.wide {
  grid-column: span 2;
}

.feature-tile img {
  height: 100%;
  object-fit: cover;
  position: absolute;
}

.feature-tile::after {
  background: linear-gradient(180deg, rgba(10, 22, 17, 0), rgba(10, 22, 17, 0.78));
  content: "";
  inset: 0;
  position: absolute;
}

.feature-tile div {
  bottom: 0;
  color: var(--white);
  left: 0;
  padding: 22px;
  position: absolute;
  right: 0;
  z-index: 2;
}

.feature-tile span,
.compare-meta span,
.portal-panel span,
.dash-panel span,
.sms-grid span,
.agent-card-grid span,
.package-card p,
.service-card span {
  color: var(--muted);
}

.feature-tile span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.feature-tile strong {
  font-size: 22px;
}

.compare-band,
.packages-band,
.portal-band,
.agents-band {
  background: #ebe3d7;
}

.compare-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1320px;
}

.compare-card,
.service-card,
.package-card,
.agent-form,
.agent-output,
.upload-panel,
.planner-board,
.portal-panel,
.dash-panel,
.sms-grid article,
.agent-card-grid article,
.kpi-row article {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(18, 31, 24, 0.08);
}

.compare-images {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.compare-images figure {
  aspect-ratio: 4 / 3;
  margin: 0;
  position: relative;
}

.compare-images img {
  height: 100%;
  object-fit: cover;
}

.compare-images figcaption {
  background: rgba(16, 37, 29, 0.84);
  border-radius: 6px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  left: 12px;
  padding: 6px 8px;
  position: absolute;
  top: 12px;
}

.compare-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  padding: 18px;
}

.service-grid,
.package-grid,
.sms-grid,
.agent-card-grid {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 1320px;
}

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

.service-card,
.agent-card-grid article {
  min-height: 160px;
  padding: 20px;
}

.service-card svg,
.sms-grid svg,
.agent-card-grid svg {
  color: var(--clay);
  height: 25px;
  margin-bottom: 22px;
  width: 25px;
}

.service-card strong,
.service-card span,
.agent-card-grid strong,
.agent-card-grid span {
  display: block;
}

.service-card strong,
.package-card strong,
.agent-card-grid strong {
  font-size: 18px;
  margin-bottom: 8px;
}

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

.package-card {
  cursor: pointer;
  min-height: 172px;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.package-card:hover,
.package-card.active {
  background: var(--pine);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
  transform: translateY(-2px);
}

.package-card:hover p,
.package-card.active p {
  color: rgba(255, 255, 255, 0.74);
}

.package-price {
  color: var(--clay);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 28px;
}

.package-card.active .package-price,
.package-card:hover .package-price {
  color: var(--brass);
}

.agent-band {
  background: linear-gradient(135deg, var(--pine), #254336 52%, #f3eee5 52%);
}

.agent-band .section-head {
  color: var(--white);
}

.agent-layout,
.planner-layout,
.portal-grid,
.dashboard,
.seo-layout {
  margin: 0 auto;
  max-width: 1320px;
}

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

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

.agent-form label,
.upload-panel label {
  color: var(--pine);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
}

.agent-form input,
.agent-form select,
.agent-form textarea,
.upload-panel textarea {
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  outline: none;
  padding: 11px 12px;
  width: 100%;
}

.agent-form input:focus,
.agent-form select:focus,
.agent-form textarea:focus,
.upload-panel textarea:focus {
  border-color: rgba(79, 138, 91, 0.8);
  box-shadow: 0 0 0 3px rgba(79, 138, 91, 0.14);
}

.agent-form textarea,
.upload-field,
.agent-form .full {
  grid-column: 1 / -1;
}

.range-value {
  color: var(--clay);
  font-weight: 900;
}

.upload-field {
  align-items: center;
  background: #fbfaf6;
  border: 1px dashed rgba(16, 37, 29, 0.28);
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  min-height: 58px;
  padding: 12px;
}

.upload-field input {
  border: 0;
  min-height: auto;
  padding: 0;
}

.agent-output {
  color: var(--ink);
  min-height: 100%;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.agent-output::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55)),
    url("assets/paver-walkway.jpg") center / cover;
  content: "";
  inset: 0;
  opacity: 0.2;
  position: absolute;
}

.agent-output > * {
  position: relative;
}

.output-head,
.panel-top,
.board-toolbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.status-dot {
  background: var(--leaf);
  border-radius: 99px;
  box-shadow: 0 0 0 8px rgba(79, 138, 91, 0.12);
  height: 10px;
  width: 10px;
}

.brief-output {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 37, 29, 0.08);
  border-radius: 8px;
  line-height: 1.55;
  min-height: 260px;
  padding: 20px;
}

.brief-output h3 {
  margin-bottom: 8px;
}

.brief-output ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.mini-pipeline {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.mini-pipeline span {
  background: var(--pine);
  border-radius: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  min-height: 40px;
  padding: 10px;
  text-align: center;
}

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

.upload-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.drop-card {
  align-items: center;
  border: 1px dashed rgba(16, 37, 29, 0.22);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 28px 1fr;
  min-height: 66px;
  padding: 14px;
}

.drop-card input {
  display: none;
}

.drop-card svg {
  color: var(--clay);
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-pills button {
  background: #f5f1ea;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  min-height: 36px;
  padding: 0 12px;
}

.feature-pills button.active {
  background: var(--pine);
  color: var(--white);
}

.planner-board {
  min-height: 520px;
  padding: 18px;
}

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

.preview-card,
.empty-preview {
  background: #f8f4ee;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 180px;
  overflow: hidden;
}

.empty-preview {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: 1 / -1;
  justify-content: center;
}

.preview-card img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.preview-card span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  padding: 10px;
}

.portal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.15fr 0.9fr 0.7fr;
}

.portal-panel {
  padding: 20px;
}

.timeline {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 46px;
  padding: 10px;
}

.timeline li svg {
  color: var(--muted);
  height: 18px;
  width: 18px;
}

.timeline li.done {
  background: rgba(79, 138, 91, 0.12);
}

.timeline li.done svg,
.timeline li.active svg {
  color: var(--leaf);
}

.timeline li.active {
  border-color: rgba(79, 138, 91, 0.42);
  box-shadow: inset 3px 0 0 var(--leaf);
}

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

.milestone-list div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
}

.calendar-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}

.calendar-strip span {
  background: var(--sky);
  border-radius: 8px;
  color: var(--pine);
  font-weight: 900;
  padding: 12px 8px;
  text-align: center;
}

.crm-band {
  background: var(--pine);
  color: var(--white);
}

.crm-band .eyebrow {
  color: var(--brass);
}

.kpi-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.kpi-row article,
.dash-panel {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 18px;
}

.kpi-row span,
.kpi-row small,
.dash-panel span,
.dash-panel p,
.dash-panel th,
.dash-panel td {
  color: rgba(255, 255, 255, 0.72);
}

.kpi-row strong {
  display: block;
  font-size: 34px;
  margin: 8px 0;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.35fr 0.85fr 0.8fr;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  padding: 13px 8px;
  text-align: left;
}

.badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
}

.badge.warm { background: rgba(205, 163, 90, 0.2); color: #f3cf8c; }
.badge.blue { background: rgba(101, 166, 205, 0.2); color: #a9dcff; }
.badge.green { background: rgba(79, 138, 91, 0.24); color: #bff0c6; }
.badge.gray { background: rgba(255, 255, 255, 0.14); color: #f0ece4; }

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

.material-list div {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 1fr auto;
}

.swatch {
  border-radius: 4px;
  display: inline-block;
  height: 18px;
  width: 18px;
}

.swatch.stone { background: #b6aea3; }
.swatch.moss { background: #668357; }
.swatch.clay { background: #9b5f3f; }
.swatch.brass { background: #cda35a; }

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

.sms-grid article {
  align-items: start;
  display: grid;
  gap: 6px;
  grid-template-columns: 36px 1fr 46px;
  min-height: 116px;
  padding: 18px;
}

.sms-grid svg {
  grid-row: span 2;
  margin: 0;
}

.sms-grid article button {
  align-self: start;
  background: var(--leaf);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 24px;
  position: relative;
  width: 44px;
}

.sms-grid article button::after {
  background: var(--white);
  border-radius: 50%;
  content: "";
  height: 18px;
  position: absolute;
  right: 3px;
  top: 3px;
  width: 18px;
}

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

.seo-band {
  background: var(--white);
}

.seo-layout {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.seo-layout p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  max-width: 680px;
}

.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.seo-tags span {
  background: #f5f1ea;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  padding: 12px 14px;
}

.site-footer {
  align-items: center;
  background: #0c1a15;
  color: var(--white);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 30px clamp(18px, 5vw, 70px);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.66);
  margin-top: 4px;
}

.built-by {
  color: rgba(255, 255, 255, 0.38);
  display: block;
  font-size: 11px;
  margin-top: 8px;
}

.built-by a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 1120px) {
  .nav-links {
    display: none;
  }

  .gallery-grid,
  .service-grid,
  .package-grid,
  .portal-grid,
  .dashboard-grid,
  .agent-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-tile.tall,
  .feature-tile.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 320px;
  }

  .agent-layout,
  .planner-layout,
  .seo-layout {
    grid-template-columns: 1fr;
  }

  .portal-panel.progress-panel,
  .pipeline-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 70px;
  }

  .site-header {
    gap: 12px;
    padding: 8px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    height: 32px;
    width: 32px;
  }

  .brand strong {
    font-size: 14px;
  }

  .nav-cta {
    font-size: 13px;
    min-height: 38px;
    padding: 0 10px;
  }

  .hero {
    background-position: 58% center;
    min-height: 72vh;
    padding: 92px 18px 30px;
  }

  h1 {
    font-size: 44px;
    line-height: 0.96;
    margin-bottom: 14px;
  }

  h2 {
    font-size: 27px;
    line-height: 1.04;
  }

  .eyebrow {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .hero-copy {
    font-size: 16px;
    max-width: 310px;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    margin: 20px 0 16px;
    max-width: 260px;
  }

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

  .hero-metrics span {
    font-size: 11px;
    min-height: 58px;
    padding: 9px 8px;
  }

  .hero-metrics b {
    display: block;
    font-size: 15px;
    margin: 0 0 2px;
  }

  .section {
    padding: 42px 16px;
  }

  .section-head {
    align-items: start;
    display: block;
    margin-bottom: 18px;
  }

  .gallery-grid,
  .compare-grid,
  .package-grid,
  .portal-grid,
  .agent-card-grid {
    display: flex;
    gap: 12px;
    margin-left: -16px;
    margin-right: -16px;
    overflow-x: auto;
    padding: 0 16px 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery-grid::-webkit-scrollbar,
  .compare-grid::-webkit-scrollbar,
  .package-grid::-webkit-scrollbar,
  .portal-grid::-webkit-scrollbar,
  .agent-card-grid::-webkit-scrollbar {
    display: none;
  }

  .feature-tile,
  .compare-card,
  .package-card,
  .portal-panel,
  .agent-card-grid article {
    flex: 0 0 82vw;
    scroll-snap-align: start;
  }

  .feature-tile,
  .feature-tile.tall,
  .feature-tile.wide {
    min-height: 255px;
  }

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

  .compare-meta {
    display: grid;
    gap: 4px;
    padding: 14px;
  }

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

  .service-card {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 74px;
    padding: 14px;
  }

  .service-card svg {
    height: 22px;
    margin: 0;
    width: 22px;
  }

  .service-card strong {
    font-size: 14px;
    margin: 0;
  }

  .service-card span {
    display: none;
  }

  .package-card {
    min-height: 144px;
    padding: 18px;
  }

  .package-price {
    margin-bottom: 18px;
  }

  .package-card p {
    font-size: 13px;
    line-height: 1.35;
  }

  .agent-band {
    background: var(--pine);
  }

  .agent-form,
  .preview-grid,
  .kpi-row {
    grid-template-columns: 1fr;
  }

  .agent-form {
    gap: 10px;
    padding: 14px;
  }

  .agent-form label,
  .upload-panel label {
    font-size: 12px;
  }

  .agent-form input,
  .agent-form select,
  .agent-form textarea,
  .upload-panel textarea {
    min-height: 42px;
    padding: 9px 10px;
  }

  .agent-form textarea,
  .upload-field,
  .agent-form .full {
    grid-column: auto;
  }

  .mini-pipeline,
  .calendar-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-output,
  .upload-panel,
  .planner-board,
  .portal-panel,
  .dash-panel,
  .kpi-row article,
  .sms-grid article,
  .agent-card-grid article {
    box-shadow: 0 10px 28px rgba(18, 31, 24, 0.08);
  }

  .agent-output {
    padding: 16px;
  }

  .brief-output {
    min-height: 170px;
    padding: 14px;
  }

  .planner-layout {
    gap: 12px;
  }

  .upload-panel {
    padding: 12px;
  }

  .drop-card {
    min-height: 54px;
    padding: 12px;
  }

  .feature-pills {
    flex-wrap: nowrap;
    margin-left: -4px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .feature-pills button {
    flex: 0 0 auto;
  }

  .planner-board {
    min-height: 260px;
    padding: 14px;
  }

  .preview-card,
  .empty-preview {
    min-height: 150px;
  }

  .timeline {
    gap: 8px;
  }

  .timeline li {
    min-height: 38px;
    padding: 8px;
  }

  .timeline li:nth-child(n + 6) {
    display: none;
  }

  .milestone-list {
    gap: 10px;
  }

  .milestone-list div {
    padding-bottom: 10px;
  }

  .calendar-strip span {
    padding: 10px 8px;
  }

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

  .kpi-row article,
  .dash-panel {
    padding: 14px;
  }

  .kpi-row strong {
    font-size: 26px;
    margin: 4px 0;
  }

  .dashboard-grid,
  .sms-grid {
    display: flex;
    gap: 12px;
    margin-left: -16px;
    margin-right: -16px;
    overflow-x: auto;
    padding: 0 16px 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .dashboard-grid::-webkit-scrollbar,
  .sms-grid::-webkit-scrollbar {
    display: none;
  }

  .dash-panel {
    flex: 0 0 86vw;
    scroll-snap-align: start;
  }

  .pipeline-panel {
    overflow-x: auto;
  }

  table {
    min-width: 520px;
  }

  th,
  td {
    font-size: 13px;
    padding: 10px 8px;
  }

  .material-list {
    gap: 10px;
  }

  .sms-grid article {
    align-items: center;
    flex: 0 0 72vw;
    gap: 8px;
    grid-template-columns: 28px minmax(0, 1fr) 44px;
    min-height: 62px;
    padding: 12px;
    scroll-snap-align: start;
  }

  .sms-grid svg {
    height: 20px;
    width: 20px;
  }

  .sms-grid span {
    display: none;
  }

  .sms-grid strong {
    font-size: 14px;
  }

  .agent-card-grid article {
    min-height: 138px;
    padding: 16px;
  }

  .agent-card-grid svg {
    margin-bottom: 14px;
  }

  .agent-card-grid strong {
    font-size: 16px;
  }

  .seo-layout {
    gap: 16px;
  }

  .seo-layout p {
    font-size: 15px;
  }

  .seo-tags {
    flex-wrap: nowrap;
    justify-content: start;
    margin-left: -16px;
    margin-right: -16px;
    overflow-x: auto;
    padding: 0 16px 4px;
  }

  .seo-tags span {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 10px 12px;
  }

  .site-footer {
    align-items: stretch;
    flex-direction: column;
    padding-bottom: 88px;
  }

  .mobile-action-bar {
    align-items: center;
    background: rgba(245, 241, 234, 0.94);
    border-top: 1px solid rgba(16, 37, 29, 0.12);
    bottom: 0;
    box-shadow: 0 -12px 30px rgba(18, 31, 24, 0.12);
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, 1fr);
    left: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 30;
  }

  .mobile-action-bar a {
    align-items: center;
    border-radius: 8px;
    color: var(--pine);
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 900;
    gap: 3px;
    justify-content: center;
    min-height: 46px;
  }

  .mobile-action-bar a:nth-child(2) {
    background: var(--pine);
    color: var(--white);
  }

  .mobile-action-bar svg {
    height: 17px;
    width: 17px;
  }
}
