/* ==========================================================================
   SPARED.ME — components
   Pre-launch page. The hero is a tally board drawn in SVG, because the app
   doesn't exist yet and the icon already told us what the interface is.
   ========================================================================== */

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  border-bottom: 1px solid var(--rule);
  background: rgba(12, 16, 15, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; overflow: hidden; display: block;
  border: 1px solid var(--rule-2); box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 22px -6px var(--neon-glow);
  transition: transform var(--t), border-color var(--t);
}
.brand:hover .brand-mark { transform: scale(1.05) rotate(-3deg); border-color: var(--rule-neon); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--paper); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { position: relative; font-size: 0.9rem; font-weight: 500; color: var(--text-3); transition: color var(--t); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px;
  background: var(--neon); transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.pill-soon {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.05rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--neon); border: 1px solid var(--rule-neon); background: var(--neon-tint);
}
.pill-soon i { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: blink 2.2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--rule); flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--text-2); transition: transform var(--t); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: left; background: var(--neon); box-shadow: 0 0 10px var(--neon-glow);
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
    background: rgba(12, 16, 15, 0.98); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--rule);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity var(--t), transform var(--t);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: 0.9rem 0; font-size: 0.95rem; border-bottom: 1px solid var(--rule); }
  .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; }
  .pill-soon span { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 3.5rem 0 1.5rem; }
@media (min-width: 768px) { .hero { padding: 5.5rem 0 2.5rem; } }
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr); gap: 4rem; } }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.75rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--rule-2); background: rgba(255,255,255,0.03);
  font-family: var(--font-mono); font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-2);
}

.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--neon); text-shadow: 0 0 28px var(--neon-glow); }

.hero-sub { margin-top: 1.5rem; max-width: 34rem; font-size: 1.0625rem; line-height: 1.7; color: var(--text-2); }
@media (min-width: 640px) { .hero-sub { font-size: 1.125rem; } }

.cta-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; margin-top: 2.25rem; }
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.store-badge img { display: block; height: 50px; width: auto; }
.store-badge.is-pending { cursor: default; }
.badge-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.badge-note {
  padding-left: 2px; font-family: var(--font-mono); font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--neon);
}
.cta-note { margin-top: 1.4rem; font-size: 0.8125rem; color: var(--text-3); max-width: 30rem; line-height: 1.6; }

/* ---------- launch list ---------- */
.join { position: relative; display: flex; flex-wrap: wrap; gap: 0.6rem; width: 100%; max-width: 30rem; margin-top: 2rem; }
.join-input {
  flex: 1 1 14rem; min-width: 0; height: 52px; padding: 0 1.25rem;
  border-radius: 999px; border: 1px solid var(--rule-2); background: var(--surface);
  font-size: 1rem; color: var(--paper);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.join-input::placeholder { color: var(--text-3); }
.join-input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 4px var(--neon-tint); }
.join .btn {
  flex: 0 0 auto; height: 52px; padding: 0 1.4rem; border-radius: 999px;
  background: var(--neon); color: #0c100f; font-weight: 700; font-size: 0.9375rem;
  box-shadow: 0 0 28px -8px var(--neon-glow);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.join .btn:hover { background: #f3ff8a; transform: translateY(-1px); box-shadow: 0 0 34px -6px var(--neon-glow); }
.join .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
@media (max-width: 480px) { .join .btn { flex: 1 1 100%; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join-msg { flex-basis: 100%; min-height: 1.4em; font-size: 0.9rem; font-weight: 600; }
.join-msg.ok { color: var(--neon); }
.join-msg.err { color: #ff8a80; }
.join.done .join-input, .join.done .btn { display: none; }
.join-center { justify-content: center; margin-left: auto; margin-right: auto; }
.join-center .join-msg { text-align: center; }
.close-cta .join { margin-top: 1.75rem; }
.close-cta .cta-row { margin-top: 1.25rem; }

/* ---------- tally board ---------- */
.showcase { display: flex; justify-content: center; min-width: 0; }
.board {
  position: relative; width: 100%; max-width: 420px;
  padding: 1.75rem 1.6rem 1.5rem; border-radius: 22px;
  background: linear-gradient(180deg, #1a201e, #111615 60%, #0d1110);
  border: 1px solid var(--rule-2);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 50px 90px -40px rgba(0,0,0,1), 0 0 120px -30px var(--neon-glow);
}
/* the light source from the icon */
.board::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 3px; border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  filter: blur(0.5px);
}
.board-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 1.4rem;
}
.board-head strong { color: var(--text-2); font-weight: 500; }

.tally { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.1rem; padding: 0.6rem 0 0.9rem; }
.tally svg { width: 58px; height: 60px; display: block; overflow: visible; }
.tally path {
  fill: none; stroke: var(--neon); stroke-width: 6; stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--neon-glow)) drop-shadow(0 0 14px rgba(236,255,101,0.18));
}
/* draw the marks in, group by group */
.js .tally path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 500ms var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tally .partial path:nth-child(n+4) { display: none; }

.board-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.bs { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.bs b { font-family: var(--font-mono); font-weight: 500; font-size: 1.6rem; line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; }
.bs b.hot { color: var(--neon); text-shadow: 0 0 18px var(--neon-glow); }
.bs span { font-size: 0.7rem; line-height: 1.3; color: var(--text-3); }
.board-foot { margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4); text-align: center; }

/* ---------- sections ---------- */
.section { padding: 3.5rem 0; }
@media (min-width: 768px) { .section { padding: 4.75rem 0; } }
.label { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--neon-dim); margin-bottom: 1rem; }
.title { font-size: clamp(1.9rem, 4.2vw, 2.7rem); max-width: 24ch; text-wrap: balance; }
.lede { margin-top: 1.1rem; max-width: 42rem; font-size: 1.0125rem; line-height: 1.75; color: var(--text-2); }

/* ---------- pillars ---------- */
.pillars { display: grid; gap: 0.85rem; margin-top: 2.5rem; list-style: none; }
@media (min-width: 820px) { .pillars { grid-template-columns: repeat(3,1fr); } }
.pillar {
  position: relative; overflow: hidden; padding: 2rem 1.75rem; border-radius: var(--r);
  border: 1px solid var(--rule); background: var(--surface);
  transition: border-color var(--t), transform var(--t);
}
.pillar::after {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx,50%) var(--my,0%), rgba(236,255,101,0.07), transparent 62%);
  transition: opacity var(--t);
}
.pillar:hover { border-color: var(--rule-neon); transform: translateY(-3px); }
.pillar:hover::after { opacity: 1; }
.pillar-n {
  display: inline-block; margin-bottom: 1.1rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--neon);
}
.pillar h3 { position: relative; font-size: 1.35rem; margin-bottom: 0.65rem; }
.pillar p { position: relative; font-size: 0.9375rem; line-height: 1.75; }

