/* ------------------------------------------------------------------ */
/*  Ballust — marketing site. Brand tokens match the iOS Ballust      */
/*  design system (gymrun/DesignSystem/Theme.swift, light values).    */
/*  Paper #F4F1EA · Surface #FFFCF6 · Ink #12161D · Muted #657080     */
/*  Slate accent #8694AA · Hairline #D8D2C8 · Brand dark #12161D      */
/*  System sans throughout; BALLUST wordmark = uppercase, tracked.    */
/* ------------------------------------------------------------------ */

:root {
  --paper: #F4F1EA;
  --card: #FFFCF6;
  --ink: #12161D;
  --muted: #657080;
  --accent: #8694AA;
  --accent-pressed: #748299;
  --hairline: #D8D2C8;
  --brand-dark: #12161D;
  --off-white: #F4F0E8;
  --radius: 16px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Typography ---------- */

.display, .display-sm {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.display { font-size: clamp(48px, 8vw, 88px); }
.display-sm { font-size: clamp(28px, 4.2vw, 42px); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-pressed);
  margin-bottom: 14px;
}

.lede { font-size: 19px; color: var(--muted); max-width: 58ch; }

.small { font-size: 14px; color: var(--muted); }
.meta { color: var(--muted); font-size: 15px; margin-top: 6px; }

h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 20px; margin-bottom: 8px; }

.placeholder { background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(134,148,170,0.22) 8px, rgba(134,148,170,0.22) 16px); border-radius: 4px; padding: 1px 6px; }
.note { color: var(--muted); font-style: italic; }

/* ---------- Layout ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(18, 22, 29, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(244, 240, 232, 0.08);
}
.header-inner, .footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 18px; padding-bottom: 18px;
}

.nav { display: flex; gap: 28px; }
.nav a { color: rgba(244, 240, 232, 0.75); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--off-white); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.link-plain { color: rgba(244, 240, 232, 0.6); text-decoration: none; font-size: 14px; font-weight: 500; }
.link-plain:hover { color: var(--off-white); }
.card-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--off-white);
  text-decoration: none;
}
.brand img { display: block; }

.section { padding: 96px 0; }
.section-tint { background: linear-gradient(var(--paper) 0%, var(--card) 40%, var(--paper) 100%); }
.section h2 { margin-bottom: 20px; }
.section .lede { margin-bottom: 36px; }

.hero { padding: 120px 0 96px; position: relative; }
.hero .lede { margin: 24px 0 32px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Components ---------- */

.btn {
  display: inline-block;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--brand-dark); color: var(--off-white); }
.btn-accent:hover { box-shadow: 0 6px 18px rgba(18, 22, 29, 0.28); }
.btn-ghost { border-color: var(--hairline); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 16px 32px; font-size: 17px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
}
.card p { color: var(--muted); font-size: 15.5px; }
.card h3 { color: var(--ink); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.plan-cell {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-sub { font-weight: 400; font-size: 13px; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }

.checks { list-style: none; display: grid; gap: 14px; margin-bottom: 24px; }
.checks li {
  padding-left: 30px;
  position: relative;
  color: var(--ink);
}
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.cta { text-align: center; }
.cta .lede { margin: 20px auto 32px; }
.cta .small { margin-top: 16px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brand-dark);
  color: var(--off-white);
  margin-top: 48px;
}
.site-footer .small { color: rgba(244, 240, 232, 0.55); }
.footer-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-links a { color: rgba(244, 240, 232, 0.6); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--off-white); }

/* ---------- Legal pages ---------- */

.legal { padding: 72px 0 96px; }
.legal h2 {
  font-size: 26px;
  margin: 44px 0 14px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.legal h3 { font-family: var(--sans); font-weight: 600; font-size: 16px; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal a { color: var(--accent-pressed); }
.legal strong { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; }
  .header-actions { order: 2; margin-left: auto; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; }
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 64px; }
  .split { grid-template-columns: 1fr; }
}
