/* Scribe — the landing page (index.html #landingView), what everyone sees
 * at /.
 *
 * Laid out the way Cluely's front page is: a bar with the way in at the top
 * right; a headline over ruled paper with the launch video under it on a
 * tablet that tips up flat as the page scrolls; two cards that act out the
 * two things a student does (the practice sheet, the assignment); the stack
 * of pages beside three figures; the classes, each with a figure drawn on;
 * questions; the headline again.
 *
 * What moves, and who moves it:
 * - the headline's words and the hero's buttons: CSS, once, as the view
 *   shows;
 * - the headline's correction ("home" struck out, "busy" written over it):
 *   CSS, round and round, resting (.is-still, from lib/landing.js) while
 *   the headline is off the screen or the tab is hidden;
 * - .lp-reveal: rises in as it comes into view, once lib/landing.js has put
 *   .lp-motion on the view (so without script, or with less motion asked
 *   for, everything simply shows) and .is-in on each;
 * - the tablet's tilt: --tilt and --zoom, set by lib/landing.js on scroll;
 * - the practice sheet: lib/landing-sheet.js, box by box;
 * - the composer: CSS alone, on a loop, while its card is in view;
 * - the stack of pages: lib/signin-showcase.js, as on the sign-in screen.
 * prefers-reduced-motion stops all of it (styles.css's last rule, and the
 * scripts check it too).
 *
 * Built only from styles.css's tokens, its reds the app's own (--accent
 * for words, icons and lines, --accent-fill under white words), so the page
 * and Scribe are one red in both themes. Paper, ink and the video stay white
 * paper in both themes. */

/* ---- The page ----------------------------------------------------------- */

/* The view is the whole page: no mini-bar over it, no footer under it
   (it has its own), and none of main's narrow column. */
html:has(body[data-view="landing"]) { scroll-behavior: smooth; scroll-padding-top: 80px; }
body[data-view="landing"] .main-col > .mini-bar,
body[data-view="landing"] .main-col > .site-footer { display: none; }
main.landing-view { position: relative; isolation: isolate; max-width: none; margin: 0; padding: 0; overflow-x: clip; }
/* One continuous sheet behind every section, including the footer. */
.landing-view::before { content: ""; position: absolute; inset: 64px 0 0; z-index: -1; pointer-events: none; opacity: .4;
  background:
    linear-gradient(to right, transparent calc(9% - 1px), var(--accent-line) calc(9% - 1px), var(--accent-line) 9%, transparent 9%),
    repeating-linear-gradient(to bottom, transparent 0 35px, var(--line) 35px 36px); }
.landing-view a { color: inherit; text-decoration: none; }
.landing-view h1, .landing-view h2, .landing-view h3 { font-weight: inherit; }

/* Primary and demo buttons use a small, consistent corner radius. */
.lp-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 17px; border-radius: 10px; background: var(--accent-fill); color: var(--on-accent); font-size: 13.5px; font-weight: 600; box-shadow: 0 3px 10px var(--accent-wash); transition: background .2s, box-shadow .2s, translate .2s; }
.landing-view a.lp-cta { color: var(--on-accent); }
.lp-cta:hover { background: var(--accent-fill-hover); box-shadow: 0 6px 16px var(--accent-wash); translate: 0 -1px; }
.lp-cta .icon { width: 15px; height: 15px; transition: translate .2s; }
.lp-cta:hover .icon { translate: 3px 0; }
.lp-cta-big { padding: 14px 24px; font-size: 15.5px; }
.lp-ghost { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font-size: 15.5px; font-weight: 550; transition: border-color .2s, translate .2s; }
.lp-ghost:hover:not(:disabled) { background: var(--panel); border-color: var(--line-strong); translate: 0 -1px; }
.lp-ghost .icon { width: 12px; height: 12px; color: var(--accent); }
.lp-cta:focus-visible, .lp-ghost:focus-visible, .lp-login:focus-visible, .lp-links a:focus-visible, .lp-brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- The bar ------------------------------------------------------------ */

/* Clear over the paper at the top; once the page scrolls (.is-scrolled,
   lib/landing.js), frosted, with an edge. */
