/* stemlet.app's home page (index.html only; site.css first). 2026-11-25 redesign: a big centred head, two real runs
   replayed as two cards one over the other (assets/hero.js), the comparison, the science tools with what they draw,
   AI, 무료 in a lightly tinted card, groups, questions. Figures first, slides after (the owner, 2026-11-25). Our own
   look, not a borrowed one (the owner, 2026-11-25): no band of another colour across the page, no window frame with
   traffic lights, no editor | preview halves, no numbered steps; centred heads, one line each. Moves are transform and
   opacity only, on one spring, once — and none with reduced motion. Colours are the site's tokens; the few of this
   page's own are below, dark in both places (the media query and data-theme). */
.home {
  --lp-wrap: min(1200px, 100% - 48px);
  --lp-canvas: #eceef1;
  --lp-canvas-dot: rgba(27, 42, 65, 0.13);
  --lp-stage-line: rgba(27, 42, 65, 0.1);
  --lp-stage-shadow: 0 1px 2px rgba(27, 42, 65, 0.05), 0 30px 70px -28px rgba(27, 42, 65, 0.35);
  --lp-chip-shadow: 0 1px 2px rgba(27, 42, 65, 0.08), 0 8px 22px -10px rgba(27, 42, 65, 0.3);
  --lp-back-veil: rgba(236, 238, 241, 0.42);
  --lp-row-now: #e8f4ec;
  --lp-select: #2f63e0;
  --lp-stitch: #0b7a4a;
  --lp-free: #e9f3ec;
  --lp-free-line: rgba(11, 122, 74, 0.12);
  --lp-cta: #0b7a4a;
  --lp-cta-hover: #096a40;
  /* The page's ground (see "The ground" below): a faint leaf tint, the lights over it, and a step off it for
     paper-2 (still a step off this ground, not white's). Cards stay white paper on it. */
  --lp-ground: #f6f9f7;
  --paper-2: #edf2ee;
  --lp-light: rgba(11, 122, 74, 0.12);
  --lp-light-leaf: rgba(142, 209, 90, 0.14);
  --lp-light-cool: rgba(27, 42, 65, 0.05);
  --lp-light-end: rgba(11, 122, 74, 0.07);
  /* The head's marker: the logo leaf's lime into its green, pale. */
  --lp-pen-a: rgba(142, 209, 90, 0.46);
  --lp-pen-b: rgba(95, 191, 127, 0.36);
  /* One spring for what moves on this page (ζ ≈ 0.68: a 5 % overshoot); a plain curve where linear() isn't known. */
  --spring: cubic-bezier(0.2, 1.25, 0.35, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  .home { --spring: linear(0, 0.064, 0.21, 0.389, 0.565, 0.72, 0.844, 0.934, 0.996, 1.032, 1.05, 1.054, 1.051, 1.043, 1.033, 1.023, 1.015, 1.008, 1.003, 1, 0.998, 0.997, 0.997, 0.997, 0.998, 0.998, 0.999, 0.999, 1, 1, 1, 1, 1); }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .home {
    --lp-canvas: #0b1016;
    --lp-canvas-dot: rgba(232, 237, 243, 0.1);
    --lp-stage-line: rgba(255, 255, 255, 0.08);
    --lp-stage-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 34px 80px -26px rgba(0, 0, 0, 0.85);
    --lp-chip-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 26px -10px rgba(0, 0, 0, 0.8);
    --lp-back-veil: rgba(8, 12, 17, 0.45);
    --lp-row-now: #17302a;
    --lp-select: #6f98ff;
    --lp-stitch: #5fbf7f;
    --lp-free: #121c18;
    --lp-free-line: rgba(95, 191, 127, 0.16);
    --lp-cta: #0e7d4c;
    --lp-cta-hover: #12915a;
    --lp-ground: #0f151a;
    --paper-2: #171e27;
    --lp-light: rgba(95, 191, 127, 0.17);
    --lp-light-leaf: rgba(142, 209, 90, 0.075);
    --lp-light-cool: rgba(111, 152, 255, 0.075);
    --lp-light-end: rgba(95, 191, 127, 0.08);
    --lp-pen-a: rgba(142, 209, 90, 0.36);
    --lp-pen-b: rgba(95, 191, 127, 0.46);
  }
}
:root[data-theme="dark"] .home {
  --lp-canvas: #0b1016;
  --lp-canvas-dot: rgba(232, 237, 243, 0.1);
  --lp-stage-line: rgba(255, 255, 255, 0.08);
  --lp-stage-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 34px 80px -26px rgba(0, 0, 0, 0.85);
  --lp-chip-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 26px -10px rgba(0, 0, 0, 0.8);
  --lp-back-veil: rgba(8, 12, 17, 0.45);
  --lp-row-now: #17302a;
  --lp-select: #6f98ff;
  --lp-stitch: #5fbf7f;
  --lp-free: #121c18;
  --lp-free-line: rgba(95, 191, 127, 0.16);
  --lp-cta: #0e7d4c;
  --lp-cta-hover: #12915a;
  --lp-ground: #0f151a;
  --paper-2: #171e27;
  --lp-light: rgba(95, 191, 127, 0.17);
  --lp-light-leaf: rgba(142, 209, 90, 0.075);
  --lp-light-cool: rgba(111, 152, 255, 0.075);
  --lp-light-end: rgba(95, 191, 127, 0.08);
  --lp-pen-a: rgba(142, 209, 90, 0.36);
  --lp-pen-b: rgba(95, 191, 127, 0.46);
}

/* ── The ground (the owner, 2026-11-26: "흰색이라서 심심함 … 아주 살짝 색을"): the whole page on a faint leaf tint,
   light falling on it from above — the logo leaf's green with its lime to the left and a cool navy to the right —
   and the same green gathering again at the foot. One tint top to bottom, never a band of another colour; painted
   once with the page (it scrolls with it: nothing fixed, no blur, no picture). The pointer's dot spot (.hx-bg) sits
   on top as before. */
body.home {
  background-color: var(--lp-ground);
  background-image:
    radial-gradient(max(62vw, 560px) 780px at 50% -140px, var(--lp-light), transparent 76%),
    radial-gradient(max(42vw, 320px) 680px at 0% 280px, var(--lp-light-leaf), transparent 72%),
    radial-gradient(max(42vw, 320px) 680px at 100% 180px, var(--lp-light-cool), transparent 72%),
    radial-gradient(max(70vw, 600px) 900px at 50% calc(100% + 260px), var(--lp-light-end), transparent 72%);
  background-repeat: no-repeat;
}
/* The bar over it: clear at the top, so the light runs under it unbroken; the ground, not white, once the page moves. */
.home .top { background: color-mix(in srgb, var(--lp-ground) 84%, transparent); }
html.js .home .top:not(.scrolled):not(.open) { background: transparent; }
/* Its hairline pills are filled with paper, so they keep their edge on the tint. */
.home .top :is(.menu-toggle, .lang-current, .theme-switch, [data-account] .signed-out, [data-account] .signed-in) { background: var(--paper); }

.home .wrap { width: var(--lp-wrap); }
@media (max-width: 600px) { .home { --lp-wrap: calc(100% - 32px); } }

/* Things come in once as they reach the screen (motion.js adds .in), on the page's spring. */
html.js .home .reveal { transition: opacity 0.6s ease calc(var(--i, 0) * 80ms), transform 0.9s var(--spring) calc(var(--i, 0) * 80ms); }
/* Buttons give a little under the finger. */
.home .button, .top-cta, .lp-mode, .lp-win-tools button, .lp-bring { transition: transform 0.22s var(--spring), filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.home .button:active, .top-cta:active, .lp-win-tools button:active { transform: scale(0.97); }

/* The bar: a download button that stays (the menu's own download link waits in the narrow panel). */
.top-cta { display: inline-flex; flex: none; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; background: var(--lp-cta); color: #fff; font: 600 13.5px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.top-cta:hover { background: var(--lp-cta-hover); }
.top-cta:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (min-width: 961px) { .home .menu-links a[href="/download"] { display: none; } }
@media (max-width: 600px) { .top-cta { display: none; } }

/* ── The head: centred ────────────────────────────────────────────────────── */
.lp-hero { position: relative; padding: clamp(48px, 6.5vw, 88px) 0 0; text-align: center; }
.lp-stem { margin: 0 0 14px; color: var(--muted); font-size: clamp(13px, 1.3vw, 16px); font-weight: 500; letter-spacing: 0.01em; line-height: 1.4; }
.lp-stem b { color: var(--lp-stitch); font-weight: 800; }
.lp-stem span { color: var(--line); }
.lp-hero h1 { margin: 0; color: var(--ink); font-size: clamp(34px, 6.3vw, 82px); font-weight: 800; line-height: 1.07; letter-spacing: -0.04em; }
.lp-hero h1 .l { display: block; }
/* A line that wraps on a phone wraps evenly ("Make STEM figures / and slides", not a lone "slides"). */
.lp-hero h1 .l { text-wrap: balance; }
:root[lang="en"] .lp-hero h1 { letter-spacing: -0.035em; }
:root[lang="ja"] .lp-hero h1, :root[lang^="zh"] .lp-hero h1 { letter-spacing: -0.02em; }
/* The second line's "AI와 함께" (with AI, AIと一緒に, 和 AI 一起) under a marker (the owner's pick, 2026-11-26, for the
   dashes he didn't like): a pale band in the leaf's greens over the lower half of the words, behind them, a chisel
   start and a ragged lift. It paints in left to right three times, a rest between, and stays (never a loop); whole
   from the start without the script or with reduced motion. The phrase never breaks, so the band is always one. */
.lp-pen { position: relative; z-index: 0; white-space: nowrap; }
.lp-pen::before { content: ""; position: absolute; z-index: -1; left: -0.09em; right: -0.12em; bottom: 0.13em; height: 0.52em; background: linear-gradient(90deg, var(--lp-pen-a), var(--lp-pen-b)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 42' preserveAspectRatio='none'%3E%3Cpath d='M7 7C40 5 80 7 120 5.5C150 4.5 175 6 193 4.8L196.5 10L194 15.5L198.5 21L195.5 27L199 33L195 36.2C160 37.5 120 35.5 80 37C50 38 25 36 3 37.5L1.5 31L4.5 24L2 17L5 11Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 42' preserveAspectRatio='none'%3E%3Cpath d='M7 7C40 5 80 7 120 5.5C150 4.5 175 6 193 4.8L196.5 10L194 15.5L198.5 21L195.5 27L199 33L195 36.2C160 37.5 120 35.5 80 37C50 38 25 36 3 37.5L1.5 31L4.5 24L2 17L5 11Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; pointer-events: none; }
html.js .lp-pen::before { clip-path: inset(0 100% 0 0); animation: lp-pen 6.4s linear 0.5s forwards; }
@keyframes lp-pen {
  0%, 38%, 77% { clip-path: inset(0 100% 0 0); opacity: 0; }
  0.1%, 39%, 78% { clip-path: inset(0 100% 0 0); opacity: 1; animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1); }
  12%, 32%, 51%, 71%, 90%, 100% { clip-path: inset(0 0 0 0); opacity: 1; }
  37%, 76% { clip-path: inset(0 0 0 0); opacity: 0; }
}
.lp-lead { max-width: 44em; margin: 26px auto 0; color: var(--ink-2); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; text-wrap: pretty; }
.lp-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 32px; }
.lp-actions .button { min-height: 52px; padding: 0 24px; font-size: 16px; }
.lp-actions .button:not(.quiet) { border-color: var(--lp-cta); background: var(--lp-cta); color: #fff; box-shadow: 0 10px 24px -12px rgba(11, 122, 74, 0.6); }
.lp-actions .button:not(.quiet):hover { border-color: var(--lp-cta-hover); background: var(--lp-cta-hover); filter: none; }
.lp-facts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14.5px; }
/* A fact that wraps keeps its check by its first line (QA 11-26, 390 px en). */
.lp-facts li { display: inline-flex; align-items: flex-start; gap: 7px; margin: 0; line-height: 1.45; text-align: left; }
.lp-facts li > span { text-wrap: balance; }
.lp-facts svg { flex: none; width: 17px; height: 17px; margin-top: calc((1.45em - 17px) / 2); color: var(--leaf); }
/* 무료, a step up (the owner, 2026-11-25). */
.lp-facts li.free { color: var(--ink); font-size: 17px; font-weight: 600; }
.lp-facts li.free svg { width: 19px; height: 19px; margin-top: calc((1.45em - 19px) / 2); stroke-width: 2.2; }
.lp-os { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.lp-os svg { flex: none; width: 16px; height: 16px; }
.lp-hero .lang-note { justify-content: center; margin: 8px 0 0; text-align: center; }
:root[lang="ja"] .lp-hero h1, :root[lang="ja"] .lp-head { word-break: auto-phrase; }
/* Korean heads break between words, never inside one; a key word never splits. */
:root[lang="ko"] .home :is(h1, h2, h3) { word-break: keep-all; overflow-wrap: break-word; }
/* A head's key word in the brand's green (the owner, 2026-11-25), the same word in every language. */
.home em.hl { color: var(--lp-stitch); font-style: normal; white-space: nowrap; }

/* ── The stage: two runs as two cards ─────────────────────────────────────── */
.lp-stage-wrap { width: min(1140px, 100% - 64px); margin: clamp(44px, 6vw, 72px) auto 0; }
/* The two runs to choose, each under a researcher's line to themself in thin type (phones: the chosen one's line only). */
.lp-mutters, .lp-modes { display: grid; grid-template-columns: 1fr 1fr; max-width: 720px; margin: 0 auto; }
.lp-mutters { column-gap: 14px; }
.lp-mutter { align-self: end; margin: 0 0 8px; padding: 0 10px; color: var(--ink-2); font: 250 clamp(15.2px, 1.52vw, 19.2px)/1.4 var(--sans); letter-spacing: -0.01em; text-align: center; text-wrap: balance; }
/* The chooser: one pill, its mark sliding to the chosen half. */
.lp-modes { position: relative; isolation: isolate; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.lp-mode-mark { position: absolute; z-index: -1; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: color-mix(in srgb, var(--ink) 9%, var(--paper)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); transition: transform 0.55s var(--spring); }
.lp-modes[data-at="1"] .lp-mode-mark { transform: translateX(100%); }
.lp-mode { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 700 clamp(14.5px, 1.4vw, 16.5px)/1.2 var(--sans); cursor: pointer; }
/* Each tab with its own lucide mark (the owner, 2026-11-26): shapes for figures, presentation for slides. */
.lp-mode svg { flex: none; width: 19px; height: 19px; color: var(--muted); transition: color 0.2s ease; }
.lp-mode[aria-selected="true"] svg { color: var(--leaf); }
.lp-mode:hover { color: var(--ink); }
.lp-mode[aria-selected="true"] { color: var(--ink); }
.lp-mode:active { transform: scale(0.97); }
.lp-mode:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 699px) {
  .lp-mutters { grid-template-columns: 1fr; }
  .lp-stage-wrap[data-mode="figure"] .lp-mutter[data-tab="slides"], .lp-stage-wrap[data-mode="slides"] .lp-mutter[data-tab="figure"] { display: none; }
  /* The mark over the words, so each tab keeps one line of words in every language. */
  .lp-mode { flex-direction: column; gap: 3px; min-height: 58px; padding: 6px; font-size: 14px; }
  .lp-mode svg { width: 17px; height: 17px; }
}

/* The stack: both cards in one place; the one behind tilted up and to the side, its edge and name showing. Which is in
   front comes from data-front (in the page from the start, so nothing jumps when the script arrives). */
.lp-stack { position: relative; display: grid; margin: clamp(30px, 4vw, 48px) auto 0; padding-top: clamp(18px, 3vw, 36px); }
.lp-stack > .lp-stage { grid-area: 1 / 1; }
.lp-stage { position: relative; z-index: 2; border-radius: 20px; transform-origin: 50% 50%; transition: transform 0.85s var(--spring); }
.lp-stack[data-front="figure"] > [data-mode="slides"], .lp-stack[data-front="slides"] > [data-mode="figure"] { z-index: 1; transform: translate(2%, -5%) rotate(-1.6deg) scale(0.95); }
/* Its shadow and the veil over the one behind fade (opacity only). */
.lp-stage::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--lp-stage-shadow); pointer-events: none; transition: opacity 0.5s ease; }
.lp-stage::after { content: ""; position: absolute; z-index: 5; inset: 0; border-radius: inherit; background: var(--lp-back-veil); opacity: 0; pointer-events: none; transition: opacity 0.45s ease; }
.lp-stack[data-front="figure"] > [data-mode="slides"]::before, .lp-stack[data-front="slides"] > [data-mode="figure"]::before { opacity: 0.45; }
.lp-stack[data-front="figure"] > [data-mode="slides"]::after, .lp-stack[data-front="slides"] > [data-mode="figure"]::after { opacity: 1; }
/* Behind: the whole card is a button to bring it up, its name on the edge that shows. */
.lp-bring { position: absolute; z-index: 6; inset: 0; display: none; padding: 0; border: 0; border-radius: inherit; background: none; cursor: pointer; }
.lp-stack[data-front="figure"] > [data-mode="slides"] .lp-bring, .lp-stack[data-front="slides"] > [data-mode="figure"] .lp-bring { display: block; }
.lp-bring:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
/* What moves on the card behind steps aside (its window keeps its S and file), so its name reads clearly on its edge. */
.lp-status, .lp-win-tools, .lp-ask, .lp-calls, .lp-dock, .lp-hint, .lp-runs { transition: opacity 0.35s ease; }
.lp-stack[data-front="figure"] > [data-mode="slides"] :is(.lp-status, .lp-win-tools, .lp-ask, .lp-calls, .lp-dock, .lp-hint, .lp-runs), .lp-stack[data-front="slides"] > [data-mode="figure"] :is(.lp-status, .lp-win-tools, .lp-ask, .lp-calls, .lp-dock, .lp-hint, .lp-runs) { opacity: 0; }
.lp-tag { position: absolute; top: 10px; right: 18px; display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px; background: var(--paper); box-shadow: var(--lp-chip-shadow); color: var(--ink); font: 700 13px/1 var(--sans); white-space: nowrap; }
.lp-bring:hover .lp-tag { color: var(--leaf); }
@media (hover: hover) {
  .lp-stack[data-front="figure"] > [data-mode="slides"]:hover, .lp-stack[data-front="slides"] > [data-mode="figure"]:hover { transform: translate(2.4%, -6.4%) rotate(-2.2deg) scale(0.95); }
}

/* A card is stemlet's window (the owner, 2026-11-26): a head with the S and the file, what the AI is doing and the calls'
   count; under it the canvas — the app's grey with its dots — with the examples, the request, the dock's outline and
   the calls on it. Nothing borrowed from another system's window, no editor | preview halves. */
.lp-card { position: relative; display: flex; flex-direction: column; overflow: hidden; text-align: left; border: 1px solid var(--lp-stage-line); border-radius: inherit; background: var(--paper); }
.lp-win-head { position: relative; z-index: 3; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 10px 6px 16px; border-bottom: 1px solid var(--lp-stage-line); background: var(--paper); }
.lp-win-title { display: flex; flex: none; align-items: center; gap: 9px; }
.lp-win-tools { display: flex; flex: none; align-items: center; gap: 8px; margin-left: auto; color: var(--ink-2); font-size: 13px; }
.lp-win-body { position: relative; flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "runs ask" "canvas canvas"; align-items: start; gap: 10px; padding-top: 14px; background-color: var(--lp-canvas); background-image: radial-gradient(circle, var(--lp-canvas-dot) 1px, transparent 1.4px); background-size: 20px 20px; }
.lp-canvas { position: relative; grid-area: canvas; display: flex; flex-direction: column; justify-content: center; min-height: 260px; padding: 6px 34px 62px 78px; }
/* A run's sheets: one page, or a deck's slides that pile up one by one; white in both themes (they are the pages). */
.lp-stage .lp-board { position: relative; display: grid; width: 100%; margin-inline: auto; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); gap: 10px; min-height: 120px; touch-action: pan-y; }
.lp-sheet { position: relative; margin: 0; aspect-ratio: var(--ar, 16 / 9); border-radius: 3px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 10px 30px -12px rgba(0, 0, 0, 0.3); }
.lp-sheet > svg { display: block; width: 100%; height: 100%; -webkit-user-select: none; user-select: none; }
.lp-stage[data-mode="slides"] .lp-sheet { transition: opacity 0.4s ease, transform 0.7s var(--spring); }
.lp-stage[data-mode="slides"] .lp-sheet:not(.live) { opacity: 0; transform: translateY(10px) scale(0.97); }
/* A deck (the owner, 2026-11-26: "16장 흰 판에서 한 땀씩"): all its slides white from the start, filling in piece by
   piece; done, the deck itself opens over them, grown from its slider slide, with a bar to go back, try it, or open it
   in a tab. Phones: two a row, and a tab of its own. */
