/* Welcome surface — see docs/STYLE-GUIDE.md §3 (brand lockup), §5
 * (typography), §10.4 (component contracts).
 *
 * Every value below references a token from tokens.css. No raw hex,
 * no raw px values, no bespoke timing curves. */

/* `.welcome-hero` is the full-viewport surface — the surface-grain
 * background extends to the viewport edges so the proof-surface tier
 * reads as the whole canvas, not a card. The actual reading column is
 * the `.welcome-hero-column` child constrained to ~56ch. */
.welcome-hero {
  min-height: 100dvh;
  padding: var(--space-10) var(--space-6) var(--space-12);
  color: var(--color-text-body);
  display: grid;
  place-content: center;
}

.welcome-hero-column {
  display: grid;
  grid-template-columns: minmax(0, 56ch);
  gap: var(--space-6);
  text-align: left;
}

/* Brand lockup — iris mark + wordmark per STYLE-GUIDE §3.2:
 * mark-left, space-4 gap, shared vertical centre. */
.brand-lockup {
  display: block;
}

.brand-lockup .wordmark {
  /* Single SVG image — height fixed, width auto follows the wordmark's
   * 334:100 aspect ratio. Mirrors qub's home-logo__wordmark sizing. */
  display: block;
  block-size: 56px;
  inline-size: auto;
  max-inline-size: 100%;
}

@media (min-width: 640px) {
  .brand-lockup .wordmark {
    block-size: 72px;
  }
}

/* Welcome typography */
.hero-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3.25rem;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--color-text-heading);
  margin-block-start: var(--space-4);
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-text-body);
  max-width: 48ch;
}

.hero-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-body);
  max-width: 48ch;
}

/* Primary CTA — coral fill (--accent) with legible coral-ink text
 * (--accent-ink) per STYLE-GUIDE §10.2 (primary button). */
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary-bg);
  color: var(--color-text-on-primary);
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration-default) var(--ease-default);
  align-self: start;
}

.primary-cta:hover {
  text-decoration: none;
}

.primary-cta:hover:not([disabled]) {
  background: var(--color-primary-hover);
}

.primary-cta:active:not([disabled]) {
  background: var(--color-primary-active);
}

.primary-cta[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.cta-note {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 48ch;
  margin-block-start: calc(-1 * var(--space-2));
}

@media (max-width: 480px) {
  .welcome-hero {
    padding: var(--space-10) var(--space-4);
    min-height: 100dvh;
  }
  .hero-headline {
    font-size: 2.25rem;
  }
  .hero-sub {
    font-size: 1.125rem;
  }
  .brand-lockup .wordmark {
    block-size: 48px;
  }
}
