/* Generated by @ru4m/product-tokens. Do not edit directly.
   Edit src/tokens.json, then run bun run --cwd packages/product-tokens generate. */
:root, [data-md-color-scheme="default"] {
  --brand-primary: #001566;
  --brand-on-primary: #ffffff;
  --brand-green: #2ad366;
  --brand-blue: #0183d3;
  --brand-violet: #8b5cf6;
  --brand-amber: #f59e0b;
  --brand-teal: #14b8a6;
  --brand-red: #ef4444;
  --brand-on-gradient: #ffffff;
  --tile-green: #0b7c3f;
  --tile-green-foreground: #ffffff;
  --tile-green-soft: #e5faee;
  --tile-green-soft-foreground: #0b7c3f;
  --tile-blue: #0166a8;
  --tile-blue-foreground: #ffffff;
  --tile-blue-soft: #e5f0ff;
  --tile-blue-soft-foreground: #0166a8;
  --tile-violet: #4f46e5;
  --tile-violet-foreground: #ffffff;
  --tile-violet-soft: #eee7ff;
  --tile-violet-soft-foreground: #4f46e5;
  --tile-navy: #0a1746;
  --tile-navy-foreground: #ffffff;
  --tile-navy-soft: #e8eaf3;
  --tile-navy-soft-foreground: #0a1746;
  --tile-amber: #f2a516;
  --tile-amber-foreground: #0a1746;
  --tile-amber-soft: #fdf1d7;
  --tile-amber-soft-foreground: #906300;
  --tile-teal: #14b8a6;
  --tile-teal-foreground: #0a1746;
  --tile-teal-soft: #e2f6f2;
  --tile-teal-soft-foreground: #0f766e;
  --tile-red: #ef4444;
  --tile-red-foreground: #0a1746;
  --tile-red-soft: #fce6e7;
  --tile-red-soft-foreground: #b4232b;
  --product-surface-page: #f2f2f2;
  --product-surface-card: #ffffff;
  --product-surface-inset: #f8f8fa;
  --product-surface-border: #e8e9ed;
  --brand-primary-foreground: var(--brand-primary);
  --brand-green-foreground: color-mix(in oklab, var(--brand-green), black 35%);
  --brand-violet-foreground: color-mix(in oklab, var(--brand-violet), black 15%);
  --brand-amber-foreground: color-mix(in oklab, var(--brand-amber), black 20%);
  --brand-teal-foreground: color-mix(in oklab, var(--brand-teal), black 20%);
  --brand-gradient: linear-gradient(to right, var(--brand-green), var(--brand-blue));
  --brand-gradient-content: linear-gradient(to right in srgb, var(--tile-green), var(--tile-blue));
  --brand-gradient-text: linear-gradient(to right in srgb, var(--tile-green), var(--tile-blue));
  --brand-gradient-soft: linear-gradient(
    to right,
    color-mix(in oklab, var(--brand-green) 5%, transparent),
    color-mix(in oklab, var(--brand-blue) 5%, transparent)
  );
  --product-radius-base: 8px;
  --product-space-unit: 4px;
  --surface-shell-radius: calc(var(--product-radius-base) * 3);
  --surface-section-radius: calc(var(--product-radius-base) * 2);
  --surface-default-padding: calc(var(--product-space-unit) * 6);
  --surface-shell-padding: calc(var(--product-space-unit) * 6);
  --surface-shell-padding-wide: calc(var(--product-space-unit) * 8);
  --surface-section-padding: calc(var(--product-space-unit) * 5);
  --surface-card-shadow:
    0px 1px 2px 0px hsl(228 47.619% 8.2353% / 0.04),
    0px 4px 12px 0px hsl(228 47.619% 8.2353% / 0.06);
  --surface-shell-shadow: var(--surface-card-shadow);
  --surface-section-shadow: var(--surface-card-shadow);
  --product-font-body: "Open Sans", sans-serif;
  --product-font-display: "Roboto Condensed", ui-sans-serif, sans-serif, system-ui;
  --product-font-mono: "Roboto Mono", ui-monospace, monospace;
  --product-type-body-size: 16px;
  --product-type-body-line-height: 24px;
  --product-type-body-weight: 400;
  --product-type-body-tracking: 0em;
  --product-type-small-size: 14px;
  --product-type-small-line-height: 20px;
  --product-type-small-weight: 400;
  --product-type-small-tracking: 0em;
  --product-type-caption-size: 12px;
  --product-type-caption-line-height: 16px;
  --product-type-caption-weight: 400;
  --product-type-caption-tracking: 0em;
  --product-type-label-size: 14px;
  --product-type-label-line-height: 20px;
  --product-type-label-weight: 500;
  --product-type-label-tracking: 0em;
  --product-type-eyebrow-size: 12px;
  --product-type-eyebrow-line-height: 16px;
  --product-type-eyebrow-weight: 600;
  --product-type-eyebrow-tracking: 0.18em;
  --product-type-eyebrow-transform: uppercase;
  --product-type-page-size: 30px;
  --product-type-page-line-height: 36px;
  --product-type-page-weight: 600;
  --product-type-page-tracking: -0.025em;
  --product-type-page-large-size: 36px;
  --product-type-page-large-line-height: 40px;
  --product-type-title-size: 24px;
  --product-type-title-line-height: 32px;
  --product-type-title-weight: 600;
  --product-type-title-tracking: -0.025em;
  --product-type-title-large-size: 30px;
  --product-type-title-large-line-height: 36px;
  --product-type-section-size: 18px;
  --product-type-section-line-height: 28px;
  --product-type-section-weight: 600;
  --product-type-section-tracking: -0.025em;
  --product-type-card-size: 16px;
  --product-type-card-line-height: 16px;
  --product-type-card-weight: 600;
  --product-type-card-tracking: 0em;
  --product-type-metric-size: 30px;
  --product-type-metric-line-height: 36px;
  --product-type-metric-weight: 600;
  --product-type-metric-tracking: -0.025em;
  --product-type-metric-compact-size: 24px;
  --product-type-metric-compact-line-height: 32px;
  --product-type-metric-compact-weight: 600;
  --product-type-metric-compact-tracking: -0.025em;
}

