.about-hero,
.about-content {
  width: min(100% - 2.5rem, 1400px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.about-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
  text-align: center;
}
.about-eyebrow {
  margin-bottom: 0.65rem;
  color: var(--blue-main);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.about-hero h1 {
  margin-bottom: 0.8rem;
  color: var(--text-main);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.about-intro {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.75;
}
.about-tagline {
  max-width: 720px;
  margin: 0 auto 0.7rem;
  color: var(--blue-light);
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.45;
}
.about-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.about-content {
  padding-bottom: 3.5rem;
}

:root .about-page .about-hero,
:root .about-page .about-section,
:root .about-page .about-card,
:root .about-page .benefit-row,
:root .about-page .about-cta {
  background-color: transparent;
}

.about-section {
  padding: 1.75rem 0;
}
.about-section-heading {
  max-width: 700px;
  margin-bottom: 1.15rem;
}
.about-section-heading h2,
.about-cta h2 {
  margin-bottom: 0.55rem;
  color: var(--text-main);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-align: left;
  text-transform: none;
}
.about-section-heading > p:last-child,
.about-section-heading > h2 + p,
.about-cta p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.about-video-wrap {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.about-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
[data-theme='light'] .about-video-wrap {
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.about-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.about-card,
.benefit-row {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.about-card {
  padding: 1.25rem;
}
.about-card-icon {
  display: inline-flex;
  width: 2.65rem;
  height: 2.65rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(59, 130, 246, 0.1);
  font-size: 1.25rem;
}
.about-card h3,
.benefit-row h3 {
  margin-bottom: 0.45rem;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}
.about-card p,
.benefit-row p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

:root .about-page .benefit-row p a:link,
:root .about-page .benefit-row p a:visited,
:root .about-page .about-cta p a:link,
:root .about-page .about-cta p a:visited {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

:root[data-theme='light'] .about-page .benefit-row p a:link,
:root[data-theme='light'] .about-page .benefit-row p a:visited,
:root[data-theme='light'] .about-page .about-cta p a:link,
:root[data-theme='light'] .about-page .about-cta p a:visited {
  color: #551a8b;
}

:root .about-page .benefit-row p a:focus-visible,
:root .about-page .about-cta p a:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

.account-benefits {
  display: grid;
  gap: 0.75rem;
}
.benefit-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 16px;
}

.benefit-icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(71, 85, 105, 0.6);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-main);
}

.benefit-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.account-note strong {
  color: var(--text-main);
}

[data-theme='light'] .benefit-icon {
  border-color: var(--border);
  background: var(--card-bg);
}

.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1rem 0 0;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.13), var(--card-bg));
}

.about-cta h2 {
  font-size: 1.25rem;
}

.about-cta .about-hero-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

[data-theme='light'] .about-card,
[data-theme='light'] .benefit-row,
[data-theme='light'] .about-cta {
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

@media (max-width: 700px) {
  .about-card-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    padding: 1.1rem;
  }

  .about-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-cta .about-hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .benefit-row {
    gap: 0.75rem;
    padding: 1rem;
  }
}

/* ── Layout refresh: scannable on desktop, stacked on phones ─────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 1. See it in action: text and buttons on the left, the 16:9 video on the right. */
.about-video-text .about-hero-actions {
  justify-content: flex-start;
  margin-top: 1.25rem;
}
@media (min-width: 900px) {
  .about-video-section {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(1.5rem, 3.5vw, 3rem);
  }
  .about-video-section .about-section-heading {
    margin-bottom: 0;
  }
  .about-video-section .about-video-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

/* 2. How it works: three equal step cards with a clear step label. */
:root .about-page ol.about-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-step {
  display: flex;
  flex-direction: column;
}
.about-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.about-step-num {
  padding: 0.3rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--blue-main) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue-main) 10%, transparent);
  color: var(--blue-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}
[data-theme='light'] .about-step-num {
  color: var(--blue-main);
}

/* 3 + 4. Account tools as a 2×2 grid; the two guidance notes side by side. */
@media (min-width: 760px) {
  .account-benefits--quad,
  .account-benefits--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* Account requirements: a callout under the grid, icon + text. */
.account-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border: 1px solid color-mix(in srgb, var(--blue-main) 28%, transparent);
  border-radius: 12px;
}
.account-note-icon {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  fill: none;
  stroke: var(--blue-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-theme='light'] .account-note-icon {
  stroke: var(--blue-main);
}

/* Three columns only once each card has room (about 260px+); below that they stack. */
@media (max-width: 899px) {
  .about-steps {
    grid-template-columns: 1fr;
  }
}

/* ── Balance pass ─────────────────────────────────────────────────────────── */

/* How it works: the intro runs under the heading at full panel width. */
.about-section-heading--wide {
  max-width: none;
}

/* Account requirements: two labelled rules (side by side when there is room). */
.account-note-rules {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}
.account-note-rules p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.account-note-label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (min-width: 760px) {
  .account-note {
    padding: 1rem 1.25rem;
  }
  .account-note-rules {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: 1.5rem;
  }
}

/* Phones: put each card's icon beside its title, not beside the whole text, so
   descriptions get the full card width (much shorter cards). */
@media (max-width: 600px) {
  .benefit-row {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.6rem;
    padding: 1rem;
  }
  .benefit-row > div {
    display: contents;
  }
  .benefit-row .benefit-icon {
    width: 2.25rem;
    height: 2.25rem;
  }
  .benefit-row h3 {
    margin: 0;
  }
  .benefit-row p {
    grid-column: 1 / -1;
  }

  .about-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.6rem;
  }
  .about-step-head {
    display: contents;
  }
  .about-step h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }
  .about-step-num {
    grid-column: 1;
    grid-row: 1;
  }
  .about-step p {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .account-note-label {
    display: inline;
    margin: 0 0.4rem 0 0;
  }
}

/* ── Same container as the Home page ──────────────────────────────────────
   Home sizes its panels with --home-content-width (polish.css): 900px below
   1100px, 1100px from 1100px, and the window minus 2rem each side (up to
   1760px) from 1440px, with 0.5rem side margins on small screens. The About
   page uses the same values so both pages line up edge for edge. */
:root .about-page .about-hero,
:root .about-page .about-content {
  width: calc(100% - 1rem);
  max-width: 900px;
  margin-inline: auto;
}
@media (min-width: 1100px) {
  :root .about-page .about-hero,
  :root .about-page .about-content {
    max-width: var(--home-content-width);
  }
}
@media (min-width: 1440px) {
  body.about-page {
    --home-content-width: min(calc(100vw - 4rem), 1760px);
  }
  /* Navbar and footer content edges follow the sections, as on Home. */
  body.about-page .navbar-container,
  :root body.about-page .site-footer .footer-container {
    max-width: calc(var(--home-content-width) + 2.5rem);
  }
  /* With the extra width the four account tools fit in one row. */
  .account-benefits--quad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .account-benefits--quad .benefit-row {
    flex-direction: column;
    gap: 0.85rem;
  }
}

/* Same panel rhythm as Home: equal gaps between panels and the same inner padding. */
:root .about-page .about-hero {
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
  margin-bottom: 0;
}
:root .about-page .about-section {
  margin-block: clamp(0.75rem, 2vw, 1.25rem);
  padding: clamp(1.1rem, 3.5vw, 2.25rem);
}
:root .about-page .about-cta {
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
  padding: clamp(1.1rem, 3vw, 1.75rem) clamp(1.1rem, 3.5vw, 2.25rem);
}
/* Very wide screens: text and video share the row equally so the video
   panel doesn't grow taller than the content beside it. */
@media (min-width: 1440px) {
  .about-video-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
