/* ============================================================================
   Pium — getpium.com
   Design system: Canva (primary) blended with Duolingo (fallback flavor).
   White canvas, violet #a370fc as THE brand color, weight-driven hierarchy,
   12px-rounded cards, flat surfaces separated by 1px borders and tints.
   Duolingo lime #a5ed6e appears ONLY as a "retention win / correct" semantic.
   Coral appears ONLY in tiny doses (wrong-answer / weak-topic semantics).
   Fonts: Poppins (headings) + Nunito Sans (body), Google Fonts.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. Tokens
---------------------------------------------------------------------------- */

:root {
  /* Brand */
  --violet: #a370fc;
  --violet-deep: #7a49d8;      /* hover / emphasis on white */
  --violet-soft: #f7f4fe;      /* tinted band + chips */
  --violet-wash: #efe8fe;      /* stronger tint: active chips, icon plates */

  /* Semantic accents (used sparingly, per system) */
  --win: #a5ed6e;              /* retention win / correct — Duolingo lime */
  --on-win: #111111;
  --miss: #ff7a6b;             /* wrong answer / weak topic — tiny doses */
  --miss-soft: #ffece9;

  /* Neutrals */
  --ink: #111111;
  --body: #2b2733;
  --muted: #6b6577;
  --line: rgba(17, 17, 17, 0.12);
  --line-soft: rgba(17, 17, 17, 0.07);
  --paper: #ffffff;
  --panel: #fbfaff;

  /* Dark band (the tutor section, aside-card--dark, footer) */
  --night: #221838;
  --night-raised: #2d2149;
  --night-line: rgba(255, 255, 255, 0.14);
  --night-text: #efeaf9;
  --night-muted: #b3a9c9;
  --violet-light: #c9aefe;     /* violet that reads on --night */

  /* Type */
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  /* Geometry */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --container: 74rem;

  /* Motion */
  --fast: 160ms ease;
  --slow: 320ms ease;
}

/* ----------------------------------------------------------------------------
   2. Reset & base
---------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.625rem);
  line-height: 1.12;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
}

h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.625rem);
}

h4 {
  font-size: 1.1875rem;
  margin-bottom: 8px;
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

a {
  color: var(--violet-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--violet-wash);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------------------------------
   3. Utilities
---------------------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  font-weight: 700;
  transition: top var(--fast);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--violet-deep);
  margin-bottom: 14px;
}

.eyebrow .mark {
  width: 17px;
  height: 17px;
  color: var(--violet);
  flex: none;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--body);
  max-width: 40rem;
}

.fine {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

.fine--center {
  text-align: center;
  max-width: 46rem;
  margin: 32px auto 0;
}

.mark {
  width: 20px;
  height: 20px;
  flex: none;
}

.span-all {
  grid-column: 1 / -1;
}

/* ----------------------------------------------------------------------------
   4. Buttons & links
---------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fast), color var(--fast), border-color var(--fast), transform var(--fast);
}

.btn:active {
  transform: translateY(1px);
}

.btn--lg {
  min-height: 52px;
  padding: 13px 30px;
  font-size: 1rem;
}

.btn--primary {
  background: var(--violet);
  color: #fff;
}

.btn--primary:hover {
  background: var(--violet-deep);
  color: #fff;
}

.btn--secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.btn--secondary:hover {
  border-color: var(--violet);
  color: var(--violet-deep);
}

/* On the violet callout band */
.btn--on-primary {
  background: #fff;
  color: var(--violet-deep);
}

.btn--on-primary:hover {
  background: var(--violet-soft);
  color: var(--ink);
}

.btn--on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--on-dark:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--violet-deep);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--fast), color var(--fast);
}

.text-link:hover {
  border-bottom-color: currentColor;
  color: var(--violet-deep);
}

.text-link .arrow {
  transition: transform var(--fast);
}

.text-link:hover .arrow {
  transform: translateX(3px);
}

.text-link--light {
  color: var(--violet-light);
}

.text-link--light:hover {
  color: #fff;
}

.link-row {
  margin-top: 32px;
}