[data-md-color-scheme="slate"] {
  --tile-green-soft: #123322;
  --tile-green-soft-foreground: #86e3ac;
  --tile-blue-soft: #102a42;
  --tile-blue-soft-foreground: #8ccaff;
  --tile-violet-soft: #282344;
  --tile-violet-soft-foreground: #c4b5fd;
  --tile-navy-soft: #202943;
  --tile-navy-soft-foreground: #b9c8f1;
  --tile-amber-soft: #3b2d13;
  --tile-amber-soft-foreground: #f4cf78;
  --tile-teal-soft: #103832;
  --tile-teal-soft-foreground: #81dfd1;
  --tile-red-soft: #3d2029;
  --tile-red-soft-foreground: #f6a4ad;
  --product-surface-page: #05071a;
  --product-surface-card: #0b0f1f;
  --product-surface-inset: #161a2e;
  --product-surface-border: #2c3149;
  --brand-primary-foreground: color-mix(in oklab, var(--brand-primary), white 65%);
  --brand-green-foreground: var(--brand-green);
  --brand-violet-foreground: color-mix(in oklab, var(--brand-violet), white 20%);
  --brand-amber-foreground: color-mix(in oklab, var(--brand-amber), white 20%);
  --brand-teal-foreground: color-mix(in oklab, var(--brand-teal), white 20%);
  --brand-gradient-text: linear-gradient(to right in srgb, var(--brand-green), var(--brand-blue));
  --surface-card-shadow: 0px 1px 2px 0px hsl(0 0% 0% / 0.4),
    0px 4px 12px 0px hsl(0 0% 0% / 0.5);
  --surface-shell-shadow: var(--surface-card-shadow);
  --surface-section-shadow: var(--surface-card-shadow);
}

/* MkDocs layout adapter. Product values are prepended by hooks/product_theme.py. */
:root {
  --ru4m-green: var(--brand-green);
  --ru4m-blue: var(--brand-blue);
  --ru4m-navy: var(--brand-primary);
  --ru4m-navy-light: color-mix(in oklab, var(--brand-primary), white 15%);
  --ru4m-navy-dark: color-mix(in oklab, var(--brand-primary), black 20%);
  --ru4m-gradient: var(--brand-gradient);
  --ru4m-gradient-h: var(--brand-gradient);
  --ru4m-gradient-subtle: var(--brand-gradient-soft);
}