.lp-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 28px; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, backdrop-filter .25s; }
.lp-nav.is-scrolled { background: var(--nav-glass); border-bottom-color: var(--line); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.lp-brand { display: inline-flex; align-items: center; gap: 9px; font: 21px/1 Georgia, "Times New Roman", serif; letter-spacing: -.5px; color: var(--text); border-radius: 6px; }
/* The logo as the app draws it (shell.css .brand-mark): matte, which makes
   its red the app's --accent. */
.lp-brand img { filter: saturate(.5); }
.lp-links { display: flex; gap: 4px; margin-right: auto; }
.lp-links a, .lp-login { padding: 7px 12px; border-radius: 999px; color: var(--muted); font-size: 13.5px; font-weight: 500; transition: color .15s, background .15s; }
.landing-view .lp-links a, .landing-view .lp-login { color: var(--muted); }
.landing-view .lp-links a:hover, .landing-view .lp-login:hover { color: var(--text); background: var(--hover); }
.lp-nav-actions { display: flex; align-items: center; gap: 6px; }
/* Light or dark (app.js wirePageStyle): a moon in the light, a sun in the dark. */
.lp-theme { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); transition: color .15s, background .15s, rotate .4s cubic-bezier(.2, .7, .2, 1); }
.lp-theme:hover:not(:disabled) { background: var(--hover); color: var(--text); border-color: transparent; rotate: -15deg; }
.lp-theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-theme .icon { width: 18px; height: 18px; }
:root[data-theme="dark"] .lp-theme .lp-moon, :root:not([data-theme="dark"]) .lp-theme .lp-sun { display: none; }
/* The new theme spreads out from the switch where the browser can show it (View Transitions). */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: lp-theme-in .65s cubic-bezier(.6, .1, .3, 1); }
/* The sign-in screen's brand goes back to the landing page; elsewhere it is only the brand. */
a.brand-mark { text-decoration: none; border-radius: 6px; }
body:not([data-view="signin"]) #brandHome { pointer-events: none; }
body[data-view="signin"] #brandHome:hover { opacity: .75; }
#brandHome:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Signed-in visitors see Open Scribe without a new-account offer. */
.landing-view[data-account="signed-in"] :is(.lp-free-note, .lp-login, .lp-out),
.landing-view:not([data-account="signed-in"]) .lp-in { display: none; }

/* ---- The hero ----------------------------------------------------------- */

.lp-hero { position: relative; isolation: isolate; padding: 64px 24px 0; text-align: center; }
/* The final section keeps its soft wash; the hero has plain ruled paper.
   Ruling and margin belong to the whole page and never fade between sections. */
.lp-hero-paper { position: absolute; inset: 0 0 auto; z-index: -1; height: 860px; pointer-events: none; opacity: .7;
  background: radial-gradient(60% 55% at 50% 0%, var(--accent-wash), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, var(--paper) 35%, transparent 92%);
  mask-image: linear-gradient(to bottom, var(--paper) 35%, transparent 92%); }

/* Keep the top of the page free of the red glow. */
.lp-hero > .lp-hero-paper { background: none; }

.lp-title { max-width: 980px; margin: 24px auto 0; font: clamp(46px, 7.2vw, 96px)/1.02 Georgia, "Times New Roman", serif; letter-spacing: -.035em; color: var(--text); text-wrap: balance; }
/* Each word rises out of a blur in turn. */
.lp-word { display: inline-block; animation: lp-word .95s cubic-bezier(.2, .7, .2, 1) both; }
.lp-word:nth-child(1) { animation-delay: .08s; }
.lp-word:nth-child(2) { animation-delay: .18s; }
.lp-word:nth-child(3) { animation-delay: .28s; }
.lp-word:nth-child(4) { animation-delay: .38s; }
.lp-period { color: var(--accent); }
/* "homework", corrected by hand once the words are down, as the launch
   video's opener corrects it, and then every so often: a red pen strikes
   "home" out and back and "home" greys; "busy" is printed over it stroke
   by stroke, b, u, s and the y's two, at one pen speed (each stroke's time
   is its length, 214, 133, 88, 36 and 105 of its units, at about 360 a
   second) with the pen lifting between letters; the line holds; the red
   fades and "homework" is back for a moment; and round it goes, 12 s a
   round, the first 1.1 s in. What every
   animation here starts from is the corrected line, so with less motion
   asked for (styles.css's last rule) that is simply what shows. A dash of 1
   with a gap of 1.1 (of pathLength) leaves nothing, not even a round cap's
   dot, at an offset of 1.05. The word has headroom so that, where the
   headline wraps before "homework", the line above stays clear of "busy". */
.lp-busywork { padding-top: .3em; }
.lp-fix { position: relative; display: inline-block; }
.lp-home { color: var(--muted); animation: lp-home 12s linear 1.1s infinite both; }
.lp-strike { position: absolute; left: -4%; top: .45em; width: 108%; height: .16em; overflow: visible; }
.lp-strike path, .lp-busy path { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1 1.1; stroke-dashoffset: 0; }
.lp-strike path { stroke-width: .055em; animation: lp-strike 12s linear 1.1s infinite both; }
/* The word's box (index.html), 185 by 138 of its units: 45 units of
   x-height to .36em, its baseline (96 down) just over "home". */
