/* ─── join.css ─────────────────────────────────────────────────────────────────
   Page-specific styles for join.html landing page.
   Loaded AFTER style.css and waitlist.css to reconcile variables and add
   section-specific components.
   ──────────────────────────────────────────────────────────────────────────── */

/* ── Button width fix ────────────────────────────────────────────────────────
   waitlist.css sets .btn { width: 100% } which bleeds to ALL buttons on the
   page. Override to auto everywhere except inside the actual form card.
   ──────────────────────────────────────────────────────────────────────────── */
.btn {
  width: auto;
}

/* Form submit buttons should stay full-width */
.form-card .btn,
.form-card .oauth-btn {
  width: 100%;
}

/* Restore .btn-primary / .btn-secondary colors — waitlist.css .btn { background-color: var(--color-text) }
   overrides both (equal specificity, later file wins). Fix: re-assert here in join.css (loads last). */
.btn-primary {
  background-color: var(--cta-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(126, 123, 255, 0.3);
}

.btn-primary:hover {
  background-color: var(--cta-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(126, 123, 255, 0.4);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--cta-primary);
  color: var(--cta-primary);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: rgba(126, 123, 255, 0.1);
  color: var(--cta-primary);
  transform: translateY(-2px);
}

/* ── Variable reconciliation ─────────────────────────────────────────────────
   waitlist.css defines its own :root variables that conflict with style.css.
   Override them so the embedded waitlist form uses the main site palette.
   ──────────────────────────────────────────────────────────────────────────── */
:root {
  --color-bg: #080B0E;
  --color-card: #131415;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #FCFCFC;
  --color-text-dim: rgba(252, 252, 252, 0.7);
  --color-text-faded: rgba(252, 252, 252, 0.5);
  --color-accent: #7E7BFF;
  --color-accent-soft: rgba(126, 123, 255, 0.1);
}

/* Reset waitlist.css body/h1 bleed — main site values win */
body {
  background-color: var(--bg-ink);
  color: var(--text-snow);
  font-family: var(--font-body);
}

/* Prevent orphan words in all headings on this page */
h1, h2, h3 {
  text-wrap: balance;
}

/* Scope waitlist h1 override so it doesn't affect the page's other h1s */
.waitlist-embed h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.waitlist-embed h1 em {
  font-style: italic;
  font-weight: 400;
  opacity: 0.7;
}

/* ── Step number circles (Section 3: How to Join) ────────────────────────── */
.step-number-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-snow);
  margin: 0 auto 28px;
}

.step-connector {
  flex: 0 0 48px;        /* fixed narrow width, not flex: 1 */
  height: 1px;
  background-color: rgba(255, 255, 255, 0.10);
  margin-top: 56px;      /* vertically aligns with centre of the step circle */
  align-self: flex-start;
}

.steps-row {
  display: flex;
  align-items: stretch;  /* equal-height cards */
  gap: 0;
}

.steps-row .step-card {
  flex: 1;
  text-align: center;
  padding: 52px 40px;
}

@media (max-width: 768px) {
  .steps-row {
    flex-direction: column;
    gap: 16px;
  }
  .step-connector {
    display: none;
  }
  .steps-row .step-card {
    padding: 32px 24px;
  }
}

/* ── Static chips (Section 4: Industries) ────────────────────────────────── */
.chip--static {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--text-faded);
  font-size: 13px;
  cursor: default;
  pointer-events: none;
  font-family: var(--font-body);
}

/* ── Product card images (Section 7) ─────────────────────────────────────── */
.product-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  display: block;
}

.product-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--bg-off-black);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s;
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.product-card-body {
  padding: 24px;
}

.product-card-body .sol-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cta-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card-body p {
  font-size: 14px;
  color: var(--text-faded);
  line-height: 1.6;
}

