/* waddle.nyc · Ice & Ember, Antarctic-night drench.
   The world is cold; the huddle is warm. Amber marks human-gathering moments
   (the join bar, the approve action, the first-flock dots, the ask) plus the
   activity strip, whose hues are the app's real category system. */

:root {
  --night: #0E1620;
  --night-deep: #0B1219;
  --card: #16222E;
  --raised: #22303E;
  --line: #263544;
  --ink: #E6EEF5;
  --sub: #9FB3C4;
  --amber: #F59E0B;
  --amber-bright: #FBBF24;
  --on-amber: #14202B;
  --trust: #5EEAD4;
  --link: #7CB8E8;

  --serif: 'Literata', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --t-hero: clamp(2.7rem, 5.5vw + 1rem, 4.6rem);
  --t-h2: clamp(1.8rem, 2.6vw + 0.9rem, 2.9rem);
  --t-body: clamp(1rem, 0.3vw + 0.95rem, 1.125rem);

  --sp-section: clamp(4.5rem, 9vw, 8.5rem);
  --edge: clamp(1.25rem, 4vw, 3rem);

  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* overflow-x: clip (not hidden): hidden coerces overflow-y to auto and turns
   body into a second scroll container, which desyncs window scroll from what
   the user sees and invites iOS horizontal wiggle. clip just clips. */
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; text-wrap: balance; }

a { color: var(--link); }

/* ---------- nav ---------- */

.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--edge);
  max-width: 76rem;
  margin-inline: auto;
}

.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-links { display: flex; align-items: center; gap: 1.4rem; }

.nav-links a {
  color: var(--sub);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  color: var(--on-amber) !important;
  background: var(--amber);
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--amber-bright); }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 360px) {
  .nav-cta { font-size: 0.84rem; padding: 0.45rem 0.8rem; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(7rem, 14vw, 10.5rem) var(--edge) clamp(3.5rem, 7vw, 6rem);
  /* clip the glow's negative insets so they never inflate mobile scrollWidth */
  overflow: clip;
}

/* Antarctic night: sparse stars, a cold horizon, and one warm glow (the card). */
.hero-sky {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(230,238,245,0.7), transparent 100%),
    radial-gradient(1px 1px at 31% 9%,  rgba(230,238,245,0.45), transparent 100%),
    radial-gradient(1.5px 1.5px at 47% 22%, rgba(230,238,245,0.55), transparent 100%),
    radial-gradient(1px 1px at 63% 7%,  rgba(230,238,245,0.4), transparent 100%),
    radial-gradient(1px 1px at 78% 16%, rgba(230,238,245,0.6), transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 27%, rgba(230,238,245,0.4), transparent 100%),
    radial-gradient(1px 1px at 22% 33%, rgba(230,238,245,0.35), transparent 100%),
    radial-gradient(1px 1px at 55% 38%, rgba(230,238,245,0.3), transparent 100%),
    linear-gradient(180deg, #0A111A 0%, var(--night) 55%, #101A26 100%);
}

.hero-inner {
  position: relative;
  max-width: 76rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: var(--t-hero);
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--amber-bright); }

.hero-sub {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.4vw + 0.9rem, 1.7rem);
  line-height: 1.35;
  margin-top: 1.1rem;
  color: var(--ink);
}

.hero-body {
  margin-top: 1.2rem;
  max-width: 34rem;
  color: var(--sub);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.hero-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--sub);
}

/* buttons */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary:hover { background: var(--amber-bright); }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(22, 34, 46, 0.5);
}
.btn-ghost:hover { border-color: var(--sub); }

/* ---------- the huddle card (hero imagery) ---------- */

.hero-card-wrap { position: relative; justify-self: center; width: min(21.5rem, 100%); }

.huddle-glow {
  position: absolute;
  inset: -18% -22%;
  background: radial-gradient(closest-side, rgba(245,158,11,0.28), rgba(245,158,11,0.07) 55%, transparent 75%);
  filter: blur(6px);
  z-index: 0;
}

.huddle-card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1.5px solid var(--raised);
  border-radius: var(--r-lg);
  padding: 1.35rem;
  transform: rotate(-1.5deg);
  box-shadow: 0 18px 44px rgba(4, 8, 14, 0.5);
}