.lp-busy { position: absolute; left: 50%; top: -.735em; width: 1.48em; aspect-ratio: 185 / 138; overflow: visible; translate: -50% 0; rotate: -3deg; pointer-events: none; }
.lp-busy path { stroke-width: .05em; animation: 12s linear 1.1s infinite both; }
.lp-busy path:nth-child(1) { animation-name: lp-b; }
.lp-busy path:nth-child(2) { animation-name: lp-u; }
.lp-busy path:nth-child(3) { animation-name: lp-s; }
.lp-busy path:nth-child(4) { animation-name: lp-y1; }
.lp-busy path:nth-child(5) { animation-name: lp-y2; }
.lp-title.is-still :is(.lp-home, .lp-strike path, .lp-busy path) { animation-play-state: paused; }
/* "busy" for a screen reader, which hears "busywork" (index.html). */
.lp-busy-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.lp-sub { max-width: 580px; margin: 26px auto 0; color: var(--muted); font-size: 18.5px; line-height: 1.55; text-wrap: balance; animation: lp-rise .9s cubic-bezier(.2, .7, .2, 1) .5s both; }
.lp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
/* The note and curved pen arrow point to the first action without covering it. */
.lp-hero-actions { position: relative; width: max-content; max-width: 100%; margin: 92px auto 0; }
.lp-free-note { position: absolute; bottom: calc(100% + 30px); left: 4px; width: 220px; color: var(--accent); font: 600 29px/1.1 "Caveat", cursive; rotate: -5deg; white-space: nowrap; pointer-events: none; }
.lp-free-note svg { position: absolute; width: 66px; height: 45px; top: 22px; left: 90px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.landing-view[data-account="signed-in"] .lp-hero-actions { margin-top: 34px; }
.lp-hero .lp-actions { animation: lp-rise .9s cubic-bezier(.2, .7, .2, 1) .62s both; }

/* The video on a tablet, tipped back until the page scrolls it up flat. */
.lp-stage { position: relative; max-width: 1060px; margin: 64px auto 0; perspective: 1800px; animation: lp-rise 1.1s cubic-bezier(.2, .7, .2, 1) .8s both; }
.lp-stage::before { content: ""; position: absolute; inset: 12% 6% -4%; z-index: -1; border-radius: 50%; background: var(--accent-wash); filter: blur(70px); }
.lp-device { position: relative; padding: 12px; border-radius: 28px; background: var(--device); box-shadow: inset 0 0 0 1px var(--device-edge), 0 50px 100px -20px var(--shadow), 0 30px 60px -30px var(--shadow); transform: rotateX(var(--tilt, 12deg)) scale(var(--zoom, .93)); transform-origin: 50% 0; will-change: transform; }
.lp-device video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 17px; background: var(--paper); object-fit: cover; }
/* The speaker in the video's corner: muted, a speaker struck through, with
   a ring that pulses now and then so it is seen; on, a speaker sounding. */
.video-sound { position: absolute; right: 30px; bottom: 30px; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 1px solid var(--device-edge); border-radius: 50%; background: var(--device-glass); color: var(--on-device); box-shadow: 0 8px 24px var(--shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: scale .2s, background .2s; }
.video-sound:hover:not(:disabled) { background: var(--device); border-color: var(--device-edge); scale: 1.07; }
.video-sound:focus-visible { outline: 2px solid var(--on-device); outline-offset: 3px; }
.video-sound .icon { width: 22px; height: 22px; }
.video-sound .sound-on, .video-sound[aria-pressed="true"] .sound-off { display: none; }
.video-sound[aria-pressed="true"] .sound-on { display: block; }
.video-sound[aria-pressed="false"]::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; animation: lp-ping 2.8s ease-out 1.5s infinite; pointer-events: none; }

/* School wordmarks under the film. The second list makes the loop seamless. */
.lp-schools { max-width: 1060px; margin: clamp(42px, 6vw, 80px) auto 0; padding: 0 24px; }
.lp-schools h2 { margin: 0; text-align: center; color: var(--text); font: clamp(20px, 2.4vw, 30px)/1.22 Georgia, "Times New Roman", serif; text-wrap: balance; }
.lp-school-row { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding: 18px 0; border-block: 1px solid var(--line); }
.lp-school-window { flex: 1; min-width: 0; }
.lp-school-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.lp-school-list img { display: block; width: clamp(100px, 13vw, 146px); height: 44px; object-fit: contain; }
.lp-school-list[aria-hidden] { display: none; }
:root[data-theme="dark"] .lp-school-list img { filter: grayscale(1) invert(1) brightness(1.4); }
.lp-school-toggle { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .lp-schools.is-looping .lp-school-window { overflow: hidden; mask-image: linear-gradient(to right, transparent, var(--text) 4%, var(--text) 96%, transparent); }
  .lp-schools.is-looping .lp-school-track { display: flex; width: max-content; animation: lp-school-loop 100s linear infinite; }
  .lp-schools.is-looping .lp-school-list { display: flex; flex-wrap: nowrap; gap: clamp(32px, 5vw, 64px); padding-inline-end: clamp(32px, 5vw, 64px); }
  .lp-schools.is-paused .lp-school-track { animation-play-state: paused; }
  .lp-school-toggle:not([hidden]) { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; }
  .lp-school-toggle .icon { width: 14px; height: 14px; }
  .lp-school-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .lp-school-toggle .lp-play-icon, .lp-schools.is-paused .lp-pause-icon { display: none; }
  .lp-schools.is-paused .lp-play-icon { display: inline; }
}
@keyframes lp-school-loop { to { transform: translateX(-50%); } }

