/* =========================================================================
   anony.ch — about page
   Same design system as the app (tokens live in app.css), but the page is a
   document rather than a tool: one measured column, hairlines, numbered
   sections, no decoration that does not carry meaning.
   ========================================================================= */

.about-body {
  padding-bottom: 0;
}

.about-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px 72px;
}

/* ------------------------------------------------------------------- head */

.about-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--grid);
}

.about-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-variant-numeric: tabular-nums;
}

.brand-dot {
  color: var(--red);
}

/* ------------------------------------------------------------------- main */

.about-main {
  padding-top: 64px;
}

.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-eyebrow .rule {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: var(--red);
}

.about-title {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.about-lead {
  margin: 26px 0 0;
  max-width: 62ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.62;
  color: var(--ink-soft);
}

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

.about-section {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--grid);
}

.about-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  padding-top: 6px;
}

.about-body-col h2 {
  margin: 0 0 14px;
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.22;
  max-width: 34ch;
}

.about-body-col > p {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ------------------------------------------------------------------ actors */

.actors {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--grid);
}

.actors li {
  padding: 20px 22px 22px 0;
  border-bottom: 1px solid var(--grid);
  border-inline-end: 1px solid var(--grid);
}

.actors li:nth-child(2n) {
  padding-inline: 22px 0;
  border-inline-end: 0;
}

.actor-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 9px;
}

.actors h3 {
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.actors p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

/* -------------------------------------------------------------- principles */

.principles {
  list-style: none;
  counter-reset: principle;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--grid);
}

.principles li {
  counter-increment: principle;
  position: relative;
  padding: 18px 0 18px 46px;
  border-bottom: 1px solid var(--grid);
}

.principles li::before {
  content: counter(principle, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  top: 19px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.principles h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.principles p {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 66ch;
}

/* --------------------------------------------------------------------- faq */

.faq-lede {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.faq-list {
  margin-top: 18px;
  border-top: 1px solid var(--grid);
}

.faq-item {
  border-bottom: 1px solid var(--grid);
}

/* Native <details>: the answer text is in the HTML whether or not the row is
   open, so it is readable without JavaScript and visible to a crawler. */
.faq-item > summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px 0;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq-item > summary::before {
  content: '+';
  flex: none;
  width: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--red);
  text-align: center;
}

.faq-item[open] > summary::before {
  content: '−';
}

.faq-item > summary:hover {
  color: var(--red);
}

.faq-item > summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.faq-item > p {
  margin: 0 0 16px;
  padding-inline-start: 24px;
  max-width: 68ch;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--muted);
}

.faq-item[open] > p {
  animation: faq-open 160ms ease-out;
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item[open] > p {
    animation: none;
  }
}

.limits {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 66ch;
}

.limits li {
  position: relative;
  padding-inline-start: 18px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--muted);
}

.limits li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--muted-2);
}

/* ----------------------------------------------------------------- closing */

.about-close {
  margin: 64px 0 0;
  padding: 26px 0 26px 26px;
  border-inline-start: 2px solid var(--red);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 46ch;
  text-wrap: balance;
}

/* --------------------------------------------------------------------- cta */

.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding: 26px 28px;
  border: 1px solid var(--grid-strong);
  background: var(--surface);
}

.about-cta h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.about-cta p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 52ch;
}

.about-cta .btn {
  text-decoration: none;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ footer */

.about-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--grid);
}

.about-foot-note {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  text-transform: uppercase;
}

/* --------------------------------------------------------------- movement */

.about-section,
.about-close,
.about-cta {
  animation: aboutIn 380ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.about-section:nth-of-type(2) { animation-delay: 40ms; }
.about-section:nth-of-type(3) { animation-delay: 80ms; }
.about-close { animation-delay: 110ms; }
.about-cta { animation-delay: 140ms; }

@keyframes aboutIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

html.preload .about-section,
html.preload .about-close,
html.preload .about-cta {
  animation: none;
}

/* ------------------------------------------------------------------ mobile */

@media (max-width: 720px) {
  .about-shell {
    padding: 0 18px 48px;
  }

  .about-main {
    padding-top: 40px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 40px;
  }

  .about-num {
    padding-top: 0;
  }

  .actors {
    grid-template-columns: 1fr;
  }

  .actors li,
  .actors li:nth-child(2n) {
    padding: 18px 0;
    border-inline-end: 0;
  }

  .about-cta {
    padding: 20px 18px;
  }
}

/* --------------------------------------------------------------------- rtl */

[dir='rtl'] .principles li {
  padding: 18px 46px 18px 0;
}

[dir='rtl'] .about-close {
  padding: 26px 26px 26px 0;
}

[dir='rtl'] .limits li {
  padding: 0 18px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .about-section,
  .about-close,
  .about-cta {
    animation: none;
  }
}
