/* ==========================================================================
   Page level styles: homepage, directory, category, blog, static and error.
   ========================================================================== */

/* ============================================================== homepage */
/* The hero carries the positioning statement, the quick-start card and the
   headline numbers. A soft grid and two accent glows give it depth without
   competing with the copy. */
/* Flat cream. One hairline under the hero, no gradients and no glows: the
   type and the converter card carry this section on their own. */
.hero {
  padding-block: clamp(2.75rem, 5vw, 4.5rem) clamp(2.25rem, 4vw, 3rem);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  display: grid;
  /* The copy column is wider so the two-line headline holds at every desktop
     width; the card keeps enough room for its select and button. */
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero__copy {
  max-width: 40rem;
}

/* Pill badge: one 6px accent dot, pill fill, hairline border. */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-normal);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

/* The dot replaces the shield glyph used previously. */
.hero__eyebrow svg {
  display: none;
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.25rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text);
  text-wrap: balance;
}

/* One solid colour. Emphasis comes from the line break, not from colour or a
   highlight behind the words. */
.hero__title em {
  font-style: normal;
  color: inherit;
  background: none;
  padding: 0;
  letter-spacing: inherit;
}

.hero__lede {
  margin-top: var(--space-5);
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--leading-normal);
  max-width: 42ch;
}

.hero__actions {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__caps {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  list-style: none;
  padding: 0;
}

.hero__caps li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.hero__caps svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  stroke-width: 1.5;
}

.hero__panel {
  position: relative;
}

/* ------------------------------------------------------- hero demo card */
/* The right column of the hero is a small looping illustration of a conversion
   rather than a second form. Everything is hairline-bordered and flat; the only
   movement is a progress line that fills once per example. */
.demo-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.demo-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.demo-card__label {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
}

.demo-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
}

.demo-card__badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* The stage is a fixed height so swapping examples never shifts the card. */
.demo {
  display: grid;
  gap: var(--space-2);
  justify-items: center;
  padding: var(--space-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.demo__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}

.demo__file {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* The source is muted and the output is the reward: same structure, different
   weight, so the eye follows the direction of the conversion. */
.demo__file--out .demo__name {
  color: var(--text);
}

/* The output card only gains the accent border once its example has finished,
   which is what gives the loop a sense of completion. */
.demo__file--out {
  border-color: var(--border);
  transition: border-color var(--duration-fast) ease-out,
    background-color var(--duration-fast) ease-out;
}

.demo-card.is-done .demo__file--out {
  border-color: var(--accent);
  background: var(--surface);
}

.demo__ext {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: var(--radius-xs);
  background: var(--pill);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.02em;
}

.demo-card.is-done .demo__ext--out {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transition: background-color var(--duration-fast) ease-out,
    border-color var(--duration-fast) ease-out,
    color var(--duration-fast) ease-out;
}

.demo__info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.demo__name {
  font-size: var(--text-xs);
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo__size {
  font-size: var(--text-2xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------- the pipeline */
.demo__pipe {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 18px;
}

.demo__track {
  position: relative;
  width: calc(100% - var(--space-10));
  height: 1px;
  background: var(--border);
}

.demo__bar {
  position: relative;
  display: block;
  width: 0;
  height: 1px;
  background: var(--accent);
  animation: demo-fill 1.5s linear forwards;
}

/* A single dot rides the leading edge of the line, which is what makes the
   hand-off read as movement rather than a bar filling. */
.demo__bar::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -3px;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes demo-fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* A small tick replaces the line once the example lands. */
.demo__check {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
  opacity: 0;
  transition: opacity var(--duration-fast) ease-out;
}

.demo__check svg {
  width: 16px;
  height: 16px;
}

.demo-card.is-done .demo__check {
  opacity: 1;
}

.demo-card.is-done .demo__bar {
  opacity: 0;
  transition: opacity var(--duration-fast) ease-out;
}

.demo__caption {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* ----------------------------------------------------------- card footer */
.demo-card__foot {
  display: grid;
  gap: var(--space-3);
}

.demo-card__drop-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

/* A one-line drop target: still discoverable, no longer a second hero. */
.dropzone--inline {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  text-align: left;
}

.dropzone--inline .dropzone__title {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text);
}

.dropzone--inline .dropzone__subtitle {
  font-size: var(--text-2xs);
  color: var(--text-muted);
}

.dropzone--inline > svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  stroke-width: 1.5;
}

.dropzone--inline .quick-matches {
  margin-top: 0;
}

.demo-card .quick-matches {
  margin-top: 0;
  padding-top: var(--space-3);
}

/* Reduced motion: show the first example finished, with no loop. */
.demo-card.is-static .demo__bar {
  animation: none;
  width: 100%;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .demo__bar {
    animation: none;
    width: 100%;
  }

  .demo__check {
    opacity: 1;
  }

  .demo-card .demo__bar {
    opacity: 0;
  }
}

/* The catalogue numbers read as one quiet, evenly divided row: equal thirds,
   centred values, hairline separators. No boxes, no cards. */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(2.5rem, 4vw, 3.25rem) 0 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.hero__stat {
  display: grid;
  gap: var(--space-1);
  justify-items: center;
  text-align: center;
  padding-inline: var(--space-4);
  min-width: 0;
}

.hero__stat + .hero__stat {
  border-left: 1px solid var(--border);
}

/* The number comes first visually; the label stays first in the DOM so a
   screen reader announces "Converters, 240". */
.hero__stat dd {
  order: -1;
  margin: 0;
  font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem);
  font-weight: var(--weight-medium);
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.hero__stat dt {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}



@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .hero__copy {
    max-width: none;
  }
}

/* Between the desktop layout and the phone layout the card would otherwise
   stretch across the whole container, leaving a very wide empty drop zone. */
@media (min-width: 641px) and (max-width: 980px) {
  .hero__panel {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  /* Three narrow columns still fit at phone widths, so the band never leaves an
     orphaned fourth cell on a second row. Tighten the gap instead of wrapping. */
  .hero__stats {
    gap: var(--space-2);
  }

  .hero__stat {
    padding-inline: var(--space-2);
  }

  .hero__stat dd {
    font-size: 1.5rem;
  }

  .hero__stat dt {
    font-size: var(--text-2xs);
  }
}

/* ------------------------------------------------------- trust strip */
.trust-strip {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
}

.trust-strip__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 60ch;
}

.trust-strip__text strong {
  color: var(--text);
}

/* A single line of trust points with separators reads faster than a sentence. */
.trust-strip__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.trust-strip__list li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.trust-strip__list svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  stroke-width: 1.5;
}

/* ------------------------------------------------------- steps timeline */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-5);
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.step__number {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--pill);
  color: var(--text-muted);
  font-size: var(--text-2xs);
  font-weight: var(--weight-normal);
  flex-shrink: 0;
  line-height: 1;
}

