/* ==================================================
   Design Tokens
   Values come from the STRUXTURE style guide (MinUI dark palette).
   ================================================== */

:root {
  /* Colors */
  --color-canvas: #000;
  --color-surface: #1a1a1a;
  --color-surface-hover: #262626;
  --color-line: #333;
  --color-control-border: #808080;
  --color-text: #e6e6e6;
  --color-text-muted: #b8b8b8;
  --color-accent: #ff6700;
  --color-accent-hover: #ff8533;
  --color-on-accent: #000;
  --color-nav-bg: rgb(0 0 0 / 0.92);

  /* Effects */
  --shadow-text-display: 0 2px 16px rgb(0 0 0 / 1);
  --shadow-text: 0 1px 12px rgb(0 0 0 / 1);

  /* Typography */
  --font-display: "Chakra Petch", Arial, sans-serif;
  --font-ui: "JetBrains Mono", ui-monospace, monospace;
  --text-meta: 12px;
  --leading-meta: 18px;
  --text-body: 14px;
  --leading-body: 22px;
  --text-lead: 15px;
  --leading-lead: 24px;
  --tracking-label: 0.08em;
  --tracking-control: 0.02em;
  --title-size: clamp(36px, 4.5vw, 60px);

  /* Spacing (style guide scale) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  /* Layout */
  --container-max: 1240px;
  --page-gutter: clamp(16px, 4vw, 24px);
  --section-space: clamp(56px, 10vw, 96px);
  --nav-height: 64px;
  --border: 1px solid var(--color-line);
  --z-nav: 20;

  /* Motion */
  --duration-fade: 400ms ease;
  --duration-hover: 140ms ease;
}


/* ==================================================
   Reset / Base
   ================================================== */

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

/* The `hidden` attribute must win over component `display` rules,
   which otherwise beat the user-agent default. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-text);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

button {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

/* Style guide focus ring: 2px light outline, 3px offset */
:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
  }
}


/* ==================================================
   Global Layout
   ================================================== */

/* `clip` (not `hidden`) contains decorative overflow without creating
   a scroll container, so the sticky navigation keeps working. */
.page {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
  background: var(--color-canvas);
  color: var(--color-text);
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section {
  scroll-margin-top: var(--nav-height);
  border-top: var(--border);
  background: var(--color-canvas);
}

.section__inner {
  position: relative;
  padding-block: var(--section-space);
}

/* Two-column content that stacks when a column would drop below --split-min */
.split {
  --split-min: 400px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--split-min)), 1fr));
  gap: var(--space-12);
}

.split--center {
  align-items: center;
}

.split--start {
  align-items: start;
}

/* Full-bleed layers behind section content */
.overlay {
  position: absolute;
  inset: 0;
}

.decoration {
  position: absolute;
  pointer-events: none;
}


/* ==================================================
   Typography
   ================================================== */

.eyebrow {
  color: var(--color-accent);
  font-size: var(--text-meta);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--title-size);
  font-weight: 700;
  line-height: 1;
  text-wrap: balance;
}

.eyebrow + .section-title {
  margin-top: var(--space-4);
}

.title-light {
  font-weight: 300;
}

.section-lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
}

.section-lead--bright {
  color: var(--color-text);
}

.fine-print {
  color: var(--color-text-muted);
  font-size: var(--text-meta);
  line-height: var(--leading-meta);
}

/* Small explanatory line led by an orange arrow */
.detail-note {
  display: flex;
  gap: var(--space-3);
  margin: 0;
}

.detail-note__arrow {
  color: var(--color-accent);
}


/* ==================================================
   Components
   ================================================== */

/* Wordmark */

.wordmark {
  display: block;
  flex: none;
}

.wordmark__logo {
  width: auto;
  height: 24px;
}

.wordmark--footer .wordmark__logo {
  height: 19px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-height: 48px;
  padding: var(--space-2) 20px;
  text-align: center;
  font-size: var(--text-body);
  font-weight: 500;
}

