/* Studalo landing page. The same system as the app: tokens.css values, kit.css parts, Figtree, light only,
   60 paper · 30 white + ink · 10 Mauve. Every picture on the page is the real product, not an illustration. */

:root { interpolate-size: allow-keywords; } /* lets the questions open smoothly */
html { scroll-behavior: smooth; scroll-padding-top: var(--s-20); }
@media (prefers-reduced-motion: reduce) { html:not([data-motion="full"]) { scroll-behavior: auto; } }
body { overflow-x: clip; }
a { color: inherit; }
a.btn { text-decoration: none; }
.lp-wrap { width: min(100% - var(--s-8), var(--page-max)); margin-inline: auto; }
@media (min-width: 720px) { .lp-wrap { width: min(100% - var(--s-16), var(--page-max)); } }
.lp-skip { position: fixed; left: var(--s-4); top: var(--s-4); z-index: var(--z-toast); padding: var(--s-2) var(--s-4); border-radius: var(--r-control);
  background: var(--ink); color: var(--paper); font-weight: var(--w-semi); text-decoration: none; transform: translateY(-200%); }
.lp-skip:focus { transform: none; }

/* ── Bar: paper at the top, frosted once the page moves under it ── */
.lp-nav { position: sticky; top: 0; z-index: var(--z-bar); padding-top: env(safe-area-inset-top, 0px); background: var(--paper);
  transition: background-color var(--dur-base) ease, box-shadow var(--dur-base) ease; }
.lp-nav[data-scrolled] { background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(var(--blur-bar)); backdrop-filter: saturate(180%) blur(var(--blur-bar)); box-shadow: 0 1px 0 var(--line); }
@media (prefers-reduced-transparency: reduce) { .lp-nav[data-scrolled] { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.lp-nav-in { display: flex; align-items: center; gap: var(--s-4); height: 64px; }
.lp-brand { display: inline-flex; margin-right: auto; font-size: var(--fs-title-3); text-decoration: none; }
.lp-links { display: none; gap: var(--s-1); }
.lp-links a { padding: var(--s-2) var(--s-3); border-radius: var(--r-control); color: var(--ink-2); font-size: var(--fs-callout); font-weight: var(--w-medium); text-decoration: none;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease; }
.lp-links a[aria-current="true"] { color: var(--ink); background: var(--sunk); } /* the section you're reading */
@media (hover: hover) and (pointer: fine) { .lp-links a:hover { color: var(--ink); background: var(--sunk); } }
@media (min-width: 960px) { .lp-links { display: flex; } }
.lp-nav-cta { display: flex; align-items: center; gap: var(--s-2); }
.lp-nav-cta .btn { min-height: 40px; }
.lp-nav-cta .lp-menu-btn { width: var(--hit); min-height: var(--hit); color: var(--ink); }
@media (max-width: 719px) { .lp-desk { display: none; } } /* Log in moves into the menu */
@media (min-width: 960px) { .lp-menu-btn { display: none; } }
.lp-menu-cta { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.lp-menu .row-title { font-size: var(--fs-headline); }
.lp-menu .row + .row::before { left: var(--s-4); } /* no icons in these rows */

/* ── Type ── */
.lp-h1 { max-width: 15ch; font-size: var(--fs-hero); line-height: var(--lh-hero); letter-spacing: var(--tr-hero); font-weight: var(--w-bold); text-wrap: balance; }
.lp-h2 { font-size: var(--fs-hero-2); line-height: var(--lh-hero-2); letter-spacing: var(--tr-hero-2); font-weight: var(--w-bold); text-wrap: balance; }
.lp-lead { max-width: 36ch; color: var(--ink-2); font-size: var(--fs-title-3); line-height: var(--lh-title-2); text-wrap: pretty; }
.lp-small { font-size: var(--fs-footnote); line-height: var(--lh-footnote); }

/* ── Hero ── */
.lp-hero { padding: var(--s-12) 0 var(--s-16); }
@media (min-width: 720px) { .lp-hero { padding: var(--s-20) 0 var(--s-20); } }
.lp-hero-in { display: grid; justify-items: center; gap: var(--s-5); text-align: center; }
.lp-hero .lp-lead { max-width: 34ch; }
@media (max-width: 719px) { .lp-lead { font-size: var(--fs-headline); line-height: var(--lh-title-3); } }
.lp-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-2); }
.lp-hero .lp-small { margin-top: calc(var(--s-2) * -1); }

/* The demo: the study screen on a sunk tray. A real round you can play. */
.lp-demo { --demo-card: clamp(220px, 30vw, 320px); max-width: 760px; margin: var(--s-12) auto 0; padding: var(--s-4) var(--s-4) var(--s-5); border-radius: var(--r-sheet); background: var(--sunk);
  box-shadow: inset 0 0 0 1px var(--edge); scroll-margin-top: var(--s-20); }
@media (min-width: 720px) { .lp-demo { margin-top: var(--s-16); padding: var(--s-5) var(--s-10) var(--s-6); } }
.lp-demo-top { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); max-width: 560px; margin: 0 auto var(--s-4); }
.lp-demo-name { font-size: var(--fs-footnote); line-height: var(--lh-footnote); font-weight: var(--w-semi); color: var(--ink-2); }
/* min-height = card + gap + the two buttons under it: room before the script draws them, so nothing jumps (CLS) */
.lp-demo-body { position: relative; display: grid; align-content: center; max-width: 560px; margin-inline: auto; min-height: calc(var(--demo-card) + var(--s-2) + var(--hit)); }
.lp-demo .flash { height: var(--demo-card); }
.lp-demo .stage { margin-top: var(--s-5); } /* room for the pile behind the card */
.lp-demo .face-text { font-size: var(--fs-title-1); line-height: var(--lh-title-1); letter-spacing: var(--tr-title-1); }
.lp-demo .face-text.long { font-size: var(--fs-title-3); line-height: var(--lh-title-3); }
.lp-demo-hint { max-width: 560px; margin: var(--s-3) auto 0; text-align: center; }
/* Under the card: which way is which. They light up as you swipe, and can be tapped. */
.lp-guides { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-2); }
.lp-guide { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--hit); padding: 0 var(--s-3); border: 0; border-radius: var(--r-pill);
  background: none; color: var(--ink-2); font-size: var(--fs-callout); font-weight: var(--w-semi); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.lp-guide svg { width: 18px; height: 18px; flex: none; }