.step__icon {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  margin-left: auto;
}

.step__icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

.step__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
}

.step__body {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

/* ------------------------------------------------------- privacy panel */
.privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.privacy-panel__list {
  display: grid;
  gap: var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0;
}

.privacy-panel__item {
  display: flex;
  gap: var(--space-4);
}

.privacy-panel__icon {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.privacy-panel__icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

.privacy-panel__title {
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-1);
}

.privacy-panel__body {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

@media (max-width: 900px) {
  .privacy-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================== directory / category pages */
.page-head {
  padding-block: var(--space-10) var(--space-8);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-head__crumbs {
  margin-bottom: var(--space-5);
}

.page-head__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, var(--text-3xl));
}

.page-head__lede {
  margin-top: var(--space-4);
  max-width: 70ch;
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.page-head__meta {
  margin-top: var(--space-5);
}

/* --------------------------------------------------- directory toolbar */
.directory {
  display: grid;
  gap: var(--space-6);
}

.directory__toolbar {
  display: grid;
  gap: var(--space-4);
}

.directory__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.directory__search {
  flex: 1 1 280px;
  max-width: 420px;
}

.directory__count {
  font-size: var(--text-sm);
  color: var(--text-3);
}

.directory__count strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.directory__chips {
  padding-top: var(--space-1);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-4);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(258px, 100%), 1fr));
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .results-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .directory__search {
    max-width: none;
  }
}

/* -------------------------------------------------------- category page */
.category-header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: flex-start;
}

.category-header__icon {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.category-header__icon svg {
  width: 26px;
  height: 26px;
}

.category-formats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-formats li {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-xs);
  background: var(--pill);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ================================================================ blog */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: var(--space-6);
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: background-color var(--duration-fast) var(--ease-out);
  color: var(--text);
}

.post-card:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.post-card__media {
  aspect-ratio: 16 / 9;
  background: var(--pill);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: var(--space-5);
  display: grid;
  gap: var(--space-3);
  flex: 1;
  align-content: start;
}

.post-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

.post-card__excerpt {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.post-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* The featured article sits in a split card: centre the copy against the
   illustration so the card does not end with a block of empty space. */
.card__body.split {
  align-items: center;
}

.post-hero {
  padding-block: var(--space-10) var(--space-6);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.post-hero__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 44ch;
}

.post-hero__lede {
  margin-top: var(--space-5);
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 60ch;
  line-height: var(--leading-normal);
}

.post-figure {
  margin-bottom: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle);
}

