/* XLClass About + Contact — DESIGN.md tokens */
:root {
  --xlh-ink: #14141a;
  --xlh-mute: #5c6170;
  --xlh-paper: #f7f4ef;
  --xlh-snow: #fffefc;
  --xlh-line: #e4dfd6;
  --xlh-brand: #e85a1c;
  --xlh-brand-hover: #c44814;
  --xlh-night: #0e1018;
  --xlh-radius-card: 20px;
  --xlh-radius-btn: 12px;
  --xlh-shadow: 0 12px 40px rgba(14, 16, 24, 0.08);
  --xlh-section-y: clamp(3.5rem, 8vw, 6.5rem);
  --xlh-wrap: min(1120px, calc(100% - 2.5rem));
  --xlh-wrap-wide: min(1280px, calc(100% - 2rem));
}

body.xl-page-about .tg-header__top--ticker,
body.xl-page-contact .tg-header__top--ticker,
body.xl-page-legal .tg-header__top--ticker {
  display: none !important;
}

body.xl-page-about .container.mt-3,
body.xl-page-contact .container.mt-3 {
  width: var(--xlh-wrap);
  margin-inline: auto;
  padding-top: 1.25rem;
}

body.xl-page-about .alert,
body.xl-page-contact .alert {
  border: 1px solid var(--xlh-line);
  border-radius: var(--xlh-radius-btn);
  background: var(--xlh-snow);
  color: var(--xlh-ink);
  box-shadow: none;
}

body.xl-page-contact .alert-success {
  border-color: rgba(232, 90, 28, 0.28);
  background: #fff8f4;
}

body.xl-page-contact .alert-danger {
  border-color: #e8c8c4;
  background: #fff7f6;
}

.xl-page {
  background: var(--xlh-paper);
  color: var(--xlh-ink);
  font-family: var(--xl-font, "Inter", "Segoe UI", sans-serif);
}

/* —— Shared hero (shorter than homepage) —— */
.xlp-hero {
  position: relative;
  overflow: hidden;
  background: var(--xlh-paper);
  border-bottom: 1px solid var(--xlh-line);
}

.xlp-hero__glow {
  position: absolute;
  top: -14%;
  right: -8%;
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 90, 28, 0.14) 0%, rgba(232, 90, 28, 0) 68%);
  pointer-events: none;
}

.xlp-hero__inner {
  position: relative;
  z-index: 1;
  width: var(--xlh-wrap-wide);
  margin: 0 auto;
  padding: clamp(2.5rem, 5.5vw, 4rem) 0 clamp(2.25rem, 4.5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.xlp-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.35rem, 5.2vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--xlh-ink);
}

.xlp-hero__accent {
  color: var(--xlh-brand);
}

.xlp-hero__lead {
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  color: var(--xlh-mute);
  max-width: 32rem;
}

.xlp-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.xlp-hero__proof li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--xlh-ink);
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--xlh-line);
  background: var(--xlh-snow);
}

.xlp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
}

.xlp-hero__figure {
  margin: 0;
  border-radius: var(--xlh-radius-card);
  overflow: hidden;
  box-shadow: var(--xlh-shadow);
  background: #ebe6de;
}

.xlp-hero__figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* —— Split story / hold / safety-like —— */
.xlp-split {
  padding: var(--xlh-section-y) 0;
}

.xlp-split--snow {
  background: var(--xlh-snow);
  border-block: 1px solid var(--xlh-line);
}

.xlp-split__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.xlp-split__grid--flip {
  grid-template-columns: 0.95fr 1.05fr;
}

.xlp-split__figure {
  margin: 0;
  border-radius: var(--xlh-radius-card);
  overflow: hidden;
  box-shadow: var(--xlh-shadow);
  background: #ebe6de;
}

.xlp-split__figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.xlp-facts {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.xlp-facts li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--xlh-ink);
}

.xlp-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--xlh-brand);
}

/* —— Hold (three sentences) —— */
.xlp-hold {
  padding: var(--xlh-section-y) 0;
  background: var(--xlh-paper);
}

.xlp-hold__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.75rem;
}

.xlp-hold__item {
  padding: 1.4rem 1.35rem 1.5rem;
  border: 1px solid var(--xlh-line);
  border-radius: var(--xlh-radius-card);
  background: var(--xlh-snow);
  box-shadow: 0 2px 8px rgba(14, 16, 24, 0.04);
}

