/* about.css — public About page. Loaded in {% block head %}, which sits BEFORE the
 * shared learnova sheets, so every selector here uses .about- prefixed classes that
 * nothing else defines. Colors come from the --ln-* tokens, so dark mode works without
 * a single override in learnova-dark.css (the one dark-theme rule here only keeps the
 * lighter violet for text, where light mode needs the deeper one). */

.about-shell {
  /* Violet text (links, the tagline): --ln-violet is under 4.5:1 on the light surfaces at
   * these sizes (17px bold is not "large text"); the deeper violet is about 6:1. Dark mode
   * keeps --ln-violet, which passes there. Borders and tints keep --ln-violet. */
  --about-violet-text: var(--ln-violet-deep);
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 80px;
}
:root[data-theme="dark"] .about-shell { --about-violet-text: var(--ln-violet); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ hero */
.about-hero {
  text-align: center;
  padding: 72px 16px 64px;
  border-radius: 28px;
  background:
    radial-gradient(640px 300px at 18% 0%, color-mix(in srgb, var(--ln-violet) 14%, transparent), transparent 70%),
    radial-gradient(640px 300px at 85% 10%, color-mix(in srgb, var(--ln-coral, #ff7a59) 10%, transparent), transparent 70%);
}
.about-hero h1 {
  max-width: 17em;
  margin: 14px auto 0;
  font: 800 clamp(30px, 5.2vw, 52px)/1.12 Manrope, sans-serif;
  letter-spacing: -.015em;
  color: var(--ln-ink);
}
.about-lead {
  max-width: 44em;
  margin: 22px auto 0;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  color: var(--ln-muted);
}
.about-hero-tagline {
  max-width: 30em;
  margin: 16px auto 0;
  font: 700 clamp(17px, 2.2vw, 21px)/1.4 Manrope, sans-serif;
  color: var(--about-violet-text);
}
.about-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}
.about-secondary-link {
  color: var(--about-violet-text);
  font-weight: 700;
  text-decoration: none;
}
.about-secondary-link:hover { text-decoration: underline; }

/* -------------------------------------------------------------- sections */
.about-section { margin-top: 84px; }
.about-section h2 {
  margin: 0;
  font: 800 clamp(24px, 3.4vw, 34px)/1.2 Manrope, sans-serif;
  letter-spacing: -.01em;
  color: var(--ln-ink);
}
.about-section-lead { margin: 10px 0 0; color: var(--ln-muted); font-size: 17px; }

.about-grid { display: grid; gap: 18px; margin-top: 30px; }
.about-grid-2 { grid-template-columns: repeat(2, 1fr); }
.about-grid-3 { grid-template-columns: repeat(3, 1fr); }
.about-grid-4 { grid-template-columns: repeat(4, 1fr); }

.about-card {
  padding: 24px 22px;
  border: 1px solid var(--ln-line);
  border-radius: 20px;
  background: var(--ln-surface-solid);
  transition: transform .18s ease, box-shadow .18s ease;
}
.about-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--ln-ink) 10%, transparent);
}
.about-card-icon { display: block; font-size: 26px; margin-bottom: 12px; }
.about-card h3 { margin: 0 0 8px; font: 700 17px/1.3 Manrope, sans-serif; color: var(--ln-ink); }
.about-card p { margin: 0; line-height: 1.6; color: var(--ln-muted); }

.about-resolution, .about-fairness {
  max-width: 54em;
  margin: 28px 0 0;
  padding: 18px 22px;
  border-inline-start: 3px solid var(--ln-violet);
  border-radius: 0 14px 14px 0;
  background: color-mix(in srgb, var(--ln-violet) 7%, transparent);
  line-height: 1.65;
  color: var(--ln-ink);
}

.about-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.about-chip-row li {
  padding: 8px 15px;
  border: 1px solid color-mix(in srgb, var(--ln-violet) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ln-violet) 8%, transparent);
  color: var(--ln-ink);
  font-size: 14px;
  font-weight: 600;
}

