:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: #f7f6f2; color: #17212b; font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.55; }
a { color: #0f5e5a; }
a:hover { color: #0a4441; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 16px; }
h2 { font-size: clamp(26px, 3.5vw, 32px); margin: 0 0 20px; }
h3 { font-size: 18px; margin: 20px 0 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.small { font-size: 14px; color: #4a535e; }
.center { text-align: center; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: #17212b; text-decoration: none; }
nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
nav a { color: #17212b; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.btn { display: inline-block; text-align: center; text-decoration: none; font-weight: 600; color: #fff; background: #0f5e5a; border-radius: 12px; padding: 13px 20px; min-height: 44px; }
.btn:hover { color: #fff; background: #0a4441; }
nav .btn { padding: 10px 16px; color: #fff; }
.btn-ghost { color: #0f5e5a; background: transparent; border: 1px solid #0f5e5a; }
.btn-ghost:hover { color: #0a4441; background: #e4f0ee; }
.btn-soon, nav .btn.btn-soon { background: #e8e6df; color: #4a535e; cursor: default; }
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 64px; }
.lead { font-size: 19px; color: #4a535e; margin: 0 0 20px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.demo { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.demo-card { background: #fff; border: 1px solid #dedbd2; border-radius: 16px; box-shadow: 0 16px 40px rgba(23, 33, 43, 0.14); padding: 18px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.demo-top { display: flex; gap: 16px; align-items: center; }
.demo-score { width: 68px; height: 68px; border-radius: 34px; background: #ddf1e4; color: #0b5132; font-size: 24px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; }
.demo-score small { font-size: 10px; letter-spacing: 0.06em; margin-top: 3px; }
.demo-metrics { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; flex: 1; }
.demo-metrics dt { font-size: 12px; color: #4a535e; }
.demo-metrics dd { margin: 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.demo-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid #eceae3; }
.demo-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #f1efe9; font-variant-numeric: tabular-nums; }
.demo-rows .strong { font-weight: 700; border-bottom: none; }
.demo-rows em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: #6b4100; background: #fcebc7; border-radius: 999px; padding: 2px 7px; margin-left: 6px; }
.demo-note { margin: 0; font-size: 12px; color: #4a535e; background: #f3f2ee; border-radius: 8px; padding: 8px 10px; }
.good { color: #145c33; }
.band { background: #fff; border-top: 1px solid #eceae3; border-bottom: 1px solid #eceae3; padding: 56px 0; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cols p { color: #4a535e; margin: 0; }
#pricing { padding-top: 56px; padding-bottom: 56px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.plan { background: #fff; border: 1px solid #dedbd2; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.plan-main { border: 2px solid #0f5e5a; padding: 23px; }
.plan h3 { margin: 0; }
.plan ul { margin: 0 0 8px; padding-left: 18px; color: #4a535e; font-size: 15px; }
.plan .btn { margin-top: auto; }
.price { font-size: 36px; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.price span { font-size: 16px; font-weight: 500; color: #4a535e; }
.doc { padding-top: 32px; padding-bottom: 64px; }
.doc h2 { font-size: 22px; margin: 28px 0 8px; }
.doc p, .doc li { color: #26313c; }
.bottom { border-top: 1px solid #eceae3; font-size: 14px; color: #4a535e; }
.bottom nav a { color: #4a535e; }
a:focus-visible, .btn:focus-visible { outline: 2px solid #0f5e5a; outline-offset: 3px; }
@media (max-width: 800px) {
  .hero, .cols, .plans { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; gap: 28px; }
}
/* Guide page */
.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 24px; padding-top: 40px; font-size: 15px; }
.toc-title { font-weight: 700; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.toc a { color: #4a535e; text-decoration: none; }
.toc a:hover { color: #0f5e5a; text-decoration: underline; }
.guide-body { max-width: 780px; }
.guide-body section { scroll-margin-top: 16px; border-top: 1px solid #eceae3; padding-top: 8px; margin-top: 28px; }
.guide-body .lead { margin-bottom: 8px; }
.steps { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.note { font-size: 15px; background: #eef5f3; border-left: 3px solid #0f5e5a; border-radius: 6px; padding: 10px 14px; }
.split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: center; margin: 12px 0 20px; }
.mini-card { background: #fff; border: 1px solid #dedbd2; border-radius: 14px; box-shadow: 0 10px 28px rgba(23, 33, 43, 0.12); padding: 14px; font-size: 14px; }
.mini-top { display: flex; gap: 12px; align-items: center; }
.mini-top dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; flex: 1; }
.mini-top dt { font-size: 11px; color: #4a535e; }
.mini-top dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-score { width: 56px; height: 56px; border-radius: 28px; background: #ddf1e4; color: #0b5132; font-size: 20px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; }
.mini-score small { font-size: 9px; letter-spacing: 0.06em; margin-top: 2px; }
.mini-tabs { margin: 12px 0 0; font-size: 12px; color: #4a535e; border-top: 1px solid #eceae3; padding-top: 8px; }
.mini-tabs .on { color: #0f5e5a; font-weight: 700; margin-right: 6px; }
.pill, .tag, .chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.pill-good { background: #ddf1e4; color: #145c33; }
.pill-fair { background: #fcebc7; color: #6b4100; }
.pill-weak { background: #f9dcd5; color: #8e2a17; }
.tag { background: #0f5e5a; color: #fff; font-size: 11px; padding: 1px 7px; vertical-align: 2px; }
.chip { background: #e8e6df; color: #26313c; font-size: 11px; }
.chip-est { background: #fcebc7; color: #6b4100; }
.chip-you { background: #dbe8fb; color: #1d3f73; }
.defs { margin: 0; }
.defs dt { font-weight: 700; margin-top: 14px; }
.defs dd { margin: 4px 0 0; color: #26313c; }
.formulas, .defaults { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #dedbd2; border-radius: 12px; overflow: hidden; font-size: 15px; }
.formulas th, .formulas td, .defaults th, .defaults td { text-align: left; vertical-align: top; padding: 9px 14px; border-top: 1px solid #f1efe9; }
.formulas tr:first-child th, .formulas tr:first-child td, .defaults tr:first-child th, .defaults tr:first-child td { border-top: none; }
.formulas th { width: 34%; font-weight: 600; }
.formulas td { color: #26313c; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 14px; }
.defaults th { font-weight: 500; color: #4a535e; }
.defaults td { font-weight: 700; font-variant-numeric: tabular-nums; }
.weights { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.weights li { display: flex; justify-content: space-between; padding: 6px 12px; border-radius: 8px; font-size: 15px; background: linear-gradient(to right, #cfe5e1 calc(var(--w) * 2.5), #f3f2ee calc(var(--w) * 2.5)); }
.badge-row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 12px 0 16px; }
.sb { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 12px 4px 4px; font-variant-numeric: tabular-nums; }
.sb b { width: 26px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, 0.7); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.sb-good { background: #ddf1e4; color: #0b5132; }
.sb-fair { background: #fcebc7; color: #6b4100; }
.sb-weak { background: #f8dada; color: #7a1f1f; }
.sb-grey { background: #e8e6df; color: #4a535e; padding-left: 12px; font-weight: 500; }
details { background: #fff; border: 1px solid #dedbd2; border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 8px 0 2px; }
@media (max-width: 800px) {
  .guide { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; padding-top: 20px; }
  .split { grid-template-columns: 1fr; }
  .defaults tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .defaults th, .defaults td { padding: 8px 12px; border-top: 1px solid #f1efe9; }
  .defaults td { text-align: right; }
  .defaults tr:first-child th:nth-child(3), .defaults tr:first-child td:nth-child(4) { border-top: 1px solid #f1efe9; }
}