/* ── Waitlist embed section ──────────────────────────────────────────────── */
.waitlist-embed-section {
  background: radial-gradient(circle at center, #1a1d26 0%, #080B0E 70%);
  padding: var(--space-4xl) 0;
}

/* Make the waitlist's hero-grid work inside the embed wrapper */
.waitlist-embed .hero-grid {
  padding: 0;
}

/* ── Inline CTA banner ───────────────────────────────────────────────────── */
.inline-cta {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.inline-cta .btn-primary {
  display: inline-flex;
  width: auto;
  padding: 14px 32px;
}

/* ── Role cards (Section 4) ──────────────────────────────────────────────── */
.role-card {
  padding: 24px;
  background-color: var(--bg-off-black);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-card);
  transition: border-color 0.3s;
}

.role-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.role-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.role-card p {
  font-size: 14px;
  color: var(--text-faded);
  line-height: 1.5;
}

/* ── Use case cards (Section 5) ──────────────────────────────────────────── */
.use-case-card {
  padding: 32px;
  background-color: var(--bg-off-black);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-card);
  transition: border-color 0.3s;
}

.use-case-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.use-case-stat {
  font-size: 28px;
  font-weight: 700;
  color: var(--cta-primary);
  margin-bottom: 12px;
  font-family: var(--font-head);
}

.use-case-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.use-case-card p {
  font-size: 14px;
  color: var(--text-faded);
  line-height: 1.6;
}

/* ── Guarantee callout (Section 9) ───────────────────────────────────────── */
.guarantee-callout {
  text-align: center;
  padding: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.guarantee-callout h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}

.guarantee-callout p {
  font-size: 16px;
  color: var(--text-faded);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Toast notification ──────────────────────────────────────────────────── */
.signup-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 900;
  background-color: var(--bg-off-black);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 40px 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-width: 360px;
  pointer-events: auto;
  animation: toast-in 0.4s ease-out forwards;
}

.signup-toast.hiding {
  animation: toast-out 0.3s ease-in forwards;
}

.signup-toast-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: var(--cta-primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.signup-toast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.signup-toast-text {
  font-size: 13px;
  color: var(--text-snow);
  line-height: 1.4;
}

.signup-toast-text strong {
  font-weight: 600;
}

.signup-toast-time {
  font-size: 11px;
  color: var(--text-faded);
  margin-top: 2px;
}

.signup-toast-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-faded);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px;
}

.signup-toast-close:hover {
  color: var(--text-snow);
}

@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes toast-out {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 480px) {
  .signup-toast {
    left: 12px;
    right: 12px;
    max-width: none;
    bottom: 12px;
  }
}

/* ── FAQ width constraint ─────────────────────────────────────────────────── */
#faq .container {
  max-width: 720px;
}

/* ── Waitlist embed h1 — smaller so no orphan words ─────────────────────── */
.waitlist-embed .sticky-side h1 {
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.15;
  margin-bottom: 20px;
}

/* ── Dave card (frosted-apple) fixes ─────────────────────────────────────── */
.join-dave-section .frosted-apple {
  max-width: 780px;
  align-items: flex-start;
  gap: 28px;
  margin-top: 0;
}

.join-dave-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
}

.join-dave-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.join-dave-content {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.join-dave-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.join-dave-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
  line-height: 1.6;
}

.join-dave-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.join-dave-btns .btn-primary {
  padding: 12px 24px;
  font-size: 14px;
  white-space: nowrap;
}

.join-dave-btns .btn-ghost-link {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.join-dave-btns .btn-ghost-link:hover {
  color: rgba(255,255,255,0.8);
}

/* ── Step cards — better text sizing ─────────────────────────────────────── */
.step-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-faded);
}

/* ── Section 9 stats — 4-column on desktop, 2-column on mobile ──────────── */
.stats-4col {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 640px) {
  .stats-4col {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
  /* Let the gradient span wrap on small screens to prevent overflow */
  .ai-highlighter {
    white-space: normal !important;
  }
}

/* ── Section spacing overrides ───────────────────────────────────────────── */
.join-section {
  padding: var(--space-4xl) 0;
}

.join-section--alt {
  background: var(--bg-off-black);
}
