/* Fonts: self-hosted, Latin subset. Inter and Poppins are both SIL OFL 1.1 (see fonts/LICENSE-NOTE.txt). */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }

:root {
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --label: "Poppins", system-ui, sans-serif;
  
  /* White theme only */
  --bg: #ffffff;
  --text: #0a0a0a;
  --text-muted: rgba(10, 10, 10, 0.68);
  --text-faint: rgba(10, 10, 10, 0.5);
  --surface: #f1f1f1;
  --surface-hover: #e7e7e7;
  --line: rgba(10, 10, 10, 0.09);
  --button: #0a0a0a;
  --button-text: #ffffff;
  --button-hover: #2a2a2a;
  --logo-filter: invert(1); /* logo file is white */
  --error: #d12f34;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  transition: background-color 1s ease, color 1s ease;
}

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.page {
  position: relative;
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 16px 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}

.logo { position: absolute; top: 32px; left: 0; right: 0; margin: 0 auto; width: 80px; height: auto; filter: var(--logo-filter); }

.headline {
  --size: min(72px, calc((min(100vw, 720px) - 32px) / 9.9));
  margin: 28px 0 24px;
  width: 100%;
  font-size: var(--size);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.headline .line { display: block; overflow: hidden; padding: 0.14em 0 0.2em; margin: -0.14em 0 -0.2em; }
.headline .line > span { display: block; }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px 0 10px;
  border-radius: 999px;
  background: var(--surface); color: var(--text);
  font-size: 17px; letter-spacing: 0.01em; text-decoration: none;
  transition: background-color 0.2s ease, transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.pill:hover { background: var(--surface-hover); transform: translateY(-3px) scale(1.04); }
.pill svg { width: 22px; height: 22px; flex: none; }
.pill:hover svg { animation: wiggle 0.5s ease; }
@keyframes wiggle { 25% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-4deg); } }

.about { width: 100%; max-width: 480px; margin: 28px 0 48px; }
.about-lead { margin: 0; text-wrap: pretty; font-size: 21px; line-height: 1.5; color: var(--text-muted); }

.offer { width: 100%; max-width: 480px; overflow: hidden; border-radius: 24px; background: var(--surface); text-align: left; }
.offer-media { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.offer-media img, .offer-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.offer-media figcaption {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  padding: 6px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-size: 13px;
}
.offer-body { padding: 22px 22px 18px; }
.offer-title {
  margin: 0 0 6px; font-family: var(--label); font-size: 14px; font-weight: 500;
  letter-spacing: 0; color: var(--text-faint);
}

.expect { list-style: none; margin: 0 0 20px; padding: 0; font-family: var(--label); font-size: 15px; letter-spacing: 0; }
.expect li { position: relative; padding: 13px 0 13px 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; border-bottom: 1px solid var(--line); }
.expect-icon { position: absolute; left: 0; top: calc(13px + 0.75em - 8px); width: 16px; height: 16px; stroke: var(--text); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; color: var(--text); }
.expect strong { font-weight: 600; color: var(--text); }
.expect-desc { margin-left: 0.9em; color: var(--text-faint); }

.signup { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.signup input[type="email"] {
  flex: 1 1 200px; height: 52px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 10px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 17px; outline: none;
  transition: border-color 0.2s ease, background-color 0.6s ease;
}
.signup input::placeholder { color: var(--text-faint); }
.signup input:focus { border-color: var(--text-faint); }
.signup input:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.signup button {
  position: relative; overflow: hidden; isolation: isolate;
  clip-path: inset(0 round 10px); /* keeps the shimmer clipped in Safari */
  height: 52px; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--button); color: var(--button-text);
  font: inherit; font-size: 17px; font-weight: 500; cursor: pointer;
  transition: background-color 0.2s ease;
}
.signup button:hover { background: var(--button-hover); }
.signup button:focus-visible { clip-path: none; }
.signup button:disabled { opacity: 0.6; cursor: default; }

.shimmer::after {
  content: ""; position: absolute; inset: -50% auto -50% 0; width: 45%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.5) 50%, transparent 80%);
  transform: translateX(-160%) skewX(-12deg);
  animation: shimmer 3.2s ease-in-out 2.4s infinite;
  pointer-events: none; z-index: -1; mix-blend-mode: overlay;
}
.shimmer:disabled::after { animation: none; }
@keyframes shimmer { 0% { transform: translateX(-160%) skewX(-12deg); } 45%, 100% { transform: translateX(360%) skewX(-12deg); } }

.signup-status { flex-basis: 100%; min-height: 1.4em; margin: 4px 0 0; font-size: 15px; color: var(--text-muted); }
.signup-status[data-state="error"] { color: var(--error); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.contact { margin: 40px 0 0; font-size: 16px; line-height: 1.5; color: var(--text-muted); text-wrap: balance; }
.contact span, .contact a { white-space: nowrap; }
.contact a { color: var(--text); font-weight: 500; text-decoration: none; }
.contact a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.footer { margin-top: 24px; font-size: 15px; color: var(--text-faint); letter-spacing: 0.01em; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-sep { margin: 0 6px; }
.legal-footer { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }
.prose .footer a { color: inherit; }
.prose .footer a:hover { color: var(--text); }

/* Privacy page */
.prose { max-width: 640px; margin: 0 auto; padding: 64px 16px 96px; font-size: 17px; line-height: 1.65; color: var(--text-muted); }
.prose h1 { margin: 32px 0 4px; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
.prose h2 { margin: 40px 0 8px; font-size: 20px; color: var(--text); }
.prose a { color: var(--text); }
.prose .back { text-decoration: none; color: var(--text-faint); font-size: 15px; }
.prose .updated { margin: 0 0 24px; font-size: 14px; color: var(--text-faint); }

/* Intro (only when JS is running and motion is allowed) */
.js-motion .page > * { opacity: 0; animation: rise 0.8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
.js-motion .headline { opacity: 1; animation: none; }
.js-motion .headline .line > span { transform: translateY(115%); animation: slide 1.1s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(0.3s + var(--i, 0) * 0.12s); }
.js-motion .logo { --d: 0s; animation-name: fade; }
.js-motion .socials { --d: 0.9s; }
.js-motion .about { --d: 1.1s; }
.js-motion .offer { --d: 1.5s; }
.js-motion .contact { --d: 1.9s; }
.js-motion .footer { --d: 2s; animation-name: fade; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide { to { transform: none; } }

@media (max-width: 640px) {
  .socials { flex-wrap: nowrap; gap: 6px; }
  .pill { height: 36px; gap: 5px; padding: 0 9px 0 7px; font-size: clamp(11px, 3vw, 15px); letter-spacing: 0; }
  .pill svg { width: 17px; height: 17px; }
  .footer-links { display: block; margin-top: 6px; }
  .footer-sep-first { display: none; }
  .expect { font-size: 14px; }
}
@media (max-width: 480px) {
  .page { padding-top: 72px; }
  .logo { top: 20px; width: 72px; }
  .about-lead { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