.xlp-hold__kicker {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--xlh-mute);
}

.xlp-hold__item p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--xlh-ink);
}

/* —— Two audiences —— */
.xlp-doors-lite {
  padding: var(--xlh-section-y) 0;
  background: var(--xlh-snow);
  border-block: 1px solid var(--xlh-line);
}

.xlp-doors-lite__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.xlp-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--xlh-line);
  border-radius: var(--xlh-radius-card);
  background: var(--xlh-paper);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.xlp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 90, 28, 0.35);
  box-shadow: var(--xlh-shadow);
  color: inherit;
}

.xlp-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ebe6de;
}

.xlp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.xlp-card:hover .xlp-card__media img {
  transform: scale(1.03);
}

.xlp-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.2rem 1.3rem 1.4rem;
}

.xlp-card__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--xlh-mute);
}

.xlp-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--xlh-ink);
}

.xlp-card__hint {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--xlh-mute);
}

/* —— Contact grid —— */
.xlc-board {
  padding: var(--xlh-section-y) 0;
}

.xlc-board__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.xlc-form {
  padding: 1.6rem 1.55rem 1.7rem;
  border: 1px solid var(--xlh-line);
  border-radius: var(--xlh-radius-card);
  background: var(--xlh-snow);
  box-shadow: var(--xlh-shadow);
}

.xlc-form__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.xlc-form__lead {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--xlh-mute);
}

.xlc-field {
  margin-bottom: 1rem;
}

.xlc-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--xlh-ink);
}

.xlc-field input,
.xlc-field select,
.xlc-field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--xlh-line);
  border-radius: var(--xlh-radius-btn);
  background: var(--xlh-paper);
  color: var(--xlh-ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.xlc-field input:focus,
.xlc-field select:focus,
.xlc-field textarea:focus {
  outline: none;
  border-color: var(--xlh-brand);
  box-shadow: 0 0 0 3px rgba(232, 90, 28, 0.15);
  background: var(--xlh-snow);
}

.xlc-field textarea {
  min-height: 10rem;
  resize: vertical;
}

.xlc-field--error input,
.xlc-field--error select,
.xlc-field--error textarea {
  border-color: #c44814;
}

.xlc-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #c44814;
}

.xlc-form .xlh-btn {
  width: 100%;
  margin-top: 0.35rem;
}

.xlc-channels {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.xlc-channel {
  display: block;
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--xlh-line);
  border-radius: var(--xlh-radius-card);
  background: var(--xlh-snow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.xlc-channel:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 90, 28, 0.35);
  box-shadow: var(--xlh-shadow);
  color: inherit;
}

.xlc-channel__kicker {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--xlh-mute);
}

.xlc-channel__title {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--xlh-ink);
}

.xlc-channel p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--xlh-mute);
}

.xlc-expect {
  padding: 0 0 var(--xlh-section-y);
}

.xlc-expect__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.xlc-expect__item {
  padding: 1.3rem 1.25rem 1.4rem;
  border-top: 2px solid var(--xlh-brand);
  background: var(--xlh-snow);
  border-radius: 0 0 var(--xlh-radius-card) var(--xlh-radius-card);
  border-right: 1px solid var(--xlh-line);
  border-bottom: 1px solid var(--xlh-line);
  border-left: 1px solid var(--xlh-line);
}

.xlc-expect__item strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.xlc-expect__item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--xlh-mute);
}

@media (max-width: 991.98px) {
  .xlp-hero__inner,
  .xlp-split__grid,
  .xlp-split__grid--flip,
  .xlc-board__grid {
    grid-template-columns: 1fr;
  }

  .xlp-hold__grid,
  .xlc-expect__grid {
    grid-template-columns: 1fr;
  }

  .xlp-doors-lite__grid {
    grid-template-columns: 1fr;
  }

  .xlp-hero__figure,
  .xlp-split__figure {
    max-width: 36rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xlp-card:hover,
  .xlc-channel:hover {
    transform: none;
  }

  .xlp-card:hover .xlp-card__media img {
    transform: none;
  }
}

/* —— Legal / compliance —— */
body.xl-page-legal .container.mt-3 {
  width: var(--xlh-wrap);
  margin-inline: auto;
  padding-top: 1.25rem;
}

.xl-legal-hero {
  grid-template-columns: 1fr;
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.xl-legal-hero .xlp-hero__title {
  max-width: 18ch;
}

.xl-legal-hero .xlh-eyebrow a {
  color: inherit;
  text-decoration: none;
}

.xl-legal-hero .xlh-eyebrow a:hover {
  color: var(--xlh-brand);
}

.xl-legal-group {
  padding: 0 0 2.75rem;
}

.xl-legal-group--first {
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
}

.xl-legal-group__title {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xlh-mute);
}

.xl-legal-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.xl-legal-card {
  display: block;
  height: 100%;
  padding: 1.2rem 1.2rem 1.25rem;
  border: 1px solid var(--xlh-line);
  border-radius: var(--xlh-radius-card);
  background: var(--xlh-snow);
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.xl-legal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 90, 28, 0.35);
  color: inherit;
}

