/* Soft Dialogue: base and shared components for redesigned pages.
   Loaded only by templates that opt out of the legacy stylesheet. */

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

html:has(body.sd-page) {
  background: var(--sd-ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.sd-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--sd-ink);
  background: var(--sd-ground);
  font: 400 17px/1.95 var(--sd-font-fa);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.sd-page :lang(en), .sd-page :lang(de), .sd-page :lang(fr), .sd-page :lang(tr) { font-family: var(--sd-font-latin); }

/* Faint grain over the whole ground (portal material). */
body.sd-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .45;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .2  0 0 0 0 .28  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Element defaults use :where() so every component class wins without fighting specificity. */
:where(.sd-page) :where(h1, h2, h3, h4, p, figure, dl, dd, ol, ul) { margin: 0; }
:where(.sd-page) :where(h1, h2, h3) { text-wrap: balance; }
:where(.sd-page) :where(p) { text-wrap: pretty; }
:where(.sd-page) :where(img) { display: block; max-width: 100%; height: auto; }
:where(.sd-page) :where(a) { color: inherit; }
:where(.sd-page) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.sd-page) :where(fieldset) { min-width: 0; margin: 0; padding: 0; border: 0; }
:where(.sd-page) :where(legend) { padding: 0; }
.sd-page main { display: block; position: relative; z-index: 2; }
.sd-page .sd-site { position: relative; z-index: 2; }
.sd-page .sd-footer, .sd-page .sd-header { z-index: 30; }
.sd-page .sd-footer { z-index: 2; }

.sd-wrap {
  width: 100%;
  max-width: var(--sd-wrap);
  margin-inline: auto;
  padding-inline: var(--sd-gutter);
}

.sd-section { position: relative; padding-block: clamp(72px, 9vw, 136px); }
.sd-section + .sd-section { padding-top: clamp(24px, 4vw, 56px); }
.sd-section__head { display: grid; gap: 12px; max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.sd-section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: none;
}
.sd-h2 { font-size: clamp(28px, 1.2rem + 1.6vw, 42px); font-weight: 780; line-height: 1.35; color: var(--sd-ink); }
.sd-h3 { font-size: 21px; font-weight: 700; line-height: 1.55; }
.sd-section__lede { max-width: 34em; color: var(--sd-ink-2); font-size: clamp(17px, 1rem + .3vw, 19px); line-height: 1.85; }

.sd-editorial-media { display: grid; gap: 10px; min-width: 0; }
.sd-editorial-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--sd-r-l); background: var(--sd-ground-2); }
.sd-editorial-media figcaption { color: var(--sd-ink-2); font-size: 14px; }
.sd-about__image { margin-bottom: clamp(28px, 4vw, 48px); }
.sd-closing__image { width: clamp(180px, 18vw, 250px); }
@media (max-width: 1079px) {
  .sd-closing__image { width: min(100%, 440px); }
}

/* Gel material (design system §7.3) ------------------------------------------ */

.sd-gel,
.sd-bubble,
.sd-chip[aria-pressed="true"],
.sd-langtile,
.sd-o--gel,
.sd-person__drop,
.sd-step__bead {
  background:
    linear-gradient(to bottom, rgb(255 255 255 / .3), transparent 46%),
    radial-gradient(130% 110% at var(--sd-light-x) 0%, var(--g-hi), var(--g-base) 58%, var(--g-deep));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .5),
    inset 0 -8px 16px -6px rgb(43 27 42 / .32),
    0 10px 22px -12px var(--g-shadow);
}

/* Speech bubble: the brand object -------------------------------------------- */