.lp-guide:active { transform: scale(var(--press-scale)); }
.lp-guide[data-g="-1"][data-armed] { background: var(--again-tint); color: var(--again); }
.lp-guide[data-g="1"][data-armed] { background: var(--accent-tint); color: var(--accent-text); }
@media (hover: hover) and (pointer: fine) { .lp-guide:hover:not([data-armed]) { background: var(--surface); color: var(--ink); } }
@media (hover: hover) and (pointer: fine) and (min-width: 720px) { .lp-guide svg { display: none; } } /* the ← → keys say it */
/* End of the round */
.lp-done { display: grid; justify-items: center; gap: var(--s-2); min-height: clamp(220px, 30vw, 320px); align-content: center; text-align: center; padding: var(--s-4); }
.lp-done p { max-width: 34ch; }
.lp-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-top: var(--s-3); }
.lp-round { display: flex; gap: var(--s-1); margin: 0 0 var(--s-3); padding: 0; list-style: none; }
.lp-round li { width: 30px; height: 40px; display: grid; place-items: center; border-radius: var(--r-chip); animation: lp-deal var(--dur-base) var(--ease-out) both; animation-delay: calc(var(--i) * 40ms); }
.lp-round li svg { width: 16px; height: 16px; }
.lp-round .r-good { background: color-mix(in oklab, var(--good) 16%, var(--surface)); color: var(--good); }
.lp-round .r-again { background: var(--again-tint); color: var(--again); }
@keyframes lp-deal { from { opacity: 0; transform: translateY(12px) rotate(-8deg) scale(0.9); } }

/* ── Subjects ── */
.lp-subjects { padding: 0 0 var(--s-16); }
.lp-subjects-title { margin-bottom: var(--s-4); text-align: center; color: var(--ink-2); font-size: var(--fs-callout); line-height: var(--lh-callout); font-weight: var(--w-medium); }
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); max-width: 52rem; margin: 0 auto; padding: 0; list-style: none; }
.lp-chips li { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-4) 0 var(--s-3); border-radius: var(--r-pill);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge), var(--shadow-low); font-size: var(--fs-callout); font-weight: var(--w-medium); }
.lp-chips svg { width: 18px; height: 18px; color: var(--ink-2); }

/* ── Sections ── */
.lp-section { padding: var(--s-20) 0; }
@media (min-width: 720px) { .lp-section { padding: var(--s-32) 0; } }
.lp-alt { background: var(--surface); }
.lp-alt .card { background: var(--paper); box-shadow: none; }
.lp-head { display: grid; gap: var(--s-3); max-width: 40rem; margin-bottom: var(--s-10); }
@media (min-width: 720px) { .lp-head { margin-bottom: var(--s-16); } }
.lp-center { justify-items: center; margin-inline: auto; text-align: center; }
.lp-split { display: grid; gap: var(--s-10); align-items: center; }
@media (min-width: 960px) { .lp-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-20); } .lp-flip > :first-child { order: 2; } }
.lp-copy { display: grid; gap: var(--s-4); align-content: start; }
#notes .lp-split { align-items: start; } /* the box grows as cards arrive; the words stay put */


/* How it works: three cards, each with the real UI on top (concentric: r-card − s-2) */
.lp-steps { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
.lp-step { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-2) var(--s-2) var(--s-6); border: 1px solid var(--edge); border-radius: var(--r-card);
  background: var(--surface); box-shadow: var(--shadow-low); }
.lp-step > :not(.lp-step-art) { margin-inline: var(--s-4); }
.lp-step-art { position: relative; height: 184px; display: grid; place-items: center; margin-bottom: var(--s-3); overflow: hidden;
  border-radius: calc(var(--r-card) - var(--s-2)); background: var(--sunk); }
