/* ==========================================================================
   Workout Buddies — Global Styles
   Edit the CSS variables below to quickly re-brand colors/fonts.
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-text: #17181a;
  --color-text-muted: #52565c;
  --color-border: #ececec;
  --color-accent: #e0483c;
  --color-blob: #d9f2e3;
  --color-cta-green: #1c8a4c;
  --color-footer-bg: #0b0b0c;
  --color-footer-text: #f2f2f2;
  --color-footer-link: #4d8ef0;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Poppins", var(--font-sans);

  --max-width: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.hidden {
  display: none !important;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  padding: 18px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand img {
  height: 28px;
  width: auto;
}

.brand-mark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-text);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-cta-green);
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-text-muted);
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.hero p.lede {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image {
  margin: 0 auto 40px;
  max-width: 520px;
}

.hero-image img {
  margin: 0 auto;
}

/* ---------- Body copy sections ---------- */

.copy-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.copy-block p {
  color: var(--color-text);
  font-size: 1.02rem;
  margin: 0 0 20px;
}

.platform-label {
  text-align: center;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 32px 0 20px;
}

/* ---------- Store badges ---------- */

.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.store-badge {
  display: inline-flex;
}

.store-badge img {
  display: block;
  height: 44px;
  width: auto;
  border-radius: 8px;
}

.store-badge:hover {
  opacity: 0.85;
}

/* ---------- What to expect ---------- */

.expect-section {
  padding: 48px 0 64px;
  text-align: center;
}

.expect-eyebrow {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.expect-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 14px;
}

.expect-section p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* ---------- Sections ---------- */

.section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 14px;
  font-weight: 800;
}

.section-header p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Waitlist form ---------- */

.waitlist-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.waitlist-card--embed {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.waitlist-card--embed iframe {
  max-width: 100%;
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-row input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text);
  font-size: 0.95rem;
}

.form-row input[type="email"]:focus {
  outline: none;
  border-color: var(--color-cta-green);
}

.form-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status.success {
  color: var(--color-cta-green);
}

.form-status.error {
  color: #c0392b;
}

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

.legal-page {
  padding-top: 48px;
  padding-bottom: 96px;
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 8px;
}

.legal-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 40px;
}

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 40px 0 14px;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
}

.legal-placeholder {
  background: #fafafa;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

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

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 40px 0;
  margin-top: 16px;
  text-align: center;
}

.footer-copy {
  color: var(--color-footer-text);
  font-size: 0.9rem;
  margin: 0 0 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--color-footer-link);
  padding: 0 10px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .divider {
  color: #4a4a4a;
}

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

@media (max-width: 860px) {
  .hero {
    padding: 40px 0 24px;
  }
}
