/* ==========================================================================
   FINAL — Figma "Webapp" Landing implementation (J39-20)
   Implemented from Figma node 1340-10303 (Landing frame):
   bg grid, centered logo (blue icon + wordmark), invitation eyebrow,
   single h1, "Get Started" CTA, © 2026 Toolbelt footer.
   Brand tokens verbatim from architecture/landing-concept.md §1.
   ========================================================================== */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand tokens (verbatim from landing-concept.md §1) */
  --primary:          #0052FF;
  --primary-hover:    #0038DB;
  --primary-on:       #FFFFFF;
  --bg:               #FFFFFF;
  --fg:               #18181B;
  --secondary:        #F4F4F5;
  --muted-fg:         #71717A;
  --border:           #E4E4E7;

  /* Radii & Shadows (tokens.css) */
  --radius-lg:        8px;
  --shadow-xs:        0 1px 2px 0 rgba(0, 0, 0, 0.1);

  --max-width:        1200px;
}

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  scroll-behavior: smooth;
}

body { min-height: 100vh; }

/* ── Hero (per Figma) ── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 60px;
}

.hero__bg {
  position: absolute;
  top: -16px;
  left: -10px;
  width: 1300px;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.hero__wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-bottom: 100px;
  text-align: center;
}

/* ── Logo (per Figma: 34x34 blue icon + wordmark) ── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8.57px;
  text-decoration: none;
  color: var(--fg);
  margin-bottom: 24px;
}

.logo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34.29px;
  height: 34.29px;
  border-radius: 8.57px;
  background: var(--primary);
}

.logo__icon img {
  display: block;
  width: 21.43px;
  height: 21.43px;
}

.logo {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 28.57px;
  line-height: 40px;
  letter-spacing: 0;
}

/* ── Eyebrow (per Figma: blue, uppercase, 0.08em) ── */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ── Title group (per Figma: gap 16px) ── */
.hero__title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 640px;
}

.hero__title {
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.3125rem); /* 53px at 1280 */
  line-height: 1.1;
  letter-spacing: -0.0211em;
  color: var(--fg);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.btn--lg {
  padding: 12px 24px;      /* per Figma */
  font-size: 14px;
}

.hero__cta {
  box-shadow: var(--shadow-xs);
  opacity: 0.9;
}
.hero__cta:hover { opacity: 1; }

/* ── Waitlist (the funnel below the hero) ── */
.section { padding: 6rem 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.whitelist { text-align: center; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.whitelist__heading { margin-bottom: 1rem; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.whitelist__intro {
  max-width: 52ch;
  margin: 0 auto 3rem;
  color: var(--muted-fg);
}

.whitelist__form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}

.whitelist__input {
  flex: 1 1 260px;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color 0.2s ease;
}
.whitelist__input:focus { border-color: var(--primary); }

.whitelist__note {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}
.whitelist__note[hidden] { display: none; }

/* ── Footer (per Figma: © 2026 Toolbelt, 12px medium gray) ── */
.footer {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}
.footer p {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--muted-fg);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 72px 20px 48px; }
  .hero__wrap { gap: 32px; padding-bottom: 64px; }
  .hero__bg { left: 50%; transform: translateX(-50%); }
}