.lp-step-n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-pill); background: color-mix(in oklab, var(--tint, var(--accent)) 45%, var(--surface)); color: var(--ink);
  font-size: var(--fs-footnote); font-weight: var(--w-bold); }
.lp-step p { max-width: 32ch; }
.lp-art-label { position: absolute; top: var(--s-3); left: var(--s-4); color: var(--ink-2); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--w-semi); }
/* 1. A card being typed */
.lp-art-make { align-content: center; gap: var(--s-2); padding: 0 max(var(--s-6), calc(50% - 150px)); place-items: stretch; } /* fields stay a sensible width on wide cards */
.lp-field { display: grid; gap: var(--s-1); }
.lp-field-label { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--w-semi); color: var(--ink-2); }
.lp-field-box { display: flex; align-items: center; min-height: 40px; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-control);
  background: var(--surface); font-size: var(--fs-callout); }
.lp-field:last-child .lp-field-box { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lp-caret { width: 2px; height: 1.1em; margin-left: 1px; background: var(--accent); animation: lp-blink 1000ms steps(1) infinite; } /* design-ok: text cursor blink */
@keyframes lp-blink { 50% { opacity: 0; } }
/* 2. A card mid-swipe, its starting place dashed */
.lp-art-swipe::before { content: ""; position: absolute; width: min(56%, 190px); aspect-ratio: 4 / 3; border: 1.5px dashed var(--line-strong); border-radius: var(--r-group); }
.lp-mini-flash { position: relative; width: min(56%, 190px); aspect-ratio: 4 / 3; display: grid; place-items: center; align-content: center; gap: var(--s-1);
  border: 1px solid var(--edge); border-radius: var(--r-group); background: var(--surface); box-shadow: var(--shadow-card); transform: translateX(22%) rotate(7deg); }
.lp-mini-flash b { font-size: var(--fs-title-3); font-weight: var(--w-semi); }
.lp-mini-flash .verdict { opacity: 1; bottom: var(--s-2); font-size: var(--fs-footnote); }
.lp-art-arrow { position: absolute; right: var(--s-3); top: 50%; translate: 0 -50%; color: var(--accent-text); }
.lp-art-arrow svg { width: 24px; height: 24px; }
/* 3. The end of a round, with the app's button for the cards you missed */
.lp-art-missed { align-content: center; gap: var(--s-4); }
.lp-art-missed .lp-round { margin: 0; }
.lp-art-missed .btn { pointer-events: none; background: var(--surface); box-shadow: var(--shadow-low); } /* on the sunk picture, like .dock's */

/* Notes to cards */
.lp-ticks { display: grid; gap: var(--s-2); margin: var(--s-2) 0 0; padding: 0; list-style: none; }
.lp-ticks li { display: flex; align-items: center; gap: var(--s-2); font-weight: var(--w-medium); }
.lp-ticks svg { width: 20px; height: 20px; flex: none; color: var(--good); }
.lp-notes { display: grid; gap: var(--s-3); padding: var(--s-5); }
.lp-notes-input { display: block; min-height: 148px; padding: var(--s-3) var(--s-4); line-height: var(--lh-body); resize: vertical; }
.lp-notes-go { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.lp-notes-try { color: var(--ink-2); font-size: var(--fs-callout); line-height: var(--lh-callout); }
.lp-made-head { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2); padding: var(--s-3) var(--s-4); border-radius: var(--r-group);
  background: var(--accent-tint); color: var(--accent-text); font-size: var(--fs-callout); font-weight: var(--w-medium); }
.lp-made-head svg { width: 20px; height: 20px; flex: none; }
.lp-made { display: grid; gap: var(--s-2); margin: var(--s-2) 0 0; padding: 0; list-style: none; }
.lp-mc { display: grid; gap: var(--s-1); padding: var(--s-3) var(--s-4); border-radius: var(--r-control); background: var(--surface); box-shadow: var(--shadow-low);
  animation: lp-deal var(--dur-base) var(--ease-out) both; animation-delay: calc(var(--i) * 60ms); }
@media (min-width: 560px) { .lp-mc { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-4); } }
.lp-mc b { font-weight: var(--w-semi); }
.lp-mc span { color: var(--ink-2); }

/* A kind streak: the real Today card */
.lp-points { display: grid; gap: 0; margin: var(--s-2) 0 0; padding: 0; list-style: none; }
.lp-points li { padding: var(--s-4) 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.lp-points li:last-child { border-bottom: 1px solid var(--line); }
.lp-points b { display: block; color: var(--ink); font-weight: var(--w-semi); }
.lp-streak-wrap { display: grid; justify-items: center; gap: var(--s-4); }
.lp-key { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-5); margin: 0; padding: 0; list-style: none;
  color: var(--ink-2); font-size: var(--fs-footnote); line-height: var(--lh-footnote); font-weight: var(--w-medium); }
