/* ============================================================
   TEARDOWNHQ — waitlist landing
   Built on the shared design system (docs/assets/teardownhq.css):
   dark near-black, emerald primary, periwinkle secondary,
   Schibsted Grotesk + JetBrains Mono.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg:        #0a0a0b;
  --bg-soft:   #0e0e10;
  --panel:     #151517;
  --panel-2:   #1b1b1e;
  --panel-hi:  #202024;
  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.12);
  --line-3:    rgba(255,255,255,0.18);

  --ink:    #f4f4f3;
  --ink-2:  #b6b6bd;
  --ink-3:  #8a8a92;
  --ink-4:  #61616a;

  --green:      #3fe0a3;
  --green-soft: rgba(63,224,163,0.13);
  --green-line: rgba(63,224,163,0.35);
  --blue:       #74a4ff;
  --blue-soft:  rgba(116,164,255,0.14);
  --blue-line:  rgba(116,164,255,0.40);
  --rose:       #fb7185;
  --amber:      #f5c451;
  --violet:     #b69cff;
  --violet-soft:rgba(182,156,255,0.14);

  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 16px;
  --r-xl: 22px;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--green-soft); color: var(--green); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: #26262a; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- shared helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.num  { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; }
.accent { color: var(--green); }
.dotsep { color: var(--ink-4); margin: 0 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 64px 28px; }
.scrim-top {
  position: absolute; inset: 0 0 auto 0; height: 620px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(63,224,163,0.10), transparent 62%),
    radial-gradient(60% 50% at 85% 0%, rgba(116,164,255,0.06), transparent 60%);
}

/* ---------- cards / tags / buttons (from design system) ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.card.pad { padding: 22px; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 500;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--ink-2); white-space: nowrap;
}
.tag.green { background: var(--green-soft); border-color: var(--green-line); color: var(--green); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--r-md);
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--line-3); background: var(--panel-hi); }
.btn.primary {
  background: var(--green); color: #06281d; border-color: transparent; font-weight: 700;
}
.btn.primary:hover { background: #5ee9b5; box-shadow: 0 0 28px rgba(63,224,163,0.28); }
.btn.sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }

.section-head {
  display: flex; align-items: baseline; gap: 12px;
  margin: 0 0 26px;
}
.section-head h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0;
}
.section-head .eyebrow { margin-left: auto; }

/* ============================================================ NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 28px;
  background: rgba(10,10,11,0.78);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: #fff;
}
.brand b { color: var(--green); letter-spacing: 0.005em; }
.nav-eyebrow {
  padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 10px; color: var(--ink-3);
}
.nav-right { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-right a { font-size: 14px; color: var(--ink-3); font-weight: 500; transition: color .15s; }
.nav-right a:hover { color: var(--ink); }
.nav-right a.btn { color: #06281d; }
.nav-right a.btn:hover { color: #06281d; }

/* ============================================================ HERO */
main { position: relative; z-index: 1; }
.hero {
  padding-top: 88px; padding-bottom: 48px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-eyebrow { margin: 0 0 22px; }
.hero-title {
  font-size: clamp(38px, 6.2vw, 68px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  margin: 0 0 24px; max-width: 14ch;
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--green), #6df0c4);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(15.5px, 1.9vw, 18.5px);
  line-height: 1.6; color: var(--ink-2); margin: 0 auto 36px; max-width: 62ch;
}

/* email capture */
.capture { width: 100%; max-width: 520px; }
.capture-form {
  display: flex; gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.capture-form:focus-within {
  border-color: var(--green-line);
  box-shadow: 0 0 0 4px var(--green-soft);
}
.capture-input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  color: var(--ink); font-family: var(--sans); font-size: 15.5px;
  padding: 0 14px;
}
.capture-input::placeholder { color: var(--ink-4); }
.capture-btn { height: 46px; padding: 0 22px; font-size: 15px; flex: none; }
.capture-btn:disabled { opacity: .65; cursor: progress; }
.capture-micro {
  font-size: 13.5px; color: var(--ink-3); line-height: 1.55;
  margin: 16px auto 0; max-width: 48ch;
}
.capture-micro b { color: var(--ink-2); font-weight: 600; }
.capture-micro.is-error { color: var(--rose); }
.capture-micro.is-success { color: var(--green); }

/* post-signup share state */
.share-panel {
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--green-line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: 0 0 0 4px var(--green-soft);
}
.share-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.share-check { width: 24px; height: 24px; flex: none; color: var(--green); }
.share-title { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
.share-title b { color: var(--green); }
.share-download {
  width: 100%; height: 48px; font-size: 14.5px; margin: 0 0 14px;
}
.share-download svg { width: 17px; height: 17px; }
.share-copy { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin: 0 0 16px; }
.share-copy b { color: var(--blue); font-weight: 600; }
.share-row { display: flex; gap: 8px; }
.share-input {
  flex: 1; min-width: 0;
  height: 46px; padding: 0 14px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r-md);
  color: var(--ink); font-family: var(--mono); font-size: 13px;
  outline: none; text-overflow: ellipsis;
}
.share-input:focus { border-color: var(--green-line); }
.share-copy-btn { flex: none; height: 46px; padding: 0 20px; font-size: 14px; }
.share-actions { margin-top: 14px; display: flex; align-items: center; gap: 16px; }
.share-x {
  font-size: 13px; color: var(--ink-3); font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px; transition: color .15s;
}
.share-x:hover { color: var(--ink); }
.share-x svg { width: 13px; height: 13px; }

/* spots strip */
.spots-strip {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 30px; padding: 7px 15px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel);
}
.spots-text { font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }
.spots-text b { color: var(--green); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(63,224,163,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63,224,163,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(63,224,163,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,224,163,0); }
}

