/* ==========================================================================
   PRACTON / ANTHROPIC SIGNATURE EDITORIAL DESIGN SYSTEM
   Tokens: Warm Linen Paper (#FAF9F5), Warm Stone (#F0EFE9), Obsidian (#141413),
           Wordmark Navy (#1E2B4D), Warm Slate (#565551), Muted Stone (#7E7C76),
           Claude Terracotta (#CC785C), Border Tint (#E5E4DF).
   ========================================================================== */

:root {
  /* Color Palette & Surface Tokens */
  --canvas-primary: #FAF9F5;
  --canvas-secondary: #F0EFE9;
  --canvas-input: #FFFFFF;
  --divider-hairline: 1px solid #E5E4DF;

  /* Typography Ink */
  --ink-primary: #141413;
  --ink-navy: #1E2B4D;
  --ink-body: #565551;
  --ink-muted: #7E7C76;

  --button-navy: #162A45;
  --button-blue: #214C76;

  /* Accent: Terracotta Clay */
  --clay-terracotta: #CC785C;
  --clay-hover: #B8674D;
  --clay-focus-tint: rgba(204, 120, 92, 0.08);

  /* Typography Stacks */
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout Constraints */
  --spine-max-width: 1040px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base Resets & Grain Canvas
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.canvas-bg {
  background-color: var(--canvas-primary);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  overflow-y: auto;
}

:focus-visible {
  outline: 2px solid var(--clay-terracotta);
  outline-offset: 3px;
}

/* Tactile SVG Fractal Noise Grain */
.paper-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Top Site Header (Logo on Far Left, Careers & Contact Us on Far Right)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 4.25rem;
  background-color: rgba(250, 249, 245, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--divider-hairline);
  display: flex;
  align-items: center;
}

.site-header-inner {
  width: 100%;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 2rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav-link {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-body);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.header-nav-link.active {
  color: var(--ink-navy);
}

@media (hover: hover) {
  .header-nav-link:hover { color: var(--ink-navy); }
}

.header-nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--ink-navy);
  border-radius: 2px;
}

/* ==========================================================================
   Single-Column Editorial Spine
   ========================================================================== */

.page-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--spine-max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem 2rem;
  display: flex;
  flex-direction: column;
}

.page-shell > :not(.hero-animated-bg) {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   1. Hero Stage (Centered)
   ========================================================================== */

.hero-stage {
  position: relative;
  /* min-height and padding-bottom both drop by 22vh, so the centered hero text stays where it was */
  min-height: calc(70vh - 4.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  scroll-margin-top: 5.5rem;
}

.hero-stage .action-cluster { margin-bottom: 1.5rem; }

.hero-stage > *:not(.hero-animated-bg) {
  position: relative;
  z-index: 10;
}

/* Hidden SVG Sprite Definitions for Background Tech Icons */
.bg-svg-sprites {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Full-viewport uniform grid background with continuous diagonal pan */
.hero-animated-bg {
  --bg-cell-w: 140px;
  --bg-cell-h: 116px;
  --bg-cols: 25;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 42% 36% at 50% 42%, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask-image: radial-gradient(ellipse 42% 36% at 50% 42%, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 1) 100%);
}

.hero-animated-track {
  display: grid;
  grid-template-columns: repeat(var(--bg-cols), var(--bg-cell-w));
  grid-auto-rows: var(--bg-cell-h);
  width: calc(var(--bg-cols) * var(--bg-cell-w));
  place-items: center;
  will-change: transform;
  animation: bgGridDiagonalPan 32s linear infinite;
}

.hero-floating-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', monospace);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(30, 43, 77, 0.13);
  user-select: none;
  -webkit-user-select: none;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.hero-floating-token.is-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

@keyframes bgGridDiagonalPan {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-5 * var(--bg-cell-w)), calc(-5 * var(--bg-cell-h)), 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-animated-track {
    animation: none !important;
  }
}

.editorial-headline {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 4.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-navy);
  max-width: 760px;
  margin: 0 auto 0.85rem auto;
}

.hero-stage .editorial-headline {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
}

.editorial-subheadline {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink-navy);
  max-width: 640px;
  margin: 0 auto 0.9rem auto;
}

.editorial-summary {
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 1.35vw, 1.1rem);
  line-height: 1.65;
  color: var(--ink-body);
  max-width: 600px;
  margin: 0 auto 2.25rem auto;
  font-weight: 400;
}

/* ==========================================================================
   Action Buttons ("See How it Works" & "Join Waitlist")
   ========================================================================== */