.lp-key li { display: inline-flex; align-items: center; gap: var(--s-2); }
.lp-key .dot { width: 20px; height: 20px; border-width: 1.5px; }
.lp-key .dot svg { width: 12px; height: 12px; }
.lp-key-done { background: var(--accent); border-color: var(--accent); }
.lp-key-rest { border-color: transparent; background: var(--sunk); color: var(--ink-2); }
.lp-streak { display: grid; gap: var(--s-5); width: 100%; max-width: 28rem; padding: var(--s-6); box-shadow: var(--shadow-card); }
@media (min-width: 960px) { .lp-streak { padding: var(--s-8); } .lp-streak .dot { width: 34px; height: 34px; } .lp-streak .week li { font-size: var(--fs-footnote); } }
.lp-streak-top { display: flex; align-items: center; gap: var(--s-3); }
.lp-flame .flame { width: 48px; height: 48px; display: block; }
.lp-streak-count { display: grid; gap: 2px; }
.lp-streak-count b { font-size: var(--fs-title-1); line-height: 1; letter-spacing: var(--tr-title-1); font-weight: var(--w-bold); }
.lp-streak-count span { font-size: var(--fs-footnote); line-height: var(--lh-footnote); font-weight: var(--w-medium); color: var(--ink-2); }
.lp-streak .saves { margin-left: auto; align-self: start; }
.lp-pop { animation: lp-pop var(--dur-sheet) var(--ease-out); }
@keyframes lp-pop { from { transform: scale(0.6); } 60% { transform: scale(1.12); } to { transform: scale(1); } }

/* Folders */
.lp-folders { display: grid; justify-items: center; gap: var(--s-4); }
.lp-folders .group { width: 100%; max-width: 30rem; box-shadow: var(--shadow-card); }
.lp-alt .lp-folders .group { background: var(--paper); }
.lp-alt .lp-folders .row { background: transparent; }
.lp-folders .row { cursor: default; }
.lp-folders .row:active { background: transparent; }
.lp-indent { padding-left: calc(var(--s-4) + var(--s-6)); }
.lp-indent2 { padding-left: calc(var(--s-4) + var(--s-12)); }
.lp-indent::before, .lp-indent2::before { left: calc(var(--s-4) + var(--s-6)) !important; }
/* How much of each set you know, as in Progress. The bars fill once the list is in view. */
.lp-folders .meter.mini { width: 64px; flex: none; }
.lp-folders .meter > i { transition: transform var(--dur-sheet) var(--ease-out); transition-delay: calc(240ms + var(--i) * 80ms); }
.js .lp-folders:not([data-in]) .meter > i { transform: scaleX(0); }

/* Study modes, each with what it does */
.lp-modes { display: grid; gap: var(--s-3); max-width: 54rem; margin: 0 auto; padding: 0; list-style: none; }
@media (min-width: 720px) { .lp-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-modes li { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-card); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--edge), var(--shadow-low); }
/* Icons sit on the avatars' soft colours (mixed like a face's), so the page shares their warmth */
.lp-modes li > svg { width: 44px; height: 44px; flex: none; padding: 11px; border-radius: var(--r-pill); background: color-mix(in oklab, var(--tint, var(--accent)) 45%, var(--surface)); color: var(--ink); }
.lp-modes h3 { margin-bottom: 2px; }
.lp-modes p { text-wrap: pretty; } /* no word left alone on the last line */
.lp-also { margin-top: var(--s-6); text-align: center; font-size: var(--fs-callout); line-height: var(--lh-callout); }