.chip {
  display: inline-flex; align-items: center;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em;
  color: #fff;
  padding: 0.28rem 0.7rem;
  border-radius: var(--r-pill);
}
.chip-dining { background: #C2410C; }

.huddle-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.2;
  margin-top: 0.8rem;
}

.huddle-meta { color: var(--sub); font-size: 0.9rem; margin-top: 0.35rem; }

.huddle-row {
  display: flex; align-items: center; gap: 0.8rem;
  margin-top: 1.1rem;
}

.pals { display: flex; }
.pal {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 17px;
  line-height: 1;
  border: 2px solid var(--card);
}
.pal + .pal { margin-left: -9px; }
.pal-1 { background: #1864AB; }
.pal-2 { background: #6D4FC4; }
.pal-3 { background: #0E7490; }
.pal-empty {
  background: var(--raised);
  color: var(--sub);
  font-size: 0.78rem; font-weight: 700;
  border-style: dashed; border-color: var(--sub);
}

.pals-label { color: var(--sub); font-size: 0.88rem; font-weight: 600; }

.huddle-join {
  display: block;
  width: 100%;
  margin-top: 1.1rem;
  background: var(--amber);
  color: var(--on-amber);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  padding: 0.75rem;
  border: 0;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 180ms var(--ease-out);
}
.huddle-join:hover { background: var(--amber-bright); }

.join-toast {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber-bright);
  text-align: center;
  opacity: 0;
  transition: opacity 250ms var(--ease-out);
}
.join-toast.show { opacity: 1; }

.huddle-foot {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--sub);
  text-align: center;
}

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  border-block: 1px solid var(--line);
  padding: 0.9rem 0;
  overflow: hidden;
  background: var(--night-deep);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee:hover .marquee-track,
.marquee.paused .marquee-track { animation-play-state: paused; }

.marquee-list {
  display: flex;
  list-style: none;
  gap: 2.4rem;
  padding-right: 2.4rem;
  white-space: nowrap;
}

.marquee-list li {
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--sub);
  font-weight: 600;
  font-size: 0.95rem;
}

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--amber)); }

@keyframes marquee { to { transform: translateX(-50%); } }

.marquee-toggle {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-size: 0.6rem;
  color: var(--sub);
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.marquee-toggle:hover { color: var(--ink); border-color: var(--sub); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-list { flex-wrap: wrap; row-gap: 0.6rem; }
  .marquee-list[aria-hidden="true"] { display: none; }
}

/* ---------- sections ---------- */

.section { padding: var(--sp-section) var(--edge); }

.section-inner { max-width: 68rem; margin-inline: auto; }

.section h2 { font-size: var(--t-h2); letter-spacing: -0.015em; }

.section-lede {
  margin-top: 1.1rem;
  max-width: 40rem;
  color: var(--sub);
  font-size: 1.05em;
}

/* how it works: a real sequence, so the numbers earn their place */

.steps {
  list-style: none;
  margin-top: clamp(2.2rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.steps li { position: relative; padding-top: 0.4rem; }

.step-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--amber);
  display: block;
}

.steps h3 { font-size: 1.2rem; margin-top: 0.7rem; }
.steps p { color: var(--sub); margin-top: 0.45rem; font-size: 0.97rem; }

/* why / compare */

.section-why { background: var(--night-deep); }

.compare {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

@media (max-width: 720px) {
  .compare { grid-template-columns: 1fr; }
}

.compare-col { border-radius: var(--r-lg); padding: 1.6rem 1.7rem; }

.compare-col h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 0.5rem;
}

.compare-col ul { list-style: none; margin-top: 1.1rem; display: grid; gap: 0.75rem; }

.compare-them {
  border: 1px dashed var(--line);
  color: var(--sub);
}
.compare-them h3 { color: var(--sub); }
.compare-them li { padding-left: 1.4rem; position: relative; }
.compare-them li::before {
  content: '✕';
  position: absolute; left: 0;
  color: #7A8CA0;
  font-size: 0.8rem;
}

.compare-us {
  background: var(--card);
  border: 1.5px solid var(--raised);
  box-shadow: 0 14px 36px rgba(4, 8, 14, 0.38);
}
.compare-us h3 { color: var(--amber-bright); }
.compare-us li { padding-left: 1.5rem; position: relative; }
.compare-us li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--trust);
  font-weight: 700;
  font-size: 0.85rem;
}

