:root {
  --ink: #10161d;
  --muted: #5f6b76;
  --line: #e1e7ec;
  --soft: #f7faf9;
  --paper: #ffffff;
  --teal: #0a9994;
  --teal-dark: #08736f;
  --accent: #f8bf17;
  --navy: #17212b;
  --shadow: 0 16px 38px rgba(23, 33, 43, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  min-height: 70px;
  padding: 14px clamp(18px, 5vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 950;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 31px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.brand-mark i {
  border: 3px solid var(--teal);
  border-radius: 3px 10px 3px 3px;
  background: #eafaf8;
  box-shadow: inset 0 -4px 0 rgba(10, 153, 148, .12);
}

.brand-mark i:last-child {
  transform: scaleX(-1);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 850;
}

.top-nav a {
  padding: 10px 12px;
  border-radius: 8px;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: #f0f6f5;
  outline: none;
}

.search-hero {
  padding: clamp(34px, 5vw, 58px) clamp(18px, 5vw, 56px) 26px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(248, 191, 23, .13), transparent 22%),
    radial-gradient(circle at 86% 8%, rgba(10, 153, 148, .11), transparent 24%),
    #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 15px;
  font-weight: 950;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 4.8vw, 64px);
  line-height: 1.08;
  font-weight: 950;
}

.search-box {
  width: min(900px, 100%);
  margin: 0 auto;
}

.search-box label {
  display: block;
  margin-bottom: 8px;
  color: #333d47;
  font-weight: 900;
  text-align: left;
}

.search-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr 112px;
  border: 3px solid var(--teal);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-row input {
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 0 22px;
  font: inherit;
  font-size: 20px;
  outline: none;
}

.search-row button {
  border: 0;
  background: var(--teal);
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
}

.search-row button:hover,
.search-row button:focus-visible {
  background: var(--teal-dark);
  outline: none;
}

.chips {
  width: min(900px, 100%);
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chips button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #25313b;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(23, 33, 43, .05);
}

.chips button:hover,
.chips button:focus-visible {
  border-color: rgba(10, 153, 148, .42);
  color: var(--teal-dark);
  outline: none;
}

.featured-tool {
  width: min(1180px, calc(100% - 36px));
  margin: 22px auto 14px;
  padding: 20px;
  display: grid;
  grid-template-columns: 86px 1fr auto auto;
  align-items: center;
  gap: 18px;
  border: 2px solid rgba(248, 191, 23, .72);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8df, #fff);
  box-shadow: var(--shadow);
  position: relative;
}

.badge {
  position: absolute;
  left: 18px;
  top: -14px;
  padding: 6px 11px;
  border-radius: 6px;
  background: var(--accent);
  font-weight: 950;
}

.feature-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  background: var(--accent);
}

.feature-icon i {
  width: 6px;
  border-radius: 999px;
  background: #10161d;
}

.feature-icon i:nth-child(1) { height: 24px; }
.feature-icon i:nth-child(2) { height: 38px; }
.feature-icon i:nth-child(3) { height: 28px; }

.featured-tool h2 {
  margin: 0 0 8px;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.12;
}

.featured-tool p:last-child {
  margin: 0;
  color: #39444e;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 750;
}

.free-label {
  padding: 12px 16px;
  border-radius: 8px;
  background: #e5f7f3;
  color: var(--teal-dark);
  font-weight: 950;
  white-space: nowrap;
}

.primary-link {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent);
  color: #121212;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 12px 22px rgba(248, 191, 23, .25);
}

.search-layout {
  width: min(1180px, calc(100% - 36px));
  margin: 12px auto 56px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filters,
.results-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 33, 43, .05);
}

.filters {
  padding: 18px;
  position: sticky;
  top: 14px;
}

.filter-block + .filter-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.filter-block h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.filter-block label {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #28333d;
  font-weight: 800;
}

.filter-block input {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
}

.results-panel {
  padding: 18px;
}

.results-head {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.results-head h2 {
  margin: 0;
  font-size: 28px;
}

.reset-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #26313b;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.reset-button:hover,
.reset-button:focus-visible {
  border-color: rgba(10, 153, 148, .45);
  color: var(--teal-dark);
  outline: none;
}

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

.result-card {
  min-height: 214px;
  padding: 18px;
  display: grid;
  grid-template-columns: 58px 1fr;
  grid-template-rows: auto auto auto 1fr auto;
  column-gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 33, 43, .055);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.result-card:hover,
.result-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(10, 153, 148, .40);
  box-shadow: 0 16px 34px rgba(23, 33, 43, .10);
  outline: none;
}

.result-card.is-featured {
  border-color: rgba(248, 191, 23, .70);
  background: linear-gradient(180deg, #fff9e5, #fff);
}

.card-icon {
  grid-row: 1 / 6;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 950;
}

.card-icon.voice { background: #ffe49c; color: #24210e; }
.card-icon.text { background: #e7f2ff; color: #2465a6; }
.card-icon.calc { background: #e6f7ea; color: #17743f; }
.card-icon.seo { background: #e9f4f2; color: var(--teal-dark); }
.card-icon.biz { background: #fff0c9; color: #966800; }

.tag {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf7f5;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 950;
}

.result-card strong {
  margin-top: 9px;
  font-size: 20px;
  line-height: 1.28;
}

.result-card small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
}

.result-card b {
  margin-top: 12px;
  color: var(--teal-dark);
  font-size: 16px;
}

.empty-state {
  margin-top: 16px;
  padding: 22px;
  border: 1px dashed #ccd7dc;
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
}

.empty-state strong {
  font-size: 20px;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.is-hidden {
  display: none !important;
}

.site-footer {
  padding: 30px clamp(18px, 5vw, 56px) 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  border-top: 1px solid var(--line);
  color: #4e5a65;
  font-weight: 850;
}

@media (max-width: 1040px) {
  .search-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .filter-block + .filter-block {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

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

  .featured-tool {
    grid-template-columns: 72px 1fr;
  }

  .free-label,
  .featured-tool .primary-link {
    grid-column: 2;
    width: max-content;
  }
}

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

  .brand {
    font-size: 24px;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .top-nav a {
    flex: 0 0 auto;
  }

  .search-hero {
    padding-left: 16px;
    padding-right: 16px;
    text-align: left;
  }

  h1 {
    font-size: 40px;
  }

  .search-row {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .search-row input {
    min-height: 62px;
    padding: 0 16px;
    font-size: 17px;
  }

  .search-row button {
    min-height: 56px;
  }

  .chips {
    justify-content: flex-start;
  }

  .featured-tool,
  .search-layout {
    width: min(100% - 24px, 640px);
  }

  .featured-tool {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .feature-icon {
    width: 64px;
    height: 64px;
  }

  .free-label,
  .featured-tool .primary-link {
    grid-column: auto;
    width: 100%;
    justify-content: center;
  }

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

  .results-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .result-card {
    min-height: 188px;
  }
}