/* The little things */
.lp-little { display: grid; gap: var(--s-8) var(--s-10); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .lp-little { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lp-little { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-little li { display: flex; align-items: flex-start; gap: var(--s-4); }
.lp-little li > svg { width: 48px; height: 48px; flex: none; padding: 12px; border-radius: var(--r-pill); background: color-mix(in oklab, var(--tint, var(--accent)) 45%, var(--surface)); color: var(--ink); }
/* You: a face like the app's avatars, a new look each visit (landing.js). It reacts in the demo; the one in Little things shuffles. */
.lp-you { display: block; width: 28px; height: 28px; }
.lp-you svg, .lp-face-btn svg { display: block; width: 100%; height: 100%; }
.lp-face-btn { width: 48px; height: 48px; flex: none; padding: 0; border: 0; border-radius: var(--r-pill); background: none; cursor: pointer; transition: transform var(--dur-press) var(--ease-out); }
.lp-face-btn:active { transform: scale(var(--press-scale)); }
@media (hover: hover) and (pointer: fine) { .lp-face-btn:hover { transform: rotate(-8deg); } }
.lp-you[data-pop], .lp-face-btn[data-pop] { animation: lp-face var(--dur-reveal) var(--ease-out); }
@keyframes lp-face { 35% { scale: 1.18; rotate: -6deg; } 70% { rotate: 4deg; } }.lp-little h3 { margin-bottom: var(--s-1); }

/* Questions: native details that open smoothly */
.lp-faq-wrap { display: grid; }
@media (min-width: 960px) { .lp-faq-wrap { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: var(--s-20); align-items: start; } .lp-faq-wrap .lp-head { position: sticky; top: var(--s-24); } }
.lp-faq { border-top: 1px solid var(--line); }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq p a { color: var(--accent-text); font-weight: var(--w-semi); text-underline-offset: 2px; }
.lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; padding: var(--s-4) 0; cursor: pointer; list-style: none;
  font-size: var(--fs-headline); line-height: var(--lh-headline); font-weight: var(--w-semi); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); transition: transform var(--dur-base) var(--ease-out); }
.lp-faq details[open] summary svg { transform: rotate(45deg); }
.lp-faq details::details-content { height: 0; overflow: clip; transition: height var(--dur-sheet) var(--ease-out), content-visibility var(--dur-sheet) allow-discrete; }
.lp-faq details[open]::details-content { height: auto; }
.lp-faq details p { max-width: 56ch; padding-bottom: var(--s-5); color: var(--ink-2); }

/* The last word: Mauve, like the login page's brand side */
.lp-end { padding: 0 0 var(--s-20); }
@media (min-width: 720px) { .lp-end { padding-bottom: var(--s-32); } }
.lp-end-in { display: grid; justify-items: center; gap: var(--s-5); padding: var(--s-16) var(--s-6); border-radius: var(--r-sheet); background: var(--accent); color: var(--on-accent); text-align: center; }
@media (min-width: 720px) { .lp-end-in { padding: var(--s-24) var(--s-10); } }
.lp-end .lp-h2 { max-width: 16ch; }
.lp-end-sub { max-width: 34ch; text-wrap: balance; margin-top: calc(var(--s-2) * -1); color: color-mix(in oklab, var(--on-accent) 90%, var(--accent)); font-size: var(--fs-headline); line-height: var(--lh-headline); }
.lp-end-btn { background: var(--surface); color: var(--accent-text); }
.lp-end-btn:active { background: color-mix(in oklab, var(--surface), var(--accent) 10%); }
@media (hover: hover) and (pointer: fine) { .lp-end-btn:hover { background: color-mix(in oklab, var(--surface), var(--accent) 6%); } }

/* Footer */
.lp-foot { padding: var(--s-12) 0 calc(var(--s-10) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.lp-foot-in { display: grid; gap: var(--s-8); }
@media (min-width: 720px) { .lp-foot-in { grid-template-columns: minmax(0, 1fr) auto; } }
.lp-foot-brand { display: grid; gap: var(--s-2); align-content: start; font-size: var(--fs-title-3); }
.lp-foot-links { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s-10); }
.lp-foot-links div { display: grid; gap: var(--s-2); align-content: start; }
.lp-foot-links a { color: var(--ink-2); font-size: var(--fs-callout); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .lp-foot-links a:hover { color: var(--ink); } }
.lp-foot-fine { grid-column: 1 / -1; padding-top: var(--s-6); border-top: 1px solid var(--line); }
.lp-foot-fine a { text-underline-offset: 2px; }

/* Arriving on screen: a short rise, once. Nothing moves after that unless you touch it. */
.js .lp-reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-sheet) var(--ease-out), transform var(--dur-sheet) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .lp-reveal[data-in] { opacity: 1; transform: none; }
/* If landing.js never runs (blocked, failed to load, an error), nothing may stay hidden: after 2.5s the page shows anyway.
   landing.js adds .lp-live once it's in charge of the reveals, which turns this off. */
.js:not(.lp-live) .lp-reveal:not([data-in]) { animation: lp-show 0s 2.5s forwards; }
@keyframes lp-show { to { opacity: 1; transform: none; } }
@media print { .js .lp-reveal { opacity: 1; transform: none; } }

/* ── Pricing: two plans side by side. Premium has the accent ring; until it can be bought its button is greyed out
   ("Coming soon"), so Free has the one accent button. ── */
.lp-plans { display: grid; gap: var(--s-4); max-width: 54rem; margin: 0 auto; }
@media (min-width: 720px) { .lp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); } }
.lp-plan { position: relative; display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-6); border-radius: var(--r-card); background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--edge); }
.lp-plan-premium { background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent), var(--shadow-card); }
.lp-plan-top { display: grid; gap: var(--s-2); }
.lp-plan h3 { display: flex; align-items: center; gap: var(--s-2); }
.lp-plan h3 svg { width: 22px; height: 22px; color: var(--accent-text); }
.lp-price { display: flex; align-items: baseline; gap: var(--s-2); }
.lp-price b { font-size: var(--fs-hero-2); line-height: 1; letter-spacing: var(--tr-hero-2); font-weight: var(--w-bold); }
.lp-price span { color: var(--ink-2); font-weight: var(--w-medium); }
.lp-plan-list { flex: 1; display: grid; gap: var(--s-3); align-content: start; margin: 0; padding: 0; list-style: none; }
.lp-plan-list li { display: flex; align-items: flex-start; gap: var(--s-2); font-weight: var(--w-medium); }
.lp-plan-list svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--good); }

/* ── Flair. Apple's reveals and a little of Duolingo's bounce, in Studalo's own parts.
   Headings rise word by word, pictures act out what they show, praise pops when you swipe.
   Each plays once, as it arrives. Nothing loops (except a text cursor). ── */