/* ---------- moments (cravings) ---------- */
.moments { display: grid; gap: 0.85rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .moments { grid-template-columns: repeat(2,1fr); } }
.moment {
  padding: 1.6rem 1.5rem; border-radius: var(--r); border: 1px solid var(--rule); background: var(--surface);
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
}
.moment-t { font-family: var(--font-mono); font-size: 0.75rem; color: var(--neon); padding-top: 0.2rem; white-space: nowrap; }
.moment h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.moment p { font-size: 0.9rem; line-height: 1.7; }

/* ---------- note ---------- */
.note { padding: 2.5rem 2rem; border-radius: var(--r); border: 1px solid var(--rule); background: var(--surface); }
@media (min-width: 640px) { .note { padding: 3rem 2.75rem; } }
.note h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.note p { font-size: 1rem; line-height: 1.8; max-width: 52rem; }
.note p + p { margin-top: 1rem; }
.note strong { color: var(--paper); font-weight: 600; }

/* ---------- faq ---------- */
.faq { margin-top: 2.5rem; border-radius: var(--r); border: 1px solid var(--rule); overflow: hidden; background: var(--surface); }
.q { border-bottom: 1px solid var(--rule); }
.q:last-child { border-bottom: none; }
.q h3 { margin: 0; font: inherit; }
.q-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: 100%; padding: 1.35rem 1.5rem; text-align: left;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--text);
  transition: color var(--t), background var(--t);
}
.q-btn:hover { color: var(--paper); background: rgba(255,255,255,0.02); }
.q.open .q-btn { color: var(--paper); }
.q-ic {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--rule-2);
  font-size: 0.9rem; color: var(--text-3);
  transition: transform var(--t), color var(--t), border-color var(--t);
}
.q.open .q-ic { transform: rotate(45deg); color: var(--neon); border-color: var(--rule-neon); }
.q-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t); }
.q-a > p { overflow: hidden; padding: 0 1.5rem; font-size: 0.9375rem; line-height: 1.8; }
.q.open .q-a { grid-template-rows: 1fr; }
.q.open .q-a > p { padding-bottom: 1.5rem; }
.q-a a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- closing ---------- */
.close-cta {
  position: relative; overflow: hidden; margin: 2rem 0 5rem;
  padding: 3.5rem 2rem; text-align: center; border-radius: 22px;
  border: 1px solid var(--rule-neon);
  background: radial-gradient(120% 130% at 50% 0%, rgba(236,255,101,0.12), transparent 62%), var(--surface);
}
.close-cta > img { border-radius: 20px; border: 1px solid var(--rule-2); box-shadow: 0 18px 40px -18px rgba(0,0,0,1), 0 0 40px -10px var(--neon-glow); margin-bottom: 1.5rem; }
.close-cta h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.close-cta p { margin-top: 0.85rem; font-size: 1rem; }
.close-cta .cta-row { justify-content: center; margin-top: 1.75rem; }
.close-cta .cta-row .badge-stack { align-items: center; }

/* ---------- footer ---------- */
.ftr { position: relative; z-index: 2; padding: 3.5rem 0 3rem; border-top: 1px solid var(--rule); background: var(--ground-2); }
.ftr-top { display: grid; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 820px) { .ftr-top { grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: 4rem; } }
.ftr-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.85rem; }
.ftr-brand img { border-radius: 9px; }
.ftr-brand span { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--paper); }
.ftr-desc { font-size: 0.875rem; line-height: 1.7; color: var(--text-3); max-width: 32ch; }
.ftr-cols { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
@media (min-width: 560px) { .ftr-cols { grid-template-columns: repeat(3,1fr); } }
.ftr-h { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-2); margin-bottom: 1rem; }
.ftr-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.ftr-link { font-size: 0.875rem; color: var(--text-3); text-align: left; transition: color var(--t); }
.ftr-link:hover { color: var(--neon); }
.ftr-btm {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding-top: 1.75rem; border-top: 1px solid var(--rule); font-size: 0.8125rem; color: var(--text-4);
}

@media (max-width: 430px) {
  .cta-row { flex-direction: column; align-items: flex-start; }
  .store-badge img { height: 46px; }
  .board-stats { grid-template-columns: 1fr 1fr; }
}