[data-md-color-scheme="default"],
[data-md-color-scheme="slate"] {
  --md-default-bg-color: var(--product-surface-page);
  --md-primary-fg-color: var(--ru4m-navy);
  --md-primary-fg-color--light: var(--ru4m-navy-light);
  --md-primary-fg-color--dark: var(--ru4m-navy-dark);
  --md-primary-bg-color: var(--brand-on-primary);
  --md-primary-bg-color--light: color-mix(in oklab, var(--brand-on-primary) 70%, transparent);
  --md-accent-fg-color: var(--brand-green-foreground);
  --md-accent-fg-color--transparent: color-mix(in oklab, var(--brand-green) 10%, transparent);
  --md-typeset-a-color: var(--brand-green-foreground);
  --surface-card: var(--product-surface-card);
  --border-subtle: var(--product-surface-border);
  --border-accent: color-mix(in oklab, var(--brand-blue) 25%, transparent);
  --shadow-md: var(--surface-shell-shadow);
  --shadow-lg: var(--surface-shell-shadow);
}

/* ── Global Heading Font ── */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  font-family: var(--product-font-body);
}

/* ── Header ── */
.md-header {
  background: var(--ru4m-navy);
  box-shadow: var(--surface-shell-shadow);
}

/* Gradient accent stripe between header and tabs */
.md-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ru4m-gradient-h);
  opacity: 0.6;
  z-index: 1;
}

.md-header__button.md-logo img {
  height: 1.8rem;
  width: auto;
}

