/*
 * Who we are pages (design 149, plan 293): /story additions, /faq, /trust,
 * /press and /contact. Built on Our story's sty- pieces and the /earn FAQ
 * (ea-faq); this sheet adds only what they lack. Page-scoped (linked by the
 * templates, not bundled), and colour comes only from tokens and the sty-
 * variables that the light theme already re-points, so both themes work
 * without regenerating theme-light-auto.css. Every class is ab-.
 */

/* ------------------------------------------------ picture-less hero -- */
.sty-hero.ab-hero {
  min-height: auto;
  padding: 132px 20px 56px;
}

.ab-hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, var(--eg-accent-soft), transparent 42%),
    radial-gradient(circle at 82% 36%, rgba(155, 107, 219, 0.12), transparent 44%);
  pointer-events: none;
}

.ab-hero h1 {
  margin: 0;
  font-family: var(--eg-font-display);
  font-size: var(--eg-h1);
  line-height: 1.08;
}

.ab-hero .sty-lede {
  text-shadow: none;
  color: var(--sty-muted);
}

html[data-theme="light"] .sty-hero.ab-hero .sty-hero-inner::before {
  display: none;
}

/* Section intro line under an h2. */
.ab-line {
  max-width: 660px;
  margin: 0;
  color: var(--sty-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ------------------------------------------------ the definition -- */
.ab-define {
  display: grid;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 40px;
  border-radius: var(--eg-radius-xl);
  border: 1px solid var(--eg-border-strong);
  background: var(--sty-panel);
}

.ab-define h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.12;
}

.ab-define p {
  margin: 0;
  color: var(--sty-ink);
  font-size: clamp(1.06rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.ab-define .ab-define-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--sty-muted);
  font-size: 0.94rem;
}

.ab-define-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ab-define-facts i {
  color: var(--eg-accent-text);
}

/* ------------------------------------------------ four steps -- */
.ea-steps.ab-steps-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ------------------------------------------------ cards -- */
.ab-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 22px 24px;
  border-radius: var(--eg-radius-lg);
  border: 1px solid var(--sty-line);
  background: var(--sty-panel);
}

.ab-card > i {
  color: var(--eg-accent-text);
  font-size: 1.2rem;
}

.ab-card h3 {
  margin: 4px 0 0;
  font-size: 1.12rem;
  line-height: 1.3;
}

.ab-card p {
  margin: 0;
  color: var(--sty-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.ab-card a {
  color: var(--eg-accent-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.ab-card .ab-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 4px;
}

/* ------------------------------------------------ what we never do -- */
.ab-never {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-never li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: start;
  align-content: start;
  padding: 20px 22px;
  border-radius: var(--eg-radius-lg);
  border: 1px solid var(--sty-line);
  background: var(--sty-panel);
}

.ab-never li > i {
  grid-row: span 2;
  margin-top: 3px;
  color: var(--eg-accent-text);
  font-size: 1.1rem;
}

.ab-never b {
  color: var(--sty-ink);
  font-size: 1.04rem;
}

.ab-never span {
  color: var(--sty-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.ab-more {
  margin: 22px 0 0;
  text-align: center;
}

.ab-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--eg-accent-text);
  font-weight: 700;
  text-decoration: none;
}

.ab-more a:hover,
.ab-more a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ------------------------------------------------ FAQ groups -- */
.ab-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--eg-radius-pill);
  border: 1px solid var(--sty-line);
  background: var(--sty-panel);
  color: var(--sty-ink);
  font-weight: 600;
  text-decoration: none;
}

.ab-jump a i {
  color: var(--eg-accent-text);
}

.ab-jump a:hover,
.ab-jump a:focus-visible {
  border-color: var(--eg-border-strong);
}

.ab-faq-group {
  scroll-margin-top: 96px;
}

.ab-faq-group + .ab-faq-group {
  padding-top: 64px;
}

.ab-faq-group > h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  text-align: center;
}

.ab-faq-group > h2 i {
  color: var(--eg-accent-text);
  font-size: 0.8em;
}