.action-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--button-navy);
  color: var(--canvas-primary);
  border: 1px solid var(--button-navy);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.08);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:focus-visible,
.btn-primary:active {
  background-color: var(--button-blue);
  border-color: var(--button-blue);
  color: #FFFFFF;
}

@media (hover: hover) {
  .btn-primary:hover {
    background-color: var(--button-blue);
    border-color: var(--button-blue);
    color: #FFFFFF;
  }
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

/* Hover lifts: hover-capable pointers only, and never under reduced motion */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-primary:hover,
  .btn-secondary:hover { transform: translateY(-1px); }
  .btn-primary:active,
  .btn-secondary:active { transform: translateY(0); }
  .btn-primary:hover .btn-arrow,
  .btn-submit-large:hover .btn-arrow { transform: translateX(2px); }
  .process-card:hover { transform: translateY(-2px); }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--canvas-primary);
  color: var(--ink-primary);
  border: 1px solid #D5D4CE;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

@media (hover: hover) {
  .btn-secondary:hover {
    background-color: var(--canvas-secondary);
    border-color: var(--ink-primary);
  }
}

/* ==========================================================================
   Section Layout & Headers
   ========================================================================== */

.section-block {
  position: relative;
  z-index: 10;
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: var(--divider-hairline);
  scroll-margin-top: 5rem;
}

.section-header {
  margin-bottom: 2rem;
}

.how-it-works-section {
  display: flex;
  flex-direction: column;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem; /* gap to Join the Waitlist is this plus its top padding */
}

.how-it-works-section .section-header {
  text-align: center;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 600;
  color: var(--ink-navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--ink-body);
  max-width: 600px;
  line-height: 1.55;
}

/* ==========================================================================
   2. "See How it Works" Section (Copied as-is from HomePage)
   ========================================================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.process-card {
  position: relative;
  z-index: 10;
  padding: 1.25rem 1.4rem 1.5rem;
  border-radius: var(--radius-md);
  border: var(--divider-hairline);
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(20, 20, 19, 0.03);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

@media (hover: hover) {
  .process-card:hover { box-shadow: 0 4px 12px rgba(20, 20, 19, 0.06); }
}

.process-gif-frame {
  width: 100%;
  aspect-ratio: 9 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: var(--divider-hairline);
  background-color: var(--canvas-secondary);
}

.process-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Reduced motion: show the first frame as a still instead of the animated GIF */
@media (prefers-reduced-motion: reduce) {
  .process-gif { display: none; }
  .process-gif-frame {
    background-image: var(--gif-still);
    background-size: cover;
    background-position: center;
  }
}

.process-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.process-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background-color: var(--canvas-secondary);
  border: var(--divider-hairline);
  color: var(--ink-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-text {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.process-step-title {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink-navy);
  line-height: 1.3;
}

.process-step-desc {
  font-size: 0.875rem;
  color: var(--ink-body);
  line-height: 1.6;
}

/* ==========================================================================
   3. Exact Interactive Coding Demo Widget (Mirrors HomePage)
   ========================================================================== */

.demo-section {
  padding-top: 5rem;
}

.demo-widget {
  border-radius: var(--radius-md);
  border: var(--divider-hairline);
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(20, 20, 19, 0.03);
  overflow: hidden;
}

.demo-topbar {
  padding: 0.75rem 1.25rem;
  background: #F0EFE9;
  border-bottom: var(--divider-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.demo-tabs-cluster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-tab {
  padding: 0.38rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--ink-body);
  transition: all var(--transition-fast);
}

.lang-tab:hover {
  background: #E6E4DD;
}

.lang-tab.active {
  background: #141413;
  color: #FAF9F5;
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.08);
}

.stepper-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  font-family: var(--font-sans);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.step-badge-navy {
  color: var(--ink-navy);
  background: #EDF0F7;
  border: 1px solid #D0D8E8;
}

.step-badge-white {
  color: var(--ink-primary);
  background: #FFFFFF;
  border: var(--divider-hairline);
}

.step-badge-cream {
  color: var(--ink-body);
  background: #FAF9F5;
  border: var(--divider-hairline);
}

.step-arrow {
  color: #8C8B85;
}

/* ── Concept Panel ──────────────────────────────────────────────────────── */

.concept-panel {
  padding: 1.5rem;
  background: #FAF9F5;
  border-bottom: var(--divider-hairline);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.concept-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.concept-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.step-badge-mini {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--ink-navy);
  color: #FAF9F5;
}

.concept-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-navy);
}

.concept-filename {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #8C8B85;
}

.concept-body-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 1rem;
  align-items: start;
}

