:root {
  --ink: #141712;
  --muted: #62695e;
  --line: #d8ddd1;
  --paper: #f8faf2;
  --surface: #ffffff;
  --jade: #006b5c;
  --cobalt: #2454e6;
  --orange: #f25d27;
  --lime: #c8e64a;
  --shadow: 0 18px 40px rgba(20, 23, 18, 0.1);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(20, 23, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 23, 18, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: Aptos, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 242, 0.92);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--lime);
  font-size: 0.78rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.top-nav a {
  padding: 8px 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.92rem;
}

.top-nav a:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  padding: 34px 28px 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-copy {
  min-height: 365px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 38px;
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: 10px 10px 0 var(--jade);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Iowan Old Style", "Sitka Text", Georgia, serif;
  line-height: 1.03;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 3.45rem;
  font-weight: 780;
}

h2 {
  margin-bottom: 12px;
  font-size: 2.2rem;
}

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

.lead {
  max-width: 670px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.tools-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

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

.button.ghost {
  background: var(--lime);
}

.market-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 365px;
  padding: 24px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(36, 84, 230, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff, #edf8f3);
}

.panel-topline,
.route-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-topline strong {
  color: var(--ink);
}

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

.signal-grid article {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.signal-grid b {
  display: block;
  font-family: "Iowan Old Style", "Sitka Text", Georgia, serif;
  font-size: 2.12rem;
  line-height: 1;
}

.signal-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.route-strip {
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.route-strip i {
  flex: 1;
  height: 2px;
  background: var(--ink);
}

.section-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 28px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.stats-row div {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.stats-row strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.section-heading.compact {
  margin-bottom: 14px;
}

.tool-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filter-rail {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.search-box,
.submit-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.search-box input,
.submit-form input,
.submit-form select,
.submit-form textarea,
.tools-toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

.search-box input,
.submit-form input,
.submit-form select,
.tools-toolbar select {
  min-height: 42px;
  padding: 9px 10px;
}

.submit-form textarea {
  padding: 10px;
  resize: vertical;
}

.rail-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-list {
  display: grid;
  gap: 6px;
}

.category-button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.category-button.is-active {
  border-color: var(--ink);
  background: var(--lime);
  font-weight: 800;
}

.rail-note {
  padding: 12px;
  border-left: 4px solid var(--orange);
  background: #fff8f4;
}

.rail-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.tools-area {
  min-width: 0;
}

.tools-toolbar {
  justify-content: space-between;
  margin-bottom: 14px;
}

.tools-toolbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.tools-toolbar select {
  max-width: 230px;
}

.toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.trust-filter {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: #fff;
}

.trust-filter button {
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.trust-filter button:last-child {
  border-right: 0;
}

.trust-filter button:hover,
.trust-filter button:focus-visible {
  background: #f7f8f2;
  color: var(--ink);
  outline: none;
}

.trust-filter button.is-active {
  background: var(--ink);
  color: var(--surface);
}

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

.tool-card,
.page-list article,
.pricing-grid article,
.detail-main,
.detail-side,
.submit-form,
.price-card {
  border: 1px solid var(--line);
  background: var(--surface);
}

.tool-card {
  display: grid;
  min-height: 245px;
  padding: 16px;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  cursor: pointer;
}

.tool-card:hover,
.tool-card:focus-visible,
.tool-card.is-selected {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  outline: none;
}

.tool-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.status-stack {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.tool-logo {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--lime);
  font-size: 0.72rem;
  font-weight: 900;
}

.tool-card h3 {
  margin: 12px 0 6px;
  font-size: 1.08rem;
}

.tool-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  background: #f7f8f2;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.tag.high {
  border-color: var(--jade);
  color: var(--jade);
  background: #e9f7f0;
}

.tag.monetized {
  border-color: var(--orange);
  color: var(--orange);
  background: #fff2ec;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  background: #f7f8f2;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.trust-badge.verified {
  border-color: var(--jade);
  background: #e9f7f0;
  color: var(--jade);
}

.trust-badge.pending {
  background: #f1f1eb;
}

.trust-badge.route {
  border-color: var(--cobalt);
  background: #eef2ff;
  color: var(--cobalt);
}

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

.detail-main,
.detail-side {
  padding: 20px;
}

.detail-main dl {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px 18px;
  margin: 0;
}

.detail-main dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-main dd {
  margin: 0;
}

.detail-main a {
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.detail-side ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.conversion-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.conversion-card h3 {
  margin-bottom: 8px;
  font-family: "Iowan Old Style", "Sitka Text", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.08;
}

.conversion-card p,
.disclosure-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.conversion-button {
  width: 100%;
  margin: 4px 0 14px;
}

.conversion-meta {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 7px 10px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.conversion-meta dt {
  color: var(--muted);
  font-weight: 900;
}

.conversion-meta dd {
  margin: 0;
}

.disclosure-card {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.disclosure-card b {
  display: block;
  margin-bottom: 6px;
}

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

.page-list article {
  min-height: 172px;
  padding: 15px;
}

.page-card-link {
  display: block;
}

.page-card-link article {
  height: 100%;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.page-card-link:hover article,
.page-card-link:focus-visible article {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  outline: none;
}

.page-list h3 {
  font-size: 1rem;
  line-height: 1.35;
}

.page-list p {
  color: var(--muted);
  font-size: 0.86rem;
}

.commerce-band,
.policy-band {
  max-width: 1180px;
  margin: 24px auto;
  padding: 28px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--jade);
  color: #fff;
}

.commerce-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: center;
}

.commerce-band .eyebrow,
.policy-band .eyebrow {
  color: var(--lime);
}

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

.price-card {
  padding: 18px;
  color: var(--ink);
}

.price-card strong {
  display: block;
  margin: 2px 0 8px;
  font-size: 2.6rem;
  line-height: 1;
}

.price-card p {
  color: var(--muted);
}

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

.pricing-grid article {
  padding: 18px;
}

.pricing-grid span,
.price-card span {
  color: var(--muted);
  font-weight: 800;
}

.pricing-grid strong {
  display: block;
  margin: 6px 0;
  font-size: 2rem;
}

.pricing-grid p {
  color: var(--muted);
}

.submit-shell {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 20px;
}

.submit-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--jade);
  font-weight: 800;
}

.policy-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  background: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 34px;
  color: var(--muted);
  font-size: 0.88rem;
}

.article-page {
  max-width: 1050px;
  margin: 0 auto;
  padding: 36px 28px;
}

.article-hero {
  padding: 34px 38px;
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--jade);
}

.article-hero h1 {
  max-width: 900px;
  font-size: 3.3rem;
}

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

.article-card,
.article-tool {
  border: 1px solid var(--line);
  background: var(--surface);
}

.article-card {
  padding: 20px;
}

.article-card p:last-child,
.article-card ul:last-child {
  margin-bottom: 0;
}

.article-card ul,
.source-list {
  margin-top: 0;
  padding-left: 20px;
}

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

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

.article-tool {
  display: grid;
  gap: 8px;
  padding: 17px;
}

.article-tool h3 {
  margin-top: 8px;
  font-size: 1.24rem;
}

.article-tool p {
  margin-bottom: 0;
}

.source-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1040px) {
  h1 {
    font-size: 3rem;
  }

  .hero-band,
  .tool-layout,
  .detail-grid,
  .commerce-band,
  .submit-shell,
  .article-grid,
  .article-tool-grid {
    grid-template-columns: 1fr;
  }

  .filter-rail {
    position: static;
  }

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

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero-band,
  .section-shell,
  .commerce-band,
  .policy-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy,
  .market-panel {
    min-height: auto;
  }

  .hero-copy {
    padding: 24px;
    box-shadow: 6px 6px 0 var(--jade);
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .stats-row,
  .signal-grid,
  .tool-grid,
  .page-list,
  .pricing-grid,
  .policy-band {
    grid-template-columns: 1fr;
  }

  .detail-main dl {
    grid-template-columns: 1fr;
  }

  .tools-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-controls,
  .tools-toolbar select {
    max-width: none;
    width: 100%;
  }

  .toolbar-controls {
    justify-content: stretch;
  }

  .trust-filter {
    width: 100%;
  }

  .trust-filter button {
    flex: 1;
    min-width: 0;
  }

  .site-footer {
    flex-direction: column;
    padding-left: 16px;
    padding-right: 16px;
  }

  .article-page {
    padding: 26px 16px;
  }

  .article-hero {
    padding: 24px;
    box-shadow: 6px 6px 0 var(--jade);
  }

  .article-hero h1 {
    font-size: 2.12rem;
  }
}
