/* Home page canon (substrate) — the multi-page-site homepage. Standalone
   stylesheet, same palette as comparison.css/guide.css. Copy to the site's
   public/assets/home.css. */

:root {
  color-scheme: light;
  --ink: #101918;
  --muted: #5c6d68;
  --line: #dce6e2;
  --bg: #f6faf8;
  --panel: #ffffff;
  --teal: #0b766f;
  --teal-dark: #075650;
  --gold: #d69b2d;
  --shadow-soft: 0 12px 34px rgba(22, 33, 31, 0.08);
  --shadow-card: 0 24px 70px rgba(22, 33, 31, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Same root-cause link fix as guide.css/comparison.css: without this, an <a>
   with no explicit color renders browser-default blue instead of inheriting
   the page palette. */
a {
  color: inherit;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 320px, #f4f8f6 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 max(24px, calc((100vw - 1080px) / 2));
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(217, 226, 223, 0.8);
  backdrop-filter: blur(22px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.home {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: 8px 0 64px;
}

.home-hero {
  padding: 56px 0 44px;
  text-align: center;
}

.home-hero .eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0 auto 16px;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
}

.home-lede {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
}

.home-featured {
  margin-bottom: 40px;
}

.home-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 118, 111, 0.28);
  box-shadow: var(--shadow-card);
}

.home-card .card-kicker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-card strong {
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}

.home-card.featured {
  padding: 36px;
  border-color: rgba(11, 118, 111, 0.5);
  background: linear-gradient(180deg, #ffffff 0%, #edf7f4 100%);
}

.home-card.featured strong {
  font-size: 28px;
}

.home-card-cta {
  margin-top: 4px;
  color: var(--teal);
  font-weight: 800;
}

.home-guides h2 {
  margin: 0 0 20px;
  font-size: 26px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

@media (max-width: 640px) {
  .home {
    padding-top: 0;
  }

  .home-hero {
    padding: 36px 0 32px;
  }

  .home-card,
  .home-card.featured {
    padding: 22px;
  }
}