.concept-desc-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.concept-explanation {
  font-size: 0.875rem;
  color: var(--ink-body);
  line-height: 1.6;
}

.concept-takeaway-box {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: var(--divider-hairline);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--ink-primary);
  line-height: 1.5;
}

.takeaway-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.concept-code-col {
  background: #141413;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  border: 1px solid #2A2A28;
  overflow-x: auto;
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.08);
}

.concept-code-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8C8B85;
  margin-bottom: 0.4rem;
}

.concept-code-sub {
  font-size: 9px;
  color: #A09F99;
}

.concept-code-pre {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: #FAF9F5;
  white-space: pre;
}

/* ── Split Grid: Editor (Left) & Output (Right) ─────────────────────────── */

.editor-split-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
}

.editor-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #FFFFFF;
  border-right: var(--divider-hairline);
}

.task-header-box {
  padding: 1.25rem;
  border-bottom: var(--divider-hairline);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.task-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.exercise-badge-mini {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: #F0EFE9;
  color: var(--ink-primary);
  border: var(--divider-hairline);
}

.exercise-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-text-action {
  font-size: 11px;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--ink-navy);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.btn-text-action:hover {
  text-decoration: underline;
}

.action-divider {
  color: #E5E4DF;
  font-size: 11px;
}

.btn-reset {
  color: var(--ink-body);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-reset:hover {
  color: var(--ink-primary);
}

.task-prompt-text {
  font-size: 0.875rem;
  color: var(--ink-primary);
  line-height: 1.55;
}

.task-prompt-label {
  color: var(--ink-navy);
  font-weight: 600;
  margin-right: 0.35rem;
}

/* ── Code Editor Surface (Catppuccin Mocha / VS Code Dark) ───────────────── */

.code-editor-surface {
  padding: 1.25rem;
  background-color: #1E1E2E;
  color: #CDD6F4;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.code-textarea-wrap {
  position: relative;
  width: 100%;
}

.code-textarea {
  width: 100%;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #CDD6F4;
  border: none;
  outline: none;
  resize: none;
  line-height: 1.6;
  white-space: pre;
}

.editor-action-bar {
  padding-top: 0.65rem;
  border-top: 1px solid #313244;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.editor-btn-cluster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-run-code {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: #FAF9F5;
  color: #141413;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.08);
  transition: background-color var(--transition-fast);
}

.btn-run-code:hover {
  background: #F0EFE9;
}

.btn-run-code:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner-icon {
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-hint {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #A09F99;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-hint:hover {
  color: #FAF9F5;
}

.editor-note {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #8C8B85;
}

.hint-card {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(30, 43, 77, 0.4);
  border: 1px solid #3E5280;
  font-size: 12px;
  font-family: var(--font-sans);
  color: #E2E8F0;
  line-height: 1.5;
}

.hint-label {
  color: #99B6F2;
  margin-right: 0.35rem;
}

/* ── Output & Test Results (Right Column) ────────────────────────────────── */

.output-col {
  padding: 1.25rem;
  background: #FCFCF9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.output-content-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.output-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: var(--divider-hairline);
  padding-bottom: 0.75rem;
}

.output-title-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-body);
}

.status-badge-pending {
  font-size: 11px;
  font-family: var(--font-sans);
  color: #8C8B85;
  background: #F0EFE9;
  padding: 2px 8px;
  border-radius: 4px;
}

.status-badge-passed {
  font-size: 11px;
  font-family: var(--font-sans);
  font-weight: 500;
  color: #2E6F40;
  background: #EBF3ED;
  border: 1px solid #CDE5D4;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Empty State */
.output-empty-state {
  padding: 2.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.output-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F0EFE9;
  border: var(--divider-hairline);
  color: #5E5D59;
  display: flex;
  align-items: center;
  justify-content: center;
}

.output-empty-text {
  font-size: 12px;
  color: var(--ink-body);
  max-width: 280px;
  line-height: 1.55;
}

.text-dark {
  color: var(--ink-primary);
  font-weight: 600;
}

/* Active Output State */
.output-active-state {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stdout-section,
.sql-table-container,
.test-assertions-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stdout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-body);
}

.execution-time {
  font-size: 10px;
}

.stdout-box {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: #141413;
  color: #FAF9F5;
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid #2A2A28;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stdout-line {
  color: #E2E8F0;
  line-height: 1.5;
}

/* SQL Query Table */
.sql-table-heading,
.test-assertions-heading {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-body);
}

.sql-table-wrap {
  overflow-x: auto;
  border: var(--divider-hairline);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
}

