:root {
  color-scheme: light;
  --color-brand: #6C4CF1;
  --color-brand-hover: #5635D6;
  --color-accent: #2ED3B7;
  --color-ink: #1B1F3B;
  --color-canvas: #FFF8F1;
  --color-surface: #EDE7FF;
  --color-highlight: #FFC93C;
  --color-white: #FFFFFF;
  --color-muted: #57536F;
  --color-border-strong: #847B9E;
  --color-focus-on-light: #5635D6;
  --color-focus-on-brand: #FFC93C;
  --color-focus-on-ink: #FFC93C;
  --font-system: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --width-content: 75rem;
  --width-reading: 47.5rem;
  --radius-card: 1.5rem;
  --radius-button: 0.875rem;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-system);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.625rem);
}

h3 {
  font-size: 1.375rem;
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--color-brand-hover);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--color-focus-on-light);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--width-content));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -12rem;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: var(--color-ink);
  color: var(--color-white);
  border-radius: var(--radius-button);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* Header ------------------------------------------------------------ */

.site-header {
  background: var(--color-canvas);
}

.site-header :focus-visible {
  outline-color: var(--color-focus-on-light);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  min-height: 4.75rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 2.75rem;
  min-width: 2.75rem;
}

.brand-logo {
  display: block;
  width: 13.125rem;
  height: auto;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding-block: 0.25rem;
  color: var(--color-ink);
  border-bottom: 3px solid transparent;
  font-weight: 600;
  text-decoration: none;
}

.nav-list a:hover {
  border-bottom-color: var(--color-border-strong);
}

.nav-list a[aria-current="page"] {
  border-bottom-color: var(--color-brand);
}

.header-cta {
  flex: 0 0 auto;
}

/* Buttons ----------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius-button);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-brand {
  background: var(--color-brand);
  color: var(--color-white);
}

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

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

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

.button-outline-light {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.button-outline-light:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-brand-hover);
}

.button-ink {
  background: var(--color-ink);
  color: var(--color-white);
}

.button-ink:hover {
  background: var(--color-brand-hover);
}

/* Layout sections --------------------------------------------------- */

main {
  padding-block: 0 4rem;
}

.section {
  width: min(100% - 2rem, var(--width-content));
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-head h2 {
  margin-bottom: 0.5rem;
}

.section-head p {
  max-width: 44rem;
  color: var(--color-muted);
  font-size: 1.125rem;
}

.page-heading {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4rem) 0;
}

.page-heading h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.page-heading .lead {
  color: var(--color-muted);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 500;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--color-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.content-narrow {
  max-width: 46rem;
}

.content-narrow p {
  font-size: 1.0625rem;
}

/* Hero -------------------------------------------------------------- */

.hero {
  width: min(100% - 2rem, var(--width-content));
  margin: 1.5rem auto 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  background: var(--color-brand);
  color: var(--color-white);
  border-radius: var(--radius-card);
}

.hero :focus-visible {
  outline-color: var(--color-focus-on-brand);
}

.hero h1 {
  margin-bottom: 1rem;
  color: var(--color-white);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-accent {
  color: var(--color-highlight);
}

.hero-eyebrow {
  color: var(--color-white);
}

.hero-lead {
  margin-bottom: 0.75rem;
  color: var(--color-white);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
}

.hero-text {
  max-width: 34rem;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions .button {
  min-height: 3rem;
  padding-inline: 1.5rem;
  font-size: 1.0625rem;
}

.hero-note {
  margin: 0.9rem 0 0;
  color: var(--color-white);
  font-size: 0.875rem;
}

.hero-art {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2.5vw, 2rem);
  background: var(--color-white);
  border-radius: var(--radius-card);
}

.mascote {
  display: block;
  width: min(100%, 15rem);
  height: auto;
}

/* Channels ---------------------------------------------------------- */

.channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.channel-card {
  padding: 1.75rem;
  background: var(--color-surface);
  border-radius: 1.375rem;
}

.channel-card h2,
.channel-card h3 {
  margin-bottom: 1.25rem;
}

.channel-card .button {
  width: 100%;
}

.channel-grid-primary .channel-card {
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.channel-card-large h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.more-link {
  margin: 1.5rem 0 0;
  text-align: center;
  font-weight: 700;
}

.more-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding-inline: 0.5rem;
}

.channel-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
  list-style: none;
}

.channel-compact a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border-strong);
  border-radius: 1rem;
  color: var(--color-ink);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
}

