:root {
  --ink: #17211F;
  --muted: #586763;
  --paper: #FBFAF6;
  --panel: #F2F7F4;
  --teal: #0F766E;
  --teal-dark: #0B4E49;
  --coral: #C75146;
  --gold: #D8A23A;
  --line: #D8E1DC;
  --cream: #FFFDF6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: 0; }
nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.94rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }
.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 64px) 48px;
  border-bottom: 1px solid var(--line);
}
.eyebrow { margin: 0 0 10px; color: var(--coral); font-weight: 800; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; }
h1, h2, h3 { letter-spacing: 0; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(3rem, 9vw, 7rem); }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: 1.22rem; }
.lede { max-width: 760px; font-size: clamp(1.08rem, 2vw, 1.35rem); color: var(--muted); }
.hero-actions, .card-bottom { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button.primary, button { background: var(--teal-dark); color: white; border-color: var(--teal-dark); }
.button.secondary { background: transparent; color: var(--ink); }
.trust-bar {
  margin-top: 22px;
  display: inline-flex;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--muted);
  font-weight: 700;
}
.tool-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  padding: 22px;
  box-shadow: 0 18px 60px rgba(15, 80, 73, 0.10);
}
.panel-top { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.mini-grid { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 18px 0; }
.mini-grid span { color: var(--muted); }
.good { color: #0D6B3F; }
.near { color: #8A5D00; }
.bad { color: #A23831; }
.bar-row { height: 12px; background: #E7E3D7; border-radius: 999px; overflow: hidden; }
.bar-row i { display: block; height: 100%; background: var(--gold); }
.signup-band, .calculator-strip {
  margin: 0;
  padding: 28px clamp(18px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--teal-dark);
  color: white;
}
.signup-band p, .calculator-strip p { margin: 6px 0 0; color: rgba(255,255,255,0.78); }
.email-form { display: grid; grid-template-columns: minmax(190px, 280px) auto; gap: 10px; max-width: 620px; }
.email-form input, .tool-form input, .tool-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  background: white;
  color: var(--ink);
}
.email-form small { grid-column: 1 / -1; color: rgba(255,255,255,0.72); }
.section-head { padding: 70px clamp(18px, 5vw, 64px) 28px; max-width: 980px; }
.section-head.compact { padding-top: 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.product-grid {
  padding: 0 clamp(18px, 5vw, 64px) 70px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-media { height: 170px; background: var(--panel); border-bottom: 1px solid var(--line); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.notion-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; height: 100%; padding: 18px; align-content: center; }
.notion-preview span { grid-column: 1 / -1; color: var(--muted); font-weight: 800; }
.notion-preview b { min-height: 72px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 0.8rem; }
.product-card h3, .product-card p, .product-card .product-meta, .product-card .card-bottom { margin-left: 18px; margin-right: 18px; }
.product-card h3 { margin-top: 10px; }
.product-card p { color: var(--muted); flex: 1; }
.product-meta { margin-top: 16px; display: flex; justify-content: space-between; color: var(--coral); font-weight: 800; font-size: 0.82rem; }
.card-bottom { padding: 0 0 18px; justify-content: space-between; }
.card-bottom a { color: var(--teal-dark); font-weight: 800; }
.calculator-strip { background: #2F5149; }
.tool-page { padding-bottom: 70px; }
.interactive-tool {
  margin: 0 clamp(18px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}
.tool-form, .tool-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  padding: 18px;
}
.tool-form { display: grid; gap: 14px; }
.tool-form label { display: grid; gap: 6px; color: var(--muted); font-weight: 700; }
.verdict { padding: 14px; border-radius: 8px; font-weight: 900; font-size: 1.25rem; border: 1px solid var(--line); }
.verdict.good { background: #DFF3EA; }
.verdict.near { background: #FFF2C2; }
.verdict.bad { background: #F8DEDA; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; }
.result-grid div { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: white; }
.result-grid span { display: block; color: var(--muted); font-size: 0.88rem; }
.result-grid strong { font-size: 1.35rem; }
.suggestions { margin: 16px 0; color: var(--muted); }
.city-table-wrap, .blog-shell, .article-shell { padding: 0 clamp(18px, 5vw, 64px) 70px; }
.city-table { width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--line); }
.city-table th, .city-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.city-table th { background: var(--teal-dark); color: white; }
.blog-list { display: grid; gap: 12px; }
.blog-row {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  text-decoration: none;
}
.blog-row span { color: var(--coral); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; }
.blog-row p { margin: 0; color: var(--muted); }
.article-shell article { max-width: 820px; }
.article-shell h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
.article-shell h2 { margin-top: 36px; font-size: 1.7rem; }
.article-shell p { font-size: 1.08rem; color: #33413E; }
.article-description { color: var(--muted); font-size: 1.2rem; }
.article-cta {
  margin: 34px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: grid;
  gap: 6px;
}
.related-links { display: grid; gap: 10px; }
.related-links a { color: var(--teal-dark); font-weight: 800; }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--cream);
}

@media (max-width: 920px) {
  .hero, .interactive-tool { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { gap: 12px; }
  .hero { padding-top: 36px; min-height: auto; }
  h1 { font-size: 3.2rem; }
  .signup-band, .calculator-strip { align-items: flex-start; flex-direction: column; }
  .email-form { grid-template-columns: 1fr; width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .city-table-wrap { overflow-x: auto; }
}