.sql-table {
  width: 100%;
  font-size: 11px;
  text-align: left;
  border-collapse: collapse;
}

.sql-table thead {
  background: #F0EFE9;
  color: var(--ink-primary);
  font-weight: 500;
  border-bottom: var(--divider-hairline);
}

.sql-table th,
.sql-table td {
  padding: 0.4rem 0.65rem;
}

.sql-table tbody {
  font-family: var(--font-mono);
  color: var(--ink-body);
}

.sql-table tbody tr {
  border-bottom: 1px solid #E5E4DF;
  background: #FFFFFF;
}

.sql-table tbody tr:hover {
  background: #FAF9F5;
}

.font-bold {
  font-weight: 600;
  color: var(--ink-primary);
}

/* Test Suite Assertions */
.test-assertions-box {
  background: #FFFFFF;
  border: var(--divider-hairline);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.test-case-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--ink-primary);
}

.test-check-icon {
  flex-shrink: 0;
}

.test-case-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Output Footer */
.output-footer-row {
  padding-top: 0.75rem;
  border-top: var(--divider-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.course-code-footer {
  font-size: 11px;
  color: var(--ink-body);
  font-family: var(--font-mono);
}

.course-cta-link {
  color: var(--ink-navy);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.course-cta-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   4. "Join Waitlist" Section (Centered)
   ========================================================================== */

.waitlist-section {
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.waitlist-section .section-header {
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  scroll-margin-top: 5rem; /* clears the sticky header when scrolled into view */
  scroll-margin-bottom: 2rem;
}

.waitlist-section .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Removed once the join succeeds; the confirmation card takes its place */
.waitlist-section .section-desc.is-hidden { display: none; }

.waitlist-card-container {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  background: var(--canvas-input);
  border: var(--divider-hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(20, 20, 19, 0.04);
  padding: 2.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-primary);
  margin-bottom: 0.45rem;
}

.label-badge {
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 400;
}

.input-wrap {
  background: var(--canvas-input);
  border: var(--divider-hairline);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-wrap:focus-within {
  border-color: var(--clay-terracotta);
  box-shadow: 0 0 0 3px var(--clay-focus-tint);
}

.form-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink-primary);
  outline: none;
  padding: 0.75rem 0.9rem;
}

.form-input::placeholder {
  color: var(--ink-muted);
  opacity: 0.75;
}

.phone-input-cluster {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.country-code-wrap {
  position: relative;
  min-width: 125px;
  background: var(--canvas-input);
  border: var(--divider-hairline);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  align-items: center;
}

.country-code-wrap:focus-within {
  border-color: var(--clay-terracotta);
  box-shadow: 0 0 0 3px var(--clay-focus-tint);
}

.country-code-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  padding: 0.75rem 2.1rem 0.75rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--ink-primary);
  cursor: pointer;
  outline: none;
}

.select-chevron {
  position: absolute;
  right: 0.7rem;
  pointer-events: none;
  color: var(--ink-muted);
}

.phone-input-wrap {
  flex: 1;
}

.waitlist-consents {
  display: grid;
  gap: 0.85rem;
}

.consent-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ink-primary);
  font-size: 0.88rem;
  line-height: 1.5;
  cursor: pointer;
}

.consent-option input {
  width: 1rem;
  height: 1rem;
  flex: none;
  margin: 0.18rem 0 0;
  accent-color: var(--button-navy);
}

.form-actions {
  margin-top: 1.6rem;
}

.unsubscribe-note {
  margin: 0.65rem 0 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.btn-submit-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  background-color: var(--button-navy);
  color: var(--canvas-primary);
  border: 1px solid var(--button-navy);
  border-radius: var(--radius-sm);
  padding: 0.82rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.08);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-submit-large:focus-visible,
.btn-submit-large:active {
  background-color: var(--button-blue);
  border-color: var(--button-blue);
}

@media (hover: hover) {
  .btn-submit-large:hover {
    background-color: var(--button-blue);
    border-color: var(--button-blue);
  }
}

.btn-primary:focus-visible,
.btn-submit-large:focus-visible {
  outline-color: var(--button-blue);
}

.btn-submit-large:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-feedback {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  min-height: 1.2rem;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Confirmed Access Pass Card
   ========================================================================== */

.confirmed-card {
  animation: cardFadeIn 200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.confirmed-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.status-pill-success {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #EDFDF2;
  color: #166534;
  border: 1px solid #BBF7D0;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 500;
}

.status-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22C55E;
}

.pass-code-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--clay-terracotta);
  background: var(--canvas-secondary);
  border: var(--divider-hairline);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.confirmed-title {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-navy);
  margin-bottom: 0.5rem;
}

