:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #4b5563;
  --line: #cbd5e1;
  --soft: #f8fafc;
  --band: #eef4f8;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --green: #047857;
}

* {
  box-sizing: border-box;
}

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

main {
  min-width: 320px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  min-height: 88vh;
  padding: 64px 7vw 48px;
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

.hero-copy {
  max-width: 680px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: 4.5rem;
  line-height: 0.98;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 18px;
  font-size: 2rem;
  line-height: 1.12;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  font-weight: 800;
  text-decoration: none;
}

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

.primary:hover {
  background: #000000;
}

.secondary {
  background: #ffffff;
  color: var(--ink);
}

.secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.button.disabled,
.button.disabled:hover {
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.72;
}

.note,
.disclaimer {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.hero-image {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

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

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.split > * {
  min-width: 0;
}

.split p,
.final-cta p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

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

.check-list li {
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 700;
}

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

.resource-grid a {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
}

.resource-grid strong {
  font-size: 1.05rem;
}

.resource-grid span {
  color: var(--muted);
  line-height: 1.5;
}

.preview img,
.included-image {
  width: 100%;
  border: 1px solid var(--line);
}

.preview h2 {
  margin-bottom: 26px;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.final-cta {
  text-align: center;
}

.waitlist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.waitlist p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.waitlist .button {
  flex: 0 0 auto;
}

.final-cta p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .button {
  margin: 10px 0 20px;
}

.tool-page main {
  min-width: 0;
}

.tool-shell {
  min-height: 100vh;
  padding: 28px 5vw 44px;
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

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

.tool-header h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: 3rem;
}

.tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.tool-nav a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.decision-form,
.tool-output {
  min-width: 0;
}

.decision-form {
  display: grid;
  gap: 16px;
}

.decision-form label,
.decision-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.decision-form fieldset {
  padding: 0;
  border: 0;
}

.decision-form legend {
  margin-bottom: 8px;
}

.decision-form input,
.decision-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  line-height: 1.45;
}

.decision-form textarea {
  resize: vertical;
}

.option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 10px;
}

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

.scorecard-criteria label,
.scorecard-options label {
  min-width: 0;
}

.scorecard-options {
  display: grid;
  gap: 14px;
}

.scorecard-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(58px, 0.35fr));
  gap: 10px;
  align-items: end;
}

.scorecard-row label {
  font-size: 0.84rem;
}

.scorecard-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.scorecard-result h2 {
  margin-bottom: 10px;
}

.scorecard-result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.tool-actions button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--ink);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tool-actions button[type="reset"] {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.tool-output {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.output-header h2 {
  margin-bottom: 0;
}

#status {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 900;
}

#markdown-output {
  min-height: 520px;
  max-height: 70vh;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  color: #253044;
  font: 0.94rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.upgrade-strip {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.upgrade-strip img {
  border: 1px solid var(--line);
}

.upgrade-strip h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.upgrade-strip p {
  color: var(--muted);
  line-height: 1.55;
}

.buy-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  min-height: 86vh;
  padding: 64px 7vw 48px;
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

.buy-copy {
  min-width: 0;
  max-width: 720px;
}

.price-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  max-width: 680px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.price {
  display: block;
  color: var(--green);
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
}

.price-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price-panel p,
.buy-card p,
.step-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.proof-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 16px 0;
}

.proof-links a {
  display: grid;
  gap: 6px;
  min-height: 124px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
}

.proof-links strong {
  font-size: 0.98rem;
}

.proof-links span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.buy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: start;
}

.buy-card,
.step-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.buy-card {
  padding: 24px;
}

.buy-card h2 + p {
  margin-bottom: 24px;
}

.steps h2 {
  margin-bottom: 28px;
}

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

.step-grid > div {
  padding: 20px;
}

.step-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.04rem;
}

@media (max-width: 860px) {
  html,
  body,
  main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .hero,
  .buy-hero,
  .split {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .hero,
  .buy-hero {
    width: 100vw;
    max-width: 100vw;
    min-height: auto;
    padding: 44px 20px 34px;
    gap: 30px;
    overflow: hidden;
  }

  .hero-copy,
  .buy-copy {
    width: 100%;
    max-width: 100%;
  }

  h1 {
    max-width: 320px;
    font-size: 2.35rem;
    line-height: 1.03;
  }

  h2,
  p,
  .lead,
  .eyebrow {
    max-width: 300px;
  }

  h2 {
    font-size: 1.45rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .hero-image,
  .preview img,
  .included-image {
    width: 300px;
    max-width: calc(100vw - 40px);
    margin-top: 28px;
  }

  .check-list {
    max-width: 300px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .check-list li,
  .split p,
  .final-cta p,
  .waitlist p {
    overflow-wrap: break-word;
  }

  .waitlist {
    display: block;
  }

  .waitlist .button {
    margin-top: 22px;
  }

  .section-inner {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 48px 20px;
    overflow: hidden;
  }

  .band,
  .preview,
  .final-cta {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }

  .tool-shell {
    padding: 28px 20px 40px;
  }

  .tool-header,
  .tool-grid,
  .upgrade-strip {
    display: block;
  }

  .tool-header h1 {
    font-size: 2.25rem;
  }

  .tool-nav {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .tool-output {
    position: static;
    margin-top: 26px;
  }

  #markdown-output {
    min-height: 360px;
    max-height: none;
  }

  .upgrade-strip img {
    margin-bottom: 16px;
  }

  .buy-grid,
  .step-grid,
  .proof-links,
  .scorecard-criteria,
  .scorecard-row,
  .price-panel {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
}
