/* ==========================================================================
   Vision X page — scoped styles.

   Loads ON TOP OF teachmint-v4.0/home.css and is useless without it. .rv-fr and
   .rv-faq are generic — move them to home.css when a second page adopts them.
   ========================================================================== */

/* ==========================================================================
   Hero — fold 1
   ========================================================================== */
.rv-vxh {
  --rv-navy: #14284d;
  --rv-muted: #4c6389;
  /* Restated rather than inherited: home.css scopes these to .rv-nav, which is
     not an ancestor of this section. */
  --rv-nav-ink: #1f3965;
  --rv-nav-ink-dark: #162c52;

  background: #ffffff;
  /* The nav is position:fixed and floats over this section, so the room for it
     is reserved here rather than by a spacer element. */
  padding: calc(var(--rv-nav-space) + 56px) 24px 64px;
  text-align: center;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.rv-vxh__inner {
  max-width: 820px;
  margin-inline: auto;
}
.rv-vxh__lockup {
  display: block;
  width: clamp(168px, 20vw, 232px);
  height: auto;
  margin: 0 auto 20px;
}
/* The H1 has its own size rather than --rv-fs-h2, which is the SECTION heading
   token — same split the homepage hero makes. */
.rv-vxh__title {
  margin: 0;
  color: var(--rv-navy);
  font-size: clamp(2.25rem, 4.6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}
.rv-vxh__lede {
  margin: 18px auto 0;
  max-width: 60ch;
  color: var(--rv-muted);
  font-size: var(--rv-fs-lede);
  font-weight: 400;
  line-height: 1.5;
}
/* Measured off the homepage, not inherited from tm-bgcr-bl-2 — that utility is
   the sky accent #1da1f2 unless a page loads a sheet that overrides it. */
.rv-vxh__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 177px;
  height: 48px;
  margin: 28px auto 0;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--rv-nav-ink);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.rv-vxh__cta:hover {
  background: var(--rv-nav-ink-dark);
}

@media (max-width: 640px) {
  .rv-vxh {
    padding: calc(var(--rv-nav-space) + 32px) 20px 40px;
  }
  .rv-vxh__lockup {
    margin-bottom: 16px;
  }
}

/* ==========================================================================
   Feature rows — alternating copy/media
   ========================================================================== */
.rv-fr {
  --rv-navy: #14284d;
  --rv-muted: #4c6389;
  --rv-border: #c9d6ee;

  /* The homepage's one tint; hero and FAQ stay white either side of it.
     Do not add a second tint to this page. */
  background: #f4f8fd;
  padding: 64px 24px 72px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.rv-fr__inner {
  max-width: 1200px;
  margin-inline: auto;
}
.rv-fr__heading {
  /* 30ch keeps it to two balanced lines at the 40px desktop size; the full
     string is ~1100px set on one line, which is wider than the content column. */
  margin: 0 auto 44px;
  max-width: 30ch;
  color: var(--rv-navy);
  font-size: var(--rv-fs-h2);
  font-weight: var(--rv-fw-h2);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.rv-fr__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.rv-fr__row + .rv-fr__row {
  margin-top: 64px;
}
/* Even rows swap sides visually only — the copy keeps its DOM position so the
   reading order stays title, description, image on every row. */
.rv-fr__row--flip .rv-fr__media {
  order: -1;
}

.rv-fr__title {
  margin: 0;
  color: var(--rv-navy);
  font-size: var(--rv-fs-title);
  font-weight: var(--rv-fw-title);
  line-height: 1.3;
  text-wrap: balance;
}
.rv-fr__desc {
  margin: 12px 0 0;
  max-width: 60ch;
  color: var(--rv-muted);
  font-size: var(--rv-fs-body);
  font-weight: 400;
  line-height: 1.6;
}

/* No card face or shadow here: every supplied shot is exported with its own
   pale frame and rounded inner corners, so adding ours doubled the border. */
.rv-fr__media {
  border-radius: var(--rv-radius-card);
  overflow: hidden;
}
.rv-fr__img {
  display: block;
  width: 100%;
  height: auto;
}
/* A row whose image has not landed yet. Dashed and labelled so it cannot be
   mistaken for finished artwork in review. */
.rv-fr__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  aspect-ratio: 1475 / 1199;
  background: #ffffff;
  border: 1px dashed var(--rv-border);
  border-radius: var(--rv-radius-card);
  color: var(--rv-muted);
  font-size: var(--rv-fs-body);
  line-height: 1.5;
  text-align: center;
}

/* Tablet and down: one column, copy above media on EVERY row. The alternation
   only reads as alternation when the two sides sit side by side. */
@media (max-width: 1024px) {
  .rv-fr__row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .rv-fr__row--flip .rv-fr__media {
    order: 0;
  }
  .rv-fr__row + .rv-fr__row {
    margin-top: 48px;
  }
  .rv-fr__desc {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .rv-fr {
    padding: 48px 20px 56px;
  }
  .rv-fr__heading {
    margin-bottom: 32px;
    max-width: none;
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.rv-faq {
  --rv-navy: #14284d;
  --rv-muted: #4c6389;
  --rv-rule: #dbe3ef;
  --rv-focus: #1f3965;

  background: #ffffff;
  padding: 64px 24px 72px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.rv-faq__inner {
  max-width: 900px;
  margin-inline: auto;
}
.rv-faq__heading {
  margin: 0 0 32px;
  color: var(--rv-navy);
  font-size: var(--rv-fs-h2);
  font-weight: var(--rv-fw-h2);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.rv-faq__item {
  border-top: 1px solid var(--rv-rule);
}
.rv-faq__item:last-of-type {
  border-bottom: 1px solid var(--rv-rule);
}
.rv-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* 20px either side of a ~24px line clears the 44px touch target. */
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
  color: var(--rv-navy);
  font-size: var(--rv-fs-title);
  font-weight: var(--rv-fw-title);
  line-height: 1.3;
}
.rv-faq__q::-webkit-details-marker {
  display: none;
}
.rv-faq__q:focus-visible {
  outline: 2px solid var(--rv-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Chevron drawn from two borders rather than an icon file, so it inherits the
   heading colour and needs no extra request. */
.rv-faq__chevron {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border-right: 2px solid var(--rv-navy);
  border-bottom: 2px solid var(--rv-navy);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.24s ease;
}
.rv-faq__item[open] .rv-faq__chevron {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.rv-faq__a {
  padding: 0 0 22px;
  color: var(--rv-muted);
  font-size: var(--rv-fs-body);
  font-weight: 400;
  line-height: 1.7;
}
/* base.min.css resets ol/ul to list-style:none, and the list-decimal/list-disc
   utilities only exist in the dev-only sheet — so restate the markers here. */
.rv-faq__a ol,
.rv-faq__a ul {
  margin: 8px 0;
  padding-left: 1.25rem;
}
.rv-faq__a ol {
  list-style: decimal;
}
.rv-faq__a ul {
  list-style: disc;
}

@media (prefers-reduced-motion: reduce) {
  .rv-faq__chevron {
    transition: none;
  }
}

@media (max-width: 640px) {
  .rv-faq {
    padding: 48px 20px 56px;
  }
  .rv-faq__heading {
    margin-bottom: 24px;
  }
}
