:root {
  color-scheme: light;
  --ink: #14211f;
  --muted: #62706d;
  --line: #d9e2de;
  --paper: #fbfdfb;
  --panel: #ffffff;
  --green: #167a58;
  --mint: #dff4e9;
  --amber: #f5b041;
  --coral: #e86f51;
  --blue: #2f6fba;
  --shadow: 0 18px 50px rgba(20, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(217, 226, 222, 0.82);
  background: rgba(251, 253, 251, 0.92);
  backdrop-filter: blur(14px);
}

.brand,
nav,
.actions,
footer,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 13px;
}

nav {
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 66px);
  padding: clamp(36px, 7vw, 90px) clamp(18px, 6vw, 88px) 56px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(223, 244, 233, 0.95), rgba(251, 253, 251, 0.7) 48%),
    radial-gradient(circle at 85% 16%, rgba(47, 111, 186, 0.12), transparent 26%),
    linear-gradient(145deg, #fbfdfb, #eef7f1);
}

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

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

h1 {
  max-width: 860px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

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

.intro {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

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

.secondary {
  background: white;
}

.pilot-panel,
.calculator,
.brief-form,
.submission-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.pilot-panel {
  padding: 22px;
}

.panel-header,
.results div,
footer {
  justify-content: space-between;
}

.panel-header {
  display: flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.signal-grid div,
.results div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.signal-grid span,
.results span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.signal-grid strong,
.results strong {
  font-size: 26px;
}

.chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 10px;
  height: 180px;
  margin-top: 20px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbf9, #e9f5ee);
}

.chart span {
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--green), var(--amber));
}

.tool-band,
.offers,
.problem,
.report-preview,
.content-plan,
.faq,
.workflow,
.brief {
  padding: 72px clamp(18px, 6vw, 88px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow),
.workflow p:not(.eyebrow),
article p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  padding: 8px 10px;
  border: 1px solid rgba(20, 33, 31, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.panel-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 24px;
}

.calc-form,
.brief-form {
  display: grid;
  gap: 14px;
}

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

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--green);
}

input {
  min-height: 44px;
  padding: 10px 12px;
}

select {
  min-height: 44px;
  padding: 10px 12px;
}

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

.results {
  display: grid;
  gap: 12px;
}

.results .verdict {
  border-color: rgba(22, 122, 88, 0.24);
  background: var(--mint);
}

.verdict p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

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

article {
  min-height: 270px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

article ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.pill {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

article strong {
  display: block;
  margin-top: 20px;
  color: var(--coral);
  font-size: 20px;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  gap: 40px;
  border-block: 1px solid var(--line);
  background: #ffffff;
}

.decision-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 46px clamp(18px, 6vw, 88px);
  background: var(--ink);
  color: white;
}

.decision-band p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.decision-band .eyebrow {
  color: var(--amber);
}

.decision-band .button {
  border-color: white;
  background: white;
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--green);
  font-weight: 900;
}

.report-preview {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.scorecard,
.report-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(20, 33, 31, 0.08);
}

.scorecard {
  padding: 24px;
}

.scorecard h3 {
  font-size: 28px;
}

.report-table {
  overflow: hidden;
}

.report-table div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.45fr);
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.report-table div:last-child {
  border-bottom: 0;
}

.report-table span {
  color: var(--muted);
  font-weight: 800;
}

.report-table strong {
  text-align: right;
}

.content-plan {
  background: #f7fbf8;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.6;
}

ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 24px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.brief-form {
  max-width: 760px;
  padding: 24px;
}

.brief-form .button {
  width: fit-content;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.submission-preview {
  max-width: 760px;
  margin-top: 18px;
  padding: 24px;
}

.submission-preview[hidden] {
  display: none;
}

.submission-preview p {
  color: var(--muted);
  line-height: 1.6;
}

footer {
  gap: 18px;
  padding: 26px clamp(18px, 6vw, 88px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  gap: 16px;
  font-weight: 800;
}

.simple-page,
.legal-page {
  min-height: calc(100vh - 66px);
  padding: clamp(44px, 8vw, 96px) clamp(18px, 6vw, 88px);
}

.tools-hero {
  min-height: auto;
  border-bottom: 1px solid var(--line);
}

.compact-tool {
  padding-top: 56px;
  padding-bottom: 56px;
}

.legal-page {
  max-width: 980px;
}

.article-page {
  max-width: 920px;
  padding: clamp(44px, 8vw, 96px) clamp(18px, 6vw, 88px);
}

.legal-page h1,
.simple-page h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.legal-page h2 {
  margin-top: 34px;
  font-size: 24px;
}

.legal-page p {
  color: var(--muted);
  line-height: 1.7;
}

.article-page p,
.article-page li {
  color: var(--muted);
  line-height: 1.7;
}

.article-page ul {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding-left: 22px;
}

.article-page pre {
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.article-cta {
  margin-top: 42px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mint);
}

@media (max-width: 860px) {
  .topbar,
  nav {
    align-items: flex-start;
  }

  .topbar {
    flex-direction: column;
  }

  .hero,
  .calculator,
  .report-layout,
  .decision-band,
  .workflow {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .offer-grid,
  .problem-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .calc-form,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

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

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
}