.confirmed-body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-body);
  margin-bottom: 1.5rem;
}

.confirmed-summary-box {
  background: var(--canvas-secondary);
  border: var(--divider-hairline);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
}

.summary-label {
  color: var(--ink-muted);
}

.summary-value {
  color: var(--ink-primary);
  font-weight: 500;
}

.highlight-batch {
  color: var(--clay-terracotta);
  font-weight: 600;
}

.confirmed-footer-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.back-to-top-btn {
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

/* ==========================================================================
   Contact Us Page Styles
   ========================================================================== */

.contact-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.contact-header {
  text-align: center;
  max-width: 640px;
  margin-bottom: 0.5rem;
}

.contact-card-container {
  width: 100%;
  max-width: 640px; /* same width as the application form card on desktop */
  margin: 0 auto;
}

.form-textarea {
  resize: vertical;
  min-height: 115px;
  line-height: 1.55;
}

.summary-line-stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding-top: 0.35rem;
  border-top: var(--divider-hairline);
}

.summary-query-text {
  color: var(--ink-primary);
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ==========================================================================
   Subtle Footer
   ========================================================================== */

.site-footer {
  /* Sits outside .page-shell so its rule and background run the full viewport width */
  margin-top: 6rem;
  padding: 2.5rem 2.5rem 0; /* same side inset as .site-header-inner */
  border-top: var(--divider-hairline);
  font-size: 0.85rem;
  color: var(--ink-body);
}

/* Footer content runs edge to edge inside the footer's own side padding */
.site-footer > .footer-grid,
.site-footer > .footer-bottom {
  max-width: none;
}

.footer-grid {
  display: grid;
  /* Link columns size to their content and sit together on the right; the brand column
     takes the remaining width, so the gap between link columns is exactly column-gap */
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  row-gap: 2rem;
  column-gap: 3rem;
  padding-bottom: 2.5rem;
  text-align: left;
}

.footer-brand p {
  margin-top: 1rem;
  line-height: 1.65;
  max-width: 22ch;
}

.footer-column h2 {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-navy);
}

.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li + li { margin-top: 0.65rem; }
.footer-column a, .footer-top-link {
  display: inline-block;
  padding: 0.25rem 0;
  color: inherit;
  text-decoration: none;
}
.footer-column li > span { display: inline-block; padding: 0.25rem 0; }
.footer-column a:focus-visible, .footer-top-link:focus-visible, .footer-brand a:focus-visible {
  outline: 2px solid var(--clay-terracotta);
  outline-offset: 4px;
}
@media (hover: hover) {
  .footer-column a:hover, .footer-top-link:hover { color: var(--ink-navy); text-decoration: underline; }
}
.footer-pending { color: var(--ink-muted); font-size: 0.75rem; margin-top: 0.8rem; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: var(--divider-hairline);
  padding: 1.25rem 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ==========================================================================
   Utilities & Responsiveness
   ========================================================================== */

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .concept-body-grid,
  .editor-split-grid {
    grid-template-columns: 1fr;
  }

  .editor-col {
    border-right: none;
    border-bottom: var(--divider-hairline);
  }
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 600px) {

  .site-header-inner {
    padding: 0 1.25rem;
  }

  .brand-logo {
    height: 1.65rem;
  }

  .header-nav {
    gap: 1.15rem;
  }

  .header-nav-link {
    font-size: 0.85rem;
  }

  .page-shell {
    padding: 2rem 1.25rem 4rem 1.25rem;
  }

  .editorial-headline {
    font-size: 2.3rem;
  }

  .action-cluster {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .action-cluster .btn-primary,
  .action-cluster .btn-secondary {
    justify-content: center;
    width: 100%;
  }

  .waitlist-card-container {
    padding: 1.5rem 1.15rem;
  }

  .phone-input-cluster {
    flex-direction: column;
  }

  .country-code-wrap {
    width: 100%;
  }

  .demo-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .stepper-indicator {
    display: none;
  }
}

/* Header: Join Waitlist reuses .btn-primary, just tighter to fit the bar */
.header-waitlist-btn { padding: 0.5rem 1rem; font-size: 0.88rem; }

/* Required-field marker */
.required-mark {
  color: #c0392b;
  margin-left: 0.1rem;
}

@media (max-width: 600px) {
  .header-nav { gap: 0.85rem; }
  .header-waitlist-btn { font-size: 0.78rem; padding: 0.4rem 0.7rem; }
}

.confirmed-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #EDFDF2;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.confirmed-card { text-align: center; }


/* Hero eyebrow: "Coming soon" typed out once, then a blinking caret */
.coming-soon-eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink-muted); /* no letter-spacing: the typing width is measured in ch */
  margin-bottom: 1rem;
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  border-right: 2px solid currentColor;
  width: 11ch; /* "Coming soon" = 11 characters in the monospace font */
}

