:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #56615d;
  --line: #d8dfd9;
  --paper: #fbfcf8;
  --soft: #eef5ef;
  --green: #256f4a;
  --green-dark: #164b33;
  --blue: #285c7e;
  --gold: #c58b30;
  --white: #ffffff;
  --shadow: 0 18px 46px rgba(23, 32, 29, 0.14);
}

* {
  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;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 248, 0.92);
  border-bottom: 1px solid rgba(216, 223, 217, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
  font-size: 0.78rem;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.94rem;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--green-dark);
}

.hero {
  position: relative;
  min-height: min(540px, 68vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 20, 18, 0.82) 0%, rgba(12, 20, 18, 0.62) 42%, rgba(12, 20, 18, 0.2) 100%),
    linear-gradient(0deg, rgba(251, 252, 248, 0.04), rgba(251, 252, 248, 0.04));
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 7vw, 96px) clamp(28px, 6vh, 56px);
  color: var(--white);
}

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

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

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.6rem, 10vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  color: rgba(255, 255, 255, 0.92);
}

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

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

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

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.button.light {
  color: var(--green-dark);
  background: var(--white);
}

.button.outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
}

.tool-section,
.workflow-band,
.monetization-band,
.content-section,
.newsletter-band {
  padding: clamp(42px, 7vw, 88px) clamp(18px, 4vw, 56px);
}

.tool-section {
  background: var(--paper);
}

.section-intro {
  width: min(760px, 100%);
  margin-bottom: 26px;
}

.section-intro h2,
.newsletter-band h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.section-intro p,
.newsletter-band p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

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

.field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  min-height: 102px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.field span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.field output {
  min-width: 46px;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--soft);
  text-align: center;
  font-weight: 900;
}

.field input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--green);
}

.field.compact {
  grid-template-columns: 1fr;
}

.field input[type="number"],
.field select,
.signup-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.result-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(145deg, var(--green-dark), #243f52);
  box-shadow: var(--shadow);
}

.result-panel > div:not(.result-actions) {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.result-note {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

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

.metric-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-panel strong {
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  line-height: 1.05;
}

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

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

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

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

.offer-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.offer-card.featured {
  border-color: rgba(37, 111, 74, 0.4);
  box-shadow: var(--shadow);
}

.offer-label {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offer-card h3 {
  margin: 12px 0 0;
  font-size: 1.32rem;
  line-height: 1.15;
}

.offer-card p {
  margin: 14px 0;
  color: var(--muted);
}

.price {
  display: block;
  margin: auto 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
}

.commercial-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.workflow-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.workflow-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.workflow-card p {
  margin: 14px 0 22px;
  color: var(--muted);
}

.workflow-card a,
.article-row {
  font-weight: 900;
  color: var(--green-dark);
}

.content-section {
  background: var(--paper);
}

.article-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.article-row {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(160px, 0.6fr) minmax(220px, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.article-row span {
  color: var(--muted);
}

.article-row strong {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.newsletter-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
  color: var(--white);
  background: #203d44;
}

.newsletter-band .eyebrow {
  color: #e0af5d;
}

.newsletter-band p {
  color: rgba(255, 255, 255, 0.78);
}

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

.signup-form {
  display: grid;
  gap: 10px;
}

.signup-form label {
  font-weight: 800;
}

.signup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.signup-row button {
  color: var(--white);
  background: var(--gold);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  min-height: 84px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
  padding: 22px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer a {
  text-decoration: none;
}

.legal-page,
.article-page {
  padding: clamp(38px, 8vw, 84px) clamp(18px, 4vw, 56px);
}

.article-shell,
.legal-shell {
  width: min(880px, 100%);
  margin: 0 auto;
}

.article-shell h1,
.legal-shell h1 {
  max-width: 12ch;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.article-shell h2,
.legal-shell h2 {
  margin: 42px 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.article-shell p,
.article-shell li,
.legal-shell p {
  color: var(--muted);
  font-size: 1.04rem;
}

.note-box {
  margin: 28px 0;
  padding: 18px;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: var(--soft);
}

.comparison-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 26px 0;
  background: var(--white);
}

.comparison-table th,
.comparison-table td {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.comparison-table th {
  background: var(--soft);
}

.lead-panel,
.affiliate-note,
.payment-panel {
  margin: 28px 0;
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
}

.revenue-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.revenue-strip div {
  padding: 18px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(145deg, var(--green-dark), #243f52);
}

.revenue-strip span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.revenue-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
}

.check-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.payment-panel {
  background: var(--paper);
}

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

.payment-card {
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
}

.payment-card:hover {
  border-color: rgba(37, 111, 74, 0.55);
  box-shadow: 0 12px 28px rgba(23, 32, 29, 0.1);
}

.payment-card span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.payment-card strong {
  font-size: 1.18rem;
  line-height: 1.2;
}

.payment-card small {
  color: var(--muted);
  font-size: 0.93rem;
}

.lead-panel {
  display: grid;
  gap: 14px;
  background: var(--soft);
}

.lead-panel .signup-row {
  max-width: 620px;
}

.tool-card-grid,
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.tool-card,
.prompt-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.tool-card h3,
.prompt-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.tool-card p,
.prompt-card p {
  margin: 0 0 14px;
}

.source-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.source-list a {
  color: var(--green-dark);
  font-weight: 800;
}

.prompt-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font: 0.92rem/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 8px 16px;
    padding-bottom: 4px;
  }

  .hero {
    min-height: max(380px, min(500px, 58vh));
  }

  .hero-content {
    margin: 0 18px 28px;
  }

  .calculator,
  .newsletter-band {
    grid-template-columns: 1fr;
  }

  .workflow-grid,
  .offer-grid,
  .revenue-strip,
  .payment-grid,
  .control-grid,
  .tool-card-grid,
  .prompt-grid {
    grid-template-columns: 1fr;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 540px) {
  .tool-section {
    padding-top: 28px;
  }

  .hero-actions,
  .signup-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .button,
  button {
    width: 100%;
  }

  .field {
    min-height: 96px;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px;
    font-size: 0.92rem;
  }
}