.button--primary,
.button--primary:hover {
  color: var(--color-on-accent);
}

.button--primary {
  background: var(--color-accent);
}

.button--primary:hover {
  background: var(--color-accent-hover);
}

.button--secondary,
.button--secondary:hover {
  color: var(--color-text);
}

.button--secondary {
  border: 1px solid var(--color-control-border);
  background: var(--color-surface);
}

.button--secondary:hover {
  background: var(--color-surface-hover);
}

.button--large {
  min-height: 52px;
  padding-inline: var(--space-6);
}

.button__arrow {
  font-size: 18px;
  line-height: 1;
}

/* Screenshots */

/* All app screenshots share the 2903 × 2160 source ratio. Pinning it keeps
   the layout identical whichever responsive size the browser picks. */
.screenshot {
  box-sizing: content-box;
  width: calc(100% - 2px);
  aspect-ratio: 2903 / 2160;
  border: var(--border);
}

.screenshot--cropped {
  position: relative;
  border-bottom: 0;
}

.screenshot--outlined {
  border-color: var(--color-control-border);
}


/* ==================================================
   Header / Navigation
   ================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  border-bottom: var(--border);
  background: var(--color-nav-bg);
  backdrop-filter: blur(8px);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: var(--nav-height);
}

.site-nav__toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: var(--border);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.site-nav__toggle:hover {
  background: var(--color-surface-hover);
}

/* Three bars that turn into an X while the menu is open */
.site-nav__toggle-icon,
.site-nav__toggle-icon::before,
.site-nav__toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition:
    transform var(--duration-hover),
    background-color var(--duration-hover);
}

.site-nav__toggle-icon {
  position: relative;
}

.site-nav__toggle-icon::before,
.site-nav__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-nav__toggle-icon::before {
  transform: translateY(-6px);
}

.site-nav__toggle-icon::after {
  transform: translateY(6px);
}

.site-nav.is-open .site-nav__toggle-icon {
  background-color: transparent;
}

.site-nav.is-open .site-nav__toggle-icon::before {
  transform: rotate(45deg);
}

.site-nav.is-open .site-nav__toggle-icon::after {
  transform: rotate(-45deg);
}

/* Dropdown panel under the bar. Its height is capped so a long menu
   scrolls inside the panel on short (landscape) screens. */
.site-nav__menu {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  display: none;
  max-height: calc(100vh - var(--nav-height));
  max-height: calc(100dvh - var(--nav-height));
  padding: var(--space-2) var(--page-gutter) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-bottom: var(--border);
  background: var(--color-canvas);
}

.site-nav.is-open .site-nav__menu {
  display: block;
}

.site-nav__links {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: var(--tracking-control);
}

.site-nav__links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: var(--border);
}

.site-nav__links [aria-current="page"] {
  color: var(--color-accent);
}

.site-nav__cta {
  width: 100%;
  margin-top: var(--space-6);
}

/* Without JavaScript the toggle cannot work, so the links show as a
   wrapped row under the logo instead. */
@media (width < 67.5rem) {
  html:not(.js) .site-nav__inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-height);
  }

  html:not(.js) .site-nav__toggle,
  html:not(.js) .site-nav__cta {
    display: none;
  }

  html:not(.js) .site-nav__menu {
    position: static;
    display: block;
    flex-basis: 100%;
    max-height: none;
    padding: 0 0 var(--space-4);
    border: 0;
  }

  html:not(.js) .site-nav__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-2) 20px;
    font-size: 13px;
  }

  html:not(.js) .site-nav__links a {
    min-height: 0;
    border: 0;
  }
}

/* Desktop navigation bar. Auto margins on the links split the free
   space evenly on both sides, centring them between logo and button. */