@media (prefers-reduced-motion: no-preference) {
  .typing-text { animation: typing 5s steps(11, end) infinite, caret 0.8s step-end infinite; }
}

@keyframes typing {
  0% { width: 0; }
  28%, 100% { width: 11ch; }
}
@keyframes caret { 50% { border-color: transparent; } }

@media (prefers-reduced-motion: reduce) {
  .typing-text { animation: none; }
}

.confirmed-hint, .confirmation-help, .follow-note {
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.confirmed-hint { margin: -0.75rem 0 1.25rem; }
.confirmed-summary-box { text-align: left; overflow-wrap: anywhere; }
.summary-line { gap: 1rem; }
.summary-value { text-align: right; }
.confirmation-link {
  border: 0;
  background: transparent;
  color: var(--ink-navy);
  text-decoration: underline;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.share-section { border-top: var(--divider-hairline); margin-top: 1.4rem; padding-top: 1.25rem; }
.share-section > p:first-child { color: var(--ink-body); font-size: 0.88rem; margin: 0 0 0.8rem; }
.share-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: var(--divider-hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas-input);
  color: var(--ink-navy);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}
.share-button:focus-visible, .confirmation-link:focus-visible { outline: 2px solid var(--clay-terracotta); outline-offset: 3px; }
@media (hover: hover) { .share-button:hover { background: var(--canvas-secondary); } }
.confirmation-help:empty { display: none; }
.follow-note { margin: 1.25rem 0 0; }
.social-links { display: flex; justify-content: center; gap: 0.5rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--ink-navy);
  transition: background-color 150ms ease-out;
}
.social-link.is-pending { color: var(--ink-muted); }
a.social-link:focus-visible { outline: 2px solid var(--clay-terracotta); outline-offset: 3px; }
@media (hover: hover) { a.social-link:hover { background: var(--canvas-secondary); } }
@media (prefers-reduced-motion: reduce) { .confirmed-card { animation: none; } }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contact page: "or" divider + direct email */
.or-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 1.5rem; /* tight to the button above (feedback row already reserves space), roomier before the email line */
  color: var(--ink-muted);
  font-size: 0.82rem;
}
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: var(--divider-hairline); }
.contact-email-note { text-align: center; letter-spacing: 0; word-spacing: 0.12em; color: var(--ink-body); font-size: 0.92rem; margin: 0; }
.contact-email-note a { color: var(--ink-navy); font-weight: 600; text-underline-offset: 2px; }
.contact-email-note a:focus-visible { outline: 2px solid var(--clay-terracotta); outline-offset: 3px; border-radius: 2px; }

/* Footer "Connect": team email plus platform logos */
/* Row height matches the email link's box (line + 0.25rem padding), and the 28px icon boxes are
   pulled right by their empty margin so each glyph's right edge sits on the text's right edge */
.footer-social { display: flex; align-items: center; justify-content: flex-end; gap: 0.25rem; height: 2rem; margin-right: -5px; }
li.footer-social { margin-top: 0.65rem; }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  color: var(--ink-navy);
  transition: background-color 150ms ease-out;
}
.footer-social-link.is-pending { color: var(--ink-muted); }
.footer-social-link:focus-visible { outline: 2px solid var(--clay-terracotta); outline-offset: 3px; }
@media (hover: hover) { a.footer-social-link:hover { background: var(--canvas-secondary); } }
/* Footer rules above set padding and inherited color on every link; keep the icon boxes exact */
.footer-column .footer-social-link { display: inline-flex; padding: 0; color: var(--ink-navy); text-decoration: none; }
.footer-column .footer-social-link.is-pending { color: var(--ink-muted); }

/* Footer link columns right-aligned; the brand column keeps its left alignment */
.footer-grid .footer-column { text-align: right; }

/* ==========================================================================
   About Us & Careers Pages
   ========================================================================== */

.page-hero {
  text-align: center;
  padding: 3.5rem 0;
}
.page-hero .editorial-summary:last-child { margin-bottom: 0; }

.section-header.is-centered { text-align: center; }
.section-header.is-centered .section-desc { margin-left: auto; margin-right: auto; }

/* Left heading, right copy */
.split-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.prose p { font-size: 1.05rem; line-height: 1.65; color: var(--ink-body); }
.prose p + p { margin-top: 1rem; }
.prose .prose-emphasis { color: var(--ink-navy); font-weight: 600; }

