/* ==========================================================================
   Everwright AI — v3 Shared Design System & Site Stylesheet
   Zero external dependencies. System sans and monospace typography.
   - Warm-gray canvas (#F5F4F0) and recessed section band (#EFECE6)
   - Crisp elevated light surfaces (#FFFFFF)
   - Deep ink typography & dark contrast panels (#121B22, #1A2630)
   - Vivid teal accents (#08746B on light, #1FC4B5 / #78E9DD on dark)
   ========================================================================== */

:root {
  /* Palette Tokens */
  --canvas: #F5F4F0;
  --canvas-alt: #EFECE6;
  --surface-light: #FFFFFF;
  --surface-subtle: #ECEAE3;

  --dark-ink: #121B22;
  --dark-surface: #1A2630;
  --dark-border: #2C3B48;
  --dark-border-strong: #465B6D;

  --border-hairline: #DFDDD5;
  --border-strong: #C2BFB5;

  --text-ink: #121B22;
  --text-muted: #46535E;
  --text-light: #F5F4F0;
  --text-light-muted: #D2DCE4;

  /* Vivid Teal Accent */
  --teal-primary: #08746B;
  --teal-hover: #065D56;
  --teal-bright: #1FC4B5;
  --teal-bright-hover: #35D7C8;
  --teal-on-dark: #78E9DD;
  --teal-soft: #E6F4F2;
  --teal-border: #9FD6D0;
  --teal-ink: #06554E;
  --teal-glow: rgba(31, 196, 181, 0.22);

  /* Typography Stacks */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(18, 27, 34, 0.05);
  --shadow-md: 0 4px 16px rgba(18, 27, 34, 0.07), 0 1px 3px rgba(18, 27, 34, 0.04);
  --shadow-lg: 0 14px 32px -8px rgba(18, 27, 34, 0.1), 0 3px 10px rgba(18, 27, 34, 0.04);
  --shadow-dark: 0 24px 56px -12px rgba(0, 0, 0, 0.42), 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-teal-glow: 0 0 24px -4px rgba(31, 196, 181, 0.35);

  /* Layout */
  --container-max: 75rem; /* 1200px */
  --reading-width: 58rem;
  --header-height: 4.5rem;
  --tap-target: max(44px, 2.75rem);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--canvas);
  /* Subtle geometric grid texture and atmospheric radial glow */
  background-image:
    radial-gradient(ellipse 90% 45% at 50% 0%, rgba(31, 196, 181, 0.07), transparent 70%),
    linear-gradient(to right, rgba(18, 27, 34, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 27, 34, 0.032) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  background-position: top center, top center, top center;
  color: var(--text-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  overflow-wrap: anywhere;
}

main {
  flex: 1;
}

img,
svg,
video {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(8, 116, 107, 0.16);
}

main:focus {
  outline: none;
}

main:focus-visible {
  outline: 2px solid var(--teal-primary);
  outline-offset: -2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

/* Utility Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container-narrow {
  max-width: var(--reading-width);
}

.stack > * + * {
  margin-top: 1.5rem;
}

/* Skip to Main Content */
.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target);
  background-color: var(--dark-ink);
  color: var(--text-light);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--teal-on-dark);
  box-shadow: var(--shadow-dark), var(--shadow-teal-glow);
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0.75rem;
  outline-color: var(--teal-on-dark);
  box-shadow: var(--shadow-dark), 0 0 0 4px rgba(120, 233, 221, 0.25);
}

/* ==========================================================================
   Compact Header (Static on narrow mobile, sticky on tablet/desktop)
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 1000;
  background: rgba(245, 244, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, var(--shadow-sm);
  padding-block: 0.75rem;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.625rem;
}

.brand-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}

.brand-link,
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: var(--tap-target);
  padding: 0.375rem 0.25rem 0.375rem 0;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--dark-ink);
}

.brand-logo-mark,
.site-brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
  border-radius: var(--radius-sm);
  object-fit: cover;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-header .brand-logo-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: var(--dark-ink);
  border: 1px solid var(--dark-border-strong);
  box-shadow: 0 0 0 1px var(--surface-light), 0 2px 5px rgba(18, 27, 34, 0.24);
}

.brand-link:hover .brand-logo-mark,
.site-brand:hover .site-brand-mark {
  transform: scale(1.05);
}

.brand-name {
  display: inline-block;
  line-height: 1;
}

/* Persistent Beta Badge */
.badge-beta,
.beta-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--teal-ink);
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 1px 2px rgba(8, 116, 107, 0.06);
}

