@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@500;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #ffffff;
  --text: #111c2d;
  --text-muted: #64748b;
  --surface-low: #f0f3ff;
  --surface: #e7eeff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #b90538;
  --accent-soft: #ffdadb;
  --accent-strong: #92002a;

  --font-display: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system,
    'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
    Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.hero {
  text-align: center;
  margin-bottom: 5rem;
}

.hero__logo {
  position: relative;
  display: inline-block;
  margin-bottom: 1.75rem;
  isolation: isolate;
}

.hero__logo-img {
  display: block;
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 12px 28px rgba(185, 5, 56, 0.22));
  position: relative;
  z-index: 1;
  animation: logoIn 0.6s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes logoIn {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.confetti span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--w);
  height: var(--h);
  background: var(--c);
  border-radius: 1.5px;
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(0);
  opacity: 0;
  animation: burst 1.4s cubic-bezier(.18,.7,.25,1) forwards;
  animation-delay: var(--t);
}

@keyframes burst {
  0% {
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(1);
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) rotate(calc(var(--a) + 90deg)) translateY(calc(var(--d) * -1)) scale(0.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  .hero__logo-img { animation: none; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 7vw, 5rem);
  letter-spacing: -0.028em;
  line-height: 1.04;
  margin: 0 0 1.5rem;
  color: var(--text);
  text-wrap: balance;
  padding: 0 1rem;
}

.hero__lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 44ch;
}

.pin {
  text-align: center;
}

.pin__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  margin: 0 0 2.5rem;
  letter-spacing: -0.015em;
  color: var(--text);
}

.placeholder {
  display: block;
  margin: 0 auto;
  max-width: 720px;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 30px 60px -20px rgba(15, 23, 42, 0.08),
    0 4px 12px rgba(15, 23, 42, 0.05);
}

.sp-callout {
  position: fixed;
  top: 348px;
  right: 38px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transition: opacity 200ms ease;
}

.sp-callout--ready { opacity: 1; }

.sp-callout__box {
  background: #ffffff;
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow:
    0 8px 20px rgba(185, 5, 56, 0.12),
    0 1px 3px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 170px;
}

.sp-callout__box strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 700;
}

.sp-callout__box span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sp-callout__arrow {
  width: 72px;
  height: 40px;
  display: block;
}

@media (max-width: 720px) {
  .page { padding: 3rem 1rem 2rem; }
  .hero { margin-bottom: 3rem; }
  .sp-callout { display: none; }
}

/* Legal pages (Privacy, Terms) — long-form layout, no hero. */
.page--legal {
  max-width: 720px;
  padding: 3.5rem 1.5rem 4rem;
}

.legal-header {
  text-align: left;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.legal-back:hover { color: var(--text); }

.legal-back img {
  display: block;
  border-radius: 8px;
}

.legal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.legal-effective {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.85rem;
  color: var(--text);
}

.legal h2:first-child { margin-top: 0; }

.legal p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.65;
}

.legal ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover { color: var(--accent-strong); }

.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.legal-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.legal-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.legal-footer a:hover { color: var(--text); }

@media (max-width: 720px) {
  .page--legal { padding: 2rem 1rem 3rem; }
}
