/* Mooots site styles. Colors and type match the app (Mooots/constants/tokens.ts). */

@font-face { font-family: "Albert Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/AlbertSans-Light.ttf") format("truetype"); }
@font-face { font-family: "Albert Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/AlbertSans-Regular.ttf") format("truetype"); }
@font-face { font-family: "Albert Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/AlbertSans-SemiBold.ttf") format("truetype"); }

:root {
  --paper: #111113;
  --raised: #1C1C1F;
  --ink: #FAF5EF;
  --ink-soft: #CFCCD6;
  --ink-faint: #A8A4B3;
  --rule: rgba(250, 245, 239, 0.16);
  --focus: #7EA1FF;
  --danger: #F48ACB;
}

html { color-scheme: dark; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Albert Sans", system-ui, sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; }
a { color: var(--ink-soft); }
a:hover { color: var(--ink); }
[hidden] { display: none !important; }

/* ---------- Teaser (index.html) ---------- */

/* Black header band with the app's grid (fading out downward), then the
   dot texture behind the form and footer. Same look as the app's screens. */
.teaser { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 10; background: #000000; border-bottom: 1px solid var(--rule); padding: 14px 24px; display: flex; justify-content: center; }
.below { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; padding: 0 24px; }
.below .site-footer { padding: 24px 0 28px; }

.grid { position: relative; isolation: isolate; }
.top.grid { position: sticky; }
.grid::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(250, 245, 239, 0.20) 1px, transparent 1px), linear-gradient(90deg, rgba(250, 245, 239, 0.20) 1px, transparent 1px);
  background-size: 39px 39px; background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.grid.up::before { -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); }

.dots { background-image: radial-gradient(circle, rgba(250, 245, 239, 0.11) 1.4px, transparent 1.8px); background-size: 20px 20px; background-position: 10px 10px; }

