/* ── Fonts ──────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Lora';
  src: url('/fonts/lora-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apercu Pro';
  src: url('/fonts/apercu-regular-pro.woff2') format('woff2'),
       url('/fonts/apercu-regular-pro.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apercu Pro';
  src: url('/fonts/apercu-medium-pro.woff2') format('woff2'),
       url('/fonts/apercu-medium-pro.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apercu Pro';
  src: url('/fonts/apercu-bold-pro.woff2') format('woff2'),
       url('/fonts/apercu-bold-pro.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────────────────────── */

:root {
  --canvas:      #E53A1E;
  --primary:     #2713A4;
  --accent:      #9BE3B2;
  --warm-accent: #F7C948;
  --surface:     #FFF4EA;
  --shadow:      0 8px 56px rgba(39, 19, 164, 0.12);
  --font-display: 'Lora', serif;
  --font-body:    'Apercu Pro', sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  color: var(--surface);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: inherit;
}

/* ── Top bar ────────────────────────────────────────────────────────────────── */

.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  z-index: 100;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */

.site-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 48px 0;
}

.site-wordmark {
  height: 26px;
  width: auto;
}

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

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 48px 80px;
}

.hero-headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(52px, 6.5vw, 80px);
  line-height: 1.05;
  color: var(--surface);
  max-width: 640px;
  margin-bottom: 20px;
}

.hero-body {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 244, 234, 0.65);
  max-width: 440px;
}

/* ── Products ───────────────────────────────────────────────────────────────── */

.products {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 104px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border: 1px solid rgba(39, 19, 164, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  color: var(--primary);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
}

.product-card--soon {
  opacity: 0.75;
}

.product-card--soon::before {
  opacity: 0.45;
}

.card-inner {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
}

.product-wordmark {
  height: 22px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  max-width: 180px;
  flex-shrink: 0;
}

.product-wordmark-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge--live {
  color: var(--primary);
  background: rgba(155, 227, 178, 0.22);
  border: 1px solid rgba(155, 227, 178, 0.45);
}

.badge--live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.badge--soon {
  color: rgba(39, 19, 164, 0.35);
  background: rgba(39, 19, 164, 0.04);
  border: 1px solid rgba(39, 19, 164, 0.09);
}

.product-tagline {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.product-desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(39, 19, 164, 0.55);
  flex: 1;
  max-width: 65ch;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(39, 19, 164, 0.50);
  text-decoration: none;
  transition: color 0.15s ease;
  margin-top: 4px;
}

.product-cta:hover {
  color: var(--primary);
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid rgba(255, 244, 234, 0.15);
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 48px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-credit {
  font-size: 13px;
  color: rgba(255, 244, 234, 0.40);
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 244, 234, 0.50);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: rgba(255, 244, 234, 0.90);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .site-header { padding: 28px 24px 0; }

  .hero {
    padding: 40px 24px 64px;
  }

  .products {
    grid-template-columns: 1fr;
    padding: 0 24px 88px;
    gap: 16px;
  }

  .site-footer {
    padding: 24px 24px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .card-inner { padding: 24px; }

  .product-tagline { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