.badge-dot,
.beta-badge::before,
.status-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: var(--teal-primary);
  box-shadow: 0 0 6px var(--teal-bright);
}

.beta-badge::before,
.status-badge::before {
  content: "";
}

/* Primary Navigation — 2x2 grid on narrow phones so every tap target is >= 44px */
.site-nav {
  width: 100%;
}

.nav-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  gap: 0.375rem;
  width: 100%;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--tap-target);
  min-width: var(--tap-target);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  position: relative;
}

.nav-link:hover {
  color: var(--text-ink);
  background-color: rgba(18, 27, 34, 0.055);
}

.nav-link:is(.is-active, .active, [aria-current="page"]) {
  color: var(--teal-ink);
  background-color: var(--teal-soft);
  border-color: var(--teal-border);
}

.nav-link:is(.is-active, .active, [aria-current="page"])::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background-color: var(--teal-primary);
  border-radius: 1px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(1.875rem, 4.5vw, 3.25rem) clamp(1.5rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--border-hairline);
}

.hero-header {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto;
}

.hero-inner {
  max-width: 52rem;
}

/* Prominent Hero Status Pill */
.hero-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.375rem;
}

.hero-badge {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.25rem;
}

.hero-pill-badge,
.hero-badge .beta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  max-width: 100%;
  padding: 0.4375rem 0.9375rem 0.4375rem 0.75rem;
  background: var(--surface-light);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  color: var(--text-ink);
}

.hero-pill-dot,
.hero-badge .beta-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(8, 116, 107, 0.15), 0 0 8px var(--teal-bright);
}

.hero-pill-text {
  font-weight: 600;
  color: var(--text-ink);
}