/* ---- The sections ------------------------------------------------------- */

.lp-section { max-width: 1120px; margin: 0 auto; padding: 140px 24px 0; }
.lp-h2 { margin: 0; text-align: center; font: clamp(34px, 4.6vw, 56px)/1.06 Georgia, "Times New Roman", serif; letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
.lp-h2 span { color: var(--accent); }
.lp-lead { max-width: 560px; margin: 16px auto 0; text-align: center; color: var(--muted); font-size: 17px; line-height: 1.55; text-wrap: balance; }

/* Rising in as each comes into view, a beat apart within a row. */
.lp-motion .lp-reveal { opacity: 0; translate: 0 28px; transition: opacity .8s ease, translate .9s cubic-bezier(.2, .7, .2, 1); }
.lp-motion .lp-reveal.is-in { opacity: 1; translate: 0 0; }
.lp-cards > :nth-child(2), .lp-stats > :nth-child(2), .lp-faq-list > :nth-child(2) { transition-delay: .1s; }
.lp-stats > :nth-child(3), .lp-faq-list > :nth-child(3) { transition-delay: .2s; }
.lp-faq-list > :nth-child(4) { transition-delay: .3s; }
.lp-faq-list > :nth-child(5) { transition-delay: .4s; }

/* ---- How it works: two cards --------------------------------------------- */

.lp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.lp-card { position: relative; display: flex; flex-direction: column; min-height: 470px; overflow: hidden; padding: 32px 32px 0; border: 1px solid var(--line); border-radius: 26px; background: var(--panel); text-align: left; }
.lp-card h3 { margin: 0; font-size: 25px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; color: var(--text); }
.lp-card > p { max-width: 430px; margin: 12px 0 30px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.lp-tag { display: inline-block; padding: 0 11px 2px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-wash); color: var(--accent); }
/* The first in Scribe's red, as Cluely's first card is in its blue. */
.lp-card-warm { border-color: transparent; background: linear-gradient(160deg, var(--accent-fill), var(--accent-fill-hover)); }
.lp-card-warm h3, .lp-card-warm p { color: var(--on-accent); }
.lp-card-warm p { opacity: .86; }
.lp-card-warm .lp-tag { border-color: var(--on-accent); background: transparent; color: var(--on-accent); }

/* The practice sheet: a corner of paper, its boxes filling with letters. */
.lp-sheet { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; align-content: start; width: 100%; max-width: 440px; margin: auto auto 0; padding: 20px 20px 24px; border-radius: 14px 14px 0 0; background: var(--paper); box-shadow: 0 -10px 40px var(--shadow); flex: 1; translate: 0 8px; }
.lp-box { position: relative; aspect-ratio: 1 / 1.12; border: 1.5px solid var(--paper-line); border-radius: 5px; }
.lp-box-label { position: absolute; top: 3px; left: 5px; color: var(--paper-faint); font: 10px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
/* lib/landing-sheet.js sets each letter's mask, size and drop; it writes
   in from the left as .is-written lands on it. */
.lp-glyph { position: absolute; left: 50%; bottom: 26%; background: var(--ink); -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; translate: -50% var(--drop, 0%); clip-path: inset(0 100% 0 0); transition: clip-path .32s cubic-bezier(.5, 0, .3, 1); }
.lp-box.is-written .lp-glyph { clip-path: inset(0 0 0 0); }
.lp-sheet.is-clearing .lp-glyph { transition: clip-path .5s ease, opacity .5s; opacity: 0; }

/* The composer, acted out: two files drop in, the words type, Send is
   pressed, the pages write. Nine seconds round, only while in view. */
.lp-composer { margin: auto 0 36px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); box-shadow: 0 16px 40px var(--shadow-soft); }
.lp-files { display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; }
.lp-file { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font-size: 12.5px; }
.lp-file .icon { width: 14px; height: 14px; color: var(--accent); }
.lp-typed { min-height: 24px; margin: 14px 2px 10px; color: var(--text); font-size: 15px; }
.lp-typed span { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: bottom; border-right: 2px solid var(--accent); }
.lp-composer-row { display: flex; align-items: center; gap: 8px; }
.lp-composer-plus, .lp-composer-send { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.lp-composer-plus { color: var(--muted); border: 1px solid var(--line); }
.lp-composer-style { margin-right: auto; padding: 5px 11px; border-radius: 999px; background: var(--hover); color: var(--muted); font-size: 12px; }
.lp-composer-send { background: var(--accent-fill); color: var(--on-accent); }
.lp-composer .icon { width: 15px; height: 15px; }
.lp-progress { position: relative; margin-top: 14px; padding: 10px 12px; overflow: hidden; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.lp-progress i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; }
.lp-composer .lp-file:nth-child(1) { animation: lp-file1 9s infinite both paused; }
.lp-composer .lp-file:nth-child(2) { animation: lp-file2 9s infinite both paused; }
.lp-typed span { animation: lp-type 9s steps(24, end) infinite both paused, lp-caret .8s step-end infinite paused; }
.lp-composer-send { animation: lp-send 9s infinite both paused; }
.lp-progress { animation: lp-show-progress 9s infinite both paused; }
.lp-progress i { animation: lp-fill 9s infinite both paused; }
.lp-card.is-in .lp-composer *, .lp-card.is-in .lp-composer .lp-progress { animation-play-state: running; }
.lp-card.is-in .lp-progress { animation-play-state: running; }

/* ---- Looks like you wrote it: the stack beside three figures -------------- */

.lp-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.lp-split-art { position: relative; display: grid; place-items: center; height: 760px; }
.lp-split-art .lp-stack { width: min(92%, 540px); }
.lp-stack .showcase-sheet.is-leaving { transform: translate(-34%, -9%) rotate(-8deg); }
.lp-split-text .lp-h2 { text-align: left; }
.lp-stats { margin: 36px 0 0; }
.lp-stats > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; padding: 24px 0; border-top: 1px solid var(--line); }
.lp-stats dt { color: var(--text); font: 58px/1 Georgia, "Times New Roman", serif; letter-spacing: -.03em; }
.lp-stats dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.lp-stats strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }

/* ---- Every class: the carousel ------------------------------------------- */

/* lib/landing-carousel.js: tabs, then the slides edge to edge, the one in
   front in the middle and every other set out by its place round the ring
   from it (--offset), a neighbour peeking in at each side and the rest out of
   sight; then the arrows and the bar that fills while it waits. */
.lp-carousel { margin-top: 44px; }
.lp-tabs { display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 26px; padding: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); scrollbar-width: none; }
.lp-tabs::-webkit-scrollbar { display: none; }
.lp-tab { flex: none; padding: 8px 17px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 550; transition: background .3s, color .3s; }
.lp-tab:hover:not(:disabled) { background: var(--hover); color: var(--text); border-color: transparent; }
.lp-tab.is-active, .lp-tab.is-active:hover:not(:disabled) { background: var(--accent-fill); color: var(--on-accent); }
.lp-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-viewport { width: 100vw; margin-left: calc(50% - 50vw); padding: 12px 0 34px; overflow: hidden; }
.lp-track { --slide: min(960px, 86vw); --gap: 28px; position: relative; height: 520px; touch-action: pan-y; }
.lp-slide { position: absolute; top: 0; left: calc(50% - var(--slide) / 2); width: var(--slide); height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); overflow: hidden; border: 1px solid var(--line); border-radius: 32px; background: var(--panel); cursor: pointer; transform: translateX(calc(var(--offset, 0) * (var(--slide) + var(--gap)))) scale(.9); opacity: .35; transition: transform .85s cubic-bezier(.22, .8, .2, 1), opacity .7s ease, box-shadow .85s; }
.lp-slide.is-active { transform: translateX(0) scale(1); opacity: 1; cursor: default; box-shadow: 0 40px 90px -36px var(--shadow); z-index: 1; }
/* Out of sight: two or more places away, moving round behind the others. */
.lp-slide.is-far { opacity: 0; pointer-events: none; }
/* Going out of sight or coming back into it: it fades where it lands (lib/landing-carousel.js place). */
.lp-slide.is-jump { transition: opacity .5s ease, box-shadow .85s; }
.lp-track.is-still .lp-slide { transition: none; }
.lp-slide-text { display: flex; flex-direction: column; justify-content: center; padding: 44px 12px 44px 48px; text-align: left; }
.lp-slide-text h3 { margin: 20px 0 0; font: 54px/1.02 Georgia, "Times New Roman", serif; letter-spacing: -.03em; color: var(--text); }
.lp-slide-text h3 span { color: var(--accent); }
.lp-slide-text p { max-width: 370px; margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.lp-slide-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; padding: 0; list-style: none; }
.lp-slide-tags li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 12.5px; }
/* The page: rising out of the slide's foot as it comes to the front, tipped
   a little, cut off where the slide ends. Ruled paper until it is drawn. */
