:root {
  --color-ink: #17212b;
  --color-muted: #647080;
  --color-canvas: #faf7f0;
  --color-surface: #ffffff;
  --color-paper: #fffdf8;
  --color-line: #ded6c8;
  --color-pine: #125749;
  --color-coral: #df5947;
  --color-sky: #2368d8;
  --color-marigold: #e7a928;
  --color-lavender: #c7b6ff;
  --radius-card: 8px;
  --radius-control: 6px;
  --shadow-soft: 0 18px 45px rgba(36, 28, 12, 0.10);
  --shadow-tight: 0 10px 24px rgba(36, 28, 12, 0.08);
  --space-section: 72px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.86) 0%, rgba(251, 250, 247, 0.94) 46%, #f8fbfb 100%);
}

a {
  color: var(--color-sky);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.90);
  border-bottom: 1px solid rgba(222, 214, 200, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
}

.brand {
  color: var(--color-ink);
  font-weight: 800;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(18, 87, 73, 0.72);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 42%, var(--color-pine) 42%, var(--color-pine) 58%, transparent 58%),
    linear-gradient(0deg, transparent 42%, var(--color-pine) 42%, var(--color-pine) 58%, transparent 58%),
    var(--color-paper);
  box-shadow: 2px 2px 0 rgba(231, 169, 40, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--color-muted);
  font-size: 14px;
  padding: 0;
}

.nav-links a {
  color: var(--color-muted);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--color-ink);
  border-bottom-color: rgba(18, 87, 73, 0.35);
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(23, 33, 43, 0.13);
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-tight);
}

.button.primary {
  border-color: var(--color-pine);
  background: linear-gradient(180deg, #176b5a 0%, var(--color-pine) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(18, 87, 73, 0.22);
}

.button.text {
  border-color: transparent;
  background: transparent;
  color: var(--color-sky);
}

.button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(47, 111, 237, 0.22);
  outline-offset: 2px;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  position: relative;
  padding: 54px 0 42px;
  overflow: hidden;
}

.hero::before {
  display: none;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(390px, 1.02fr);
  gap: 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.seo-workspace {
  position: relative;
  z-index: 1;
}

.tool-workspace {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(18, 87, 73, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--color-pine);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 48px;
  line-height: 54px;
  letter-spacing: 0;
}

.subhead {
  max-width: 680px;
  margin: 16px 0 20px;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 30px;
}

.seo-hero {
  padding-top: 42px;
}

.tool-hero {
  padding-top: 42px;
}

.seo-hero h1 {
  max-width: 820px;
  font-size: 44px;
  line-height: 50px;
}

.tool-hero h1 {
  max-width: 840px;
  font-size: 44px;
  line-height: 50px;
}

.seo-hero .subhead,
.tool-hero .subhead {
  max-width: 760px;
  margin-bottom: 18px;
}

.seo-hero .tool-card,
.tool-hero .tool-card {
  max-width: none;
}

.seo-hero .form-grid,
.tool-hero .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seo-hero .interests-field,
.seo-hero .avoid-field,
.tool-hero .interests-field,
.tool-hero .avoid-field {
  grid-column: span 2;
}

.micro-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.pill,
.bucket {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(222, 214, 200, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.pill.good,
.bucket.best {
  border-color: rgba(15, 91, 76, 0.25);
  background: rgba(15, 91, 76, 0.08);
  color: var(--color-pine);
}

.bucket.personal {
  border-color: rgba(233, 91, 74, 0.25);
  background: rgba(233, 91, 74, 0.08);
  color: #9e3026;
}

.bucket.last {
  border-color: rgba(233, 91, 74, 0.45);
  color: #9e3026;
}

.bucket.budget {
  border-color: rgba(246, 183, 60, 0.42);
  background: rgba(246, 183, 60, 0.16);
  color: #725015;
}

.bucket.experience {
  border-color: rgba(47, 111, 237, 0.25);
  background: rgba(47, 111, 237, 0.08);
  color: #1f4ea7;
}

.tool-card,
.panel,
.result-card,
.content-card,
.legal-shell {
  border: 1px solid rgba(222, 214, 200, 0.95);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.tool-card {
  position: relative;
  padding: 20px;
  overflow: hidden;
}

.tool-card::before,
.panel::before {
  display: none;
}

.tool-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.tool-card-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
}

.tool-kicker {
  margin: 0 0 3px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.quick-examples,
.interest-chips,
.compact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.quick-examples {
  margin: -4px 0 16px;
  color: var(--color-muted);
  font-size: 13px;
}

.interest-chips {
  margin-top: 8px;
}

.text-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(222, 214, 200, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--color-ink);
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
  text-decoration: none;
}

.text-chip:hover {
  border-color: rgba(18, 87, 73, 0.30);
  background: rgba(15, 91, 76, 0.06);
  text-decoration: none;
}

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

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

label {
  display: block;
  margin: 0 0 6px;
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(222, 214, 200, 0.98);
  border-radius: var(--radius-control);
  background: var(--color-paper);
  color: var(--color-ink);
  padding: 10px 12px;
}

select:hover,
input:hover,
textarea:hover {
  border-color: rgba(18, 87, 73, 0.35);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.segmented,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 38px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #fff;
  color: var(--color-ink);
  padding: 7px 11px;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  border-color: var(--color-pine);
  background: rgba(15, 91, 76, 0.08);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.helper,
.error-text,
.disclosure {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 20px;
}

.helper {
  margin-bottom: 0;
}

.quiet-note {
  max-width: 620px;
  margin-top: 10px;
  color: #7b8490;
  font-size: 12px;
}

.error-text {
  color: #a63126;
  font-weight: 700;
}

.panel {
  position: sticky;
  top: 96px;
  padding: 18px;
  max-height: calc(100vh - 118px);
  overflow: auto;
}

.results-section {
  padding-top: 48px;
}

.results-panel {
  position: static;
  max-height: none;
  overflow: visible;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.panel h2,
.section h2 {
  margin: 0;
  font-size: 28px;
  line-height: 36px;
}

.panel p,
.section p {
  color: var(--color-muted);
  line-height: 26px;
}

.section-intro {
  max-width: 680px;
  margin: 8px 0 22px;
}

.results {
  display: grid;
  gap: 12px;
}

.empty-state {
  border: 1px dashed rgba(18, 87, 73, 0.28);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.66);
  padding: 18px;
}

.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0 0 10px;
}

.empty-state ul {
  margin: 0;
  padding-left: 18px;
  color: var(--color-muted);
  line-height: 24px;
}

.result-card {
  position: relative;
  padding: 16px;
  box-shadow: none;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 255, 255, 0.96));
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 87, 73, 0.30);
  box-shadow: var(--shadow-tight);
}

