/* DNAYourDog.com — compact editorial styles (mobile-first) */
:root {
  --ink: #1a1f26;
  --ink-soft: #2c333d;
  --muted: #5c6570;
  --muted-light: #8a939e;
  --line: #e4e7eb;
  --line-strong: #d0d5db;
  --paper: #ffffff;
  --paper-alt: #f6f7f9;
  --accent: #0f6b6b;          /* deep teal */
  --accent-hover: #0a5252;
  --accent-soft: #e8f3f3;
  --accent-ink: #0c5555;
  --green: #1a7a4c;
  --red: #b42318;
  --amber-bg: #faf6ef;
  --amber-line: #e8dcc8;
  --amber-ink: #6b5420;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: none;
  --max: 1000px;
  --prose: 760px;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-hover); }
h1, h2, h3, h4 {
  font-family: var(--sans);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.5rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.45rem, 3.2vw, 1.85rem); }
h2 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.85rem; }
ul { margin: 0 0 0.85rem; padding-left: 1.15rem; }
.container { width: min(100% - 1.75rem, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 0.5rem 0; min-height: 52px;
}
.logo-link {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--ink); font-weight: 700;
}
.logo-link img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.logo-text { font-size: 0.95rem; letter-spacing: -0.02em; }
.nav { display: none; gap: 1rem; align-items: center; }
.nav a {
  color: var(--muted); font-weight: 500; text-decoration: none; font-size: 0.875rem;
}
.nav a:hover { color: var(--accent); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
@media (min-width: 768px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}
.nav.is-open {
  display: flex; flex-direction: column; position: absolute;
  top: 100%; left: 0; right: 0; background: #fff;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--line);
}

/* Buttons — solid / outline, not gradient pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.5rem 0.95rem; border-radius: var(--radius-sm); font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-size: 0.875rem; font-family: inherit;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.btn:hover { text-decoration: none; transform: none; }
.btn-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-outline {
  color: var(--ink-soft); background: #fff;
  border: 1px solid var(--line-strong);
}
.btn-outline:hover { background: var(--paper-alt); color: var(--ink); border-color: var(--muted-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8125rem; }

/* Hero */
.hero {
  background: var(--paper);
  padding: 1.75rem 0 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.hero .lead {
  font-size: 0.98rem; color: var(--muted); max-width: 38rem;
  margin: 0 0 1rem; line-height: 1.5;
}
.hero h1 span { color: var(--accent); }
.hero-cta { margin-bottom: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero .badge { margin-bottom: 0.5rem; }

/* Compact feature row (replaces emoji cards) */
.feature-grid {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem;
  margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  text-align: left;
}
.feature-card {
  background: transparent; border: none; border-radius: 0;
  padding: 0; box-shadow: none; flex: 1 1 auto; min-width: 8rem;
}
.feature-icon { display: none; }
.feature-card h3 {
  font-size: 0.8rem; margin: 0 0 0.1rem; font-weight: 650;
  color: var(--ink); text-transform: none; letter-spacing: 0;
}
.feature-card p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
@media (min-width: 700px) {
  .feature-grid { display: flex; gap: 1.5rem; }
}

/* Sections */
.section { padding: 1.75rem 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: left; margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 0.95rem; max-width: 36rem; margin: 0; }
.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 650;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 0.15rem 0.45rem; border-radius: 4px; margin-bottom: 0.5rem;
}
.muted { color: var(--muted-light); font-size: 0.8rem; }
.note {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  padding: 0.65rem 0.85rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem; color: var(--ink-soft); margin: 0.75rem 0;
}

/* Company cards — dense list-like blocks */
.company-list { display: grid; gap: 0.75rem; }
.company-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: none; border: 1px solid var(--line);
}
.company-card-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 1rem; padding: 0.7rem 0.9rem;
  background: var(--paper-alt);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.company-card-head h3 { color: var(--ink); margin: 0; font-size: 1.05rem; }
.company-card-head .tagline { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.8rem; }
.company-meta { text-align: right; }
.stars { letter-spacing: 0.02em; font-size: 0.8rem; color: var(--muted); }
.price { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.company-body { padding: 0.85rem 0.9rem; }
.best-for {
  display: block; color: var(--accent-ink); font-weight: 600;
  font-size: 0.8rem; margin-bottom: 0.55rem;
}
.features {
  list-style: none; padding: 0; margin: 0 0 0.75rem;
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.85rem;
  font-size: 0.8125rem; color: var(--muted);
}
.features li {
  padding-left: 0.9rem; position: relative; margin-bottom: 0;
}
.features li::before {
  content: "·"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.pros-cons {
  display: grid; gap: 0.5rem; margin-bottom: 0.85rem;
}
@media (min-width: 600px) {
  .pros-cons { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}
.pros, .cons {
  background: transparent; border-radius: 0; padding: 0;
  border: none;
}
.pros h4 { color: var(--green); font-size: 0.75rem; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.04em; }
.cons h4 { color: var(--red); font-size: 0.75rem; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pros ul, .cons ul { margin: 0; padding-left: 1rem; font-size: 0.8125rem; color: var(--ink-soft); }
.pros li, .cons li { margin-bottom: 0.15rem; }

/* Table */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  box-shadow: none; border: 1px solid var(--line);
}
.compare-table {
  width: 100%; border-collapse: collapse; background: #fff; font-size: 0.8125rem; min-width: 680px;
}
.compare-table th, .compare-table td {
  padding: 0.55rem 0.7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top;
}
.compare-table th { background: var(--ink); color: #fff; font-weight: 600; font-size: 0.75rem; }
.compare-table tr:nth-child(even) td { background: var(--paper-alt); }
.compare-table .yes { color: var(--green); font-weight: 600; }
.compare-table .partial { color: var(--amber-ink); font-weight: 600; }

/* Guide boxes */
.two-col { display: grid; gap: 0.75rem; }
@media (min-width: 700px) { .two-col { grid-template-columns: 1fr 1fr; } }
.look-box, .flag-box {
  border-radius: var(--radius); padding: 0.9rem 1rem;
}
.look-box { background: var(--accent-soft); border: 1px solid #c5dede; }
.flag-box { background: var(--amber-bg); border: 1px solid var(--amber-line); }
.look-box h3 { color: var(--accent-ink); font-size: 0.95rem; }
.flag-box h3 { color: var(--amber-ink); font-size: 0.95rem; }
.look-box ul, .flag-box ul { font-size: 0.875rem; margin-bottom: 0; }
.quick-stats {
  display: grid; gap: 0.5rem; margin-top: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .quick-stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  text-align: left; background: #fff; border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem; box-shadow: none; border: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--muted);
}
.stat strong { display: block; color: var(--ink); font-size: 0.95rem; margin-bottom: 0.15rem; }

/* FAQ */
.faq-list { max-width: var(--prose); margin: 0; display: grid; gap: 0.4rem; }
.faq-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq-item button {
  width: 100%; text-align: left; background: none; border: none;
  padding: 0.7rem 0.85rem; font: inherit; font-weight: 600; font-size: 0.9rem;
  color: var(--ink); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
}
.faq-item button::after { content: "+"; color: var(--muted); font-size: 1.1rem; font-weight: 400; }
.faq-item.is-open button::after { content: "−"; }
.faq-panel { padding: 0 0.85rem 0.85rem; color: var(--ink-soft); font-size: 0.9rem; }
.faq-panel[hidden] { display: none; }

/* Content pages */
.page-hero {
  background: var(--paper);
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--line);
}
.prose { max-width: var(--prose); }
.prose h2 { margin-top: 1.5rem; }
.prose h3 { margin-top: 1.15rem; }
.prose li { margin-bottom: 0.25rem; }
.card-grid { display: grid; gap: 0.65rem; }
@media (min-width: 700px) { .card-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.content-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem; box-shadow: none;
}
.vs-grid { display: grid; gap: 0.65rem; }
@media (min-width: 800px) { .vs-grid { grid-template-columns: 1fr 1fr; } }
.vs-card {
  border-radius: var(--radius); border: 1px solid var(--line);
  padding: 1rem; background: #fff; box-shadow: none;
}
.vs-card.winner { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.breadcrumb { font-size: 0.8rem; color: var(--muted-light); margin-bottom: 0.5rem; }
.breadcrumb a { color: var(--accent); }

/* Footer */
.site-footer {
  background: var(--ink); color: #a8b0ba; padding: 1.75rem 0 1rem; margin-top: 1.25rem;
}
.footer-grid {
  display: grid; gap: 1.25rem; margin-bottom: 1.15rem;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: 0.45rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer a { color: #9aa3ad; text-decoration: none; font-size: 0.875rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer p { font-size: 0.85rem; line-height: 1.45; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.45rem; }
.footer-brand img { width: 28px; height: 28px; border-radius: 50%; }
.footer-brand strong { color: #fff; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid #333a44; padding-top: 0.85rem;
  font-size: 0.775rem; color: #8a939e;
}
.disclosure-bar {
  font-size: 0.75rem; color: #8a939e; margin-top: 0.4rem; line-height: 1.45;
}
.disclosure-inline {
  background: transparent; border: none; border-left: 2px solid var(--line-strong);
  color: var(--muted); padding: 0.15rem 0 0.15rem 0.65rem; border-radius: 0;
  font-size: 0.8rem; margin: 0.5rem 0 0.85rem; line-height: 1.4;
}
.disclosure-inline a { color: var(--accent); }

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.4rem; }
.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1.1rem; }
.mb-0 { margin-bottom: 0; }
.cta-band {
  background: var(--paper-alt);
  color: var(--ink); text-align: left; padding: 1.15rem 1.1rem;
  border-radius: var(--radius); margin: 0.5rem 0;
  border: 1px solid var(--line);
}
.cta-band h2 { color: var(--ink); font-size: 1.1rem; margin-bottom: 0.25rem; }
.cta-band p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.cta-band .btn-primary {
  background: var(--accent); color: #fff; box-shadow: none;
}
.cta-band .btn-primary:hover { background: var(--accent-hover); color: #fff; }

/* —— r2: table-first homepage + denser compare —— */
.btn-outline {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink-soft);
}
.btn-outline:hover {
  background: var(--paper-alt);
  color: var(--ink);
  border-color: var(--ink);
}

.pov-line {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 42rem;
}

.compare-table caption {
  caption-side: top;
  text-align: left;
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
}
.compare-table--home {
  min-width: 720px;
  font-size: 0.8rem;
}
.compare-table--home th,
.compare-table--home td {
  padding: 0.45rem 0.55rem;
  vertical-align: middle;
}
.compare-table--home .links-cell {
  white-space: nowrap;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.compare-table--home .links-cell > a:not(.btn) {
  font-size: 0.8rem;
  font-weight: 600;
}
.pick-badge {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  vertical-align: middle;
}
.competitor-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--amber-ink);
  line-height: 1.3;
}
.row-pick td {
  background: var(--accent-soft) !important;
}
.row-competitor td {
  background: var(--amber-bg) !important;
}
.company-card--pick {
  margin-top: 1rem;
}
.pick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.table-foot {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
