/* 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 vellum-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-16) 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: inline-flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-primary-text);
}

.brand-lockup .iris-mark {
  width: var(--space-12);
  height: var(--space-12);
  flex: 0 0 auto;
}

.brand-lockup .wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.5rem;
  letter-spacing: 0;
  /* The wordmark glyph already says "Olocus" in the SVG; the span here
   * supplies a text-based label so screen readers + copy-paste both
   * work. The iris mark above is the visible "O". */
  color: inherit;
}

/* 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 — verdure fill on light, dark on dark, ~5:1 AA per
 * STYLE-GUIDE §4.1 (verdure-600 background, white text). */
.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(--radius-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 {
    font-size: 2rem;
  }
  .brand-lockup .iris-mark {
    width: var(--space-10);
    height: var(--space-10);
  }
}
