/* Kevin Kwan: personal site and Well Watch product page. Plain CSS, no build step. */
:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --line: #dde2e8;
  --text: #11161c;
  --muted: #56616e;
  --dim: #b4bdc8;
  --accent: #0b5f73;
  --on-accent: #ffffff;
  --radius: 10px;
  --head: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -0.02em; max-width: 820px; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }

/* Layout */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { border-top: 1px solid var(--line); padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.head { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.split { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.col { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.col p, .prose p { color: var(--muted); }
.split > .panel, .split > .sources { align-self: flex-start; }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* Text helpers */
.accent { color: var(--accent); }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 600px; }
.note { font-size: 12px; line-height: 1.5; color: var(--muted); }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.link { font-size: 15px; font-weight: 600; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* Navigation */
.nav { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.brand { font-family: var(--head); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 12px; }
.brand .by { font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--muted); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; font-size: 14px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.15); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: center; padding-top: 64px; padding-bottom: 96px; }
.hero-copy { flex: 3 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero .panel { flex: 2 1 360px; }

/* Panels and cards */
.panel { flex: 1 1 420px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; }
.panel-head { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; }
.panel-head span { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 420px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.card h3 { font-size: 24px; letter-spacing: -0.02em; }
.card p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.proof { font-size: 14px; line-height: 1.6; color: var(--muted); }
.proof b { color: var(--text); }

/* Liability total */
.big { font-family: var(--head); font-weight: 600; font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.big + p { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 6px; }
.splitbar { display: flex; height: 12px; border-radius: 3px; overflow: hidden; }
.splitbar span { background: var(--accent); }
.splitbar span + span { opacity: 0.4; }
.between { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; font-family: var(--mono); font-size: 12px; margin-top: 8px; }
.minis { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.minis div { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.minis b { font-family: var(--head); font-size: 22px; line-height: 1.2; color: var(--text); }

/* Capability rows */
.caps { align-self: stretch; border-bottom: 1px solid var(--line); }
.cap { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.cap-key { flex: 0 0 72px; font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 5px; }
.cap b { display: block; font-size: 16px; line-height: 1.4; }
.cap span { display: block; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Charts */
.chart { display: flex; flex-direction: column; gap: 10px; }
.chart-title { font-size: 13px; font-weight: 600; line-height: 1.4; }
.chart-note { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.3; }
.bar-label { flex: 0 0 150px; color: var(--muted); }
.bar-track { flex: 1; min-width: 0; display: flex; }
.bar-fill { height: 10px; border-radius: 2px; background: var(--accent); }
.bar-fill.closed { background: var(--dim); }
.bar-n { flex: 0 0 64px; text-align: right; font-family: var(--mono); font-size: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }
.legend i.closed { background: var(--dim); }
.bans { display: flex; flex-direction: column; gap: 7px; }
.ban { display: flex; align-items: center; gap: 12px; }
.ban-year { flex: 0 0 36px; font-family: var(--mono); font-size: 11px; line-height: 1; color: var(--muted); }
.ban-track { flex: 1; min-width: 0; position: relative; height: 8px; border-radius: 2px; background: var(--line); }
.ban-fill { position: absolute; top: 0; height: 8px; border-radius: 2px; background: var(--accent); }
.ban-months { height: 14px; background: none; font-family: var(--mono); font-size: 11px; line-height: 1; color: var(--muted); }
.ban-months span { position: absolute; top: 0; }
.spark { display: block; width: 100%; height: 110px; }
.spark rect { fill: var(--accent); opacity: 0.08; }
.spark line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }

/* About */
.facts { display: flex; flex-wrap: wrap; gap: 16px 40px; padding: 8px 0; }
.fact { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 2px solid var(--accent); font-size: 14px; line-height: 1.5; color: var(--muted); }
.fact b { font-family: var(--head); font-size: 20px; line-height: 1.3; color: var(--text); }

/* Offer block */
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 56px 48px; margin-bottom: 96px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.offer h2 { font-size: clamp(28px, 3.4vw, 44px); max-width: 860px; }
.offer p { color: var(--muted); max-width: 640px; }
.offer .email { font-family: var(--mono); font-size: 15px; }

/* Product page */
.feats { display: flex; flex-wrap: wrap; gap: 40px 32px; }
.feat { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 2px solid var(--accent); }
.feat p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 14px; line-height: 1.4; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.rules { display: flex; flex-direction: column; }
.rule { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.rule b { flex: 0 0 132px; }
.rule span { flex: 1; min-width: 0; color: var(--muted); }
.rule em { flex: 0 0 64px; text-align: right; font-style: normal; font-family: var(--mono); font-size: 13px; }
.rule.rule-head { border-top: 0; padding-top: 0; font-size: 12px; color: var(--muted); }
.rule.rule-head b { font-weight: 400; }
.timeline { display: flex; flex-wrap: wrap; gap: 24px; }
.tl { flex: 1 1 170px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 2px solid var(--accent); }
.tl time { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.tl b { font-size: 16px; line-height: 1.3; }
.tl span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.steps { display: flex; flex-wrap: wrap; gap: 20px; }
.step { flex: 1 1 280px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step i { font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.sources { flex: 1 1 360px; min-width: 0; margin: 0; padding: 26px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.5; }
.sources li { position: relative; padding-left: 16px; }
.sources li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.sources .sources-title { padding-left: 0; font-weight: 600; }
.sources .sources-title::before { display: none; }
.who { font-family: var(--head); font-weight: 500; font-size: 24px; line-height: 1.4; letter-spacing: -0.01em; max-width: 820px; }

/* Footer */
.footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; padding-top: 24px; padding-bottom: 40px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.footer span + span { max-width: 720px; }

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 64px; padding-bottom: 64px; gap: 36px; }
  .hero { padding-top: 32px; padding-bottom: 64px; }
  .offer { padding: 36px 24px; margin-bottom: 64px; }
  .big { font-size: 44px; }
  .bar-label { flex-basis: 108px; }
  .rule b { flex-basis: 104px; }
  .who { font-size: 20px; }
}
