/* The Smart Home Pick — shared static styles */
:root {
  --bg: #0f1419;
  --bg-elevated: #1a222c;
  --bg-card: #1e2833;
  --border: #2d3a47;
  --text: #e8eef4;
  --text-muted: #9aabbc;
  --accent: #3db8a8;
  --accent-hover: #52d0bf;
  --accent-soft: rgba(61, 184, 168, 0.12);
  --disclosure: #c9a227;
  --link: #6ec8ff;
  --link-hover: #9ad9ff;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 720px;
  --max-wide: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--link-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.site-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}

.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  color: var(--accent-hover);
}

.site-logo span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

/* Main */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.site-main--narrow {
  max-width: var(--max);
}

/* Hero / home */
.hero {
  margin-bottom: 2.5rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.hero .one-liner {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  max-width: 40rem;
}

.hero .disclosure-chip {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--disclosure);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
}

.hero .disclosure-chip:hover {
  color: #e0bc4a;
  border-color: #e0bc4a;
}

.section-title {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--text-muted);
  margin: -0.5rem 0 1.25rem;
}

/* How we compare */
.method-box {
  background: var(--accent-soft);
  border: 1px solid rgba(61, 184, 168, 0.3);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 2.5rem;
}

.method-box h2 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.2rem;
}

.method-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.method-box li {
  margin-bottom: 0.4rem;
}

/* Audience paths */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.audience-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: inherit;
}

.audience-card strong {
  display: block;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.audience-card span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Guide cards */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  min-height: 7.5rem;
}

.guide-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}

.guide-card__num {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.guide-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.guide-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
}

/* Article / page content */
.page-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 3.5vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.page-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.prose {
  max-width: var(--max);
}

.prose h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.prose h4 {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0.85rem 0;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}

.prose strong {
  color: #f0f5fa;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-elevated);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.prose pre {
  overflow-x: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.prose pre code {
  border: none;
  padding: 0;
  background: none;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0;
  min-width: 480px;
}

.prose th,
.prose td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose th {
  background: var(--bg-elevated);
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Disclosure callout in articles */
.disclosure-banner {
  font-size: 0.92rem;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 1rem 0 1.5rem;
  color: var(--text-muted);
}

.disclosure-banner strong {
  color: var(--disclosure);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem 2rem;
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.site-footer nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--accent);
}

.site-footer__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0;
  line-height: 1.5;
}

/* Utility */
.muted {
  color: var(--text-muted);
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .site-main {
    padding: 1.35rem 1rem 2.5rem;
  }

  .hero {
    padding: 1.25rem 1rem;
  }

  .site-nav {
    gap: 0.75rem;
  }
}