.lp-slide-page { position: relative; overflow: hidden; background: radial-gradient(70% 60% at 55% 62%, var(--accent-wash), transparent 75%); }
.lp-paper { position: absolute; left: 11%; top: 52px; width: 80%; aspect-ratio: 612 / 792; border-radius: 4px; background: linear-gradient(to bottom, var(--paper) 0 76px, transparent 76px), repeating-linear-gradient(to bottom, var(--paper) 0 23px, var(--paper-line) 23px 24px); box-shadow: 0 30px 60px -20px var(--shadow), 0 2px 6px var(--shadow-soft); rotate: 3deg; translate: 0 70px; transition: translate 1s cubic-bezier(.22, .8, .2, 1) .1s, rotate 1s cubic-bezier(.22, .8, .2, 1) .1s; }
.lp-slide.is-active .lp-paper { translate: 0 0; rotate: 1.5deg; }
.lp-paper canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 4px; animation: lp-page-in .7s ease-out both; }
.lp-carousel-nav { display: flex; align-items: center; justify-content: center; gap: 18px; }
.lp-arrow { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--text); transition: border-color .2s, translate .2s; }
.lp-arrow:hover:not(:disabled) { background: var(--panel); border-color: var(--line-strong); }
.lp-arrow:first-child:hover:not(:disabled) { translate: -2px 0; }
.lp-arrow:last-child:hover:not(:disabled) { translate: 2px 0; }
.lp-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-arrow .icon { width: 18px; height: 18px; }
.lp-progress-bar { position: relative; width: 132px; height: 3px; overflow: hidden; border-radius: 3px; background: var(--line); }
.lp-progress-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; scale: 0 1; }
/* Over the wait landing-carousel.js sets (--wait): INTERVAL_MS, or longer after someone chose a slide. */
.lp-progress-bar i.is-filling { scale: 1 1; transition: scale var(--wait, 5s) linear; }

/* A figure for each class, drawn on stroke by stroke when its slide comes to the front. */
.lp-figure { display: block; width: 138px; height: 92px; padding: 6px; border-radius: 14px; background: var(--paper); overflow: visible; }
.lp-figure path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.lp-figure .lp-figure-red { stroke: var(--accent-fill); stroke-width: 2.6; }
.lp-motion .lp-figure path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s cubic-bezier(.6, .1, .3, 1) .3s; }
.lp-motion .lp-figure .lp-figure-red { transition-delay: .9s; }
.lp-motion .lp-slide.is-active .lp-figure path { stroke-dashoffset: 0; }

/* ---- Doodles ---------------------------------------------------------------- */

/* Pen drawings in the margins and the open spaces, drawn on as they come
   into view (.lp-reveal), then bobbing a little, each at its own pace. The
   ones in the margins (.lp-gutter) need a wide window. */