/* Headings rise word by word from behind their line */
.lp-w { display: inline-block; vertical-align: top; overflow: clip; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.lp-w > span { display: inline-block; transition: transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--d, 0ms) + var(--wi, 0) * 55ms); }
.js .lp-reveal:not([data-in]) .lp-w > span { transform: translateY(112%); }
/* Buttons that matter lift a little under the mouse */
@media (hover: hover) and (pointer: fine) {
  .lp-lift { transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
  .lp-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
  .lp-lift:active, .lp-lift[data-pressed] { transform: scale(var(--press-scale)); box-shadow: none; }
  .lp-plan, .lp-modes li { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
  .lp-reveal[data-settled].lp-plan:hover, .lp-modes .lp-reveal[data-settled]:hover { transform: translateY(-4px); }
}

/* The demo tray opens flat as you scroll to it, like a laptop lid (where the browser can tie motion to scrolling) */
@supports (animation-timeline: view()) {
  .lp-lid { transform-origin: 50% 0; animation: lp-lid linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  @keyframes lp-lid { from { transform: perspective(1400px) rotateX(16deg) scale(0.93); } to { transform: none; } }
}
/* Praise as you swipe: "Nice", and when the card comes back */
.lp-fb { position: absolute; left: 50%; top: calc(var(--s-4) * -1); z-index: 3; padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); white-space: nowrap; pointer-events: none;
  font-size: var(--fs-footnote); line-height: var(--lh-footnote); font-weight: var(--w-semi); box-shadow: var(--shadow-low);
  opacity: 0; transform: translate(-50%, 6px) scale(0.92); transition: opacity var(--dur-fast) ease, transform var(--dur-base) var(--ease-pop); }
.lp-fb[data-show] { opacity: 1; transform: translate(-50%, 0); }
.lp-fb[data-tone="good"] { background: color-mix(in oklab, var(--good) 16%, var(--surface)); color: var(--good); }
.lp-fb[data-tone="again"] { background: var(--again-tint); color: var(--again); }
/* Card pieces burst up and out (the app's end-screen moment) */
.lp-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 2; }
.lp-burst i { position: absolute; left: -5px; top: -7px; width: 10px; height: 14px; border-radius: 3px; background: var(--c); opacity: 0;
  animation: lp-burst var(--dur-show) var(--ease-out) var(--dl, 0ms) both; }
@keyframes lp-burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(0.6); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); } }
.lp-done { position: relative; }

/* Subjects pop in one after another */
.js .lp-chips.lp-reveal { opacity: 1; transform: none; }
.lp-chips li { transition: opacity var(--dur-base) ease, transform var(--dur-reveal) var(--ease-pop); transition-delay: calc(var(--i) * 35ms); }
.js .lp-chips:not([data-in]) li { opacity: 0; transform: translateY(10px) scale(0.9); }
.lp-chips[data-settled] li { transition-delay: 0ms; }
@media (hover: hover) and (pointer: fine) { .lp-chips[data-settled] li:hover { transform: translateY(-2px); } }

/* How it works, acted out: 1 the definition types itself, 2 the card swipes away "Got it", 3 the round is dealt, then its button rises */
.lp-typed:empty + .lp-caret { margin-left: 0; }
.lp-art-swipe .lp-mini-flash { transition: transform var(--dur-show) var(--ease-pop) 350ms; } /* design-ok: start delay for a one-time reveal; durations are tokens */
.lp-art-swipe .verdict, .lp-art-arrow { transition: opacity var(--dur-base) ease 700ms, translate var(--dur-reveal) var(--ease-out) 700ms; } /* design-ok: start delays for a one-time reveal; durations are tokens */
.js .lp-step:not([data-in]) .lp-mini-flash { transform: none; }
.js .lp-step:not([data-in]) .lp-art-swipe .verdict { opacity: 0; }
.js .lp-step:not([data-in]) .lp-art-arrow { opacity: 0; translate: -12px -50%; }
.lp-art-missed .lp-round li { animation: none; transition: opacity var(--dur-base) ease, transform var(--dur-reveal) var(--ease-pop); transition-delay: calc(300ms + var(--i) * 70ms); } /* design-ok: start delays for a one-time reveal; durations are tokens */
.lp-art-missed .btn { transition: opacity var(--dur-base) ease 750ms, transform var(--dur-reveal) var(--ease-out) 750ms; } /* design-ok: start delay for a one-time reveal; durations are tokens */
.js .lp-step:not([data-in]) .lp-art-missed .lp-round li { opacity: 0; transform: translateY(12px) rotate(-8deg) scale(0.9); }
.js .lp-step:not([data-in]) .lp-art-missed .btn { opacity: 0; transform: translateY(10px); }

/* The streak: this week's dots pop in, then today's fills and the count goes up */
.lp-streak .week .dot { transition: transform var(--dur-reveal) var(--ease-pop), opacity var(--dur-base) ease, background-color var(--dur-base) ease, border-color var(--dur-base) ease;
  transition-delay: calc(200ms + var(--i) * 70ms); }
.js .lp-streak-wrap:not([data-in]) .week .dot { opacity: 0; transform: scale(0.6); }
.lp-streak[data-kept] .week .dot { transition-delay: 0ms; }
.lp-streak-top { position: relative; }
.lp-flame { position: relative; }

