/* marketing.css — TIF.pink Website v1.0 design system.
   Design authority: approved Figma Make project "TIF.pink Website Design v1.0".
   Tokens are scoped here (loaded only by the marketing pages) so the game's
   palette in base.css is never altered. Display font: Baloo 2. Body: Nunito. */

:root {
  --bg: #fff5f8;
  --surface: #ffffff;
  --brand: #e8407a;
  --brand-2: #ff7eb3;
  --brand-fg: #ffffff;
  --plum: #2d1a2e;
  --plum-2: #5a1a3a;
  --ink: #2d1a2e;
  --body: #6b3a55;
  --muted: #fce8f2;
  --muted-2: #ffd6e8;
  --muted-fg: #9d6080;
  --accent: #ff7eb3;
  --gold: #ffd700;
  --border: #f5c2d8;
  --ring: #e8407a;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --grad-brand: linear-gradient(135deg, #e8407a 0%, #ff7eb3 100%);
  --grad-hero: radial-gradient(ellipse 80% 70% at 50% 30%, #ffd6e8 0%, #fff5f8 60%, #fff5f8 100%);
  --grad-dark: linear-gradient(135deg, #2d1a2e 0%, #5a1a3a 100%);
  --grad-muted: linear-gradient(180deg, #fff5f8 0%, #fce8f2 100%);
  --grad-text: linear-gradient(135deg, #e8407a 0%, #ff7eb3 60%, #ffd700 100%);
  --shadow-sm: 0 4px 16px rgba(232, 64, 122, 0.07);
  --shadow-md: 0 4px 20px rgba(232, 64, 122, 0.08);
  --shadow-lg: 0 20px 50px rgba(232, 64, 122, 0.18);
  --shadow-brand: 0 6px 24px rgba(232, 64, 122, 0.4);
  --font-display: "Baloo 2", "Quicksand", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

body { background: var(--bg); color: var(--ink); font-family: var(--font-body); }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--brand-fg); text-decoration: none; padding: 16px 32px; border-radius: var(--radius-pill);
  background: var(--grad-brand); box-shadow: var(--shadow-brand);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: scale(1.05); }
.btn-primary:active { transform: scale(.95); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--brand); text-decoration: none; padding: 14px 24px; border-radius: var(--radius-pill);
  border: 2px solid var(--brand); background: transparent; transition: background .2s ease;
}
.btn-outline:hover { background: rgba(232, 64, 122, 0.06); }

/* ---------- nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; min-height: 64px; background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-nav.scrolled {
  background: rgba(255, 245, 248, 0.92); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.site-nav .brand { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.5px; text-decoration: none; }
.site-nav .brand .tif { color: var(--brand); }
.site-nav .brand .dot { color: var(--brand-2); }
.site-nav .brand .pink { color: var(--brand); }
.site-nav__links { display: flex; align-items: center; gap: 24px; }
.site-nav__link { font-family: var(--font-display); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); transition: color .2s ease; }
.site-nav__link:hover, .site-nav__link.active { color: var(--brand); }
.site-nav__cta {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--brand-fg);
  text-decoration: none; padding: 10px 22px; border-radius: var(--radius-pill);
  background: var(--grad-brand); box-shadow: var(--shadow-brand); transition: transform .2s ease;
}
.site-nav__cta:hover { transform: scale(1.05); }
.site-nav__cta:active { transform: scale(.95); }
.site-nav__toggle {
  display: none; width: 56px; height: 56px; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; background: transparent; border: 0; padding: 0;
  border-radius: 12px; cursor: pointer;
}
.site-nav__toggle span { display: block; width: 24px; height: 3px; border-radius: 3px; background: var(--brand); transition: transform .3s ease, opacity .3s ease; }
.site-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 40; display: none; }
.drawer.open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(45, 26, 46, 0.5); }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 288px; max-width: 80vw;
  background: var(--bg); box-shadow: -8px 0 32px rgba(232, 64, 122, 0.12);
  padding: 96px 32px 32px; display: flex; flex-direction: column; gap: 4px;
}
.drawer__link { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--muted); }
.drawer__cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px;
  margin-top: 16px; font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--brand-fg); text-align: center; text-decoration: none; padding: 14px;
  border-radius: var(--radius-pill); background: var(--grad-brand); box-shadow: var(--shadow-brand);
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px 24px 80px; overflow: hidden; background: var(--grad-hero);
}
.hero__inner { position: relative; z-index: 10; max-width: 760px; margin: 0 auto; }
.hero__cappy { margin: 0 auto 8px; display: flex; justify-content: center; filter: drop-shadow(0 12px 24px rgba(232, 64, 122, 0.22)); }
.hero__eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.hero__title {
  font-family: var(--font-display); font-weight: 800; line-height: 1.05; margin: 0 0 20px;
  font-size: clamp(3rem, 8vw, 6rem);
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__sub { font-family: var(--font-body); font-size: clamp(1rem, 2.4vw, 1.25rem); line-height: 1.6; color: var(--body); max-width: 520px; margin: 0 auto 40px; }
.hero__actions { display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; }
@media (min-width: 640px) { .hero__actions { flex-direction: row; } }

/* ---------- decorative floats (bubbles + stars) ---------- */
.deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bubble { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .18; }
.star { position: absolute; width: 16px; height: 16px; }
.star svg { display: block; }
.cappy-float { will-change: transform; }

/* ---------- generic section ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 96px 24px; }
.section--muted { background: var(--grad-muted); }
.section__eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); margin: 0 0 12px; }
.section__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); margin: 0 0 16px; line-height: 1.1; }
.section__lead { font-family: var(--font-body); color: var(--muted-fg); font-size: 1rem; line-height: 1.6; max-width: 520px; margin: 0 auto; }
.section--center { text-align: center; }

/* ---------- meet cappy ---------- */
.meet { display: grid; gap: 48px; align-items: center; }
@media (min-width: 768px) { .meet { grid-template-columns: 1fr 1fr; } }
.meet__art { position: relative; display: flex; justify-content: center; }
.meet__halo { width: 256px; height: 256px; border-radius: 50%; background: linear-gradient(135deg, #ffd6e8 0%, #fff0f6 100%); display: flex; align-items: center; justify-content: center; }
.meet__badge { position: absolute; bottom: 8px; right: 0; font-family: var(--font-display); font-weight: 700; font-size: 12px; color: #fff; background: var(--brand); padding: 6px 12px; border-radius: var(--radius-pill); box-shadow: 0 3px 10px rgba(232, 64, 122, 0.4); }
.meet__eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); margin: 0 0 12px; }
.meet__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); margin: 0 0 20px; line-height: 1.1; }
.meet__text { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--body); margin: 0 0 16px; }

