:root {
  --ink: #10161d;
  --muted: #5c6873;
  --line: #e2e8ed;
  --soft: #f7faf9;
  --paper: #ffffff;
  --teal: #078f88;
  --teal-dark: #066f69;
  --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;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.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(7, 143, 136, .12);
}

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

.top-nav {
  margin-left: auto;
  display: flex;
  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;
}

.quality-badge {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #bfe3df;
  border-radius: 8px;
  background: #eef9f7;
  color: var(--teal-dark);
  font-weight: 950;
  white-space: nowrap;
}

.hero {
  padding: clamp(36px, 5vw, 64px) clamp(18px, 5vw, 56px) 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(248, 251, 251, .94), rgba(255, 255, 255, .94)),
    radial-gradient(circle at 14% 22%, rgba(248, 191, 23, .16), transparent 22%),
    radial-gradient(circle at 86% 14%, rgba(7, 143, 136, .13), transparent 24%);
}

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

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.08;
  font-weight: 950;
}

.lead {
  width: min(820px, 100%);
  margin: 0 auto 24px;
  color: #2f3a44;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.7;
  font-weight: 750;
}

.article-search {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: left;
}

.article-search label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

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

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

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

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

.intent-strip {
  width: min(980px, calc(100% - 36px));
  margin: 22px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.intent-strip button {
  min-height: 96px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(23, 33, 43, .055);
}

.intent-strip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 750;
}

.intent-strip button:hover,
.intent-strip button:focus-visible {
  border-color: rgba(7, 143, 136, .42);
  color: var(--teal-dark);
  outline: none;
}

.feature-article {
  width: min(1120px, calc(100% - 36px));
  margin: 16px auto 20px;
  padding: 20px;
  display: grid;
  grid-template-columns: 76px 1fr 220px;
  gap: 18px;
  align-items: center;
  border: 2px solid rgba(248, 191, 23, .72);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff9e8, #fff);
  box-shadow: var(--shadow);
  position: relative;
}

.feature-mark {
  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: #e7f7f5;
}

.feature-icon i {
  width: 6px;
  border-radius: 999px;
  background: var(--teal);
}

.feature-icon i:nth-child(1) { height: 25px; }
.feature-icon i:nth-child(2) { height: 40px; }
.feature-icon i:nth-child(3) { height: 30px; }

.feature-article h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
}

.feature-article p:last-child {
  margin: 0;
  color: #35404a;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 750;
}

.feature-actions {
  display: grid;
  gap: 10px;
}

.primary-link,
.secondary-link,
.article-card a {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 950;
}

.primary-link {
  background: var(--teal);
  color: #fff;
}

.secondary-link,
.article-card a:first-child {
  border: 1px solid var(--line);
  background: #fff;
}

.article-card a:last-child {
  background: var(--teal);
  color: #fff;
}

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

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

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

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

.filter {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #26313b;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.filter:last-of-type { border-bottom: 0; }

.filter.is-active {
  border-radius: 6px;
  background: #fff8df;
  color: var(--teal-dark);
}

.filter b {
  color: #73808a;
}

.quality-note {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #eff8f7;
}

.quality-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
}

.quality-note p {
  margin: 0;
  color: #40505c;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 750;
}

.article-panel {
  padding: 18px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 30px;
}

.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;
}

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

.article-card {
  min-height: 280px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 33, 43, .055);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 19px;
  font-weight: 950;
}

.voice { background: #e3f6f4; color: var(--teal-dark); }
.text { background: #e8f2ff; color: #2367a6; }
.biz { background: #fff1ca; color: #926600; }
.calc { background: #e8f6ea; color: #1b743f; }
.mark { background: #eef1fb; color: #3155a4; }

.article-card small {
  width: max-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eff8f7;
  color: var(--teal-dark);
  font-weight: 950;
}

.article-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 750;
}

.article-card div {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.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; }

.quality-strip {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 56px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #bfe3df;
  border-radius: 8px;
  background: #eff8f7;
}

.quality-strip strong {
  color: var(--teal-dark);
  font-size: 20px;
}

.quality-strip p {
  margin: 0;
  color: #33414a;
  line-height: 1.65;
  font-weight: 750;
}

.quality-strip a {
  color: var(--teal-dark);
  font-weight: 950;
}

.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;
}

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

@media (max-width: 1080px) {
  .feature-article {
    grid-template-columns: 76px 1fr;
  }

  .feature-actions {
    grid-column: 2;
    grid-template-columns: 1fr 1fr;
  }

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

  .filters {
    position: static;
  }

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

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

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

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

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

  .quality-badge { width: 100%; justify-content: center; }

  .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: 60px;
    padding: 0 16px;
    font-size: 17px;
  }

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

  .intent-strip,
  .feature-article,
  .layout,
  .quality-strip {
    width: min(100% - 24px, 640px);
  }

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

  .feature-article {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .feature-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

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

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

  .article-card {
    min-height: 250px;
  }
}
