/* ============================================================
   MixShift Marketing UI Kit — site theme
   ------------------------------------------------------------
   This file is a THEME, not a token source.
   All design tokens come from /colors_and_type.css (single
   source of truth). This file:
     1. Imports the system tokens
     2. Defines marketing-only LAYOUT primitives (.container,
        .section, .grid, etc.) and COMPONENT styles (.btn,
        .card, .pill, etc.) using those tokens.
     3. Adds a small set of marketing-only token aliases at
        the bottom — clearly flagged as such.
   ------------------------------------------------------------
   RULE: every var(--…) used here must resolve to a token
   defined in colors_and_type.css. If you find yourself reaching
   for a literal hex/rgba, check the system first.
   ============================================================ */

@import url('../../colors_and_type.css');

:root {
  /* ── Marketing-only aliases (no new values; just shorter names) ── */
  --ease: var(--ease-card);              /* alias for legacy --ease references */
  --amber: var(--accent-amber);          /* legacy short name */
  --amber-soft: var(--accent-amber-soft);

  /* ── Marketing-only override: heavier shadows for dark surfaces ──
     The system shadows (defined for both light + dark) are calibrated
     for general use; the marketing site sits on a near-black canvas
     where deeper shadows read better. */
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.40);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.50);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  /* Background, color, and font-family already set by colors_and_type.css */
}

.font-heading { font-family: var(--font-heading); }
.text-brand { color: var(--brand); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ============================================================
   Layout primitives
   ============================================================ */
.container { max-width: var(--max-content); margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-22) 0; position: relative; }

/* ============================================================
   Eyebrow badge
   ============================================================ */
.eyebrow,
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: var(--weight-medium);
  background: var(--brand-soft);
  border: 1px solid rgba(34, 197, 94, 0.30);
  color: var(--brand);
  margin-bottom: var(--space-6);
}

/* ============================================================
   Headlines (marketing-tuned scales)
   System tokens cover these too via h1.hero-xl etc, but we
   keep these aliases for the marketing components that were
   built against them.
   ============================================================ */
h1.hero {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, var(--fs-hero-xl));
  font-weight: var(--weight-bold);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight-xl);
  margin: 0 0 var(--space-6);
}
h2.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h3.card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-card-title);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  margin: 0 0 var(--space-2);
  color: var(--text-primary);
}
.subhead {
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 0 var(--space-8);
}
.section-header { text-align: center; max-width: var(--max-prose); margin: 0 auto 56px; }
.section-header .subhead { margin: 0 auto; }
.section-header-left { text-align: left; max-width: var(--max-prose); margin: 0 0 48px; }
.section-header-left .subhead { margin: 0; }
.section-header-left .eyebrow-badge { margin-bottom: 20px; }

/* ============================================================
   Footer grid
   ============================================================ */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-8);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Mono micro-label — FounderCard role tag, ShiftCard "BUILT BY"
   ============================================================ */
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}
.mono-label.brand { color: var(--brand); }

/* ============================================================
   Founder card
   ============================================================ */
.founder-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.founder-card:last-child { border-bottom: none; }
.founder-photo-wrap { width: 320px; }
.founder-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.founder-photo-placeholder { display: flex; align-items: center; justify-content: center; }
@media (max-width: 800px) {
  .founder-card { grid-template-columns: 1fr; gap: var(--space-6); }
  .founder-photo-wrap { width: 100%; max-width: 280px; }
  .founder-card .founder-body, .founder-card .founder-photo-wrap { order: unset !important; }
}

/* ============================================================
   Shift card
   ============================================================ */
.shift-card { min-height: 280px; }

/* ============================================================
   Email capture grid (responsive)
   ============================================================ */
@media (max-width: 720px) {
  .email-capture-grid { grid-template-columns: 1fr !important; gap: var(--space-6) !important; padding: 28px !important; }
}

/* ============================================================
   Product preview frame
   ============================================================ */
.product-preview-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.product-preview-toolbar {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: var(--weight-medium);
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-card) var(--ease-card);
  white-space: nowrap;
}
.btn-sm { height: 36px; padding: 0 var(--space-4); font-size: 13px; }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-magic {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.20);
}
.btn-magic:hover { border-color: rgba(255, 255, 255, 0.50); background: rgba(255, 255, 255, 0.08); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text-primary); }
.btn-icon { width: 16px; height: 16px; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--duration-card) var(--ease-card);
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   Icon tile
   ============================================================ */
.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-tile.gradient { background: var(--gradient-brand); color: white; }
.icon-tile.flat { background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(34,197,94,0.20); }

/* ============================================================
   Grid
   ============================================================ */
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   Pill
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px var(--space-3);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
}
.pill.coming { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(245,181,70,0.30); }
.pill.live { background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(34,197,94,0.30); }

/* ============================================================
   Backgrounds
   ============================================================ */
.bg-dotgrid {
  background-image: var(--dotgrid-bg);
  background-size: var(--dotgrid-size);
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--gradient-hero-glow);
}
.divider { height: 1px; background: var(--border-subtle); border: none; margin: 0; }