/* Display Headline, Tagline & Lead Copy */
.hero-title {
  font-size: clamp(1.875rem, 4.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.035em;
  color: var(--dark-ink);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero-title:last-child {
  margin-bottom: 0;
}

.hero-title-highlight {
  color: var(--teal-primary);
}

.hero-tagline {
  max-width: 44rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 58ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.6;
}

.hero-lead:not(:last-child) {
  margin-bottom: 1.375rem;
}

.hero-header .hero-tagline,
.hero-header .hero-lead {
  margin-inline: auto;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-header .hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 20rem;
  margin-inline: auto;
  margin-top: 1.375rem;
  gap: 0.75rem;
}

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem; /* 46px >= 44px */
  min-width: var(--tap-target);
  max-width: 100%;
  padding: 0.75rem 1.375rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
}

.btn-primary,
.button-primary {
  background-color: var(--teal-primary);
  color: #FFFFFF;
  border: 1px solid var(--teal-hover);
  box-shadow: 0 2px 4px rgba(8, 116, 107, 0.2), 0 4px 14px rgba(8, 116, 107, 0.16);
}

.btn-primary:hover,
.button-primary:hover {
  background-color: var(--teal-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(8, 116, 107, 0.24), 0 8px 20px rgba(8, 116, 107, 0.2);
}

.btn-secondary,
.button-secondary {
  background-color: var(--surface-light);
  color: var(--dark-ink);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.button-secondary:hover {
  background-color: var(--surface-subtle);
  border-color: var(--text-muted);
  color: var(--dark-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-icon,
.button-primary:hover .btn-icon {
  transform: translateX(2px);
}

/* ==========================================================================
   Dark Showcase Hero (headline, illustration, background swirl, workflow panel)
   ========================================================================== */
:is(.hero-showcase, .hero-showcase--subpage, .hero-section) {
  position: relative;
  isolation: isolate;
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1.75rem, 4.5vw, 3.25rem) 0 clamp(1.25rem, 3vw, 2rem);
  color: var(--text-light);
  background-color: var(--dark-ink);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 18%, rgba(5, 17, 36, 0.55), transparent 72%),
    linear-gradient(180deg,
      rgba(18, 27, 34, var(--hero-overlay-top, 0.42)),
      rgba(18, 27, 34, var(--hero-overlay-bottom, 0.78))),
    url("assets/generated/2026-12-02/abstract-flowing-teal-and-dark-navy-ligh-5890395d-bff-1.png");
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-size: auto, auto, cover;
  border-bottom: 1px solid var(--dark-border);
  overflow: clip;
}

/* The subpages currently use the plain .hero-section class. */
:is(.hero-showcase--subpage, .hero-section:not(.hero-showcase)) {
  --hero-overlay-top: 0.76;
  --hero-overlay-bottom: 0.84;
  margin-bottom: 0;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}

.hero-swirl {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 38% at 12% 88%, rgba(31, 196, 181, 0.28), transparent 68%),
    radial-gradient(ellipse 42% 36% at 92% 8%, rgba(120, 233, 221, 0.16), transparent 70%),
    url("assets/generated/2026-12-02/abstract-flowing-teal-and-dark-navy-ligh-5890395d-bff-1.png") center / cover no-repeat;
  opacity: 0.55;
}

.hero-showcase-inner {
  position: relative;
  z-index: 1;
}

:is(.hero-showcase, .hero-showcase--subpage, .hero-section) .hero-title {
  color: var(--text-light);
}

:is(.hero-showcase, .hero-showcase--subpage, .hero-section) .hero-title-highlight {
  color: var(--teal-on-dark);
}

:is(.hero-showcase, .hero-showcase--subpage, .hero-section) .hero-tagline,
:is(.hero-showcase, .hero-showcase--subpage, .hero-section) .hero-lead {
  color: var(--text-light-muted);
}

:is(.hero-showcase, .hero-showcase--subpage, .hero-section) .hero-pill-badge {
  background: rgba(18, 27, 34, 0.72);
  border-color: var(--dark-border-strong);
  color: var(--text-light);
  box-shadow: none;
}

:is(.hero-showcase, .hero-showcase--subpage, .hero-section) .hero-pill-text {
  color: var(--text-light);
}

:is(.hero-showcase, .hero-showcase--subpage, .hero-section) .hero-pill-dot {
  background: var(--teal-on-dark);
  box-shadow: 0 0 0 3px rgba(120, 233, 221, 0.18), 0 0 8px var(--teal-bright);
}

:is(.hero-showcase, .hero-showcase--subpage, .hero-section) .btn-secondary {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--dark-border-strong);
  box-shadow: none;
}

:is(.hero-showcase, .hero-showcase--subpage, .hero-section) .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--teal-on-dark);
  color: #FFFFFF;
}

:is(.hero-showcase, .hero-showcase--subpage, .hero-section) .btn-primary {
  color: var(--dark-ink);
  background: var(--teal-bright);
  border-color: var(--teal-bright);
  box-shadow: 0 2px 12px rgba(31, 196, 181, 0.25);
}

:is(.hero-showcase, .hero-showcase--subpage, .hero-section) .btn-primary:hover {
  background: var(--teal-bright-hover);
  border-color: var(--teal-bright-hover);
  color: var(--dark-ink);
}

.hero-showcase .workflow-showcase {
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
}

/* ==========================================================================
   Workflow Overview Showcase (Dark Panel with Background Swirl Artwork)
   ========================================================================== */
.workflow-section {
  padding-bottom: clamp(2rem, 4.5vw, 3.5rem);
}