/* Header title */
.md-header__topic {
  font-family: var(--product-font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── Tabs Bar ── */
.md-tabs {
  background-color: var(--md-primary-fg-color--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-md-color-scheme="slate"] .md-tabs {
  background-color: var(--ru4m-navy-dark);
}

/* Tab items */
.md-tabs__link {
  font-family: var(--product-font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  opacity: 0.65;
  transition: all 0.2s ease;
  position: relative;
}

.md-tabs__link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

/* Active tab — gradient underline */
.md-tabs__link--active {
  opacity: 1;
  font-weight: 600;
}

.md-tabs__link--active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.8rem;
  right: 0.8rem;
  height: 2px;
  background: var(--ru4m-gradient-h);
  border-radius: 2px 2px 0 0;
}

/* ── Search Bar — Pill Shape ── */
.md-search__form {
  border-radius: var(--surface-section-radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

.md-search__form:focus-within {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-green) 10%, transparent);
}

[data-md-color-scheme="default"] .md-search__form {
  border-radius: var(--surface-section-radius);
}

/* Search icon and input */
.md-search__input {
  font-family: var(--product-font-body);
  font-size: 0.85rem;
}

.md-search__input::placeholder {
  opacity: 0.5;
}

/* ── Content Images (desktop screenshots) ── */
.md-content img {
  max-width: 800px;
  width: 100%;
  display: block;
  margin: 1rem auto;
  border-radius: var(--surface-section-radius);
  box-shadow: var(--shadow-md);
}

[data-md-color-scheme="slate"] .md-content img {
  box-shadow: var(--shadow-lg);
  filter: brightness(0.95);
}

/* ── Step Numbering (inner pages) ── */
.md-typeset h2,
.md-typeset h3 {
  border-left: 3px solid var(--ru4m-green);
  padding-left: 0.8rem;
}

/* Remove green border from special sections */
.quick-start-section h2,
.help-banner h2 {
  border-left: none;
  padding-left: 0;
}

/* ── Admonitions ── */
.md-content .md-typeset .admonition,
.md-content .md-typeset details {
  --admonition-solid: var(--tile-blue);
  --admonition-soft: var(--tile-blue-soft);
  --admonition-on-soft: var(--tile-blue-soft-foreground);
  background-color: var(--surface-card);
  border-color: var(--admonition-solid);
}

.md-typeset :is(.admonition, details):is(.tip, .success, .check, .done) {
  --admonition-solid: var(--tile-green);
  --admonition-soft: var(--tile-green-soft);
  --admonition-on-soft: var(--tile-green-soft-foreground);
}

.md-typeset :is(.admonition, details):is(.abstract, .summary, .tldr, .example) {
  --admonition-solid: var(--tile-violet);
  --admonition-soft: var(--tile-violet-soft);
  --admonition-on-soft: var(--tile-violet-soft-foreground);
}

.md-typeset :is(.admonition, details):is(.warning, .caution, .attention) {
  --admonition-solid: var(--tile-amber);
  --admonition-soft: var(--tile-amber-soft);
  --admonition-on-soft: var(--tile-amber-soft-foreground);
}

.md-typeset :is(.admonition, details):is(.danger, .error, .failure, .fail, .missing, .bug) {
  --admonition-solid: var(--tile-red);
  --admonition-soft: var(--tile-red-soft);
  --admonition-on-soft: var(--tile-red-soft-foreground);
}

.md-typeset :is(.admonition, details):is(.question, .help, .faq) {
  --admonition-solid: var(--tile-teal);
  --admonition-soft: var(--tile-teal-soft);
  --admonition-on-soft: var(--tile-teal-soft-foreground);
}

.md-typeset :is(.admonition, details):is(.quote, .cite) {
  --admonition-solid: var(--tile-navy);
  --admonition-soft: var(--tile-navy-soft);
  --admonition-on-soft: var(--tile-navy-soft-foreground);
}

.md-typeset :is(.admonition, details) > :is(.admonition-title, summary) {
  background-color: var(--admonition-soft);
  color: var(--admonition-on-soft);
}

.md-typeset :is(.admonition, details) > :is(.admonition-title, summary)::before {
  background-color: var(--admonition-on-soft);
}

/* ── Nav & Search ── */
.md-nav__link--active {
  padding: var(--product-space-unit) calc(var(--product-space-unit) * 2);
  margin-inline: calc(var(--product-space-unit) * -2);
  border-radius: var(--product-radius-base);
  background: var(--tile-blue-soft);
  color: var(--tile-blue-soft-foreground) !important;
  font-weight: 600;
}
.md-search-result mark {
  background-color: color-mix(in oklab, var(--brand-green) 20%, transparent);
  color: inherit;
}

/* ── Horizontal Rules ── */
.md-typeset hr {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  opacity: 1;
}

/* ── Scrollbar ── */
.md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
  background: var(--ru4m-gradient);
  border-radius: 4px;
}

/* ============================================================
   HOMEPAGE
   ============================================================ */

/* Hide the h1 (title is in hero) */
.hero-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ── Hero Section ── */
.hero {
  position: relative;
  text-align: center;
  padding: 5rem 2rem 3rem;
  /*max-width: 860px;*/
  margin: 0 auto;
  overflow: visible;
}

/* Animated gradient orbs */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: -1;
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.hero::before {
  width: 400px;
  height: 400px;
  background: var(--ru4m-green);
  top: -100px;
  right: -120px;
}

.hero::after {
  width: 350px;
  height: 350px;
  background: var(--ru4m-blue);
  bottom: -80px;
  left: -100px;
  animation-delay: -6s;
}

[data-md-color-scheme="slate"] .hero::before,
[data-md-color-scheme="slate"] .hero::after {
  opacity: 0.08;
}

@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

/* Overline label */
.hero-overline {
  display: inline-block;
  font-family: var(--product-font-body);
  font-size: var(--product-type-eyebrow-size);
  line-height: var(--product-type-eyebrow-line-height);
  font-weight: var(--product-type-eyebrow-weight);
  letter-spacing: var(--product-type-eyebrow-tracking);
  text-transform: var(--product-type-eyebrow-transform);
  background: var(--brand-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fade-up 0.6s ease forwards;
}

.hero-heading {
  font-family: var(--product-font-body);
  font-size: var(--product-type-page-large-size);
  font-weight: var(--product-type-page-weight);
  line-height: var(--product-type-page-large-line-height);
  letter-spacing: var(--product-type-page-tracking);
  margin: 0 0 1.4rem;
  color: var(--md-default-fg-color);
  opacity: 0;
  animation: fade-up 0.6s ease 0.1s forwards;
}

.hero-heading .gradient {
  background: var(--brand-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--md-default-fg-color--light);
  margin-bottom: 2.2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fade-up 0.6s ease 0.2s forwards;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.6s ease 0.3s forwards;
}

.hero-buttons .md-button {
  border-radius: var(--product-radius-base);
  padding: 0.65rem 1.8rem;
  font-family: var(--product-font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
}

.hero-buttons .md-button--primary {
  background: var(--ru4m-gradient-h);
  border: none;
  color: var(--brand-on-gradient);
  box-shadow: var(--surface-shell-shadow);
}

.hero-buttons .md-button--primary:hover {
  box-shadow: var(--surface-shell-shadow);
  transform: translateY(-1px);
}

[data-md-color-scheme="slate"] .hero-buttons .md-button--primary {
  background: var(--brand-gradient-content);
}

/* Ghost/outline secondary button */
.hero-buttons .md-button:not(.md-button--primary) {
  background: transparent;
  border: 1.5px solid var(--border-accent);
  color: var(--md-default-fg-color);
}

.hero-buttons .md-button:not(.md-button--primary):hover {
  border-color: var(--ru4m-blue);
  background: var(--brand-gradient-soft);
  transform: translateY(-1px);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Feature Cards — 3x2 Grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}

.feature-card {
  --feature-icon-background: var(--tile-blue-soft);
  --feature-icon-foreground: var(--tile-blue-soft-foreground);
  background: var(--surface-card);
  color: var(--md-default-fg-color);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--surface-section-shadow);
  border-radius: var(--surface-section-radius);
  padding: var(--surface-section-padding);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fade-up 0.5s ease forwards;
}

.feature-card:nth-child(4n + 2) {
  --feature-icon-background: var(--tile-green-soft);
  --feature-icon-foreground: var(--tile-green-soft-foreground);
}

.feature-card:nth-child(4n + 3) {
  --feature-icon-background: var(--tile-violet-soft);
  --feature-icon-foreground: var(--tile-violet-soft-foreground);
}

.feature-card:nth-child(4n + 4) {
  --feature-icon-background: var(--tile-navy-soft);
  --feature-icon-foreground: var(--tile-navy-soft-foreground);
}

/* Staggered entrance */
.feature-card:nth-child(1) { animation-delay: 0.15s; }
.feature-card:nth-child(2) { animation-delay: 0.22s; }
.feature-card:nth-child(3) { animation-delay: 0.29s; }
.feature-card:nth-child(4) { animation-delay: 0.36s; }
.feature-card:nth-child(5) { animation-delay: 0.43s; }
.feature-card:nth-child(6) { animation-delay: 0.50s; }

/* Gradient border on hover */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--ru4m-gradient-h);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card h3 {
  color: inherit;
  border-left: none;
  padding-left: 0;
  margin-top: 0;
  font-family: var(--product-font-body);
  font-size: var(--product-type-card-size);
  font-weight: var(--product-type-card-weight);
  letter-spacing: var(--product-type-card-tracking);
}

.feature-card h3 .twemoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--product-space-unit) * 8);
  height: calc(var(--product-space-unit) * 8);
  margin-right: calc(var(--product-space-unit) * 2);
  padding: calc(var(--product-space-unit) * 2);
  border-radius: var(--product-radius-base);
  background: var(--feature-icon-background);
  color: var(--feature-icon-foreground);
  vertical-align: middle;
}

