:root {
  color-scheme: light dark;
  --bg: #f7f7f2;
  --surface: #ffffff;
  --soft: #edf1eb;
  --ink: #1b302e;
  --muted: #536560;
  --accent: #17664f;
  --accent-hover: #104b3a;
  --on-accent: #ffffff;
  --line: #d8dfd6;
  --diagram: #72998b;
  --shadow: 0 16px 48px rgb(27 48 46 / 5%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111d1b;
    --surface: #182622;
    --soft: #20322b;
    --ink: #edf3ec;
    --muted: #b1c2b9;
    --accent: #a4dab4;
    --accent-hover: #c4edcf;
    --on-accent: #12291c;
    --line: #35473d;
    --diagram: #88b49b;
    --shadow: 0 16px 48px rgb(0 0 0 / 12%);
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 650; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 650; }
h3 { font-size: 1.35rem; font-weight: 650; }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }
li > ul { margin-top: 0.6rem; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 2;
  padding: 8px 16px;
  background: var(--surface);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 23px; }
.wordmark {
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.065em;
  text-decoration: none;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-nav a { color: var(--muted); font-size: 0.9rem; font-weight: 550; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.eyebrow { color: var(--accent); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); align-items: center; gap: 56px; padding-block: 92px 96px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 span { display: block; }
.hero .lead { max-width: 34rem; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); }
.hero .text-link { display: inline-block; margin-top: 12px; font-weight: 600; }
.text-link { font-weight: 600; }
.sketch-art {
  color: var(--diagram);
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background-color: var(--soft);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 20px 20px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.sketch-art svg { width: 100%; height: auto; }
.section { padding-block: 64px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; }
.section-heading p { color: var(--muted); margin: 0; font-size: 0.9rem; }
.product-card { padding: 40px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.product-heading { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.product-heading h3 { font-size: 2.2rem; margin-bottom: 12px; }
.product-pitch { color: var(--muted); max-width: 43rem; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--soft); font-size: 0.75rem; line-height: 1.5; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; padding: 28px 0; margin: 20px 0 12px; border-block: 1px solid var(--line); }
.feature-list li { margin: 0; }
.feature-list strong { display: block; font-size: 1rem; margin-bottom: 6px; }
.feature-list p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.feature-icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; max-width: 100%; padding: 11px 20px; border-radius: 7px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-size: 0.9rem; font-weight: 600; line-height: 1.5; text-decoration: none; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { background: var(--soft); border-color: var(--diagram); color: var(--ink); }
.planned-note { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 24px 0 0; color: var(--muted); font-size: 0.9rem; }
.planned-note strong { color: var(--ink); font-weight: 550; }
.support-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 56px; padding-block: 56px 72px; }
.support-section h2 { margin: 0; }
.support-section p { max-width: 42rem; color: var(--muted); }
.support-links { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 28px 36px; color: var(--muted); font-size: 0.8rem; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.footer-top p { margin: 0; }
.site-footer .trademark { max-width: 49rem; margin: 0; font-size: 0.75rem; }
.reading-width { max-width: 800px; }
.page-main { padding-block: 48px 72px; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { padding-inline: 10px; }
.page-intro { margin-bottom: 36px; }
.page-intro h1 { margin-bottom: 20px; font-size: clamp(2.5rem, 5vw, 3.75rem); }
.page-intro .lead { margin-bottom: 24px; }
.section-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-block: 20px; border-block: 1px solid var(--line); margin-bottom: 40px; font-size: 0.85rem; }
.section-nav a { text-decoration: none; }
.section-nav a:hover { text-decoration: underline; }
.prose h2 { font-size: 1.65rem; margin: 48px 0 20px; padding-top: 32px; border-top: 1px solid var(--line); }
.prose > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 30px; margin-bottom: 12px; font-size: 1.18rem; }
.prose .btn { margin-block: 8px; }
.prose h2 .tag { vertical-align: middle; margin-left: 5px; }
.box, .where { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; }
.where { font-size: 0.9rem; }
code { background: var(--soft); border-radius: 4px; padding: 2px 5px; font: 0.85em/1.5 Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; }
table { border-collapse: collapse; width: 100%; table-layout: fixed; margin-block: 24px; font-size: 0.9rem; }
th, td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { background: var(--soft); font-weight: 600; }
.troubleshooting th:first-child, .troubleshooting td:first-child { width: 31%; }
.empty-state { padding-block: 100px 120px; min-height: 60vh; }
.empty-state h1 { max-width: 45rem; margin-bottom: 20px; }
.empty-state .lead { max-width: 35rem; }

@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .hero { gap: 24px; grid-template-columns: 1fr; padding-block: 56px 64px; }
  .hero h1 { font-size: clamp(2.65rem, 9vw, 4rem); }
  .sketch-art { display: none; }
  .section { padding-block: 40px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 24px; }
  .product-card { padding: 28px; }
  .product-heading { flex-direction: column-reverse; gap: 16px; }
  .feature-list { grid-template-columns: 1fr; gap: 24px; padding-block: 24px; }
  .feature-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 16px; }
  .feature-icon { grid-row: span 2; margin: 3px 0 0; }
  .feature-list strong { margin: 0; }
  .feature-list p { grid-column: 2; }
  .support-section { grid-template-columns: 1fr; gap: 20px; padding-bottom: 48px; }
  .page-main { padding-top: 32px; }
  .prose h2 { line-height: 1.3; }
  .empty-state { padding-block: 64px 88px; }
}

@media (max-width: 480px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 20px; padding-block: 20px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 10px 12px; }
  .site-nav a { font-size: 0.85rem; padding-block: 3px; }
  .product-card { padding: 24px; }
  .actions { align-items: stretch; flex-direction: column; }
  .actions .btn { width: 100%; }
  .lead { font-size: 1.1rem; }
  .prose { font-size: 0.95rem; }
  .prose ul, .prose ol { padding-left: 1.25rem; }
  th, td { padding: 10px 7px; }
  .box, .where { padding: 12px 14px; }
}