.workflow-showcase {
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  color: var(--text-light);
  background-color: var(--dark-ink);
  background-image:
    radial-gradient(ellipse 65% 50% at 88% 100%, rgba(31, 196, 181, 0.14), transparent 65%),
    radial-gradient(ellipse 70% 55% at 50% 24%, rgba(5, 17, 36, 0.72), transparent 72%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(135deg, rgba(18, 27, 34, 0.84), rgba(18, 27, 34, 0.76)),
    url("assets/generated/2026-12-02/abstract-flowing-teal-and-dark-navy-ligh-5890395d-bff-1.png");
  background-position: center, center, top left, top left, center, center;
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat, no-repeat;
  background-size: auto, auto, 24px 24px, 24px 24px, auto, cover;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-dark);
}

.workflow-intro {
  font-size: clamp(1rem, 1.75vw, 1.25rem);
  line-height: 1.58;
  max-width: 44rem;
  margin: 0 auto 1.375rem;
  text-align: center;
  color: var(--text-light);
}

.workflow-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem 1rem;
  padding-bottom: 0.875rem;
  margin-bottom: 1.125rem;
  border-bottom: 1px solid var(--dark-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

.workflow-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal-on-dark);
  font-weight: 700;
}

.workflow-meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--teal-on-dark);
  box-shadow: 0 0 8px var(--teal-bright);
}

.workflow-illustration {
  display: block;
  width: 100%;
  max-width: 50rem;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 45%;
  margin: 0 auto 1.375rem;
  background-color: #051124;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 14px 32px -12px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(120, 233, 221, 0.12);
}

.workflow-details summary {
  cursor: pointer;
  min-height: var(--tap-target);
  padding: 0.5rem 0.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--teal-on-dark);
}

.workflow-details summary:hover {
  color: var(--teal-bright-hover);
}

.workflow-details[open] summary {
  margin-bottom: 1rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  list-style: none;
}

.workflow-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 48%),
    var(--dark-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--text-light-muted);
  font-size: 0.9375rem;
  line-height: 1.52;
}

.workflow-stage:last-child {
  border-color: var(--teal-bright);
  background:
    radial-gradient(ellipse 95% 75% at top right, var(--teal-glow), transparent 68%),
    linear-gradient(180deg, #17363B 0%, var(--dark-surface) 100%);
  box-shadow:
    inset 0 3px 0 var(--teal-bright),
    var(--shadow-teal-glow),
    0 10px 24px -12px rgba(0, 0, 0, 0.45);
  color: var(--text-light);
}

.workflow-stage:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 50%;
  width: 2px;
  height: 0.875rem;
  background: rgba(120, 233, 221, 0.55);
  transform: translateX(-50%);
  pointer-events: none;
}

.workflow-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(100% + 0.625rem);
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--teal-on-dark);
  border-bottom: 2px solid var(--teal-on-dark);
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}

.workflow-stage:nth-child(2)::before {
  background: var(--teal-bright);
}

.workflow-stage:nth-child(2)::after {
  border-right-color: var(--teal-bright);
  border-bottom-color: var(--teal-bright);
}

.workflow-stage h2,
.workflow-stage h3 {
  margin-bottom: 0.4375rem;
  color: var(--text-light);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.workflow-stage p {
  margin: 0;
}

.workflow-stage ul {
  padding-inline-start: 1.125rem;
  margin: 0;
  display: grid;
  gap: 0.25rem;
}

.workflow-stage ul li::marker {
  color: var(--teal-on-dark);
}

.workflow-stage-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.625rem;
  padding: 0.2rem 0.625rem;
  border: 1px solid rgba(120, 233, 221, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(31, 196, 181, 0.1);
  color: var(--teal-on-dark);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.workflow-stage:last-child .workflow-stage-pill {
  border-color: var(--teal-bright);
  background: var(--teal-bright);
  color: var(--dark-ink);
  box-shadow: 0 0 14px rgba(31, 196, 181, 0.3);
}

.workflow-description {
  max-width: 68ch;
  margin: 1.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--dark-border);
  color: var(--text-light-muted);
  font-size: 0.90625rem;
  line-height: 1.55;
  text-align: center;
}

/* ==========================================================================
   Content Sections & Elevated Light Cards
   ========================================================================== */
.home-section,
.section {
  padding: clamp(2.75rem, 6vw, 4.75rem) 0;
}

.home-section-alt,
.section-alt {
  background: var(--canvas-alt);
  border-block: 1px solid var(--border-hairline);
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.section-header {
  max-width: 44rem;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: clamp(1.625rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--dark-ink);
}

#overview-heading {
  text-wrap: balance;
}

.section-lead {
  margin-top: 0.625rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.58;
}

.home-card-grid,
.card-grid,
.card-grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.125rem;
}

