:root {
  color-scheme: light;
  --ink: #111816;
  --muted: #5d6965;
  --paper: #f7f9f5;
  --panel: #ffffff;
  --line: #dbe3dc;
  --green: #0e6a54;
  --green-strong: #094d3d;
  --amber: #c98625;
  --coral: #bb4938;
  --blue: #236b8e;
  --shadow: 0 18px 55px rgba(20, 30, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

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

svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(17, 24, 22, 0.08);
  background: rgba(247, 249, 245, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.top-cta,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand {
  justify-self: start;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.1;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.topnav a {
  min-width: 88px;
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--ink);
  background: #edf3ee;
  outline: none;
}

.top-cta {
  justify-self: end;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 750;
}

.top-cta:hover,
.top-cta:focus-visible {
  background: var(--green-strong);
  outline: 3px solid rgba(14, 106, 84, 0.18);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 1.08fr) minmax(280px, 360px);
  gap: 18px;
  width: min(1500px, calc(100% - 40px));
  min-height: 680px;
  margin: 28px auto 18px;
}

.intro-panel,
.visual-panel,
.control-panel,
.tool-panel,
.lead-form,
.offer-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.intro-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.94)),
    #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: 4rem;
  line-height: 0.94;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  line-height: 1.1;
}

.intro-copy {
  max-width: 52ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

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

.signal-strip div,
.metric-card,
.price-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.signal-strip div {
  padding: 16px;
}

.signal-strip span,
.metric-card span,
.price-card span,
.visual-overlay span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.signal-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 1.18rem;
}

.visual-panel {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  background: #0b1311;
}

.visual-panel img {
  width: 100%;
  height: 100%;
  min-height: 680px;
  object-fit: cover;
}

.visual-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(9, 16, 15, 0.06), rgba(9, 16, 15, 0.48));
  pointer-events: none;
}

.visual-overlay {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  width: min(280px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  background: rgba(5, 12, 10, 0.72);
  backdrop-filter: blur(14px);
}

.visual-overlay span {
  color: rgba(255, 255, 255, 0.7);
}

.visual-overlay strong {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
}

.panel-heading h2 {
  margin-bottom: 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

select,
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cdd8d0;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fbfcfa;
}

select:focus,
input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(14, 106, 84, 0.16);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf3ee;
}

.segmented button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 760;
}

.segmented button.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 22, 0.08);
}

.primary-action,
.secondary-action {
  min-height: 50px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 830;
}

.primary-action {
  border: 0;
  color: #fff;
  background: var(--green);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--green-strong);
  outline: 3px solid rgba(14, 106, 84, 0.18);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: var(--green);
  outline: 3px solid rgba(14, 106, 84, 0.12);
}

.dashboard,
.plan-grid,
.offer-band,
.lead-section {
  width: min(1500px, calc(100% - 40px));
  margin: 18px auto;
}

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

.metric-card {
  padding: 22px;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2.25rem;
  line-height: 1;
}

.metric-card small {
  display: block;
  min-height: 34px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.accent-card {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.accent-card span,
.accent-card small {
  color: rgba(255, 255, 255, 0.78);
}

.plan-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
}

.tool-panel {
  padding: 26px;
}

.tool-panel p,
.offer-band p,
.lead-form p {
  color: var(--muted);
  line-height: 1.6;
}

.check-list,
.timeline {
  margin: 20px 0 0;
  padding: 0;
}

.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-top: 1px solid var(--line);
}

.check-list li::before {
  position: absolute;
  top: 17px;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  content: "✓";
  font-size: 0.78rem;
  font-weight: 900;
}

.pipeline {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.pipeline div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.pipeline span {
  display: grid;
  grid-row: span 2;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 850;
}

.pipeline small {
  color: var(--muted);
  line-height: 1.45;
}

.timeline {
  counter-reset: step;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 18px 34px;
  color: var(--muted);
  line-height: 1.5;
}

.timeline li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--amber);
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  font-weight: 850;
}

.offer-band {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 26px;
  align-items: center;
  padding: 30px;
}

.offer-band h2,
.lead-form h2 {
  font-size: 2rem;
}

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

.price-card {
  padding: 22px;
}

.price-card strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 2rem;
}

.price-card small {
  color: var(--muted);
  line-height: 1.45;
}

.price-card.featured {
  border-color: rgba(187, 73, 56, 0.45);
  background: #fff7f4;
}

.lead-section {
  padding-bottom: 32px;
}

.lead-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.6fr) auto;
  gap: 18px;
  align-items: end;
  padding: 30px;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.form-actions button {
  min-width: 140px;
  padding: 0 16px;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 750;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 1fr 1fr;
  }

  .control-panel {
    grid-column: 1 / -1;
  }

  .plan-grid,
  .offer-band,
  .lead-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .topbar {
    position: static;
    grid-template-columns: 1fr auto;
    padding: 12px 18px;
  }

  .topnav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
  }

  .topnav a {
    min-width: 96px;
  }

  .workspace,
  .dashboard,
  .plan-grid,
  .offer-band,
  .lead-section {
    width: min(100% - 24px, 1500px);
  }

  .workspace,
  .dashboard,
  .price-row {
    grid-template-columns: 1fr;
  }

  .workspace {
    min-height: 0;
    margin-top: 14px;
  }

  .intro-panel,
  .control-panel,
  .tool-panel,
  .offer-band,
  .lead-form {
    padding: 22px;
  }

  h1 {
    max-width: 13ch;
    font-size: 3rem;
  }

  .visual-panel img {
    min-height: 420px;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .top-cta {
    justify-self: stretch;
  }

  .topnav {
    justify-content: start;
  }

  h1 {
    font-size: 2.45rem;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .visual-overlay {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}