.sd-bubble {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 440 / 330;
  padding-bottom: 12%;
  color: var(--g-on);
  -webkit-mask: url("../brand/bubble-rtl.06e0c6caa495.svg") center / 100% 100% no-repeat;
  mask: url("../brand/bubble-rtl.06e0c6caa495.svg") center / 100% 100% no-repeat;
}
.sd-bubble[data-dir="ltr"] {
  -webkit-mask-image: url("../brand/bubble-ltr.58c8c725f235.svg");
  mask-image: url("../brand/bubble-ltr.58c8c725f235.svg");
}
.sd-bubble__word { position: relative; line-height: 1.1; font-weight: 800; letter-spacing: 0; }
.sd-bubble__word:lang(en), .sd-bubble__word:lang(de), .sd-bubble__word:lang(fr), .sd-bubble__word:lang(tr) { font-weight: 650; letter-spacing: -.04em; }
.sd-bubble--small { width: 92px; font-size: 34px; }
.sd-speech, .sd-bubble-shadow { filter: drop-shadow(0 22px 24px rgb(43 27 42 / .22)) drop-shadow(0 4px 6px rgb(43 27 42 / .12)); }

/* Hidden always wins over component display rules. */
:where(.sd-page, .sd-header, .sd-sheet, .sd-search, .sd-notices, .sd-bar, .sd-footer) [hidden] { display: none !important; }

/* Typing dots: the mark's three circles as "typing…" */
.sd-typing { display: inline-flex; gap: 7px; }
.sd-typing i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5d435a, #2b1b2a 65%);
  opacity: .25;
  transition: opacity .25s var(--sd-ease-ui);
}
.sd-typing.is-typing i { opacity: 1; animation: sd-typing 0.9s var(--sd-ease-io) infinite; }
.sd-typing.is-typing i:nth-child(2) { animation-delay: .12s; }
.sd-typing.is-typing i:nth-child(3) { animation-delay: .24s; }
@keyframes sd-typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

/* Chips -------------------------------------------------------------------- */

.sd-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 16px;
  padding-inline-start: 12px;
  border: 0;
  border-radius: 999px;
  color: var(--sd-ink);
  background: rgb(255 250 249 / .75);
  box-shadow: var(--sd-sh-1), inset 0 0 0 1px var(--sd-line);
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: transform .45s var(--sd-ease-spring), box-shadow .25s var(--sd-ease-ui), color .2s, background-color .2s;
}
.sd-chip:not([aria-pressed="true"]):hover { background: var(--sd-paper); box-shadow: var(--sd-sh-2), inset 0 0 0 1px var(--sd-line-2); }
.sd-chip:active { transform: scale(.95, .88); transition-duration: .12s; }
.sd-chip__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--g-hi), var(--g-base) 60%, var(--g-deep));
  box-shadow: inset 0 -2px 3px rgb(0 0 0 / .2);
}
.sd-chip[aria-pressed="true"] { color: var(--g-on); }
.sd-chip[aria-pressed="true"] .sd-chip__dot { background: rgb(255 255 255 / .85); box-shadow: none; }

.sd-langchip { display: inline-flex; align-items: center; gap: 6px; color: var(--g-ink); font-weight: 650; }
.sd-langchip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--g-hi), var(--g-base) 60%, var(--g-deep));
}

/* Availability tag: neutral pill, coloured glyph (IA §12.5) */
.sd-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--sd-ink-2);
  background: var(--sd-ground);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.sd-state .sd-icon { width: 16px; height: 16px; }