/* the second product glimpse: approve-a-pal */

.proof-row {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}

@media (max-width: 720px) {
  .proof-row { grid-template-columns: 1fr; }
}

.why-close { max-width: 40rem; color: var(--sub); }

.approve-card {
  width: min(19rem, 100%);
  background: var(--card);
  border: 1.5px solid var(--raised);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.3rem;
  transform: rotate(1.2deg);
  box-shadow: 0 14px 36px rgba(4, 8, 14, 0.38);
}

.approve-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sub);
}

.approve-who {
  display: flex; align-items: center; gap: 0.7rem;
  margin-top: 0.8rem;
}

.approve-name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.approve-rel { color: var(--trust); font-size: 0.82rem; font-weight: 600; margin-top: 0.1rem; }

.approve-actions { display: flex; gap: 0.6rem; margin-top: 1rem; }

.demo-btn {
  flex: 1;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  border-radius: var(--r-md);
}
.demo-btn-yes { background: var(--amber); color: var(--on-amber); }
.demo-btn-no { border: 1px solid var(--line); color: var(--sub); }

.approve-caption {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--sub);
  text-align: center;
}

/* penguin fact */

.section-penguin { text-align: center; }

.penguin-fact {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.8vw + 1rem, 2rem);
  line-height: 1.45;
  max-width: 46rem;
  margin-inline: auto;
  text-wrap: pretty;
}
.penguin-fact em { color: var(--amber-bright); }

.penguin-kicker {
  margin-top: 1.4rem;
  color: var(--sub);
}

/* ---------- neighborhoods ---------- */

.section-flock { padding-top: 0; }

.hoods {
  list-style: none;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hood {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sub);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.45rem 0.95rem;
}

.hood-open { color: var(--ink); border-color: var(--raised); background: var(--card); }

.hood-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

.hood-you { border-style: dashed; font-style: italic; }

.hood-note { margin-top: 1rem; font-size: 0.85rem; color: var(--sub); }

/* ---------- invite (the one warm field) ---------- */

#invite { padding-top: 0; }

.invite-card {
  max-width: 68rem;
  margin-inline: auto;
  background: linear-gradient(160deg, var(--amber-bright), var(--amber) 60%, #D97706);
  color: var(--on-amber);
  border-radius: clamp(18px, 3vw, 28px);
  padding: clamp(2.2rem, 6vw, 4.2rem);
  text-align: center;
}

.invite-card h2 { font-size: var(--t-h2); letter-spacing: -0.015em; }

.invite-lede {
  margin-top: 1rem;
  max-width: 38rem;
  margin-inline: auto;
  font-weight: 600;
}

/* reassurance concentrated where the fear peaks */
.assure {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.6rem;
  margin-top: 1.5rem;
}

.assure li {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  background: rgba(20, 32, 43, 0.14);
}

.invite-ctas {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

.btn-night { background: var(--night); color: var(--ink); }
.btn-night:hover { background: #1A2836; }

.btn-night-ghost {
  background: transparent;
  color: var(--on-amber);
  border: 2px solid rgba(20, 32, 43, 0.45);
}
.btn-night-ghost:hover { border-color: var(--on-amber); }

.invite-note {
  margin-top: 1.4rem;
  max-width: 52ch;
  margin-inline: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(20, 32, 43, 0.75);
}

.email-text { font-weight: 700; color: var(--on-amber); }

.invite-code-line {
  margin-top: 0.9rem;
  max-width: 52ch;
  margin-inline: auto;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--night-deep);
  padding: 2.6rem var(--edge) 3rem;
}

.footer-inner {
  max-width: 76rem;
  margin-inline: auto;
  display: grid;
  gap: 1.2rem;
}

.footer-brand { display: flex; align-items: center; gap: 0.55rem; }
.footer-brand .wordmark { font-size: 1.15rem; }
.footer-made { color: var(--sub); font-size: 0.85rem; margin-left: 0.35rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a {
  color: var(--sub);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

.footer-fine { color: var(--sub); font-size: 0.82rem; }

/* ---------- reveals (JS-additive; content visible without JS) ---------- */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* keyboard focus */
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .huddle-join:focus-visible { border-radius: var(--r-pill); }
.invite-card a:focus-visible, .invite-card button:focus-visible { outline-color: var(--night); }
