/* The page around the onboarding. Carried over from the level test's
   stylesheet: only the rules the onboarding leans on. */
:root { --on-sans:Inter,system-ui,sans-serif; --on-display:Manrope,sans-serif; font-family:var(--on-sans); color:#242126; background:#fff; font-synthesis:none; }
* { box-sizing:border-box; }
body { margin:0; font-family:var(--on-sans); font-size:16px; line-height:1.6; font-optical-sizing:auto; -webkit-font-smoothing:antialiased; background:#fff; }
button, a { -webkit-tap-highlight-color:transparent; }
button { font:inherit; cursor:pointer; }
a { color:inherit; }
h1, h2 { font-family:var(--on-display); font-weight:600; font-optical-sizing:auto; letter-spacing:-.045em; }
[hidden] { display:none !important; }
:focus-visible { outline:3px solid #cab0ed; outline-offset:5px; }
.on-noscript { max-width:420px; margin:18vh auto 0; padding:0 16px; text-align:center; color:#655b6d; }
.on-noscript a { color:#7429ff; }

/* One question at a time on a plain white page. No site chrome during onboarding.
   Laid out to Praktika's onboarding: a 522px heading over a 382px column of flat
   rows, no frame around it, one thin progress bar, a pill Continue at the foot. */
body.onboarding-open { height:100dvh; min-height:0; overflow:hidden; background:#fff; }
body.onboarding-open > :not(#stage) { display:none !important; }
body.onboarding-open #stage { display:block; width:100%; max-width:none; height:100dvh; min-height:0; margin:0; padding:20px 28px 28px; flex:none; }
#onboarding { width:100%; max-width:640px; height:100%; min-height:0; margin:auto; display:flex; flex-direction:column; color:#0d0d0d; }
.on-frame { display:flex; flex-direction:column; gap:16px; flex:1; min-height:0; padding:0; }
#onboarding button, #onboarding input { -webkit-tap-highlight-color:transparent; }
#onboarding button:focus-visible, #onboarding input:focus-visible { outline:3px solid #c9b3ff; outline-offset:3px; }
#onboarding h2:focus { outline:none; }
.on-navigation { display:flex; align-items:center; gap:16px; height:44px; flex:none; }
#on-close { display:grid; place-items:center; flex:none; width:44px; height:44px; padding:0; border:0; background:transparent; color:#0d0d0d; font-size:24px; border-radius:50%; }
#on-close:hover { background:#f7f6fa; }
/* One segment per chapter, so finishing one is visibly finishing something. */
.on-progress { display:flex; gap:8px; height:8px; flex:1; max-width:320px; margin:0 auto; }
.on-segment { flex:1; border-radius:99px; background:#ececf0; overflow:hidden; }
.on-segment > b { display:block; height:100%; width:0; border-radius:inherit; background:#7429ff; transition:width .55s cubic-bezier(.22,1,.36,1),background .35s; }
.on-segment[data-state=done] > b { background:#16a34a; }
#on-step-label { min-width:66px; color:#8f8a96; font-size:12px; font-weight:500; text-align:end; }
.on-layout { display:flex; flex-direction:column; gap:12px; min-height:0; flex:1; }
/* On question screens the heading stands on its own, centred over the column.
   The companion only appears in the note screens' illustration band. */
.on-say { display:flex; align-items:center; gap:14px; flex:none; width:100%; max-width:522px; margin:0 auto; }
#onboarding:not([data-scene=reassurance]) .on-say { margin-top:24px; }
#onboarding:not([data-scene=reassurance]) .on-scene { display:none; }
.on-scene { position:relative; flex:none; width:clamp(76px,10.5vw,102px); aspect-ratio:1; border-radius:50%; background:radial-gradient(circle at 50% 46%,#eaf1ff 0%,#f6f3fd 52%,transparent 71%); }
.on-bubble { flex:1 1 auto; min-width:0; padding:0; text-align:center; }
.on-bubble:empty { display:none; }
#onboarding .on-bubble h2 { font:500 clamp(24px,2.4vw,32px)/1.15 var(--on-display); letter-spacing:-.02em; margin:0; text-align:center; text-wrap:balance; }
/* The note screens keep the wide illustration band instead of a balloon. */
#onboarding[data-scene=reassurance] .on-say { display:block; max-width:none; }
#onboarding[data-scene=reassurance] .on-scene { width:100%; aspect-ratio:auto; height:clamp(150px,25vh,232px); overflow:hidden; border-radius:20px; background:radial-gradient(ellipse at 0% 0%,#e1f3fe 0%,transparent 47%),radial-gradient(ellipse at 115% 48%,#e3e7fa 0%,transparent 50%),radial-gradient(ellipse at 20% 120%,#fceee6 0%,transparent 46%),#fdfdfa; }
/* The comparison chart reads better on plain white than on the wash. */
#onboarding[data-scene=reassurance][data-figure=ascent] .on-scene { background:#fff; }
#onboarding[data-scene=reassurance][data-figure=ascent] .trust-figure { inset:2%; width:96%; height:96%; }
#onboarding[data-scene=reassurance][data-figure=ascent] .on-scene { height:clamp(230px,36vh,330px); }
#on-art { position:absolute; inset:0; display:grid; place-items:center; }
.on-panel { display:flex; flex-direction:column; flex:1; min-height:0; min-width:0; width:100%; max-width:382px; margin:0 auto; padding:24px 0 4px; }
.on-content { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#e2dce9 transparent; padding:2px 0 14px; }
#onboarding h2 { font:500 clamp(24px,2.4vw,32px)/1.15 var(--on-display); letter-spacing:-.02em; margin:0 auto 24px; text-wrap:balance; text-align:center; }
.on-choices { display:grid; gap:8px; margin-bottom:14px; }
.on-choices button { display:flex; gap:14px; align-items:center; text-align:start; width:100%; min-height:64px; padding:14px 16px; background:#fff; border:1.5px solid #e6e2ec; border-radius:20px; box-shadow:none; color:#0d0d0d; font-size:16px; font-weight:500; line-height:1.3; transition:background .15s,border-color .15s,box-shadow .15s; }
.on-choices button:hover:enabled { background:#faf9fc; border-color:#cfc7dc; }
.on-choices button[aria-pressed=true] { background:#f1e9ff; border-color:#7429ff; box-shadow:inset 0 0 0 .5px #7429ff; }
.on-choices button:disabled { cursor:default; }
.on-choice-tag { margin-inline-start:auto; flex:none; font-size:12.5px; font-weight:500; color:#8c8398; white-space:nowrap; }
.on-choice-check { margin-inline-start:auto; color:#7429ff; opacity:0; font-size:15px; flex:none; }
.on-choices button:has(.on-choice-tag) .on-choice-check { margin-inline-start:14px; }
.on-choices button[aria-pressed=true] .on-choice-check { opacity:1; }
/* Job fields: two columns so ten of them fit without scrolling. */
.on-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:14px; }
.on-grid button { min-height:56px; padding:12px 16px; text-align:start; background:#fff; border:1.5px solid #e6e2ec; border-radius:20px; box-shadow:none; color:#0d0d0d; font:500 15px/1.3 var(--on-sans); transition:background .15s,border-color .15s,box-shadow .15s; }
.on-grid button:hover:enabled { background:#faf9fc; border-color:#cfc7dc; }
.on-grid button[aria-pressed=true] { background:#f1e9ff; border-color:#7429ff; box-shadow:inset 0 0 0 .5px #7429ff; }
@media (max-width:460px) { .on-grid { grid-template-columns:1fr; } }
/* The fork in the road. Its own file, transparent, and it draws its roads out
   when it loads, so the band gives it room and keeps out of its way. */
#onboarding[data-scene=reassurance][data-figure=crossroads] .on-scene { background:transparent; height:clamp(206px,33vh,302px); }
#onboarding[data-scene=reassurance][data-figure=crossroads] .trust-figure { inset:0; margin:0; width:100%; height:100%; }
/* What the reason screen will actually build around. The rule used to be
   invisible; now the screen says it. */
.on-covers { display:flex; align-items:flex-start; gap:8px; margin:14px 2px 0; padding:11px 13px;
  border-radius:12px; background:#f3faf5; color:#41694f; font:400 13px/1.55 var(--on-sans); }
.on-covers > span { flex:none; color:#4a9460; font-size:12px; line-height:1.7; }
/* The sentence after the tick wraps; only the tick keeps its size. */
.on-covers > span:last-child { flex:1 1 auto; min-width:0; }
.on-covers-empty { background:#f6f4fa; color:#7b7286; }
/* The level check: twenty words to run an eye over, so a tapped one fills
   solid rather than tinting. Nothing here is right or wrong. */
#onboarding[data-layout=words] .on-chips { gap:10px; }
#onboarding[data-layout=words] .on-chips button { padding:12px 18px; font-size:15px; }
#onboarding[data-layout=words] .on-chips button[aria-pressed=true] { background:#7429ff; box-shadow:none; color:#fff; }
.on-unsure-glyph { border-radius:50%; }
/* Interests: many small picks, so they wrap instead of stacking. */
.on-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.on-chips button { padding:12px 18px; border:1.5px solid #e6e2ec; border-radius:999px; background:#fff; box-shadow:none; font:500 15px/1.3 var(--on-sans); color:#0d0d0d; transition:background .15s,border-color .15s,box-shadow .15s; }
.on-chips button:hover:enabled { background:#faf9fc; border-color:#cfc7dc; }
.on-chips button[aria-pressed=true] { background:#f1e9ff; border-color:#7429ff; box-shadow:inset 0 0 0 .5px #7429ff; }
.on-custom-answer { display:flex; align-items:center; gap:14px; min-height:64px; padding:12px 16px; border:1.5px solid #e6e2ec; border-radius:20px; background:#fff; transition:border-color .15s; }
.on-custom-answer > span:first-child { display:grid; place-items:center; width:32px; height:32px; flex:none; border-radius:10px; background:#f7f6fa; color:#8f8a96; font-size:21px; }
.on-custom-answer:focus-within { border-color:#7429ff; }
#on-answer { display:block; flex:1; min-width:0; height:36px; padding:0; border:0; background:transparent; color:#0d0d0d; font:500 15px/1.5 var(--on-sans); }
#on-answer::placeholder { color:#a197a8; }
#onboarding #on-answer:focus-visible { outline:0; }
/* The three setup screens: one question, a grid of drawn tiles. */
.on-tiles { display:grid; grid-template-columns:1fr; gap:8px; }
.on-tiles button { position:relative; display:flex; align-items:center; gap:14px; text-align:start; min-height:64px; padding:14px 16px; background:#fff; border:1.5px solid #e6e2ec; border-radius:20px; box-shadow:none; color:#0d0d0d; font:500 16px/1.3 var(--on-sans); transition:background .15s,border-color .15s,box-shadow .15s; }
.on-tiles button:hover:enabled { background:#faf9fc; border-color:#cfc7dc; }
.on-tiles button[aria-pressed=true] { background:#f1e9ff; border-color:#7429ff; box-shadow:inset 0 0 0 .5px #7429ff; }
.on-tiles button:disabled { background:#faf9fc; border-color:#eeebf2; color:#a9a3b1; }
.on-tiles button:disabled .on-flag, .on-tiles button:disabled .on-glyph { filter:grayscale(1); opacity:.5; }
.on-tile-label { flex:1 1 auto; min-width:0; }
.on-tile-check { flex:none; color:#7429ff; font-size:15px; opacity:0; }
.on-tiles button[aria-pressed=true] .on-tile-check { opacity:1; }
.on-tile-note { flex:none; padding:3px 8px; border-radius:999px; background:#fff; color:#8f8a96; font-size:10px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; }
.on-flag { flex:none; width:32px; height:32px; border-radius:50%; display:block; }
.on-bubble .on-hint { margin:8px 0 0; font-size:14px; line-height:1.5; color:#8c8398; }
.on-glyph { flex:none; width:36px; height:36px; display:block; }
/* Emoji options. Sized like the drawn glyphs were, so the rows do not move;
   a disabled tile greys them the same way. */
.on-emoji { display:grid; place-items:center; font:26px/1 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; text-align:center; }
.on-flag.on-emoji { font-size:28px; }
.on-controls { flex:none; padding:14px 0 0; background:#fff; }
.on-control-row { display:flex; align-items:center; justify-content:flex-end; gap:12px; min-height:28px; margin-bottom:12px; }
#on-status { font-size:11px; color:#857b8c; line-height:1.4; }
.on-controls > #on-status { margin:10px 0 0; text-align:center; }
.on-continue { display:flex; align-items:center; justify-content:center; width:100%; min-height:52px; border:0; border-radius:999px; padding:0 24px; background:#7429ff; color:#fff; box-shadow:none; font:500 16px/1.5 var(--on-sans); transition:background .15s; }
.on-continue:hover:enabled { background:#6a22ee; }
.on-continue:active:enabled { background:#5f1dd6; }
.on-continue:disabled { background:#ebe8f1; color:#a9a3b1; cursor:default; }
#on-error { font-size:12px; line-height:1.5; color:#b42318; margin:10px 0 0; }
#on-error:empty, #on-status:empty { display:none; }
.on-loading { text-align:center; color:#968b9e; font-size:14px; margin-top:40px; }
/* One illustration and one thought between answers. Diagrams show a process,
   not measured learning gains or a comparison with another product. */
/* Centred, but with auto margins rather than align-items: a child taller than
   the box would otherwise overflow off the top, where scrolling cannot reach. */
/* The note screens read as a paragraph, so they take the heading's width;
   the Continue keeps the column's. */
#onboarding[data-scene=reassurance] .on-panel { max-width:522px; padding-top:12px; }
#onboarding[data-scene=reassurance] .on-controls { width:100%; max-width:382px; margin:0 auto; }
#onboarding[data-scene=reassurance] .on-content { display:flex; }
#onboarding[data-scene=reassurance] .on-content > * { margin-block:auto; }
.on-reassurance { width:100%; text-align:center; padding:20px 0; }
.on-echo { display:inline-flex; align-items:center; gap:7px; max-width:100%; margin:0 auto 18px; padding:6px 13px; border-radius:99px; background:#f3faf5; color:#4a7359; font-size:12px; font-weight:500; line-height:1.4; }
.on-echo > span { color:#4a9460; font-size:11px; }
#onboarding .on-reassurance h2 { margin-bottom:24px; }
.on-reassurance > p { max-width:410px; margin:0 auto; color:#655b6d; font:400 17px/1.8 var(--on-sans); text-wrap:pretty; }
/* The closing screen counts what the plan opens up, so it drops the band. */
#onboarding[data-scene=reassurance][data-figure=stats] .on-say { display:none; }
/* Four things the plan has, one card each, in the same outlined row the
   questions use. The emoji sits in a tinted disc that the data colours. */
.on-stats { display:grid; gap:8px; margin:24px auto 0; max-width:382px; text-align:start; }
.on-stat { display:flex; align-items:center; gap:14px; padding:12px 16px; min-height:72px; border:1.5px solid #e6e2ec; border-radius:20px; background:#fff; }
.on-stat-icon { display:grid; place-items:center; flex:none; width:44px; height:44px; border-radius:50%; font:26px/1 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; }
.on-stat-icon img { display:block; }
.on-stat-text { display:flex; flex-direction:column; flex:1 1 auto; gap:3px; min-width:0; }
.on-stat-value { font:500 17px/1.25 var(--on-display); letter-spacing:-.02em; color:#0d0d0d; text-wrap:balance; }
.on-stat-label { font-size:13.5px; line-height:1.45; color:#6b6572; text-wrap:pretty; }
.on-source { display:inline-block; max-width:360px; margin:28px auto 0; color:#7b7183; font-size:11px; line-height:1.7; text-underline-offset:4px; text-decoration-color:#d4cbdc; }
.on-source:hover { color:#6636a1; text-decoration-color:currentColor; }
.on-source:focus-visible { outline:3px solid #b99ae5; outline-offset:5px; border-radius:3px; }
.trust-figure { position:absolute; inset:5%; width:90%; height:90%; overflow:visible; }
img.trust-figure { pointer-events:none; border:0; object-fit:contain; }
/* The band itself takes the file's 21:10 frame, so the scene runs the full
   width of the card with nothing beside it. */
#onboarding[data-scene=reassurance][data-figure=journey] .on-scene { height:auto; aspect-ratio:168/100; background:transparent; border-radius:20px; overflow:hidden; }
/* A quarter taller than the file's own 21:10 frame; the scene scales to
   fill it and the spare width is cropped, which the sky can spare. */
#onboarding[data-scene=reassurance][data-figure=journey] .trust-figure { inset:0; margin:0; width:100%; height:100%; transform:scale(1.25); }
.trust-figure text { font-family:var(--on-sans); fill:#53465f; }
.science-brand { font-size:24px; font-weight:600; letter-spacing:-1.1px; fill:#242126; }
.science-line, .science-link, .science-ribbon, .science-under { fill:none; stroke:url(#science-stroke); stroke-linecap:round; stroke-dasharray:1; animation:science-trace 1.5s cubic-bezier(.22,1,.36,1) var(--delay,0ms) both; }
.science-link { stroke-width:1.4; opacity:.5; }
.science-ribbon { stroke-width:10; }
.science-under { stroke-width:2; opacity:.25; }
.science-reveal { transform-box:fill-box; transform-origin:center; animation:science-appear .9s cubic-bezier(.22,1,.36,1) var(--delay,0ms) both; }
@keyframes science-trace { from { stroke-dashoffset:1; opacity:0; } to { stroke-dashoffset:0; } }
@keyframes science-appear { from { opacity:0; transform:translateY(7px) scale(.94); } to { opacity:1; transform:translateY(0) scale(1); } }
.on-control-note { font-size:11px; color:#938798; margin:0 0 12px; text-align:center; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
/* A line under the question, for the ones that need to say what they are for. */
.on-bubble .on-sub { margin:8px auto 0; max-width:420px; font-size:14px; line-height:1.5; color:#5f5a66; }
#onboarding .on-reassurance .on-sub { margin-top:0; }
/* The three statements. Wider rows, no icon column competing with the mark. */
#onboarding[data-layout=verdict] .on-choices button { min-height:58px; }
#onboarding[data-layout=verdict] .on-bubble h2 { font-size:clamp(18px,1.7vw,23px); line-height:1.35; }
.on-verdict-glyph { border-radius:50%; }
/* The secondary way out of a screen that also has a primary one. */
.on-ghost { display:block; width:100%; margin-top:8px; padding:12px; border:0; border-radius:999px; background:transparent; color:#7b7286; font:500 13px/1.4 var(--on-sans); }
.on-ghost:hover { background:#f6f4fa; color:#4a4350; }
/* The build screen: a count, a heading, and the four things being done. */
.on-build { width:100%; text-align:center; padding:12px 0; }
.on-build-meter { display:flex; align-items:center; gap:13px; max-width:420px; margin:0 auto 26px; }
.on-build-track { flex:1; height:7px; border-radius:99px; background:#ece8f2; overflow:hidden; }
.on-build-track > b { display:block; height:100%; width:0; border-radius:inherit; background:#7429ff; transition:width .35s linear; }
#on-build-count { flex:none; min-width:40px; text-align:end; font:600 13px/1 'IBM Plex Mono',ui-monospace,monospace;
  color:#7429ff; font-variant-numeric:tabular-nums; }
#onboarding .on-build h2 { margin-bottom:18px; }
#onboarding .on-gate h2 { margin-bottom:12px; }
/* No card behind the rows: the four things being done are the content, and a
   tinted panel behind them only competed with the count above. */
.on-build-steps { list-style:none; margin:0 auto; padding:0; max-width:420px; text-align:start; }
.on-build-steps li { display:flex; align-items:center; gap:13px; padding:14px 2px; border-bottom:1px dashed #e2dcec; font:500 15.5px/1.35 var(--on-sans); color:#39303f; }
.on-build-steps li:last-child { border-bottom:0; }
.on-build-mark { flex:none; width:19px; height:19px; border-radius:50%; border:2px solid #d8d1e2; background-color:#fff; background-position:center; background-size:11px; background-repeat:no-repeat; transition:background-color .3s,border-color .3s; }
.on-build-steps li[data-state=done] .on-build-mark { border-color:#16a34a; background-color:#16a34a; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.on-build-steps li em { margin-inline-start:auto; flex:none; font-style:normal; font:600 12.5px/1 var(--on-mono,'IBM Plex Mono',ui-monospace,monospace);
  letter-spacing:.08em; text-transform:uppercase; color:#8c8398; background:#f3f1f6; border-radius:99px; padding:6px 10px; }
.on-build-steps li[data-state=done] em { color:#0f7a3a; background:#dcfce7; }
.on-build.is-ready > p { max-width:410px; margin:0 auto; color:#6b6572; font:400 15px/1.6 var(--on-sans); }
#onboarding[data-scene=reassurance][data-figure=build] .on-scene,
#onboarding[data-scene=reassurance][data-figure=gate] .on-scene { height:clamp(112px,17vh,164px); }
/* The plant covers the band, which crops the level pills drawn along the foot
   of its artboard. The band takes the artboard's own ground so the edges meet. */
#onboarding[data-scene=reassurance][data-figure=plant] .on-scene { height:clamp(210px,32vh,290px); background:#fff; }
/* Cropped to the top 68% of a square artboard, which is the plant and its
   shadow; the level pills along the foot fall outside. The filter keys the
   artboard's own ground out, so the plant stands on the card. */
.on-plant { position:absolute; top:0; left:50%; transform:translateX(-50%);
  height:100%; width:auto; aspect-ratio:100/68; max-width:100%; display:block;
  filter:url(#on-drop-ground); }
/* The address screen. Asked once, and declining it costs nothing. */
.on-gate { width:100%; max-width:420px; margin:0 auto; text-align:center; padding:12px 0; }
.on-gate > p { color:#655b6d; font:400 15px/1.7 var(--on-sans); margin:0 0 18px; }
.on-field { display:block; }
#on-email { width:100%; min-height:56px; padding:14px 16px; border:1.5px solid #e6e2ec; border-radius:20px; background:#fff; font:500 15px/1.4 var(--on-sans); color:#0d0d0d; }
#on-email:focus { border-color:#7429ff; outline:none; }
.on-gate-note { margin:12px 0 0; font-size:11.5px; line-height:1.6; color:#9a90a4; }
/* The launch offer: one line, in the accent colour, above the form. */
#onboarding .on-gate > p.on-offer { color:#7429ff; font:600 15px/1.5 var(--on-sans); margin:0 0 18px; }
#onboarding .on-done > p.on-offer { color:#7429ff; font-weight:600; margin-top:14px; }
@media (min-width:761px) and (max-height:730px) {
  body.onboarding-open #stage { padding-top:12px; padding-bottom:18px; }
  .on-frame { gap:10px; }
  #onboarding:not([data-scene=reassurance]) .on-say { margin-top:16px; }
  .on-panel { padding-top:14px; }
  #onboarding h2, #onboarding .on-bubble h2 { font-size:26px; }
  .on-choices button, .on-tiles button { min-height:58px; padding:10px 16px; }
  .on-custom-answer { min-height:58px; padding:8px 16px; }
}
@media (max-width:760px) {
  body.onboarding-open #stage { padding:12px 14px max(14px,env(safe-area-inset-bottom)); }
  .on-frame { gap:8px; }
  .on-navigation { gap:8px; height:40px; }
  #on-close { width:40px; height:40px; }
  .on-layout { gap:8px; }
  .on-say { gap:10px; max-width:none; }
  #onboarding:not([data-scene=reassurance]) .on-say { margin-top:16px; }
  .on-scene { width:66px; }
  #onboarding .on-bubble h2 { font-size:24px; }
  #onboarding[data-scene=reassurance] .on-scene { width:100%; height:clamp(150px,25dvh,210px); border-radius:16px; }
  .on-panel { max-width:none; padding:16px 0 4px; }
  .on-content { padding:2px 0 12px; }
  #onboarding h2 { font-size:24px; margin-bottom:20px; }
  .on-choices { margin-bottom:13px; }
  .on-choices button { min-height:60px; padding:12px 16px; gap:12px; font-size:15px; }
  .on-custom-answer { min-height:60px; padding:10px 16px; gap:12px; }
  #on-answer { font-size:15px; }
  .on-controls { padding:8px 0 0; }
  .on-control-row { margin-bottom:8px; }
  .on-continue { min-height:50px; }
  #on-status { font-size:10px; }
  .on-reassurance { padding:6px 0; }
  #onboarding .on-reassurance h2 { font-size:23px; margin-bottom:16px; }
  .on-reassurance > p { max-width:370px; font-size:14px; line-height:1.75; }
  .on-source { margin-top:18px; font-size:10px; }
}
@media (max-width:760px) and (max-height:700px) {
  .on-scene { width:56px; }
}
@media (prefers-reduced-motion:reduce) {
  #onboarding *, #onboarding *::before, #onboarding *::after { animation:none !important; transition:none !important; }
}


/* A question with no options is a single field: the answer is the whole screen,
   so the pencil affordance of the usual "something else" box would undersell it. */
[data-layout="text"] .on-choices{display:none}
[data-layout="text"] .on-custom-answer{margin-top:4px;padding:0 16px;min-height:60px;border-radius:20px;background:#fff}
[data-layout="text"] .on-custom-answer span[aria-hidden]{display:none}
[data-layout="text"] .on-custom-answer input{font-size:18px;font-weight:600}
[data-layout="text"] .on-custom-answer:focus-within{border-color:#7429ff}


/* ── The waitlist ending ─────────────────────────────────────────────────────
   One screen for a name and an address, then one to say it worked. Built from
   the address screen's parts, so it reads as the same flow. */
.on-signup { display:grid; gap:10px; margin:0 0 4px; text-align:start; }
.on-signup .on-field-label { display:block; margin:0 0 6px; margin-inline-start:4px; font:500 13px/1.4 var(--on-sans); color:#5f5a66; }
.on-signup input { width:100%; min-height:56px; padding:14px 16px; border:1.5px solid #e6e2ec; border-radius:20px; background:#fff; font:500 15px/1.4 var(--on-sans); color:#0d0d0d; }
.on-signup input:focus { border-color:#7429ff; outline:none; }
.on-signup input[aria-invalid=true] { border-color:#d92d20; }
.on-field-error { margin:6px 0 0; margin-inline-start:4px; font-size:12px; line-height:1.5; color:#b42318; }
.on-field-error:empty { display:none; }
/* The honeypot. Off screen rather than display:none, which some bots skip. */
/* Off-screen without an offset: a negative left widens the page by 10000px in RTL. */
.on-trap { position:absolute; inset-inline-start:0; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.on-done { width:100%; text-align:center; padding:20px 0; }
.on-done > p { max-width:410px; margin:0 auto; color:#655b6d; font:400 17px/1.8 var(--on-sans); text-wrap:pretty; }
.on-home { display:flex; align-items:center; justify-content:center; text-decoration:none; }
@media (max-width:760px) {
  .on-done > p { font-size:14px; line-height:1.75; }
}


/* ── Languages ───────────────────────────────────────────────────────────────
   Latin text keeps Inter and Manrope; a script they do not cover falls through
   to a Noto family, which onboarding.js loads only for that language. */
:root[lang=ar], :root[lang=ur] { --on-sans:Inter,'Noto Sans Arabic',system-ui,sans-serif; --on-display:Manrope,'Noto Sans Arabic',sans-serif; }
:root[lang=hi] { --on-sans:Inter,'Noto Sans Devanagari',system-ui,sans-serif; --on-display:Manrope,'Noto Sans Devanagari',sans-serif; }
:root[lang=ja] { --on-sans:Inter,'Noto Sans JP',system-ui,sans-serif; --on-display:Manrope,'Noto Sans JP',sans-serif; }
:root[lang=ko] { --on-sans:Inter,'Noto Sans KR',system-ui,sans-serif; --on-display:Manrope,'Noto Sans KR',sans-serif; }
:root[lang=th] { --on-sans:Inter,'Noto Sans Thai',system-ui,sans-serif; --on-display:Manrope,'Noto Sans Thai',sans-serif; }
:root[lang=zh] { --on-sans:Inter,'Noto Sans SC',system-ui,sans-serif; --on-display:Manrope,'Noto Sans SC',sans-serif; }
/* Scripts that join their letters or stack marks break when tracked out or
   squeezed vertically, and have no capitals to shout in. */
:root:is([lang=ar],[lang=ur],[lang=hi],[lang=th]) :is(h1,h2,.on-stat-value,.science-brand,.on-build-steps li em,.on-tile-note,#on-build-count) { letter-spacing:0; text-transform:none; }
:root:is([lang=ar],[lang=ur],[lang=hi],[lang=th]) #onboarding .on-bubble h2, :root:is([lang=ar],[lang=ur],[lang=hi],[lang=th]) #onboarding h2 { line-height:1.4; }
:root:is([lang=ar],[lang=ur],[lang=hi],[lang=th]) .on-reassurance > p, :root:is([lang=ar],[lang=ur],[lang=hi],[lang=th]) .on-done > p { line-height:1.95; }
:root:is([lang=ja],[lang=ko],[lang=zh]) #onboarding h2 { letter-spacing:0; line-height:1.35; }
:root:is([lang=ja],[lang=ko],[lang=zh]) .on-tile-note, :root:is([lang=ja],[lang=ko],[lang=zh]) .on-build-steps li em { letter-spacing:0; }
/* The small badges are tiny in scripts with fine detail. */
:root:is([lang=ar],[lang=ur],[lang=hi],[lang=th],[lang=ja],[lang=ko],[lang=zh]) .on-tile-note { font-size:12px; }
:root:is([lang=ar],[lang=ur],[lang=hi],[lang=th],[lang=ja],[lang=ko],[lang=zh]) #on-step-label { font-size:13px; }
/* Japanese, Chinese and Thai have no spaces to break lines at: let them break anywhere sensible. */
:root:is([lang=ja],[lang=zh],[lang=th]) #onboarding { line-break:strict; word-break:normal; overflow-wrap:anywhere; }

/* Right-to-left: the back arrow points the other way; the sample words, the
   email address and the numbers stay left-to-right where they are written so. */
:root[dir=rtl] #on-close > span { display:inline-block; transform:scaleX(-1); }
#on-email, .on-chips button[lang=en] { direction:ltr; }
/* Drawn figures are laid out in a fixed coordinate space: anchors and mirrored text must not flip with the page. */
.trust-figure { direction:ltr; }
#on-email { text-align:start; }

/* The language switch: a globe and the code in the bar, and a short list of
   names in each language's own script. */
.on-lang { position:relative; flex:none; }
#on-lang-button { display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 10px; border:0; border-radius:999px; background:transparent; color:#8f8a96; font:600 12px/1 var(--on-sans); letter-spacing:.04em; }
#on-lang-button:hover { background:#f7f6fa; color:#4a4350; }
#on-lang-button[aria-expanded=true] { background:#f1e9ff; color:#5f1dd6; }
#on-lang-menu { position:absolute; inset-inline-end:0; top:calc(100% + 6px); z-index:20; width:max-content; min-width:184px; max-height:min(80dvh,520px); overflow:auto; margin:0; padding:6px; list-style:none; background:#fff; border:1.5px solid #e6e2ec; border-radius:18px; box-shadow:0 12px 32px #2a1f4a1f; }
#on-lang-menu button { display:block; width:100%; padding:10px 12px; border:0; border-radius:12px; background:transparent; color:#0d0d0d; text-align:start; font:500 15px/1.3 var(--on-sans); letter-spacing:0; }
#on-lang-menu button:hover { background:#faf9fc; }
#on-lang-menu button[aria-current=true] { background:#f1e9ff; color:#5f1dd6; }
@media (max-width:760px) { #on-lang-button { height:32px; padding:0 8px; } #on-step-label { min-width:0; } }

/* The step after the first language: one line, in that language, that moves the page to it. */
.on-lang-offer { display:inline-flex; align-items:center; gap:8px; max-width:100%; margin:0 auto 14px; padding:6px 14px 6px 6px; border:1.5px solid #e6e2ec; border-radius:999px; background:#fff; color:#3d3446; font:500 14.5px/1.3 var(--on-sans); transition:background .15s,border-color .15s; }
.on-lang-offer:hover { background:#faf9fc; border-color:#cfc7dc; }
.on-lang-offer:active { background:#f3eff8; }
.on-lang-offer .on-flag { width:24px; height:24px; }
.on-lang-offer-go { color:#7429ff; }
[dir=rtl] .on-lang-offer-go { transform:scaleX(-1); }

/* The search box over the first languages. */
.on-search { display:flex; align-items:center; gap:10px; min-height:52px; margin:0 0 10px; padding:0 16px; border:1.5px solid #e6e2ec; border-radius:20px; background:#fff; color:#8c8398; transition:border-color .15s; }
.on-search:focus-within { border-color:#7429ff; box-shadow:inset 0 0 0 .5px #7429ff; }
.on-search svg { flex:none; }
.on-search input { flex:1; min-width:0; height:48px; border:0; outline:0; background:none; color:#0d0d0d; font:500 16px/1.3 var(--on-sans); }
.on-search input::placeholder { color:#a9a3b1; }
.on-search input::-webkit-search-cancel-button { cursor:pointer; }
#onboarding .on-search input:focus-visible { outline:none; }
.on-tiles button[hidden] { display:none; }

/* The path cards drifting past, on the note after setup, the signup and the ending. */
#onboarding[data-scene=reassurance][data-figure=cards] .on-scene { height:clamp(200px,32vh,280px); background:radial-gradient(ellipse at 50% 60%,#efe6ff 0%,transparent 62%),#fdfcff; }
.on-rail { position:absolute; inset:0; display:flex; align-items:center; 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); }
.on-rail-track { display:flex; gap:14px; width:max-content; animation:on-drift 36s linear infinite; }
.on-rail-track img { display:block; width:clamp(112px,25vw,146px); aspect-ratio:1; object-fit:cover; border-radius:20px;
  box-shadow:0 12px 26px -12px rgba(55,36,110,.35),0 0 0 1px rgba(23,18,29,.05); }
.on-rail-track img:nth-child(odd) { transform:translateY(-10px); }
.on-rail-track img:nth-child(even) { transform:translateY(10px); }
[dir=rtl] .on-rail-track { animation-direction:reverse; }
@keyframes on-drift { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@media (prefers-reduced-motion:reduce) { .on-rail-track { animation:none; } }
/* The note after setup says more, and says it bigger. */
#onboarding[data-figure=cards] .on-reassurance > p { font-size:19px; line-height:1.6; color:#3d3446; }
#onboarding[data-figure=cards] .on-reassurance > p.on-path-line { margin-bottom:12px; color:#7429ff; font-weight:600; }
@media (max-width:760px) { #onboarding[data-figure=cards] .on-reassurance > p { font-size:17px; } }
/* Group headings on the interests screen. */
.on-group { margin:22px 0 10px; font:600 15px/1.3 var(--on-sans); color:#3d3446; }
.on-group:first-child { margin-top:4px; }
#onboarding[data-figure=cards] .on-source { margin-top:14px; font-size:13px; }

/* Chapter three's replies: the logo, Felix on a call, a calendar, the levels. */
#onboarding[data-scene=reassurance]:is([data-figure=logo],[data-figure=call],[data-figure=calendar],[data-figure=levels]) .on-scene { height:clamp(210px,34vh,300px); }
#onboarding[data-figure=logo] .on-scene { background:radial-gradient(circle at 50% 55%,#efe6ff 0%,transparent 60%),#fdfcff; }
.trust-logo { width:clamp(120px,22vh,176px); height:auto; filter:drop-shadow(0 18px 30px rgba(116,41,255,.25)); }
#onboarding[data-figure=call] .on-scene { background:#fff; }
.trust-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 40%; border-radius:20px; }
#onboarding:is([data-figure=calendar],[data-figure=levels]) .on-scene { background:radial-gradient(ellipse at 50% 60%,#efe6ff 0%,transparent 65%),#fdfcff; }
#onboarding:is([data-figure=logo],[data-figure=call],[data-figure=calendar],[data-figure=levels]) .on-reassurance > p { font-size:18px; line-height:1.6; }


/* The plans screen: a page of its own that scrolls. The whole frame scrolls
   (not the content box), so the back arrow and the language button, which sit
   over the white stage, scroll away with it. Everything is
   under pwin-; no inline styles anywhere, the page's CSP does not allow them. */
body.onboarding-open:has(#onboarding[data-scene=paywall]) #stage { padding:0; }
#onboarding[data-scene=paywall] { max-width:none; }
#onboarding[data-scene=paywall] .on-say, #onboarding[data-scene=paywall] .on-progress { visibility:hidden; }
#onboarding[data-scene=paywall] .on-say, #onboarding[data-scene=paywall] .on-controls { display:none; }
#onboarding[data-scene=paywall] .on-frame { position:relative; gap:0; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#e2dce9 transparent; }
#onboarding[data-scene=paywall] :is(.on-layout,.on-panel) { flex:none; min-height:auto; gap:0; }
#onboarding[data-scene=paywall] .on-panel { max-width:none; padding:0; }
#onboarding[data-scene=paywall] .on-content { flex:none; overflow:visible; padding:0; }
/* The navigation floats over the stage, level with the wordmark. */
#onboarding[data-scene=paywall] .on-navigation { position:absolute; z-index:6; top:calc(var(--pwin-banner,40px) + 20px); inset-inline:0; width:auto; max-width:1080px; height:44px; margin:0 auto; padding:0 24px; pointer-events:none; }
#onboarding[data-scene=paywall] .on-navigation > * { pointer-events:auto; }
#onboarding[data-scene=paywall] #on-close, #onboarding[data-scene=paywall] #on-lang-button { border:1px solid #e5e5e5; background:#fffc; color:#0d0d0d; }
#onboarding[data-scene=paywall] #on-close { width:40px; height:40px; }
#onboarding[data-scene=paywall] #on-lang-button { height:40px; padding:0 14px; font-size:13px; }
#onboarding[data-scene=paywall] :is(#on-close,#on-lang-button):hover { background:#f5f5f5; color:#0d0d0d; }
#onboarding[data-scene=paywall] :is(#on-close,#on-lang-button):focus-visible { outline:2px solid #c9b3ff; outline-offset:2px; }
#onboarding[data-scene=paywall] #on-lang-button[aria-expanded=true] { background:#f0f0f0; color:#0d0d0d; }

.pwin { --pw-ink:#0d0d0d; --pw-body:#242126; --pw-muted:#6d6377; --pw-muted2:#8f8a96; --pw-hair:#ece8f1; --pw-border:#e6e2ec; --pw-purple:#7429ff;
  width:100%; text-align:start; color:var(--pw-body); font:400 16px/1.55 var(--on-sans); overflow-wrap:normal; line-break:auto; word-break:normal; }
#onboarding .pwin:is([lang=ar],[lang=ur],[lang=hi],[lang=th],[lang=ja],[lang=ko],[lang=zh]) *:not(.pwin-pro) { letter-spacing:0; }
#onboarding .pwin:is([lang=ar],[lang=ur],[lang=hi],[lang=th]) :is(.pwin-hero h2,.pwin-sec-head h3,.pwin-how-left h3) { line-height:1.25; }
#onboarding .pwin:is([lang=ja],[lang=ko],[lang=zh]) :is(.pwin-hero h2,.pwin-sec-head h3,.pwin-how-left h3) { line-height:1.2; }
#onboarding .pwin:is([lang=ar],[lang=ur],[lang=hi],[lang=th],[lang=ja],[lang=ko],[lang=zh]) .pwin-sale { text-transform:none; }
.pwin :is(p,h3,h4) { margin:0; }
.pwin :is(h3,h4) { font-family:var(--on-display); font-weight:600; color:var(--pw-ink); text-wrap:balance; }
.pwin s { color:var(--pw-muted2); text-decoration-thickness:1.5px; }
.pwin-wrap { max-width:1080px; margin:0 auto; padding:0 24px; }
.pwin :focus-visible { outline:3px solid #c9b3ff; outline-offset:3px; }

/* The mint banner, flush at the top. */
.pwin-offer { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:40px; padding:6px 16px; background:#d6fbdf; color:#000; font:600 14px/1.3 var(--on-sans); text-align:center; }
.pwin-offer svg { flex:none; width:17px; height:17px; }
.pwin-short { display:none; }

/* The stage: white, with the offer page's soft rays fanning out from behind
   the hero's glass dome; inside it the Earth (hero-globe.js draws it)
   sits on a thin iron stand and turns to the country of the language learned
   until the country, in its flag, sits in the middle. Then eight scene cards,
   in the landing's card style and caption, tip in from the dome outwards, four
   on each side, mirrored: each a step further out (--k) along a parabola,
   overlapping the one before it and tipped a little more. */
.pwin-stage { position:relative; z-index:0; overflow:hidden; background:#fff; }
.pwin-hero-art { position:relative; width:min(100%,900px); height:300px; margin:10px auto 0;
  --card:150px; --x0:262px; --dx:100px; --y0:74px; --dy:8px; --r0:5deg; --dr:4deg; }
/* The landing's hero sky (slova.html .dk-scene), its foot well under the dome
   so the rays rise from low behind it,
   and reaching up past the top of the screen; it melts into white at the top
   the same way, behind the brand, and at its foot, where the landing hides it
   behind the deck and here the title follows. */
.pwin-sky { position:absolute; bottom:-120px; left:50%; z-index:-1; width:min(100vw,1600px); height:700px; overflow:hidden; transform:translateX(-50%); pointer-events:none;
  -webkit-mask:linear-gradient(#000 calc(100% - 9rem),#0000); mask:linear-gradient(#000 calc(100% - 9rem),#0000); }
.pwin-sky svg { position:absolute; inset:0; width:100%; height:100%; }
.pwin-sky::after { content:""; position:absolute; inset:0 0 auto; height:12rem; background:linear-gradient(#fff,#fff0); }
.pwin-green { font-style:normal; color:#25a100; }
.pwin-globe { position:absolute; bottom:0; left:50%; z-index:1; display:block; width:384px; height:auto; aspect-ratio:356 / 182.98; transform:translateX(-50%); }
.pwin-g-flag { opacity:0; transition:opacity .5s ease; }
.pwin-landed .pwin-g-flag { opacity:1; }
.pwin-card { --x:calc(var(--s) * (var(--x0) + var(--k) * var(--dx))); --r:calc(var(--s) * (var(--r0) + var(--k) * var(--dr)));
  position:absolute; bottom:calc(var(--y0) - var(--k) * var(--k) * var(--dy)); left:calc(50% + var(--x) - var(--card) / 2); z-index:var(--z); display:block; width:var(--card); aspect-ratio:3 / 4; overflow:hidden;
  border:4px solid #fff; border-radius:24px; background:#fff; box-shadow:0 0 0 1px #0003,0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a; opacity:0; transform:rotate(var(--r)); transform-origin:50% 100%; }
.pwin-card img { display:block; width:100%; height:100%; object-fit:cover; }
.pwin-card::after { content:""; position:absolute; inset:40% 0 0; background:linear-gradient(#10081e00,#10081e9e); }
.pwin-cap { position:absolute; z-index:1; left:12px; right:10px; bottom:12px; color:#fff; text-align:left; text-shadow:0 1px 12px #00000040; }
.pwin-cap small { display:block; font-size:.66rem; font-weight:700; opacity:.92; }
.pwin-cap b { display:block; margin-top:2px; font:800 1.05rem/1 var(--on-display); letter-spacing:-.04em; text-wrap:balance; overflow-wrap:break-word; hyphens:auto; }
.pwin-l { --s:-1; } .pwin-r { --s:1; }
/* A card is covered on its dome side by the one before it, so from k1 out
   the caption keeps to the strip left showing, on the outer side. */
.pwin-r .pwin-cap { text-align:right; }
.pwin-l:not(.pwin-k0) .pwin-cap { right:calc(var(--card) - var(--dx) + 2px); }
.pwin-r:not(.pwin-k0) .pwin-cap { left:calc(var(--card) - var(--dx) + 2px); right:12px; }
/* The strip is narrow: a smaller caption so long words fit whole. */
.pwin-card:not(.pwin-k0) .pwin-cap b { font-size:.84rem; letter-spacing:-.03em; }
.pwin-k0 { --k:0; --z:4; } .pwin-k1 { --k:1; --z:3; } .pwin-k2 { --k:2; --z:2; } .pwin-k3 { --k:3; --z:1; }
.pwin-hero-art.pwin-landed .pwin-card { opacity:1; }
@media (prefers-reduced-motion:no-preference) {
  .pwin-hero-art.pwin-landed .pwin-card { animation:pwin-tip .6s cubic-bezier(.22,1.3,.36,1) both; animation-delay:calc(var(--k) * 80ms); }
  @keyframes pwin-tip { from { opacity:0; transform:translateY(24px) rotate(0deg) scale(.7); } to { opacity:1; transform:rotate(var(--r)); } }
  .pwin-pro { animation:pwin-shine 6s linear infinite; }
  @keyframes pwin-shine { from { background-position:0% 50%; } to { background-position:240% 50%; } }
}
.pwin-page { position:relative; z-index:1; }
.pwin-top { display:flex; align-items:center; justify-content:center; height:44px; margin-top:20px; }
.pwin-brand { display:flex; align-items:center; gap:8px; color:#0d0d0d; }
.pwin-brand img { display:block; width:31px; height:30px; flex:none; }
.pwin-brand-word { display:flex; align-items:baseline; gap:7px; }
.pwin-brand-name { font:700 22px/1 var(--on-display); letter-spacing:-.02em; color:#0d0d0d; }
.pwin-pro { display:inline-block; font:800 22px/1 var(--on-display); letter-spacing:.04em; text-transform:uppercase; color:#7c3aed;
  background:linear-gradient(105deg,#06b6d4 5%,#6366f1 28%,#a855f7 51%,#ec4899 74%,#06b6d4 95%); background-size:240% 100%; -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
@supports not ((background-clip:text) or (-webkit-background-clip:text)) { .pwin-pro { background:none; -webkit-text-fill-color:#7c3aed; } }
.pwin-hero { text-align:center; padding:28px 0 0; }
#onboarding .pwin-hero h2 { max-width:860px; margin:0 auto; color:#0d0d0d; font:600 48px/1.1 var(--on-display); letter-spacing:-.045em; text-wrap:balance; }
.pwin-sub { max-width:640px; margin:14px auto 0 !important; color:#737373; font-size:18px; line-height:1.55; text-wrap:balance; }

/* Plans: the offer page's tabs over one Pro card, its gradient frame and
   faint wash, the price, the button and the list in two columns. Weekly and
   yearly hold the same things, so one card shows whichever tab is on. */
.pwin-plans { --pw-grad:linear-gradient(to right top,lab(64.41 63.03 19.21) 0%,lab(56.43 83.13 -64.64) 50%,lab(48.3 38.31 -81.97) 100%); padding-top:24px; }
.pwin-pc { max-width:680px; margin:0 auto; padding:4px; border-radius:24px; background:var(--pw-grad); }
.pwin-pc-in { position:relative; isolation:isolate; padding:24px; border-radius:20px; background:#fff; }
.pwin-pc-in::before { content:""; position:absolute; z-index:-1; inset:0; border-radius:inherit; background:var(--pw-grad); opacity:.15; pointer-events:none; }
.pwin-pc-head { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.pwin .pwin-pc-head h3 { font:600 30px/36px var(--on-display); letter-spacing:-.04em; }
.pwin-sale { display:inline-flex; align-items:center; gap:4px; padding:4px 10px 4px 6px; border-radius:12px; background:lab(43.03 75.21 -86.57); box-shadow:0 1px 2px #0000000d,inset 0 0 0 1px #ffffff1a; color:#fff; font:500 14px/20px var(--on-sans); letter-spacing:.025em; text-transform:uppercase; }
.pwin-sale svg { width:16px; height:16px; }
.pwin-pc .pwin-cta { height:auto; min-height:52px; margin-top:24px; padding:12px 20px; border-radius:16px; background:#9133ea; color:#f2e6ff; font:500 18px/28px var(--on-sans); letter-spacing:0; }
.pwin-pc .pwin-cta:hover { background:#8127d6; }
/* Both plans in the plan card, the yearly one marked as the better deal. */
.pwin-pc-plans { margin-top:18px; }
.pwin-pc .pwin-hs-card { background:#fff; }
.pwin-pc .pwin-cta { margin-top:18px; }
.pwin-hs-best { margin-inline-start:auto; padding:3px 10px; border-radius:999px; background:#f1e9ff; color:#5f1dd6; font:600 12.5px/1.3 var(--on-sans); white-space:nowrap; }
/* The waitlist discount beside the plan name, as big as the name, with who gets it and the countdown under it. */
.pwin-pc-head .pwin-deal { gap:6px; padding:6px 14px 6px 10px; border-radius:14px; font:700 20px/1.2 var(--on-display); letter-spacing:-.01em; }
.pwin-pc-head .pwin-deal svg { width:22px; height:22px; }
.pwin-deal-sub { margin-top:8px !important; color:#5f1dd6; font:600 14.5px/1.4 var(--on-sans); }
.pwin-timer { display:inline-flex; align-items:center; gap:6px; margin-top:8px !important; padding:4px 10px; border-radius:999px; background:#fff1f0; color:#c2261b; font:600 13.5px/1.3 var(--on-sans); font-variant-numeric:tabular-nums; }
.pwin-timer::before { content:"⏱"; }
.pwin-bar-timer { margin-inline-start:8px; padding:1px 7px; border-radius:999px; background:#fff1f0; color:#c2261b; font-weight:600; font-variant-numeric:tabular-nums; }
.pwin-timer[hidden], .pwin-bar-timer[hidden] { display:none; }
.pwin-pc .pwin-cta { font-weight:600; }
/* Join wears the plan card's own gradient, on every button that joins. */
#onboarding .pwin-cta { background:linear-gradient(to right top,lab(64.41 63.03 19.21) 0%,lab(56.43 83.13 -64.64) 50%,lab(48.3 38.31 -81.97) 100%); color:#fff; font-weight:600; transition:filter .15s,transform .1s; }
#onboarding .pwin-cta:hover { filter:brightness(1.06); }
#onboarding .pwin-cta:active { transform:scale(.99); filter:brightness(.96); }
.pwin-li { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 40px; margin-top:32px; }
.pwin-li-col { display:flex; flex-direction:column; gap:16px; }
.pwin-li-h { margin-bottom:8px !important; color:rgb(10 10 10 / .6); font:500 14px/20px var(--on-sans); }
.pwin-li ul { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.pwin-li li { display:flex; gap:8px; transition:opacity .2s; }
.pwin-li-ic { display:grid; place-items:center; flex:none; width:20px; height:20.8px; color:lab(63.69 47.61 -59.21); }
.pwin-li-ic svg { width:20px; height:20px; }
.pwin-radio { flex:none; width:24px; height:24px; border-radius:50%; border:1.5px solid #cfc7dc; background:#fff; transition:background-color .2s,border-color .2s; }
.pwin-hs-card[aria-checked=true] .pwin-radio { border-color:var(--pw-purple); background:var(--pw-purple) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="m7 12.5 3.2 3.2L17 9" fill="none" stroke="white" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') center/18px no-repeat; }
.pwin-cta { display:flex; align-items:center; justify-content:center; width:100%; height:56px; min-height:0; padding:0 24px; border-radius:999px; background:var(--pw-purple); color:#fff; font:600 17px/1 var(--on-sans); letter-spacing:-.005em; transition:background .2s,transform .1s; }
.pwin-cta:hover { background:#6a1ff2; }
.pwin-cta:active { transform:scale(.99); }
.pwin-fine { margin-top:12px !important; text-align:center; font-size:13.5px; line-height:1.5; color:var(--pw-muted2); text-wrap:balance; }
.pwin-t { color:rgb(10 10 10); font:500 16px/1.3 var(--on-sans); }
.pwin-t b { font-weight:inherit; }
.pwin-only { display:inline-block; margin-inline-start:6px; padding:3px 7px; border:1px solid var(--pw-border); border-radius:99px; color:var(--pw-muted); font:600 11px/1 var(--on-sans); vertical-align:2px; white-space:nowrap; }
.pwin[data-chosen=weekly] .pwin-yo { opacity:.45; }

/* Sections. */
.pwin-sec { padding-top:112px; }
.pwin-sec-head { max-width:640px; margin:0 auto; text-align:center; }
.pwin-sec-head h3 { font-size:40px; line-height:1.1; letter-spacing:-.04em; }
.pwin-sec-head p { margin-top:12px; color:var(--pw-muted); font-size:17px; }
.pwin-sec.pwin-inside { padding-top:120px; }
.pwin-inside .pwin-sec-head h3 { font-size:38px; }
.pwin-inside .pwin-sec-head p { margin-top:14px; line-height:1.55; }
.pwin-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; align-items:stretch; margin-top:52px; }
.pwin-grp { display:grid; grid-row:span 4; grid-template-rows:subgrid; row-gap:0; padding:32px 30px 12px; border:1px solid var(--pw-border); border-radius:24px; background:#fff; }
.pwin-g-head { padding-bottom:24px; }
.pwin-grp h4 { font:700 21px/1.25 var(--on-display); letter-spacing:-.025em; }
.pwin-g-list { display:grid; grid-row:span 3; grid-template-rows:subgrid; row-gap:0; margin:0; padding:0; list-style:none; }
.pwin-g-list li { display:grid; grid-template-columns:48px minmax(0,1fr); column-gap:16px; align-items:start; padding:22px 0; border-top:1px solid var(--pw-hair); }
.pwin-grp:nth-child(1) { --c1:#a347f0; --c2:#7429ff; --c3:#4338ca; }
.pwin-grp:nth-child(2) { --c1:#f5a00b; --c2:#f26a12; --c3:#e5484d; }
.pwin-grp:nth-child(3) { --c1:#22a447; --c2:#0d9488; --c3:#166534; }
.pwin-g-list li:nth-child(1) { --c:var(--c1); }
.pwin-g-list li:nth-child(2) { --c:var(--c2); }
.pwin-g-list li:nth-child(3) { --c:var(--c3); }
.pwin-ic { display:grid; place-items:center; flex:none; width:48px; height:48px; border-radius:14px; background:var(--c); color:#fff; }
.pwin-ic svg { width:26px; height:26px; }
.pwin-ko { fill:var(--c); }
.pwin-g-t { margin-top:2px; font:600 15.5px/1.3 var(--on-sans); color:var(--pw-ink); letter-spacing:-.005em; }
.pwin-g-d { margin-top:6px; font-size:14.5px; line-height:1.55; color:var(--pw-muted); }
.pwin-tag { display:inline-block; margin-inline-start:6px; padding:3px 7px; border:1px solid var(--pw-border); border-radius:99px; color:var(--pw-muted); font:600 10.5px/1 var(--on-sans); letter-spacing:0; vertical-align:2px; white-space:nowrap; }

/* How the waitlist works. */
.pwin-how-card { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:80px; align-items:center; padding:64px; border:1px solid var(--pw-border); border-radius:28px; background:#fff; }
.pwin-how-left h3 { font-size:34px; line-height:1.12; letter-spacing:-.04em; }
.pwin-how-left > p { margin-top:14px; color:var(--pw-muted); font-size:17px; line-height:1.55; text-wrap:balance; }
.pwin-tl { margin:40px 0 0; padding:0; list-style:none; }
.pwin-tl li { position:relative; display:grid; grid-template-columns:36px minmax(0,1fr); column-gap:18px; padding-bottom:32px; }
.pwin-tl li:last-child { padding-bottom:0; }
.pwin-tl li:not(:last-child)::before { content:""; position:absolute; inset-inline-start:17px; top:36px; bottom:0; width:2px; background:var(--pw-border); }
.pwin-tl li:first-child::before { background:var(--pw-purple); }
.pwin-tl li:nth-child(2)::before { background:linear-gradient(var(--pw-purple),var(--pw-border)); }
.pwin-node { position:relative; z-index:1; display:grid; place-items:center; width:36px; height:36px; border:1px solid var(--pw-border); border-radius:99px; background:#fff; color:var(--pw-purple); }
.pwin-node svg { width:18px; height:18px; }
.pwin-node.pwin-on { background:var(--pw-purple); border-color:var(--pw-purple); color:#fff; }
.pwin-tl-t { margin-top:7px; font:600 17px/1.3 var(--on-display); color:var(--pw-ink); letter-spacing:-.015em; }
.pwin-tl-d { margin-top:5px; font-size:15px; line-height:1.55; color:var(--pw-muted); }
.pwin-hs { display:grid; gap:12px; }
.pwin-hs-card { display:block; width:100%; padding:22px 24px; border:1.5px solid var(--pw-border); border-radius:20px; background:#f7f6fa; text-align:start; cursor:pointer; transition:border-color .2s; }
.pwin-hs-card:hover { border-color:#cfc7dc; }
.pwin-hs-card[aria-checked=true] { border-color:var(--pw-purple); }
@keyframes pwin-in { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.pwin-hs-top { display:flex; align-items:center; gap:10px; }
.pwin-hs-card .pwin-radio { width:22px; height:22px; }
.pwin-hs-name { font:600 15px/1.2 var(--on-display); color:var(--pw-ink); letter-spacing:-.01em; }
.pwin-hs-row { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 14px; margin-top:12px; }
.pwin-hs-price { display:flex; align-items:baseline; gap:6px; }
.pwin-hs-price b { font:700 32px/1 var(--on-display); letter-spacing:-.04em; color:var(--pw-ink); }
.pwin-hs-price small { font:500 14.5px/1 var(--on-sans); color:var(--pw-muted2); }
.pwin-hs-total { font:500 14px/1.3 var(--on-sans); color:#4a4350; }
.pwin-hs-total s { color:#a9a3b1; }
.pwin-hs-off { display:flex; align-items:center; gap:6px; margin-top:12px; color:#15803d; font:600 13.5px/1.3 var(--on-sans); }
.pwin-hs-off svg { flex:none; width:16px; height:16px; }
.pwin-how-cta { margin-top:24px; }

/* Questions. */
.pwin-faq { max-width:720px; margin:44px auto 0; border-top:1px solid var(--pw-hair); }
.pwin-faq details { border-bottom:1px solid var(--pw-hair); }
.pwin-faq summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:24px 4px; cursor:pointer; list-style:none; font:600 17px/1.35 var(--on-display); color:var(--pw-ink); letter-spacing:-.01em; }
.pwin-faq summary::-webkit-details-marker { display:none; }
.pwin-pl { display:grid; place-items:center; flex:none; width:28px; height:28px; border:1px solid var(--pw-border); border-radius:99px; transition:transform .25s; }
.pwin-faq details[open] .pwin-pl { transform:rotate(45deg); }
.pwin-faq details p { max-width:620px; padding:0 4px 24px; color:var(--pw-muted); font-size:15.5px; }
.pwin-foot { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:72px !important; padding-bottom:8px; color:var(--pw-muted2); font:600 14px/1 var(--on-display); }
.pwin-foot img { display:block; width:22px; height:21px; opacity:.6; }

/* The sticky bar: shows once the first button has scrolled away. */
.pwin-bar { position:sticky; bottom:0; z-index:20; margin-top:-1px; background:#fff; border-top:1px solid var(--pw-hair); transform:translateY(110%); visibility:hidden; transition:transform .3s ease,visibility 0s linear .3s; }
.pwin-bar.pwin-bar-on { transform:none; visibility:visible; transition:transform .3s ease; }
.pwin-bar-in { display:flex; align-items:center; gap:16px; height:80px; }
.pwin-bar-in > div:first-child { min-width:0; flex:1 1 auto; }
.pwin-bar-name { font:600 15px/1.2 var(--on-display); color:var(--pw-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pwin-bar-sub { margin-top:2px; font-size:13px; color:var(--pw-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pwin-bar .pwin-cta { width:auto; height:52px; margin-inline-start:auto; padding:0 28px; flex:none; font-size:16px; white-space:nowrap; }

@media (prefers-reduced-motion:reduce) {
  .pwin-radio, .pwin-bar { transition:none; }
}
/* Narrower screens drop the outermost cards before they reach the edge. */
@media (max-width:1240px) { .pwin-k3 { display:none; } }
@media (max-width:1040px) { .pwin-k2 { display:none; } .pwin-hero-art { --card:132px; --x0:248px; --dx:84px; } }
@media (max-width:960px) {
  .pwin-groups { grid-template-columns:1fr; max-width:560px; margin-inline:auto; }
  .pwin-grp, .pwin-g-list { display:block; }
  .pwin-how-card { grid-template-columns:1fr; row-gap:44px; max-width:560px; margin:0 auto; padding:48px 40px; }
}
@media (max-width:860px) {
  .pwin-li { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:600px) {
  .pwin-wrap { padding:0 16px; }
  #onboarding[data-scene=paywall] .on-navigation { padding:0 16px; top:calc(var(--pwin-banner,40px) + 16px); }
  .pwin-top { margin-top:16px; }
  .pwin-hero { padding:18px 0 0; }
  .pwin-hero-art { height:200px; margin-top:16px; --card:84px; --x0:134px; --dx:36px; --y0:44px; --dy:6px; --r0:7deg; --dr:6deg; }
  .pwin-sky { bottom:-90px; height:520px; }
  .pwin-globe { width:226px; }
  .pwin-card { border-width:3px; border-radius:15px; }
  .pwin-k2, .pwin-k3 { display:none; }
  .pwin-card::after { inset:30% 0 0; }
  .pwin-cap { left:7px; right:6px; bottom:7px; }
  .pwin-card:not(.pwin-k0) .pwin-cap { display:none; }
  .pwin-cap small { display:none; }
  .pwin-cap b { font-size:.7rem; letter-spacing:-.02em; }
  .pwin-plans { padding-top:0; }
  .pwin-brand-name, .pwin-pro { font-size:21px; }
  .pwin-brand img { width:29px; height:28px; }
  #onboarding .pwin-hero h2 { font-size:34px; line-height:1.1; }
  .pwin-sub { margin-top:12px !important; font-size:16.5px; }
  .pwin-offer { padding:6px 12px; font-size:13px; gap:7px; }
  .pwin-offer svg { width:16px; height:16px; }
  .pwin-t { font-size:15.5px; }
  .pwin-sec { padding-top:88px; }
  .pwin-sec-head h3, .pwin-inside .pwin-sec-head h3 { font-size:30px; }
  .pwin-sec-head p { font-size:16px; }
  .pwin-groups { margin-top:36px; gap:16px; }
  .pwin-grp { padding:28px 22px 8px; border-radius:22px; }
  .pwin-grp h4 { font-size:20px; }
  .pwin-g-head { padding-bottom:18px; }
  .pwin-g-list li { padding:20px 0; column-gap:14px; }
  .pwin-how-card { padding:36px 22px 28px; row-gap:36px; border-radius:24px; }
  .pwin-how-left h3 { font-size:27px; }
  .pwin-how-left > p { margin-top:12px; font-size:16px; }
  .pwin-tl { margin-top:30px; }
  .pwin-tl li { column-gap:14px; padding-bottom:28px; }
  .pwin-tl-t { font-size:16.5px; }
  .pwin-hs-card { padding:18px; }
  .pwin-hs-price b { font-size:28px; }
  .pwin-how-cta .pwin-cta { font-size:16px; }
  .pwin-faq { margin-top:32px; }
  .pwin-faq summary { padding:22px 2px; font-size:16px; }
  .pwin-bar-in { height:72px; gap:12px; }
  .pwin-bar .pwin-cta { height:48px; padding:0 20px; font-size:15px; }
  .pwin-bar-name { font-size:14px; }
  .pwin-bar-sub { font-size:12.5px; }
}
@media (max-width:480px) {
  .pwin-long { display:none; }
  .pwin-short { display:inline; }
  .pwin-offer { min-height:32px; padding:4px 10px; gap:6px; font-size:clamp(11.5px,3.4vw,13px); white-space:nowrap; }
  .pwin-offer svg { width:15px; height:15px; }
  .pwin-top { height:36px; margin-top:10px; }
  #onboarding[data-scene=paywall] .on-navigation { top:calc(var(--pwin-banner,32px) + 10px); height:36px; }
  #onboarding[data-scene=paywall] #on-close { width:36px; height:36px; }
  #onboarding[data-scene=paywall] #on-lang-button { height:36px; padding:0 12px; font-size:12.5px; }
  .pwin-brand { gap:6px; }
  .pwin-brand img { width:24px; height:23px; }
  .pwin-brand-word { gap:5px; }
  .pwin-brand-name, .pwin-pro { font-size:18px; }
  .pwin-hero { padding:10px 0 0; }
  #onboarding .pwin-hero h2 { font-size:29px; line-height:1.12; }
  .pwin-sub { max-width:320px; margin-top:8px !important; font-size:14.5px; line-height:1.4; }
  .pwin-plans { padding-top:28px; }
  .pwin-pc-in { padding:20px; }
  .pwin .pwin-pc-head h3 { font-size:26px; line-height:32px; }
  .pwin-cta { height:52px; font-size:16px; }
  .pwin-fine { margin-top:10px !important; font-size:12.5px; }
  .pwin-bar .pwin-cta { height:46px; padding:0 16px; font-size:14px; }
}
/* "Use another email", under the name, for someone the level test already has the address of. */
.on-link{margin:4px 0 0;padding:4px 0;border:0;background:none;color:var(--on-muted,#555);font:inherit;font-size:14px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* The signup for someone from the level test: a four-week chart from their
   level to the next, and no chapter bar (they answered the test's questions). */
#onboarding[data-from=test] .on-progress, #onboarding[data-from=test] #on-step-label { visibility:hidden; }
#onboarding[data-scene=reassurance][data-figure=testpath] .on-scene { height:250px; background:#fff; border-radius:20px; }
@media (max-width:760px) { #onboarding[data-scene=reassurance][data-figure=testpath] .on-scene { height:200px; } }
#onboarding[data-figure=testpath] #on-art:has(.on-testpath-chart) { place-items:center; }
.on-testpath-chart { width:min(100%,460px); height:100%; }
.on-tp-line { stroke-dasharray:1; stroke-dashoffset:0; }
@media (prefers-reduced-motion:no-preference) {
  .on-tp-line { animation:on-tp-draw 1.1s cubic-bezier(.22,1,.36,1) both; }
  .on-tp-slova { animation-delay:.25s; }
}
@keyframes on-tp-draw { from { stroke-dashoffset:1; } }

/* The end of the path from a test (the signup and "You are on the list"):
   the picture and the text as one composition, no empty band between them.
   Side by side on a wide screen, the picture just above the text on a phone. */
#onboarding[data-from=test][data-scene=reassurance] .on-content { display:block; }
#onboarding[data-from=test][data-scene=reassurance] .on-content > * { margin-block:0; }
#onboarding[data-from=test] :is(.on-gate,.on-done) { padding:0; }
#onboarding[data-from=test][data-figure=fan] .on-scene { height:200px; background:#f6f1ff; border-radius:24px; }
#onboarding[data-from=test] .on-gate > p.on-offer, #onboarding[data-from=test] .on-done > p.on-offer {
  width:fit-content; max-width:100%; margin:0 auto 18px; padding:9px 14px; border-radius:12px; background:#e7f7ec; color:#15803d; font:600 14px/1.45 var(--on-sans); }
#onboarding[data-from=test] .on-done > p.on-offer { margin-top:16px; }
.on-fan { position:relative; display:flex; align-items:center; justify-content:center; width:100%; height:100%; }
#onboarding .on-fan img { flex:none; display:block; width:100px; height:125px; max-width:none; object-fit:cover; border:4px solid #fff; border-radius:20px; box-shadow:0 10px 24px #2a12541f; }
#onboarding .on-fan img:nth-child(1) { transform:rotate(-10deg) translate(22px,10px); }
#onboarding .on-fan img:nth-child(2) { position:relative; z-index:1; transform:translateY(-8px); }
#onboarding .on-fan img:nth-child(3) { transform:rotate(10deg) translate(-22px,10px); }
@media (min-width:761px) {
  #onboarding[data-from=test][data-scene=reassurance] .on-layout { flex-direction:row; align-items:center; justify-content:center; gap:56px; width:100%; max-width:1000px; margin:0 auto; }
  #onboarding[data-from=test][data-scene=reassurance] .on-say { flex:0 1 440px; max-width:440px; margin:0; }
  #onboarding[data-from=test][data-scene=reassurance] .on-panel { flex:0 1 400px; max-width:400px; margin:0; padding:0; }
  #onboarding[data-from=test][data-scene=reassurance] .on-content { flex:none; overflow:visible; }
  #onboarding[data-from=test][data-scene=reassurance] .on-controls { max-width:none; }
  #onboarding[data-from=test] :is(.on-gate,.on-done) { text-align:left; }
  #onboarding[data-from=test] :is(.on-gate,.on-done) > p { margin-left:0; margin-right:0; }
  #onboarding[data-from=test] .on-gate > p.on-offer, #onboarding[data-from=test] .on-done > p.on-offer { margin-left:0; }
  #onboarding[data-from=test][data-figure=fan] .on-scene { height:340px; }
  #onboarding[data-from=test][data-figure=testpath] .on-scene { height:300px; }
  #onboarding[data-from=test] .on-fan img { width:148px; height:185px; }
  #onboarding[data-from=test] :is(.on-gate,.on-done) h2 { text-align:left; margin-left:0; }
  #onboarding[data-from=test] #on-other-email { display:block; }
}
@media (max-width:760px) {
  #onboarding[data-from=test][data-figure=fan] .on-scene { height:180px; }
  #onboarding[data-from=test][data-figure=testpath] .on-scene { height:190px; }
  #onboarding[data-from=test] .on-panel { padding-top:10px; }
  /* The button follows the text instead of waiting at the foot of the screen. */
  #onboarding[data-from=test][data-scene=reassurance] :is(.on-panel,.on-content) { flex:none; }
  #onboarding[data-from=test][data-scene=reassurance] .on-controls { padding-top:6px; }
}
#onboarding[data-from=test] .on-testpath-chart { display:block; width:100%; height:auto; max-height:100%; margin:auto; }
/* Room for the picture beside the text on a wide screen. */
@media (min-width:761px) { #onboarding[data-from=test][data-scene=reassurance] { max-width:960px; } }

/* From the Duolingo English Test practice: the level now and the test day, as the test path chart */
.pwin-det { max-width:560px; margin:22px auto 0; padding:18px 18px 10px; border:1px solid #ece7f2; border-radius:22px; background:#fff; }
.pwin-det-k { margin:0 0 6px !important; color:#0d0d0d; font:600 17px/1.3 var(--on-display); letter-spacing:-.02em; }
.pwin-det .on-testpath-chart { display:block; width:100%; height:auto; }
@media (max-width:640px) { .pwin-det { margin-top:16px; padding:14px 10px 6px; border-radius:18px; } }


/* ── The short onboarding (25 October 2026) ──────────────────────────────────
   The landing's own sky behind every step, tinted by the part of the run the
   learner is in; the tutor's line over each question; two columns on a wide
   screen; the build scenes; the address; the learner's own cards. */
#onboarding { position:relative; }
.on-frame { position:relative; z-index:1; }
.on-sky { position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none; background:#fff; }
.on-sky > i { position:absolute; inset:0; opacity:0; transition:opacity .9s ease; }
.on-sky > i[data-tint=you] { background:linear-gradient(#fff 0%,#f4faff 38%,#eaf6ff 100%); }
.on-sky > i[data-tint=goal] { background:linear-gradient(#fff 0%,#f8f4ff 38%,#efe8ff 100%); }
.on-sky > i[data-tint=plan] { background:linear-gradient(#fff 0%,#f3fbf6 38%,#e4f6ea 100%); }
#onboarding[data-tint=you] .on-sky > i[data-tint=you],
#onboarding[data-tint=goal] .on-sky > i[data-tint=goal],
#onboarding[data-tint=plan] .on-sky > i[data-tint=plan] { opacity:1; }
/* The landing's rays and clouds rise from the foot of the page, faintly, so
   the white rows in front of them keep all their contrast. */
.on-sky > img { position:absolute; inset-inline:0; bottom:0; width:100%; height:58%; object-fit:cover; object-position:50% 100%; opacity:.5; mix-blend-mode:multiply; transition:opacity .9s ease; }
#onboarding[data-tint=goal] .on-sky > img { opacity:.32; }
#onboarding[data-tint=pay] .on-sky { display:none; }
/* Over the sky the controls have no band of their own; the list fades out
   above them instead. */
.on-controls { background:none; }
#onboarding:not([data-scene=paywall]) .on-content { -webkit-mask-image:linear-gradient(#000 calc(100% - 26px),#0000); mask-image:linear-gradient(#000 calc(100% - 26px),#0000); }
.on-segment { background:#fff; box-shadow:inset 0 0 0 1px #e4e0ea; }
#on-step-label { font-variant-numeric:tabular-nums; }

/* The tutor's line: a face, and the words written out beside it. */
.on-talk { display:flex; align-items:flex-start; gap:12px; margin:0 0 14px; cursor:default; text-align:start; }
.on-avatar { position:relative; flex:none; display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:#fff; box-shadow:0 0 0 1px #ebe6f2,0 4px 14px -6px rgba(60,30,120,.25); }
.on-avatar img { width:28px; height:auto; display:block; }
.on-voice { position:absolute; inset-inline-end:-6px; bottom:-3px; display:flex; align-items:flex-end; gap:2px; height:13px; padding:2px 4px; border-radius:99px; background:#7429ff; opacity:0; transform:scale(.6); transition:opacity .2s,transform .2s; }
.on-voice i { width:2px; height:100%; border-radius:2px; background:#fff; transform-origin:bottom; transform:scaleY(.35); }
.on-talk.is-talking .on-voice { opacity:1; transform:none; }
.on-talk.is-talking .on-voice i { animation:on-voice .62s ease-in-out infinite alternate; }
.on-voice i:nth-child(2) { animation-delay:-.21s !important; }
.on-voice i:nth-child(3) { animation-delay:-.42s !important; }
.on-voice i:nth-child(4) { animation-delay:-.1s !important; }
.on-voice i:nth-child(5) { animation-delay:-.33s !important; }
@keyframes on-voice { from { transform:scaleY(.3); } to { transform:scaleY(1); } }
.on-line { flex:1; min-width:0; min-height:1.5em; margin:10px 0 0; color:#5b5266; font:500 16px/1.5 var(--on-sans); text-wrap:pretty; }
.on-talk.is-talking .on-line-text::after { content:''; display:inline-block; width:2px; height:1em; margin-inline-start:2px; vertical-align:-2px; background:#7429ff; animation:on-caret .8s steps(1) infinite; }
@keyframes on-caret { 50% { opacity:0; } }
/* A chat reads from the start of the line, so the question does too. */
#onboarding:is([data-scene=setup],[data-scene=email]) .on-bubble,
#onboarding:not([data-scene=setup]):not([data-scene=email]):not([data-scene=reassurance]):not([data-scene=paywall]) .on-bubble { text-align:start; }
#onboarding:is([data-scene=setup],[data-scene=email]) .on-bubble h2,
#onboarding:not([data-scene=reassurance]):not([data-scene=paywall]) .on-bubble h2 { text-align:start; margin:0; font-weight:600; letter-spacing:-.03em; }
#onboarding .on-bubble .on-sub, #onboarding .on-bubble .on-hint { margin-inline:0; text-align:start; }
.on-bubble .on-lang-offer { margin:0 0 12px; }

/* A picked row ticks and moves on: a small press, then the next screen. */
.on-tiles button, .on-choices button, .on-grid button { box-shadow:0 1px 2px rgba(40,20,80,.04); }
button.is-chosen { animation:on-chosen .32s cubic-bezier(.22,1,.36,1); }
@keyframes on-chosen { 40% { transform:scale(.975); } 100% { transform:none; } }

/* Interests: small pills that wrap, under their group names. */
.on-group { margin:16px 4px 8px; color:#8a8196; font:600 11.5px/1.3 var(--on-sans); letter-spacing:.08em; text-transform:uppercase; }
.on-group:first-child { margin-top:2px; }
.on-tiles.on-tiles-chips { display:flex; flex-wrap:wrap; gap:8px; }
.on-tiles.on-tiles-chips button { min-height:46px; padding:8px 14px 8px 10px; gap:8px; border-radius:999px; font-size:15px; }
.on-tiles.on-tiles-chips .on-emoji { width:26px; height:26px; font-size:19px; }
.on-tiles.on-tiles-chips .on-tile-check { display:none; }

/* ── Two columns on a wide screen: the conversation on the left, the
   answers on the right, both centred in the window. */
@media (min-width:1000px) {
  #onboarding:is([data-scene=setup],[data-scene=email]),
  #onboarding:not([data-scene=reassurance]):not([data-scene=paywall]) { max-width:1120px; }
  #onboarding:is([data-scene=setup],[data-scene=email]) .on-layout,
  #onboarding:not([data-scene=reassurance]):not([data-scene=paywall]) .on-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,440px); gap:72px; align-items:center; padding:0 24px 12px; }
  #onboarding:is([data-scene=setup],[data-scene=email]) .on-say,
  #onboarding:not([data-scene=reassurance]):not([data-scene=paywall]) .on-say { max-width:520px; margin:0; align-self:center; }
  #onboarding:not([data-scene=reassurance]):not([data-scene=paywall]) .on-bubble h2 { font-size:clamp(36px,3.4vw,48px); line-height:1.08; }
  .on-line { font-size:18px; margin-top:9px; }
  .on-avatar { width:48px; height:48px; }
  .on-talk { margin-bottom:22px; }
  #onboarding .on-bubble .on-sub { font-size:16px; margin-top:14px; max-width:460px; }
  #onboarding:not([data-scene=reassurance]):not([data-scene=paywall]) .on-panel { max-width:none; height:100%; max-height:100%; justify-content:center; padding:0; }
  #onboarding:not([data-scene=reassurance]):not([data-scene=paywall]) .on-content { flex:0 1 auto; padding:4px 6px 14px; margin:0 -6px; }
  .on-controls { background:none; }
}

/* ── Putting the path together: three scenes, then the path ─────────────── */
#onboarding:is([data-figure=build],[data-figure=stats],[data-figure=done]) .on-say { display:none; }
#onboarding[data-scene=reassurance]:is([data-figure=build],[data-figure=stats],[data-figure=done]) .on-panel { max-width:560px; }
.on-show { text-align:center; padding:4px 0 0; }
.on-show-kicker { margin:0 0 6px; color:#7429ff; font:600 12px/1.4 var(--on-sans); letter-spacing:.1em; text-transform:uppercase; }
.on-show-stage { position:relative; display:grid; min-height:clamp(380px,58dvh,470px); }
.on-show-card { grid-area:1/1; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.on-show-figure { display:grid; place-items:center; width:100%; height:clamp(220px,34dvh,280px); margin-bottom:14px; }
#onboarding .on-show-card h2 { margin:0 0 8px; font-weight:600; letter-spacing:-.03em; }
.on-show-card > p { max-width:400px; margin:0 auto; color:#5f5a66; font:400 16px/1.6 var(--on-sans); text-wrap:pretty; }
.on-show-dots { display:flex; justify-content:center; gap:6px; margin-top:16px; }
.on-show-dots i { width:22px; height:4px; border-radius:99px; background:#e3dfe9; transition:background .4s; }
.on-show-dots i.is-on { background:#7429ff; }
/* Scene one: a call with the tutor. */
.on-call { display:flex; flex-direction:column; align-items:center; gap:10px; width:min(100%,320px); padding:18px 18px 16px; border-radius:28px; background:#fff; box-shadow:0 0 0 1px #ece7f3,0 18px 40px -22px rgba(60,30,120,.35); }
.on-call-face { position:relative; display:grid; place-items:center; width:84px; height:84px; border-radius:50%; background:linear-gradient(#f6f1ff,#ece3ff); }
.on-call-face img { width:52px; height:auto; }
.on-voice-big { inset-inline-end:-10px; bottom:0; height:20px; padding:3px 6px; gap:3px; opacity:1; transform:none; }
.on-voice-big i { width:3px; animation:on-voice .62s ease-in-out infinite alternate; }
.on-call-scene { display:flex; flex-direction:column; gap:1px; }
.on-call-scene b { font:600 16px/1.3 var(--on-display); letter-spacing:-.02em; color:#0d0d0d; }
.on-call-scene small { font-size:12.5px; color:#857c90; }
.on-call-row { display:flex; width:100%; }
.on-call-mine { justify-content:flex-end; }
.on-call-bubble { display:flex; align-items:center; gap:4px; height:36px; padding:0 14px; border-radius:18px; }
.on-call-them { background:#f2eefa; border-end-start-radius:6px; }
.on-call-them i { width:7px; height:7px; border-radius:50%; background:#a597bd; animation:on-dot 1.1s ease-in-out infinite; }
.on-call-them i:nth-child(2) { animation-delay:.15s; } .on-call-them i:nth-child(3) { animation-delay:.3s; }
@keyframes on-dot { 0%,60%,100% { transform:none; opacity:.55; } 30% { transform:translateY(-4px); opacity:1; } }
.on-call-you { background:#7429ff; border-end-end-radius:6px; }
.on-wave { display:flex; align-items:center; gap:3px; height:18px; }
.on-wave i { width:3px; height:100%; border-radius:2px; background:#fff; transform:scaleY(.3); animation:on-voice .5s ease-in-out infinite alternate; }
.on-wave i:nth-child(2n) { animation-delay:-.2s; } .on-wave i:nth-child(3n) { animation-delay:-.35s; }
/* Scene two and the plans: the learner's own cards, fanned like the landing's deck. */
.on-deck { position:relative; width:100%; height:100%; min-height:200px; }
.on-deck-card { --w:clamp(118px,15vw,150px); position:absolute; left:50%; top:50%; width:var(--w); aspect-ratio:3/4; margin:calc(var(--w) * -2 / 3) 0 0 calc(var(--w) / -2); border:4px solid #fff; border-radius:18px; overflow:hidden; background:#eee; box-shadow:0 14px 30px -14px rgba(40,20,80,.45); transform:translateX(var(--x,0)) translateY(var(--y,0)) rotate(var(--r,0deg)); }
.on-deck-card img { display:block; width:100%; height:100%; object-fit:cover; }
.on-deck-card::after { content:''; position:absolute; inset:45% 0 0; background:linear-gradient(transparent,rgba(10,6,20,.55)); }
.on-deck-card b { position:absolute; z-index:1; inset-inline:9px; bottom:8px; color:#fff; font:700 13px/1.2 var(--on-display); letter-spacing:-.01em; text-align:start; text-wrap:balance; }
.on-deck[data-count="1"] .on-deck-card { --r:-3deg; }
.on-deck[data-count="2"] [data-at="0"] { --x:-38%; --r:-8deg; }
.on-deck[data-count="2"] [data-at="1"] { --x:38%; --r:7deg; }
.on-deck[data-count="3"] [data-at="0"] { --x:-72%; --y:8%; --r:-12deg; }
.on-deck[data-count="3"] [data-at="1"] { --r:-1deg; z-index:2; }
.on-deck[data-count="3"] [data-at="2"] { --x:72%; --y:8%; --r:11deg; }
.on-deck[data-count="4"] [data-at="0"] { --x:-108%; --y:12%; --r:-15deg; }
.on-deck[data-count="4"] [data-at="1"] { --x:-38%; --r:-5deg; z-index:2; }
.on-deck[data-count="4"] [data-at="2"] { --x:38%; --r:5deg; z-index:2; }
.on-deck[data-count="4"] [data-at="3"] { --x:108%; --y:12%; --r:15deg; }
.on-deck[data-count="5"] [data-at="0"] { --x:-132%; --y:16%; --r:-18deg; }
.on-deck[data-count="5"] [data-at="1"] { --x:-68%; --y:4%; --r:-9deg; z-index:2; }
.on-deck[data-count="5"] [data-at="2"] { z-index:3; }
.on-deck[data-count="5"] [data-at="3"] { --x:68%; --y:4%; --r:9deg; z-index:2; }
.on-deck[data-count="5"] [data-at="4"] { --x:132%; --y:16%; --r:18deg; }
/* Scene three: the path, three stops down a dashed line. */
.on-trail { position:relative; display:grid; gap:12px; width:min(100%,340px); margin:0 auto; padding:0; list-style:none; text-align:start; }
.on-trail::before { content:''; position:absolute; inset-inline-start:23px; top:24px; bottom:24px; border-inline-start:2px dashed #cfc5e2; }
.on-trail li { position:relative; display:flex; align-items:center; gap:14px; padding:10px 14px 10px 10px; border-radius:20px; background:#fff; box-shadow:0 0 0 1px #ece7f3,0 10px 24px -18px rgba(60,30,120,.4); }
.on-trail-dot { display:grid; place-items:center; flex:none; width:28px; height:28px; border-radius:50%; background:#f2ebff; font:16px/1 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; }
.on-trail li > span:last-child { display:flex; flex-direction:column; min-width:0; }
.on-trail b { font:600 15px/1.3 var(--on-display); letter-spacing:-.02em; color:#0d0d0d; }
.on-trail small { font-size:12.5px; line-height:1.4; color:#857c90; }
/* The path: the learner's deck over the four cards. */
.on-ready-deck { height:clamp(150px,22dvh,190px); margin:0 auto 6px; }
.on-ready-deck .on-deck-card { --w:clamp(92px,11vw,112px); }
.on-ready-deck .on-deck-card b { font-size:11px; }
.on-build.is-ready h2 { margin-bottom:6px; }
.on-build.is-ready .on-stats { margin-top:18px; }
.on-stat { background:#fff; }

/* ── The address ─────────────────────────────────────────────────────────── */
.on-email-form { margin:0; }
.on-field-box { display:block; }
#on-email { min-height:60px; padding:16px 18px; border-radius:20px; font-size:17px; box-shadow:0 1px 2px rgba(40,20,80,.05); }
.on-email-deck { height:200px; margin-top:22px; }
.on-email-deck .on-deck-card { --w:112px; }
@media (max-height:700px) { .on-email-deck { display:none; } }

/* ── The plans: the learner's own path beside them ─────────────────────── */
.pwin-duo { display:block; }
.pwin-mine { display:flex; align-items:center; gap:16px; max-width:680px; margin:18px auto 0; padding:14px 16px; border-radius:24px; background:#fff; box-shadow:0 0 0 1px var(--pw-border,#e6e2ec); }
.pwin-mine-deck { flex:none; width:118px; height:104px; }
.pwin-mine-deck .on-deck { min-height:0; }
.pwin-mine-deck .on-deck-card { --w:56px; border-width:3px; border-radius:10px; }
.pwin-mine-deck .on-deck-card b { display:none; }
.pwin-mine-k { margin:0 0 6px; font:600 18px/1.25 var(--on-display); letter-spacing:-.02em; color:#0d0d0d; }
.pwin-mine-chips { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 6px; padding:0; list-style:none; }
.pwin-mine-chips li { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:99px; background:#f4f0fb; color:#3d3546; font:500 12.5px/1.4 var(--on-sans); }
.pwin-mine-sub { margin:0; color:var(--pw-muted,#6d6377); font-size:13px; line-height:1.5; }
.pwin-as { margin:10px 0 0; text-align:center; color:var(--pw-muted,#6d6377); font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.pwin-change { padding:0; border:0; background:none; color:#7429ff; font:600 13px/1.5 var(--on-sans); text-decoration:underline; text-underline-offset:3px; }
.pwin-error { margin:10px 0 0; color:#b42318; font-size:13px; line-height:1.5; text-align:center; }
.pwin-error:empty { display:none; }
.pwin-cta.is-busy { opacity:.85; cursor:progress; }
/* A wide screen: the path on the left, held in view, the plan on the right. */
@media (min-width:1000px) {
  .pwin-duo { display:grid; grid-template-columns:minmax(0,360px) minmax(0,600px); gap:28px; justify-content:center; align-items:start; padding-top:28px; }
  .pwin-duo .pwin-plans { padding-top:0; }
  .pwin-duo .pwin-pc { max-width:none; }
  .pwin-mine { position:sticky; top:24px; flex-direction:column; align-items:stretch; gap:0; margin:0; padding:22px 22px 24px; border-radius:28px; }
  .pwin-mine-deck { width:100%; height:230px; margin-bottom:14px; }
  .pwin-mine-deck .on-deck-card { --w:112px; border-width:4px; border-radius:16px; }
  .pwin-mine-deck .on-deck-card b { display:block; font-size:11.5px; }
  .pwin-mine-k { font-size:24px; margin-bottom:12px; }
  .pwin-mine-chips li { font-size:13.5px; padding:6px 12px; }
  .pwin-mine-sub { margin-top:8px; font-size:14px; }
}

/* ── On the list ─────────────────────────────────────────────────────────── */
.on-done-deck { height:clamp(170px,26dvh,220px); }
.on-done-tick { display:grid; place-items:center; width:48px; height:48px; margin:6px auto 12px !important; border-radius:50%; background:#16a34a; color:#fff !important; font:700 22px/1 var(--on-sans) !important; }

@media (max-width:760px) {
  .on-talk { gap:10px; margin-bottom:10px; }
  .on-avatar { width:38px; height:38px; }
  .on-avatar img { width:24px; }
  .on-line { font-size:15px; margin-top:7px; }
  #onboarding:not([data-scene=reassurance]):not([data-scene=paywall]) .on-say { margin-top:10px; }
  #onboarding:not([data-scene=reassurance]):not([data-scene=paywall]) .on-panel { padding-top:14px; }
  .on-show-stage { min-height:clamp(360px,62dvh,460px); }
  .on-deck-card { --w:clamp(96px,25vw,120px); }
}
@media (prefers-reduced-motion:reduce) {
  .on-sky > i, .on-sky > img { transition:none; }
}
/* Wide screens: the whole run keeps one width, so the bar never jumps; the
   path, once up, reads like the questions did: words left, cards right. */
.on-show, .on-show-stage { overflow:visible; }
#onboarding[data-figure=build] .on-content { overflow:hidden; }
#onboarding .on-bubble .on-hint { margin-top:10px; }
@media (min-width:1000px) {
  #onboarding[data-scene=reassurance] { max-width:1120px; }
  #onboarding[data-scene=reassurance][data-figure=build] .on-panel { max-width:720px; }
  #onboarding[data-scene=reassurance][data-figure=done] .on-panel { max-width:640px; }
  #onboarding[data-scene=reassurance][data-figure=stats] .on-panel { max-width:1072px; padding:0 24px; justify-content:center; }
  #onboarding[data-figure=stats] .on-content { flex:0 1 auto; -webkit-mask-image:none; mask-image:none; }
  .on-build.is-ready { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,440px); column-gap:72px; align-items:center; text-align:start; padding:0; }
  .on-build.is-ready > .on-ready-deck { grid-column:1; width:100%; max-width:480px; height:250px; margin:0 0 22px; }
  .on-build.is-ready > .on-ready-deck .on-deck-card { --w:128px; }
  .on-build.is-ready > h2 { grid-column:1; margin:0 0 10px !important; text-align:start !important; font-size:clamp(36px,3.4vw,48px) !important; line-height:1.08 !important; font-weight:600 !important; letter-spacing:-.03em !important; }
  .on-build.is-ready > p { grid-column:1; margin:0 !important; font-size:16px !important; }
  .on-build.is-ready > .on-stats { grid-column:2; grid-row:1 / span 3; margin:0 !important; max-width:none; }
  #onboarding[data-scene=reassurance][data-figure=stats] .on-controls { width:100%; max-width:440px; margin-inline:auto 0; }
}
/* The figure screens centre their one block in a column, full width. */
#onboarding[data-scene=reassurance] .on-content { flex-direction:column; }
#onboarding[data-scene=reassurance] .on-content > * { width:100%; }
/* One message per screen (replaces the separate line and question above):
   the mark on its own, no disc behind it; a short muted line, then the
   question, typed out together. Every letter is laid out from the start and
   fades in, so the rows under it never move. */
.on-msg { cursor:default; }
.on-mark { display:block; width:34px; height:auto; margin:0 0 12px; transform-origin:50% 90%; }
.on-msg.is-talking .on-mark { animation:on-bob .42s ease-in-out infinite alternate; }
@keyframes on-bob { from { transform:none; } to { transform:translateY(-2px) scale(1.04); } }
.on-ack { display:block; margin:0 0 6px; color:#7a7186; font:500 16px/1.45 var(--on-sans); letter-spacing:0; }
.on-ch { opacity:0; transition:opacity .12s linear; }
.on-ch.on { opacity:1; }
@media (min-width:1000px) {
  .on-mark { width:42px; margin-bottom:18px; }
  .on-ack { font-size:19px; margin-bottom:10px; }
}
@media (prefers-reduced-motion:reduce) { .on-ch { opacity:1; transition:none; } }

/* ── The picture beside each screen ────────────────────────────────────────
   On a wide screen the left half is one light violet panel, edge to edge and
   square, with a drawing of what the screen asks about; the questions sit on
   white on the right, the line, the question and the options in one column.
   The build and the last screen show the tutor in the panel. Below 1000px the
   panel goes and the run keeps its own one-column look. */
.on-side { display:none; }
@media (min-width:1000px) {
  body.onboarding-open:has(#onboarding[data-side]) #stage { padding:0; }
  #onboarding[data-side] { max-width:none !important; flex-direction:row; }
  #onboarding[data-side] .on-sky { display:none; }
  #onboarding[data-side] .on-side { position:relative; display:flex; align-items:center; justify-content:center; flex:0 0 50%; min-width:0; overflow:hidden; background:#f1ecff; }
  #onboarding[data-side] .on-frame { flex:1 1 0; min-width:0; padding:20px max(32px,calc((50vw - 560px) / 2)) 28px; }
  #onboarding[data-side] .on-layout { display:flex !important; flex-direction:column; justify-content:center; gap:0 !important; padding:0 !important; }
  #onboarding[data-side] .on-say { width:100%; max-width:none !important; margin:0 !important; }
  #onboarding[data-side]:not([data-scene=reassurance]) .on-bubble h2 { font-size:clamp(28px,2.5vw,38px); line-height:1.12; }
  #onboarding[data-side] .on-panel { flex:0 1 auto; width:100%; max-width:none !important; height:auto !important; max-height:none; min-height:0; justify-content:flex-start; padding:22px 0 0 !important; }
  #onboarding[data-side] .on-content { flex:0 1 auto; }
  /* The build, the path and the last screen: one column beside the tutor. */
  #onboarding[data-side][data-scene=reassurance] .on-layout { justify-content:center; }
  #onboarding[data-side] .on-build.is-ready { display:block; text-align:start; }
  #onboarding[data-side] .on-build.is-ready > .on-ready-deck { width:100%; max-width:none; height:220px; margin:0 0 18px; }
  #onboarding[data-side] .on-build.is-ready > .on-stats { margin-top:18px !important; }
  #onboarding[data-side][data-scene=reassurance][data-figure=stats] .on-controls { max-width:none; margin:0; }
}
.on-side-art { display:flex; align-items:center; justify-content:center; width:100%; height:100%; }
.on-side-art img { display:block; width:min(72%,460px); max-height:76%; height:auto; }

/* The tutor at the foot of the panel; while the path is put together, a card
   of what it is built from floats above her shoulder. */
.on-tutor-scene { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; width:100%; height:100%; padding:0 6%; }
.on-tutor { display:block; width:min(80%,440px); height:auto; margin-top:auto; filter:drop-shadow(0 18px 30px rgba(43,35,80,.12)); }
.on-tutor-card { position:relative; z-index:1; width:min(86%,400px); margin:auto 0 -8px; padding:18px 20px; border-radius:22px; background:#fff; box-shadow:0 14px 40px rgba(43,35,80,.10),0 1px 0 rgba(43,35,80,.05); color:#2b2350; text-align:start; font:500 15px/1.45 var(--on-sans); }
.on-tutor-card p { margin:0; }
.tc-label { margin:0 0 12px !important; color:#7429ff; font:600 12px/1.4 var(--on-sans); letter-spacing:.1em; text-transform:uppercase; }
.tc-goals { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.tc-goals li { display:flex; align-items:center; gap:12px; padding:10px 12px; border:1.5px solid #ebe5f6; border-radius:14px; }
.tc-emoji { flex:none; font-size:20px; line-height:1; }
.tc-goals li span[dir] { flex:1; min-width:0; }
.tc-goals li b { display:grid; place-items:center; flex:none; width:22px; height:22px; border-radius:50%; background:#7429ff; color:#fff; font-size:12px; }

/* ── Micro-animations ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion:no-preference) {
  @keyframes on-side-rise { from { opacity:0; transform:translateY(16px) scale(.98); } to { opacity:1; transform:none; } }
  @keyframes on-side-float { 50% { transform:translateY(-7px); } }
  @keyframes on-side-sway { 0%,100% { transform:rotate(0); } 50% { transform:rotate(-1.2deg); } }
  @keyframes on-side-pop { 0% { opacity:0; transform:scale(.6); } 70% { transform:scale(1.12); } 100% { opacity:1; transform:none; } }
  /* A new picture rises in; once in, it floats. */
  .on-side > * { animation:on-side-rise .6s cubic-bezier(.22,1,.36,1) both; }
  .on-side-art img { animation:on-side-float 6s ease-in-out .6s infinite; }
  .on-tutor { transform-origin:50% 100%; animation:on-side-sway 5.5s ease-in-out .8s infinite; }
  .on-tutor-card { animation:on-side-rise .55s cubic-bezier(.22,1,.36,1) .25s both, on-side-float 7s ease-in-out 1.2s infinite; }
  .tc-goals li { animation:on-side-rise .45s cubic-bezier(.22,1,.36,1) both; }
  .tc-goals li:nth-child(1) { animation-delay:.55s; } .tc-goals li:nth-child(2) { animation-delay:.7s; } .tc-goals li:nth-child(3) { animation-delay:.85s; }
  .tc-goals li b { animation:on-side-pop .4s cubic-bezier(.22,1.4,.36,1) both; }
  .tc-goals li:nth-child(1) b { animation-delay:.9s; } .tc-goals li:nth-child(2) b { animation-delay:1.05s; } .tc-goals li:nth-child(3) b { animation-delay:1.2s; }
  /* Options answer the finger: a lift on hover, a press, a tick that pops. */
  .on-tiles button, .on-choices button, .on-grid button, .on-chips button { transition:transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
  .on-tiles button:not(:disabled):hover, .on-choices button:not(:disabled):hover, .on-grid button:not(:disabled):hover, .on-chips button:not(:disabled):hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(43,35,80,.07); }
  .on-tiles button:not(:disabled):active, .on-choices button:not(:disabled):active, .on-grid button:not(:disabled):active, .on-chips button:not(:disabled):active { transform:scale(.98); }
  [aria-pressed=true] .on-tile-check, [aria-pressed=true] .on-choice-check { animation:on-side-pop .3s cubic-bezier(.22,1.4,.36,1) both; }
  .on-continue { transition:transform .16s ease, filter .16s ease, opacity .16s ease; }
  .on-continue:not(:disabled):active { transform:scale(.98); }
}

/* ── Fit the screen ────────────────────────────────────────────────────────
   One tap answers it: no Continue to wait for. */
#onboarding[data-single=true] #on-controls .on-continue { display:none; }
/* Beside the picture the column is half the width, so the message is tighter
   and long lists go into columns, to keep every option in view. */
@media (min-width:1000px) {
  #onboarding[data-side] .on-frame { gap:10px; padding-top:16px; padding-bottom:18px; }
  #onboarding[data-side] .on-mark { width:32px; margin-bottom:10px; }
  #onboarding[data-side] .on-ack { font-size:16px; margin-bottom:6px; }
  #onboarding[data-side]:not([data-scene=reassurance]) .on-bubble h2 { font-size:clamp(24px,2.1vw,30px); line-height:1.15; }
  #onboarding[data-side] .on-panel { padding-top:16px !important; }
  #onboarding[data-side] :is(.on-tiles,.on-choices,.on-grid) button { min-height:52px; padding:9px 14px; gap:12px; }
  #onboarding[data-side]:is([data-kind=target],[data-kind=native]) .on-tiles { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #onboarding[data-side]:is([data-kind=target],[data-kind=native]) .on-tiles button { gap:10px; padding:8px 12px; }
  #onboarding[data-side]:is([data-kind=level],[data-kind=reason]) .on-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #onboarding[data-side][data-many=true] .on-choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #onboarding[data-side] .on-choices, #onboarding[data-side] .on-grid { margin-bottom:10px; }
  #onboarding[data-side] .on-custom-answer { min-height:52px; }
  #onboarding[data-side] .on-search { min-height:46px; margin-bottom:8px; }
  #onboarding[data-side] .on-group { margin:6px 4px 4px; }
  #onboarding[data-side] .on-tiles.on-tiles-chips { gap:6px; }
  #onboarding[data-side] .on-tiles.on-tiles-chips button { min-height:38px; padding:5px 12px 5px 8px; font-size:14px; }
  #onboarding[data-side] .on-tiles.on-tiles-chips .on-emoji { width:22px; height:22px; font-size:16px; }
}
/* The three word rounds: one drawing, a colour per round, easiest first. */
.on-side-art[data-round="1"] img { filter:hue-rotate(150deg) saturate(1.1); }
.on-side-art[data-round="2"] img { filter:hue-rotate(300deg) saturate(1.15); }

/* ── The ending ────────────────────────────────────────────────────────────
   Putting the path together: three rows, each one of the things it is built
   from, ticked in turn under a bar that fills with them. */
.on-making { width:100%; max-width:480px; margin:0 auto; text-align:start; }
#onboarding .on-making h2 { margin:0 0 18px; font-weight:600; letter-spacing:-.03em; text-align:start; }
.on-making-bar { height:6px; margin:0 0 22px; overflow:hidden; border-radius:99px; background:#ece6f7; }
.on-making-bar i { display:block; width:6%; height:100%; border-radius:inherit; background:#7429ff; transition:width 1s cubic-bezier(.22,1,.36,1); }
.on-making-steps { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.on-making-steps li { display:flex; align-items:center; gap:14px; padding:14px 16px; border:1.5px solid #ece7f3; border-radius:18px; background:#fff; transition:opacity .35s ease, border-color .35s ease, box-shadow .35s ease; }
.on-making-steps li[data-state=waiting] { opacity:.45; }
.on-making-steps li[data-state=working] { border-color:#cdb8ff; box-shadow:0 8px 24px -14px rgba(116,41,255,.45); }
.on-making-dot { display:grid; place-items:center; flex:none; width:28px; height:28px; border:2px solid #d9d2e6; border-radius:50%; }
.on-making-steps li[data-state=working] .on-making-dot { border-color:#7429ff; border-top-color:transparent; }
.on-making-steps li[data-state=done] .on-making-dot { border-color:#16a34a; background:#16a34a; }
.on-making-steps li[data-state=done] .on-making-dot i::before { content:"✓"; color:#fff; font:700 14px/1 var(--on-sans); }
.on-making-text b { display:block; font:600 16px/1.3 var(--on-sans); color:#1b1523; }
.on-making-text small { display:block; margin-top:2px; color:#6d6377; font:400 14px/1.45 var(--on-sans); }
/* The path, and where to send it, on one screen. */
.on-plan-save { margin-top:20px; text-align:start; }
#onboarding .on-plan-save .on-plan-ask { margin:0 0 8px !important; color:#1b1523 !important; font:600 17px/1.3 var(--on-sans) !important; }
#onboarding .on-plan-save .on-plan-note { margin:8px 0 0 !important; color:#7a7186 !important; font:400 13px/1.5 var(--on-sans) !important; }
.on-plan-save .on-email-form { margin:0; }
@media (min-width:1000px) {
  /* Beside the tutor the learner's cards are in the panel, not repeated here. */
  #onboarding[data-side] .on-build.is-ready > .on-ready-deck { display:none; }
  #onboarding[data-side] .on-build.is-ready > h2 { font-size:clamp(28px,2.4vw,34px) !important; }
  #onboarding[data-side] .on-build.is-ready .on-stat { min-height:58px; padding:9px 14px; }
  #onboarding[data-side] .on-build.is-ready > .on-stats { gap:8px; margin-top:16px !important; }
}

/* The tutor: a soft light behind her, her pose for the moment. */
.on-tutor-scene { position:relative; }
.on-tutor-halo { position:absolute; left:50%; bottom:6%; width:min(74%,460px); aspect-ratio:1; border-radius:50%; background:radial-gradient(circle,rgba(255,255,255,.95) 0%,rgba(255,255,255,.55) 42%,rgba(255,255,255,0) 70%); transform:translateX(-50%); pointer-events:none; }
.on-tutor { position:relative; z-index:1; width:min(86%,520px); max-height:84%; object-fit:contain; object-position:50% 100%; }
/* The learner's own cards, held up beside her shoulder. */
.on-tutor-deck { position:absolute; top:9%; inset-inline-end:6%; z-index:2; width:auto; margin:0; padding:14px 16px 10px; rotate:4deg; }
.on-tutor-deck .on-deck { width:220px; height:150px; min-height:0; }
.on-tutor-deck .on-deck-card { --w:92px; }
.on-tutor-scene:has(.on-tutor-deck) .on-tutor { translate:-8% 0; }
@media (prefers-reduced-motion:no-preference) {
  @keyframes on-making-spin { to { transform:rotate(360deg); } }
  @keyframes on-halo { 50% { transform:translateX(-50%) scale(1.05); opacity:.85; } }
  .on-making-steps li[data-state=working] .on-making-dot { animation:on-making-spin .8s linear infinite; }
  .on-making-steps li[data-state=done] .on-making-dot { animation:on-side-pop .35s cubic-bezier(.22,1.4,.36,1) both; }
  .on-tutor-halo { animation:on-halo 4.5s ease-in-out infinite; }
}

/* The plans beside the tutor: her and the learner's path on the left, held in
   view, the plans and the rest of the page scrolling on the right. The page's
   own hero art and path card give way to the panel. */
@media (min-width:1000px) {
  #onboarding[data-side][data-scene=paywall] .on-frame { padding:0; }
  #onboarding[data-side] .pwin-hero-art, #onboarding[data-side] .pwin-duo > .pwin-mine { display:none; }
  #onboarding[data-side] .pwin-wrap { max-width:none; padding:0 max(28px,calc((50vw - 600px) / 2)); }
  #onboarding[data-side] .pwin-hero { padding-top:12px; }
  #onboarding[data-side] .pwin-duo { display:block; padding-top:20px; }
  #onboarding[data-side] .pwin-groups { grid-template-columns:minmax(0,1fr); gap:14px; margin-top:28px; }
  #onboarding[data-side] .pwin-how-card { grid-template-columns:minmax(0,1fr); row-gap:28px; padding:32px; }
  /* Her card is the path itself, the same one the page used to show. */
  .on-tutor-mine { width:min(88%,380px); margin:auto 0 -18px; padding:0; overflow:hidden; }
  .on-tutor-mine .pwin-mine { position:static; display:flex; flex-direction:column; gap:0; margin:0; padding:18px 18px 16px; border:0; border-radius:0; background:none; box-shadow:none; }
  .on-tutor-mine .pwin-mine-deck { width:100%; height:150px; margin-bottom:10px; }
  .on-tutor-mine .pwin-mine-deck .on-deck { min-height:0; }
  .on-tutor-mine .pwin-mine-deck .on-deck-card { --w:92px; }
  .on-tutor-mine .pwin-mine-k { margin:0 0 8px; font:600 18px/1.25 var(--on-sans); }
  .on-tutor-scene:has(.on-tutor-mine) .on-tutor { max-height:58%; }
}
/* A phone has no panel, so the path keeps its cards above it, smaller, and
   its rows lose their second line: the address has to be in view. */
@media (max-width:999px) {
  .on-build.is-ready > .on-ready-deck { height:118px; min-height:0; margin-bottom:4px; }
  .on-build.is-ready > .on-ready-deck .on-deck { min-height:0; }
  .on-build.is-ready > .on-ready-deck .on-deck-card { --w:78px; }
  .on-build.is-ready .on-stats { gap:6px; }
  .on-build.is-ready .on-stat { min-height:48px; padding:7px 12px; }
  .on-build.is-ready .on-stat-label { display:none; }
  .on-plan-save { margin-top:12px; }
}

/* ── The ring: putting the path together ──────────────────────────────────*/
.on-ring { position:relative; display:grid; place-items:center; width:132px; height:132px; margin:0 0 22px; }
.on-ring svg { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }
.on-ring circle { fill:none; stroke-width:9; }
.on-ring-track { stroke:#ece6f7; }
.on-ring-fill { stroke:#7429ff; stroke-linecap:round; }
.on-ring b { color:#1b1523; font:700 30px/1 var(--on-sans); font-variant-numeric:tabular-nums; letter-spacing:-.02em; }
.on-making .on-making-bar { display:none; }

/* ── The plan ──────────────────────────────────────────────────────────── */
.on-plan { display:flex; flex-direction:column; gap:12px; text-align:start; }
.on-plan-hero { position:relative; display:flex; align-items:center; gap:10px; min-height:128px; padding:18px 8px 18px 22px; overflow:hidden; border-radius:24px; background:linear-gradient(135deg,#6a1fff 0%,#8f4dff 55%,#b884ff 100%); color:#fff; box-shadow:0 18px 40px -24px rgba(106,31,255,.7); }
.on-plan-hero::after { content:""; position:absolute; inset:auto -40px -70px auto; width:200px; height:200px; border-radius:50%; background:rgba(255,255,255,.12); pointer-events:none; }
.on-plan-head { position:relative; z-index:1; flex:1; min-width:0; }
#onboarding .on-plan-hero h2 { margin:0 0 6px !important; color:#fff !important; font:600 clamp(22px,2vw,28px)/1.15 var(--on-sans) !important; letter-spacing:-.02em !important; text-align:start !important; }
#onboarding .on-plan-hero p { margin:0 !important; color:rgba(255,255,255,.86) !important; font:400 14px/1.45 var(--on-sans) !important; }
#onboarding .on-plan-hero .on-plan-deck { position:relative; z-index:1; flex:none; width:176px; height:118px !important; min-height:0; margin:0 !important; display:block !important; }
.on-plan-deck .on-deck { min-height:0; }
.on-plan-deck .on-deck-card { --w:70px; border-width:3px; }
.on-plan-list { margin:0; padding:2px 0; list-style:none; border:1.5px solid #ece7f3; border-radius:20px; background:#fff; }
.on-plan-list li { display:flex; align-items:center; gap:14px; padding:10px 16px; }
.on-plan-list li + li { border-top:1px solid #f1edf6; }
.on-plan-icon { display:grid; place-items:center; flex:none; width:38px; height:38px; border-radius:12px; font-size:19px; }
.on-plan-row { display:flex; flex-direction:column; min-width:0; }
.on-plan-row b { color:#1b1523; font:600 15.5px/1.3 var(--on-sans); }
.on-plan-row small { color:#857c90; font:400 13px/1.4 var(--on-sans); }
.on-plan-chart { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 18px; border-radius:20px; background:#f5f0ff; }
.on-plan-chart-head { margin:0; }
.on-plan-chart-head b { display:block; color:#6a1fff; font:700 20px/1.2 var(--on-sans); }
.on-plan-chart-head small { color:#6d6377; font:500 13px/1.4 var(--on-sans); }
.on-plan-bars { display:flex; align-items:flex-end; gap:7px; height:52px; }
.on-plan-bars i { position:relative; width:16px; height:100%; overflow:hidden; border-radius:6px; background:#e8dffb; }
.on-plan-bars span { position:absolute; inset:auto 0 0; border-radius:6px; background:#b99cff; }
.on-plan-bars [data-week="1"] span { height:28%; } .on-plan-bars [data-week="2"] span { height:52%; }
.on-plan-bars [data-week="3"] span { height:76%; } .on-plan-bars [data-week="4"] span { height:100%; background:#6a1fff; }
.on-plan .on-plan-save { margin-top:2px; }
@media (max-width:999px) {
  .on-plan { gap:10px; }
  .on-plan-hero { min-height:0; padding:14px 6px 14px 16px; }
  #onboarding .on-plan-hero .on-plan-deck { width:120px; height:86px !important; }
  .on-plan-deck .on-deck-card { --w:54px; }
  .on-plan-list li { padding:8px 12px; }
  .on-plan-row small { display:none; }
  .on-plan-chart { padding:10px 14px; }
  .on-plan-bars { height:38px; }
}
@media (prefers-reduced-motion:no-preference) {
  @keyframes on-plan-grow { from { transform:scaleY(0); } }
  .on-plan-bars span { transform-origin:50% 100%; animation:on-plan-grow .7s cubic-bezier(.22,1,.36,1) both; }
  .on-plan-bars [data-week="1"] span { animation-delay:.5s; } .on-plan-bars [data-week="2"] span { animation-delay:.62s; }
  .on-plan-bars [data-week="3"] span { animation-delay:.74s; } .on-plan-bars [data-week="4"] span { animation-delay:.86s; }
}
/* The ring and its title centred over the rows, as in Learna's and Praktika's. */
.on-making .on-ring { width:150px; height:150px; margin:0 auto 20px; }
.on-making .on-ring b { font-size:34px; }
#onboarding .on-making h2 { text-align:center; }
#onboarding .on-build.is-ready.on-plan { display:flex; flex-direction:column; align-items:stretch; gap:12px; text-align:start; }

/* ── Calmer, the way Learna ends: white, ink text, colour only in the details.
   The ring holds the tutor's face, the percentage sits under it, the rows are
   a plain list with a green tick each. The plan reads as white cards. */
.on-making .on-ring { width:138px; height:138px; margin:0 auto 8px; }
.on-ring-track { stroke:#eef0f4; }
.on-ring-fill { stroke:#3b82f6; }
.on-ring-face { position:absolute; inset:17px; width:calc(100% - 34px); height:calc(100% - 34px); border-radius:50%; object-fit:cover; object-position:50% 14%; background:#eaf2ff; }
.on-making .on-ring-num { display:block; margin:0 0 6px; text-align:center; color:#3b82f6; font:700 22px/1.2 var(--on-sans); font-variant-numeric:tabular-nums; }
#onboarding .on-making h2 { margin:0 0 22px; color:#1f2a44; }
.on-making-steps { gap:0; }
.on-making-steps li { padding:12px 2px; border:0; border-radius:0; background:none; box-shadow:none !important; }
.on-making-steps li + li { border-top:1px solid #f0f1f4; }
.on-making-steps li[data-state=waiting] { opacity:.4; }
.on-making-steps li[data-state=working] { border-color:#f0f1f4; }
.on-making-dot { order:2; margin-inline-start:auto; width:24px; height:24px; border-width:2px; border-color:#e3e6ec; }
.on-making-steps li[data-state=working] .on-making-dot { border-color:#3b82f6; border-top-color:transparent; }
.on-making-steps li[data-state=done] .on-making-dot { border-color:#22a55a; background:#22a55a; }
.on-making-text b { color:#1f2a44; }
.on-making-text small { color:#6b7280; }

.on-plan-hero { background:#fff; color:#1f2a44; border:1.5px solid #eceef2; box-shadow:0 10px 30px -22px rgba(31,42,68,.35); }
.on-plan-hero::after { display:none; }
#onboarding .on-plan-hero h2 { color:#1f2a44 !important; }
#onboarding .on-plan-hero p { color:#6b7280 !important; }
.on-plan-list { border-color:#eceef2; }
.on-plan-list li + li { border-top-color:#f1f2f5; }
.on-plan-row b { color:#1f2a44; }
.on-plan-chart { background:#f6f8fb; border:1.5px solid #eef0f4; }
.on-plan-chart-head b { color:#1f2a44; }
.on-plan-chart-head small { color:#6b7280; }
.on-plan-bars i { background:#e7ebf2; }
.on-plan-bars span { background:#a9c6f7; }
.on-plan-bars [data-week="4"] span { background:#3b82f6; }
#onboarding .on-plan-save .on-plan-ask { color:#1f2a44 !important; }
/* Only her face in the ring. */
.on-ring-face { overflow:hidden; }
.on-ring-face img { display:block; width:200%; max-width:none; height:auto; margin:-6% 0 0 -48%; }

/* ── The plan, final: the page's own ink, white cards, green for what is
   good news, purple only on the button. */
#onboarding .on-making h2, .on-making-text b, .on-plan-row b, #onboarding .on-plan-hero h2, #onboarding .on-plan-save .on-plan-ask { color:#0d0d0d !important; }
.on-making-text small, .on-plan-row small, #onboarding .on-plan-hero p { color:#6d6377 !important; }
.on-plan-hero { min-height:0; padding:16px 8px 16px 20px; border-color:#ece8f1; box-shadow:none; }
.on-plan-chip { display:inline-flex; align-items:center; margin:0 0 8px !important; padding:3px 10px; border-radius:99px; background:#e6f7ec; color:#15803d !important; font:600 12px/1.5 var(--on-sans) !important; }
.on-plan-list { border-color:#ece8f1; }
.on-plan-gets { display:grid; gap:7px; margin:2px 0 0; padding:0 4px; list-style:none; }
.on-plan-gets li { display:flex; align-items:flex-start; gap:10px; color:#3d3546; font:400 14.5px/1.45 var(--on-sans); }
.on-plan-gets b { color:#0d0d0d; font-weight:600; }
.on-plan-tick { display:grid; place-items:center; flex:none; width:20px; height:20px; margin-top:1px; border-radius:50%; background:#22a55a; color:#fff; font:700 11px/1 var(--on-sans); }
.on-plan-offer { display:flex; align-items:center; gap:8px; margin:0 0 12px !important; padding:9px 14px; border-radius:14px; background:#d6fbdf; color:#0d3d1f !important; font:600 14px/1.35 var(--on-sans) !important; }
.on-plan-offer svg { flex:none; width:18px; height:18px; }
@media (max-width:999px) { .on-plan-gets { display:none; } }

/* What Slova does, floating around the tutor beside the plan: six small
   cards, three a side, each drifting on its own beat. */
.on-features { position:absolute; inset:0; z-index:2; margin:0; padding:0; list-style:none; pointer-events:none; }
.on-features li { position:absolute; display:flex; align-items:center; gap:9px; max-width:44%; padding:9px 14px 9px 10px; border-radius:16px; background:#fff; box-shadow:0 12px 30px -16px rgba(43,35,80,.35),0 0 0 1px rgba(43,35,80,.05); color:#0d0d0d; font:600 14px/1.25 var(--on-sans); }
.on-feature-ic { display:grid; place-items:center; flex:none; width:30px; height:30px; border-radius:10px; background:#f3efff; color:#7429ff; }
.on-feature-ic svg { width:17px; height:17px; }
.on-features li:nth-child(2) .on-feature-ic { background:#e6f7ec; color:#15803d; }
.on-features li:nth-child(3) .on-feature-ic { background:#e7f1ff; color:#2563eb; }
.on-features li:nth-child(4) .on-feature-ic { background:#fff1e6; color:#c2410c; }
.on-features li:nth-child(5) .on-feature-ic { background:#fdeaf3; color:#be185d; }
.on-features li:nth-child(6) .on-feature-ic { background:#e6f8f7; color:#0f766e; }
.on-features [data-at="0"] { top:10%; left:7%; rotate:-3deg; }
.on-features [data-at="1"] { top:28%; left:3%; rotate:2deg; }
.on-features [data-at="2"] { top:46%; left:6%; rotate:-2deg; }
.on-features [data-at="3"] { top:12%; right:6%; rotate:3deg; }
.on-features [data-at="4"] { top:30%; right:3%; rotate:-2deg; }
.on-features [data-at="5"] { top:48%; right:7%; rotate:2deg; }
@media (prefers-reduced-motion:no-preference) {
  @keyframes on-feature-in { from { opacity:0; translate:0 14px; scale:.9; } to { opacity:1; translate:0 0; scale:1; } }
  @keyframes on-feature-float { 50% { translate:0 -6px; } }
  .on-features li { animation:on-feature-in .5s cubic-bezier(.22,1,.36,1) both, on-feature-float 6s ease-in-out infinite; }
  .on-features [data-at="0"] { animation-delay:.3s,1s; } .on-features [data-at="1"] { animation-delay:.42s,2.2s; }
  .on-features [data-at="2"] { animation-delay:.54s,.4s; } .on-features [data-at="3"] { animation-delay:.36s,1.6s; }
  .on-features [data-at="4"] { animation-delay:.48s,2.8s; } .on-features [data-at="5"] { animation-delay:.6s,.8s; }
}

/* ── A full course, and paths of your own ─────────────────────────────── */
.on-course { display:grid; gap:12px; text-align:start; }
.on-course-part { padding:16px 18px; border:1.5px solid #ece8f1; border-radius:20px; background:#fff; }
#onboarding .on-course-part h3 { margin:0 0 2px; color:#0d0d0d; font:600 17px/1.3 var(--on-sans); }
.on-course-part > p { margin:0 0 12px; color:#6d6377; font:400 14px/1.45 var(--on-sans); }
/* The levels as a staircase, the learner's step lit. */
.on-course-ladder { display:flex; align-items:flex-end; gap:6px; margin:0; padding:0; list-style:none; }
.on-course-ladder li { flex:1; display:flex; align-items:flex-end; min-width:0; padding:6px 6px; border-radius:10px; background:#f3f1f6; color:#6d6377; font:500 11.5px/1.2 var(--on-sans); }
.on-course-ladder li:nth-child(1) { height:34px; } .on-course-ladder li:nth-child(2) { height:44px; } .on-course-ladder li:nth-child(3) { height:54px; }
.on-course-ladder li:nth-child(4) { height:64px; } .on-course-ladder li:nth-child(5) { height:74px; } .on-course-ladder li:nth-child(6) { height:84px; }
.on-course-ladder li span { overflow:hidden; text-overflow:ellipsis; }
.on-course-ladder li.is-past { background:#e6f7ec; color:#15803d; }
.on-course-ladder li.is-you { background:#22a55a; color:#fff; font-weight:600; }
.on-course-paths { display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; list-style:none; }
.on-course-paths li { display:inline-flex; align-items:center; gap:8px; padding:7px 13px 7px 9px; border:1.5px solid #ece8f1; border-radius:99px; color:#0d0d0d; font:500 14px/1.3 var(--on-sans); }
.on-course-paths li .on-glyph, .on-course-paths li svg, .on-course-paths li img { width:22px; height:22px; flex:none; }
.on-course-paths li:not(:has(svg,img,.on-glyph)) { padding-inline-start:13px; }
@media (prefers-reduced-motion:no-preference) {
  .on-course-ladder li { transform-origin:50% 100%; animation:on-plan-grow .6s cubic-bezier(.22,1,.36,1) both; }
  .on-course-ladder li:nth-child(2) { animation-delay:.08s; } .on-course-ladder li:nth-child(3) { animation-delay:.16s; }
  .on-course-ladder li:nth-child(4) { animation-delay:.24s; } .on-course-ladder li:nth-child(5) { animation-delay:.32s; } .on-course-ladder li:nth-child(6) { animation-delay:.4s; }
  .on-course-paths li { animation:on-side-pop .4s cubic-bezier(.22,1.4,.36,1) both; }
  .on-course-paths li:nth-child(2) { animation-delay:.1s; } .on-course-paths li:nth-child(3) { animation-delay:.2s; } .on-course-paths li:nth-child(4) { animation-delay:.3s; } .on-course-paths li:nth-child(5) { animation-delay:.4s; }
}

/* ── The tutor at the board ───────────────────────────────────────────────
   The picture's board is blank; the levels are written over it, the
   learner's one circled by hand. The board sits at a known place in the
   picture (41%–96.5% across, 22.5%–76.5% down), so the list is laid on it. */
.on-board-scene { display:flex; align-items:center; justify-content:center; width:100%; height:100%; padding:0 5%; }
.on-board { position:relative; width:100%; max-width:640px; }
.on-board > img { display:block; width:100%; height:auto; }
.on-board-levels { position:absolute; left:44%; top:25.5%; width:49.5%; height:48%; display:flex; flex-direction:column; justify-content:space-between; margin:0; padding:0; list-style:none; }
.on-board-levels li { position:relative; display:flex; align-items:center; gap:10px; color:#8b8596; font:500 clamp(12px,1vw,15px)/1 "Segoe Print","Comic Sans MS","Bradley Hand",var(--on-sans); }
.on-board-levels li::before { content:""; flex:none; width:7px; height:7px; border-radius:50%; background:#cfc9d8; }
.on-board-levels li.is-past { color:#5b8f6d; }
.on-board-levels li.is-past::before { background:#7cc497; }
.on-board-levels li.is-you { color:#6a1fff; font-weight:700; font-size:clamp(14px,1.2vw,18px); }
.on-board-levels li.is-you::before { background:#6a1fff; }
.on-board-levels li.is-you > span { position:relative; z-index:1; }
.on-board-ring { position:absolute; left:-6%; top:50%; width:calc(100% - 30%); height:220%; transform:translateY(-50%); overflow:visible; pointer-events:none; }
.on-board-ring path { fill:none; stroke:#6a1fff; stroke-width:3; stroke-linecap:round; stroke-dasharray:1; vector-effect:non-scaling-stroke; }
.on-board-levels em { margin-inline-start:auto; padding:3px 8px; border-radius:8px; background:#fff1b8; color:#6b4e00; font:600 clamp(10px,.8vw,12px)/1.2 var(--on-sans); font-style:normal; rotate:-4deg; white-space:nowrap; }

/* What went into the plan, as picture cards. */
.on-added { text-align:start; }
.on-added-k { display:flex; align-items:center; gap:8px; margin:0 0 12px; color:#15803d; font:600 13px/1.4 var(--on-sans); letter-spacing:.04em; text-transform:uppercase; }
.on-added-k span { display:grid; place-items:center; width:20px; height:20px; border-radius:50%; background:#22a55a; color:#fff; font-size:11px; }
.on-added-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0; padding:0; list-style:none; }
.on-added-cards li { display:flex; flex-direction:column; gap:2px; min-width:0; padding:8px 8px 12px; border:1.5px solid #ece8f1; border-radius:18px; background:#fff; }
.on-added-pic { position:relative; display:block; margin-bottom:8px; overflow:hidden; border-radius:12px; aspect-ratio:16/9; background:#f3f1f6; }
.on-added-pic img { display:block; width:100%; height:100%; object-fit:cover; }
.on-added-pic i { position:absolute; top:8px; inset-inline-start:8px; padding:3px 8px; border-radius:99px; background:#fff; color:#15803d; font:600 11.5px/1.3 var(--on-sans); font-style:normal; box-shadow:0 2px 8px rgba(0,0,0,.12); }
.on-added-cards b { padding:0 4px; color:#0d0d0d; font:600 15px/1.3 var(--on-sans); }
.on-added-cards small { padding:0 4px; color:#6d6377; font:400 13px/1.4 var(--on-sans); }
@media (max-width:999px) { .on-added-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } .on-added-pic { aspect-ratio:2/1; } .on-added-cards small { display:none; } }
@media (prefers-reduced-motion:no-preference) {
  @keyframes on-board-draw { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
  @keyframes on-board-write { from { opacity:0; translate:-6px 0; } }
  .on-board-levels li { animation:on-board-write .35s ease-out both; }
  .on-board-levels li:nth-child(1) { animation-delay:.35s; } .on-board-levels li:nth-child(2) { animation-delay:.45s; } .on-board-levels li:nth-child(3) { animation-delay:.55s; }
  .on-board-levels li:nth-child(4) { animation-delay:.65s; } .on-board-levels li:nth-child(5) { animation-delay:.75s; } .on-board-levels li:nth-child(6) { animation-delay:.85s; }
  .on-board-ring path { animation:on-board-draw .9s cubic-bezier(.6,0,.3,1) 1.1s both; }
  .on-board-levels em { animation:on-side-pop .4s cubic-bezier(.22,1.4,.36,1) 1.8s both; }
  .on-added-cards li { animation:on-side-rise .5s cubic-bezier(.22,1,.36,1) both; }
  .on-added-cards li:nth-child(1) { animation-delay:.25s; } .on-added-cards li:nth-child(2) { animation-delay:.4s; } .on-added-cards li:nth-child(3) { animation-delay:.55s; } .on-added-cards li:nth-child(4) { animation-delay:.7s; }
  .on-added-pic i { animation:on-side-pop .35s cubic-bezier(.22,1.4,.36,1) both; }
  .on-added-cards li:nth-child(1) .on-added-pic i { animation-delay:.7s; } .on-added-cards li:nth-child(2) .on-added-pic i { animation-delay:.85s; } .on-added-cards li:nth-child(3) .on-added-pic i { animation-delay:1s; } .on-added-cards li:nth-child(4) .on-added-pic i { animation-delay:1.15s; }
}

/* The tutor a size smaller everywhere: a guide beside the screen, not the screen. */
.on-tutor { width:min(66%,420px); max-height:76%; }
/* Her hand covers the left of the board, so the list keeps to its right. */
.on-board-scene { padding:0 2%; }
.on-board { max-width:720px; }
.on-board-levels { left:57%; width:37%; top:26%; height:46%; }
.on-board-ring { left:-10%; width:96%; height:230%; }
.on-board-levels em { position:absolute; inset-inline-end:-6%; top:-150%; margin:0; }

/* ── The tutor at her desk, mapping the route ──────────────────────────── */
.on-desk-scene { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; height:100%; padding:0 6%; }
.on-desk-art { display:block; width:min(88%,560px); height:auto; margin-top:-4%; }
.on-desk-bubble { position:relative; z-index:1; max-width:min(78%,420px); padding:14px 18px; border-radius:22px; background:#fff; box-shadow:0 14px 34px -18px rgba(43,35,80,.4); text-align:center; }
.on-desk-bubble::after { content:""; position:absolute; left:50%; bottom:-9px; width:18px; height:18px; background:#fff; transform:translateX(-50%) rotate(45deg); border-radius:3px; }
.on-desk-bubble p { margin:0; color:#0d0d0d; font:600 17px/1.35 var(--on-sans); }
.on-desk-bubble span { display:inline-block; margin-top:6px; padding:3px 10px; border-radius:99px; background:#e6f7ec; color:#15803d; font:600 12.5px/1.4 var(--on-sans); }

/* ── Added to your plan: picture cards like the landing's hero deck ─────── */
.on-added-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.on-added-cards li { position:relative; display:block; aspect-ratio:4/3.1; padding:0; overflow:hidden; border:4px solid #fff; border-radius:22px; background:#e9e4f2; box-shadow:0 18px 34px -20px rgba(43,35,80,.55),0 0 0 1px rgba(43,35,80,.06); }
.on-added-cards li:nth-child(odd) { rotate:-1.6deg; } .on-added-cards li:nth-child(even) { rotate:1.6deg; }
.on-added-cards li > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .5s cubic-bezier(.22,1,.36,1); }
.on-added-cards li::after { content:""; position:absolute; inset:38% 0 0; background:linear-gradient(transparent,rgba(12,8,24,.82)); pointer-events:none; }
.on-added-cards li > i { position:absolute; z-index:2; top:10px; inset-inline-start:10px; padding:4px 10px; border-radius:99px; background:#22a55a; color:#fff; font:700 12px/1.3 var(--on-sans); font-style:normal; box-shadow:0 4px 12px rgba(34,165,90,.4); }
.on-added-text { position:absolute; z-index:2; inset:auto 12px 11px; display:flex; flex-direction:column; gap:2px; }
.on-added-cards .on-added-text b { padding:0; color:#fff; font:700 17px/1.2 var(--on-sans); text-shadow:0 1px 8px rgba(0,0,0,.35); }
.on-added-cards .on-added-text small { padding:0; color:rgba(255,255,255,.9); font:500 12.5px/1.35 var(--on-sans); }
.on-added-cards li:hover > img { transform:scale(1.05); }
@media (max-width:999px) { .on-added-cards li { aspect-ratio:4/3; } .on-added-cards .on-added-text small { display:none; } }
@media (prefers-reduced-motion:no-preference) {
  @keyframes on-added-in { from { opacity:0; translate:0 22px; scale:.92; } to { opacity:1; translate:0 0; scale:1; } }
  @keyframes on-bubble-in { from { opacity:0; transform:translateY(10px) scale(.9); } }
  .on-added-cards li { animation:on-added-in .6s cubic-bezier(.22,1.25,.36,1) both; }
  .on-added-cards li > i { animation:on-side-pop .4s cubic-bezier(.22,1.5,.36,1) both; }
  .on-added-cards li:nth-child(1) > i { animation-delay:.75s; } .on-added-cards li:nth-child(2) > i { animation-delay:.9s; }
  .on-added-cards li:nth-child(3) > i { animation-delay:1.05s; } .on-added-cards li:nth-child(4) > i { animation-delay:1.2s; }
  .on-desk-bubble { animation:on-bubble-in .5s cubic-bezier(.22,1.3,.36,1) .5s both; }
}
/* The route, drawn small inside her bubble. */
.on-bubble-route { display:block; width:220px; max-width:100%; height:auto; margin:8px auto 0; overflow:visible; }
.on-bubble-route > path:first-of-type { fill:none; stroke:#a78bfa; stroke-width:3; stroke-dasharray:.02 .025; stroke-linecap:round; }
.on-bubble-flag { fill:#ff6b6b; stroke:#2b2350; stroke-width:2; stroke-linejoin:round; }
.on-desk-art { width:min(62%,380px); margin-top:2%; }
/* The note's heading is a sentence, not a slogan: a size down. */
#onboarding[data-kind=course] .on-bubble h2 { font-size:clamp(20px,1.7vw,25px) !important; line-height:1.3 !important; letter-spacing:-.01em; }
@media (prefers-reduced-motion:no-preference) {
  @keyframes on-route-draw { from { stroke-dashoffset:1; } }
  .on-bubble-route > path:first-of-type { animation:on-route-draw 1.4s ease-out .8s both; }
  .on-bubble-route circle, .on-bubble-flag { transform-box:fill-box; transform-origin:50% 50%; animation:on-side-pop .35s cubic-bezier(.22,1.5,.36,1) both; }
  .on-bubble-route circle:nth-of-type(1) { animation-delay:.9s; } .on-bubble-route circle:nth-of-type(2) { animation-delay:1.25s; }
  .on-bubble-route circle:nth-of-type(3) { animation-delay:1.6s; } .on-bubble-flag { animation-delay:1.95s; }
}

/* ── Putting it together, built on the left ────────────────────────────── */
.on-assemble { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px; width:100%; height:100%; padding:0 8%; }
.as-chat { display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; gap:8px 10px; align-items:center; width:min(78%,360px); padding:14px 16px; border-radius:22px; background:#fff; box-shadow:0 14px 34px -18px rgba(43,35,80,.35); }
.as-face { grid-row:1; display:block; width:40px; height:40px; overflow:hidden; border-radius:50%; background:#eaf2ff; }
.as-face img { display:block; width:200%; max-width:none; margin:-6% 0 0 -48%; }
.as-bubble { display:inline-flex; align-items:center; gap:4px; justify-self:start; padding:10px 14px; border-radius:16px 16px 16px 4px; background:#f1edf8; }
.as-bubble i { width:7px; height:7px; border-radius:50%; background:#a99fbd; }
.as-you { grid-column:1 / -1; justify-self:end; gap:3px; border-radius:16px 16px 4px 16px; background:#7429ff; }
.as-you b { width:3px; height:14px; border-radius:2px; background:#fff; }
.as-you b:nth-child(2), .as-you b:nth-child(5) { height:20px; } .as-you b:nth-child(3) { height:9px; }
.as-deck { width:min(90%,420px); height:clamp(170px,26vh,230px); }
.as-deck .on-deck { min-height:0; }
.as-route { width:min(80%,360px); height:auto; overflow:visible; }
.as-route > path:first-of-type { fill:none; stroke:#a78bfa; stroke-width:4; stroke-dasharray:.018 .022; stroke-linecap:round; }
.as-flag { fill:#ff6b6b; stroke:#2b2350; stroke-width:2; stroke-linejoin:round; }
/* Each part waits for its row. */
.on-assemble > * { opacity:0; translate:0 18px; scale:.94; transition:opacity .5s ease, translate .6s cubic-bezier(.22,1.3,.36,1), scale .6s cubic-bezier(.22,1.3,.36,1); }
.on-assemble[data-stage="1"] > .as-chat,
.on-assemble[data-stage="2"] > :is(.as-chat,.as-deck),
.on-assemble[data-stage="3"] > * { opacity:1; translate:0 0; scale:1; }
.on-assemble .as-deck .on-deck-card { transition:translate .7s cubic-bezier(.22,1.3,.36,1), opacity .5s ease; }
.on-assemble:not([data-stage="2"]):not([data-stage="3"]) .as-deck .on-deck-card { translate:0 60px; opacity:0; }
.on-assemble .as-deck .on-deck-card:nth-child(2) { transition-delay:.12s; } .on-assemble .as-deck .on-deck-card:nth-child(3) { transition-delay:.24s; } .on-assemble .as-deck .on-deck-card:nth-child(4) { transition-delay:.36s; }
@media (prefers-reduced-motion:no-preference) {
  @keyframes as-dot { 50% { opacity:.35; translate:0 -2px; } }
  @keyframes as-bar { 50% { scale:1 .45; } }
  @keyframes as-route { from { stroke-dashoffset:1; } }
  .as-them i { animation:as-dot 1s ease-in-out infinite; } .as-them i:nth-child(2) { animation-delay:.15s; } .as-them i:nth-child(3) { animation-delay:.3s; }
  .as-you b { animation:as-bar .8s ease-in-out infinite; } .as-you b:nth-child(even) { animation-delay:.2s; } .as-you b:nth-child(3n) { animation-delay:.4s; }
  .on-assemble[data-stage="3"] .as-route > path:first-of-type { animation:as-route 1.1s ease-out both; }
}

/* ── The path, up: the app on a phone ─────────────────────────────────── */
.on-phone-scene { position:relative; display:flex; align-items:center; justify-content:center; width:100%; height:100%; }
.on-phone { position:relative; width:min(46%,290px); aspect-ratio:9/18.5; padding:12px; border-radius:42px; background:#1d1730; box-shadow:0 30px 60px -28px rgba(43,35,80,.6),inset 0 0 0 2px #3a3150; }
.on-phone::before { content:""; position:absolute; top:20px; left:50%; width:30%; height:18px; border-radius:99px; background:#1d1730; transform:translateX(-50%); z-index:2; }
.on-phone-screen { display:flex; flex-direction:column; gap:10px; height:100%; padding:44px 14px 14px; overflow:hidden; border-radius:32px; background:#fff; }
.on-phone-brand { display:flex; align-items:center; gap:6px; margin:0; color:#0d0d0d; font:700 13px/1 var(--on-sans); }
.on-phone-brand img { width:20px; height:auto; }
.on-phone-title { margin:2px 0 4px; color:#0d0d0d; font:700 18px/1.2 var(--on-sans); letter-spacing:-.02em; }
.on-phone-lessons { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.on-phone-lessons li { display:flex; align-items:center; gap:10px; padding:7px; border:1.5px solid #ece8f1; border-radius:14px; }
.on-phone-lessons li.is-next { border-color:#cdb8ff; background:#f8f5ff; }
.on-phone-lessons img { flex:none; width:42px; height:42px; border-radius:10px; object-fit:cover; }
.on-phone-lessons span { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.on-phone-lessons b { overflow:hidden; color:#0d0d0d; font:600 12px/1.25 var(--on-sans); text-overflow:ellipsis; white-space:nowrap; }
.on-phone-lessons i { display:block; height:5px; border-radius:99px; background:#eee9f6; }
.on-phone-lessons em { display:block; height:100%; border-radius:inherit; background:#7429ff; }
.on-phone-lessons s { display:grid; place-items:center; flex:none; width:24px; height:24px; border-radius:50%; background:#7429ff; color:#fff; font-size:9px; text-decoration:none; }
.on-phone-tutor { display:flex; align-items:center; gap:8px; margin-top:auto; }
.on-phone-tutor .as-face { width:32px; height:32px; }
.on-phone-features li { max-width:40%; }
.on-phone-features [data-at="0"] { top:16%; left:4%; right:auto; }
.on-phone-features [data-at="1"] { top:46%; right:3%; left:auto; }
.on-phone-features [data-at="2"] { top:72%; left:5%; right:auto; }
@media (prefers-reduced-motion:no-preference) {
  @keyframes on-phone-in { from { opacity:0; translate:0 40px; rotate:4deg; } }
  .on-phone { animation:on-phone-in .8s cubic-bezier(.22,1.2,.36,1) both; }
  .on-phone-lessons li { animation:on-side-rise .5s cubic-bezier(.22,1,.36,1) both; }
  .on-phone-lessons li:nth-child(1) { animation-delay:.5s; } .on-phone-lessons li:nth-child(2) { animation-delay:.62s; } .on-phone-lessons li:nth-child(3) { animation-delay:.74s; }
  @keyframes on-phone-bar { from { transform:scaleX(0); } }
  .on-phone-lessons em { animation:on-phone-bar .9s ease-out 1s both; transform-origin:0 50%; }
  .on-phone-features [data-at="0"] { animation-delay:.9s,1s; } .on-phone-features [data-at="1"] { animation-delay:1.05s,2s; } .on-phone-features [data-at="2"] { animation-delay:1.2s,.4s; }
}
/* Beside the phone the topics are already on screen: the hero keeps to words. */
@media (min-width:1000px) { #onboarding[data-side] .on-plan-hero .on-plan-deck { display:none !important; } }

/* ── Putting it together: Felix's notes, each bringing its part ────────── */
.on-assemble { gap:18px; padding:0 7%; align-items:stretch; }
.on-assemble > * { translate:none; scale:1; }
.as-step { display:flex; flex-direction:column; gap:10px; opacity:0; transition:opacity .4s ease; }
.on-assemble[data-stage="1"] [data-step="1"], .on-assemble[data-stage="2"] :is([data-step="1"],[data-step="2"]), .on-assemble[data-stage="3"] .as-step { opacity:1; }
.as-say { display:flex; align-items:center; gap:10px; margin:0; }
.as-felix { flex:none; width:34px; height:auto; }
.as-say span { padding:10px 14px; border-radius:16px 16px 16px 4px; background:#fff; color:#0d0d0d; font:600 15px/1.35 var(--on-sans); box-shadow:0 10px 26px -16px rgba(43,35,80,.35); }
.as-cards { position:relative; display:flex; justify-content:center; gap:10px; padding-inline-start:44px; }
.as-card { position:relative; width:min(23%,120px); aspect-ratio:3/4; overflow:hidden; border:3px solid #fff; border-radius:14px; box-shadow:0 12px 26px -14px rgba(43,35,80,.5); }
.as-card img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.as-card b { position:absolute; inset:auto 6px 6px; color:#fff; font:700 11px/1.2 var(--on-sans); text-shadow:0 1px 6px rgba(0,0,0,.6); }
.as-card:nth-child(odd) { rotate:-4deg; } .as-card:nth-child(even) { rotate:3deg; }
.as-tags { display:flex; flex-wrap:wrap; gap:8px; padding-inline-start:44px; }
.as-tag { display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:99px; background:#fff; color:#0d0d0d; font:600 14px/1.2 var(--on-sans); box-shadow:0 8px 20px -14px rgba(43,35,80,.45); }
.as-step .as-route { width:min(86%,360px); margin-inline-start:44px; }
.as-step .as-chat, .as-step .as-deck { display:none; }
@media (prefers-reduced-motion:no-preference) {
  @keyframes as-fly-left { from { opacity:0; translate:-160px 30px; rotate:-20deg; } }
  @keyframes as-fly-right { from { opacity:0; translate:160px 30px; rotate:20deg; } }
  @keyframes as-pop { from { opacity:0; scale:.6; } 70% { scale:1.08; } }
  .as-say span { transform-origin:0 100%; }
  .on-assemble[data-stage] .as-step[style], .as-step .as-say span { animation:none; }
  .on-assemble:is([data-stage="1"],[data-stage="2"],[data-stage="3"]) [data-step="1"] .as-say span,
  .on-assemble:is([data-stage="2"],[data-stage="3"]) [data-step="2"] .as-say span,
  .on-assemble[data-stage="3"] [data-step="3"] .as-say span { animation:as-pop .4s cubic-bezier(.22,1.4,.36,1) both; }
  .on-assemble:is([data-stage="1"],[data-stage="2"],[data-stage="3"]) .as-card:nth-child(odd) { animation:as-fly-left .7s cubic-bezier(.22,1.15,.36,1) both; }
  .on-assemble:is([data-stage="1"],[data-stage="2"],[data-stage="3"]) .as-card:nth-child(even) { animation:as-fly-right .7s cubic-bezier(.22,1.15,.36,1) both; }
  .as-card[data-at="0"] { animation-delay:.25s !important; } .as-card[data-at="1"] { animation-delay:.4s !important; } .as-card[data-at="2"] { animation-delay:.55s !important; } .as-card[data-at="3"] { animation-delay:.7s !important; }
  .on-assemble:is([data-stage="2"],[data-stage="3"]) .as-tag { animation:as-pop .4s cubic-bezier(.22,1.4,.36,1) both; }
  .as-tag:nth-child(1) { animation-delay:.3s !important; } .as-tag:nth-child(2) { animation-delay:.45s !important; } .as-tag:nth-child(3) { animation-delay:.6s !important; }
  .on-assemble[data-stage="3"] .as-step .as-route > path:first-of-type { animation:as-route 1.1s ease-out .2s both; }
}

/* ── The phone, bigger and full ─────────────────────────────────────────── */
.on-phone { width:min(60%,370px); aspect-ratio:9/17; }
.on-phone-screen { gap:12px; padding:48px 14px 16px; background:#f7f6fb; }
.on-phone-brand { justify-content:flex-start; }
.on-phone-brand span { margin-inline-start:auto; padding:3px 9px; border-radius:99px; background:#e6f7ec; color:#15803d; font:600 11px/1.3 var(--on-sans); }
.ph-path { position:relative; display:flex; align-items:flex-end; gap:10px; min-height:118px; padding:12px; overflow:hidden; border-radius:18px; color:#fff; }
.ph-path > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ph-path::after { content:""; position:absolute; inset:0; background:linear-gradient(transparent 20%,rgba(12,8,24,.8)); }
.ph-path > span { position:relative; z-index:1; flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.ph-path small { color:rgba(255,255,255,.8); font:600 10.5px/1.2 var(--on-sans); letter-spacing:.06em; text-transform:uppercase; }
.ph-path b { font:700 16px/1.2 var(--on-sans); }
.ph-path i { display:block; height:5px; border-radius:99px; background:rgba(255,255,255,.3); }
.ph-path em { display:block; width:18%; height:100%; border-radius:inherit; background:#fff; }
.ph-path > s { position:relative; z-index:1; display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:50%; background:#fff; color:#7429ff; font-size:11px; text-decoration:none; }
.ph-story { display:flex; gap:10px; padding:10px; border-radius:16px; background:#fff; box-shadow:0 1px 0 rgba(43,35,80,.05); }
.ph-story > img { flex:none; width:54px; height:70px; border-radius:10px; object-fit:cover; }
.ph-story > div { min-width:0; display:flex; flex-direction:column; gap:4px; }
.ph-story small { color:#7a7186; font:600 10.5px/1.3 var(--on-sans); }
.ph-story p { margin:0; color:#1b1523; font:500 12.5px/1.45 Georgia,serif; }
.ph-story mark { padding:0 3px; border-radius:4px; background:#fff1b8; color:inherit; }
.ph-tip { align-self:flex-start; padding:4px 8px; border-radius:8px; background:#1d1730; color:#fff; font:500 10.5px/1.3 var(--on-sans); }
.ph-tip b { color:#ffd84d; }
.ph-pod { display:flex; align-items:center; gap:10px; padding:10px; border-radius:16px; background:#1d1730; color:#fff; }
.ph-pod > img { flex:none; width:46px; height:46px; border-radius:12px; object-fit:cover; }
.ph-pod > span { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.ph-pod small { color:#b8aee0; font:600 10.5px/1.2 var(--on-sans); }
.ph-pod b { overflow:hidden; font:700 13px/1.2 var(--on-sans); text-overflow:ellipsis; white-space:nowrap; }
.ph-wave { display:flex; align-items:center; gap:2px; height:16px; }
.ph-wave em { flex:1; height:40%; border-radius:2px; background:#8f7cff; }
.ph-wave em:nth-child(3n) { height:90%; } .ph-wave em:nth-child(4n+1) { height:65%; } .ph-wave em:nth-child(5n) { height:25%; }
.ph-pod > s { display:grid; place-items:center; flex:none; width:32px; height:32px; border-radius:50%; background:#fff; color:#1d1730; font-size:9px; text-decoration:none; }
.on-phone-scene .on-phone-features, .on-phone-tutor { display:none; }
@media (prefers-reduced-motion:no-preference) {
  @keyframes ph-wave { 50% { scale:1 .4; } }
  .ph-wave em { animation:ph-wave .9s ease-in-out infinite; }
  .ph-wave em:nth-child(2n) { animation-delay:.15s; } .ph-wave em:nth-child(3n) { animation-delay:.3s; } .ph-wave em:nth-child(5n) { animation-delay:.45s; }
  .ph-path, .ph-story, .ph-pod { animation:on-side-rise .55s cubic-bezier(.22,1,.36,1) both; }
  .ph-path { animation-delay:.45s; } .ph-story { animation-delay:.65s; } .ph-pod { animation-delay:.85s; }
  .ph-tip { animation:as-pop .4s cubic-bezier(.22,1.4,.36,1) 1.5s both; }
}

/* ── The question with its drawing under it ────────────────────────────────
   On a wide screen the questions keep the two columns on the light sky: the
   line, the question and its drawing on the left, the answers on the right. */
.on-say-art { display:none; }
@media (min-width:1000px) {
  #onboarding[data-art] .on-say { flex-direction:column; align-items:flex-start; gap:0; }
  #onboarding[data-art] .on-say-art { display:block; width:min(100%,380px); margin-top:clamp(16px,3dvh,32px); }
  #onboarding[data-art] .on-say-art .on-side-art { justify-content:flex-start; height:auto; }
  #onboarding[data-art] .on-say-art img { width:100%; max-height:min(36dvh,320px); object-fit:contain; object-position:0 50%; }
  #onboarding[data-art]:not([data-scene=reassurance]) .on-bubble h2 { font-size:clamp(32px,3vw,42px); }
}
@media (min-width:1000px) and (prefers-reduced-motion:no-preference) {
  .on-say-art > * { animation:on-side-rise .6s cubic-bezier(.22,1,.36,1) .1s both; }
}
/* One light sky for every question: no violet for the goal chapter. */
.on-sky > i[data-tint=goal] { background:linear-gradient(#fff 0%,#f4faff 38%,#eaf6ff 100%); }
#onboarding[data-tint=goal] .on-sky > img { opacity:.5; }