.feature-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--md-default-fg-color--light);
}

.feature-card a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-green-foreground);
  transition: opacity 0.2s;
}

.feature-card a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .feature-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    /* Fade hint that more cards exist off-screen */
    mask-image: linear-gradient(to right, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .feature-card {
    min-width: 260px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

/* ── Quick Start — Timeline ── */
.quick-start-section {
  position: relative;
  background: var(--surface-card);
  color: var(--md-default-fg-color);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--surface-section-shadow);
  border-radius: var(--surface-shell-radius);
  padding: var(--surface-shell-padding-wide);
  margin: 3rem 0;
  overflow: hidden;
}

.quick-start-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tile-amber);
  opacity: 0.5;
}

.quick-start-section a {
  color: var(--brand-green-foreground);
}

.quick-start-section h2 {
  font-family: var(--product-font-body);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0;
  text-align: center;
}

.quick-start {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 2rem 0 0;
  position: relative;
}

/* Connecting line behind steps — positioned via step-num */
.quick-start::before {
  display: none;
}

.quick-start-step {
  text-align: center;
  padding: 0.8rem 0.5rem;
  position: relative;
  z-index: 1;
}

.quick-start-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tile-navy);
  color: var(--tile-navy-foreground);
  font-family: var(--product-font-body);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  position: relative;
  box-shadow: var(--surface-shell-shadow);
  z-index: 1;
}

/* Connecting line — stretches to fill gap between step circles */
.quick-start-step:not(:last-child) .step-num::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: calc(100% + 1.2rem - 38px);
  height: 2px;
  background: var(--tile-navy);
  opacity: 0.25;
  transform: translateY(-50%);
  z-index: -1;
  pointer-events: none;
}

