:root {
  color-scheme: light;
  --ink: #17201a;
  --muted: #5b665e;
  --line: #d8ded8;
  --surface: #f7f8f4;
  --panel: #ffffff;
  --accent: #256a4f;
  --accent-strong: #0f5139;
  --warn: #8a4d11;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--accent-strong);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand img {
  display: block;
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}

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

.nav-links a[aria-current="page"] {
  color: var(--accent-strong);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
  text-decoration: none;
  font-weight: 720;
}

.button.secondary {
  background: transparent;
  color: var(--accent-strong);
}

.hero,
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 20px;
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-weight: 760;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 680px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.product-surface {
  border: 1px solid var(--line);
  background: var(--panel);
  min-height: 430px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(23, 32, 26, 0.08);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.pack-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.pack {
  border: 1px solid var(--line);
  background: #fbfcf8;
  padding: 14px;
}

.pack strong {
  display: block;
  margin-bottom: 4px;
}

.layer {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  background: #eef5ed;
  font-size: 14px;
  color: #334139;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}

.article-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 42px 20px 60px;
}

.article-page section {
  margin-top: 34px;
}

.crumbs {
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--muted);
}

.answer-box {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-strong);
  background: var(--panel);
  padding: 18px;
}

.answer-box p {
  margin-bottom: 0;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1fr);
  gap: 28px;
  align-items: center;
}

.page-visual,
.guide-hero-media {
  margin: 0;
}

.page-visual img,
.guide-hero-media img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-visual img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-visual figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
}

.mini-card p {
  margin: 0;
}

.content-blocks {
  display: grid;
  gap: 18px;
}

.content-blocks article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.guide-hero-media {
  display: grid;
  grid-template-columns: 0.48fr 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.guide-hero-media img {
  min-height: 180px;
  object-fit: cover;
}

.guide-hero-media .guide-brand-logo {
  object-fit: cover;
}

.faq-list,
.link-grid,
.guide-directory {
  display: grid;
  gap: 14px;
}

.faq-item,
.guide-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}

.guide-directory {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.guide-card h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.keyword {
  color: var(--muted);
  font-size: 14px;
}

.related-link {
  display: block;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px 16px;
  text-decoration: none;
  font-weight: 700;
}

.band {
  background: #fff;
  border-block: 1px solid var(--line);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.steps li {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  background: var(--accent-strong);
  color: white;
  font-weight: 750;
}

.notice {
  border: 1px solid #d7b16b;
  background: #fff7e6;
  color: var(--warn);
  padding: 14px 16px;
}

.codebox {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  border: 1px solid var(--line);
  background: #101913;
  color: #e8f3e9;
  padding: 14px;
  overflow-x: auto;
}

.reward-card {
  border: 2px dashed var(--accent);
  background: var(--panel);
  padding: 32px 24px;
  border-radius: 12px;
  max-width: 460px;
  margin: 32px auto;
  text-align: center;
  box-shadow: 0 8px 24px rgba(37, 106, 79, 0.06);
}

.reward-card:focus-within {
  border-style: solid;
  box-shadow: 0 10px 28px rgba(37, 106, 79, 0.12);
}

.reward-label {
  display: block;
  font-size: 11px;
  font-weight: 760;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reward-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.reward-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.copy-button {
  min-height: 36px !important;
  font-size: 13px !important;
}

.reward-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.referral-page {
  text-align: center;
  max-width: 800px !important;
}

.referral-page .lead {
  margin-left: auto;
  margin-right: auto;
}

.referral-page .actions {
  justify-content: center;
}

.referral-page .steps {
  text-align: left;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .guide-hero,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .guide-directory {
    grid-template-columns: 1fr;
  }

  .product-surface {
    min-height: 0;
  }

  .guide-hero-media {
    grid-template-columns: 1fr;
  }
}