.post-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-body {
  display: grid;
  grid-template-columns: minmax(0, var(--container-prose)) 260px;
  gap: var(--space-10);
  align-items: start;
  padding-block: var(--space-10);
}

.post-aside {
  display: grid;
  gap: var(--space-5);
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
}

@media (max-width: 1024px) {
  .post-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-aside {
    position: static;
  }
}

/* ======================================================= static / legal */
.page-hero {
  padding-block: var(--space-10) var(--space-8);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.page-hero__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, var(--text-3xl));
}

.page-hero__lede {
  margin-top: var(--space-4);
  max-width: 68ch;
  font-size: var(--text-lg);
  color: var(--text-2);
  line-height: var(--leading-relaxed);
}

.page-hero__updated {
  margin-top: var(--space-5);
}

.block-stack {
  display: grid;
  gap: var(--space-6);
}

.block-paragraph {
  color: var(--text-2);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  max-width: var(--container-prose);
}

.block-heading {
  font-size: var(--text-xl);
  margin-top: var(--space-4);
}

.block-bullets {
  display: grid;
  gap: var(--space-3);
  padding-left: 0;
  list-style: none;
  max-width: var(--container-prose);
}

.block-bullets li {
  position: relative;
  padding-left: var(--space-6);
  color: var(--text-2);
  line-height: var(--leading-relaxed);
}

.block-bullets li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.block-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-5);
}

.block-steps {
  display: grid;
  gap: var(--space-5);
  counter-reset: blockstep;
  max-width: var(--container-prose);
}

.block-step {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.block-step__number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--pill);
  color: var(--text-muted);
  font-size: var(--text-2xs);
  font-weight: var(--weight-normal);
  flex-shrink: 0;
}

.block-step__title {
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-1);
}

.block-step__body {
  color: var(--text-2);
  line-height: var(--leading-relaxed);
}

.with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-10);
  align-items: start;
  padding-block: var(--space-10);
}

.with-aside__aside {
  display: grid;
  gap: var(--space-5);
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
}

@media (max-width: 1024px) {
  .with-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .with-aside__aside {
    position: static;
  }
}

/* ------------------------------------------------------------ contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form-grid {
  display: grid;
  gap: var(--space-5);
}

.form-grid__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 560px) {
  .form-grid__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------ support */
.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.support-panel__copy {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}

.support-panel__points {
  margin-top: var(--space-1);
}

/* ------------------------------------------------------------ final CTA */
/* The closing call to action is a single accent card, not another plain
   section, so the page ends on a clear next step. */
.section--cta {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--cta .section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.section--cta .section__subtitle {
  margin-inline: auto;
  max-width: 52ch;
}

.section--cta .btn-group {
  margin-top: var(--space-6);
  justify-content: center;
}

@media (max-width: 900px) {
  .support-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------ errors */
.error-page {
  display: grid;
  place-items: center;
  text-align: center;
  gap: var(--space-4);
  padding-block: clamp(3rem, 10vh, 7rem);
}

.error-page__code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  background: var(--pill);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.error-page__title {
  font-size: clamp(1.6rem, 1.2rem + 2vw, var(--text-3xl));
  max-width: 30ch;
}

.error-page__body {
  color: var(--text-2);
  max-width: 52ch;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.error-page__actions {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.error-page__suggestions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  list-style: none;
  padding: 0;
}

/* -------------------------------------------------------- FAQ hub page */
.faq-group + .faq-group {
  margin-top: var(--space-12);
}

.faq-group__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.faq-group__icon {
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.faq-group__icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

/* ---------------------------------------------------- pipeline (how it works) */
.pipeline {
  display: grid;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 760px;
}

.pipeline__item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.pipeline__stage {
  font-weight: var(--weight-semibold);
  color: var(--text);
}

.pipeline__where {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-3);
  font-weight: var(--weight-normal);
  margin-top: 2px;
}

.pipeline__note {
  color: var(--text-2);
  line-height: var(--leading-relaxed);
  font-size: var(--text-base);
}

@media (max-width: 560px) {
  .pipeline__item {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 420px) {
  .hero__title {
    font-size: 1.9rem;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* ------------------------------------------------- mobile trust strip */
/* Declared last so it wins over the base .trust-strip rules above: four items
   in a tidy 2x2 grid, with the "How it works" link on its own line. */
@media (max-width: 640px) {
  .trust-strip__inner {
    display: grid;
    gap: var(--space-4);
  }

  .trust-strip__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3) var(--space-4);
  }

  .trust-strip__list li {
    align-items: flex-start;
    line-height: 1.4;
  }

  .trust-strip__list svg {
    margin-top: 2px;
    flex-shrink: 0;
  }
}