/* Pulse ring */
.quick-start-step .step-num::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--tile-navy);
  opacity: 0;
  animation: pulse-ring 3s ease-in-out infinite;
}

.quick-start-step:nth-child(1) .step-num::after { animation-delay: 0s; }
.quick-start-step:nth-child(2) .step-num::after { animation-delay: 0.75s; }
.quick-start-step:nth-child(3) .step-num::after { animation-delay: 1.5s; }
.quick-start-step:nth-child(4) .step-num::after { animation-delay: 2.25s; }

@keyframes pulse-ring {
  0% { opacity: 0; transform: scale(1); }
  20% { opacity: 0.4; }
  100% { opacity: 0; transform: scale(1.6); }
}

.quick-start-step h4 {
    font-family: var(--product-font-body);
    font-weight: 700;
    margin: 0.3rem 0;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
}

.quick-start-step h4 a {
    display: none!important;
}

.quick-start-step p {
  font-size: 0.82rem;
  color: var(--md-default-fg-color--light);
  margin: 0.3rem 0 0.5rem;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .quick-start-section {
    padding: 1.5rem 1rem;
    overflow-x: auto;
  }
  .quick-start {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
  }
  .quick-start::before {
    display: none;
  }
  .quick-start-step {
    min-width: 170px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

/* ── Help Banner ── */
.help-banner {
  position: relative;
  border-radius: var(--surface-shell-radius);
  padding: var(--surface-shell-padding-wide);
  text-align: center;
  margin: 3rem 0 1rem;
  background: var(--ru4m-navy);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
}

.help-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-gradient-soft);
  pointer-events: none;
}

/* Noise texture overlay */
.help-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.help-banner h2 {
  position: relative;
  font-family: var(--product-font-body);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--brand-on-gradient);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.help-banner p {
  position: relative;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.help-banner a {
  color: var(--ru4m-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.help-banner a:hover {
  color: var(--brand-on-gradient);
}

.help-banner h2 a.headerlink {
  display: none;
}

/* Legacy .help-card fallback (in case markdown uses it) */
.help-card {
  display: none;
}

/* ── Mobile Hero ── */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem 2rem;
  }
  .hero::before {
    width: 250px;
    height: 250px;
    right: -80px;
  }
  .hero::after {
    width: 200px;
    height: 200px;
    left: -60px;
  }
  .hero-heading {
    font-size: var(--product-type-page-size);
    line-height: var(--product-type-page-line-height);
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-buttons .md-button {
    padding: 0.55rem 1.3rem;
    font-size: 0.85rem;
  }
}

/* ============================================================
   CUSTOM FOOTER
   ============================================================ */

.md-footer-meta__inner {
  display: block;
}

.ru4m-footer {
  display: flex;
  gap: 6rem;
  padding: 2.5rem 1rem 1.5rem;
  color: var(--md-footer-fg-color--lighter);
  font-size: 0.78rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .ru4m-footer {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }
}

.ru4m-footer__col {
  max-width: 280px;
}

.ru4m-footer h4 {
  color: var(--brand-on-gradient);
  font-family: var(--product-font-body);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ru4m-footer p {
  margin: 0.15rem 0;
}

.ru4m-footer a {
  color: var(--md-footer-fg-color--light);
  text-decoration: none;
}

.ru4m-footer a:hover {
  color: var(--ru4m-green);
}

.ru4m-footer ul,
.ru4m-footer ul li {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 0 !important;
}

.ru4m-footer ul li {
  margin: 0.25rem 0;
}

.ru4m-footer__bottom {
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 0.7rem 0;
  font-size: 0.72rem;
  color: var(--md-footer-fg-color--lighter);
  letter-spacing: 0.02em;
}

/* ── Accessibility: Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after {
    animation: none;
  }
  .hero-overline,
  .hero-heading,
  .hero-subtitle,
  .hero-buttons,
  .feature-card {
    animation: none;
    opacity: 1;
  }
  .quick-start-step .step-num::after {
    animation: none;
  }
  .feature-card:hover {
    transform: none;
  }
  .hero-buttons .md-button--primary:hover,
  .hero-buttons .md-button:not(.md-button--primary):hover {
    transform: none;
  }
}