/* Folders fill in row by row */
.lp-folders .row { transition: opacity var(--dur-base) ease, transform var(--dur-reveal) var(--ease-out); transition-delay: calc(150ms + var(--i) * 70ms); }
.js .lp-folders:not([data-in]) .row { opacity: 0; transform: translateY(10px); }

/* The last word: three cards dealt onto the Mauve. They fan out a little more under the mouse. */
.lp-fan { --spread: min(96px, 23vw); position: relative; width: 100%; height: 92px; }
.lp-fan-card { position: absolute; left: 50%; top: var(--s-2); width: 124px; height: 78px; margin-left: -62px; display: grid; place-items: center; padding: var(--s-2);
  border-radius: var(--r-control); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); font-size: var(--fs-callout); font-weight: var(--w-semi);
  transform: translateX(calc((var(--i) - 1) * var(--spread))) rotate(var(--r)); transition: transform var(--dur-reveal) var(--ease-pop), opacity var(--dur-base) ease;
  transition-delay: calc(200ms + var(--i) * 90ms); }
.lp-fan-card:nth-child(2) { z-index: 1; top: 0; }
.js .lp-end-in:not([data-in]) .lp-fan-card { opacity: 0; transform: translateY(48px) scale(0.9); }
.lp-end-in[data-settled] .lp-fan-card { transition-delay: 0ms; }
@media (hover: hover) and (pointer: fine) {
  .lp-end-in[data-settled]:hover .lp-fan-card { transform: translateX(calc((var(--i) - 1) * var(--spread) * 1.15)) translateY(-4px) rotate(calc(var(--r) * 1.4)); }
}

/* ── Blog: an index of posts (blog.html) and one page per post (blog/, from blog/_template.html) ── */
.bl-head { padding: var(--s-16) 0 var(--s-8); }
.bl-head .lp-wrap { display: grid; gap: var(--s-3); }
.bl-body { padding: 0 0 var(--s-20); }
.bl-list { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.bl-list:empty { display: none; }
.bl-post { display: grid; gap: var(--s-2); padding: var(--s-5) var(--s-6); border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge), var(--shadow-low);
  text-decoration: none; transition: transform var(--dur-base) var(--ease-out); }
.bl-post:active { transform: scale(var(--press-scale)); }
@media (hover: hover) and (pointer: fine) { .bl-post:hover { transform: translateY(-2px); } }
.bl-empty { max-width: 34rem; }
.bl-article { padding: var(--s-12) 0 var(--s-20); }
.bl-narrow { max-width: 42rem; display: grid; gap: var(--s-4); }
.bl-back { display: inline-flex; align-items: center; gap: var(--s-1); justify-self: start; color: var(--accent-text); font-weight: var(--w-semi); text-decoration: none; }
.bl-back svg { width: 16px; height: 16px; }
.bl-title { display: grid; gap: var(--s-4); }
.bl-meta { margin-top: calc(var(--s-2) * -1); }
.bl-prose { display: grid; gap: var(--s-4); margin-top: var(--s-4); font-size: var(--fs-headline); line-height: var(--lh-title-3); }
.bl-prose h2 { margin-top: var(--s-4); font-size: var(--fs-title-2); line-height: var(--lh-title-2); font-weight: var(--w-bold); }
.bl-prose h3 { margin-top: var(--s-2); font-size: var(--fs-title-3); line-height: var(--lh-title-3); font-weight: var(--w-semi); }
.bl-prose h3 + p { margin-top: calc(var(--s-2) * -1); }
.bl-prose :is(ul, ol) { display: grid; gap: var(--s-2); margin: 0; padding-left: var(--s-5); }
.bl-prose a { color: var(--accent-text); font-weight: var(--w-semi); text-underline-offset: 2px; }
.bl-prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); line-height: var(--lh-body); }
.bl-prose :is(th, td) { padding: var(--s-3) var(--s-3) var(--s-3) 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--edge); }
.bl-prose th[scope="row"] { width: 34%; font-weight: var(--w-semi); }
.bl-prose thead th { font-weight: var(--w-semi); }
.bl-print { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) var(--s-6); }
.bl-print > div { display: grid; gap: var(--s-1); flex: 1 1 18rem; }