/* Mono uppercase label: roadmap steps */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-body);
  margin-bottom: 0.75rem;
}

/* Card grids reuse .process-card surfaces; text-only cards sit tighter */
.card-grid { display: grid; gap: 1.25rem; list-style: none; }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card { gap: 0.5rem; }
.info-card .eyebrow { margin-bottom: 0.25rem; }

.section-note {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-body);
}
.section-note a, .cta-subline a, .cta-line a, .faq-answer a, .legal-doc a, .consent-option a {
  color: var(--ink-navy);
  font-weight: 600;
  text-underline-offset: 2px;
}

/* Privacy and Terms: one readable column of long-form text */
.legal-updated { margin-top: 0.75rem; font-size: 0.88rem; color: var(--ink-muted); }
.legal-doc {
  position: relative;
  z-index: 10;
  max-width: 760px;
  margin: 0 auto 4rem;
  padding: 2.5rem;
  background: var(--canvas-input);
  border: var(--divider-hairline);
  border-radius: var(--radius-md);
}
@media (max-width: 600px) { .legal-doc { padding: 1.5rem; } }
.legal-doc > section + section { margin-top: 2.5rem; }
.legal-doc h2 { font-size: 1.35rem; font-weight: 600; color: var(--ink-navy); margin-bottom: 0.75rem; }
.legal-doc h3 { font-size: 1rem; font-weight: 600; color: var(--ink-navy); margin: 1.5rem 0 0.6rem; }
.legal-doc p { font-size: 1rem; line-height: 1.7; color: var(--ink-body); }
.legal-doc p + p, .legal-doc p + .dot-list, .legal-doc .dot-list + p { margin-top: 0.85rem; }

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.cta-block .section-title { margin-bottom: 0; }
.cta-subline { font-size: 0.9rem; color: var(--ink-body); }
.cta-line { font-size: 1rem; color: var(--ink-body); }

/* Open role */
.role-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
  padding: 1.75rem 2rem;
  background: var(--canvas-input);
  border: var(--divider-hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(20, 20, 19, 0.03);
}
.role-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-navy); }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0.75rem 0 1rem; }
.meta-tag {
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--canvas-secondary);
  border: var(--divider-hairline);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-body);
}
.role-desc { max-width: 52ch; font-size: 0.95rem; line-height: 1.6; color: var(--ink-body); }
.role-apply-btn { flex: none; }

/* Role detail + apply pages */
.page-hero .eyebrow { margin-bottom: 0.5rem; }
.meta-row.is-centered { justify-content: center; margin: 0.25rem 0 1.25rem; }
.apply-hero { padding-bottom: 2.5rem; }

/* Role page: body copy sits in a white box; headings stay bare */
.role-page .prose,
.role-page .dot-list {
  background: var(--canvas-input);
  border: var(--divider-hairline);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.dot-list { display: grid; gap: 0.85rem; list-style: none; }
.dot-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-body);
}
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.8em - 3px); /* centred on the first line */
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay-terracotta);
}

.form-file { padding: 0.55rem 0.6rem; font-size: 0.88rem; color: var(--ink-body); cursor: pointer; }
.form-file::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.4rem 0.8rem;
  border: var(--divider-hairline);
  border-radius: 4px; /* sits ~9px inside the 8px field, so it stays tight rather than concentric */
  background: var(--canvas-secondary);
  color: var(--ink-navy);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms ease-out;
}
@media (hover: hover) { .form-file::file-selector-button:hover { background: #E8E7E0; } }

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 0 auto; border-top: var(--divider-hairline); }
.faq-item { border-bottom: var(--divider-hairline); }
.faq-heading { font: inherit; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 44px;
  padding: 1.1rem 0;
  background: none;
  border: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-navy);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq-icon { flex: none; color: var(--ink-body); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) { .faq-icon { transition: transform 150ms ease-out; } }
@media (hover: hover) { .faq-question:hover { color: var(--button-blue); } }
.faq-answer { padding: 0 2.5rem 1.25rem 0; font-size: 0.95rem; line-height: 1.65; color: var(--ink-body); }

@media (max-width: 960px) {
  .card-grid-4, .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .split-2 { grid-template-columns: 1fr; gap: 1.5rem; }
  .role-card { flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 1.25rem; }
}
@media (max-width: 600px) {
  .card-grid-4, .card-grid-3 { grid-template-columns: 1fr; }
  .page-hero { padding: 2rem 0 2.5rem; }
  .faq-answer { padding-right: 0; }
}

/* Learn by Doing cards: slightly larger than the shared card size used on About and Careers */
@media (min-width: 769px) {
  .how-it-works-section .process-grid { margin-inline: -1.5rem; }
}
.how-it-works-section .process-card { padding: 1.5rem 1.7rem 1.75rem; gap: 1.25rem; }
.how-it-works-section .process-gif-frame { aspect-ratio: 9 / 5.4; }

/* Application page: two columns (role context left, form right), stacked below 860px */
.apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.6fr); /* form takes most of the width */
  gap: 3.5rem;
  align-items: start;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}
