:root {
  --ink: #17202a;
  --muted: #64707d;
  --line: #d8dee6;
  --paper: #fbfcfd;
  --surface: #ffffff;
  --accent: #0f766e;
  --accent-2: #b45309;
  --accent-soft: #e8f5f3;
  --blue-soft: #edf4ff;
  --shadow: 0 18px 60px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 253, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

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

.top-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: 640px;
  padding: clamp(46px, 8vw, 100px) clamp(18px, 4vw, 56px) 54px;
}

.hero h1,
.section h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section h2 {
  font-size: clamp(30px, 3vw, 48px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-text {
  max-width: 700px;
  color: var(--muted);
  font-size: 19px;
}

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

.button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  background: var(--surface);
}

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

.button.secondary {
  background: var(--blue-soft);
}

.button.ghost {
  background: transparent;
}

.hero-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.panel-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.preview-label {
  color: var(--accent);
  font-weight: 800;
}

.preview-line {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.preview-line.strong {
  color: var(--ink);
  font-weight: 800;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.preview-stats span {
  padding: 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.ad-band,
.ad-rail {
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px dashed #a8b2bd;
  border-radius: 8px;
  color: var(--muted);
  background: #f3f6f8;
}

.adsbygoogle {
  width: 100%;
  min-height: 64px;
}

.ad-rail .adsbygoogle {
  min-height: 220px;
}

.ad-band {
  min-height: 92px;
  margin: 0 clamp(18px, 4vw, 56px);
}

.ad-rail {
  min-height: 250px;
  margin-top: 24px;
}

.section {
  padding: 76px clamp(18px, 4vw, 56px);
}

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

.tool-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 12px;
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.tool-card {
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 14px 34px rgba(23, 32, 42, 0.09);
}

.tool-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 850;
}

.tool-card strong {
  display: block;
  font-size: 18px;
}

.tool-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.tab {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  font-weight: 750;
}

.tab.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.tool-info,
.workspace,
.article-grid article,
.feature-list > div,
.content-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tool-info,
.workspace {
  padding: 22px;
}

.tool-info h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.tool-info p {
  margin: 0;
  color: var(--muted);
}

.field-label {
  display: block;
  margin: 0 0 8px;
  font-weight: 800;
}

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

textarea:focus,
input:focus,
select:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.stat strong {
  display: block;
  font-size: 24px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 28px;
  align-items: start;
}

.revenue-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 28px clamp(18px, 4vw, 56px) 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.revenue-strip h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.revenue-strip p {
  max-width: 760px;
  color: var(--muted);
}

.revenue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

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

.offer-card,
.pricing-card,
.check-card,
.revenue-note {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.revenue-note {
  margin: 28px 0;
  background: var(--accent-soft);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(23, 32, 42, 0.09);
}

.price {
  margin: 10px 0;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.split-section p,
.article-grid p,
.content-page p,
.content-page li {
  color: var(--muted);
}

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

.feature-list > div,
.article-grid article,
.faq-grid details {
  padding: 20px;
}

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

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

.faq-grid details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.article-grid h3,
.feature-list h3 {
  margin-top: 0;
}

.article-grid a,
.content-page a:not(.brand):not(.button),
.guide-list a {
  color: var(--accent);
  font-weight: 800;
}

.guide-index {
  max-width: 1180px;
}

.guide-index section {
  margin-top: 42px;
}

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

.article-ad {
  margin: 26px 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.content-page {
  max-width: 920px;
  margin: 54px auto;
  padding: clamp(22px, 5vw, 44px);
}

.content-page h1 {
  margin-top: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
}

@media (max-width: 960px) {
  .hero,
  .tool-shell,
  .split-section,
  .revenue-strip {
    grid-template-columns: 1fr;
  }

  .article-grid,
  .tool-card-grid,
  .faq-grid,
  .offer-grid,
  .pricing-grid,
  .checklist-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .revenue-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .preview-stats,
  .dynamic-controls,
  .article-grid,
  .tool-card-grid,
  .faq-grid,
  .offer-grid,
  .pricing-grid,
  .checklist-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
