:root {
  color-scheme: light;
  --ink: #1f2824;
  --muted: #63706b;
  --line: #d8ded8;
  --paper: #f6f5ed;
  --panel: #fffdf7;
  --leaf: #347654;
  --leaf-dark: #173c2b;
  --clay: #b85f37;
  --blue: #26677b;
  --sun: #e5b84b;
  --shadow: 0 18px 48px rgba(31, 40, 36, .13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.site-header,
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 245, 237, .94);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--leaf-dark);
  font-size: 1.12rem;
  font-weight: 950;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  color: var(--muted);
  font-weight: 850;
  text-decoration: none;
}

nav a:hover,
.text-link:hover { color: var(--clay); }

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
  gap: 38px;
  align-items: center;
  min-height: 650px;
  padding: 44px 0 28px;
}

.hero-copy,
.section-heading,
.article-body,
form,
.checklist {
  display: grid;
  gap: 16px;
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.eyebrow,
.tag {
  margin: 0;
  color: var(--clay);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--leaf-dark);
  line-height: 1.07;
}

h1 { font-size: clamp(2.7rem, 7vw, 5.7rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3.1rem); }
h3 { font-size: 1.2rem; }

.lede {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.12rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--leaf);
  border-radius: 8px;
  padding: 10px 15px;
  color: var(--leaf-dark);
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--leaf);
}

.button.secondary {
  background: rgba(255, 255, 255, .6);
}

.hero-actions,
.proof-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.proof-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--leaf-dark);
  background: #fffdf7;
  font-size: .9rem;
  font-weight: 850;
}

.notice,
.content-band,
.article,
.ad-slot,
.product-card,
.tool-panel,
.summary-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.notice,
.ad-slot {
  padding: 16px 18px;
  color: var(--muted);
}

.ad-slot {
  display: grid;
  min-height: 92px;
  place-items: center;
  margin: 24px 0;
  border-style: dashed;
  text-align: center;
}

.section {
  margin-top: 36px;
}

.content-band,
.article,
.tool-panel {
  padding: 30px;
}

.product-grid,
.guide-grid,
.rank-grid,
.tool-grid,
.mini-grid {
  display: grid;
  gap: 16px;
}

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

.product-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.card-top,
.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-top strong {
  color: var(--blue);
}

.product-card p,
.article p,
.content-band p,
.guide-card p,
.site-footer,
.checklist li {
  color: var(--muted);
}

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

.guide-card {
  border-top: 4px solid var(--sun);
  padding-top: 16px;
}

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

.rank-card {
  border-left: 4px solid var(--leaf);
  padding: 16px;
  background: rgba(255, 255, 255, .52);
}

.article {
  max-width: 900px;
}

.article h2 {
  margin-top: 14px;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.article th,
.article td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.article th {
  color: var(--leaf-dark);
  background: #edf4ed;
}

.tool-grid {
  grid-template-columns: minmax(0, .75fr) minmax(320px, .45fr);
  align-items: start;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.radio-row {
  display: grid;
  gap: 10px;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radio-row input {
  width: auto;
}

.summary-box {
  padding: 22px;
  box-shadow: var(--shadow);
}

.summary-line {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.summary-line.total {
  border-bottom: 0;
  color: var(--leaf-dark);
  font-size: 1.18rem;
  font-weight: 950;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}

.text-link {
  color: var(--leaf);
  font-weight: 900;
}

@media (max-width: 900px) {
  .hero,
  .tool-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  main,
  .site-header,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-grid,
  .guide-grid,
  .rank-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