.apply-aside { text-align: left; }
.apply-aside .role-overview[hidden] { display: none; }
.apply-aside .role-overview .apply-next-title { margin-top: 2rem; }
.role-overview-text { font-size: 0.95rem; line-height: 1.65; color: var(--ink-body); }
/* Stacked label over value, as on the Ashby listing */
.role-facts { display: grid; gap: 1.1rem; margin: 0 0 0.5rem; }
.role-facts > div { display: grid; gap: 0.25rem; }
.role-facts dt { font-size: 0.85rem; color: var(--ink-muted); }
.role-facts dd { font-size: 1rem; color: var(--ink-navy); font-weight: 600; }
.apply-aside .role-overview .dot-list { font-size: 0.95rem; }
.apply-aside .eyebrow { margin-bottom: 0.5rem; }
.apply-aside .editorial-headline {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  margin: 0 0 1rem;
  max-width: none;
  text-align: left;
}
.apply-aside .editorial-summary { margin: 0 0 2rem; max-width: 46ch; }
.apply-next-title { font-size: 0.95rem; font-weight: 600; color: var(--ink-navy); margin-bottom: 0.9rem; }
.apply-steps { list-style: none; display: grid; gap: 0.85rem; }
.apply-steps li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.95rem; line-height: 1.55; color: var(--ink-body); }
.apply-step-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--canvas-secondary);
  border: var(--divider-hairline);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-navy);
}
.apply-form-col .waitlist-card-container { max-width: none; margin: 0; }
/* Nudge the form right on desktop: the negative right margin keeps its width unchanged */
@media (min-width: 861px) {
  .apply-form-col { margin-left: 2rem; margin-right: -2rem; }
}
@media (max-width: 860px) {
  .apply-layout { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.5rem; }
}

/* Business Development page: wider body text column, slightly open letter-spacing */
.role-page .split-2 { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 5.5rem; }
.role-page .prose p, .role-page .dot-list li { font-size: 1.1rem; letter-spacing: 0.012em; }
/* Business Development page: the text sections reach further into the side margins on wide screens */
@media (min-width: 861px) {
  .role-page .section-block { margin-inline: -2rem; padding-inline: 2rem; }
}

/* Back arrow on the heading's line, at the content's left edge. Centered pages use a matching
   empty column on the right so the heading stays centred; baseline alignment sits the arrow on
   the heading's first line. -11px lines the 22px glyph (in its 44px hit box) up with the edge. */
.title-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: baseline;
  column-gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.title-row > .editorial-headline { margin: 0; }
.title-row > .back-arrow { margin-left: -11px; -webkit-tap-highlight-color: transparent; }
.contact-header { width: 100%; max-width: none; }
/* Arrow shares its line with the small label (Open role / Application); the heading sits below */
.title-row.is-eyebrow { align-items: center; margin-bottom: 0.5rem; }
.title-row.is-eyebrow > .eyebrow { margin: 0; }
.back-arrow[hidden] { display: none; }
/* Application page: arrow lines up with the logo (header padding minus the arrow's 11px inner offset), heading centered */
.apply-topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  padding: 2.5rem calc(2.5rem - 11px) 1.5rem; /* bottom: breathing room before the form body */
}
.apply-topbar > .editorial-headline { margin: 0 auto; text-align: center; }
.apply-topbar + .page-shell { padding-top: 0; }
@media (max-width: 600px) { .apply-topbar { padding: 2rem calc(1.25rem - 11px) 1rem; } }
/* Role page: arrow gets its own row at the column edge, above the centered hero */
.page-hero > .back-arrow { display: flex; margin: -1.5rem 0 0.75rem -11px; -webkit-tap-highlight-color: transparent; }

.back-arrow {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}
.back-arrow:focus-visible { outline: 2px solid var(--clay-terracotta); outline-offset: 3px; color: var(--ink-navy); }
@media (hover: hover) { .back-arrow:hover { color: var(--ink-navy); background: var(--canvas-secondary); } }