@media (min-width: 67.5rem) {
  .site-nav__toggle {
    display: none;
  }

  .site-nav__menu {
    position: static;
    display: flex;
    flex: 1;
    align-items: center;
    gap: var(--space-6);
    max-height: none;
    padding: 0;
    overflow: visible;
    border: 0;
    background: none;
  }

  .site-nav__links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 28px;
    margin-inline: auto;
    font-size: 13px;
  }

  .site-nav__links a {
    display: inline;
    min-height: 0;
    border: 0;
  }

  .site-nav__cta {
    flex: none;
    width: auto;
    min-height: 40px;
    margin-top: 0;
    padding: 0 var(--space-4);
    font-size: 13px;
    letter-spacing: var(--tracking-control);
  }
}

/* Between 1080px and 1279px, tighter link spacing keeps the bar on one
   line even with the longer Help page button label. */
@media (min-width: 67.5rem) and (width < 80rem) {
  .site-nav__links {
    gap: 20px;
  }
}


/* ==================================================
   Hero
   ================================================== */

.hero {
  position: relative;
  scroll-margin-top: var(--nav-height);
  background: var(--color-canvas) url("assets/optimized/bg-planes-1024.webp") center / cover no-repeat;
}

.hero__overlay {
  background: linear-gradient(180deg, rgb(0 0 0 / 0.55) 0%, rgb(0 0 0 / 0.35) 50%, var(--color-canvas) 100%);
}

.hero__inner {
  position: relative;
  padding-top: clamp(56px, 10vw, 112px);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
}

.hero__eyebrow-mark {
  width: var(--space-2);
  height: var(--space-2);
  background: var(--color-accent);
}

.hero__title {
  max-width: 1100px;
  margin: var(--space-6) 0 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 8.5vw, 120px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-shadow: var(--shadow-text-display);
  text-wrap: balance;
}

.hero__intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: end;
  gap: var(--space-8);
  margin-top: 40px;
}

.hero__lead {
  max-width: 560px;
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  text-shadow: var(--shadow-text);
}

.hero__note {
  text-shadow: var(--shadow-text);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__media {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
}

.hero__pattern {
  right: calc(-1 * var(--page-gutter));
  bottom: -40px;
  width: 160px;
  height: 160px;
  background: url("assets/pattern-diag-orange.png") 0 0 / 600px 600px repeat;
}


/* ==================================================
   Sections
   ================================================== */

/* How it works */

.workflow__lead {
  max-width: 480px;
  margin-block: 20px 40px;
}

.steps {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border-top: var(--border);
  list-style: none;
}

.step {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-4);
  border-bottom: var(--border);
}

/* Highlight box for the step shown in the workflow sequence, spanning
   the full width of the divider lines. */
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-surface);
  opacity: 0;
  transition: opacity var(--duration-fade);
}

.step.is-active::before {
  opacity: 1;
}

.step__number {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
}

.step__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.step__text {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.workflow__figure {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: var(--border);
  background: var(--color-surface);
}

.workflow__stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  min-height: 0;
  padding: var(--space-6);
  overflow: hidden;
  background: var(--color-canvas) url("assets/optimized/bg-crystal-1024.webp") center / cover no-repeat;
}

/* The shadow follows the visible screen, not the letterboxed image box */
.workflow__frames {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 32px rgb(0 0 0 / 0.6));
}

/* The first frame sizes the stack; the rest sit on top of it */
.workflow__frame {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity var(--duration-fade);
}

.workflow__frame + .workflow__frame {
  position: absolute;
  inset: 0;
}

.workflow__frame.is-active {
  opacity: 1;
}

.workflow__caption {
  flex: none;
  align-items: center;
  padding: var(--space-4) var(--space-6) var(--space-6);
}

/* Features */

.features__header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.features__lead {
  max-width: 380px;
}

/* 1px gaps over a line-colored background draw the grid rules */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  border: var(--border);
  background: var(--color-line);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
  padding: var(--space-8) var(--space-6) 28px;
  background: var(--color-surface);
}