.lp-board.deck { gap: 8px; }
.lp-stage .lp-board.deck .lp-sheet, .lp-stage .lp-board.deck .lp-sheet:not(.live) { opacity: 1; transform: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(27, 42, 65, 0.12), 0 4px 12px -8px rgba(0, 0, 0, 0.3); }
.lp-stage.done .lp-board.deck .lp-sheet { cursor: pointer; }
.lp-stage.done .lp-board.deck .lp-sheet:hover { box-shadow: 0 0 0 2px var(--lp-select); }
.lp-live { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; background: #0e131a; opacity: 0; pointer-events: none; transform-origin: 0 0; transition: opacity 0.35s ease, transform 0.75s var(--spring); }
.lp-board.opened .lp-live { opacity: 1; pointer-events: auto; }
.lp-deck-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.lp-deck-bar[hidden], .lp-deck-btn[hidden] { display: none; }
.lp-deck-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 13.5px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform 0.22s var(--spring), background-color 0.2s ease, color 0.2s ease; }
.lp-deck-btn svg { width: 15px; height: 15px; }
.lp-deck-btn:hover { border-color: var(--ink-2); }
.lp-deck-btn.primary { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.lp-deck-btn:active { transform: scale(0.97); }
.lp-deck-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* No record yet (TODO(real)): an empty page and one quiet line. */
.lp-stage.waiting .lp-board { aspect-ratio: 16 / 9; border-radius: 3px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 10px 30px -12px rgba(0, 0, 0, 0.3); }
.lp-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #8a94a3; font-size: 15px; font-weight: 600; pointer-events: none; }
/* On the canvas: the examples (top left), the request (top right), the calls as they come (along the bottom), the
   tool dock's outline (the left edge), and once done, the hint (bottom right). */
.lp-bar-mark { width: 18px; height: 18px; }
.lp-file { color: var(--ink); font: 600 13.5px/1 var(--mono); }
.lp-count { color: var(--muted); white-space: nowrap; }
.lp-count b { color: var(--ink); font: 600 13px/1 var(--mono); font-variant-numeric: tabular-nums; }
.lp-count .of { font: 13px/1 var(--mono); }
.lp-win-tools button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-2); font: 600 12.5px/1 var(--sans); cursor: pointer; }
.lp-win-tools button:hover { border-color: var(--ink-2); color: var(--ink); }
.lp-win-tools button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lp-win-tools button svg { width: 13px; height: 13px; }
.lp-play { width: 30px; justify-content: center; padding: 0 !important; }
.lp-play .i-play, .lp-play.paused .i-pause { display: none; }
.lp-play.paused .i-play { display: block; }
/* The request in a prompt box, as it was given (the owner, 2026-11-26: "말풍선이 아니라 Prompt 주는것처럼"): a label, the
   words, and under them the fold on the left and the send mark (the one that was pressed) on the right. */