/* ----------------------------------------------------------------------------
   5. Badges, pills & citation chips
---------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge--outline {
  border: 1.5px solid var(--violet);
  color: var(--violet-deep);
  align-self: flex-start;
}

.badge--accent {
  background: var(--violet-wash);
  color: var(--violet-deep);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.78125rem;
  font-weight: 600;
}

.pill svg {
  width: 13px;
  height: 13px;
}

/* Retention win — the ONLY place lime is allowed */
.pill--win {
  background: var(--win);
  color: var(--on-win);
}

.pill--exam {
  background: var(--violet-wash);
  color: var(--violet-deep);
}

.cite-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  margin: 0;
  border-radius: var(--radius-pill);
  background: var(--violet-soft);
  border: 1px solid var(--violet-wash);
  color: var(--violet-deep);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.cite-chip svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.cite-chip--none {
  background: transparent;
  border: 1.5px dashed var(--line);
  color: var(--muted);
}

/* ----------------------------------------------------------------------------
   6. Header & navigation
---------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark .mark {
  width: 26px;
  height: 26px;
  color: var(--violet);
}

.wordmark:hover {
  color: var(--violet-deep);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-inline: auto;
}

.nav__menu a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: background var(--fast), color var(--fast);
}

.nav__menu a:hover {
  background: var(--violet-soft);
  color: var(--violet-deep);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav__actions .text-link[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--violet);
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.nav__toggle:hover {
  border-color: var(--violet);
  color: var(--violet-deep);
}

/* ----------------------------------------------------------------------------
   7. Section scaffolding
---------------------------------------------------------------------------- */

.band {
  padding: 96px 0;
}

.band--tight {
  padding: 48px 0 96px;
}

.band--flush {
  padding-top: 0;
}

.band--soft {
  background: var(--violet-soft);
  border-block: 1px solid var(--line-soft);
}

.band--dark {
  background: var(--night);
  color: var(--night-text);
}

.band--dark h2,
.band--dark h3,
.band--dark h4 {
  color: #fff;
}

.band--dark .lede {
  color: var(--night-text);
}

.band--dark p {
  color: var(--night-text);
}

.band--dark .eyebrow {
  color: var(--violet-light);
}

.band--dark .eyebrow .mark {
  color: var(--violet-light);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 56px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lede {
  margin-inline: auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.split--top {
  align-items: start;
}

.split--wide-art {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.grid {
  display: grid;
  gap: 24px;
}

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

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ----------------------------------------------------------------------------
   8. Hero
---------------------------------------------------------------------------- */

.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(56rem 30rem at 88% -10%, var(--violet-wash) 0%, rgba(239, 232, 254, 0) 62%),
    var(--paper);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  margin-top: 32px;
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.hero__meta svg {
  width: 14px;
  height: 14px;
  color: var(--violet);
  flex: none;
}

/* ----------------------------------------------------------------------------
   9. App-frame mockup (hero flashcard)
---------------------------------------------------------------------------- */

.app-frame {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 20px 16px;
  box-shadow: 0 24px 60px -32px rgba(60, 30, 120, 0.25);
}

.app-frame__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.app-frame__deck {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.app-frame__deck .mark {
  color: var(--violet);
}

/* Progress ring */
.ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
}

.ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring__track {
  fill: none;
  stroke: var(--violet-wash);
  stroke-width: 5;
}

.ring__fill {
  fill: none;
  stroke: var(--violet);
  stroke-width: 5;
  stroke-linecap: round;
}

.ring b {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}

.ring b small {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--muted);
}

/* The flashcard itself */
.flashcard {
  padding: 24px 4px 8px;
}

.flashcard__label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.flashcard__q {
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 18px;
}

.flashcard__a {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.flashcard__a p {
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

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

.btn--reveal {
  width: 100%;
  background: var(--violet-wash);
  color: var(--violet-deep);
  border: none;
}

.btn--reveal:hover {
  background: var(--violet);
  color: #fff;
}

.grade-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.grade {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 52px;
  padding: 8px 6px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  transition: border-color var(--fast), background var(--fast), transform var(--fast);
}

.grade small {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
}

.grade:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* Wrong-answer coral: tiny, semantic, per system */
.grade--again {
  border-color: rgba(255, 122, 107, 0.6);
  color: #b3382a;
}

.grade--again:hover {
  background: var(--miss-soft);
  border-color: var(--miss);
}

.grade--good {
  border-color: var(--violet);
  color: var(--violet-deep);
}

.grade--good:hover {
  background: var(--violet-soft);
}

/* Correct/easy lime: the one Duolingo borrow */
.grade--easy {
  border-color: rgba(122, 196, 62, 0.7);
  color: #3d6b14;
}

.grade--easy:hover {
  background: var(--win);
  border-color: var(--win);
  color: var(--on-win);
}

.grade--easy:hover small,
.grade--again:hover small {
  color: inherit;
}

.app-frame__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  margin-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.app-frame__due {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.app-frame__caption {
  margin-top: 14px;
  font-size: 0.78125rem;
  line-height: 1.5;
  color: var(--muted);
}

.app-frame__caption b {
  color: var(--body);
}

/* ----------------------------------------------------------------------------
   10. Problem section
---------------------------------------------------------------------------- */

.rule-list {
  list-style: none;
}

.rule-list li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.rule-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.rule-list h4 {
  margin-bottom: 6px;
}

.rule-list p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.band--soft .rule-list li {
  border-top-color: rgba(17, 17, 17, 0.1);
}

.curve-figure {
  margin: 40px 0 0;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
}

.curve-figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.curve-figure__text {
  font-family: var(--font-body);
  fill: var(--muted);
  font-weight: 600;
}

.curve-figure .fine {
  margin-top: 10px;
}

/* ----------------------------------------------------------------------------
   11. Tutor chat mockup (dark band)
---------------------------------------------------------------------------- */

.chat {
  margin: 0;
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
}

.chat__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--night-line);
}

.chat__title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}

.chat__title .mark {
  width: 18px;
  height: 18px;
  color: var(--violet-light);
}

.chat__scope {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--night-muted);
}

.chat__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 0;
}