@media (hover: hover) {
  .feature-card:hover {
    background: var(--color-surface-hover);
  }
}

.feature-card__number {
  color: var(--color-accent);
  font-size: var(--text-meta);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 28px;
}

.feature-card__text {
  color: var(--color-text-muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

/* Shared structures */

.shared {
  position: relative;
  background: var(--color-canvas) url("assets/optimized/bg-cubes-1024.webp") center / cover no-repeat;
}

.shared__overlay {
  background: rgb(0 0 0 / 0.82);
}

.shared__title {
  max-width: 900px;
}

.shared__lead {
  max-width: 640px;
  margin-top: 20px;
}

.transfer {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: var(--space-6);
  margin-top: 56px;
}

.transfer__step {
  position: relative;
  width: 100%;
  max-width: 36rem;
}

.transfer__tag {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 1;
  padding: var(--space-1) var(--space-2);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
}

.transfer__arrow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 160px;
  color: var(--color-accent);
  font-size: var(--text-meta);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-align: center;
}

.transfer__icon {
  top: 50%;
  left: 50%;
  width: 160px;
  opacity: 1;
  filter: drop-shadow(0 12px 24px rgb(0 0 0 / 0.7));
  transform: translate(-50%, -50%);
}

.transfer__arrow-glyph,
.transfer__arrow-label {
  position: relative;
}

/* Points down while the strip is stacked, right when it is a row */
.transfer__arrow-glyph {
  font-size: 32px;
  line-height: 1;
  rotate: 90deg;
}

.callouts {
  display: grid;
  gap: 1px;
  margin-top: 56px;
  border: var(--border);
  background: var(--color-line);
}

.callout {
  padding: var(--space-6);
  background: var(--color-surface);
}

.callout__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.callout__text {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.shared__note {
  margin-top: var(--space-6);
}

/* Adobe templates */

.templates__figure {
  padding: var(--space-8);
  border: var(--border);
  background: var(--color-canvas) url("assets/optimized/bg-crystal-1024.webp") center / cover no-repeat;
}

.templates__lead {
  max-width: 520px;
  margin-top: 20px;
}

.file-types {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: 28px;
}

.file-types__icon {
  width: var(--space-12);
  height: var(--space-12);
}

.templates__note {
  max-width: 520px;
  margin-top: 28px;
}

/* Keyboard shortcuts */

.shortcuts {
  position: relative;
  background: var(--color-surface);
}

.shortcuts__pattern,
.help-header__pattern {
  inset: 0;
  background: url("assets/pattern-plus.png") 0 0 / 50px 50px repeat;
  opacity: 0.15;
}

.shortcuts__intro {
  padding: var(--space-2) var(--space-2) var(--space-2) 0;
  background: var(--color-surface);
}

.shortcuts__lead,
.shortcuts__context {
  max-width: 440px;
}

.shortcuts__lead {
  margin-top: 20px;
}

.shortcuts__context {
  margin: var(--space-6) 0 0;
}

.shortcut-table {
  border: var(--border);
  background: var(--color-canvas);
}

.shortcut {
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr;
  align-items: center;
  gap: var(--space-4);
  min-height: 48px;
  padding: var(--space-2) 20px;
  border-bottom: var(--border);
}

.shortcut__keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.key {
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-control-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--text-meta);
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color var(--duration-hover),
    border-color var(--duration-hover),
    color var(--duration-hover);
}

@media (hover: hover) {
  .shortcut:hover .key {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-surface);
  }
}