.sd-state[data-state="open"] .sd-icon { color: #326a2d; }
.sd-state[data-state="few"] { color: #6d3d00; background: #fdf0d9; }
.sd-state[data-state="few"] .sd-icon { color: #995600; }
.sd-state[data-state="waitlist"] .sd-icon { color: #26499b; }
.sd-state[data-state="soon"] .sd-icon { color: var(--sd-ink-3); }
.sd-state[data-state="external"] .sd-icon { color: #326a2d; }
.sd-state[data-state="full"] .sd-icon { color: #a1241b; }
.sd-state[data-state="closed"] { color: var(--sd-ink-3); }
.sd-state[data-state="closed"] .sd-icon { color: var(--sd-ink-3); }

/* Class card ----------------------------------------------------------------- */

.sd-class {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--sd-r-l);
  background: var(--sd-paper);
  box-shadow: var(--sd-sh-1), inset 0 0 0 1px var(--sd-line);
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow .3s var(--sd-ease-ui), transform .45s var(--sd-ease-spring);
}
.sd-class:hover { box-shadow: var(--sd-sh-2), inset 0 0 0 1px var(--sd-line-2); }
.sd-class:active { transform: scale(.99, .985); transition-duration: .12s; }
.sd-class:focus-within { box-shadow: var(--sd-sh-2), 0 0 0 2.5px #365db8; }
.sd-class__cover { position: relative; aspect-ratio: 16 / 9; }
.sd-course-media { position: absolute; inset: 0; overflow: hidden; background: var(--g-soft, var(--sd-ground-2)); }
.sd-course-media > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sd-course-media > [data-media-fallback] { position: absolute; inset: 0; }
.sd-course-media > [hidden] { display: none; }
.sd-person__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.sd-class__level {
  position: absolute;
  inset-block-start: 14px;
  left: 14px; /* page inline-end in RTL; the badge itself is dir="ltr" */
  z-index: 2;
  padding: 2px 12px;
  border-radius: 999px;
  color: var(--g-ink);
  background: rgb(255 250 249 / .88);
  font: 650 14px/1.6 var(--sd-font-latin);
  letter-spacing: -.01em;
}
/* Availability sits on the cover, opposite the level badge, so every card foot keeps one height. */
.sd-class__cover > .sd-state {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  max-width: calc(100% - 96px);
  min-height: 28px;
  padding-inline: 10px 12px;
  background: rgb(255 250 249 / .92);
  box-shadow: 0 4px 12px -8px rgb(43 27 42 / .35);
  white-space: normal;
}
.sd-class__cover > .sd-state[data-state="few"] { background: #fdf0d9; }
[dir="ltr"] .sd-class__level { left: auto; right: 14px; }
.sd-class__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.sd-class__body > * { min-width: 0; }
.sd-class__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--sd-ink-3); font-size: 14px; line-height: 1.6; }
.sd-class__title { font-size: 19px; font-weight: 750; line-height: 1.55; }
.sd-class__link { text-decoration: none; }
.sd-class__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.sd-class__link:focus-visible { outline: none; }
.sd-class__facts { display: grid; gap: 4px; color: var(--sd-ink-2); font-size: 15px; line-height: 1.7; }
.sd-class__facts dd { display: flex; align-items: center; gap: 8px; }
.sd-class__facts .sd-icon { width: 17px; height: 17px; color: var(--sd-ink-3); }
.sd-class__teacher { position: relative; z-index: 4; text-decoration: none; }
.sd-class__teacher:hover { color: var(--sd-ink); text-decoration: underline; text-underline-offset: 4px; }
.sd-class__note { color: var(--g-ink); font-size: 14px; font-weight: 600; }
.sd-class__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: auto; /* the price lines up across a row of cards */
  padding-top: 14px;
  border-top: 1px solid var(--sd-line);
}
.sd-class__price { color: var(--sd-ink); font-size: 17px; font-weight: 750; }

/* Generative course object (design system §10.2) ----------------------------- */

.sd-object {
  --sd-shift: 0%;
  --sd-tilt: 0deg;
  --sd-fill: 45%;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at var(--sd-light-x) 0%, rgb(255 255 255 / .55), transparent 60%),
    var(--g-soft);
}
.sd-o { position: absolute; display: block; }
.sd-o--main {
  overflow: hidden;
  background: radial-gradient(circle at 35% 25%, rgb(255 255 255 / .95), rgb(255 255 255 / .62) 62%, color-mix(in srgb, var(--g-soft) 60%, #fff));
  box-shadow: inset 0 -6px 14px -6px rgb(43 27 42 / .2), inset 0 1px 0 #fff, 0 16px 30px -18px var(--g-shadow);
  transition: translate .6s var(--sd-ease-out);
}
.sd-o__liquid {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: var(--sd-fill);
  background: linear-gradient(to top, var(--g-deep), var(--g-base) 55%, var(--g-hi));
}
.sd-o__liquid::before {
  content: "";
  position: absolute;
  left: -50%;
  top: -14px;
  width: 200%;
  height: 40px;
  border-radius: 42%;
  background: var(--g-hi);
  transform: rotate(var(--sd-tilt));
}
.sd-o--a, .sd-o--b, .sd-o--back { transition: translate .7s var(--sd-ease-out); }
.sd-o--back { background: color-mix(in srgb, var(--g-soft) 55%, var(--g-hi) 20%); opacity: .55; border-radius: 50%; }
.sd-class:hover .sd-o--main { translate: 0 -5px; }
.sd-class:hover .sd-o--a { translate: 0 4px; }

/* Children: a level drop, a speech bubble and small drops. */
.sd-object--child .sd-o--back { width: 64%; aspect-ratio: 1; inset-inline-end: -14%; inset-block-start: -36%; }
.sd-object--child .sd-o--main { width: 34%; aspect-ratio: 1; border-radius: 50%; inset-inline-start: calc(30% + var(--sd-shift)); inset-block-start: 20%; }
.sd-object--child .sd-o--a {
  width: 21%;
  aspect-ratio: 1.3;
  inset-inline-start: calc(10% + var(--sd-shift) * -1);
  inset-block-start: 18%;
  border-radius: 46% 46% 44% 44% / 52% 52% 48% 48%;
  background: var(--sd-paper);
  box-shadow: var(--sd-sh-1);
}
.sd-object--child .sd-o--b { width: 9%; aspect-ratio: 1; border-radius: 50%; inset-inline-end: calc(18% + var(--sd-shift)); inset-block-end: 16%; }
.sd-object--child .sd-o--b,
.sd-object--teen .sd-o--b,
.sd-object--adult .sd-o--b {
  background: radial-gradient(circle at 35% 30%, var(--g-hi), var(--g-base) 60%, var(--g-deep));
  box-shadow: inset 0 -3px 6px -2px rgb(0 0 0 / .25), 0 8px 14px -8px var(--g-shadow);
}

/* Teens: a tilted pill, an arc, a small drop. */
.sd-object--teen .sd-o--back { width: 50%; aspect-ratio: 1; inset-inline-start: -10%; inset-block-end: -40%; }
.sd-object--teen .sd-o--main {
  width: 54%;
  height: 34%;
  border-radius: 999px;
  inset-inline-start: calc(22% + var(--sd-shift));
  inset-block-start: 34%;
  transform: rotate(calc(-14deg + var(--sd-tilt)));
}
.sd-object--teen .sd-o--a {
  width: 30%;
  aspect-ratio: 2;
  border-radius: 999px 999px 0 0;
  inset-inline-end: calc(8% + var(--sd-shift));
  inset-block-end: 0;
  background: var(--sd-paper);
  box-shadow: var(--sd-sh-1);
}
.sd-object--teen .sd-o--b { width: 8%; aspect-ratio: 1; border-radius: 50%; inset-inline-end: 22%; inset-block-start: 16%; }

/* Adults: a calm capsule under a large arc. */
.sd-object--adult .sd-o--back { display: none; }
.sd-object--adult .sd-o--a {
  width: 56%;
  aspect-ratio: 2;
  border-radius: 999px 999px 0 0;
  inset-inline-end: calc(-6% + var(--sd-shift));
  inset-block-end: 0;
  background: color-mix(in srgb, var(--sd-paper) 80%, var(--g-soft));
  box-shadow: var(--sd-sh-1);
}
.sd-object--adult .sd-o--main {
  width: 58%;
  height: 30%;
  border-radius: 999px;
  inset-inline-start: calc(12% + var(--sd-shift));
  inset-block-start: 30%;
}
.sd-object--adult .sd-o--b { width: 8%; aspect-ratio: 1; border-radius: 50%; inset-inline-start: calc(16% + var(--sd-shift)); inset-block-end: 14%; }

.sd-object--v1 .sd-o--main { inset-block-start: 26%; }
.sd-object--v2 .sd-o--a { inset-block-start: auto; }
.sd-object--child.sd-object--v2 .sd-o--a { inset-block-end: 14%; }

/* Accordion ------------------------------------------------------------------ */

.sd-accordion { display: grid; gap: 10px; }
.sd-accordion__item {
  border-radius: var(--sd-r-m);
  background: var(--sd-paper);
  box-shadow: var(--sd-sh-1), inset 0 0 0 1px var(--sd-line);
  transition: box-shadow .3s var(--sd-ease-ui);
}
.sd-accordion__item[open] { box-shadow: var(--sd-sh-2), inset 0 0 0 1px var(--sd-line-2); }
.sd-accordion__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 22px;
  border-radius: var(--sd-r-m);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}
.sd-accordion__item summary::-webkit-details-marker { display: none; }
.sd-accordion__chevron { width: 20px; height: 20px; color: var(--sd-ink-3); transition: transform .45s var(--sd-ease-out); }
.sd-accordion__item[open] .sd-accordion__chevron { transform: rotate(180deg); }
.sd-accordion__body { padding: 0 22px 20px; color: var(--sd-ink-2); max-width: 40em; }
.sd-accordion__body p + p { margin-top: 10px; }

/* Empty state ---------------------------------------------------------------- */

.sd-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 28px;
  border-radius: var(--sd-r-l);
  background: var(--sd-paper);
  box-shadow: var(--sd-sh-1), inset 0 0 0 1px var(--sd-line);
}
.sd-empty[hidden] { display: none; }
.sd-empty__drop {
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 50% 50% 46% 54% / 56% 52% 48% 44%;
  background: radial-gradient(120% 120% at 30% 10%, #bcdf90, #90c770 60%, #57914a);
  box-shadow: inset 0 -5px 10px -4px rgb(30 70 20 / .45);
}
.sd-empty__title { font-size: 19px; font-weight: 700; }
.sd-empty__text { color: var(--sd-ink-2); max-width: 32em; }

/* Checklist ------------------------------------------------------------------ */

.sd-checklist { display: grid; gap: 12px; padding: 0; list-style: none; }
.sd-checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--sd-ink-2); }
.sd-checklist .sd-icon { width: 22px; height: 22px; margin-top: 5px; color: #326a2d; }

/* Status pill (live term line) ----------------------------------------------- */

.sd-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  padding-inline-start: 12px;
  border-radius: 999px;
  color: var(--sd-ink-2);
  background: rgb(255 250 249 / .7);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9), var(--sd-sh-1);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}
.sd-status__dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #bcdf90, #57914a);
  box-shadow: 0 0 0 0 rgb(144 199 112 / .6);
  animation: sd-pulse 2.2s var(--sd-ease-ui) 3;
}
@keyframes sd-pulse { 100% { box-shadow: 0 0 0 10px rgb(144 199 112 / 0); } }