.msg {
  max-width: 88%;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.msg p {
  font-size: inherit;
  margin-bottom: 10px;
}

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

.msg--student {
  align-self: flex-end;
  background: var(--violet);
  color: #fff;
  border-bottom-right-radius: 4px;
  margin: 0;
}

.band--dark .msg--student {
  color: #fff;
}

.msg--tutor {
  align-self: flex-start;
  background: var(--paper);
  border-bottom-left-radius: 4px;
}

.msg--tutor p {
  color: var(--body);
}

.band--dark .msg--tutor p {
  color: var(--body);
}

.msg--tutor b {
  color: var(--ink);
}

.msg__cites {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

.chat__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
}

.chat__input {
  flex: 1;
  font-size: 0.875rem;
  color: var(--night-muted);
}

.chat__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
}

.chat .app-frame__caption {
  color: var(--night-muted);
}

.chat .app-frame__caption b {
  color: var(--night-text);
}

/* ----------------------------------------------------------------------------
   12. Cards (features, audience, outline)
---------------------------------------------------------------------------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--fast), transform var(--fast);
}

.card:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}

.card--feature p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--violet-soft);
  color: var(--violet-deep);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card--wide {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  background: var(--violet-soft);
  border-color: var(--violet-wash);
}

.card--wide > div {
  max-width: 46rem;
}

.card--wide p {
  color: var(--body);
}

.card--audience {
  background: var(--panel);
}

.card--audience p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.card--outline {
  background: transparent;
  border: 1.5px solid var(--line);
}

.card--outline p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.card--duo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--violet-soft);
  border-color: var(--violet-wash);
  padding: 32px;
}

.card--duo p {
  color: var(--body);
  margin-bottom: 16px;
}

.card--duo .text-link {
  margin-top: auto;
  align-self: flex-start;
}

/* ----------------------------------------------------------------------------
   13. Timeline (how it works)
---------------------------------------------------------------------------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  counter-reset: step;
  margin-bottom: 88px;
}

.timeline li {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
}

.timeline__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
}

.timeline h4 {
  margin-bottom: 6px;
}

.timeline p {
  font-size: 0.9rem;
  color: var(--muted);
}

.planner {
  margin-top: 0;
}

.planner h3 {
  margin-bottom: 16px;
}

.planner .rule-list {
  margin-top: 24px;
}

/* ----------------------------------------------------------------------------
   14. Study-plan calendar mockup
---------------------------------------------------------------------------- */

.planner-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 16px;
  box-shadow: 0 24px 60px -32px rgba(60, 30, 120, 0.22);
}

