/* DeviceBench landing + legal pages. Tokens in /tokens.css. Spacing scale: 4 8 12 16 24 32 48 64 96. */
@import url("/tokens.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text);
  background: var(--page-glow), var(--bg-page); background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--mono); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: 30px; line-height: 1.2; margin-bottom: 12px; }
.section-head p { color: var(--text-2); font-size: 17px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }

/* nav */
.nav { height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 22px; height: 22px; color: var(--accent); filter: drop-shadow(0 0 6px rgba(42, 120, 214, 0.35)); }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-2); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* buttons: same definition as the lab */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r-control); border: 1px solid var(--border-strong); background: var(--surface-sheen), var(--bg-surface);
  color: var(--text); font-weight: 500; font-size: 14px; white-space: nowrap; cursor: pointer; box-shadow: var(--shadow-xs), var(--rim);
  transition: background-color 120ms ease-out, border-color 120ms ease-out, transform 100ms ease-out;
}
.btn:hover { background: var(--surface-sheen), var(--bg-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); box-shadow: var(--input-inset); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn.primary { background: var(--btn-primary-bg); border-color: var(--accent-active); color: var(--text-inverse); box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn.primary:hover { background: var(--btn-primary-bg-hover); box-shadow: var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn.lg { height: 48px; padding: 0 24px; font-size: 16px; }
.kbd { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--kbd-border); background: var(--kbd-bg); font-size: 11px; line-height: 1; color: var(--text-2); }

/* hero */
.hero { padding-top: 64px; padding-bottom: 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 19px; color: var(--text-2); max-width: 540px; margin-bottom: 32px; }
.hero .cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero .fine { margin-top: 16px; font-size: 13px; color: var(--text-3); }

/* device check card */
.card { background: var(--surface-sheen), var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-md), var(--rim); }
.check { padding: 24px; }
.check-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.check-head h3 { font-size: 15px; }
.check-head .live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-neutral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-neutral) 16%, transparent); flex: none; }
.dot.good { background: var(--status-good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-good) 16%, transparent), 0 0 8px color-mix(in srgb, var(--status-good) 45%, transparent); }
.dot.warn { background: var(--status-warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-warn) 18%, transparent); }
.dot.critical { background: var(--status-critical); box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-critical) 18%, transparent); }
.check-rows { display: grid; gap: 2px; }
.check-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, auto); gap: 12px; align-items: center; min-height: 40px; padding: 0 8px; border-radius: var(--r-control); font-size: 14px; }
.check-row:nth-child(odd) { background: var(--bg-subtle); }
.check-row .k { color: var(--text); }
.check-row .k small { display: block; font-size: 12px; color: var(--text-3); line-height: 1.3; }
.check-row .v { color: var(--text-2); font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; white-space: nowrap; }
.check-foot { margin-top: 16px; font-size: 12px; color: var(--text-3); line-height: 1.5; }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.tier h3 { font-size: 17px; }
.tier .who { font-size: 13px; color: var(--text-3); }
.tier ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tier li { display: grid; grid-template-columns: 1fr; gap: 2px; font-size: 14px; }
.tier li small { color: var(--text-3); font-size: 12.5px; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-chip); border: 1px solid var(--border); background: var(--bg-subtle); font-size: 11.5px; color: var(--text-2); white-space: nowrap; }

/* metrics */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric { padding: 20px; }
.metric .big { font-size: 28px; font-weight: 500; line-height: 1.1; margin-bottom: 6px; }
.metric .big small { font-size: 13px; color: var(--text-3); font-weight: 400; margin-left: 4px; }
.metric .l { font-size: 14px; margin-bottom: 4px; }
.metric .d { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.metrics-note { margin-top: 16px; font-size: 13px; color: var(--text-3); }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-surface); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.45; }
th { font-weight: 500; color: var(--text-2); background: var(--bg-subtle); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; font-weight: 500; }
td .gate { color: var(--text-3); font-size: 12.5px; display: block; margin-top: 2px; }

/* run locally */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.steps ol { margin: 0; padding-left: 20px; display: grid; gap: 16px; }
.steps li { padding-left: 4px; }
.steps li strong { font-weight: 500; display: block; margin-bottom: 4px; }
.steps li span { color: var(--text-2); font-size: 15px; }
pre.cmd { margin: 0; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--r-control); padding: 16px; font-size: 13px; line-height: 1.6; overflow-x: auto; box-shadow: var(--input-inset); }
pre.cmd + pre.cmd { margin-top: 12px; }
.req { margin-top: 16px; font-size: 13px; color: var(--text-3); line-height: 1.5; }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.faq h3 { font-size: 16px; margin-bottom: 8px; }
.faq p { color: var(--text-2); font-size: 15px; }

/* prose (legal) */
.prose { max-width: 65ch; }
.prose h1 { font-size: 36px; line-height: 1.15; margin-bottom: 8px; }
.prose .updated { color: var(--text-3); font-size: 14px; margin-bottom: 40px; }
.prose h2 { font-size: 20px; margin: 40px 0 12px; }
.prose p { margin-bottom: 14px; color: var(--text); }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 32px 0 48px; font-size: 13px; color: var(--text-3); }
footer .row { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
footer .row .spacer { flex: 1; }
footer a { color: var(--text-2); }

@media (max-width: 900px) {
  body { font-size: 15px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 26px; }
  .hero { padding-top: 32px; padding-bottom: 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-grid > * { min-width: 0; }
  .check-row .v { white-space: normal; max-width: 45%; }
  .hero h1 { font-size: 36px; }
  .hero .lede { font-size: 17px; }
  .tiers, .metrics, .steps, .faq { grid-template-columns: minmax(0, 1fr); }
  .nav-links a:not(.btn) { display: none; }
  .wrap { padding: 0 16px; }
}
@media (pointer: coarse) { .btn { height: 44px; } }