.home-card,
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.375rem, 3vw, 2rem);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at top right, rgba(230, 244, 242, 0.85), transparent 62%),
    var(--surface-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-card:hover,
.card:hover {
  transform: translateY(-2px);
  border-color: var(--teal-border);
  box-shadow: var(--shadow-lg);
}

.home-card h2,
.home-card h3,
.card-title {
  margin-bottom: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--dark-ink);
}

.home-card p,
.card-body {
  color: var(--text-muted);
  font-size: 0.96875rem;
  line-height: 1.6;
}

.card-accent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.125rem;
  border-bottom: 1px solid var(--border-hairline);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  padding: 0.625rem;
  flex-shrink: 0;
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-md);
  background: var(--teal-soft);
  color: var(--teal-primary);
}

.step-badge {
  padding: 0.25rem 0.6875rem;
  color: var(--teal-ink);
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.approval-card {
  border-color: var(--teal-primary);
  background:
    radial-gradient(ellipse 90% 70% at top right, rgba(209, 238, 235, 0.95), transparent 65%),
    var(--surface-light);
  box-shadow: inset 0 3px 0 var(--teal-primary), var(--shadow-md);
}

.approval-card:hover {
  border-color: var(--teal-hover);
}

.approval-card .step-badge {
  background: var(--teal-primary);
  border-color: var(--teal-hover);
  color: #FFFFFF;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ==========================================================================
   Subpage Components — Steps, Updates Changelog & Contact Card
   ========================================================================== */

/* Steps (how-it-works.html) */
.steps,
.step-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.125rem;
  list-style: none;
}

.step-card,
.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(1.375rem, 3vw, 2rem);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at top right, rgba(230, 244, 242, 0.85), transparent 62%),
    var(--surface-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step-card:hover,
.step:hover {
  transform: translateY(-2px);
  border-color: var(--teal-border);
  box-shadow: var(--shadow-lg);
}

.step-card:last-child {
  border-color: var(--teal-primary);
  background:
    radial-gradient(ellipse 90% 70% at top right, rgba(209, 238, 235, 0.95), transparent 65%),
    var(--surface-light);
  box-shadow: inset 0 3px 0 var(--teal-primary), var(--shadow-md);
}

.step-card:last-child:hover {
  border-color: var(--teal-hover);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.625rem;
  margin-bottom: 1rem;
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-pill);
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.step-card:last-child .step-number {
  background: var(--teal-primary);
  border-color: var(--teal-hover);
  color: #FFFFFF;
}

.step-content {
  min-width: 0;
  width: 100%;
}

.step-title {
  margin-bottom: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--dark-ink);
}

.step-description {
  color: var(--text-muted);
  font-size: 0.96875rem;
  line-height: 1.6;
}

/* Changelog / Updates (updates.html) */
.updates-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.875rem;
  list-style: none;
}

.update-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  min-width: 0;
  padding: 1.125rem 1.375rem;
  border: 1px solid var(--border-hairline);
  border-inline-start: 3px solid var(--teal-primary);
  border-radius: var(--radius-md);
  background: var(--surface-light);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.update-item:hover {
  border-color: var(--teal-border);
  border-inline-start-color: var(--teal-primary);
  box-shadow: var(--shadow-md);
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.update-id,
.update-meta .update-id,
.update-version {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.625rem;
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-pill);
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
}

.update-date {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.update-body,
.update-summary {
  color: var(--text-ink);
  font-size: 0.96875rem;
  line-height: 1.6;
}

/* Contact Card (contact.html) */
.contact-card {
  max-width: 44rem;
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at top right, rgba(230, 244, 242, 0.85), transparent 62%),
    var(--surface-light);
  box-shadow: var(--shadow-md);
}