.planner-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.planner-card__title {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.week {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.week th {
  font-family: var(--font-head);
  font-size: 0.71875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
}

.week td {
  text-align: center;
  padding: 8px 4px 10px;
  border-radius: var(--radius);
}

.week td.is-today {
  background: var(--violet-soft);
  outline: 1.5px solid var(--violet);
  outline-offset: -1.5px;
}

.week td.is-rest b {
  color: var(--muted);
}

.week b {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 8px;
}

.week small {
  display: block;
  font-size: 0.65625rem;
  font-weight: 600;
  color: var(--muted);
}

.load {
  display: inline-flex;
  align-items: flex-end;
  width: 18px;
  height: 56px;
  border-radius: 6px;
  background: var(--violet-soft);
  overflow: hidden;
}

.load i {
  display: block;
  width: 100%;
  background: var(--violet);
  border-radius: 6px 6px 0 0;
}

.load--plan i {
  background: var(--violet-wash);
  border: 1.5px dashed var(--violet);
  border-bottom: none;
}

.planner-card__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--body);
}

.planner-card__topics li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.planner-card__topics b {
  font-family: var(--font-head);
  color: var(--ink);
}

.topic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

/* Semantic topic strength: lime = retained, violet = mid, coral = weak */
.topic-dot--strong {
  background: var(--win);
  border: 1px solid rgba(17, 17, 17, 0.25);
}

.topic-dot--mid {
  background: var(--violet);
}

.topic-dot--weak {
  background: var(--miss);
}

/* ----------------------------------------------------------------------------
   15. Pricing tiers
---------------------------------------------------------------------------- */

.tier {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.tier--featured {
  border: 2px solid var(--violet);
  box-shadow: 0 24px 56px -36px rgba(60, 30, 120, 0.35);
}

.tier__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tier__name {
  font-size: 1.1875rem;
  margin: 0;
}

.tier__price {
  font-family: var(--font-head);
  font-size: 2.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}

.tier__price small {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.tier__note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.tier__list {
  list-style: none;
  margin-bottom: 28px;
  display: grid;
  gap: 11px;
}

.tier__list li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.tier__list svg {
  width: 15px;
  height: 15px;
  margin-top: 4px;
  color: var(--violet);
  flex: none;
}

.tier .btn {
  margin-top: auto;
}

/* ----------------------------------------------------------------------------
   16. Credibility scoreboard
---------------------------------------------------------------------------- */

.score {
  display: grid;
  gap: 20px;
}

.score > div {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 20px;
  align-items: center;
}

.score dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.score dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--violet);
  grid-row: span 2;
  align-self: center;
}

.score p {
  font-size: 0.84375rem;
  color: var(--muted);
  margin: 0;
}

.credo {
  margin-top: 56px;
}

/* ----------------------------------------------------------------------------
   16b. FAQ accordion
---------------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 12px;
}

.faq__item {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color var(--fast);
}

.faq__item[open],
.faq__item:hover {
  border-color: var(--violet);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9843rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  border-right: 2px solid var(--violet-deep);
  border-bottom: 2px solid var(--violet-deep);
  transform: rotate(45deg) translateY(-3px);
  transition: transform var(--fast);
}

.faq__item[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.faq__item p {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ----------------------------------------------------------------------------
   17. Closing callout (violet band)
---------------------------------------------------------------------------- */

.callout {
  position: relative;
  overflow: hidden;
  background: var(--violet);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  color: #fff;
}

.callout .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.callout .eyebrow .mark {
  color: #fff;
  --pm-check: #a370fc;
}

.callout h2 {
  color: #fff;
  max-width: 34rem;
}

.callout p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
}

.callout__inner {
  position: relative;
  z-index: 1;
}

.callout__cards {
  position: absolute;
  right: -20px;
  bottom: -36px;
  width: min(300px, 40%);
  height: auto;
  color: #fff;
  opacity: 0.55;
  pointer-events: none;
}

/* ----------------------------------------------------------------------------
   18. Footer
---------------------------------------------------------------------------- */

.site-footer {
  background: var(--night);
  color: var(--night-text);
  padding: 72px 0 36px;
}

.site-footer .wordmark {
  color: #fff;
}

.site-footer .wordmark .mark {
  color: var(--violet-light);
}