/* ----------------------------------------------------------------- steps */
.about-steps {
  counter-reset: about-step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.about-step {
  padding: 24px 22px;
  border: 1px solid var(--ln-line);
  border-radius: 20px;
  background: var(--ln-surface-solid);
}
.about-step-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ln-violet) 14%, transparent);
  color: var(--ln-violet);
  font: 800 17px Manrope, sans-serif;
}
.about-step h3 { margin: 0 0 8px; font: 700 16px/1.3 Manrope, sans-serif; color: var(--ln-ink); }
.about-step p { margin: 0; line-height: 1.6; color: var(--ln-muted); }

/* ------------------------------------------------------------ comparison */
.about-table-wrap {
  /* max-width: the wrapper itself used to grow to the table's 680px minimum, so the
     whole page scrolled sideways instead of the table scrolling inside it. */
  max-width: 100%;
  min-width: 0;
  /* Containing block for the cells' absolutely positioned screen-reader labels: without
     it they were placed against the page, escaped the scroller and widened it to 663px. */
  position: relative;
  margin-top: 30px;
  overflow-x: auto;              /* the table scrolls inside on phones */
  border: 1px solid var(--ln-line);
  border-radius: 18px;
}
.about-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.about-table th, .about-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--ln-line);
  text-align: center;
  vertical-align: middle;
  color: var(--ln-ink);
}
.about-table thead th {
  background: color-mix(in srgb, var(--ln-ink) 4%, transparent);
  font: 700 14px Manrope, sans-serif;
}
.about-table tbody th[scope="row"] {
  text-align: start;
  font-weight: 600;
  max-width: 17em;
}
.about-table tbody tr:last-child th,
.about-table tbody tr:last-child td { border-bottom: 0; font-size: 13px; }
.about-table-self { background: color-mix(in srgb, var(--ln-violet) 8%, transparent); }
.about-mark { font-size: 16px; font-weight: 700; }
.about-mark-yes { color: var(--ln-success, #2c9f6b); }
.about-mark-part { color: var(--ln-violet); }
.about-mark-no { color: var(--ln-muted); }

.about-table-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 14px 2px 0;
  color: var(--ln-muted);
  font-size: 13.5px;
}
.about-fine-print { margin: 14px 2px 0; color: var(--ln-muted); font-size: 13.5px; line-height: 1.6; }
.about-fine-print a { color: var(--about-violet-text); }

/* ------------------------------------------------------------------- faq */
.about-faq { display: grid; gap: 10px; margin-top: 30px; max-width: 760px; }
.about-faq details {
  border: 1px solid var(--ln-line);
  border-radius: 16px;
  background: var(--ln-surface-solid);
  padding: 0 20px;
}
.about-faq summary {
  padding: 17px 0;
  cursor: pointer;
  font: 700 15.5px/1.4 Manrope, sans-serif;
  color: var(--ln-ink);
  list-style: none;
  position: relative;
  padding-inline-end: 28px;
}
.about-faq summary::-webkit-details-marker { display: none; }
.about-faq summary::after {
  content: "⌄";
  position: absolute;
  inset-inline-end: 2px;
  top: 15px;
  color: var(--ln-muted);
  transition: transform .18s ease;
}
.about-faq details[open] summary::after { transform: rotate(180deg); }
.about-faq details p { margin: 0 0 18px; line-height: 1.65; color: var(--ln-muted); }

/* ------------------------------------------------------------- final CTA */
.about-final-cta {
  margin-top: 90px;
  padding: 56px 24px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(520px 240px at 50% 0%, color-mix(in srgb, var(--ln-violet) 16%, transparent), transparent 75%);
}
.about-final-cta h2 {
  margin: 0 0 26px;
  font: 800 clamp(23px, 3.4vw, 32px)/1.25 Manrope, sans-serif;
  color: var(--ln-ink);
}

/* ------------------------------------------------------------------ story */
.about-story-text { max-width: 40em; margin-top: 18px; }
.about-story-text p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: var(--ln-leading-read, 1.65);
  color: var(--ln-ink);
}
.about-subheading {
  margin: 40px 0 0;
  font: 800 clamp(19px, 2.4vw, 23px)/1.3 Manrope, sans-serif;
  color: var(--ln-ink);
}

