/* INDX — indx.now
   Dark-first visual language per the app design system:
   charcoal #0E1512 · lime #A6E22E · forest #0F3D2E */

:root {
  --bg: #0E1512;
  --surface: #16201B;
  --surface-2: #1D2A23;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F2F6F3;
  --muted: #9BAEA4;
  --lime: #A6E22E;
  --lime-dim: #86B825;
  --forest: #0F3D2E;
  --pink: #F3A9BC;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 21, 18, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 22px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--muted);
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-nav a.nav-cta { color: #0B120A; background: var(--lime); font-weight: 650; }
.site-nav a.nav-cta:hover { background: #B4EE3F; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--lime); color: #0B120A; }
.btn-primary:hover { background: #B4EE3F; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* Layout blocks */
main { display: block; }
section { padding: 72px 0; }
section.tight { padding: 48px 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
  margin: 0 0 16px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0 0 16px; color: var(--muted); }
p.lead { font-size: clamp(18px, 2.2vw, 21px); color: #C6D3CC; max-width: 46ch; }

/* Hero */
.hero { padding: 88px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
}
.status-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(166, 226, 46, 0.16);
}

/* Signature reading card (illustrative product UI) */
.reading-card {
  background: linear-gradient(170deg, #16201B 0%, #101917 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.reading-card .label { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.reading-card .value { font-size: 64px; font-weight: 700; letter-spacing: -0.04em; margin: 0; color: var(--text); line-height: 1; }
.reading-card .unit { font-size: 18px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.reading-card .trend { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--lime); font-size: 15px; font-weight: 600; }
.spark { margin: 22px 0 4px; display: block; width: 100%; height: auto; }
.reading-card .caption { font-size: 12px; color: #6F8177; margin: 10px 0 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 16px; }

.band {
  background: var(--forest);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.band h2 { margin-bottom: 12px; }
.band p { color: #CDE3D6; margin-bottom: 0; }

/* Document pages */
.doc { max-width: 760px; }
.doc h2 { margin-top: 44px; }
.doc h3 { margin-top: 26px; margin-bottom: 8px; }
.doc p, .doc li { color: #B9C7C0; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 18px; }
.doc li { margin-bottom: 8px; }
.doc .meta { font-size: 14px; color: var(--muted); }
.mt-18 { margin-top: 18px; }
.mt-32 { margin-top: 32px; }
.mt-36 { margin-top: 36px; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--text); font-weight: 650; }
.doc code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--lime);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 24px;
}
.callout p:last-child { margin-bottom: 0; }

/* Waitlist and product pages */
.waitlist-form { display: grid; gap: 18px; max-width: 520px; margin-top: 28px; }
.waitlist-form label { display: grid; gap: 7px; color: var(--text); font-size: 15px; font-weight: 600; }
.waitlist-form input[type="email"] { width: 100%; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); padding: 14px 15px; font: inherit; }
.waitlist-form input[type="checkbox"] { accent-color: var(--lime); width: 18px; height: 18px; flex: none; margin: 2px 0 0; }
.waitlist-consent { display: flex !important; align-items: flex-start; gap: 10px !important; color: var(--muted) !important; font-weight: 400 !important; }
.waitlist-form .btn { justify-self: start; cursor: pointer; }
.form-status { min-height: 1.6em; margin: 0; color: var(--lime); }
.form-status[data-error="true"] { color: #F3A9BC; }
.product-list { display: grid; gap: 14px; margin: 28px 0; padding: 0; list-style: none; }
.product-list li { padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: #B9C7C0; }
.product-list strong { color: var(--text); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--lime); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
  margin-top: 24px;
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-footer .brand img { height: 18px; }
.site-footer p { font-size: 14px; margin: 12px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--lime); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 56px 0 40px; }
  section { padding: 52px 0; }
  .band { padding: 28px; }
  .site-nav a { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; gap: 4px 12px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 460px) {
  .site-header .wrap { min-height: 60px; }
  .brand img { height: 19px; }
  .site-nav a { padding: 8px 7px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
