:root {
  --bg: #f7faf9;
  --surface: #ffffff;
  --surface-2: #eef6f4;
  --ink: #182320;
  --muted: #5b6c67;
  --line: #dbe7e3;
  --brand: #147d72;
  --brand-dark: #0d5f58;
  --accent: #ef8d36;
  --focus: #2e9cca;
  --shadow: 0 14px 35px rgba(24, 35, 32, 0.08);
  --radius: 8px;
}

* {
  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:
    radial-gradient(circle at 8% 10%, rgba(20, 125, 114, 0.08), transparent 26%),
    linear-gradient(180deg, #fbfefd 0%, var(--bg) 420px);
  line-height: 1.5;
}

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

img,
svg {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(20, 125, 114, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.footer a:hover {
  color: var(--brand-dark);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  gap: 58px;
  align-items: center;
}

.hero-centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-centered .lede {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  max-width: 760px;
}

.tool-page h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.05rem;
}

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

.lede {
  margin-top: 18px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 680px;
}

.hero-search {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
}

.search-section {
  padding-top: 16px;
}

.hero-search-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.search-panel,
.calculator-panel,
.result-panel,
.ad-slot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-panel {
  padding: 20px;
}

.search-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(46, 156, 202, 0.25);
  border-color: var(--focus);
}

.button {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  padding: 0 16px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.button:hover {
  background: var(--brand-dark);
}

.quick-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.quick-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: var(--surface-2);
  color: var(--ink);
}

.section {
  padding: 52px 0;
}

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

.section-head p {
  max-width: 620px;
}

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

.category-card,
.tool-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.category-card:hover,
.tool-card:hover {
  border-color: var(--accent, rgba(20, 125, 114, 0.45));
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(24, 35, 32, 0.07);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #dff1ed;
  font-weight: 900;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 2px 9px;
  color: #7b420d;
  background: #fff2df;
  font-size: 0.78rem;
  font-weight: 800;
}

.tool-card[data-accent] {
  --accent: #147d72;
  --accent-soft: #dff1ed;
  --accent-ink: #075c54;
  --tag-bg: #fff2df;
  --tag-ink: #7b420d;
}

.tool-card[data-accent] .icon {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.tool-card[data-accent] .tag {
  background: var(--tag-bg);
  color: var(--tag-ink);
}

.tool-card[data-accent] .title-accent {
  color: var(--accent);
}

.tool-card[data-accent]:hover {
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 12%, transparent);
}

.tool-card[data-accent="instagram"] {
  --accent: #c13584;
  --accent-soft: #fde7f3;
  --accent-ink: #8d1f5f;
  --tag-bg: #fff0f8;
  --tag-ink: #9d236b;
}

.tool-card[data-accent="youtube"] {
  --accent: #d72626;
  --accent-soft: #ffe7e7;
  --accent-ink: #a61515;
  --tag-bg: #fff0f0;
  --tag-ink: #a61515;
}

.tool-card[data-accent="tiktok"] {
  --accent: #008f9c;
  --accent-soft: #dcf8fb;
  --accent-ink: #00616b;
  --tag-bg: #e9fbff;
  --tag-ink: #00616b;
}

.tool-card[data-accent="ads"] {
  --accent: #2367d1;
  --accent-soft: #e5efff;
  --accent-ink: #174a98;
  --tag-bg: #edf4ff;
  --tag-ink: #174a98;
}

.tool-card[data-accent="growth"] {
  --accent: #138a43;
  --accent-soft: #e0f5e8;
  --accent-ink: #0e6331;
  --tag-bg: #ecf9ef;
  --tag-ink: #0e6331;
}

.tool-card[data-accent="roi"] {
  --accent: #0f766e;
  --accent-soft: #ddf4f1;
  --accent-ink: #0a5d56;
  --tag-bg: #e9f8f5;
  --tag-ink: #0a5d56;
}

.tool-card[data-accent="creator"] {
  --accent: #8b5a12;
  --accent-soft: #fff1d8;
  --accent-ink: #6f4308;
  --tag-bg: #fff5e5;
  --tag-ink: #6f4308;
}

.tool-card[data-accent="leads"],
.tool-card[data-accent="social"] {
  --accent: #6f5bd8;
  --accent-soft: #ece9ff;
  --accent-ink: #4d3aa8;
  --tag-bg: #f2efff;
  --tag-ink: #4d3aa8;
}

.category-hero {
  padding: 44px 0 22px;
}

.category-hero .lede {
  max-width: 760px;
}

.empty-note {
  border: 1px dashed #bfd4ce;
  border-radius: var(--radius);
  padding: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

.note-panel {
  margin-top: 18px;
  border: 1px solid #f3d7b5;
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #77450f;
  background: #fff8ef;
}

.seo-band {
  background: #edf4f2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.seo-copy {
  max-width: 850px;
}

.seo-copy p + p,
.article p + p {
  margin-top: 12px;
}

.footer {
  padding: 30px 0;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
  padding: 30px 0 56px;
}

.calculator-panel {
  padding: clamp(20px, 3vw, 30px);
}

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

.field-full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 750;
}

label span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.result-panel {
  margin-top: 14px;
  padding: 18px;
  background: #fbfefd;
}

.result-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.result-value {
  margin-top: 4px;
  color: var(--brand-dark);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.result-detail {
  margin-top: 8px;
}

.result-detail:empty {
  display: none;
}

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

.result-extra-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #ffffff;
}

.result-extra-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-extra-value {
  display: block;
  margin-top: 4px;
  color: var(--brand-dark);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.side-panel {
  display: grid;
  gap: 14px;
}

.ad-slot {
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #7f8d88;
  background: repeating-linear-gradient(135deg, #fff, #fff 12px, #f5faf8 12px, #f5faf8 24px);
  text-align: center;
}

.ad-slot small {
  display: block;
  margin-top: 4px;
}

.article {
  display: grid;
  gap: 22px;
  padding-bottom: 46px;
}

.article section,
.faq {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.article h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.formula {
  display: block;
  margin-top: 12px;
  border-left: 4px solid var(--accent);
  padding: 12px 14px;
  background: #fff8ef;
  color: var(--ink);
  font-weight: 800;
  overflow-x: auto;
}

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

.faq details + details {
  margin-top: 10px;
}

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

.faq details p {
  margin-top: 8px;
}

.hidden {
  display: none !important;
}

@media (max-width: 820px) {
  .nav {
    min-height: 62px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-grid,
  .tool-layout {
    grid-template-columns: 1fr;
  }

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

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

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

  .search-row {
    flex-direction: column;
  }
}