.xl-legal-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.xl-legal-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--xlh-mute);
}

.xl-legal-contact {
  padding: 0 0 var(--xlh-section-y);
}

.xl-legal-contact h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.xl-legal-contact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.xl-legal-contact article {
  padding: 1.15rem 1.15rem 1.25rem;
  border-top: 2px solid var(--xlh-brand);
  background: var(--xlh-snow);
  border-right: 1px solid var(--xlh-line);
  border-bottom: 1px solid var(--xlh-line);
  border-left: 1px solid var(--xlh-line);
  border-radius: 0 0 var(--xlh-radius-card) var(--xlh-radius-card);
}

.xl-legal-contact strong {
  display: block;
  margin-bottom: 0.35rem;
}

.xl-legal-contact p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--xlh-mute);
}

.xl-legal-contact a {
  color: var(--xlh-brand);
}

.xl-legal-doc {
  padding: clamp(2rem, 5vw, 3.25rem) 0 var(--xlh-section-y);
}

.xl-legal-doc__grid {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.xl-legal-toc {
  position: sticky;
  top: 6rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--xlh-line);
  border-radius: var(--xlh-radius-card);
  background: var(--xlh-snow);
}

.xl-legal-toc__title {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xlh-mute);
}

.xl-legal-toc ol {
  margin: 0;
  padding: 0 0 0 1.1rem;
}

.xl-legal-toc li {
  margin: 0.35rem 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.xl-legal-toc a {
  color: var(--xlh-ink);
  text-decoration: none;
}

.xl-legal-toc a:hover {
  color: var(--xlh-brand);
}

.xl-legal-prose {
  max-width: 42rem;
}

.xl-legal-section + .xl-legal-section {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--xlh-line);
}

.xl-legal-prose h2 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.xl-legal-prose p {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--xlh-ink);
}

.xl-legal-prose p:last-child,
.xl-legal-prose ul:last-child {
  margin-bottom: 0;
}

.xl-legal__list {
  margin: 0 0 0.9rem;
  padding: 0 0 0 1.15rem;
}

.xl-legal__list li {
  margin: 0.28rem 0;
  line-height: 1.55;
}

.xl-legal-prose a {
  color: var(--xlh-brand);
}

.xl-legal-empty,
.xl-faq-foot {
  margin-top: 1.5rem;
  color: var(--xlh-mute);
}

.xl-legal-more {
  padding: 0 0 var(--xlh-section-y);
  border-top: 1px solid var(--xlh-line);
  padding-top: 2rem;
}

.xl-legal-more h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.xl-legal-more__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.xl-legal-more__list a {
  color: var(--xlh-ink);
  font-size: 0.92rem;
}

.xl-legal-more__list a:hover {
  color: var(--xlh-brand);
}

.xl-faq-acc .accordion-item {
  border: 1px solid var(--xlh-line);
  border-radius: var(--xlh-radius-btn) !important;
  background: var(--xlh-snow);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.xl-faq-acc .accordion-button {
  background: var(--xlh-snow);
  color: var(--xlh-ink);
  font-weight: 650;
  box-shadow: none;
}

.xl-faq-acc .accordion-button:not(.collapsed) {
  background: #fff8f4;
  color: var(--xlh-ink);
  box-shadow: none;
}

.xl-faq-acc .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(232, 90, 28, 0.35);
}

@media (max-width: 991.98px) {
  .xl-legal-cards,
  .xl-legal-contact__grid,
  .xl-legal-doc__grid {
    grid-template-columns: 1fr;
  }

  .xl-legal-toc {
    position: static;
  }
}
