/* Shared HTML is rendered before Blazor starts and as MarkupString afterward.
   Keep these styles global: component-scoped CSS cannot match that content. */
.about-page {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.public-noscript {
  width: min(1160px, calc(100% - 2rem));
  margin: 1.5rem auto calc(6rem + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: 2.5rem;
}

.about-hero > :only-child {
  grid-column: 1 / -1;
  max-width: 54rem;
}

.about-hero > div > p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.35rem;
}

.about-actions a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.about-actions .button {
  justify-content: center;
  text-align: center;
}

.about-hero > div > .about-actions + p {
  margin-top: 1rem;
  font-size: 0.88rem;
}

.about-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.8rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-callout strong {
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.about-callout span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.about-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: -1rem;
}

.about-index a {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.about-index a:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.about-section {
  scroll-margin-top: 95px;
}

.about-section > h2 {
  margin-bottom: 1rem;
}

.about-origin {
  max-width: 880px;
  padding: 1.35rem 1.45rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 18px;
  background: var(--surface);
}

.about-origin > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.about-origin > p:last-child {
  margin-top: 0.65rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.about-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-grid article,
.term-list > div {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.about-grid h3,
.about-warning h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.about-grid p,
.about-note,
.term-list dd,
.legal-section > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.about-number {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 0.8rem;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.about-note {
  margin-top: 0.8rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
}

.about-examples {
  scroll-margin-top: 95px;
  margin-top: 1.2rem;
}

.about-examples .product-previews {
  margin-bottom: 0;
}

.term-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
}

.term-list dt {
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.term-list dd {
  margin-left: 0;
}

.legal-section > p {
  max-width: 900px;
  margin-bottom: 0.75rem;
}

.legal-section > p strong {
  color: var(--ink);
}

.terms-version {
  font-size: 0.74rem !important;
}

.about-warning {
  scroll-margin-top: 95px;
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid #d9bd7a;
  border-radius: 14px;
  background: #fff7e5;
  color: #5f4c24;
}

.about-warning p {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.about-warning p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .about-page {
    gap: 2rem;
  }

  .about-hero,
  .about-grid,
  .about-grid.three-up,
  .term-list {
    grid-template-columns: 1fr;
  }

  .about-hero {
    gap: 1.2rem;
  }

  .about-hero > div > p:not(.eyebrow) {
    font-size: 1rem;
  }

  .about-callout {
    padding: 1rem;
    box-shadow: none;
  }

  .about-actions .button {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .about-index {
    flex-wrap: nowrap;
    margin-top: -0.5rem;
    padding-bottom: 0.35rem;
    overflow-x: auto;
  }

  .about-index a {
    flex: 0 0 auto;
    font-size: 0.84rem;
  }

  .about-callout strong,
  .about-callout span,
  .about-number,
  .terms-version {
    font-size: 0.86rem !important;
  }

  .about-origin > p:not(.eyebrow),
  .about-grid p,
  .about-note,
  .term-list dd,
  .legal-section > p,
  .about-warning p {
    font-size: 0.94rem;
  }
}

@media (prefers-color-scheme: dark) {
  .about-warning {
    border-color: #806d3c;
    background: #362f1f;
    color: #eadcae;
  }
}
