:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #5e6a63;
  --line: #d8ded7;
  --paper: #f6f7f2;
  --white: #ffffff;
  --green: #1f6f4a;
  --green-dark: #164f38;
  --gold: #d89a2b;
  --blue: #275e7c;
  --shadow: 0 18px 45px rgba(25, 38, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(246, 247, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.55fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(44px, 7vw, 96px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(rgba(246, 247, 242, 0.86), rgba(246, 247, 242, 0.72)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80")
      center/cover;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.lead {
  max-width: 680px;
  color: #31423a;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  background: var(--green);
  color: var(--white);
}

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

.hero-panel,
article,
.audit,
.lead-form,
.lead-board,
.call-notes,
.call-output,
.client-form,
.client-output,
.output {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
}

.price {
  display: block;
  color: var(--green-dark);
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
}

.price-label {
  color: var(--muted);
  font-weight: 800;
}

.hero-panel ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding-left: 20px;
  color: #34453d;
  line-height: 1.45;
}

.section {
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 30px;
}

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

article {
  padding: 24px;
}

article p {
  color: var(--muted);
  line-height: 1.55;
}

.ops-section {
  background: #f7f4ed;
}

.audit-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(280px, 1fr);
  gap: 18px;
  background: #e9efe9;
}

.audit-section .section-heading {
  grid-column: 1 / -1;
}

.audit {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.leads-section {
  background: #eef2f4;
}

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

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.calls-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(280px, 1fr);
  gap: 18px;
  background: #f7f4ed;
}

.payments-section {
  background: #edf3f0;
}

.client-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(280px, 1fr);
  gap: 18px;
  background: #f6f7f2;
}

.client-section .section-heading,
.client-status {
  grid-column: 1 / -1;
}

.client-status {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-weight: 800;
}

.client-status.paid {
  border-color: rgba(31, 111, 74, 0.35);
  background: #e9f4ee;
  color: var(--green-dark);
}

.client-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.client-output {
  padding: 24px;
}

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

.payment-grid article {
  display: grid;
  align-content: start;
  gap: 14px;
}

.payment-grid strong {
  color: var(--green-dark);
  font-size: 2rem;
  line-height: 1;
}

.disabled-link {
  opacity: 0.58;
  pointer-events: none;
}

.setup-steps {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.setup-steps ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.5;
}

.calls-section .section-heading,
.call-grid {
  grid-column: 1 / -1;
}

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

.plain-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.call-notes {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.call-output {
  padding: 24px;
}

.lead-board {
  padding: 24px;
}

.lead-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.lead-board-header h3 {
  margin-bottom: 0;
}

#leadList {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.5;
}

#leadList strong {
  color: var(--ink);
}

.plan-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.plan-strip span {
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: #30443b;
  font-size: 0.9rem;
  font-weight: 800;
}

label,
legend {
  color: #26352e;
  font-size: 0.95rem;
  font-weight: 800;
}

input,
textarea,
select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 120px;
  padding-top: 12px;
  resize: vertical;
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

fieldset input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.output {
  padding: 24px;
}

pre {
  min-height: 320px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  white-space: pre-wrap;
  border-radius: 8px;
  background: #17201b;
  color: #edf7ef;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .audit-section,
  .lead-layout,
  .calls-section,
  .client-section,
  .offer-grid,
  .ops-grid,
  .call-grid,
  .payment-grid,
  .script-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.3rem, 14vw, 4.5rem);
  }

  footer {
    flex-direction: column;
  }
}
