/* Scrolls for Learning website.
   Colours, radii, shadows, motion and weights come from css/tokens/, which is a
   copy of app/src/renderer/tokens/ (scripts/sync-tokens.sh). This file adds the
   web type scale, the site's own palette (soft mesh gradients, pill buttons,
   large light headings) and page layout. */

@import url("tokens/colors.css");
@import url("tokens/typography.css");
@import url("tokens/spacing.css");
@import url("tokens/radius.css");
@import url("tokens/elevation.css");
@import url("tokens/motion.css");

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2-variations"), url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable-Italic.woff2") format("woff2-variations"), url("../fonts/Inter-Variable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-ui: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* Web type scale. Headings are large and light; body is the default size. */
  --site-text-hero: clamp(2.75rem, 1.7rem + 4.2vw, 4.75rem);
  --site-text-h1: clamp(2.25rem, 1.5rem + 2.8vw, 3.5rem);
  --site-text-h2: clamp(2rem, 1.4rem + 2vw, 3rem);
  --site-text-h3: 1.375rem;
  --site-text-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --site-text-body: 1.0625rem;
  --site-text-sm: 0.9375rem;

  /* Site palette. Brand purple from the app, plus a warm peach and a mint
     used only in gradients. */
  --site-bg: #fcfcfc;
  --site-ink: #1c1c22;
  --site-ink-2: #55555f;
  --site-ink-3: #8b8b95;
  --site-line: #ececf0;
  --site-card: #ffffff;
  --site-soft: #f3f3f6;
  --site-saffron: #ee8a3c;
  --site-peach: #f4a06a;
  --site-lavender: #b8bbf7;
  --site-dark-a: #3b3e5e;
  --site-dark-b: #1d1e33;

  --site-max: 1180px;
  --site-narrow: 760px;
  --site-gutter: clamp(16px, 4vw, 40px);
  --site-section: clamp(80px, 12vw, 168px);
  --site-radius: 24px;
  --ease-out-soft: cubic-bezier(.22, .8, .24, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--site-text-body);
  line-height: 1.6;
  color: var(--site-ink-2);
  background: var(--site-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--site-ink);
  font-weight: 450;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
h1 { font-size: var(--site-text-h1); font-weight: 400; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: var(--site-text-h2); font-weight: 400; letter-spacing: -0.03em; }
h1 em, h2 em { font-style: normal; color: var(--purple-700); }
h3 { font-size: var(--site-text-h3); letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 var(--space-4); }
h2 + p, h2 + .lead, h3 + p { margin-top: var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25em; }
li { margin-bottom: var(--space-2); }
strong { color: var(--site-ink); font-weight: 550; }

a { color: var(--link); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s; }
a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--purple-500); outline-offset: 3px; border-radius: 6px; }

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--site-soft);
  border: 1px solid var(--site-line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  color: var(--site-ink);
}

.skip-link {
  position: absolute; left: var(--space-4); top: -48px; z-index: 100;
  background: var(--site-ink); color: #fff;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill);
}
.skip-link:focus { top: var(--space-3); color: #fff; text-decoration: none; }

.container { width: 100%; max-width: var(--site-max); margin: 0 auto; padding: 0 var(--site-gutter); }
.container--narrow { max-width: calc(var(--site-narrow) + 2 * var(--site-gutter)); }
.section { padding: var(--site-section) 0 0; }
.section:last-of-type { padding-bottom: var(--site-section); }
.section__head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8); }
.section__head--row > div { max-width: 640px; }
@media (max-width: 760px) { .section__head--row { flex-direction: column; align-items: flex-start; } }
.lead { font-size: var(--site-text-lead); line-height: 1.6; color: var(--site-ink-2); }
.muted { color: var(--site-ink-3); }
.small { font-size: var(--site-text-sm); }

.eyebrow {
  display: inline-block; margin-bottom: var(--space-4);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--site-ink-3);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.is-scrolled,
.site-header--solid {
  background: rgba(252, 252, 252, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--site-line);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-6); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--site-ink); font-weight: 550; font-size: 1.1875rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--site-ink); text-decoration: none; }
