:root {
  color-scheme: light;
  --bg: #f7f6f1;
  --surface: #ffffff;
  --surface-soft: #eef3ed;
  --ink: #1f2a2b;
  --muted: #5d6b6b;
  --line: #d9ded8;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --gold: #b7791f;
  --coral: #c4513d;
  --radius: 8px;
  --shadow: 0 20px 55px rgba(31, 42, 43, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
}

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

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

.top-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.top-nav a[aria-current="page"],
.top-nav a:hover,
.site-footer a:hover {
  color: var(--ink);
}

main {
  min-height: 70vh;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 48px;
  width: min(1160px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 56px 0 76px;
}

.hero-copy h1,
.page-hero h1,
.article h1 {
  margin: 10px 0 20px;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede,
.page-hero p,
.article header p,
.tool-intro p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 700px;
}

.hero-actions,
.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

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

.button.ghost {
  background: transparent;
}

.button.small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.hero-media {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-media,
.content-card,
.tool-panel,
.result-panel {
  min-width: 0;
}

.hero-media img {
  width: 100%;
}

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

.band,
.split-band,
.product-band,
.page-hero,
.tool-layout,
.article,
.ad-slot {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.band {
  padding: 72px 0;
}

.band.narrow {
  width: min(820px, calc(100% - 32px));
  padding-top: 28px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.split-band h2,
.product-band h2,
.article h2,
.tool-intro h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.content-card,
.tool-panel,
.result-panel,
.purchase-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(31, 42, 43, 0.05);
}

.content-card {
  min-height: 230px;
  padding: 22px;
}

.content-card h3 {
  margin: 8px 0 12px;
  font-size: 1.32rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.content-card h3 a {
  text-decoration: none;
}

.content-card p {
  color: var(--muted);
  margin: 0;
}

.split-band,
.product-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 36px;
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list div {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list span,
.split-band p,
.article p,
.article li {
  color: var(--muted);
}

.page-hero {
  padding: 72px 0 32px;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1fr);
  gap: 24px;
  padding: 62px 0 24px;
}

.tool-intro {
  grid-row: span 2;
}

.tool-note {
  display: grid;
  gap: 3px;
  margin-top: 24px;
  padding: 16px;
  border-left: 4px solid var(--gold);
  background: #fff8e8;
  border-radius: 8px;
}

.tool-note span {
  color: var(--muted);
}

.tool-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

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

.result-panel {
  min-height: 360px;
  padding: 22px;
}

.result-header {
  justify-content: space-between;
  margin-top: 0;
  margin-bottom: 14px;
}

.result-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  color: #223033;
  font: 0.96rem/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ad-slot {
  display: grid;
  gap: 8px;
  min-height: 112px;
  margin-top: 8px;
  margin-bottom: 8px;
  color: var(--muted);
}

.ad-slot > span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-slot .adsbygoogle {
  min-height: 96px;
  border-radius: 8px;
  overflow: hidden;
}

.ad-article {
  width: 100%;
  margin-top: 42px;
  margin-bottom: 12px;
}

.steps,
.check-list {
  padding-left: 22px;
}

.steps li,
.check-list li {
  margin: 10px 0;
}

.article {
  max-width: 820px;
  padding: 72px 0;
}

.article section {
  margin-top: 44px;
}

.article h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.article details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.article summary {
  cursor: pointer;
  font-weight: 750;
}

.article-cta,
.purchase-card {
  margin-top: 44px;
  padding: 24px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.site-footer {
  align-items: flex-start;
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 420px;
  margin: 6px 0 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .split-band,
  .product-band,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .tool-intro {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .hero,
  .band,
  .split-band,
  .product-band,
  .page-hero,
  .tool-layout,
  .article,
  .ad-slot {
    width: calc(100vw - 32px);
  }

  .site-header,
  .site-footer,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-copy,
  .hero-media {
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1,
  .article h1 {
    font-size: 1.88rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .eyebrow,
  .hero-lede,
  .page-hero p {
    overflow-wrap: anywhere;
  }

  .hero-lede,
  .page-hero p,
  .article header p,
  .tool-intro p {
    font-size: 1rem;
  }
}
