:root {
  --bg: #0b0a12;
  --bg-elevated: #131120;
  --card: #16142522;
  --card-solid: #161425;
  --border: #ffffff14;
  --text: #f2f1f7;
  --text-secondary: #a8a5b8;
  --text-tertiary: #706c82;
  --accent: #9186f2;
  --accent-strong: #a89bff;
  --increase: #e68c40;
  --good: #4db86b;
  --danger: #e6594d;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, #241f45 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(16px);
  background: #0b0a12cc;
  border-bottom: 1px solid var(--border);
}
nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-secondary); }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #0b0a12;
  box-shadow: 0 8px 28px -8px #9186f280;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 32px -6px #9186f2a0; }
.btn-secondary {
  background: #ffffff0a; color: var(--text); border-color: var(--border);
}
.btn-secondary:hover { background: #ffffff14; }
.btn-nav { padding: 9px 18px; font-size: 13px; }

header.hero { padding: 96px 0 72px; text-align: center; }
.hero img.icon {
  width: 108px; height: 108px; border-radius: 24px;
  box-shadow: 0 20px 60px -20px #9186f280, 0 0 0 1px #ffffff1a;
  margin-bottom: 28px;
}
.hero h1 { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
.hero p.tagline { font-size: 20px; color: var(--text-secondary); max-width: 560px; margin: 0 auto 8px; }
.hero p.sub { font-size: 15px; color: var(--text-tertiary); max-width: 520px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 18px; font-size: 13px; color: var(--text-tertiary); }

/* Smaller hero for sub-pages (docs, tips) — same language, less real estate */
header.page-header { padding: 64px 0 48px; text-align: center; }
.page-header .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent-strong);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px;
}
.page-header h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
.page-header p.sub { font-size: 17px; color: var(--text-secondary); max-width: 620px; margin: 0 auto; }

section { padding: 64px 0; }
section.alt { background: linear-gradient(180deg, transparent, #ffffff05 20%, #ffffff05 80%, transparent); }
h2.section-title { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 10px; text-align: center; }
p.section-sub { text-align: center; color: var(--text-secondary); font-size: 16px; max-width: 560px; margin: 0 auto 44px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.card .dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 14px; }
.card h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.card p { font-size: 14px; color: var(--text-secondary); margin: 0; }

.c-stories { background: var(--accent); }
.c-overview { background: #6db3f5; }
.c-chart { background: var(--increase); }
.c-trends { background: var(--good); }
.c-measure { background: #e6c440; }
.c-heavy { background: #f2799e; }
.c-widget { background: var(--accent-strong); }
.c-export { background: #58cfcf; }
.c-pressure { background: var(--danger); }
.c-setup { background: #9aa0ab; }

.docs-panel {
  background: var(--card-solid); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; max-width: 760px; margin: 0 auto;
}
.docs-panel h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.docs-panel h3:first-child { margin-top: 0; }
.docs-panel p { color: var(--text-secondary); font-size: 15px; margin: 0 0 4px; }
.shortcut-list { margin-top: 10px; }
.shortcut-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.shortcut-row:last-child { border-bottom: none; }
.shortcut-row span.desc { color: var(--text-secondary); }
.shortcut-row span.keys {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text); background: #ffffff0d; padding: 3px 9px; border-radius: 6px; font-size: 13px;
}

.privacy-panel {
  max-width: 700px; margin: 0 auto; text-align: center;
}
.privacy-panel p { color: var(--text-secondary); font-size: 16px; }
.privacy-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; text-align: left; }
@media (max-width: 700px) { .privacy-points { grid-template-columns: 1fr; } }
.privacy-points .card h3 { font-size: 15px; }
.privacy-points .card p { font-size: 13.5px; }

/* Long-form docs/tips content */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2.group-title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  margin: 56px 0 6px; text-align: left;
}
.prose h2.group-title:first-child { margin-top: 0; }
.prose p.group-sub { color: var(--text-secondary); font-size: 15px; margin: 0 0 24px; text-align: left; }

/* Numbered tip cards, each optionally linking a specific in-app view */
.tip-card {
  background: var(--card-solid); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px; margin-bottom: 14px;
}
.tip-card .tip-head { display: flex; align-items: flex-start; gap: 14px; }
.tip-card .tip-num {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: #ffffff0d; color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.tip-card h3 { font-size: 16.5px; font-weight: 600; margin: 3px 0 6px; }
.tip-card p { font-size: 14.5px; color: var(--text-secondary); margin: 0 0 4px; }
.tip-card .callout {
  margin-top: 14px; margin-left: 44px;
  display: flex; align-items: flex-start; gap: 10px;
  background: #9186f214; border: 1px solid #9186f230;
  border-radius: 10px; padding: 12px 14px;
  font-size: 13.5px; color: var(--text); line-height: 1.55;
}
.tip-card .callout .callout-dot { margin-top: 5px; }
.tip-card .callout .callout-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-strong);
}
.tip-card .callout b { font-weight: 600; }
@media (max-width: 560px) {
  .tip-card .tip-head { flex-direction: column; gap: 8px; }
  .tip-card .callout { margin-left: 0; }
}

.pressure-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 8px; }
@media (max-width: 700px) { .pressure-legend { grid-template-columns: 1fr; } }
.pressure-legend .card { text-align: left; }
.pressure-legend .swatch { width: 100%; height: 6px; border-radius: 4px; margin-bottom: 14px; }
.sw-normal { background: var(--good); }
.sw-warning { background: #e6c440; }
.sw-critical { background: var(--danger); }

.page-cta {
  text-align: center; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border);
}
.page-cta p { color: var(--text-secondary); margin: 0 0 18px; font-size: 15px; }

footer { padding: 48px 0 64px; text-align: center; border-top: 1px solid var(--border); margin-top: 40px; }
footer p { color: var(--text-tertiary); font-size: 13px; margin: 4px 0; }
footer .footer-links { margin-top: 10px; }
footer .footer-links a { color: var(--text-tertiary); text-decoration: none; margin: 0 10px; font-size: 13px; }
footer .footer-links a:hover { color: var(--text-secondary); }
