/* Better Habits Fitness Components v1.0
   Requires tokens.css. Prefer these canonical class names over one-off classes. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bh-paper-cool);
  color: var(--bh-ink);
  font-family: var(--bh-body);
  font-size: var(--bh-text-base);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(107, 63, 176, 0.42);
  outline-offset: 4px;
}
h1, h2, h3, p { margin-top: 0; }

/* Brand Lockup: .brand */
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--bh-purple);
  font-family: var(--bh-display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}
.brand-word {
  font-family: var(--bh-display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--bh-ink);
}
.brand-on-dark .brand-mark,
.brand-on-dark .brand-word { color: var(--bh-white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--bh-radius-pill);
  font-family: var(--bh-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-height: 52px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--bh-purple); color: var(--bh-white); border: 0; padding: 16px 26px; }
.btn-primary:hover { background: var(--bh-purple-deep); }
.btn-ghost { border: 1.5px solid var(--bh-ink); color: var(--bh-ink); background: transparent; padding: 14.5px 24.5px; }
.btn-ghost:hover { background: var(--bh-ink); color: var(--bh-paper-cool); }
.btn-sm { min-height: 40px; padding: 11px 18px; font-size: 14px; }
.btn-sm.btn-primary { padding: 11px 18px; }

/* Labels and type helpers */
.bh-eyebrow {
  font-family: var(--bh-mono);
  font-size: var(--bh-text-2xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--bh-mute);
  line-height: 1.6;
  margin: 0;
}
.eyebrow-row { display: flex; align-items: center; gap: 12px; margin-bottom: var(--bh-space-4); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bh-purple); flex: 0 0 auto; }
.italic { font-family: var(--bh-serif); font-style: italic; font-weight: 400; color: var(--bh-purple); }
.lede { font-size: var(--bh-text-lg); line-height: 1.55; color: var(--bh-ink-soft); max-width: 650px; margin-bottom: var(--bh-space-5); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Tags and cards */
.bh-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bh-rule);
  border-radius: var(--bh-radius-pill);
  padding: 5px 10px;
  font-family: var(--bh-mono);
  font-size: var(--bh-text-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bh-mute);
}
.bh-pill--accent { background: var(--bh-purple); border-color: var(--bh-purple); color: var(--bh-white); }
.bh-card { background: var(--bh-white); border: 1px solid var(--bh-rule-cool); border-radius: var(--bh-radius-lg); padding: var(--bh-space-5); }

/* Window Preview / Snapshot */
.window { background: var(--bh-white); border: 1px solid var(--bh-rule-cool); border-radius: var(--bh-radius-xl); box-shadow: var(--bh-shadow-preview); overflow: hidden; }
.window-bar { background: #efeaf2; border-radius: var(--bh-radius-lg); padding: 10px; display: flex; align-items: center; gap: 12px; color: var(--bh-ink-soft); }
.traffic { display: flex; gap: 5px; }
.traffic i { width: 8px; height: 8px; border-radius: 50%; background: var(--bh-rule); }
.traffic i:first-child { background: var(--bh-purple); }
.url-pill { font-family: var(--bh-mono); font-size: 10.5px; background: var(--bh-white); border-radius: var(--bh-radius-pill); padding: 7px 11px; color: var(--bh-mute); }
.url-pill::before { content: '•'; color: var(--bh-purple); margin-right: 7px; }
.snapshot { position: relative; background: var(--bh-ink); color: var(--bh-white); border-radius: var(--bh-radius-xl); padding: 28px; min-height: 430px; box-shadow: var(--bh-shadow-preview); display: flex; flex-direction: column; justify-content: space-between; }
.snapshot-metric strong { font-family: var(--bh-display); font-size: 84px; font-weight: 600; letter-spacing: -0.04em; line-height: 0.9; color: var(--bh-white); }
.snapshot-metric sup { font-size: 36px; color: var(--bh-purple-soft); top: -0.8em; position: relative; }
.snapshot-metric span { display: block; margin-top: var(--bh-space-2); font-family: var(--bh-mono); font-size: var(--bh-text-2xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bh-on-dark-55); }
.snapshot-label { font-family: var(--bh-mono); font-size: var(--bh-text-2xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bh-white); margin: 0; }
.preview-badge { position: absolute; right: -16px; bottom: -16px; background: var(--bh-ink); color: var(--bh-white); border-radius: var(--bh-radius-lg); padding: 14px 18px; }

/* Process Step */
.step { padding: 36px 24px; min-height: 350px; border-right: 1px solid var(--bh-rule); background: transparent; }
.step:last-child { border-right: 0; }
.step-number { font-family: var(--bh-mono); font-size: var(--bh-text-2xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bh-purple); font-weight: 400; margin: 0 0 var(--bh-space-5); }
.step h3 { font-family: var(--bh-display); font-size: var(--bh-text-2xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 var(--bh-space-3); }
.step p:last-child { font-size: 15.5px; color: var(--bh-ink-soft); line-height: 1.58; margin: 0; }