.lp-section { position: relative; }
.lp-doodle { position: absolute; z-index: 0; width: 86px; height: 86px; overflow: visible; pointer-events: none; animation: lp-float 7s ease-in-out infinite alternate; }
.lp-doodle path, .lp-doodle ellipse { fill: none; stroke: var(--doodle); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.lp-doodle .dd-red { stroke: var(--accent); }
.lp-doodle .dd-dash { stroke-dasharray: 3 7; }
.lp-motion .lp-doodle path:not(.dd-dash), .lp-motion .lp-doodle ellipse { stroke-dashoffset: 1; transition: stroke-dashoffset 1.7s cubic-bezier(.6, .1, .3, 1) .3s; }
.lp-motion .lp-doodle .dd-red { transition-delay: 1.1s; }
.lp-motion .lp-doodle.is-in path:not(.dd-dash), .lp-motion .lp-doodle.is-in ellipse { stroke-dashoffset: 0; }
.dd-plane { left: -168px; top: 150px; width: 118px; height: 118px; animation-duration: 8s; }
.dd-star { right: -150px; top: 120px; width: 74px; height: 74px; animation-duration: 6s; animation-delay: -2s; }
.dd-arrow { left: -150px; top: 600px; width: 96px; height: 96px; animation-duration: 9s; animation-delay: -4s; }
.dd-bulb { right: -160px; top: 150px; width: 88px; height: 88px; animation-duration: 7.5s; animation-delay: -1s; }
.dd-pencil { left: -165px; bottom: 60px; width: 100px; height: 100px; animation-duration: 8.5s; animation-delay: -3s; }
.dd-atom { left: -170px; top: 120px; width: 104px; height: 104px; animation-duration: 9s; }
.dd-pi { right: -150px; top: 170px; width: 80px; height: 80px; animation-duration: 6.5s; animation-delay: -2.5s; }
.dd-smile { left: 14px; top: 240px; width: 82px; height: 82px; animation-duration: 7s; animation-delay: -1.5s; }
.dd-mug { right: 18px; top: 430px; width: 88px; height: 88px; animation-duration: 8s; animation-delay: -3.5s; }
.dd-aplus { left: 11%; top: 64px; width: 100px; height: 100px; animation-duration: 7.5s; }
.dd-heart { right: 13%; top: 96px; width: 70px; height: 70px; animation-duration: 6s; animation-delay: -2s; }
.dd-check { right: 21%; bottom: 70px; width: 72px; height: 72px; animation-duration: 8s; animation-delay: -4s; }
.lp-section > :not(.lp-doodle), .lp-final > :not(.lp-doodle):not(.lp-hero-paper) { position: relative; z-index: 1; }

/* ---- The mascot ------------------------------------------------------------ */

/* Scribe's mascot, a golden retriever in a cap with the logo, drawn by hand
   in brush pen (media/mascot/, transparent WebP), asleep over the last call
   ("Get your time back"). A picture only: its alt is empty. */
.lp-mascot { display: block; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.lp-mascot-nap { width: clamp(200px, 26vw, 300px); margin: 0 auto 10px; }

/* ---- Questions ------------------------------------------------------------ */

.lp-faq-list { max-width: 760px; margin: 44px auto 0; border-top: 1px solid var(--line); }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; cursor: pointer; list-style: none; color: var(--text); font-size: 17px; font-weight: 550; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hover); color: var(--muted); font-size: 18px; font-weight: 400; transition: rotate .3s cubic-bezier(.2, .7, .2, 1), background .2s, color .2s; }
.lp-faq details[open] summary::after { rotate: 45deg; background: var(--accent-fill); color: var(--on-accent); }
.lp-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.lp-faq details p { margin: 0; padding: 0 52px 24px 4px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.lp-faq details[open] p { animation: lp-rise .45s cubic-bezier(.2, .7, .2, 1) both; }

/* ---- The end ------------------------------------------------------------ */

.lp-final { position: relative; isolation: isolate; margin-top: 48px; padding: 64px 24px 96px; overflow: hidden; text-align: center; }
.lp-final .lp-hero-paper { inset: 0; height: auto; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, var(--paper) 30%, transparent 75%); mask-image: radial-gradient(70% 70% at 50% 50%, var(--paper) 30%, transparent 75%); }
.lp-final .lp-h2 { font-size: clamp(40px, 6vw, 76px); }
.lp-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 28px 24px 44px; border-top: 1px solid var(--line); }
.lp-footer .lp-brand { font-size: 17px; }
.lp-footer nav { display: flex; gap: 22px; }
.landing-view .lp-footer nav a { color: var(--muted); font-size: 13px; }
.landing-view .lp-footer nav a:hover { color: var(--text); }

/* ---- Motion --------------------------------------------------------------- */