.lp-ask { position: relative; z-index: 3; grid-area: ask; justify-self: stretch; align-self: start; display: flex; flex-direction: column; gap: 4px; max-width: 920px; margin: 0 14px; padding: 10px 10px 10px 16px; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 22px -14px rgba(15, 23, 42, 0.35); font-size: 13.5px; line-height: 1.6; text-wrap: pretty; }
.lp-ask-label { color: var(--muted); font: 600 11.5px/1.4 var(--sans); letter-spacing: 0.02em; }
.lp-ask-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; margin-top: 2px; }
.lp-ask-send { display: grid; flex: none; place-items: center; width: 30px; height: 30px; margin-left: auto; border-radius: 50%; background: var(--lp-cta); color: #fff; }
.lp-ask-send svg { width: 15px; height: 15px; }
/* A long request: three lines fading out, the rest a press away (assets/hero.js marks it long), so the card fits a
   laptop's screen; whole again with [전체 보기]. Without the script: whole. */
html.js .lp-ask:not(.open) > [lang] { display: block; max-height: 4.8em; overflow: hidden; }
.lp-ask.long:not(.open) > [lang] { -webkit-mask-image: linear-gradient(#000 52%, transparent); mask-image: linear-gradient(#000 52%, transparent); }
.lp-ask-more { display: none; margin: 0; padding: 2px 0; border: 0; border-radius: 4px; background: none; color: var(--ink-2); font: 700 12.5px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lp-ask.long .lp-ask-more, .lp-ask.open .lp-ask-more { display: block; width: fit-content; }
.lp-ask-more .close, .lp-ask.open .lp-ask-more .open { display: none; }
.lp-ask.open .lp-ask-more .close { display: inline; }
.lp-ask-more:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* The request's folder as its attachments (the owner, 2026-11-26), in the foot between the fold and the send mark:
   "this folder", then a quiet chip per file — a lucide mark and the real name in mono; the template the request
   names marked in leaf. The chips wrap beside the folder's name, so a second row starts under the first chip; a name
   is never cut (it breaks only if one chip is wider than the box). Without the script: under the words. */
.lp-ask-foot { flex-wrap: wrap; align-items: flex-end; row-gap: 8px; }
.lp-ask-foot > .lp-ask-more { align-self: center; }
.lp-files { display: flex; flex: 1 1 0; align-items: flex-start; gap: 8px; min-width: 0; }
.lp-files-head, .lp-files-more { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 26px; color: var(--muted); font: 600 12px/1.2 var(--sans); white-space: nowrap; }
.lp-files-head svg, .lp-files-more svg { width: 15px; height: 15px; }
.lp-files-list { display: flex; flex: 1 1 0; flex-wrap: wrap; gap: 6px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.lp-files-list li { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 26px; padding: 0 8px 0 7px; border: 1px solid color-mix(in srgb, var(--ink) 11%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--ink) 3.5%, var(--paper)); color: var(--ink-2); }
.lp-files-list svg { flex: none; width: 14px; height: 14px; color: var(--muted); }
.lp-files-name { font: 500 12px/1.25 var(--mono); overflow-wrap: break-word; }
.lp-files-list .tpl { border-color: color-mix(in srgb, var(--leaf) 38%, transparent); }
.lp-files-list .tpl svg { color: var(--leaf); }
.lp-files-tag { flex: none; margin-left: 2px; padding: 3px 6px; border-radius: 5px; background: var(--leaf-soft); color: var(--leaf); font: 700 11px/1 var(--sans); white-space: nowrap; }
.lp-files-more { display: none; padding: 0 9px 0 8px; border: 1px solid color-mix(in srgb, var(--ink) 11%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--ink) 3.5%, var(--paper)); color: var(--ink-2); cursor: pointer; }
.lp-files-more:hover { border-color: var(--ink-2); color: var(--ink); }
.lp-files-more:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lp-files-chev { transition: transform 0.25s var(--spring); }
.lp-files.open .lp-files-chev { transform: rotate(180deg); }
.lp-ask > .lp-files { margin-top: 6px; }
@media (max-width: 760px) {
  /* Phones: the list beside the folder's name only when it fits there, else under it. A long folder (assets/hero.js
     marks it .fold — with reduced motion too) is one row, its mark and how many files, that opens the list under the
     foot. */
  .lp-files { flex-wrap: wrap; }
  .lp-files-list { flex: 1 1 auto; }
  .lp-files.fold { display: contents; }
  .lp-files.fold .lp-files-head { display: none; }
  .lp-files.fold .lp-files-more { display: inline-flex; min-height: 30px; }
  .lp-files.fold .lp-files-list { display: none; order: 1; flex: 1 0 100%; }
  .lp-files.fold.open .lp-files-list { display: flex; }
}
/* What the AI is doing, in the window's head in plain words (the owner, 2026-11-26: "AI가 일하는 중이라는 표시를
   크게"), after the file; whole, on a second line only when the head is narrow. */
.lp-status { flex: 1 1 auto; min-width: 0; margin: 0; padding-left: 12px; border-left: 1px solid var(--line); color: var(--ink-2); font-size: clamp(14px, 1.2vw, 15.5px); line-height: 1.35; }
.lp-status:empty { visibility: hidden; }
.lp-status b { color: var(--ink); font-weight: 800; }
.lp-status svg { display: inline-block; width: 17px; height: 17px; margin-right: 6px; color: var(--leaf); vertical-align: -3px; }
.lp-status-sep { margin: 0 7px; color: var(--muted); }
.lp-pulse { position: relative; display: inline-block; width: 10px; height: 10px; margin: 0 9px 0 2px; border-radius: 50%; background: var(--leaf); vertical-align: 0; }
.lp-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: var(--leaf); opacity: 0; animation: lp-pulse 1.2s ease-out infinite; }
@keyframes lp-pulse { from { opacity: 0.45; transform: scale(0.5); } to { opacity: 0; transform: scale(1.6); } }
/* Runs to choose in a card (the figures): two small pills on the canvas's top left. */
.lp-runs { position: relative; z-index: 3; grid-area: runs; justify-self: start; display: flex; gap: 4px; margin-left: 14px; padding: 3px; border-radius: 999px; background: var(--paper); box-shadow: var(--lp-chip-shadow); }
.lp-runs button { min-height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 12.5px/1 var(--sans); cursor: pointer; transition: transform 0.22s var(--spring), background-color 0.2s ease, color 0.2s ease; }
.lp-runs button:hover { color: var(--ink); }
.lp-runs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lp-runs button:active { transform: scale(0.97); }
.lp-runs button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* The calls, newest on the left; older ones move right and fade. Not a scroll anchor: a browser that anchored on a row
   scrolled the page with every call (the owner, 2026-11-25: "가만히 있으면 자꾸 … figure.stlt 창이 내려와서"). */
.lp-calls { overflow-anchor: none; }
.lp-calls { position: absolute; z-index: 3; left: 78px; right: 14px; bottom: 14px; height: 32px; margin: 0; padding: 0; overflow: hidden; list-style: none; font: 12.5px/1 var(--mono); -webkit-mask-image: linear-gradient(to right, #000 55%, transparent); mask-image: linear-gradient(to right, #000 55%, transparent); }
.lp-calls-inner { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; height: 100%; }
.lp-call { display: inline-flex; flex: none; align-items: center; gap: 7px; height: 32px; padding: 0 11px 0 9px; border-radius: 10px; background: var(--paper); box-shadow: var(--lp-chip-shadow); color: var(--ink-2); white-space: nowrap; }
.lp-call svg { width: 14px; height: 14px; color: var(--muted); }
.lp-call code { padding: 0; background: none; font: inherit; }
.lp-call .n { color: var(--leaf); font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-call .n:empty { display: none; }
.lp-call.now { background: var(--lp-row-now); color: var(--ink); }
.lp-call.err code { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
html.js .lp-call { animation: lp-chip-in 0.45s var(--spring); }
@keyframes lp-chip-in { from { opacity: 0; transform: translateY(8px) scale(0.92); } }
.lp-dock { position: absolute; z-index: 3; top: 50%; left: 14px; display: flex; flex-direction: column; gap: 2px; padding: 5px; border-radius: 14px; background: var(--paper); box-shadow: var(--lp-chip-shadow); color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.lp-dock svg { width: 30px; height: 30px; padding: 7px; border-radius: 9px; }
.lp-dock svg:first-child { background: var(--lp-row-now); color: var(--ink); }
.lp-hint { position: absolute; z-index: 4; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 7px; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; line-height: 1.4; max-width: min(62%, 560px); }
.lp-hint svg { flex: none; width: 14px; height: 14px; }
html.js .lp-hint:not([hidden]) { animation: lp-chip-in 0.5s var(--spring); }
/* Each piece sits in a wrapper of its own (assets/hero.js — some pieces carry their own transform); put down, it lands. */
.lp-piece { transition: opacity 0.28s ease, transform 0.6s var(--spring); transform-box: fill-box; transform-origin: center; }
.lp-piece.lp-off { opacity: 0; transform: translateY(-7px) scale(1.06); transition: none; }
.lp-stage.done .lp-piece { cursor: pointer; }
/* Grounds and empty frames let a press through to what is under them. */
.lp-stage .lp-piece.lp-ground { pointer-events: none; }
/* A group's hit area (assets/hero.js): clear, but it takes the presses between its pieces — a molecule picks whole. */
.lp-hit { fill: transparent; pointer-events: all; }
.lp-stage.done .lp-hit { cursor: pointer; }
.lp-piece.lp-glow { animation: lp-glow 0.6s ease; }
@keyframes lp-glow { 40% { filter: drop-shadow(0 0 3px var(--lp-select)) drop-shadow(0 0 1px var(--lp-select)); } }
/* A piece picked by hand: its box, handles and name, as the app shows a selection. */
.lp-sel, .lp-hover { position: absolute; z-index: 2; pointer-events: none; }
.lp-hover { border: 1px solid color-mix(in srgb, var(--lp-select) 55%, transparent); border-radius: 2px; }
.lp-sel { border: 1.5px solid var(--lp-select); }
.lp-sel i { position: absolute; width: 8px; height: 8px; margin: -4.75px 0 0 -4.75px; border: 1.5px solid var(--lp-select); border-radius: 2px; background: #fff; }
.lp-sel i:nth-child(1) { left: 0; top: 0; } .lp-sel i:nth-child(2) { left: 50%; top: 0; } .lp-sel i:nth-child(3) { left: 100%; top: 0; }
.lp-sel i:nth-child(4) { left: 0; top: 50%; } .lp-sel i:nth-child(5) { left: 100%; top: 50%; }
.lp-sel i:nth-child(6) { left: 0; top: 100%; } .lp-sel i:nth-child(7) { left: 50%; top: 100%; } .lp-sel i:nth-child(8) { left: 100%; top: 100%; }
.lp-sel b { position: absolute; left: -1.5px; bottom: calc(100% + 8px); width: max-content; max-width: 280px; padding: 5px 9px; border-radius: 7px; background: var(--lp-select); color: #fff; font: 600 12px/1.2 var(--sans); }
.lp-sel.below b { top: calc(100% + 8px); bottom: auto; }
.lp-stage-wrap .hx-took { max-width: 52em; margin: 18px auto 0; color: var(--muted); font-size: 14px; line-height: 1.55; text-align: center; text-wrap: balance; }
/* What a run saves as, under the cards: a head, then the two groups side by side (one under the other when narrow);
   the front card's group on the site's green tint, its chips outlined in green — the other stays as readable. */
.lp-saves { max-width: 980px; margin: 26px auto 0; text-align: center; }
/* One centred line (two when narrow), the icon going with its first word. */
.lp-saves-head { margin: 0 0 12px; color: var(--ink); font-size: clamp(15.5px, 1.4vw, 17px); font-weight: 750; line-height: 1.5; text-wrap: balance; }
.lp-saves-head svg { display: inline-block; width: 18px; height: 18px; margin-right: 7px; color: var(--leaf); vertical-align: -3px; }
.lp-saves-head code { padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font: 700 0.9em/1.2 var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); }
.lp-save-rows { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.lp-save-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); transition: background-color 0.3s ease, border-color 0.3s ease; }
.lp-save-label { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 14.5px; font-weight: 700; transition: color 0.3s ease; }
.lp-save-label svg { width: 17px; height: 17px; }
.lp-save-row .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.lp-save-row .chips span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: 650 13px/1 var(--mono); letter-spacing: 0.01em; transition: border-color 0.3s ease; }
.lp-stage-wrap[data-mode="figure"] .lp-save-row[data-kind="figure"], .lp-stage-wrap[data-mode="slides"] .lp-save-row[data-kind="slides"] { border-color: var(--lp-free-line); background: var(--lp-free); }
.lp-stage-wrap[data-mode="figure"] .lp-save-row[data-kind="figure"] .lp-save-label, .lp-stage-wrap[data-mode="slides"] .lp-save-row[data-kind="slides"] .lp-save-label { color: var(--ink); }
.lp-stage-wrap[data-mode="figure"] .lp-save-row[data-kind="figure"] .chips span, .lp-stage-wrap[data-mode="slides"] .lp-save-row[data-kind="slides"] .chips span { border-color: color-mix(in srgb, var(--leaf) 45%, var(--line)); }
@media (max-width: 760px) {
  .lp-saves { margin-top: 20px; }
  .lp-save-row { width: 100%; padding: 10px 12px; }
}
/* Narrow: one card at a time (the chooser changes it), the request and the calls under the page. */
@media (max-width: 760px) {
  .lp-stack { padding-top: 0; margin-top: 18px; }
  .lp-stack[data-front="figure"] > [data-mode="slides"], .lp-stack[data-front="slides"] > [data-mode="figure"] { display: none; }
  .lp-stage { border-radius: 16px; }
  /* The head in two short lines: the S, the file and the count; then what the AI is doing. */
  .lp-win-head { flex-wrap: wrap; gap: 3px 10px; min-height: 0; padding: 7px 8px 6px 12px; }
  .lp-status { order: 3; flex-basis: 100%; padding: 0 0 1px; border: 0; font-size: 13.5px; }
  .lp-status:empty { display: none; }
  .lp-count > [lang] { display: none; }
  .lp-win-tools { gap: 6px; }
  .lp-win-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "runs" "ask" "canvas"; padding-top: 10px; }
  .lp-runs { margin-left: 10px; }
  .lp-canvas { min-height: 0; padding: 4px 10px 12px; }
  .lp-dock { display: none; }
  .lp-ask { max-width: none; margin: 0 10px; padding-left: 14px; }
  .lp-calls { position: relative; left: auto; right: auto; bottom: auto; margin: 0 10px 12px; }
  .lp-win-tools button.lp-again span { display: none; }
  .lp-win-tools .lp-again { width: 30px; justify-content: center; padding: 0 !important; }
  .lp-hint { position: static; width: fit-content; margin: 0 10px 12px; padding: 7px 10px; font-size: 12px; }
  .lp-stage .lp-board.deck { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  /* The four panels one under another, so their words can be read (they build top to bottom). */
  .lp-stage .lp-board { grid-template-columns: 1fr; }
}

/* ── Section heads: centred, the head and one line under it, a mark over it ── */
/* The mark (the owner, 2026-11-25: "효과나 도형·아이콘 같은 거를 좀 넣으라는 거임"): one icon on a round plate, a
   hairline either side; as the head comes in, the plate drops into place and the lines draw out. */
.lp-mark { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 18px; }
.lp-mark::before, .lp-mark::after { content: ""; width: clamp(28px, 6vw, 72px); height: 1px; background: linear-gradient(to left, color-mix(in srgb, var(--leaf) 45%, transparent), transparent); transform-origin: right; transition: transform 0.8s ease 0.3s; }
.lp-mark::after { background: linear-gradient(to right, color-mix(in srgb, var(--leaf) 45%, transparent), transparent); transform-origin: left; }
.lp-plate { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border: 1px solid var(--lp-free-line); border-radius: 50%; background: var(--lp-free); color: var(--leaf); box-shadow: 0 10px 22px -14px rgba(11, 122, 74, 0.55); transition: opacity 0.4s ease 0.12s, transform 0.75s var(--spring) 0.12s; }
.lp-plate svg { width: 26px; height: 26px; }
.free-card .lp-plate { background: var(--paper); }
html.js .reveal:not(.in) .lp-plate { opacity: 0; transform: translateY(-12px) scale(0.7); }
html.js .reveal:not(.in) .lp-mark::before, html.js .reveal:not(.in) .lp-mark::after { transform: scaleX(0); }
/* The AI section's: three apps (a terminal, a chat, a window — no one's logo) joined to stemlet's S, the lines drawn in. */
.lp-mark-ai::before, .lp-mark-ai::after { display: none; }
.lp-mark-ai svg { display: block; width: min(300px, 78vw); height: auto; overflow: visible; }
.ai-app circle { fill: var(--paper); stroke: var(--line); }
.ai-app svg { color: var(--ink-2); }
.ai-us circle { fill: var(--lp-free); stroke: var(--lp-free-line); }
.ai-line { fill: none; stroke: var(--lp-stitch); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0.75; transition: stroke-dashoffset 1s ease 0.25s; }
html.js .reveal:not(.in) .ai-line { stroke-dashoffset: 1; }
.lp-section { padding: var(--section-gap) 0 0; }
.home .lp-head, .home .lp-heads .section-head { max-width: 860px; margin: 0 auto clamp(30px, 3.8vw, 46px); text-align: center; }
.home .lp-head h2, .home .section-head h2 { margin: 0; color: var(--ink); font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; line-height: 1.18; letter-spacing: -0.035em; text-wrap: balance; }
.home .lp-head .lp-sub, .home .section-head .section-sub { max-width: 40em; margin: 14px auto 0; padding: 0; color: var(--ink-2); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; text-wrap: pretty; }
.home .lp-head .lp-sub-more { margin-top: 6px; color: var(--muted); font-size: clamp(14.5px, 1.3vw, 16px); }

/* ── Science tools ────────────────────────────────────────────────────────── */
/* What they draw: six of them as stemlet drew them (its own SVGs), white pages that lean a little after the mouse. */
.note-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0 0 clamp(30px, 3.6vw, 44px); }
.note-tile { margin: 0; text-align: center; }
.note-tile img { display: block; width: 100%; height: auto; aspect-ratio: 420 / 300; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--lp-stage-line), 0 12px 28px -18px rgba(27, 42, 65, 0.45); transform: perspective(700px) rotateX(var(--lx, 0deg)) rotateY(var(--ly, 0deg)); transition: transform 0.6s var(--spring); }
.note-tile.leaning img { transition: transform 0.14s linear; }
.note-tile figcaption { margin-top: 9px; color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 1.3; }
@media (max-width: 960px) { .note-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .note-strip { gap: 8px; } .note-tile img { border-radius: 10px; } .note-tile figcaption { margin-top: 6px; font-size: 11.5px; } }
/* Every tool and field kept, in a compact sheet (the owner, 2026-11-25: "세로로 좁게 … 카드 하나하나가 너무 큰 듯") — a
   row of field buttons (each with one of stemlet's own icons), folded at first; a field or 도구 모음 열기 opens its tiles
   under the row, another field changes them at once, the same one or 접기 folds them (the owner, 2026-11-26 —
   assets/home-tools.js sets html.tools-fold in the head). Without the script every field shows, its name over its tiles.
   A field's tiles fill rows from the left and a shorter last row sits in the middle, like the heads. */
.tool-tabs { display: none; }
html.tools-fold .tool-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tool-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 17px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 700 15px/1.2 var(--sans); letter-spacing: -0.01em; cursor: pointer; transition: transform 0.22s var(--spring), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.tool-tab .field-icon { flex: none; width: 20px; height: 20px; color: var(--leaf); transition: color 0.2s ease; }
.tool-tab:hover { border-color: var(--ink-2); }
.tool-tab:active { transform: scale(0.97); }
.tool-tab:focus-visible, .tool-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 999px; }
/* The open field: filled in ink (a step of lightness, not only a colour), its icon in the fill's own colour. */
.tool-tab[aria-expanded="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.tool-tab[aria-expanded="true"] .field-icon { color: inherit; }
html.tools-fold .tool-field:not(.open), html.tools-fold .tool-panes:not(.open), html.tools-fold .tool-field h3 { display: none; }
html.tools-fold .tool-panes { max-width: 1000px; margin: 18px auto 0; }
.tool-field + .tool-field { margin-top: 6px; }
.tool-field h3 { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0; padding: 12px 0 8px; color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.tool-field h3 .field-icon { flex: none; width: 20px; height: 20px; color: var(--leaf); }
.tool-list { --tool-cols: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tool { flex: 0 0 calc((100% - (var(--tool-cols) - 1) * 6px) / var(--tool-cols)); box-sizing: border-box; display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 8px; row-gap: 1px; align-items: center; min-width: 0; margin: 0; padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); text-align: left; }
.tool svg { grid-row: 1 / span 2; width: 16px; height: 16px; color: var(--leaf); }
.tool-name { color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.25; }
.tool-reads { color: var(--muted); font: 10.5px/1.3 var(--mono); }
.tool-reads span { font-family: var(--sans); font-size: 11px; }
/* Opening: the tiles rise in one after another on the page's spring (transform and opacity; none with reduced motion). */
html.js.tools-fold .tool-field.open .tool { animation: tool-in 0.5s var(--spring) both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes tool-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.tool-toggle { display: none; }
html.tools-fold .tool-toggle { display: flex; align-items: center; gap: 6px; min-height: 40px; margin: 12px auto 0; padding: 0 12px 0 16px; border: 0; border-radius: 999px; background: none; color: var(--leaf); font: 700 15px/1.2 var(--sans); cursor: pointer; transition: background-color 0.2s ease; }
.tool-toggle:hover { background: var(--leaf-soft); }
.tool-toggle svg { width: 18px; height: 18px; transition: transform 0.4s var(--spring); }
.tool-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.tool-toggle[aria-expanded="true"] .tool-open, .tool-toggle[aria-expanded="false"] .tool-close { display: none; }
@media (prefers-reduced-motion: reduce) {
  html.tools-fold .tool-field.open .tool { animation: none; }
  .tool-tab, .tool-tab .field-icon, .tool-toggle, .tool-toggle svg { transition: none; }
  .tool-tab:active { transform: none; }
}
/* Columns that keep every tile's lines whole (each at least the wide screen's 151 px of words). */
@media (max-width: 1046px) { .tool-list { --tool-cols: 4; } }
@media (max-width: 845px) { .tool-list { --tool-cols: 3; } }
@media (max-width: 560px) { .tool-list { --tool-cols: 2; } }
@media (max-width: 760px) {
  /* Phones: the field buttons a little smaller, in as many rows as they need. */
  html.tools-fold .tool-tabs { gap: 6px; }
  .tool-tab { gap: 6px; min-height: 40px; padding: 0 13px 0 11px; font-size: 14px; }
  .tool-tab .field-icon { width: 18px; height: 18px; }
  .tool { padding: 6px 8px; column-gap: 7px; }
}
.lp-ask-tool { margin: 22px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; text-align: center; }
.lp-ask-tool a { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lp-ask-tool a:hover { text-decoration: underline; }
.lp-ask-tool svg { width: 15px; height: 15px; }

/* ── AI: on the page's own ground (the cards keep their own colours) ──────── */
.home .page.home-cards .tip-cards { padding-top: 0; }

/* ── 무료: a lightly tinted card, not a band (the owner, 2026-11-25) ──────── */
.free-card { max-width: 880px; margin: 0 auto; padding: clamp(34px, 5vw, 58px) clamp(18px, 5vw, 64px); border: 1px solid var(--lp-free-line); border-radius: 28px; background: var(--lp-free); text-align: center; }
.free-card h2 { margin: 0; color: var(--ink); font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; line-height: 1.18; letter-spacing: -0.035em; text-wrap: balance; }
.free-line { max-width: 34em; margin: 14px auto 0; color: var(--ink-2); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; text-wrap: pretty; }
.free-card h3 { margin: clamp(28px, 3.4vw, 38px) 0 14px; color: var(--ink); font-size: clamp(16px, 1.5vw, 18px); font-weight: 800; }
.free-points { display: grid; gap: 8px; max-width: 640px; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.free-points li { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 12px; margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--paper); color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.free-points svg { width: 20px; height: 20px; margin-top: 2px; color: var(--leaf); }
.free-points a { color: var(--leaf); font-weight: 700; text-underline-offset: 3px; }

/* ── Groups: the three in a row under the page's head ─────────────────────── */
.home .fit.groups .group-row { text-align: left; }
.group-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 13px; background: var(--lp-free); color: var(--leaf); }
.group-icon svg { width: 21px; height: 21px; }

/* ── Questions ────────────────────────────────────────────────────────────── */
.lp-faq { padding-bottom: var(--section-gap); }
.faq-list { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 2px; color: var(--ink); font-size: clamp(16px, 1.6vw, 18.5px); font-weight: 650; line-height: 1.45; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--spring); }
.faq[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--leaf); }
.faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.faq-a { padding: 0 2px 22px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.faq-a p { max-width: 46em; margin: 0; }
.faq-a p + .faq-points, .faq-a > div > p + ul { margin-top: 12px; }
.faq-points { display: grid; gap: 10px; max-width: 46em; margin: 0; padding: 0; list-style: none; }
.faq-points li { position: relative; padding-left: 18px; }
.faq-points li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
.faq-points strong { color: var(--ink); font-weight: 700; }

/* ── Phones ───────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .lp-hero { padding-top: 40px; }
  .lp-lead { margin-top: 18px; }
  .lp-actions { gap: 10px; margin-top: 24px; }
  .lp-actions .button { min-height: 50px; padding: 0 18px; }
  .lp-os { font-size: 13px; }
  .lp-facts { gap: 6px 14px; font-size: 13.5px; }
  .lp-facts li.free { font-size: 16px; }
  .lp-facts .lp-wide, .lp-hero .lang-note { display: none; }
  .lp-stage-wrap { width: calc(100% - 20px); }
  .free-points li { padding: 12px 13px; font-size: 15px; }
}

/* Reduced motion: nothing moves in or leans; the marker is on, the figure finished; the cards change at once, the
   one behind only offset, not tilted. */
@media (prefers-reduced-motion: reduce) {
  html .lp-pen::before { clip-path: none; opacity: 1; animation: none; }
  .lp-call, .lp-hint { animation: none !important; }
  .lp-live, .lp-piece, .lp-pulse::after, .lp-stage, .lp-stage::before, .lp-stage::after, .lp-mode-mark, .note-tile img, .lp-stage[data-mode="slides"] .lp-sheet, .lp-plate, .lp-mark::before, .lp-mark::after, .ai-line, .lp-files-chev { transition: none !important; }
  .lp-stack[data-front="figure"] > [data-mode="slides"], .lp-stack[data-front="slides"] > [data-mode="figure"],
  .lp-stack[data-front="figure"] > [data-mode="slides"]:hover, .lp-stack[data-front="slides"] > [data-mode="figure"]:hover { transform: translate(2.5%, -4%) scale(0.96); }
  .note-tile img { transform: none; }
  .lp-pulse::after, .lp-piece.lp-glow { animation: none !important; }
  .home .button:active, .top-cta:active, .lp-chip button:active, .lp-mode:active { transform: none; }
}

/* The film under the questions (2026-11-27): YouTube's player right in the page. */
.faq-video { max-width: 880px; margin: 56px auto 0; }
.video-frame { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--line); }
@media (max-width: 640px) { .faq-video { margin-top: 40px; } .video-frame { border-radius: 12px; } }