.shortcut__action {
  color: var(--color-text-muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.shortcuts-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border: 0;
  background: var(--color-canvas);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: var(--tracking-control);
  cursor: pointer;
}

.shortcuts-toggle:hover {
  background: var(--color-surface-hover);
}

/* FAQ */

.faq__layout {
  --split-min: 300px;
}

.faq__list {
  grid-column: 1 / -1;
  border-top: var(--border);
}

.faq-item {
  border-bottom: var(--border);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 20px 0;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  list-style: none;
  cursor: pointer;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question:hover {
  color: var(--color-accent);
}

.faq-item__icon {
  flex: none;
  color: var(--color-accent);
  font-size: 22px;
  line-height: 1;
}

.faq-item__icon::before {
  content: "+";
}

.faq-item[open] .faq-item__icon::before {
  content: "\2212";
}

.faq-item__answer {
  max-width: 680px;
  margin: 0;
  padding: 0 var(--space-12) var(--space-6) 0;
  color: var(--color-text-muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

/* Download */

.download {
  position: relative;
  background: var(--color-canvas) url("assets/optimized/bg-fan-1024.webp") center / cover no-repeat;
}

.download__overlay {
  background: linear-gradient(180deg, rgb(0 0 0 / 0.6), rgb(0 0 0 / 0.3));
}

.download__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-block: clamp(80px, 14vw, 140px);
  text-align: center;
}

.download__title {
  max-width: 900px;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.98;
}

.download__lead {
  max-width: 520px;
}

.download__meta {
  color: var(--color-text-muted);
  font-size: var(--text-meta);
}

/* Footer */

.site-footer {
  border-top: var(--border);
  background: var(--color-canvas);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-8);
}


.footer-links__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links__list li + li::before {
  content: "|";
  margin-inline: var(--space-3);
  color: var(--color-line);
}

.footer-links__list a {
  color: var(--color-text-muted);
}

.footer-links__list a:hover,
.footer-links__list [aria-current="page"] {
  color: var(--color-accent);
}

@media (pointer: coarse) {
  .footer-links__list li {
    display: flex;
    align-items: center;
  }

  .footer-links__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}


/* ==================================================
   Help Page
   ================================================== */

.help-header {
  position: relative;
  border-bottom: var(--border);
  background: var(--color-surface);
}

.help-header__inner {
  position: relative;
  padding-block: clamp(48px, 8vw, 72px) clamp(40px, 6vw, 56px);
}

.help-header__title {
  max-width: 900px;
  margin: var(--space-4) 0 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  text-wrap: balance;
}

.help-header__lead {
  max-width: 640px;
  margin-top: 20px;
}

.help-header__meta {
  margin: var(--space-4) 0 0;
}

.help-layout {
  display: grid;
  gap: var(--space-8);
  padding-block: var(--space-12) var(--section-space);
}

/* Table of contents: collapsible on small screens, an always-open
   sticky sidebar from 64rem (see Responsive). */
.help-toc {
  border-block: var(--border);
}

.help-toc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  list-style: none;
  cursor: pointer;
}

.help-toc__summary::-webkit-details-marker {
  display: none;
}

.help-toc__summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
}

.help-toc[open] .help-toc__summary::after {
  content: "\2212";
}

.help-toc__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  column-gap: var(--space-6);
  margin: 0;
  padding: 0 0 var(--space-3);
  list-style: none;
  counter-reset: toc;
}

.help-toc__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding-block: 10px;
  border-top: var(--border);
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 20px;
  counter-increment: toc;
}

.help-toc__link::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--color-accent);
}

/* Article */

.help-article {
  min-width: 0;
}

.help-section {
  scroll-margin-top: calc(var(--nav-height) + var(--space-4));
  padding-block: var(--space-12);
  border-top: var(--border);
}

.help-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.help-section__title {
  margin: var(--space-3) 0 var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
}

.help-subheading {
  margin: var(--space-8) 0 var(--space-3);
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.help-text,
.help-list {
  max-width: 72ch;
  margin: 0 0 var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
}

.help-text strong,
.help-list strong {
  color: var(--color-text);
  font-weight: 500;
}

.help-list {
  padding-left: 20px;
}

.help-list li + li {
  margin-top: var(--space-2);
}

/* Numbered procedure with accent counters */
.help-steps {
  max-width: 72ch;
  margin: 0 0 var(--space-4);
  padding: 0;
  border-top: var(--border);
  list-style: none;
  counter-reset: step;
}

.help-steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: var(--border);
  color: var(--color-text-muted);
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
  counter-increment: step;
}