.brand__mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(160deg, #8a86f9, var(--purple-500) 55%, #4a45d6); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.brand__mark svg { width: 17px; height: 17px; }
.brand__sub { font-weight: 400; color: var(--site-ink-3); }
.nav { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.nav a { color: var(--site-ink); padding: 8px 14px; border-radius: var(--radius-pill); font-size: 0.9375rem; font-weight: 450; }
.nav a:hover { background: rgba(28, 28, 34, .05); text-decoration: none; color: var(--site-ink); }
.nav a[aria-current="page"] { color: var(--purple-700); }
.nav .btn { margin-left: var(--space-3); }
.nav .btn--dark, .nav .btn--dark:hover { color: #fff; padding: 0 20px; }
.nav .btn--dark:hover { background: linear-gradient(180deg, var(--site-dark-a) 0%, var(--site-dark-b) 100%); }
@media (max-width: 760px) {
  .site-header__inner { flex-wrap: wrap; padding-top: var(--space-3); padding-bottom: var(--space-2); gap: var(--space-1) var(--space-4); min-height: 0; }
  .nav { margin-left: 0; width: calc(100% + 2 * var(--site-gutter)); margin-right: calc(-1 * var(--site-gutter)); padding-right: var(--site-gutter); overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 8px 12px; }
  .nav a:first-child { padding-left: 0; }
  .nav .btn { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 22px;
  border-radius: var(--radius-pill); border: 0;
  font: inherit; font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  position: relative; isolation: isolate; overflow: hidden; touch-action: manipulation;
  --gx: 50%; --gy: 50%;
  transition: transform .35s cubic-bezier(.2,0,0,1), box-shadow .35s cubic-bezier(.2,0,0,1), background-color .35s cubic-bezier(.2,0,0,1), color .35s cubic-bezier(.2,0,0,1);
}
/* Cursor-following spotlight: sits above the fill, below the label. --gx/--gy are set from site.js. */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle 80px at var(--gx) var(--gy), rgba(255,255,255,.16) 0%, transparent 100%);
  opacity: 0; transition: opacity .3s cubic-bezier(.2,0,0,1);
}
.btn:hover::before { opacity: 1; }
.btn--light::before, .btn--outline::before, .btn--white::before {
  background: radial-gradient(circle 80px at var(--gx) var(--gy), rgba(255,255,255,.9) 0%, transparent 100%);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.96); transition-duration: .15s; }
.btn--dark, .btn--primary {
  background: linear-gradient(180deg, var(--site-dark-a) 0%, var(--site-dark-b) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(29,30,51,.18);
}
.btn--dark:hover, .btn--primary:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 18px rgba(29,30,51,.22); }
@media (prefers-reduced-motion: reduce) { .btn, .btn::before { transition-duration: .01ms; } .btn:active { transform: none; } }
.btn--light, .btn--outline {
  background: #f2f2f4; color: var(--site-ink);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(0,0,0,.05);
}
.btn--light:hover, .btn--outline:hover { background: #fff; color: var(--site-ink); }
.btn--white { background: #fff; color: var(--site-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn--white:hover { color: var(--site-ink); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.btn[aria-disabled="true"] { background: var(--site-soft); color: var(--site-ink-3); box-shadow: none; cursor: default; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn__arrow { transition: transform .2s var(--ease-out-soft); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(98, 93, 245, .08); color: var(--purple-700);
  border-radius: var(--radius-pill); padding: 5px 14px;
  font-size: 0.875rem; font-weight: 500;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple-500); box-shadow: 0 0 0 4px rgba(98, 93, 245, .15); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(72px, 12vw, 148px) 0 0; text-align: center; margin-top: -72px; padding-top: calc(72px + clamp(64px, 10vw, 128px)); }
.hero__mesh { position: absolute; inset: 0 0 auto 0; height: min(860px, 100%); pointer-events: none; overflow: hidden; z-index: 0; }
.hero__mesh::before, .hero__mesh::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); }
.hero__mesh::before { left: 50%; top: -38%; width: 150%; height: 70%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(240, 126, 58, .95), rgba(245, 160, 104, .6) 55%, transparent); }
.hero__mesh::after { left: 50%; top: 18%; width: 120%; height: 62%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(170, 176, 250, .72), rgba(196, 200, 252, .35) 60%, transparent); }
.hero__mesh i { position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, var(--site-bg)); }
.hero > .container { position: relative; z-index: 1; }
.hero__tag { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__tag::before, .hero__tag::after { content: ""; width: 180px; height: 1px; background: linear-gradient(90deg, transparent, rgba(98, 93, 245, .45), transparent); }
.hero__tag span { font-size: 0.9375rem; font-weight: 450; color: var(--purple-700); }
.hero h1 { font-size: var(--site-text-hero); max-width: 15ch; margin: var(--space-6) auto var(--space-6); text-wrap: balance; }
.hero .lead { max-width: 36rem; margin: 0 auto var(--space-8); color: #3f3f4a; }
.hero .btn-row { justify-content: center; }
.hero__note { margin-top: var(--space-5); color: var(--site-ink-3); font-size: 0.875rem; }

/* ---------- "made for" strip ---------- */
.madefor { padding: clamp(56px, 8vw, 96px) 0 0; text-align: center; }
.madefor .eyebrow { margin-bottom: var(--space-6); }
.madefor ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.madefor li { margin: 0; font-size: 1.125rem; font-weight: 500; color: #9a9aa5; letter-spacing: -0.01em; }

/* ---------- product showcase ---------- */
.showcase { position: relative; padding-top: clamp(64px, 9vw, 112px); }
.showcase__glow { position: absolute; left: 50%; top: 22%; width: 110%; height: 75%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(150, 156, 250, .42), transparent); filter: blur(40px); pointer-events: none; }
.showcase .section__head { position: relative; }
.app {
  position: relative; max-width: 1040px; margin: 0 auto;
  background: var(--site-card); border: 1px solid #e4e4ec; border-radius: var(--site-radius);
  box-shadow: 0 30px 80px -30px rgba(60, 60, 140, .28), 0 0 0 6px rgba(255,255,255,.6);
  overflow: hidden;
}
.app__tabs { display: flex; gap: 2px; padding: 8px; background: #f7f7f9; border-bottom: 1px solid var(--site-line); overflow-x: auto; scrollbar-width: none; }
.app__tabs::-webkit-scrollbar { display: none; }
.app__tab {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border: 0; background: transparent; color: var(--site-ink-2);
  font: inherit; font-size: 0.9375rem; font-weight: 450;
  padding: 10px 16px; border-radius: 12px; cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.app__tab svg { width: 17px; height: 17px; flex: none; }
.app__tab:hover { color: var(--site-ink); background: rgba(0,0,0,.03); }
.app__tab[aria-selected="true"] { background: #fff; color: var(--purple-700); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04); }
.app__panel { padding: clamp(20px, 3.5vw, 40px); min-height: 400px; background: linear-gradient(180deg, #fff, #fbfbfe); }
.app__panel[hidden] { display: none; }
.app__panel.is-in { animation: panel-in .45s var(--ease-out-soft) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.app__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: var(--space-6); font-size: 0.875rem; color: var(--site-ink-3); }
.app__meta strong { font-size: 1.0625rem; color: var(--site-ink); font-weight: 550; }
.app__live { display: inline-flex; align-items: center; gap: 6px; color: #c2352f; font-weight: 500; }
.app__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e5484d; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }
.app__sample { margin-left: auto; font-size: 0.8125rem; color: var(--site-ink-3); }

.tline { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid #f1f1f4; }
.tline:first-of-type { border-top: 0; }
.tline time { font-size: 0.8125rem; color: var(--link); font-variant-numeric: tabular-nums; padding-top: 3px; }
.tline b { display: inline-block; font-weight: 550; color: var(--site-ink); font-size: 0.875rem; margin-bottom: 2px; }
.tline p { margin: 0; color: #3f3f4a; font-size: 0.9875rem; }
.term { background: rgba(98, 93, 245, .1); color: var(--purple-700); border-radius: 5px; padding: 0 4px; font-weight: 500; }

.notes { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 3vw, 40px); }
@media (max-width: 760px) { .notes { grid-template-columns: 1fr; } }
.notes h4 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: .12em; color: var(--site-ink-3); font-weight: 500; margin: 0 0 10px; }
.notes section + section { margin-top: var(--space-6); }
.notes ul { margin: 0; padding-left: 1.1em; color: #3f3f4a; font-size: 0.9875rem; }
.notes li { margin-bottom: 6px; }
.concept { display: flex; flex-wrap: wrap; gap: 8px; }
.concept span { background: var(--site-soft); border: 1px solid var(--site-line); border-radius: var(--radius-pill); padding: 5px 12px; font-size: 0.875rem; color: var(--site-ink); }
.qcard { background: linear-gradient(180deg, #f6f6ff, #fff); border: 1px solid #e7e7fb; border-radius: 16px; padding: 18px 20px; }
.qcard ol { margin: 0; padding-left: 1.2em; color: #3f3f4a; font-size: 0.9875rem; }
.qcard li { margin-bottom: 8px; }

.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } }
.glossary div { border: 1px solid var(--site-line); border-radius: 16px; padding: 16px 18px; background: #fff; }
.glossary dt { font-weight: 550; color: var(--site-ink); margin-bottom: 4px; }
.glossary dd { margin: 0; font-size: 0.9375rem; color: var(--site-ink-2); }

.ask { max-width: 640px; }
.ask__q { margin-left: auto; width: fit-content; max-width: 85%; background: var(--site-soft); border-radius: 18px 18px 4px 18px; padding: 12px 16px; color: var(--site-ink); font-size: 0.9875rem; }
.ask__a { margin-top: 16px; color: #3f3f4a; font-size: 0.9875rem; }
.ask__a p { margin-bottom: 10px; }
.ask__src { display: inline-flex; gap: 6px; align-items: center; font-size: 0.8125rem; color: var(--link); background: rgba(0, 107, 226, .06); border-radius: var(--radius-pill); padding: 3px 10px; }
.ask__box { margin-top: 28px; display: flex; align-items: center; gap: 10px; border: 1px solid #e4e4ec; border-radius: 16px; padding: 12px 12px 12px 18px; color: var(--site-ink-3); font-size: 0.9375rem; background: #fff; }
.ask__box span { flex: 1; }
.ask__send { width: 34px; height: 34px; border-radius: 50%; background: var(--purple-500); display: grid; place-items: center; }

/* ---------- scroll-filled statement ---------- */
.statement { padding-top: var(--site-section); text-align: center; }
.statement h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); max-width: 20ch; margin: 0 auto; line-height: 1.12; }
.statement .w { color: #cfcfd8; transition: color .25s; }
.statement .w.on { color: var(--site-ink); }
html:not(.js) .statement .w { color: var(--site-ink); }

/* ---------- expanding steps ---------- */
.flow { display: flex; gap: 12px; min-height: 380px; }
.flow__item {
  position: relative; flex: 1 1 0; min-width: 0;
  border: 1px solid var(--site-line); border-radius: var(--site-radius); background: var(--site-card);
  overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: inherit; padding: 0;
  transition: flex-grow .6s var(--ease-out-soft), border-color .3s, box-shadow .3s;
}
.flow__item:hover { border-color: #dcdce6; }
.flow__item.is-open { flex-grow: 3.2; cursor: default; box-shadow: 0 20px 50px -30px rgba(60,60,140,.3); }
.flow__inner { position: absolute; inset: 0; padding: 28px; display: flex; flex-direction: column; }
.flow__num { font-size: 0.875rem; color: var(--site-ink-3); font-variant-numeric: tabular-nums; }
.flow__title { margin-top: 10px; font-size: 1.5rem; color: var(--site-ink); letter-spacing: -0.02em; font-weight: 450; white-space: nowrap; }
.flow__body { margin-top: 14px; max-width: 30rem; color: var(--site-ink-2); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease-out-soft); }
.flow__art { margin-top: auto; height: 46%; border-radius: 16px; opacity: 0; transition: opacity .5s .1s; }
.flow__item.is-open .flow__body, .flow__item.is-open .flow__art { opacity: 1; transform: none; }
.flow__item:not(.is-open) .flow__title { writing-mode: vertical-rl; transform: rotate(180deg); margin-top: auto; align-self: flex-start; }
.flow__item:nth-child(1) .flow__art { background: radial-gradient(120% 90% at 20% 110%, rgba(244,160,106,.85), transparent 60%), radial-gradient(90% 80% at 90% 0%, rgba(184,187,247,.9), transparent 60%), #f6f3ff; }
.flow__item:nth-child(2) .flow__art { background: radial-gradient(110% 90% at 80% 110%, rgba(126,132,246,.85), transparent 60%), radial-gradient(80% 70% at 10% 0%, rgba(206,240,222,.95), transparent 60%), #f4f6ff; }
.flow__item:nth-child(3) .flow__art { background: radial-gradient(110% 90% at 50% 120%, rgba(98,93,245,.8), transparent 60%), radial-gradient(70% 70% at 90% 10%, rgba(246,186,146,.9), transparent 60%), #f7f5ff; }
.flow__item:nth-child(4) .flow__art { background: radial-gradient(110% 90% at 15% 115%, rgba(184,187,247,.95), transparent 60%), radial-gradient(80% 70% at 95% 0%, rgba(244,160,106,.7), transparent 60%), #f8f4ff; }
.flow__item:nth-child(5) .flow__art { background: radial-gradient(110% 90% at 85% 115%, rgba(244,160,106,.8), transparent 60%), radial-gradient(80% 70% at 5% 0%, rgba(150,156,250,.7), transparent 60%), #f6f3fb; }
.flow__art { position: relative; overflow: hidden; }
.flow__art .gl { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 12px; padding: 8px 12px; font-size: 0.875rem; color: var(--site-ink); box-shadow: 0 4px 16px rgba(0,0,0,.06); white-space: nowrap; }
.flow__art .gl--top { bottom: auto; top: 18px; left: auto; right: 18px; }
.flow__art .gl b { font-weight: 550; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .flow { flex-direction: column; min-height: 0; }
  .flow__item, .flow__item.is-open { flex: none; cursor: default; }
  .flow__inner { position: static; }
  .flow__item .flow__title, .flow__item:not(.is-open) .flow__title { writing-mode: horizontal-tb; transform: none; margin-top: 10px; white-space: normal; }
  .flow__body, .flow__art { opacity: 1; transform: none; }
  .flow__art { height: 140px; margin-top: 20px; }
}

/* ---------- split (text + visual) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin-top: var(--space-6); }
.checks li { position: relative; padding-left: 32px; margin-bottom: 14px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%; background: var(--purple-500); }
.checks li::after { content: ""; position: absolute; left: 7px; top: calc(0.2em + 4px); width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- illustrative app window ---------- */
.window { background: var(--site-card); border: 1px solid #e4e4ec; border-radius: var(--site-radius); box-shadow: 0 30px 70px -36px rgba(60,60,140,.3); overflow: hidden; }
.window__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: #f7f7f9; border-bottom: 1px solid var(--site-line); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; display: block; background: #dcdce2; }
.window__title { margin-left: var(--space-3); font-size: 0.875rem; color: var(--site-ink-3); font-weight: 450; }
.window__body { padding: 22px 24px; }
.window__label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-3); }
.window__label strong { font-size: 1rem; }
.ledger { list-style: none; padding: 0; margin: 0; }
.ledger li { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid #f1f1f4; margin: 0; }
.ledger li:first-child { border-top: 0; }
.ledger__box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #cfcfd8; margin-top: 2px; }
.ledger li.is-done .ledger__box { background: var(--purple-500); border-color: var(--purple-500); }
.ledger li.is-done .ledger__what { text-decoration: line-through; color: var(--site-ink-3); }
.ledger__what { color: var(--site-ink); font-weight: 500; font-size: 0.9375rem; line-height: 1.35; }
.ledger__who { display: block; color: var(--site-ink-3); font-weight: 400; margin-top: 3px; font-size: 0.8125rem; }
.ledger__when { font-size: 0.8125rem; color: var(--purple-700); background: rgba(98, 93, 245, .08); border-radius: var(--radius-pill); padding: 3px 10px; white-space: nowrap; font-weight: 500; }
.ledger__when:empty { display: none; }
.ledger__when--ask { color: #8a5300; background: #fff4e0; }
.ledger__kind { display: inline-block; margin-top: 4px; font-size: 0.75rem; letter-spacing: .04em; color: var(--site-ink-3); }

/* ---------- gradient feature cards ---------- */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid--2 { grid-template-columns: 1fr; } }
.card { background: var(--site-card); border: 1px solid var(--site-line); border-radius: var(--site-radius); padding: 28px; }
.card h3 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }
.fcard { display: flex; flex-direction: column; }
.fcard__art { height: 200px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 24px; position: relative; overflow: hidden; }
.fcard__art::after { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 120%, rgba(255,255,255,.12) 0 1px, transparent 1px 22px); }
.fcard__art svg { width: 56px; height: 56px; position: relative; z-index: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,.12)); }
.fcard__art--lavender { background: linear-gradient(170deg, #d6d8fb 0%, #9fa4f4 100%); }
.fcard__art--peach { background: linear-gradient(170deg, #fbd3b6 0%, #ee9560 100%); }
.fcard__art--mint { background: linear-gradient(170deg, #d4f0e1 0%, #8bc9a9 100%); }
.fcard p { color: var(--site-ink-2); }
.rows { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--site-line); }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; margin: 0; border-bottom: 1px solid var(--site-line); color: var(--site-ink); font-size: 0.9375rem; }
.rows li::after { content: "\2192"; color: #b9b9c3; transition: transform .2s var(--ease-out-soft), color .2s; }
.fcard:hover .rows li::after { color: var(--purple-500); }

/* ---------- privacy cards ---------- */
.pcard h3 { margin-bottom: var(--space-3); }
.pcard .checks { margin-top: var(--space-5); margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-size: 0.875rem; font-weight: 500; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .7; }
.chip--violet { background: #efefff; color: #4a45c8; }
.chip--green { background: #e9f8ef; color: #237a4b; }
.chip--peach { background: #fff1e7; color: #b25a1f; }
.chip--rose { background: #fdecf1; color: #b13c66; }
.strip { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
@media (max-width: 860px) { .strip { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--site-line); }
.faq details { border-bottom: 1px solid var(--site-line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); color: var(--site-ink); font-weight: 450; font-size: 1.125rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--site-soft); display: grid; place-items: center; font-size: 1.25rem; line-height: 1; color: var(--site-ink); font-weight: 300; transition: transform .3s var(--ease-out-soft), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: rgba(98, 93, 245, .12); color: var(--purple-700); }
.faq details > :not(summary) { margin-top: var(--space-3); margin-bottom: 0; max-width: 60ch; }
.faq details p + p { margin-top: var(--space-3); }

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; padding: clamp(56px, 9vw, 120px) clamp(24px, 5vw, 64px);
  text-align: center; color: #d9dafc;
  background: linear-gradient(180deg, #17182c 0%, #262849 45%, #4b4f98 78%, #8f93ec 100%);
}
.cta-panel::before { content: ""; position: absolute; inset: auto -10% -45% -10%; height: 80%; background: radial-gradient(closest-side, rgba(244, 160, 106, .55), transparent); filter: blur(30px); z-index: -1; }
.cta-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px); background-size: 28px 28px; opacity: .08; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); }
.cta-panel h2 { color: #fff; max-width: 18ch; margin: 0 auto; }
.cta-panel p { color: #c9cbf5; max-width: 34rem; margin: var(--space-5) auto var(--space-8); }
.cta-panel .btn-row { justify-content: center; }

/* ---------- page header (inner pages) ---------- */
.page-head { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
.page-head::before { content: ""; position: absolute; left: 50%; top: -60%; width: 120%; height: 120%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(184, 187, 247, .55), transparent 70%); filter: blur(40px); pointer-events: none; }
.page-head > .container { position: relative; }
.page-head p { margin-top: var(--space-5); margin-bottom: 0; }
.page-head .meta { color: var(--site-ink-3); font-size: var(--site-text-sm); margin-top: var(--space-3); }

/* ---------- draft banner (legal pages) ---------- */
.draft {
  background: #fff4f2; border: 1px solid #ffd6cf; border-radius: 16px;
  padding: var(--space-4) var(--space-5); margin-bottom: var(--space-8); color: #9c2024;
  font-size: var(--site-text-sm);
}
.draft strong { color: #9c2024; }
.todo { background: #f0fecb; border-radius: 4px; padding: 0 4px; font-weight: 500; color: var(--site-ink); }

/* ---------- prose (legal, support) ---------- */
.prose { padding: var(--space-8) 0 var(--site-section); }
.prose h2 { margin: clamp(48px, 6vw, 72px) 0 var(--space-4); font-size: 1.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: var(--space-8) 0 var(--space-3); font-size: 1.25rem; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 var(--space-6); font-size: var(--site-text-sm); border: 1px solid var(--site-line); border-radius: 16px; overflow: hidden; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--site-line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: #f7f7f9; color: var(--site-ink); font-weight: 550; }
.table-wrap { overflow-x: auto; }
.toc { background: var(--site-card); border: 1px solid var(--site-line); border-radius: 20px; padding: 20px 28px; margin-bottom: var(--space-10); }
.toc ol { margin: 0; columns: 2; column-gap: var(--space-8); }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.toc li { margin-bottom: var(--space-1); font-size: var(--site-text-sm); }

/* ---------- download ---------- */
.dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: var(--space-8); }
@media (max-width: 720px) { .dl { grid-template-columns: 1fr; } }
.dl__card { display: flex; flex-direction: column; gap: var(--space-2); }
.dl__card .btn { margin-top: var(--space-4); align-self: flex-start; }
.dl__meta { color: var(--site-ink-3); font-size: var(--site-text-sm); margin: 0; }

.callout { background: rgba(98, 93, 245, .06); border: 1px solid rgba(98, 93, 245, .14); border-radius: 16px; padding: 18px 22px; color: #2d2a7a; font-size: var(--site-text-sm); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: #2d2a7a; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 var(--space-10) 60px; margin: 0; }
.steps > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--site-line); color: var(--site-ink-2);
  display: grid; place-items: center; font-size: 0.875rem; font-variant-numeric: tabular-nums;
}
.steps > li::after { content: ""; position: absolute; left: 19.5px; top: 48px; bottom: var(--space-3); width: 1px; background: var(--site-line); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 6px 0 var(--space-2); }
.steps figure { margin: var(--space-4) 0 0; }
.steps figcaption { margin-top: var(--space-2); color: var(--site-ink-3); font-size: var(--site-text-sm); }

.cmd { display: flex; align-items: stretch; gap: 0; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #23243a, #17182a); margin: var(--space-4) 0; }
.cmd code { flex: 1; background: transparent; border: 0; color: #e7e7f5; padding: var(--space-4) var(--space-5); font-size: 0.9375rem; overflow-x: auto; white-space: nowrap; border-radius: 0; }
.cmd button { border: 0; border-left: 1px solid rgba(255, 255, 255, .1); background: transparent; color: #c9cbf5; font: inherit; font-size: var(--site-text-sm); font-weight: 500; padding: 0 var(--space-5); cursor: pointer; transition: background-color .2s; }
.cmd button:hover { background: rgba(255, 255, 255, .07); }

/* ---------- placeholder visuals ---------- */
.ph {
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(180deg, #f6f6ff, #fff);
  border: 1px dashed #c9c9f5;
  border-radius: 18px;
  color: var(--purple-700);
  padding: var(--space-6);
  font-size: var(--site-text-sm); font-weight: 500;
}
.ph--video { aspect-ratio: 16 / 9; border-radius: var(--site-radius); }
.ph--shot { aspect-ratio: 16 / 10; }
.ph small { display: block; margin-top: var(--space-1); font-weight: 400; color: var(--site-ink-3); }

/* ---------- changelog ---------- */
.release { display: grid; grid-template-columns: 180px 1fr; gap: var(--space-8); padding: var(--space-10) 0; border-top: 1px solid var(--site-line); }
.release:first-of-type { border-top: 0; padding-top: 0; }
@media (max-width: 720px) { .release { grid-template-columns: 1fr; gap: var(--space-3); } }
.release__ver { font-weight: 450; color: var(--site-ink); font-size: 1.5rem; letter-spacing: -0.02em; }
.release__date { color: var(--site-ink-3); font-size: var(--site-text-sm); }
.release h3 { margin-bottom: var(--space-3); }
.release h4 { margin: var(--space-6) 0 var(--space-2); font-size: 1rem; color: var(--site-ink); font-weight: 550; }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 0; background: linear-gradient(180deg, var(--site-bg), #f1f1f5); border-top: 1px solid var(--site-line); padding: clamp(48px, 6vw, 80px) 0 0; font-size: var(--site-text-sm); overflow: hidden; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-8); }
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--site-ink-3); font-weight: 500; margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--site-ink); }
.site-footer a:hover { color: var(--purple-700); }
.site-footer__fine { margin-top: var(--space-10); padding-top: var(--space-5); border-top: 1px solid var(--site-line); color: var(--site-ink-3); }
.footer-mark {
  margin: clamp(24px, 4vw, 48px) 0 0; text-align: center; line-height: .78;
  font-size: clamp(5rem, 22vw, 18rem); font-weight: 500; letter-spacing: -0.06em;
  background: linear-gradient(180deg, rgba(98, 93, 245, .9) 0%, rgba(184, 187, 247, .7) 45%, rgba(244, 160, 106, .35) 75%, transparent 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; pointer-events: none;
  margin-bottom: -0.12em;
}

/* ---------- reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out-soft), transform .9s var(--ease-out-soft); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .statement .w { color: var(--site-ink) !important; }
  .flow__item { transition: none; }
}

/* =====================================================================
   Scrolls for Courses: elements that belong to this product.
   ===================================================================== */

/* ---------- scroll flourish: a rolled-paper ornament, used over the hero and as a divider ---------- */
.flourish { display: block; width: 168px; height: auto; margin: 0 auto; color: var(--purple-700); opacity: .85; }
.flourish--divider { color: var(--site-ink-3); opacity: .6; width: 132px; }

/* ---------- hero: the fan-out ---------- */
.hero__lede { max-width: 38rem; }
.fan-wrap { position: relative; z-index: 1; padding: clamp(56px, 8vw, 96px) 0 0; }
.fan {
  display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1.08fr) 64px minmax(0, 1.2fr);
  align-items: stretch; max-width: 1120px; margin: 0 auto; text-align: left;
}
.fan__card {
  position: relative; background: var(--site-card); border: 1px solid #e6e3dc; border-radius: var(--site-radius);
  padding: 22px; box-shadow: 0 30px 70px -34px rgba(60, 50, 120, .3), 0 0 0 6px rgba(255, 255, 255, .55);
  display: flex; flex-direction: column; min-width: 0;
}
.fan__label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.8125rem; color: var(--site-ink-3); margin-bottom: 14px; }
.fan__label strong { color: var(--site-ink); font-weight: 550; font-size: 0.9375rem; }
.fan__sample { font-size: 0.75rem; color: var(--site-ink-3); }

.fan__card--rec { background: linear-gradient(170deg, #34365a 0%, #1b1c31 100%); border-color: #2c2e4d; color: #cfd0f2; }
.fan__card--rec .fan__label, .fan__card--rec .fan__label strong { color: #e9eaff; }
.fan__card--rec .fan__sample { color: #9a9cc8; }
.rec { display: inline-flex; align-items: center; gap: 8px; color: #ffb3a9; font-size: 0.8125rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff6a5c; animation: live 1.6s ease-in-out infinite; }
.wave { display: flex; align-items: center; gap: 3px; height: 92px; margin: auto 0 4px; }
.wave i { flex: 1; min-width: 2px; border-radius: 3px; background: linear-gradient(180deg, #f4a06a, #9fa4f4); height: var(--h, 40%); transform-origin: center; animation: wave 1.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes wave { 50% { transform: scaleY(.45); } }
.fan__who { margin-top: 14px; font-size: 0.875rem; line-height: 1.4; color: #b9bbe6; }
.fan__who b { display: block; color: #fff; font-weight: 550; }

.fan__link { position: relative; display: grid; place-items: center; }
.fan__link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(98, 93, 245, .35); }
.fan__link span { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid #dcdaf6; color: var(--purple-700); box-shadow: 0 2px 8px rgba(98, 93, 245, .18); }
.fan__link svg { width: 15px; height: 15px; }

.fan__notes h4 { margin: 0 0 8px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; color: var(--site-ink-3); font-family: var(--font-ui); }
.fan__notes ul { margin: 0 0 16px; padding-left: 1.1em; font-size: 0.9375rem; color: #3f3e48; line-height: 1.45; }
.fan__notes li { margin-bottom: 6px; }
.fan__tasks { margin-top: auto; border-top: 1px solid var(--site-line); padding-top: 14px; display: grid; gap: 8px; }
.fan__task { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.875rem; color: var(--site-ink); }
.fan__task em { font-style: normal; font-size: 0.75rem; color: var(--purple-700); background: rgba(98, 93, 245, .08); border-radius: var(--radius-pill); padding: 2px 9px; font-weight: 500; white-space: nowrap; }
.fan__task--p em { color: #237a4b; background: #e9f8ef; }

.ticket { display: flex; align-items: stretch; margin-bottom: 14px; border: 1px dashed #cfcbe9; border-radius: 14px; background: linear-gradient(180deg, #faf9ff, #fff); overflow: hidden; }
.ticket__main { flex: 1; padding: 10px 14px; min-width: 0; }
.ticket__main small { display: block; font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--site-ink-3); }
.ticket__main b { font-family: var(--font-mono); font-size: 1.0625rem; letter-spacing: .1em; color: var(--site-ink); font-weight: 600; }
.ticket__end { border-left: 1px dashed #cfcbe9; padding: 10px 14px; display: grid; align-content: center; font-size: 0.75rem; color: var(--site-ink-3); text-align: right; line-height: 1.3; }
.ticket__end b { color: var(--site-ink); font-weight: 550; font-size: 0.8125rem; }
.roster { list-style: none; margin: 0; padding: 0; }
.roster li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; margin: 0; border-top: 1px solid #f1efea; }
.roster li:first-child { border-top: 0; }
.roster__name { font-size: 0.9375rem; color: var(--site-ink); font-weight: 500; line-height: 1.2; }
.roster__bar { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: #eceaf5; overflow: hidden; }
.roster__bar i { display: block; height: 100%; width: var(--p, 50%); border-radius: 4px; background: linear-gradient(90deg, #8b87f8, var(--purple-500)); }
.roster__n { font-size: 0.8125rem; color: var(--site-ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.roster__more { margin-top: auto; padding-top: 10px; border-top: 1px solid #f1efea; font-size: 0.8125rem; color: var(--site-ink-3); }
.orb { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.orb--a { background: radial-gradient(circle at 30% 25%, #ffc79a, #ee8a3c 70%); }
.orb--b { background: radial-gradient(circle at 30% 25%, #c8caff, #6f6bf3 70%); }
.orb--c { background: radial-gradient(circle at 30% 25%, #b5ecd0, #3fa273 70%); }
.orb--d { background: radial-gradient(circle at 30% 25%, #ffc2d6, #d9578a 70%); }
.orb--e { background: radial-gradient(circle at 30% 25%, #bfe4fb, #4a9ad6 70%); }

@media (max-width: 960px) {
  .fan { grid-template-columns: 1fr; max-width: 520px; }
  .fan__link { height: 56px; }
  .fan__link::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed rgba(98, 93, 245, .35); }
  .fan__link svg { transform: rotate(90deg); }
  .wave { height: 64px; }
}

/* ---------- program types marquee ---------- */
.marquee { padding: clamp(56px, 8vw, 96px) 0 0; text-align: center; }
.marquee .eyebrow { margin-bottom: var(--space-6); }
.marquee__track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__row { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track:hover .marquee__row { animation-play-state: paused; }
.marquee__row ul { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0 7px; }
.marquee__row li { margin: 0; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 10px 20px; border: 1px solid var(--site-line); border-radius: var(--radius-pill); background: rgba(255,255,255,.7); font-size: 1rem; font-weight: 450; color: #6b6973; letter-spacing: -0.01em; }
.marquee__row li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--site-saffron); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .marquee__row { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .marquee__row ul[aria-hidden="true"] { display: none; }
  .wave i, .rec::before { animation: none; }
}

/* ---------- numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--site-line); border-bottom: 1px solid var(--site-line); margin-top: clamp(40px, 6vw, 72px); }
.stat { padding: clamp(24px, 3vw, 40px) clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--site-line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-weight: 400; font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); line-height: 1; letter-spacing: -0.03em; color: var(--site-ink); }
.stat b small { font-size: .45em; letter-spacing: -0.01em; color: var(--site-ink-3); margin-left: 4px; }
.stat span { display: block; margin-top: 14px; font-size: 0.9375rem; line-height: 1.5; color: var(--site-ink-2); max-width: 22ch; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--site-line); }
}

/* read-only badge on the participant window */
.app__ro { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 500; color: var(--purple-700); background: rgba(98, 93, 245, .08); border-radius: var(--radius-pill); padding: 3px 10px; }
.app__ro svg { width: 12px; height: 12px; }

/* ---------- program record ---------- */
.record { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.record::before, .record::after { content: ""; position: absolute; top: 14px; bottom: 14px; width: 26px; border-radius: 14px; z-index: 2; background: linear-gradient(90deg, #d9d4c8, #f3efe6 40%, #cfc9ba); box-shadow: 0 10px 24px -12px rgba(60, 50, 30, .45); }
.record::before { left: 0; }
.record::after { right: 0; }
.record__sheet { position: relative; z-index: 1; background: linear-gradient(180deg, #fffdf9, #fbf8f1); border: 1px solid #e8e2d4; border-radius: 12px; padding: clamp(20px, 3vw, 36px) clamp(20px, 3.4vw, 44px); box-shadow: 0 30px 70px -40px rgba(60, 50, 30, .35); }
.record__head { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.record__head strong { font-weight: 450; font-size: 1.375rem; color: var(--site-ink); letter-spacing: -0.015em; }
.record__head span { font-size: 0.875rem; color: var(--site-ink-3); }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.days::before { content: ""; position: absolute; left: 10px; right: 10px; top: 9px; border-top: 2px dashed #d8d1bf; }
.day { position: relative; padding: 34px 14px 0 0; margin: 0; list-style: none; }
.day::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--site-saffron); border: 4px solid #fbf8f1; box-shadow: 0 0 0 1px #e5dbc3; }
.day:nth-child(even)::before { background: var(--purple-500); }
.day small { display: block; font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--site-ink-3); }
.day h3 { font-family: var(--font-ui); font-size: 1rem; font-weight: 550; letter-spacing: -0.01em; line-height: 1.3; margin: 6px 0 4px; color: var(--site-ink); }
.day p { margin: 0 0 12px; font-size: 0.875rem; color: var(--site-ink-3); }
.day .tag { display: inline-block; margin: 0 6px 6px 0; font-size: 0.75rem; font-weight: 500; border-radius: var(--radius-pill); padding: 3px 10px; background: #efeade; color: #6a5c3a; }
.day .tag--ok { background: #e9f8ef; color: #237a4b; }
@media (max-width: 860px) {
  .record { padding: 0 16px; }
  .record::before, .record::after { width: 18px; }
  .days { grid-template-columns: 1fr; gap: 22px; }
  .days::before { left: 9px; right: auto; top: 10px; bottom: 10px; border-top: 0; border-left: 2px dashed #d8d1bf; }
  .day { padding: 0 0 0 36px; }
}

/* ---------- who gets what ---------- */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr; } }
.role { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--site-line); background: var(--site-card); }
.role .eyebrow { margin-bottom: var(--space-3); }
.role h3 { font-weight: 400; font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.375rem); letter-spacing: -0.02em; line-height: 1.12; }
.role > p { margin-top: var(--space-4); }
.role ul { list-style: none; padding: 0; margin: var(--space-6) 0 0; border-top: 1px solid currentColor; border-color: rgba(128,128,150,.28); }
.role li { margin: 0; padding: 14px 0 14px 30px; position: relative; border-bottom: 1px solid rgba(128,128,150,.2); font-size: 1rem; }
.role li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 14px; height: 8px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(.9); transform-origin: center; opacity: .7; }
.role--inst { color: #c9cbf5; background: linear-gradient(180deg, #1b1c31 0%, #2a2c52 55%, #4b4f98 130%); border-color: #2c2e4d; }
.role--inst h3, .role--inst strong { color: #fff; }
.role--inst .eyebrow { color: #9fa1d6; }
.role--inst > p { color: #c9cbf5; }
.role--inst::after { content: ""; position: absolute; right: -20%; bottom: -35%; width: 80%; height: 70%; background: radial-gradient(closest-side, rgba(238, 138, 60, .45), transparent); filter: blur(30px); pointer-events: none; }
.role--part { background: linear-gradient(180deg, #fff 0%, #f6f3ff 100%); }
.role__price { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-6); padding: 8px 16px; border-radius: var(--radius-pill); font-size: 0.9375rem; font-weight: 500; }
.role--inst .role__price { background: rgba(255,255,255,.1); color: #fff; }
.role--part .role__price { background: #e9f8ef; color: #237a4b; }

/* ---------- trust ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 960px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--site-card); border: 1px solid var(--site-line); border-radius: 20px; padding: 22px; }
.tile svg { width: 28px; height: 28px; color: var(--purple-700); margin-bottom: 36px; display: block; }
.tile h3 { font-size: 1.0625rem; font-weight: 550; letter-spacing: -0.01em; margin-bottom: 6px; }
.tile p { margin: 0; font-size: 0.9375rem; color: var(--site-ink-2); line-height: 1.5; }
.dpdp { margin-top: 12px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; border: 1px solid var(--site-line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); background: linear-gradient(180deg, #fff, #faf8f3); }
.dpdp__side small { display: block; font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--site-ink-3); margin-bottom: 6px; }
.dpdp__side h3 { font-weight: 400; font-size: 1.5rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.dpdp__side p { margin: 0; font-size: 0.9375rem; }
.dpdp__mid { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 1px solid #dcdaf6; color: var(--purple-700); }
.dpdp__mid svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .dpdp { grid-template-columns: 1fr; } .dpdp__mid { transform: rotate(90deg); } }

/* ---------- Learning side-note ---------- */
.aside-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: clamp(24px, 3vw, 40px); padding: 18px 24px; border: 1px dashed #d6d2c6; border-radius: 20px; font-size: 0.9375rem; }
.aside-note strong { font-weight: 550; }

/* header buttons: two on the right */
.nav .btn--light { margin-left: var(--space-3); padding: 0 18px; }
.nav .btn--light + .btn { margin-left: var(--space-1); }
.nav .btn--light:hover { color: var(--site-ink); background: #ebebef; }
@media (max-width: 760px) { .nav .btn--light { display: none; } }