.site-footer .wordmark:hover {
  color: var(--violet-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--night-line);
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--night-muted);
  margin-top: 16px;
  max-width: 26rem;
}

.footer__mail a {
  color: var(--violet-light);
  font-weight: 700;
  text-decoration: none;
}

.footer__mail a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__col h4 {
  color: #fff;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--night-muted);
  text-decoration: none;
}

.footer__col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  font-size: 0.8125rem;
  color: var(--night-muted);
}

.footer__base p {
  margin: 0;
}

/* ----------------------------------------------------------------------------
   19. Contact page
---------------------------------------------------------------------------- */

.page-head {
  padding: 72px 0 56px;
  background:
    radial-gradient(48rem 26rem at 90% -20%, var(--violet-wash) 0%, rgba(239, 232, 254, 0) 60%),
    var(--paper);
}

.page-head h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  max-width: 44rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
}

.form-card__title {
  font-size: 1.625rem;
  margin-bottom: 6px;
}

.form-card__sub {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

.form-card__privacy {
  margin-top: 16px;
}

.form-status {
  display: none;
  gap: 12px;
  align-items: flex-start;
  background: var(--win);
  color: var(--on-win);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 28px;
}

.form-status.is-shown {
  display: flex;
}

.form-status svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
}

.form-status p {
  margin-bottom: 4px;
  font-size: 0.9375rem;
}

.form-status .fine {
  color: rgba(17, 17, 17, 0.75);
  margin: 0;
}

.form-status a {
  color: inherit;
  font-weight: 700;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 7px;
}

.field .opt {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8125rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--fast), box-shadow var(--fast);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6.2 4 4 4-4' fill='none' stroke='%236b6577' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--muted);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-wash);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--miss);
}

.field .hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 7px 0 0;
}

.field .error {
  display: none;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #b3382a;
  margin: 7px 0 0;
}

.field .error.is-shown {
  display: block;
}

.aside-card {
  background: var(--violet-soft);
  border: 1px solid var(--violet-wash);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.aside-card + .aside-card {
  margin-top: 24px;
}

.aside-card h2 {
  font-size: 1.25rem;
  margin-bottom: 22px;
}

.contact-list {
  display: grid;
  gap: 22px;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 2px 14px;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  color: var(--violet-deep);
  grid-row: span 2;
  margin-top: 3px;
}

.contact-list dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.contact-list dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--body);
}

.contact-list dd a {
  font-weight: 700;
}

.aside-card--dark {
  background: var(--night);
  border-color: var(--night);
  color: var(--night-text);
}

.aside-card--dark h2 {
  color: #fff;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 18px;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--night-text);
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
}

.steps__note {
  color: var(--night-muted);
  margin-top: 24px;
}

/* ----------------------------------------------------------------------------
   20. Responsive
---------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav__menu {
    gap: 0;
  }

  .nav__menu a {
    padding: 9px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 960px) {
  .band {
    padding: 72px 0;
  }

  .split,
  .split--wide-art {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .split__art {
    order: 1;
  }

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

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 64px;
  }

  .duo {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  /* Collapse nav to a toggle menu */
  .nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line-soft);
  }

  .nav__menu a {
    display: block;
    padding: 12px 10px;
    font-size: 1rem;
  }

  .nav__actions {
    display: none;
    width: 100%;
    margin: 0;
    padding-bottom: 16px;
    justify-content: flex-start;
  }

  .site-header.is-open .nav__menu,
  .site-header.is-open .nav__actions {
    display: flex;
  }

  .callout__cards {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }

  .band {
    padding: 56px 0;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .lede {
    font-size: 1.09375rem;
  }

  .grid--3,
  .grid--4,
  .timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    width: 100%;
  }

  .card--wide {
    flex-direction: column;
    align-items: flex-start;
  }

  .grade-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .msg {
    max-width: 100%;
  }

  .week th {
    font-size: 0.625rem;
  }

  .week b {
    font-size: 0.8125rem;
  }

  .load {
    width: 12px;
    height: 44px;
  }

  .score > div {
    grid-template-columns: 1fr;
  }

  .score dd {
    grid-row: auto;
    order: -1;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer__base {
    flex-direction: column;
  }

  .aside-card {
    padding: 26px 22px;
  }
}