.ea-faq-item p a,
.ab-prose a {
  color: var(--eg-accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------ trust sections -- */
.ab-trust {
  display: grid;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

.ab-trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  align-content: start;
  padding: 26px 28px;
  border-radius: var(--eg-radius-lg);
  border: 1px solid var(--sty-line);
  background: var(--sty-panel);
  scroll-margin-top: 96px;
}

.ab-trust-item > i {
  grid-row: span 3;
  margin-top: 6px;
  color: var(--eg-accent-text);
  font-size: 1.25rem;
}

.ab-trust-item h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.2;
}

.ab-trust-item p {
  margin: 0;
  color: var(--sty-muted);
  line-height: 1.65;
}

.ab-trust-item ul {
  margin: 4px 0 0;
  padding-left: 1.1em;
  color: var(--sty-muted);
  line-height: 1.6;
}

.ab-trust-item li + li {
  margin-top: 6px;
}

/* ------------------------------------------------ press kit -- */
.ab-boiler {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 34px;
  border-radius: var(--eg-radius-xl);
  border: 1px solid var(--eg-border-strong);
  background: var(--sty-panel);
}

.ab-boiler p {
  margin: 0;
  color: var(--sty-ink);
  font-size: 1.08rem;
  line-height: 1.7;
}

.ab-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 0;
}

.ab-facts > div {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--eg-radius-lg);
  border: 1px solid var(--sty-line);
  background: var(--sty-panel);
}

.ab-facts dt {
  color: var(--sty-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ab-facts dd {
  margin: 0;
  color: var(--sty-ink);
  font-size: 1.02rem;
  line-height: 1.5;
}

.ab-facts dd a {
  color: var(--eg-accent-text);
}

.ab-assets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-asset {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--eg-radius-lg);
  border: 1px solid var(--sty-line);
  background: var(--sty-panel);
}

.ab-asset-preview {
  display: grid;
  place-items: center;
  height: 168px;
  padding: 20px;
  background: var(--eg-brand-night);
}

.ab-asset-preview.is-light {
  /* Porcelain in both themes: the tile shows the light-background logos. */
  background: #f7f3ea;
}

.ab-asset-preview img {
  max-width: 100%;
  max-height: 128px;
  object-fit: contain;
}

.ab-asset-copy {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px 18px 18px;
}

.ab-asset-copy b {
  color: var(--sty-ink);
}

.ab-asset-copy span {
  color: var(--sty-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.ab-asset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.ab-asset-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--eg-accent-text);
  font-weight: 700;
}

.ab-note {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--sty-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

/* ------------------------------------------------ contact form -- */
.ab-form {
  display: grid;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
  padding: 30px 32px;
  border-radius: var(--eg-radius-xl);
  border: 1px solid var(--sty-line);
  background: var(--sty-panel);
}

.ab-form h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

.ab-field {
  display: grid;
  gap: 6px;
}

.ab-field label {
  color: var(--sty-ink);
  font-weight: 600;
}

.ab-field small {
  color: var(--sty-muted);
}

.ab-field input,
.ab-field select,
.ab-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--eg-radius-md);
  border: 1px solid var(--eg-border-strong);
  background: var(--eg-surface-2);
  color: var(--eg-text);
  font: inherit;
}

.ab-field textarea {
  min-height: 150px;
  resize: vertical;
}

.ab-field input:focus-visible,
.ab-field select:focus-visible,
.ab-field textarea:focus-visible {
  outline: 2px solid var(--eg-focus);
  outline-offset: 2px;
}

.ab-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.ab-form-actions .sty-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.ab-form-actions .sty-btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.ab-status {
  margin: 0;
  color: var(--sty-muted);
}

.ab-status.is-ok {
  color: var(--eg-success);
}

.ab-status.is-error {
  color: var(--eg-danger);
}

.ab-page :focus-visible {
  outline: 3px solid var(--eg-focus);
  outline-offset: 3px;
}

/* ------------------------------------------------ responsive -- */
@media (max-width: 1080px) {
  .ea-steps.ab-steps-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sty-hero.ab-hero {
    padding: 112px 18px 36px;
  }

  .ea-steps.ab-steps-4 {
    grid-template-columns: 1fr;
  }

  .ab-define,
  .ab-boiler,
  .ab-form {
    padding: 24px 20px;
  }

  .ab-trust-item {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }

  .ab-trust-item > i {
    grid-row: auto;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-page *,
  .ab-page *::before,
  .ab-page *::after {
    transition: none !important;
  }
}

/* Room above the footer on pages that end without a closing band. */
.ab-end {
  height: 96px;
}

/* Six contact routes: three by two on desktop, never an orphan card. */
.ab-cards.ab-cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ab-line a {
  color: var(--eg-accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .ab-cards.ab-cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .ab-cards.ab-cards-3 {
    grid-template-columns: 1fr;
  }
}

/* Our story: room between the four steps and the origin band below them. */
.sty-section.ab-before-band {
  padding-bottom: 96px;
}