.contact-title {
  margin-bottom: 0.25rem;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--dark-ink);
}

.contact-list {
  margin-block: 1.25rem;
}

.contact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0.25rem 1.25rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--border-hairline);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-value {
  min-width: 0;
  color: var(--text-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target);
  min-width: var(--tap-target);
  max-width: 100%;
  color: var(--teal-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
}

.contact-link:hover {
  color: var(--teal-hover);
}

.contact-note {
  padding-top: 1rem;
  border-top: 1px solid var(--border-hairline);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.contact-note a {
  display: inline-grid;
  align-items: center;
  min-height: var(--tap-target);
  min-width: var(--tap-target);
  max-width: 100%;
  vertical-align: middle;
  color: var(--teal-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
}

.contact-note a:hover {
  color: var(--teal-hover);
}

/* ==========================================================================
   Private Beta Callout Banner
   ========================================================================== */
.beta-callout,
.callout {
  padding: clamp(1.5rem, 5vw, 3.25rem);
  color: var(--text-light);
  background:
    linear-gradient(135deg, rgba(12, 21, 31, 0.80), rgba(12, 21, 31, 0.74)),
    url("assets/generated/2026-12-02/abstract-flowing-teal-and-dark-navy-ligh-5890395d-bff-1.png") center / cover no-repeat,
    var(--dark-ink);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-dark);
}

.beta-callout-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(120, 233, 221, 0.38);
  background: rgba(31, 196, 181, 0.12);
  color: #88F0E5;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.beta-callout .section-title,
.callout-title {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.028em;
}

.beta-callout p,
.callout p {
  max-width: 58ch;
  color: var(--text-light-muted);
  font-size: 1.03125rem;
  line-height: 1.6;
}

.callout a,
.beta-callout p a {
  display: inline-grid;
  align-items: center;
  min-height: var(--tap-target);
  min-width: var(--tap-target);
  max-width: 100%;
  vertical-align: middle;
  color: var(--teal-on-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
}

.callout a:hover,
.beta-callout p a:hover {
  color: #FFFFFF;
}

.beta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.beta-actions .btn-primary,
.beta-actions .button-primary {
  color: var(--dark-ink);
  background: var(--teal-bright);
  border-color: var(--teal-bright);
  box-shadow: 0 2px 12px rgba(31, 196, 181, 0.25);
}

.beta-actions .btn-primary:hover,
.beta-actions .button-primary:hover {
  background: var(--teal-bright-hover);
  border-color: var(--teal-bright-hover);
  color: var(--dark-ink);
}

.beta-actions .btn-secondary,
.beta-actions .button-secondary {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--dark-border-strong);
  box-shadow: none;
}

.beta-actions .btn-secondary:hover,
.beta-actions .button-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--teal-on-dark);
  color: #FFFFFF;
}

/* ==========================================================================
   Dark Footer
   ========================================================================== */
.site-footer {
  padding: 2.25rem 0;
  color: var(--text-light);
  background: var(--dark-ink);
  border-top: 1px solid var(--dark-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.footer-brand-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.footer-brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-height: var(--tap-target);
  padding: 0.375rem 0.25rem 0.375rem 0;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.03em;
  color: var(--text-light);
}

.site-footer .brand-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
}

a.footer-brand {
  flex-wrap: nowrap;
}

.footer-tagline {
  flex-basis: 100%;
  color: var(--text-light-muted);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

.site-footer .badge-beta,
.site-footer .beta-badge {
  background: rgba(31, 196, 181, 0.12);
  border-color: rgba(120, 233, 221, 0.36);
  color: #88F0E5;
  box-shadow: none;
}

.site-footer .badge-dot,
.site-footer .beta-badge::before {
  background-color: var(--teal-on-dark);
  box-shadow: 0 0 6px var(--teal-bright);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0.25rem 0.5rem;
  margin-left: -0.625rem;
}

.footer-link,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target);
  min-width: var(--tap-target);
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-sm);
  color: var(--text-light-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.footer-link:hover,
.footer-link[aria-current="page"],
.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--teal-on-dark);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer-meta {
  color: var(--text-light-muted);
  font-size: 0.875rem;
}