.result-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
  background: var(--color-pine);
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.result-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 28px;
}

.affiliate-chip {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: capitalize;
}

.result-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 0;
}

.result-card dl div:nth-child(1),
.result-card dl div:nth-child(2),
.result-card dl div:nth-child(7) {
  grid-column: 1 / -1;
}

.result-card dt {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.result-card dd {
  margin: 0;
  color: var(--color-ink);
  line-height: 23px;
  font-size: 14px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.section {
  padding: var(--space-section) 0;
  border-top: 1px solid rgba(222, 214, 200, 0.72);
  background: rgba(255, 253, 248, 0.36);
}

.section:nth-of-type(even) {
  background: rgba(248, 251, 251, 0.72);
}

.grid-3,
.grid-2,
.link-grid {
  display: grid;
  gap: 14px;
}

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

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

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

.compact-links {
  display: flex;
  gap: 10px;
}

.link-chip {
  min-height: 38px;
}

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

.content-card {
  padding: 18px;
  box-shadow: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.content-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 87, 73, 0.26);
}

.content-card h3 {
  margin: 0 0 8px;
}

.inline-generator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(18, 87, 73, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18, 87, 73, 0.10), rgba(231, 169, 40, 0.11)),
    rgba(255, 255, 255, 0.72);
}

.caution {
  border-left: 4px solid var(--color-coral);
}

.faq details {
  border-top: 1px solid var(--color-line);
  padding: 16px 0;
}

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

.legal-shell {
  max-width: 800px;
  margin: 48px auto;
  padding: 28px;
}

.legal-shell h1 {
  font-size: 40px;
  line-height: 48px;
}

.site-footer {
  border-top: 1px solid rgba(222, 214, 200, 0.95);
  padding: 36px 0;
  background: #fffdf8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
}

.footer-grid h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: var(--color-muted);
}

.status {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(222, 214, 200, 0.95);
  background: var(--color-paper);
  color: var(--color-muted);
  font-size: 14px;
  line-height: 22px;
}

.status.error {
  border-color: rgba(233, 91, 74, 0.36);
  background: rgba(233, 91, 74, 0.08);
  color: #8b2b22;
}

.status.success {
  border-color: rgba(15, 91, 76, 0.28);
  background: rgba(15, 91, 76, 0.08);
  color: var(--color-pine);
}

.route-content .hero {
  padding-bottom: 34px;
}

@media (max-width: 920px) {
  .workspace,
  .grid-3,
  .grid-2,
  .comparison-grid,
  .link-grid,
  .footer-grid,
  .inline-generator {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  h1 {
    font-size: 34px;
    line-height: 40px;
  }

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

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

  .seo-hero .interests-field,
  .seo-hero .avoid-field,
  .tool-hero .interests-field,
  .tool-hero .avoid-field {
    grid-column: 1 / -1;
  }

  .shell {
    padding: 0 18px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero::before {
    display: none;
  }

  .panel {
    position: static;
    max-height: none;
  }

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

  .card-actions .button,
  .form-actions .button {
    width: 100%;
  }
}