.help-steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
}

.help-steps strong {
  color: var(--color-text);
  font-weight: 500;
}

.help-note {
  max-width: 72ch;
  margin: 0 0 var(--space-4);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.help-code {
  padding: 1px 6px;
  border: var(--border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

/* Glossary */

.help-terms {
  display: grid;
  max-width: 72ch;
  margin: 0;
  border-top: var(--border);
}

.help-terms__term {
  padding-top: var(--space-3);
  font-size: var(--text-lead);
  font-weight: 500;
  line-height: var(--leading-lead);
}

.help-terms__definition {
  margin: 0;
  padding-bottom: var(--space-3);
  border-bottom: var(--border);
  color: var(--color-text-muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

/* Reference tables scroll sideways instead of widening the page.
   The wrapper is focusable so keyboard users can scroll it too. */
.help-table-wrap {
  margin: 0 0 var(--space-4);
  overflow-x: auto;
  border: var(--border);
}

.help-table-wrap:focus-visible {
  outline-offset: 0;
}

.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.help-table th {
  padding: 10px var(--space-4);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-meta);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-align: left;
  text-transform: uppercase;
}

.help-table td {
  padding: var(--space-3) var(--space-4);
  border-top: var(--border);
  color: var(--color-text-muted);
  vertical-align: top;
}

.help-table td:first-child {
  min-width: 7rem;
  color: var(--color-text);
}

.help-table .key {
  display: inline-block;
  margin-block: 2px;
}


/* ==================================================
   Responsive
   Mobile-first. Breakpoints: 30rem large phone, 48rem tablet,
   64rem tablet landscape / small laptop, 67.5rem (1080px) full navigation
   bar (in Header / Navigation), 80rem desktop. Grids that
   reflow on their own use auto-fit or --split-min instead.
   ================================================== */

/* Small phones: hero buttons take the full width so long labels fit */
@media (width < 30rem) {
  .hero__buttons .button {
    flex: 1 1 100%;
  }
}

/* Tablet and up */
@media (min-width: 48rem) {
  /* The menu's button no longer needs to fill the panel */
  .site-nav__cta {
    width: auto;
  }

  .hero {
    background-image: url("assets/optimized/bg-planes-2048.webp");
  }

  .workflow__stage,
  .templates__figure {
    background-image: url("assets/optimized/bg-crystal-2048.webp");
  }

  .shared {
    background-image: url("assets/optimized/bg-cubes-2048.webp");
  }

  .download {
    background-image: url("assets/optimized/bg-fan-2048.webp");
  }

  /* The FAQ list spans two columns only once the grid has at least two;
     spanning in a one-column grid would create an overflowing column. */
  .faq__list {
    grid-column: span 2;
  }
}

/* Tablet landscape / small laptop and up */
@media (min-width: 64rem) {
  .transfer {
    grid-template-columns: repeat(3, 1fr);
    justify-items: stretch;
  }

  .transfer__step {
    max-width: none;
  }

  .transfer__arrow {
    min-height: 180px;
  }

  .transfer__arrow-glyph {
    rotate: none;
  }

  .callouts {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Help: the contents become an always-open sticky sidebar */
  .help-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--space-12);
    align-items: start;
  }

  .help-toc {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-6));
    border-block: 0;
  }

  .help-toc__summary {
    min-height: 0;
    padding-bottom: var(--space-3);
    pointer-events: none;
  }

  .help-toc__summary::after,
  .help-toc[open] .help-toc__summary::after {
    content: none;
  }

  .help-toc__list {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  .help-toc__link {
    min-height: 0;
    border-top: 0;
    border-bottom: var(--border);
  }

  .help-toc__list li:first-child .help-toc__link {
    border-top: var(--border);
  }
}
