/* ==========================================================================
   Aspiro KIT · base.css — page defaults, type roles, layout, buttons, badge.
   Needs tokens.css first.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Type roles --------------------------------------------------------- */
.display, .h-hero, .h-1, .h-2, .h-mega {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h-mega { font-size: var(--fs-mega); line-height: 0.84; }
.h-hero { font-size: var(--fs-hero); }
.h-1    { font-size: var(--fs-h1); }
.h-2    { font-size: var(--fs-h2); }
.h-3    { font-family: var(--font-body); font-size: var(--fs-h3); font-weight: 600; line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); color: var(--ink); margin: 0; text-wrap: balance; }
.lead   { font-size: var(--fs-lead); line-height: 1.45; color: var(--text-2); margin: 0; text-wrap: pretty; max-width: 40ch; }
.eyebrow {
  font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--text-3); margin: 0;
}
.eyebrow--stage { color: var(--stage-eyebrow); }
.small { font-size: var(--fs-small); color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }

/* ---- Layout ------------------------------------------------------------- */
.container      { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: calc(var(--container-wide) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section        { padding-block: var(--section-y); position: relative; }
.stack > * + *  { margin-top: var(--stack, var(--space-6)); }
.center         { text-align: center; margin-inline: auto; }
.center .lead   { margin-inline: auto; }

/* ---- Buttons (filled = black in light, white in dark; never gold) -------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px;
  border-radius: var(--radius-pill); border: 0;
  font: 600 15px/1 var(--font-body); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-ink);
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--sm { --h: 36px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 52px; padding: 0 26px; font-size: 16px; }
.btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: 0 6px 18px -6px rgba(21, 21, 19, .35); }
  .btn--quiet:hover { box-shadow: inset 0 0 0 1px var(--text-3); }
}

/* App Store badge: faithful approximation; production swaps Apple's artwork. */
.appstore {
  display: inline-flex; align-items: center; gap: 9px;
  height: 52px; padding: 0 18px 0 14px; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 1px #A6A6A6;
  transition: transform var(--dur-press) var(--ease-out);
}
.appstore:active { transform: scale(0.97); }
.appstore svg { width: 24px; height: 24px; flex: none; }
.appstore span { display: flex; flex-direction: column; line-height: 1; }
.appstore small { font: 500 10.5px/1 var(--font-body); letter-spacing: 0.01em; }
.appstore strong { font: 600 21px/1.05 var(--font-body); letter-spacing: -0.02em; }
[data-theme="dark"] .appstore, .theme-dark .appstore { background: #000; box-shadow: inset 0 0 0 1px #A6A6A6; }

/* ---- Small brand parts --------------------------------------------------- */
.pillar-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--pillar-shine)); flex: none; }
.pillar-dot--w { --dot: var(--pillar-workouts); }
.pillar-dot--i { --dot: var(--pillar-intentions); }
.pillar-dot--n { --dot: var(--pillar-nutrition); }
.pillar-dot--s { --dot: var(--pillar-shine); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: var(--radius-pill); background: var(--surface); color: var(--text-2);
  font: 500 13px/1 var(--font-body);
}
.tag-gold { color: var(--highlight-ink); background: var(--highlight-fill); box-shadow: inset 0 0 0 1px var(--highlight-edge); }
.rule { height: 1px; background: var(--border); border: 0; margin: 0; }

/* Nav: a glass bar that sits over the page. */
.kit-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px; padding-inline: var(--gutter);
}
.kit-nav__logo { display: block; height: 18px; width: auto; }
.kit-nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font: 500 14px/1 var(--font-body); }
.kit-nav__links a { text-decoration: none; color: var(--text-2); transition: color var(--dur-ui) ease; }
.kit-nav__links a:hover { color: var(--ink); }
@media (max-width: 760px) { .kit-nav__links { display: none; } }
