:root {
  --ink: #17211c;
  --muted: #69766f;
  --line: #dbe2dc;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --teal: #0d7f73;
  --teal-dark: #07574f;
  --mint: #d9f3ea;
  --gold: #d79c24;
  --coral: #da654a;
  --blue: #356baf;
  --shadow: 0 18px 45px rgba(30, 42, 35, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(120deg, rgba(13, 127, 115, 0.08), transparent 32%),
    linear-gradient(240deg, rgba(215, 156, 36, 0.12), transparent 28%), var(--paper);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  font-size: 1.05rem;
}

.brand-mark,
.nav-item span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 10px 22px rgba(13, 127, 115, 0.28);
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.nav-item span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #edf2ee;
  color: var(--teal-dark);
  font-size: 0.88rem;
}

.nav-item:hover,
.nav-item.active {
  background: var(--mint);
  color: var(--teal-dark);
}

.sidebar-panel {
  margin-top: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.sidebar-panel strong {
  display: block;
  color: var(--teal-dark);
  font-size: 2.2rem;
  line-height: 1;
  margin: 8px 0;
}

.sidebar-panel span,
small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

main {
  width: min(1220px, calc(100vw - 248px));
  margin: 0 auto;
  padding: 26px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.05;
}

h2 {
  font-size: 1.25rem;
}

.lead-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.lead-form input {
  width: 240px;
  border: 0;
  outline: 0;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 800;
  white-space: nowrap;
}

.button.primary {
  color: #ffffff;
  background: var(--teal);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--teal-dark);
  border-color: var(--line);
  background: #f7faf8;
}

.status-strip,
.workspace-grid,
.lower-grid {
  display: grid;
  gap: 16px;
}

.status-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.status-strip article,
.tool-panel,
.result-panel,
.quote-preview,
.growth-board {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-strip article {
  padding: 16px;
}

.status-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-strip strong {
  display: block;
  margin: 5px 0 3px;
  font-size: 1.45rem;
}

.workspace-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: start;
}

.tool-panel,
.result-panel,
.quote-preview,
.growth-board {
  padding: 20px;
}

.section-heading {
  margin-bottom: 16px;
}

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

.preset {
  border: 1px solid var(--line);
  background: #f8faf8;
  color: var(--muted);
  border-radius: 8px;
  min-height: 40px;
  font-weight: 800;
}

.preset:hover,
.preset.active {
  border-color: rgba(13, 127, 115, 0.32);
  background: var(--mint);
  color: var(--teal-dark);
}

.quote-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 127, 115, 0.12);
}

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

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

.result-panel {
  position: sticky;
  top: 20px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.result-header strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.health-ring {
  width: 118px;
  height: 118px;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.health-ring svg {
  width: 118px;
  height: 118px;
  transform: rotate(-90deg);
}

.health-ring .track {
  stroke: #e8ece9;
  stroke-width: 12;
}

.health-ring .progress {
  stroke: var(--teal);
  stroke-width: 12;
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
  transition: stroke-dashoffset 0.2s ease;
}

.health-ring span {
  position: absolute;
  font-weight: 900;
  color: var(--teal-dark);
  font-size: 1.35rem;
}

.metric-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.metric-list div,
.preview-lines div,
.deposit-bar,
.content-map {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfb;
}

.metric-list span,
.preview-lines span,
.deposit-bar span,
.content-map span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
}

.price-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.band-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--teal));
}

#price-marker {
  position: absolute;
  top: 50%;
  left: 58%;
  width: 20px;
  height: 20px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--teal-dark);
  box-shadow: 0 6px 12px rgba(23, 33, 28, 0.22);
  transform: translate(-50%, -50%);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.notice {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.86rem;
}

.consent-line {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.lead-form > .consent-line {
  flex: 0 0 100%;
}

.consent-line input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--teal);
}

.full-width {
  width: 100%;
}

.lower-grid {
  grid-template-columns: 1fr 0.8fr;
  margin-top: 16px;
  align-items: start;
}

.preview-lines {
  display: grid;
  gap: 10px;
}

.preview-lines .total-row {
  background: var(--mint);
  border-color: rgba(13, 127, 115, 0.2);
}

#preview-note {
  color: var(--muted);
  line-height: 1.55;
  margin: 16px 0;
}

.deposit-bar {
  border-color: rgba(53, 107, 175, 0.24);
  background: rgba(53, 107, 175, 0.08);
}

.signal-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.signal-list label {
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  color: var(--ink);
}

.signal-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.content-map {
  display: grid;
  justify-items: start;
  gap: 4px;
  background: #fff8ea;
  border-color: rgba(215, 156, 36, 0.28);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.marketing-page {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 11px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--teal-dark);
  background: var(--mint);
}

.marketing-main {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0 58px;
}

.hero-tool,
.split-section,
.article-main {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 22px;
  align-items: start;
}

.hero-copy,
.split-section > div {
  padding: 20px 0;
}

.hero-copy h1,
.split-section h1,
.guide-article h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.02;
}

.hero-copy p,
.split-section p,
.guide-article p,
.cta-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.mini-calculator,
.download-card,
.roadmap-panel,
.guide-article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.93);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mini-calculator,
.download-card,
.roadmap-panel {
  padding: 20px;
}

.mini-calculator form,
.lead-form.stacked {
  display: grid;
  gap: 14px;
}

.calculator-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.calculator-result div,
.article-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 14px;
}

.calculator-result span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.calculator-result strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
}

.result-note {
  min-height: 48px;
  margin: 14px 0 0;
  color: var(--teal-dark);
  font-weight: 800;
  line-height: 1.45;
}

.content-section,
.cta-panel {
  margin-top: 22px;
}

.content-section {
  padding: 8px 0;
}

.content-section h2,
.cta-panel h2,
.roadmap-panel h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

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

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

.article-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.article-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 18px;
  align-items: start;
  border: 1px solid rgba(13, 127, 115, 0.2);
  border-radius: 8px;
  background: var(--mint);
  padding: 20px;
}

.lead-form.wide,
.lead-form.stacked {
  border-radius: 8px;
  background: #ffffff;
}

.lead-form.wide {
  display: grid;
  grid-template-columns: 1fr auto;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.45;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--teal);
}

.guide-article {
  padding: 26px;
}

.guide-article .lede {
  font-size: 1.08rem;
  color: var(--ink);
}

.guide-article section {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 22px;
}

.guide-article h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.roadmap-panel {
  position: sticky;
  top: 92px;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-list {
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .sidebar-panel {
    display: none;
  }

  main {
    width: 100%;
    padding: 20px;
  }

  .topbar,
  .workspace-grid,
  .lower-grid,
  .hero-tool,
  .split-section,
  .article-main,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .result-panel {
    position: static;
  }

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

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .roadmap-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .sidebar {
    padding: 16px;
  }

  main {
    padding: 16px;
  }

  .lead-form,
  .preset-row,
  .field-grid,
  .field-grid.two,
  .status-strip,
  .actions,
  .calculator-result,
  .article-grid.three,
  .lead-form.wide {
    grid-template-columns: 1fr;
  }

  .lead-form {
    display: grid;
  }

  .lead-form input {
    width: 100%;
    min-height: 42px;
  }

  .result-header {
    align-items: start;
  }

  .health-ring {
    width: 92px;
    height: 92px;
  }

  .health-ring svg {
    width: 92px;
    height: 92px;
  }
}
