/* =========================================================
   Academic page (release). Loaded after style.css.
   Plans are never colour-coded: neutral cards, grey pills.
   Violet appears only where the Papers & Labels focus is meant.
   ========================================================= */

/* Shared section head */
.ac-head { text-align: center; max-width: 60ch; margin: 0 auto 3rem; }
.ac-head .badge { margin-bottom: 1rem; }
.ac-head p { font-size: 1.125rem; line-height: 1.6; color: #64748B; margin-top: 0.75rem; }

/* Hero */
.ac-hero { padding-top: 6rem; padding-bottom: 0; overflow: hidden; }
.ac-hero-copy { text-align: center; max-width: 64ch; margin: 0 auto; }
.ac-hero-copy .badge { margin-bottom: 1.5rem; }
.ac-hero-copy h1 { color: #fff; margin-bottom: 1.25rem; }
.section-dark .ac-hero-copy .text-lg { color: #CBD5E1; margin: 0 auto 2rem; max-width: 52ch; }
.ac-hero-ctas { justify-content: center; }
.ac-hero-ctas .btn-ghost-white { color: #fff; border-color: rgba(255,255,255,.5); }
.section-dark .ac-hero-note { color: #94A3B8; font-size: 0.9375rem; margin: 1.25rem 0 0; }
.ac-hero-shot { max-width: 1040px; margin: 3.5rem auto 0; border-radius: 14px 14px 0 0; border-bottom: 0; }

/* Screenshot frame */
.ac-shot {
  margin: 0; overflow: hidden; border-radius: 12px;
  border: 1px solid #E2E8F0; background: #F8FAFC;
  box-shadow: 0 16px 48px rgba(15,23,42,.10);
}
.ac-shot img { display: block; width: 100%; height: auto; }
.section-dark .ac-shot { border-color: #334155; box-shadow: 0 -8px 60px rgba(0,0,0,.35); }

/* Trial */
.ac-trial {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  max-width: 880px; margin: 0 auto;
}
.ac-trial-card {
  background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 2rem;
}
.ac-trial-card--main { border-color: #CBD5E1; box-shadow: 0 12px 32px rgba(15,23,42,.08); }
.ac-icon { color: #475569; margin-bottom: 1rem; }
.ac-trial-card .ac-trial-who { font-size: 0.875rem; font-weight: 600; color: #64748B; margin: 0; }
.ac-trial-card .ac-trial-what {
  font-family: var(--font-display); font-size: 2.25rem; line-height: 1.15; color: #0F172A; margin: 0.25rem 0 0.75rem;
}
.ac-trial-card .ac-trial-how { font-size: 0.9375rem; line-height: 1.6; color: #64748B; margin: 0; }
.ac-trial-foot { text-align: center; color: #64748B; font-size: 0.9375rem; margin: 2rem 0 0; }
.ac-trial-foot a { color: #0F172A; text-decoration: underline; text-underline-offset: 2px; }

/* Research features: one idea per row */
.ac-features-section { background: #fff; }
.ac-feature {
  display: grid; grid-template-columns: 4fr 7fr; gap: 3.5rem; align-items: center;
  max-width: 1160px; margin: 0 auto;
}
.ac-feature + .ac-feature { margin-top: 5rem; }
.ac-feature--flip { grid-template-columns: 7fr 4fr; }
.ac-feature--flip .ac-feature-copy { order: 2; }
.ac-feature--flip .ac-feature-media { order: 1; }
.ac-feature-media { min-width: 0; }
.ac-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #64748B; margin-bottom: 0.75rem;
}
.ac-eyebrow--papers { color: #7C3AED; } /* Papers & Labels focus */
.ac-feature-copy h3 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  line-height: 1.2; color: #0F172A; margin: 0 0 0.75rem;
}
.ac-feature-copy p { font-size: 1.0625rem; line-height: 1.65; color: #64748B; margin: 0; max-width: 42ch; }
.ac-feature .anim-embed.embed-card { border: 1px solid #E2E8F0; }

/* The animations reflow to a tall layout under 600px of iframe width,
   so stack before the media column gets that narrow. */
@media (max-width: 1100px) {
  .ac-feature, .ac-feature--flip { grid-template-columns: 1fr; gap: 1.75rem; max-width: 760px; }
  .ac-feature--flip .ac-feature-copy, .ac-feature--flip .ac-feature-media { order: 0; }
  .ac-feature + .ac-feature { margin-top: 3.5rem; }
  .ac-feature-copy p { max-width: 60ch; }
}

/* New in this release */
.ac-lang-embed { padding-bottom: 25%; max-width: 1040px; margin: 0 auto; border: 1px solid #E2E8F0; background: #F8FAFC; }
.ac-lang-list { text-align: center; font-size: 0.875rem; color: #64748B; margin: 1rem 0 0; }
.ac-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  max-width: 1040px; margin: 3.5rem auto 0;
}
.ac-tile {
  margin: 0; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
}
.ac-tile-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #F8FAFC; border-bottom: 1px solid #E2E8F0; }
.ac-tile-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Word: zoom into the answer's action row and the German follow-up */
.ac-tile-media--word img { width: 333%; height: auto; max-width: none; object-fit: fill; transform: translate(-31%, -52%); }
/* Mobile answer: show the top of the phone screen, centred */
.ac-tile-media--mobile { display: flex; justify-content: center; align-items: flex-start; padding-top: 1.25rem; }
.ac-tile-media--mobile img {
  width: 58%; height: auto; object-fit: fill; border-radius: 14px 14px 0 0;
  border: 1px solid #E2E8F0; border-bottom: 0; box-shadow: 0 8px 24px rgba(15,23,42,.10);
}
/* Dark mode: the same screen, light on the left, dark on the right */
.ac-split img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.ac-split .ac-split-dark { clip-path: inset(0 0 0 50%); }
.ac-split::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgba(15,23,42,.12);
}
.ac-tile figcaption { padding: 1.25rem 1.5rem 1.5rem; font-size: 0.9375rem; line-height: 1.55; color: #64748B; }
.ac-tile figcaption strong { display: block; font-size: 1rem; font-weight: 600; color: #0F172A; margin-bottom: 0.25rem; }

/* Plan */
.ac-plan-section { background: #fff; }
.ac-controls {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem;
  margin: 0 auto 2rem;
}
/* pricing controls from style.css are styled for dark bands; restyle for a light one */
.ac-controls .pr-billing { background: #F8FAFC; border-color: #E2E8F0; }
.ac-controls .pr-billing-label { color: #94A3B8; }
.ac-controls .pr-billing-label.is-active { color: #0F172A; }
.ac-controls .pr-switch { background: #CBD5E1; }
.ac-controls .pr-switch.annual { background: var(--blue); }
.ac-controls .pr-save { background: #F1F5F9; color: #475569; }
.ac-controls .pr-currency { background: #F8FAFC; border-color: #E2E8F0; }
.ac-controls .pr-currency button { color: #64748B; }
.ac-controls .pr-currency button:hover { color: #0F172A; }
.ac-controls .pr-currency button[aria-pressed="true"] { background: #0F172A; color: #fff; }
.ac-controls .pr-billing button:focus-visible,
.ac-controls .pr-currency button:focus-visible { outline-color: var(--blue); }
.ac-plan-card { margin-top: 0; box-shadow: 0 12px 32px rgba(15,23,42,.06); }

.ac-all { max-width: 920px; margin: 1rem auto 0; border: 1px solid #E2E8F0; border-radius: 12px; background: #F8FAFC; }
.ac-all summary {
  cursor: pointer; list-style: none; padding: 1rem 1.5rem; font-size: 0.9375rem; font-weight: 600; color: #0F172A;
  display: flex; align-items: center; justify-content: space-between;
}
.ac-all summary::-webkit-details-marker { display: none; }
.ac-all summary::after { content: '+'; font-size: 1.25rem; font-weight: 400; color: #64748B; }
.ac-all[open] summary::after { content: '\2212'; }
.ac-all-list {
  list-style: none; margin: 0; padding: 0 1.5rem 1.5rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 2rem;
}
.ac-all-list li { position: relative; padding-left: 1.25rem; font-size: 0.9375rem; line-height: 1.5; color: #334155; }
.ac-all-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: #94A3B8; }

.ac-labs {
  max-width: 920px; margin: 2.5rem auto 0; padding: 2rem;
  border: 1px solid #E2E8F0; border-radius: 16px; background: #fff;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem 2.5rem; align-items: center;
  scroll-margin-top: 96px;
}
.ac-labs-copy h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; color: #0F172A; margin: 0 0 0.5rem; }
.ac-labs-copy p { font-size: 0.9375rem; line-height: 1.6; color: #64748B; margin: 0; }
.ac-labs-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ac-labs-facts li { border-left: 2px solid #E2E8F0; padding-left: 1rem; }
.ac-labs-facts strong { display: block; font-size: 1rem; font-weight: 600; color: #0F172A; }
.ac-labs-facts span { display: block; font-size: 0.875rem; color: #64748B; margin-top: 0.25rem; }
.ac-labs-facts a, .ac-labs-note a { color: #0F172A; text-decoration: underline; text-underline-offset: 2px; }
.ac-labs .ac-labs-note { grid-column: 1 / -1; margin: 0; padding-top: 1.25rem; border-top: 1px solid #E2E8F0; font-size: 0.875rem; color: #64748B; }

@media (max-width: 900px) {
  .ac-tiles { grid-template-columns: 1fr; max-width: 520px; }
  .ac-labs { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ac-hero { padding-top: 4rem; }
  .ac-hero-shot { margin-top: 2.5rem; }
  .ac-trial { grid-template-columns: 1fr; }
  .ac-trial-card { padding: 1.5rem; }
  .ac-trial-card .ac-trial-what { font-size: 1.875rem; }
  .ac-all-list { grid-template-columns: 1fr; }
  .ac-labs { padding: 1.5rem; }
  .ac-labs-facts { grid-template-columns: 1fr; }
  .ac-head { margin-bottom: 2rem; }
}
@media (max-width: 480px) {
  .ac-controls .pr-currency button { min-width: 0; padding: 7px 9px; }
}