/* ---------------------------------------------------------------- mission */
.about-mission { padding: 0; list-style: none; }
.about-mission-card {
  border-top: 4px solid color-mix(in srgb, var(--accent, var(--ln-violet)) 70%, transparent);
  background: color-mix(in srgb, var(--accent, var(--ln-violet)) 6%, var(--ln-surface-solid));
}
.about-mission-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent, var(--ln-violet)) 16%, transparent);
  color: var(--ln-ink);
  font: 800 15px Manrope, sans-serif;
}

/* ---------------------------------------------------------------- founder */
.about-founder-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  max-width: 760px;
  margin-top: 30px;
  padding: 26px 24px;
  border: 1px solid var(--ln-line);
  border-radius: 20px;
  background: var(--ln-surface-solid);
}
.about-founder-monogram {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ln-gradient-brand);
  color: #fff;
  font: 800 30px Manrope, sans-serif;
}
.about-founder-body h3 { margin: 0; font: 800 20px/1.3 Manrope, sans-serif; color: var(--ln-ink); }
.about-founder-role {
  margin: 6px 0 0;
  color: var(--ln-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.about-founder-text { margin: 14px 0 0; line-height: var(--ln-leading-read, 1.65); color: var(--ln-ink); }

.about-contact-line { margin: 22px 0 0; color: var(--ln-muted); }
.about-contact-line a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--about-violet-text);
  font-weight: 700;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .about-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .about-grid-3, .about-grid-2 { grid-template-columns: 1fr; }
  .about-section { margin-top: 60px; }
  .about-hero { padding: 48px 12px 44px; }
}
@media (max-width: 520px) {
  .about-grid-4, .about-steps { grid-template-columns: 1fr; }
  .about-founder-card { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .about-card, .about-faq summary::after { transition: none; }
  .about-card:hover { transform: none; }
}

/* ---- Reviews (components/_reviews_section.html, _review_cards.html) ---- */
.reviews-section .stars { display: inline-flex; gap: 2px; color: #d6d8e3; font-size: 18px; line-height: 1; letter-spacing: 0; }
.reviews-section .stars .is-on { color: #f5a623; }
.reviews-empty { display: grid; gap: 6px; justify-items: center; padding: 28px 18px; border: 1px dashed #d6d8e3; border-radius: 18px; text-align: center; }
.reviews-empty-stars { color: #c9cbd8; font-size: 28px; letter-spacing: 4px; }
.reviews-empty p { max-width: 34rem; margin: 0; color: #5a6278; }
.reviews-summary { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 18px 28px; align-items: center; margin-bottom: 18px; }
.reviews-average { display: grid; justify-items: start; gap: 6px; }
.reviews-average strong { font: 800 44px/1 Manrope, sans-serif; color: #18233f; }
.reviews-average .stars { font-size: 22px; }
.reviews-average small { color: #5a6278; font-weight: 600; }
.reviews-bars { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.reviews-bars a { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 5.5rem; align-items: center; gap: 10px; min-height: 32px; padding: 2px 6px; border-radius: 8px; color: #303a54; font-size: 14px; font-weight: 600; text-decoration: none; }
.reviews-bars a:hover, .reviews-bars a.is-active { background: #f2f1fb; }
.reviews-bars small { color: #6b7287; font-weight: 500; }
.reviews-bar { height: 8px; overflow: hidden; border-radius: 999px; background: #ecebf6; }
.reviews-bar i { display: block; height: 100%; border-radius: inherit; background: #f5a623; }
.reviews-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 6px 0 8px; }
.reviews-filters label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: #5a6278; }
.reviews-filters select { min-height: 44px; min-width: 11rem; padding: 0 10px; border: 1px solid #d6d8e3; border-radius: 10px; background: #fff; font: 600 15px "DM Sans", sans-serif; }
.reviews-note { margin: 4px 0 14px; color: #6b7287; font-size: 14px; }
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 14px; }
.review-card { display: grid; gap: 10px; padding: 16px; border: 1px solid #e3e4ec; border-radius: 16px; background: #fff; }
.review-card header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.review-avatar { display: inline-grid; width: 40px; height: 40px; place-items: center; overflow: hidden; border-radius: 50%; background: #ebe8fd; color: #4a3fb0; font-weight: 800; }
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-who { display: grid; min-width: 0; }
.review-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-who small { color: #6b7287; }
.review-verified { color: #2f7d5b; font-weight: 700; }
.review-body { margin: 0; color: #303a54; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.review-card footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #6b7287; font-size: 13px; }
.review-report { margin-left: auto; }
.review-report summary { min-height: 32px; display: inline-flex; align-items: center; cursor: pointer; color: #6b7287; }
.review-report form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.review-report select { min-height: 40px; border-radius: 8px; }
.reviews-more { display: flex; width: fit-content; margin: 16px auto 0; }
.review-write { display: grid; gap: 12px; margin-top: 26px; padding: 20px; border-radius: 18px; background: #f7f6fd; }
.review-write h3 { margin: 0; }
.review-locked { margin: 0; }
.review-form { display: grid; gap: 14px; }
.star-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; border: 0; }
.star-picker legend { width: 100%; margin-bottom: 6px; padding: 0; font-weight: 700; }
.star-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-picker label { display: inline-grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; color: #c9cbd8; font-size: 34px; line-height: 1; cursor: pointer; transition: transform .12s ease, color .12s ease; }
.star-picker label:hover { transform: scale(1.08); }
.star-picker input:focus-visible + label { outline: 3px solid rgba(117, 101, 232, .4); outline-offset: 2px; }
.star-picker:has(input[value="1"]:checked) label:nth-of-type(-n+1),
.star-picker:has(input[value="2"]:checked) label:nth-of-type(-n+2),
.star-picker:has(input[value="3"]:checked) label:nth-of-type(-n+3),
.star-picker:has(input[value="4"]:checked) label:nth-of-type(-n+4),
.star-picker:has(input[value="5"]:checked) label:nth-of-type(-n+5) { color: #f5a623; }
.review-text { display: grid; gap: 6px; font-weight: 700; }
.review-text textarea { min-height: 7rem; padding: 10px 12px; border: 1px solid #d6d8e3; border-radius: 12px; font: 500 15px/1.5 "DM Sans", sans-serif; resize: vertical; }
.review-counter { justify-self: end; color: #6b7287; font-weight: 500; }
.review-counter.is-near { color: #b2412b; font-weight: 700; }
.review-preview { display: grid; gap: 6px; padding: 12px 14px; border: 1px dashed #cfcbe9; border-radius: 12px; background: #fff; }
.review-preview .stars { color: #f5a623; font-size: 18px; }
.review-preview-label { color: #6b7287; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.review-message { min-height: 1em; margin: 0; font-weight: 700; }
.review-message.is-ok { color: #2f7d5b; }
.review-message.is-error { color: #b2412b; }
.review-actions .primary-button, .reviews-section .secondary-button, .review-delete .ghost-button { min-height: 44px; }
.reviews-section .sr-only, .review-card .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin-reviews { max-width: 960px; margin: 0 auto; padding: 24px 16px 60px; }
.admin-review-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.admin-review-tabs a { padding: 8px 12px; border-radius: 10px; background: #f1f1f7; color: #303a54; font-weight: 700; text-decoration: none; }
.admin-review-tabs a.is-active { background: #ebe8fd; color: #4a3fb0; }
.admin-review { margin-bottom: 12px; }
.admin-review-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-review-actions input { flex: 1 1 12rem; min-height: 40px; }
@media (max-width: 640px) {
  .reviews-summary { grid-template-columns: 1fr; }
  .reviews-filters label, .reviews-filters select { width: 100%; }
  .star-picker label { width: 44px; height: 44px; font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .star-picker label { transition: none; } }