/* High-contrast Focus Outlines on Dark Surfaces */
:is(.hero-showcase, .hero-showcase--subpage, .hero-section) a:focus-visible,
.site-footer a:focus-visible,
.beta-callout a:focus-visible,
.callout a:focus-visible,
.workflow-showcase a:focus-visible,
.workflow-showcase summary:focus-visible {
  outline: 2px solid var(--teal-on-dark);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(120, 233, 221, 0.22);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 30rem) {
  .site-header .brand-logo-mark {
    width: 38px;
    height: 38px;
  }

  .nav-link {
    white-space: normal;
    text-align: center;
  }

  .hero-badge-wrap {
    margin-bottom: 1rem;
  }

  .workflow-showcase,
  .workflow-stage {
    padding-inline: clamp(0.875rem, 4vw, 1.125rem);
  }

  .home-section,
  .section {
    padding-block: 2rem;
  }

  .home-card,
  .card,
  .step-card,
  .step,
  .update-item,
  .contact-card,
  .beta-callout,
  .callout {
    padding-inline: clamp(1rem, 4.5vw, 1.375rem);
  }

  .contact-list {
    margin-block: 0 1rem;
  }

  .contact-link {
    display: inline-grid;
  }

  .section-actions,
  .beta-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-left: 0;
  }

  .footer-nav a {
    width: 100%;
  }
}

/* >= 448px (28rem): single-row nav list and wider container padding */
@media (min-width: 28rem) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
  }

  .nav-link {
    width: auto;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
  }
}

/* >= 640px (40rem): inline hero CTAs, 2-column overview cards, horizontal update and contact rows */
@media (min-width: 40rem) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 0.875rem;
  }

  .hero-header .hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: none;
    gap: 0.875rem;
  }

  .overview-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-item {
    grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
  }

  .update-item {
    grid-template-columns: 11.5rem minmax(0, 1fr);
    align-items: baseline;
    gap: 1.25rem;
  }
}

/* >= 768px (48rem): compact single-row sticky header & horizontal footer */
@media (min-width: 48rem) {
  .site-header {
    position: sticky;
    top: 0;
    min-height: var(--header-height);
    padding-block: 0.625rem;
    display: flex;
    align-items: center;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .brand-group {
    flex-shrink: 0;
  }

  .site-nav {
    width: auto;
  }

  .nav-list {
    justify-content: flex-end;
    gap: 0.375rem;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
  }

  .footer-nav {
    margin-left: 0;
  }
}

/* >= 896px (56rem): 3-column workflow stages with horizontal connectors, approach cards & steps */
@media (min-width: 56rem) {
  .workflow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }

  .workflow-stage:not(:last-child)::before {
    top: 50%;
    left: calc(100% + 0.4375rem);
    width: 1rem;
    height: 2px;
    transform: translateY(-50%);
  }

  .workflow-stage:not(:last-child)::after {
    top: 50%;
    left: calc(100% + 0.8125rem);
    transform: translateY(-50%) rotate(-45deg);
  }

  .approach-grid,
  .card-grid-3,
  .steps,
  .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Forced Colors Accessibility */
@media (forced-colors: active) {
  .nav-link:is(.is-active, .active, [aria-current="page"]) {
    border-color: LinkText;
    text-decoration: underline;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .btn-primary:hover,
  .button-primary:hover,
  .btn-secondary:hover,
  .button-secondary:hover,
  .home-card:hover,
  .card:hover,
  .step-card:hover,
  .step:hover,
  .brand-link:hover .brand-logo-mark,
  .site-brand:hover .site-brand-mark,
  .btn-primary:hover .btn-icon,
  .button-primary:hover .btn-icon {
    transform: none;
  }
}
