:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-strong: #f0f4f8;
  --text: #172026;
  --muted: #64717d;
  --line: #dbe2e8;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --amber: #b7791f;
  --rose: #be5267;
  --shadow: 0 18px 45px rgba(23, 32, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  background:
    linear-gradient(rgba(12, 18, 22, 0.58), rgba(12, 18, 22, 0.45)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
  min-height: min(68vh, 620px);
  display: flex;
  flex-direction: column;
}

.subpage-header {
  background:
    linear-gradient(135deg, rgba(12, 18, 22, 0.94), rgba(15, 118, 110, 0.84)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.nav-links,
.hero-actions,
.toolbar,
.category-tabs {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

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

.nav-links {
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.nav-links a,
.language-toggle {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.language-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
}

.nav-links a:focus-visible,
.language-toggle:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.24);
  outline-offset: 2px;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: auto auto 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: end;
  gap: 36px;
}

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

.hero .eyebrow {
  color: #7dd3c7;
}

.subpage-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 48px;
}

.subpage-hero .eyebrow {
  color: #7dd3c7;
}

.subpage-hero h1 {
  max-width: 760px;
}

.subpage-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.7;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.hero-text {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.62;
}

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

.button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.button.primary {
  background: #ffffff;
  color: #0b3b36;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.44);
  color: #ffffff;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.metric {
  display: block;
  font-size: 32px;
  font-weight: 850;
}

.metric-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.ad-band,
.section,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.ad-band {
  margin-top: -28px;
  padding: 18px 20px;
  border-radius: 8px;
  background: #173f3a;
  color: #fff;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.ad-band div,
.side-ad {
  display: grid;
  gap: 4px;
}

.ad-band span,
.side-ad span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.section {
  padding: 54px 0 0;
}

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

.section-heading p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.content-block {
  margin: 0 0 22px;
}

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

.block-heading h3 {
  margin: 0;
  font-size: 20px;
}

.block-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.overview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 16px;
  min-height: 158px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 100%;
}

.overview-card:hover,
.overview-card:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 14px 34px rgba(23, 32, 38, 0.08);
  transform: translateY(-2px);
}

.overview-card:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
}

.overview-count {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 28px;
  border-radius: 999px;
  background: #e7f2ef;
  color: var(--accent-dark);
  font-weight: 850;
  font-size: 13px;
}

.overview-card h4 {
  margin: 14px 0 8px;
  font-size: 16px;
}

.overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.pick-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  min-height: 128px;
  padding: 14px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 3px;
  align-items: start;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pick-card:hover,
.pick-card:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 14px 34px rgba(23, 32, 38, 0.08);
  transform: scale(1.02);
}

.pick-card:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  outline-offset: 2px;
}

.pick-card img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 5px;
  grid-row: span 3;
}

.pick-card span {
  font-weight: 850;
}

.pick-card small {
  color: var(--accent-dark);
  font-weight: 750;
}

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

.toolbar {
  gap: 14px;
  margin-bottom: 16px;
}

.search-field,
.select-field {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  gap: 2px;
  padding: 8px 12px;
}

.search-field {
  flex: 1;
}

.search-field span,
.select-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.category-tabs {
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tab-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tab-button:hover,
.tab-button:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 8px 20px rgba(23, 32, 38, 0.08);
  transform: scale(1.06);
}

.tab-button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  outline-offset: 2px;
}

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

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

.tool-card,
.news-card,
.monetize-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(23, 32, 38, 0.04);
}

.tool-card {
  min-height: 232px;
  display: flex;
  flex-direction: column;
  color: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 16px 38px rgba(23, 32, 38, 0.1);
  transform: scale(1.02);
}

.tool-card:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  outline-offset: 2px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tool-logo {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  color: var(--accent-dark);
  font-weight: 850;
  overflow: hidden;
}

.tool-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.tool-logo span {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
}

.badge {
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.tool-card p,
.news-card p,
.monetize-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 16px;
}

.tag {
  border-radius: 999px;
  background: #e7f2ef;
  color: #12665f;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}


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

.news-layout .section-heading {
  grid-column: 1 / -1;
}

.news-grid {
  display: grid;
  gap: 12px;
}

.news-page {
  padding-top: 34px;
}

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

.news-card {
  display: grid;
  gap: 8px;
}

.seo-section {
  scroll-margin-top: 20px;
}

.static-category-grid,
.topic-grid,
.static-card-grid {
  display: grid;
  gap: 12px;
}

.static-category-grid,
.topic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.static-category-grid a,
.topic-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-dark);
  min-height: 58px;
  padding: 14px;
  display: flex;
  align-items: center;
  font-weight: 850;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.static-category-grid a:hover,
.static-category-grid a:focus-visible,
.topic-card:hover,
.topic-card:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 14px 34px rgba(23, 32, 38, 0.08);
  transform: translateY(-2px);
}

.topic-card {
  min-height: 132px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
}

.topic-card span {
  color: var(--accent-dark);
  font-weight: 850;
}

.topic-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
}

.topic-page {
  padding-top: 42px;
}

.topic-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf7f5;
  margin-bottom: 24px;
  padding: 18px;
}

.topic-summary span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.topic-summary p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.topic-sections article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.topic-sections h2 {
  font-size: 24px;
}

.topic-sections p {
  color: var(--muted);
  line-height: 1.75;
}

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

.static-tool-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(23, 32, 38, 0.04);
}

.static-tool-card h3 a {
  color: var(--accent-dark);
}

.static-tool-card p {
  color: var(--muted);
  line-height: 1.65;
}

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

.guide-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 32, 38, 0.04);
  padding: 18px;
  color: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.guide-card:hover,
.guide-card:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 14px 34px rgba(23, 32, 38, 0.08);
  transform: translateY(-2px);
}

.guide-card:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  outline-offset: 2px;
}

.guide-card span {
  color: var(--accent-dark);
  font-weight: 850;
}

.guide-card p {
  color: var(--muted);
  line-height: 1.68;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  color: #ffffff;
}

.faq-list {
  display: grid;
  gap: 10px;
}

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

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

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.news-meta {
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
}

.side-ad {
  align-self: start;
  position: sticky;
  top: 16px;
  min-height: 260px;
  border-radius: 8px;
  background: #2f4a60;
  color: #fff;
  padding: 18px;
}

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

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 72px;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-dark);
}

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

.legal-page article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 32, 38, 0.04);
  margin-bottom: 14px;
  padding: 20px;
}

.legal-page h2,
.contact-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.legal-page p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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


@media (max-width: 900px) {
  .hero,
  .news-layout,
  .monetize-grid,
  .news-page .news-grid,
  .static-card-grid,
  .guide-grid,
  .legal-grid,
  .topic-sections {
    grid-template-columns: 1fr;
  }

  .site-header {
    min-height: auto;
  }

  .hero {
    padding-top: 56px;
  }

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

  .overview-grid,
  .pick-strip,
  .static-category-grid,
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-ad {
    position: static;
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 8px;
    margin-left: auto;
  }

  .nav-links a {
    display: none;
  }

  .language-toggle {
    margin-left: 0;
  }

  .hero {
    gap: 22px;
    margin-bottom: 32px;
    padding-top: 42px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-text {
    font-size: 15px;
  }

  h2 {
    font-size: 28px;
  }

  .toolbar,
  .block-heading,
  .ad-band,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

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

  .overview-grid,
  .pick-strip,
  .static-category-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }
}