/* Teachers ------------------------------------------------------------------- */

.sd-people__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
.sd-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 16px;
  padding: 12px;
  padding-inline-end: 20px;
  border-radius: 999px;
  background: var(--sd-paper);
  box-shadow: var(--sd-sh-1), inset 0 0 0 1px var(--sd-line);
  text-decoration: none;
  transition: box-shadow .3s var(--sd-ease-ui), transform .45s var(--sd-ease-spring);
}
.sd-person:hover { box-shadow: var(--sd-sh-2), inset 0 0 0 1px var(--sd-line-2); }
.sd-person:active { transform: scale(.98, .95); transition-duration: .12s; }
.sd-person__drop {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--g-on);
  font-size: 27px;
  font-weight: 820;
  line-height: 1;
  transition: transform .55s var(--sd-ease-spring);
}
.sd-person:hover .sd-person__drop { transform: rotate(-8deg) scale(1.04); }
.sd-person__name { align-self: end; font-size: 17px; font-weight: 750; line-height: 1.5; }
.sd-person__langs { align-self: start; color: var(--sd-ink-3); font-size: 14px; line-height: 1.6; }

/* FAQ ------------------------------------------------------------------------ */

.sd-faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }

/* Closing (ink) --------------------------------------------------------------- */

.sd-closing {
  position: relative;
  z-index: 2;
  margin-top: clamp(40px, 6vw, 96px);
  color: var(--sd-on);
  background: var(--sd-night);
  border-radius: var(--sd-r-2xl) var(--sd-r-2xl) 0 0;
}
.sd-closing__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px clamp(24px, 4vw, 56px);
  padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--sd-night-2);
}
.sd-closing .sd-h2 { color: var(--sd-on); }
.sd-closing__copy { display: grid; gap: 8px; }
.sd-closing__copy p { max-width: 32em; color: #cbbcc8; }
.sd-closing__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sd-closing .sd-btn--ghost { color: var(--sd-on); }
.sd-closing .sd-bubble--small { color: var(--sd-ink); }
.sd-closing + .sd-footer, .sd-page .sd-site + * { margin-top: 0; }

@media (max-width: 1079px) {
  .sd-faq__grid { grid-template-columns: 1fr; }
  .sd-closing__inner { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 599px) {
  .sd-person__drop { width: 56px; height: 56px; font-size: 24px; }
  .sd-closing { border-radius: var(--sd-r-l) var(--sd-r-l) 0 0; }
  .sd-closing__actions .sd-btn { flex: 1 1 100%; }
  /* Full-width cards on a phone: a shorter cover keeps lists scannable. */
  .sd-class__cover { aspect-ratio: 2 / 1; }
}

/* Click-to-load video player ------------------------------------------------- */

.sd-player {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--sd-r-xl);
  overflow: hidden;
  background: var(--sd-night);
  box-shadow: var(--sd-sh-3);
}
.sd-player img, .sd-player iframe, .sd-player__fallback { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.sd-player__fallback {
  background:
    radial-gradient(60% 80% at 30% 20%, rgb(76 138 220 / .55), transparent 60%),
    radial-gradient(50% 70% at 80% 80%, rgb(244 90 84 / .45), transparent 60%),
    var(--sd-night);
}
.sd-player__play {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 26px 0 22px;
  border: 0;
  border-radius: 999px;
  color: var(--sd-ink);
  background: linear-gradient(#fffdfb, #f5ebe3);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 #e2d2c6, 0 12px 26px -8px rgb(0 0 0 / .55);
  font-weight: 700;
  cursor: pointer;
  transition: transform .45s var(--sd-ease-spring);
}
.sd-player__play:active { transform: scale(.95, .9); transition-duration: .12s; }
.sd-player__play .sd-icon { width: 22px; height: 22px; fill: currentColor; }
.sd-player__note { position: absolute; inset-block-end: 14px; color: rgb(255 248 247 / .8); font-size: 13px; }
.sd-player.is-playing .sd-player__play, .sd-player.is-playing .sd-player__note { display: none; }

/* Testimonials: speaker bubbles ---------------------------------------------------- */

.sd-voices__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; padding: 0; list-style: none; }
.sd-voice { display: grid; gap: 16px; height: 100%; }
.sd-voice__quote {
  position: relative;
  margin: 0;
  padding: 24px 26px;
  border-radius: 28px 28px 28px 8px;
  background: var(--sd-paper);
  box-shadow: var(--sd-sh-1), inset 0 0 0 1px var(--sd-line);
  font-size: 17px;
  line-height: 1.95;
}
[dir="rtl"] .sd-voice__quote { border-radius: 28px 28px 8px 28px; }
.sd-voice__who { display: grid; padding-inline-start: 14px; }
.sd-voice__who strong { font-weight: 750; }
.sd-voice__who span, .sd-voice__who time { color: var(--sd-ink-3); font-size: 14px; }

/* LTR mirror for forward arrows */
[dir="ltr"] .sd-forward { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  .sd-chip, .sd-class, .sd-o--main, .sd-o--a, .sd-o--b, .sd-o--back, .sd-accordion__chevron, .sd-person__drop, .sd-player__play { transition: none; }
  .sd-status__dot { animation: none; }
  .sd-person:hover .sd-person__drop { transform: none; }
  .sd-chip:active, .sd-class:active { transform: none; }
  .sd-typing.is-typing i { animation: none; }
}
[data-motion-level="none"] .sd-typing.is-typing i,
[data-motion-level="none"] .sd-status__dot { animation: none; }