@keyframes lp-word { from { opacity: 0; translate: 0 .32em; filter: blur(10px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes lp-rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
/* The headline's round (see "homework"): the strike 0-0.6 s, "home" greying
   0.5-1 s, b 0.9-1.5 s, u 1.6-1.97 s, s 2.07-2.32 s, the y 2.42-2.52 s and
   2.6-2.89 s, held to 9.36 s, faded by 10.2 s. */
@keyframes lp-strike { 0% { stroke-dashoffset: 1.05; opacity: 1; animation-timing-function: cubic-bezier(.55, .1, .35, 1); } 5% { stroke-dashoffset: 0; } 78% { opacity: 1; } 85%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes lp-home { 0%, 4% { color: var(--text); } 8%, 78% { color: var(--muted); } 85%, 100% { color: var(--text); } }
@keyframes lp-b { 0%, 7.5% { stroke-dashoffset: 1.05; opacity: 1; } 12.5% { stroke-dashoffset: 0; } 78% { opacity: 1; } 85%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes lp-u { 0%, 13.33% { stroke-dashoffset: 1.05; opacity: 1; } 16.42% { stroke-dashoffset: 0; } 78% { opacity: 1; } 85%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes lp-s { 0%, 17.25% { stroke-dashoffset: 1.05; opacity: 1; } 19.33% { stroke-dashoffset: 0; } 78% { opacity: 1; } 85%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes lp-y1 { 0%, 20.17% { stroke-dashoffset: 1.05; opacity: 1; } 21% { stroke-dashoffset: 0; } 78% { opacity: 1; } 85%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes lp-y2 { 0%, 21.67% { stroke-dashoffset: 1.05; opacity: 1; } 24.08% { stroke-dashoffset: 0; } 78% { opacity: 1; } 85%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes lp-file1 { 0%, 4% { opacity: 0; scale: .85; } 8%, 92% { opacity: 1; scale: 1; } 97%, 100% { opacity: 0; scale: 1; } }
@keyframes lp-file2 { 0%, 11% { opacity: 0; scale: .85; } 15%, 92% { opacity: 1; scale: 1; } 97%, 100% { opacity: 0; scale: 1; } }
@keyframes lp-type { 0%, 20% { max-width: 0; } 44%, 92% { max-width: 24ch; } 97%, 100% { max-width: 0; } }
@keyframes lp-caret { 50% { border-right-color: transparent; } }
@keyframes lp-send { 0%, 47% { scale: 1; box-shadow: 0 0 0 0 var(--accent-ring); } 49% { scale: .86; } 52% { scale: 1.06; box-shadow: 0 0 0 8px transparent; } 55%, 100% { scale: 1; } }
@keyframes lp-show-progress { 0%, 52% { opacity: 0; translate: 0 8px; } 56%, 92% { opacity: 1; translate: 0 0; } 97%, 100% { opacity: 0; translate: 0 0; } }
@keyframes lp-fill { 0%, 55% { scale: 0 1; } 90%, 100% { scale: 1 1; } }
@keyframes lp-ping { 0% { box-shadow: 0 0 0 0 var(--device-ping); } 60%, 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes lp-float { from { transform: translateY(-6px) rotate(-3deg); } to { transform: translateY(8px) rotate(3deg); } }
@keyframes lp-page-in { from { opacity: 0; } }
@keyframes lp-theme-in { from { clip-path: circle(0 at var(--theme-x, 100%) var(--theme-y, 0)); } to { clip-path: circle(150vmax at var(--theme-x, 100%) var(--theme-y, 0)); } }

@media (prefers-reduced-motion: reduce) {
  .lp-device { transform: none; }
  .lp-typed span { max-width: none; border-right: 0; }
  .lp-glyph { clip-path: none; }
  .lp-slide .lp-paper { translate: 0 0; }
}

/* ---- Narrower screens ----------------------------------------------------- */

@media (max-width: 1000px) {
  .lp-cards, .lp-split { grid-template-columns: minmax(0, 1fr); }
  .lp-split { gap: 40px; }
  .lp-split-art { height: 640px; }
  .lp-track { height: 660px; }
  .lp-slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .lp-slide-text { padding: 34px 32px 8px; }
  .lp-slide-page { height: 340px; }
  .lp-paper { top: 28px; left: 12%; width: 76%; }
}

/* The margins' doodles need room either side of the page's column. */
@media (max-width: 1399px) {
  .lp-gutter { display: none; }
}
@media (max-width: 900px) {
  .lp-doodle { display: none; }
}

@media (max-width: 740px) {
  .lp-nav { gap: 12px; height: 58px; padding: 0 14px; }
  .lp-links { display: none; }
  .lp-nav-actions { margin-left: auto; }
  .lp-login { padding: 7px 10px; }
  .lp-hero { padding: 40px 16px 0; }
  .lp-title { margin-top: 12px; }
  .lp-sub { font-size: 16.5px; }
  .lp-stage { margin-top: 44px; }
  .lp-device { padding: 6px; border-radius: 18px; }
  .lp-device video { border-radius: 12px; }
  /* In the corner, small, so it doesn't cover a phone-sized video. */
  .video-sound { right: 12px; bottom: 12px; width: 40px; height: 40px; }
  .video-sound .icon { width: 18px; height: 18px; }
  .lp-section { padding: 96px 16px 0; }
  .lp-card { min-height: 0; padding: 24px 22px 0; }
  .lp-card h3 { font-size: 22px; }
  .lp-sheet { padding: 14px 14px 18px; gap: 7px; }
  .lp-split-art { height: 520px; }
  .lp-split-art .lp-stack { width: min(84%, 360px); }
  /* Keep the worksheet showcase, omit its heading and statistics on phones. */
  .lp-split-text { display: none; }
  .lp-track { --slide: 88vw; --gap: 14px; height: 600px; }
  .lp-slide { border-radius: 24px; }
  .lp-slide-text { padding: 26px 22px 4px; }
  .lp-slide-text h3 { font-size: 38px; margin-top: 14px; }
  .lp-slide-text p { font-size: 15px; }
  .lp-figure { width: 110px; height: 74px; }
  .lp-slide-page { height: 280px; }
  .lp-tabs { margin-left: 0; }
  .lp-tab { padding: 7px 13px; font-size: 13px; }
  .lp-final { margin-top: 28px; padding: 44px 16px 64px; }
  .lp-faq summary { font-size: 16px; }
  .lp-faq details p { padding-right: 8px; }
}

/* Keep both hero actions and the header labels on one row on small phones. */
@media (max-width: 380px) {
  .lp-nav { gap: 8px; padding-inline: 10px; }
  .lp-nav-actions { gap: 2px; }
  .lp-nav .lp-cta { padding-inline: 11px; white-space: nowrap; }
  .lp-login { padding-inline: 8px; white-space: nowrap; }
  .lp-hero-actions { gap: 8px; }
  .lp-hero-actions :is(.lp-cta-big, .lp-ghost) { padding: 13px 14px; font-size: 14px; }
}
