/* ================================================================
   TASTEPRINT DESIGN SYSTEM
   Shared tokens, type colors, header/footer, and base components.
   ================================================================ */

/* --- TOKENS --- */
:root {
  --tp-purple: #7c3aed;
  --tp-purple-dark: #6d28d9;
  --tp-purple-light: #a78bfa;
  --tp-purple-bg: #f5f3ff;
  --tp-coral: #e11d48;
  --tp-coral-bg: #fff1f2;
  --tp-amber: #f59e0b;
  --tp-ink: #0f172a;
  --tp-text: #1e293b;
  --tp-muted: #64748b;
  --tp-subtle: #94a3b8;
  --tp-border: #e2e8f0;
  --tp-surface: #f8fafc;
  --tp-bg: #fafaf9;
  --tp-font-display: 'Space Grotesk', sans-serif;
  --tp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --tp-radius-sm: 8px;
  --tp-radius-md: 12px;
  --tp-radius-lg: 16px;
  --tp-radius-xl: 20px;
  --tp-radius-pill: 50px;
}

/* --- TYPE COLORS --- */
[data-type="the-curator"]     { --type-accent:#7C3AED; --type-bg:#F5F3FF; --type-text:#6D28D9; }
[data-type="the-romantic"]    { --type-accent:#E11D48; --type-bg:#FFF1F2; --type-text:#BE123C; }
[data-type="the-homebody"]    { --type-accent:#D97706; --type-bg:#FEF3C7; --type-text:#92400E; }
[data-type="the-drifter"]     { --type-accent:#0D9488; --type-bg:#F0FDFA; --type-text:#115E59; }
[data-type="the-connoisseur"] { --type-accent:#4F46E5; --type-bg:#EEF2FF; --type-text:#3730A3; }
[data-type="the-aesthete"]    { --type-accent:#DB2777; --type-bg:#FDF2F8; --type-text:#9D174D; }
[data-type="the-explorer"]    { --type-accent:#059669; --type-bg:#ECFDF5; --type-text:#065F46; }
[data-type="the-free-spirit"] { --type-accent:#0284C7; --type-bg:#F0F9FF; --type-text:#075985; }
[data-type="the-host"]        { --type-accent:#C2410C; --type-bg:#FFF7ED; --type-text:#7C2D12; }
[data-type="the-socialite"]   { --type-accent:#A855F7; --type-bg:#FAF5FF; --type-text:#7E22CE; }
[data-type="the-connector"]   { --type-accent:#EA580C; --type-bg:#FFF7ED; --type-text:#9A3412; }
[data-type="the-companion"]   { --type-accent:#65A30D; --type-bg:#F7FEE7; --type-text:#3F6212; }
[data-type="the-tastemaker"]  { --type-accent:#7C3AED; --type-bg:#EDE9FE; --type-text:#5B21B6; }
[data-type="the-trendsetter"] { --type-accent:#EC4899; --type-bg:#FCE7F3; --type-text:#9D174D; }
[data-type="the-adventurer"]  { --type-accent:#F59E0B; --type-bg:#FFFBEB; --type-text:#92400E; }
[data-type="the-wild-card"]   { --type-accent:#EF4444; --type-bg:#FEF2F2; --type-text:#991B1B; }

.type-accent { color: var(--type-accent); }

/* Type symbol avatar — use currentColor so parent sets color */
.type-symbol {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  vertical-align: middle;
}
.type-symbol-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--type-accent, var(--tp-purple)) 15%, transparent);
  color: var(--type-accent, var(--tp-purple));
}
.type-symbol-wrap .type-symbol { width: 1.25rem; height: 1.25rem; }

.type-badge {
  display: inline-block;
  background: var(--type-bg);
  color: var(--type-text);
  border: 1.5px solid color-mix(in srgb, var(--type-accent) 25%, transparent);
  padding: 4px 14px;
  border-radius: var(--tp-radius-pill);
  font-size: 12px;
  font-weight: 600;
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--tp-font-body);
  color: var(--tp-text);
  line-height: 1.6;
  background: var(--tp-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- SHARED HEADER --- */
.tp-header {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tp-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.tp-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--tp-font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--tp-purple);
  letter-spacing: -0.01em;
}
.tp-logo svg { flex-shrink: 0; }
.tp-header-cta {
  background: var(--tp-purple);
  color: #fff;
  padding: 9px 22px;
  border-radius: var(--tp-radius-pill);
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.tp-header-cta:hover { background: var(--tp-purple-dark); transform: translateY(-1px); }

/* --- SHARED FOOTER --- */
.tp-footer {
  background: var(--tp-ink);
  color: #fff;
  padding: 48px 24px 32px;
}
.tp-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.tp-footer-brand {
  font-family: var(--tp-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--tp-purple-light);
}
.tp-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.tp-footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  transition: color 0.2s;
}
.tp-footer-links a:hover { color: #fff; }
.tp-footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
@media (max-width: 640px) {
  .tp-footer-inner { flex-direction: column; text-align: center; }
  .tp-footer-links { justify-content: center; }
}

/* --- SHARED BUTTONS --- */
.tp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--tp-purple);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--tp-radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(124,58,237,0.25);
}
.tp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,0.35); }

.tp-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--tp-purple);
  padding: 14px 32px;
  border-radius: var(--tp-radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.tp-btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.22); }

.tp-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--tp-text);
  padding: 14px 32px;
  border-radius: var(--tp-radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid var(--tp-border);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
}
.tp-btn-outline:hover { border-color: var(--tp-purple-light); transform: translateY(-1px); }

/* --- SHARED SECTION STYLES --- */
.tp-section {
  padding: 80px 24px;
}
.tp-container {
  max-width: 1140px;
  margin: 0 auto;
}
.tp-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tp-purple);
  margin-bottom: 10px;
  text-align: center;
}
.tp-section-title {
  font-family: var(--tp-font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--tp-ink);
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.15;
}

/* --- LOGO SVG (shared markup) --- */
.tp-logo-svg {
  display: inline-block;
  width: 26px;
  height: 26px;
}

/* --- SCROLL REVEAL --- */
@keyframes tpFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tp-reveal { opacity: 0; }
.tp-reveal.tp-visible { animation: tpFadeUp 0.6s ease both; }

/* --- UTILITY --- */
.tp-text-center { text-align: center; }
.tp-muted { color: var(--tp-muted); }
.tp-small { font-size: 13px; }

@media (max-width: 768px) {
  .tp-section { padding: 56px 16px; }
}