.channel-compact a:hover {
  color: var(--color-brand-hover);
}

.channel-arrow {
  color: var(--color-brand-hover);
}

/* Steps ------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: 1.25rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--color-highlight);
  color: var(--color-ink);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 800;
}

.step-body h3 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.step-body p {
  margin: 0;
  color: var(--color-muted);
}

/* Transparency ------------------------------------------------------ */

.transparency-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--color-ink);
  color: var(--color-white);
  border-radius: 1.375rem;
}

.transparency-panel :focus-visible {
  outline-color: var(--color-focus-on-ink);
}

.transparency-copy h2 {
  margin-bottom: 0.5rem;
  color: var(--color-white);
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
}

.transparency-copy p {
  margin: 0;
  color: var(--color-white);
}

.transparency-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding-inline: 0.5rem;
  color: var(--color-accent);
  font-weight: 700;
}

.transparency-link:hover {
  color: var(--color-highlight);
}

/* FAQ --------------------------------------------------------------- */

.faq {
  width: min(100% - 2rem, 51.25rem);
}

.faq h2 {
  margin-bottom: 1.5rem;
}

.faq details {
  margin-bottom: 0.75rem;
  padding: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border-strong);
  border-radius: 1rem;
}

.faq summary {
  position: relative;
  padding: 1.15rem 3.5rem 1.15rem 1.25rem;
  color: var(--color-ink);
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  color: var(--color-brand-hover);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0;
  padding: 0 3.5rem 1.25rem 1.25rem;
  color: var(--color-muted);
}

/* Legal and editorial pages ---------------------------------------- */

.legal-body {
  width: min(100% - 2rem, var(--width-reading));
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4rem) 0;
}

.legal-body .page-heading {
  width: 100%;
  padding-block: 0;
}

.legal-body section + section {
  margin-top: 2.25rem;
}

.legal-body h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  letter-spacing: -0.01em;
}

.legal-body p {
  margin-bottom: 1rem;
}

.limits-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.limits-list li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.6rem;
}

.limits-list li::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  left: 0.2rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-brand);
  border-radius: 50%;
}

/* 404 --------------------------------------------------------------- */

.not-found .actions {
  margin-top: 1.5rem;
}

/* Footer ------------------------------------------------------------ */

.site-footer {
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 0.9375rem;
}

.site-footer :focus-visible {
  outline-color: var(--color-focus-on-ink);
}

.footer-inner {
  padding-block: 2.75rem 2rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo-plate {
  display: inline-block;
  padding: 0.65rem 1rem;
  background: var(--color-white);
  border-radius: 1rem;
}

.footer-logo-plate img {
  display: block;
  width: 11.5rem;
  height: auto;
}

.footer-tagline {
  margin: 0;
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
}

.footer-links a,
.legal-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding-inline: 0.25rem;
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover,
.legal-list a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.14em;
}

.legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-list a {
  color: var(--color-white);
  font-weight: 500;
}

.legal-list a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.18em;
}

/* Responsive -------------------------------------------------------- */

@media (min-width: 48rem) {
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .transparency-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .footer-top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

@media (min-width: 64rem) {
  .container,
  .section,
  .hero {
    width: min(100% - 4rem, var(--width-content));
  }

  .header-inner {
    flex-wrap: nowrap;
    min-height: 5rem;
  }

  .site-nav {
    margin-left: auto;
  }

  .hero {
    margin-top: 2rem;
  }

  .hero-inner {
    grid-template-columns: 54fr 46fr;
    align-items: center;
    gap: 3rem;
  }

  .mascote {
    width: min(100%, 24rem);
  }

  .hero-actions .button {
    min-width: 11rem;
  }
}

@media (max-width: 63.9375rem) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
    gap: 0.5rem 1rem;
    padding-block: 0.75rem 0;
  }

  .brand {
    grid-area: brand;
  }

  .brand-logo {
    width: 10.5rem;
  }

  .header-cta {
    grid-area: cta;
    align-self: center;
  }

  .site-nav {
    grid-area: nav;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--color-border-strong);
  }

  .nav-list {
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
  }
}

@media (max-width: 30rem) {
  .header-inner {
    gap: 0.5rem;
  }

  .brand-logo {
    width: 8.75rem;
  }

  .header-cta {
    max-width: 7.5rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.15;
  }
}

@media (max-width: 22.5rem) {
  .brand-logo {
    width: 7.5rem;
  }

  .header-cta {
    max-width: 7rem;
  }

  .nav-list a {
    font-size: 0.9375rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