/* Header bar: small dancing logo on the left, Join the waitlist on the right. */
.bar { width: 100%; max-width: 1040px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: block; line-height: 0; }
.brand .logo { display: block; width: clamp(96px, 24vw, 128px); height: auto; aspect-ratio: 880 / 350; }
.nav-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s; }
.nav-cta:hover { background: #FFFFFF; color: var(--paper); }
.nav-cta:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Hero: the caption as the headline. */
.hero-title { margin: 0; font-size: clamp(40px, 7vw, 64px); font-weight: 300; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.hero-title span { color: var(--ink-soft); }




.waitlist { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.waitlist label { font-size: 17px; color: var(--ink); }

/* Phone field: "+1" prefix, input and button joined in one rounded bar. */
.pf { display: flex; align-items: center; width: 100%; max-width: 400px; box-sizing: border-box; height: 52px; margin-top: 24px; padding: 5px 5px 5px 16px; background: var(--raised); border: 1px solid rgba(250, 245, 239, 0.28); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.pf:hover { border-color: rgba(250, 245, 239, 0.45); }
.pf:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(126, 161, 255, 0.22); }
.pf.err { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(244, 138, 203, 0.18); }
.pf-prefix { font-size: 17px; color: var(--ink-soft); padding-right: 10px; border-right: 1px solid var(--rule); line-height: 22px; }
.pf input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 8px 0 10px; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: inherit; font-size: 17px; letter-spacing: 0.02em; }
.pf input::placeholder { color: #8E8B96; }
.pf button { flex: 0 0 auto; height: 40px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--ink); color: var(--paper); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, opacity .15s; }
.pf button:hover { background: #FFFFFF; }
.pf button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pf button:disabled { opacity: 0.6; cursor: default; }
.btn-short { display: none; }
/* Narrow phones: shorter button so the full number fits in the field. */
@media (max-width: 420px) {
  .btn-long { display: none; }
  .btn-short { display: inline; }
  .pf button { padding: 0 16px; }
}
.busy .btn-long, .busy .btn-short { display: none; }
.busy .pf button::after { content: "Joining…"; }

.field-error { margin: 10px 0 0; font-size: 13px; line-height: 20px; color: var(--danger); }
/* No reserved gap: the error line only takes space when there's an error. */
.field-error:empty { display: none; }
.consent { margin: 16px 0 0; max-width: 400px; font-size: 12px; line-height: 1.6; color: var(--ink-faint); }

/* Off-screen trap field for bots. People never see or fill it. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.joined { width: 100%; max-width: 400px; box-sizing: border-box; background: var(--raised); border: 1px solid rgba(250, 245, 239, 0.10); border-radius: 14px; padding: 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; animation: joined-in .35s ease-out; }
.joined strong { font-size: 20px; font-weight: 600; margin-top: 8px; }
.joined > span { font-size: 15px; color: var(--ink-soft); }
/* The app's "You're in" badge (StatusBadge joined, tint variant). */
.joined .badge-in { padding: 4px 12px; border-radius: 999px; border: 1px solid #6FD39E; background: rgba(111, 211, 158, 0.12); color: #6FD39E; font-size: 11px; font-weight: 600; }
.joined .share { margin-top: 16px; height: 44px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--ink); color: var(--paper); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; }
.joined .share:hover { background: #FFFFFF; }
.joined .share:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@keyframes joined-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .joined { animation: none; } }

.site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: 12px; color: var(--ink-faint); }
.site-footer a { color: var(--ink-faint); }
/* The © line sits on its own line on phones; the links wrap as whole links, never mid-link. */
.site-footer .links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.site-footer .links a { white-space: nowrap; }

/* ---------- About, How it works, Who we are, FAQ (index.html) ---------- */

.band-inner h2 { margin: 0; font-size: 32px; font-weight: 300; letter-spacing: -0.4px; line-height: 1.15; }
.band-inner p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.band-inner .tagline { margin-top: 6px; font-size: 21px; font-weight: 300; color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 8px; }
.step-card { background: var(--raised); border: 1px solid rgba(250, 245, 239, 0.10); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.step-card .cap { font-size: 11px; font-weight: 600; letter-spacing: 0.8px; }
.step-card h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.band-inner .step-card p { font-size: 15px; line-height: 1.55; }

.facts { margin: 8px 0 0; padding: 4px 20px; background: var(--raised); border: 1px solid rgba(250, 245, 239, 0.10); border-radius: 14px; }
.facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid rgba(250, 245, 239, 0.10); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 13px; color: var(--ink-faint); }
.facts dd { margin: 0; font-size: 15px; color: var(--ink); }

.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.faq details { background: var(--raised); border: 1px solid rgba(250, 245, 239, 0.10); border-radius: 14px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--ink-soft); }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.faq details p { padding-bottom: 18px; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Text pages (privacy.html, terms.html) ---------- */

.doc { padding: 32px 24px 96px; }
.doc nav, .doc article, .doc .site-footer { max-width: 680px; margin: 0 auto; }
.doc nav { padding-bottom: 72px; }
.doc nav a { display: inline-block; }
.doc nav .logo { width: 110px; height: 40px; }
.doc article { display: flex; flex-direction: column; gap: 40px; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.doc header { display: flex; flex-direction: column; gap: 12px; }
.doc h1 { margin: 0; font-weight: 300; font-size: clamp(36px, 5vw, 48px); line-height: 1.1; color: var(--ink); }
.doc .meta { margin: 0; font-size: 14px; color: var(--ink-faint); }
.doc section { display: flex; flex-direction: column; gap: 12px; }
.doc h2 { margin: 0; font-size: 20px; font-weight: 600; color: var(--ink); }
.doc p, .doc ul { margin: 0; }
.doc ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .site-footer { justify-content: flex-start; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--rule); }

/* Just the three dancing figures above the hero headline. */
.hero-band .mark { display: block; width: clamp(160px, 40vw, 224px); height: auto; aspect-ratio: 530 / 300; margin: 0 auto clamp(44px, 8vh, 72px); }
/* Let the dance draw past the logo's box so raised arms and kicks never get clipped. */
.logo { overflow: visible; }

/* ---------- Section bands: each section gets its own full-width surface,
   a thin line between them and room to breathe. ---------- */
.band { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; padding: clamp(80px, 12vh, 128px) 24px; border-top: 1px solid var(--rule); scroll-margin-top: 70px; }
.band-inner { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.band-dots { background-color: var(--paper); background-image: radial-gradient(circle, rgba(250, 245, 239, 0.11) 1.4px, transparent 1.8px); background-size: 20px 20px; background-position: 10px 10px; }
.band-grid { background: #000000; }
.band-plain { background: var(--paper); }
.band h2 { margin: 0 0 4px; font-size: clamp(34px, 5vw, 40px); font-weight: 300; letter-spacing: -0.5px; line-height: 1.1; color: var(--ink); }

.hero-band { border-top: 0; }
.hero-band .band-inner { max-width: 760px; text-align: center; }

/* Join the waitlist: the finale, a raised card on the grid band, footer below. */
.join-band { padding-bottom: 0; }
.join-card { width: 100%; box-sizing: border-box; background: var(--raised); border: 1px solid rgba(250, 245, 239, 0.12); border-radius: 20px; padding: clamp(32px, 6vw, 48px) clamp(20px, 5vw, 40px); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.join-card .joined { background: transparent; border: 0; padding: 0; }
.join-band .site-footer { padding: clamp(64px, 10vh, 96px) 0 28px; }
/* Keep the form's small print small inside the section styles. */
.band-inner .consent { margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--ink-faint); }
.band-inner .field-error { margin-top: 10px; font-size: 13px; line-height: 20px; color: var(--danger); }

/* One continuous dotted surface; sections are split by a thin divider line
   (content width, not edge to edge) with generous space around it. */
.teaser:has(.band) { background-color: var(--paper); background-image: radial-gradient(circle, rgba(250, 245, 239, 0.11) 1.4px, transparent 1.8px); background-size: 20px 20px; background-position: 10px 10px; }
.band { border-top: 0; padding: 0 24px; background: transparent; }
.band:not(.hero-band) .band-inner { border-top: 1px solid var(--rule); padding-top: clamp(64px, 10vh, 104px); }
.band:not(:last-child) { padding-bottom: clamp(64px, 10vh, 104px); }
.hero-band { padding-top: clamp(72px, 12vh, 128px); }

/* Privacy policy: big part headings (The Mooots app, The website and waitlist,
   For everyone) with the old section style for the topics inside them. */
.doc h2.part { margin: 24px 0 -8px; padding-top: 32px; border-top: 1px solid var(--rule); font-size: 28px; font-weight: 300; letter-spacing: -0.3px; }
.doc h3 { margin: 0; font-size: 20px; font-weight: 600; color: var(--ink); }

/* The hero figures are a button: tap them to make them jump (assets/faces.js). */
.mark-btn { display: block; margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.mark-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 8px; }