/* ---------- world cards ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { display: block; text-decoration: none; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--border); box-shadow: var(--shadow-md); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.card__media { height: 144px; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.card__body { padding: 24px; }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); margin: 0 0 8px; }
.card__desc { font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--muted-fg); margin: 0 0 16px; }
.card__more { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--brand); transition: transform .2s ease; }
.card:hover .card__more { transform: translateX(4px); }

/* ---------- story ---------- */
.story { text-align: center; max-width: 640px; margin: 0 auto; }
.story__icon { font-size: 48px; margin-bottom: 24px; }
.story__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink); margin: 0 0 20px; }
.story__text { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--body); margin: 0 0 16px; }

/* ---------- dark parents CTA block ---------- */
.parents-cta { background: var(--grad-dark); border-radius: var(--radius-lg); padding: 64px 24px; max-width: 1080px; margin: 0 24px 40px; margin-left: auto; margin-right: auto; text-align: center; }
.parents-cta__eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-2); margin: 0 0 12px; }
.parents-cta__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: #fff; margin: 0 0 16px; }
.parents-cta__text { font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: #d4a0c0; max-width: 560px; margin: 0 auto 32px; }

/* ---------- footer ---------- */
.site-footer { background: linear-gradient(180deg, #fff5f8 0%, #ffd6e8 100%); border-top: 1px solid var(--border); padding: 40px 24px; margin-top: 64px; }
.site-footer__inner { max-width: 1024px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; align-items: center; }
@media (min-width: 640px) { .site-footer__inner { flex-direction: row; justify-content: space-between; } }
.site-footer .brand { font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.site-footer__note { font-family: var(--font-body); font-size: 12px; color: var(--muted-fg); }
.site-footer__nav { display: flex; gap: 24px; }
.site-footer__nav a { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--muted-fg); text-decoration: none; }
.site-footer__nav a:hover { color: var(--brand); }
.site-footer__copy { font-family: var(--font-body); font-size: 12px; color: #c4a0b0; }

/* ---------- entry page (/6) ---------- */
.entry { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 80px; overflow: hidden; background: radial-gradient(ellipse 90% 80% at 50% 40%, #ffd6e8 0%, #fff5f8 70%); }
.confetti { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; border-radius: 50%; opacity: .25; }
.entry__inner { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.entry__cappy { filter: drop-shadow(0 16px 32px rgba(232, 64, 122, 0.25)); }
.entry__title { font-family: var(--font-display); font-weight: 800; line-height: 1.1; margin: 0; font-size: clamp(2.4rem, 6vw, 4rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.entry__sub { font-family: var(--font-body); font-size: clamp(1rem, 2.4vw, 1.125rem); line-height: 1.6; color: var(--body); max-width: 380px; }
.entry__actions { display: flex; flex-direction: column; gap: 16px; align-items: center; }
@media (min-width: 640px) { .entry__actions { flex-direction: row; } }
.entry__hint { font-family: var(--font-body); font-size: 12px; color: #c4a0b0; }

/* ---------- generic inner page ---------- */
.page { max-width: 896px; margin: 0 auto; padding: 120px 24px 80px; }
.page__header { text-align: center; margin-bottom: 56px; }
.page__icon { font-size: 48px; margin-bottom: 16px; }
.page__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.5rem); color: var(--ink); margin: 0 0 16px; }
.page__lead { font-family: var(--font-body); font-size: 1.125rem; line-height: 1.6; color: var(--body); max-width: 576px; margin: 0 auto; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 639px) { .grid-2 { grid-template-columns: 1fr; } }
.info-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.info-card__icon { font-size: 32px; margin-bottom: 16px; }
.info-card__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); margin: 0 0 8px; }
.info-card__body { font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--body); margin: 0; }

/* ---------- privacy ---------- */
.privacy-note { background: var(--muted); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px; font-family: var(--font-body); font-size: 14px; color: #8b1a4a; margin-bottom: 40px; }
.privacy-note strong { font-family: var(--font-display); }
.privacy-section { margin-bottom: 40px; max-width: 640px; margin-left: auto; margin-right: auto; }
.privacy-section h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); margin: 0 0 12px; }
.privacy-section p { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--body); margin: 0 0 12px; }
.privacy-list { font-family: var(--font-body); line-height: 1.7; color: var(--body); }
.privacy-list li { margin-bottom: 8px; }

/* ---------- privacy page container (left-aligned column, Figma PrivacyPage) ---------- */
.privacy { max-width: 720px; margin: 0 auto; padding: 120px 24px 80px; text-align: left; }
.privacy .page__header { text-align: left; margin-bottom: 40px; }
.privacy .page__lead { margin: 0; }
.privacy .privacy-section { max-width: none; margin-left: 0; margin-right: 0; }

/* ---------- parents gate / console (functional, restyled to v1.0) ---------- */
.gate-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.gate-card h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.gate-card p { font-family: var(--font-body); color: var(--body); }
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px;
  font-family: var(--font-display); font-weight: 700; color: var(--brand-fg);
  text-decoration: none; padding: 14px 28px; border-radius: var(--radius-pill);
  background: var(--grad-brand); box-shadow: var(--shadow-brand);
}
.cta.secondary { background: transparent; color: var(--brand); border: 2px solid var(--brand); box-shadow: none; }
.gate-input { font-family: var(--font-body); font-size: 18px; padding: 12px; border-radius: 10px; border: 2px solid var(--border); width: 100%; text-transform: uppercase; }
.gate-error { font-family: var(--font-body); color: #c0392b; min-height: 18px; font-size: 14px; }

/* ---------- responsive nav ---------- */
@media (max-width: 767px) {
  .site-nav__links { display: none; }
  .site-nav__toggle { display: flex; }
}

/* ---------- section entrance reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- confetti bob ---------- */
@keyframes confettiFall { 0%, 100% { transform: translateY(-12px); } 50% { transform: translateY(12px); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cappy-float { transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