/* ============================================================ VALUE GRID */
.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.value-card {
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, transform .15s;
}
.value-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.value-icon {
  width: 42px; height: 42px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 4px;
}
.value-icon svg { width: 21px; height: 21px; }
.value-icon.green  { background: var(--green-soft);  color: var(--green); border: 1px solid var(--green-line); }
.value-icon.blue   { background: var(--blue-soft);   color: var(--blue);  border: 1px solid var(--blue-line); }
.value-icon.violet { background: var(--violet-soft); color: var(--violet); border: 1px solid rgba(182,156,255,0.35); }
.value-card h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.value-card p { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0; }

/* ============================================================ TEARDOWN PREVIEWS */
.taste-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.teardown {
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .15s, transform .15s;
}
.teardown:hover { border-color: var(--line-2); transform: translateY(-2px); }
.teardown-head { display: flex; align-items: center; gap: 12px; }
.logo-tile {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px; color: #fff;
  border: 1px solid var(--line-2);
}
.teardown-id { min-width: 0; }
.teardown-name {
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 6px;
}
.verified { width: 15px; height: 15px; color: var(--green); flex: none; }
.teardown-meta { display: flex; align-items: center; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.teardown-meta .num { color: var(--ink-2); }
.teardown-body { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0; flex: 1; }
.teardown-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.mini-kpi { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mini-kpi .label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-4); font-weight: 500;
}
.mini-kpi .val {
  font-family: var(--mono); font-feature-settings: "tnum";
  font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
}
.teardown-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px;
}
.lock-row { display: inline-flex; align-items: center; gap: 7px; color: var(--amber); font-weight: 500; }
.lock-ico { width: 14px; height: 14px; }
.read-len { color: var(--ink-4); font-family: var(--mono); font-size: 11.5px; }
.taste-cta { text-align: center; font-size: 16px; color: var(--ink-2); margin: 30px 0 0; }

/* ============================================================ FOUNDING DEAL */
.founding {
  position: relative; overflow: hidden;
  border-color: var(--green-line);
}
.founding-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 120% at 12% -20%, rgba(63,224,163,0.16), transparent 55%);
}
.founding-inner {
  position: relative; padding: 48px 44px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  max-width: 640px;
}
.founding-title { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 0; line-height: 1.08; }
.founding-copy { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.founding-meter { width: 100%; max-width: 420px; margin: 6px 0; }
.meter-bar { height: 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.meter-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2a9d78, var(--green)); transition: width .6s ease; }
.meter-label { display: block; margin-top: 9px; font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.meter-label b { color: var(--green); }
.founding-btn { height: 44px; padding: 0 24px; font-size: 15px; margin-top: 6px; }
.founding-referral {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 14px 0 0; font-size: 13.5px; color: var(--ink-3);
}
.founding-referral svg { width: 16px; height: 16px; color: var(--blue); flex: none; }
.founding-referral b { color: var(--blue); font-weight: 600; }

/* ============================================================ FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { padding: 0; transition: border-color .15s; }
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--mono); font-size: 20px; color: var(--ink-3);
  transition: transform .2s; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; color: var(--green); }
.faq-item p {
  margin: 0; padding: 0 22px 20px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); max-width: 70ch;
}
.launch-date { color: var(--ink); font-weight: 600; }

/* ============================================================ FINAL CTA */
.final-cta {
  text-align: center;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(63,224,163,0.07), transparent 60%),
    var(--bg-soft);
  padding: 64px 32px;
}
.final-cta h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 12px; }
.final-cta p { font-size: 16px; color: var(--ink-2); margin: 0 0 28px; }
.final-btn { height: 48px; padding: 0 30px; font-size: 16px; }

/* ============================================================ FOOTER */
.footer {
  display: flex; align-items: center; gap: 24px;
  padding-top: 28px; padding-bottom: 40px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.footer-brand { font-size: 16px; font-weight: 800; color: var(--ink-2); }
.footer-brand b { color: var(--green); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13.5px; color: var(--ink-3); transition: color .15s; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { margin-left: auto; font-size: 12px; color: var(--ink-4); }

/* ============================================================ TOAST */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 130%);
  z-index: 100;
  background: var(--panel-hi); border: 1px solid var(--green-line);
  color: var(--ink); font-size: 14px; font-weight: 500;
  padding: 13px 20px; border-radius: var(--r-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translate(-50%, 0); }
.toast::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none;
}

/* ============================================================ RESPONSIVE */
@media (max-width: 880px) {
  .value-grid, .taste-grid { grid-template-columns: 1fr; }
  .nav-right a:not(.btn) { display: none; }
  .nav-eyebrow { display: none; }
  .founding-inner { padding: 36px 26px; }
  .section { padding: 48px 22px; }
}
@media (max-width: 560px) {
  .capture-form, .share-row { flex-direction: column; }
  .capture-btn, .share-copy-btn { width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-copy { margin-left: 0; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
