:root {
  color-scheme: light;
  --bg: #f6f3ed;
  --ink: #202528;
  --muted: #59605e;
  --panel: #fffaf1;
  --panel-strong: #f1eadf;
  --line: #d8cfc1;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #d9f4ee;
  --warn-soft: #fff2dd;
  --shadow: 0 18px 50px rgba(32, 37, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  max-width: 940px;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
}

code {
  display: block;
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(216, 207, 193, 0.74);
  background: rgba(246, 243, 237, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

nav a[aria-current="page"] {
  color: var(--accent-dark);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.hero-band {
  min-height: calc(100vh - 118px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 34px 0 50px;
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.hero-text {
  max-width: 780px;
  font-size: 20px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-actions,
.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 900;
  line-height: 1.2;
}

.button:hover {
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.button.secondary {
  background: var(--panel);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.hero-media,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-media {
  overflow: hidden;
}

.hero-media svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 360px;
}

.panel {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.metric-row {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 8px;
  background: white;
  border: 1px solid rgba(216, 207, 193, 0.82);
}

.metric-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-row strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.notice {
  margin: 20px 0 70px;
  padding: 18px;
  border: 1px solid #efd4a2;
  border-radius: 8px;
  background: var(--warn-soft);
  color: #56432a;
  line-height: 1.65;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.split-copy,
.content-band {
  display: grid;
  gap: 18px;
}

.guide-list,
.workflow,
.product-section {
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin-bottom: 24px;
}

.cards,
.steps,
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.card,
.step,
.product-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.card a {
  font-weight: 900;
  align-self: end;
}

.step span,
.product-index {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
  margin: 0;
}

.page-hero {
  display: grid;
  gap: 18px;
  padding: 58px 0 64px;
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 840px;
}

.content-band {
  max-width: 870px;
  padding: 56px 0;
}

.content-band h2 {
  margin-top: 18px;
}

.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-meta span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.article-body h2 {
  font-size: 32px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 32px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: #eee7db;
}

.site-footer p {
  font-size: 14px;
}

.small {
  font-size: 12px !important;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 920px) {
  .hero-band,
  .section-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  main {
    padding-top: 20px;
  }

  .cards,
  .steps,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-band {
    min-height: auto;
    padding-top: 20px;
  }
}
