/* Jolt — shared styles for the marketing site.
   Palette and type are lifted from the app (lib/app.dart, lib/theme/jolt_colors.dart)
   and the brand kit in design/brand-kit/. Keep them in step. */

:root {
  --bg: #0A0A12;
  --bg-alt: #0D0D16;
  --surface: #14141F;
  --surface-2: #1E1E2E;
  --outline: #2A2A3E;
  --outline-soft: #23233A;
  --text: #E0E0F0;
  --text-dim: #A8A8C4;
  --text-muted: #8888AA;
  --purple: #7C4DFF;
  --purple-lift: #9B7AFF;
  --orange: #FF6B35;
  --green: #4CAF50;
  --green-bg: #1B3A1F;
  --orange-bg: #2A1A1A;
  --violet-bg: #2A2340;
  --violet-fg: #A98BFF;

  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 5vw, 96px);
  --section-y: clamp(56px, 8vw, 104px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-lift); }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }

/* ── Type ─────────────────────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }

h1 {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(27px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h3 {
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p { margin: 0; }

.eyebrow {
  font-size: clamp(10px, 1vw, 11px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lede { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--text-dim); text-wrap: pretty; }
.body { font-size: clamp(13px, 1.1vw, 15px); line-height: 1.65; color: var(--text-muted); text-wrap: pretty; }
.body strong { color: var(--text); font-weight: 500; }
.small { font-size: 13px; }

/* ── Chrome ───────────────────────────────────────────────────────────── */

.mark { flex: none; }

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  font-size: 21px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-bottom: 1px solid #1A1A2A;
}

.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav-links a { font-size: 14px; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }

@media (max-width: 860px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 12px;
  padding: 15px 26px;
  min-height: 52px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--ui);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn-primary { background: var(--purple); color: #FFFFFF; }
.btn-primary:hover { background: #8F66FF; color: #FFFFFF; }
.btn-ghost { border-color: var(--outline); color: var(--text-dim); }
.btn-ghost:hover { border-color: var(--purple); color: var(--text); }

.nav .btn { padding: 10px 18px; min-height: 40px; font-size: 14px; border-radius: 10px; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ── Sections ─────────────────────────────────────────────────────────── */

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); border-block: 1px solid #1A1A2A; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: clamp(22px, 2.4vw, 32px);
}

.grid { display: grid; gap: clamp(14px, 1.6vw, 24px); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

.split { display: flex; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split > * { flex: 1; min-width: 0; }
@media (max-width: 900px) { .split { flex-direction: column; align-items: stretch; } }

.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }

.icon { width: 22px; height: 22px; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  align-self: flex-start;
}
.tag--green { background: var(--green-bg); color: var(--green); }
.tag--orange { background: var(--orange-bg); color: var(--orange); }
.tag--violet { background: var(--violet-bg); color: var(--violet-fg); }

.ticks { display: flex; flex-direction: column; gap: 13px; }
.tick { display: flex; gap: 12px; align-items: flex-start; }
.tick svg { margin-top: 2px; width: 17px; height: 17px; }

.rule-note {
  display: flex;
  gap: 16px;
  align-items: stretch;
  padding: 20px 24px;
}
.rule-note::before {
  content: "";
  width: 3px;
  border-radius: 2px;
  background: var(--green);
  flex: none;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero { display: flex; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 92px); }
.hero-copy { flex: 1 1 560px; display: flex; flex-direction: column; gap: clamp(18px, 2vw, 30px); min-width: 0; }
.hero-art { display: flex; gap: 22px; align-items: flex-start; flex: none; }

@media (max-width: 1100px) {
  .hero { flex-direction: column; align-items: stretch; }
  /* flex-basis is the MAIN axis: once this is a column, 560px would be a
     height, leaving a tall empty block above the artwork. */
  .hero-copy { flex: 0 1 auto; }
  .hero-art { justify-content: center; }
}
@media (max-width: 760px) {
  .hero-art .phone--lock { display: none; }
  .hero-art { justify-content: flex-start; }
}

/* ── Phone mockups ────────────────────────────────────────────────────── */

.phone {
  width: 268px;
  flex: none;
  border-radius: 26px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--outline), 0 30px 70px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.phone--home { padding: 22px 16px 26px; }
.phone--lock { padding: 26px 18px 22px; margin-top: 52px; display: flex; flex-direction: column; align-items: center; gap: 9px; }

@media (max-width: 400px) { .phone { width: 100%; max-width: 268px; } }

.app-row { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 10px 11px; }
.app-icon { width: 30px; height: 30px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #FFF; }
.app-name { font-size: 12px; font-weight: 500; }
.app-meta { font-size: 10px; color: var(--text-muted); }

/* Mirrors the app: leaf, then the label block, then the run's progress on the
   trailing edge. Not centred — the two text lines share a left edge. */
.relax-demo { border: 1px solid var(--outline); border-radius: 12px; padding: 12px 13px; display: flex; flex-direction: row; align-items: center; gap: 11px; }
.relax-demo .dots { flex: none; }
.dots { display: flex; gap: 5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(136, 136, 170, .3); }
.dot--on { background: var(--purple); }
.dot--bad { background: var(--orange); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.qa { border-top: 1px solid var(--outline-soft); padding-block: 24px; display: grid; grid-template-columns: 380px 1fr; gap: 48px; }
.qa:last-of-type { border-bottom: 1px solid var(--outline-soft); }
@media (max-width: 860px) { .qa { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* ── Closing + footer ─────────────────────────────────────────────────── */

.closing {
  background: var(--surface);
  border-top: 1px solid var(--outline);
  text-align: center;
}
.closing .wrap { display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2vw, 30px); }
.closing h2, .closing .lede { max-width: 720px; }

.footer { padding-block: 36px; border-top: 1px solid #1A1A2A; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer-links a, .footer-links span { font-size: 13px; color: var(--text-muted); }

/* ── Document pages (privacy, terms) ──────────────────────────────────── */

.doc { max-width: 760px; margin: 0 auto; padding-block: clamp(48px, 7vw, 88px); }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.doc h2 { font-size: clamp(21px, 2.4vw, 27px); margin-top: 52px; margin-bottom: 14px; }
.doc h3 { font-size: 17px; margin-top: 28px; margin-bottom: 10px; }
.doc p, .doc li { font-size: 15px; line-height: 1.7; color: var(--text-dim); text-wrap: pretty; }
.doc p + p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 22px; }
.doc li { margin-bottom: 9px; }
.doc li::marker { color: var(--text-muted); }
.doc strong { color: var(--text); font-weight: 600; }

.doc-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 40px; }

.doc-callout {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 22px 26px;
  margin-top: 24px;
}
.doc-callout p { font-size: 14px; color: var(--text-muted); }

.doc table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.doc th, .doc td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--outline-soft); font-size: 14px; vertical-align: top; }
.doc th { color: var(--text-muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.doc td { color: var(--text-dim); }
.doc td:first-child { color: var(--text); width: 34%; }
@media (max-width: 620px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { border-bottom: 1px solid var(--outline-soft); padding-block: 12px; }
  .doc td { border: 0; padding: 2px 0; }
  .doc td:first-child { font-weight: 600; width: auto; }
}