/* The printable planner in a post: hidden on screen, the only thing printed after "Print the planner" (blog.js) */
.planner { display: none; }
@media print {
  .pl-print body > :not(main), .pl-print main > :not(.planner) { display: none !important; }
  .pl-print, .pl-print :is(body, main) { background: var(--surface) !important; }
  .pl-print .planner { display: block; color: var(--ink); font-size: 10.5pt; line-height: 1.35; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .planner-page { display: flex; flex-direction: column; gap: 3.5mm; min-height: 250mm; padding: 0 2mm; break-after: page; }
  .planner-page:last-child { break-after: auto; }
  .planner h2 { margin: 0; font-size: 22pt; line-height: 1.1; font-weight: var(--w-bold); }
  .planner h3 { margin: 2mm 0 0; font-size: 12.5pt; font-weight: var(--w-bold); color: var(--accent-text); }
  .planner p, .planner ol, .planner ul { margin: 0; }
  .pl-lead { color: var(--ink-2); }
  .planner table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .planner :is(th, td) { border: 0.75pt solid var(--line-strong); padding: 1.5mm 2.5mm; text-align: left; vertical-align: middle; }
  .planner thead th { background: var(--accent-tint); font-size: 9.5pt; font-weight: var(--w-semi); }
  .pl-mocks td { height: 13mm; }
  .pl-mocks th:nth-child(1) { width: 28%; } .pl-mocks th:nth-child(2) { width: 18%; }
  .pl-days thead th:first-child { width: 17%; }
  .pl-days th[scope="row"] { font-weight: var(--w-semi); }
  .pl-days thead th:nth-child(n+3) { width: 12%; text-align: center; }
  .pl-days td:nth-child(n+3) { text-align: center; }
  .pl-days td, .pl-days th[scope="row"] { height: 10.5mm; }
  .pl-off :is(th, td) { background: var(--sunk); color: var(--ink-2); }
  .pl-box { display: inline-block; width: 4.5mm; height: 4.5mm; border: 0.9pt solid var(--ink); border-radius: 1mm; vertical-align: middle; }
  .pl-routine { list-style: none; padding: 0; display: grid; gap: 2.5mm; }
  .pl-routine .pl-box { margin-right: 3mm; }
  .pl-rules { padding-left: 5mm; display: grid; gap: 1.5mm; }
  .pl-foot { margin-top: auto !important; padding-top: 3mm; font-size: 8.5pt; color: var(--ink-2); border-top: 0.75pt solid var(--line); }
}
@page { margin: 12mm; }
.bl-cta { display: grid; justify-items: start; gap: var(--s-2); margin-top: var(--s-8); padding: var(--s-6); }

/* Privacy Policy and Terms: the blog's reading column, the short version first, then only what the law asks for.
   Smaller body text than a post, since people scan these for one answer. */
.lg .bl-prose { font-size: var(--fs-body); line-height: var(--lh-body); gap: var(--s-3); }
.lg .bl-prose h2 { margin-top: var(--s-6); font-size: var(--fs-title-3); line-height: var(--lh-title-3); scroll-margin-top: calc(var(--s-16) + var(--s-4)); }
.lg :is(.bl-prose, .lg-short) ul { display: grid; gap: var(--s-2); margin: 0; padding-left: var(--s-5); }
.lg a { color: var(--accent-text); font-weight: var(--w-semi); text-underline-offset: 2px; }
.lg-short { display: grid; gap: var(--s-3); margin-top: var(--s-4); padding: var(--s-5) var(--s-6); background: var(--accent-tint); box-shadow: none; }
.lg-table-wrap { overflow-x: auto; border-radius: var(--r-control); box-shadow: inset 0 0 0 1px var(--edge); }
.lg-table { width: 100%; border-collapse: collapse; font-size: var(--fs-callout); line-height: var(--lh-callout); }
.lg-table :is(th, td) { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; }
.lg-table th { background: var(--sunk); font-weight: var(--w-semi); }
.lg-table td { border-top: 1px solid var(--line); }
.lg-table td:first-child { font-weight: var(--w-medium); }
.lg-table code { font-size: var(--fs-footnote); overflow-wrap: anywhere; }
@media (max-width: 559px) { .lg-table :is(th, td) { padding: var(--s-2) var(--s-3); } .lg-short { padding: var(--s-4) var(--s-5); } }
/* The cancellation form the law asks us to give: set apart so it's easy to copy */
.lg-form { margin: 0; padding: var(--s-4); border-radius: var(--r-control); background: var(--sunk); color: var(--ink-2); font-size: var(--fs-callout); line-height: var(--lh-callout); }
/* Placeholders to fill in before launch: loud on purpose, so none slips through (check.mjs counts them) */
mark.todo { padding: 0 var(--s-1); border-radius: var(--s-1); background: var(--again-tint); color: var(--ink); font-weight: var(--w-semi); }

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) .lp-reveal { transform: none; transition: opacity var(--dur-fast) ease; transition-delay: 0ms; }
  :root:not([data-motion="full"]) .lp-caret, :root:not([data-motion="full"]) .lp-round li, :root:not([data-motion="full"]) .lp-mc, :root:not([data-motion="full"]) .lp-pop { animation: none; }
  :root:not([data-motion="full"]) .lp-faq details::details-content { transition: none; }
  :root:not([data-motion="full"]) .lp-guide:active { transform: none; }
  :root:not([data-motion="full"]) .lp-lid { animation: none; }
  :root:not([data-motion="full"]) :is(.lp-w > span, .lp-chips li, .lp-mini-flash, .lp-art-missed .lp-round li, .lp-art-missed .btn, .lp-streak .week .dot, .lp-folders .row, .lp-fan-card) { transform: none !important; transition-property: opacity; }
  :root:not([data-motion="full"]) .lp-burst { display: none; }
  :root:not([data-motion="full"]) .lp-folders .meter > i { transition: none; }
  :root:not([data-motion="full"]) :is(.lp-you, .lp-face-btn) { animation: none; transform: none; }
}
