/* Monokapi Studio: the PAPIER design language (issue #45) — a children's-book publisher register.
   Warm paper surfaces, warm ink, marigold for the one primary action, forest for links and focus,
   die-cut sticker badges for genres, and a warm-charcoal dark theme (never the sector's blue-black).
   Choice is marked with ink (a 2px border), never with a glow. One primary action per screen. */

:root {
  --bg: #FAF6EE; --surface: #FFFDF7; --surface-2: #F2EADA; --border: #E3DAC6;
  --ink: #2B2420; --text: #3A332C; --muted: #7A6F60;
  --marigold: #F5B82E; --marigold-deep: #E2A416; --marigold-soft: #FBEBC2;
  --forest: #1F5C45; --forest-soft: #E3EEE7;
  --g-rhyme: #FFC914; --g-story: #2660A4; --g-lesson: #2E933C; --g-short: #E4572E;
  --ok: #1F7A3F; --ok-bg: #E4F1E6; --warn: #95670A; --warn-bg: #F8EDCF; --bad: #BF3B2B; --bad-bg: #F9E6E0;
  --radius: 12px; --radius-s: 8px;
  --focus: 0 0 0 3px color-mix(in srgb, var(--forest) 35%, transparent);
  --shadow: 0 1px 2px rgba(63,50,30,.08), 0 10px 26px rgba(63,50,30,.09);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .025 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Legacy aliases, so any stray var() keeps resolving during the restyle */
  --primary: var(--marigold); --primary-dark: var(--marigold); --primary-darker: var(--marigold-deep);
  --primary-light: var(--marigold-soft); --secondary: var(--muted); --secondary-light: var(--surface-2);
}
:root:not([data-theme="light"]) {
  --bg: #262220; --surface: #2F2A26; --surface-2: #393330; --border: #4C443C;
  --ink: #F7F1E3; --text: #EBE3D2; --muted: #B5A995;
  --marigold: #F5B82E; --marigold-deep: #FFC94A; --marigold-soft: #4A3E22;
  --forest: #58B98C; --forest-soft: #2E3B33;
  --g-rhyme: #FFC914; --g-story: #6FA4E8; --g-lesson: #5CBF6A; --g-short: #F08662;
  --ok: #6FCF97; --ok-bg: #273B2D; --warn: #E8C25A; --warn-bg: #3D3419; --bad: #F09382; --bad-bg: #432A26;
  --focus: 0 0 0 3px color-mix(in srgb, var(--forest) 40%, transparent);
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 26px rgba(0,0,0,.28);
  color-scheme: dark;
}
:root[data-theme="dark"] {
  --bg: #262220; --surface: #2F2A26; --surface-2: #393330; --border: #4C443C;
  --ink: #F7F1E3; --text: #EBE3D2; --muted: #B5A995;
  --marigold: #F5B82E; --marigold-deep: #FFC94A; --marigold-soft: #4A3E22;
  --forest: #58B98C; --forest-soft: #2E3B33;
  --g-rhyme: #FFC914; --g-story: #6FA4E8; --g-lesson: #5CBF6A; --g-short: #F08662;
  --ok: #6FCF97; --ok-bg: #273B2D; --warn: #E8C25A; --warn-bg: #3D3419; --bad: #F09382; --bad-bg: #432A26;
  --focus: 0 0 0 3px color-mix(in srgb, var(--forest) 40%, transparent);
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 26px rgba(0,0,0,.28);
  color-scheme: dark;
}

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.alert.bad { color: var(--bad); } .alert.ok { color: var(--ok); }
.btn, button { color: var(--ink); } .btn.secondary, button.secondary { color: var(--ink); } .btn.danger, button.danger { color: var(--bad); } .btn.ghost, button.ghost { color: var(--forest); }
.theme { display: flex; gap: 6px; margin-top: 6px; } .theme button { padding: 2px 8px; font-size: 12px; background: var(--surface-2); color: var(--muted); border-color: var(--border); } .theme button.on { color: var(--ink); border-color: var(--ink); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg) var(--grain); color: var(--text); font-size: 16px; line-height: 1.55; }
a { color: var(--forest); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 700; letter-spacing: 0; margin: 0 0 .4em; color: var(--ink); line-height: 1.12; text-wrap: balance; }
h1 { font-size: 1.9rem; font-weight: 900; } h2 { font-size: 1.25rem; margin-top: 1.6em; } h3 { font-size: 1.05rem; }
p { margin: .4em 0 .8em; } .muted { color: var(--muted); } .small { font-size: 13px; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: 13px; }
pre { background: var(--surface-2); padding: 12px; border-radius: var(--radius); overflow: auto; font-size: 12.5px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

/* layout */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 14px 12px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: 1.1rem; color: var(--ink); }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--marigold); border: 2px solid var(--ink); display: grid; place-items: center; color: #2B2420; font-weight: 800; font-family: "Fraunces", serif; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text); font-weight: 600; }
.nav a:hover { background: var(--surface-2); text-decoration: none; } .nav a.active { background: var(--forest-soft); color: var(--forest); }
.nav .section { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 10px 4px; }
.nav .sub a { padding-left: 32px; font-weight: 400; font-size: 14px; }
.sidebar .bottom { margin-top: auto; padding: 10px 8px 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }
.content { flex: 1; min-width: 0; padding: 28px 36px 80px; max-width: 1240px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.crumbs { font-size: 13px; color: var(--muted); } .crumbs a { color: var(--muted); }
@media (max-width: 860px) { .app { flex-direction: column; } .sidebar { width: auto; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; } .sidebar .bottom { margin: 0 0 0 auto; border: 0; padding: 0; } .nav { display: flex; flex-wrap: wrap; gap: 2px; } .nav .section, .nav .sub { display: none; } .content { padding: 16px; } }

/* cards, grids, tables */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; } .card h2:first-child, .card h3:first-child { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat .n { font-family: "Fraunces", serif; font-size: 1.7rem; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; } .stat .l { font-size: 13px; color: var(--muted); }
table { border-collapse: collapse; width: 100%; } th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--border); }
td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 14px; } tr:last-child td { border-bottom: 0; }
tr.row-link:hover td { background: var(--surface-2); cursor: pointer; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tile img, .tile video { width: 100%; display: block; background: #1B1714; aspect-ratio: 16/9; object-fit: cover; } .tile img.portrait { aspect-ratio: 3/4; object-fit: contain; background: var(--surface-2); }
.tile .cap { padding: 8px 10px; font-size: 12px; color: var(--muted); word-break: break-all; } .tile audio { width: 100%; padding: 8px; }

/* forms and buttons */
input, select, textarea, button { font: inherit; color: var(--text); }
input, select, textarea { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 9px 11px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: var(--focus); border-color: var(--forest); }
textarea { min-height: 120px; resize: vertical; } textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; min-height: 360px; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; } label .hint { font-weight: 400; color: var(--muted); }
.field { margin-bottom: 14px; } .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; } .row > * { flex: 1; min-width: 140px; } .row > .shrink { flex: 0 0 auto; min-width: 0; }
.btn, button { display: inline-flex; align-items: center; gap: 8px; background: var(--marigold); color: #2B2420; border: 2px solid #2B2420; border-radius: var(--radius-s); padding: 8px 15px; font-weight: 700; cursor: pointer; width: auto; white-space: nowrap; }
.btn:hover, button:hover { background: var(--marigold-deep); text-decoration: none; }
.btn.secondary, button.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border); padding: 9px 16px; } .btn.secondary:hover, button.secondary:hover { background: var(--surface-2); }
.btn.ghost, button.ghost { background: transparent; color: var(--forest); border-color: transparent; padding-left: 8px; padding-right: 8px; }
.btn.danger, button.danger { background: var(--bad-bg); color: var(--bad); border: 1px solid transparent; } button:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }
.btn.big { padding: 12px 21px; font-size: 1.05rem; }
form.inline { display: inline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* pills, stickers, costs, alerts, steps */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 12.5px; font-weight: 600; margin: 2px 4px 2px 0; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.run { background: var(--marigold-soft); color: var(--ink); }
.pill.run::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--marigold-deep); animation: pulse 1.2s infinite; } @keyframes pulse { 50% { opacity: .3; } }
.sticker { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 13px; font-weight: 700; font-size: 13px; box-shadow: 0 0 0 3px var(--surface), var(--shadow); transform: rotate(-2.5deg); }
.sticker .dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); background: var(--marigold); }
.sticker.rhyme .dot { background: var(--g-rhyme); } .sticker.story .dot { background: var(--g-story); } .sticker.lesson .dot { background: var(--g-lesson); } .sticker.short .dot { background: var(--g-short); }
.cost { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-variant-numeric: tabular-nums; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 3px 9px; color: var(--text); } .cost b { color: var(--ink); font-weight: 600; }
.alert { padding: 12px 14px; border-radius: var(--radius); margin: 10px 0 16px; border: 1px solid transparent; } .alert.bad { background: var(--bad-bg); } .alert.ok { background: var(--ok-bg); } .alert.info { background: var(--forest-soft); color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; position: relative; }
.step .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } .step .t { font-weight: 700; color: var(--ink); margin: 2px 0 4px; } .step .d { font-size: 13px; color: var(--muted); }
.step.done { border-color: var(--ok); } .step.done .k::after { content: " · fait"; color: var(--ok); } .step.now { border: 2px solid var(--ink); } .step.now .k::after { content: " · à faire"; color: var(--ink); }
.step form, .step .btn { margin-top: 8px; } .step .btn, .step button { padding: 6px 11px; font-size: 13.5px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; } .progress > i { display: block; height: 100%; background: var(--marigold-deep); transition: width .4s; }
details { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; background: var(--surface); margin: 10px 0; } summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; } .kv b { color: var(--muted); font-weight: 600; }

/* landing */
.hero { padding: 48px 0 24px; max-width: 760px; } .hero h1 { font-size: 2.6rem; line-height: 1.1; } .hero p { font-size: 1.1rem; color: var(--muted); }
.landing-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 24px 0; }
.landing-steps .step .big-n { font-family: "Fraunces", serif; font-size: 2rem; font-weight: 900; color: var(--marigold-deep); line-height: 1; }
.landing .content { max-width: 1040px; margin: 0 auto; }
.footer { margin-top: 48px; font-size: 13px; color: var(--muted); }

/* visuals-first pages */
.hero-media { position: relative; border-radius: 14px; overflow: hidden; background: #1B1714; box-shadow: var(--shadow); aspect-ratio: 16/9; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 36px 0 12px; } @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.cast { display: flex; gap: 14px; flex-wrap: wrap; } .cast .who { text-align: center; width: 120px; } .cast .who img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--surface); box-shadow: var(--shadow); } .cast .who b { display: block; margin-top: 6px; }
.illus { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.illus .step { padding: 0; overflow: hidden; } .illus .step img, .illus .step video { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: var(--surface-2); } .illus .step .txt { padding: 12px 14px; }
.cover-card { display: block; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); } .cover-card:hover { text-decoration: none; border-color: var(--ink); }
/* the series shelf: each series is a book cover — framed picture, kind stickers, one ready pill */
.shelf-book { position: relative; }
.shelf-book .img { margin: 10px 10px 0; border-radius: var(--radius-s); border: 1px solid var(--border); box-shadow: inset 0 0 0 3px var(--surface); }
.shelf-book .stickers { position: absolute; top: 6px; right: 14px; display: flex; gap: 4px; }
.sticker.mini { padding: 3px; gap: 0; box-shadow: 0 0 0 2px var(--surface); } .sticker.mini .dot { width: 12px; height: 12px; }
.sticker.mini:nth-child(2) { transform: rotate(2.5deg); } .sticker.mini:nth-child(3) { transform: rotate(-1.5deg); }
.shelf-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.shelf-line .count { font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: 1.25rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.cover-card .img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--surface-2), var(--marigold-soft)); display: grid; place-items: center; color: var(--muted); font-size: 13px; overflow: hidden; } .cover-card .img img { width: 100%; height: 100%; object-fit: cover; }
.cover-card .body { padding: 12px 14px; } .cover-card .body h3 { margin: 0 0 4px; }
.avatars { display: flex; gap: -4px; } .avatars img, .avatars span { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--surface); margin-right: -8px; background: var(--surface-2); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink); }
.who-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; } .who-card img { width: 96px; height: 120px; object-fit: cover; object-position: top; border-radius: 10px; background: var(--surface-2); } .who-card .ph { width: 96px; height: 120px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; padding: 6px; }
.who-card audio { width: 100%; height: 32px; margin-top: 4px; }
.flow { display: flex; gap: 6px; align-items: stretch; overflow-x: auto; padding: 4px 0 8px; }
.flow .st { flex: 1; min-width: 118px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; position: relative; }
.flow .st .ic { font-size: 20px; line-height: 1; } .flow .st .t { font-weight: 700; font-size: 13.5px; margin-top: 4px; color: var(--ink); } .flow .st .s { font-size: 12px; color: var(--muted); }
.flow .st.done { background: var(--ok-bg); border-color: transparent; } .flow .st.done .t::after { content: " ✓"; color: var(--ok); } .flow .st.now { border: 2px solid var(--ink); }
.next-action { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--marigold); border-radius: var(--radius); padding: 14px 18px; margin: 12px 0 18px; }
.next-action .what { flex: 1; min-width: 240px; } .next-action .what b { display: block; font-size: 1.05rem; color: var(--ink); }
.board { display: grid; gap: 12px; } .shot { display: grid; grid-template-columns: 260px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; } @media (max-width: 760px) { .shot { grid-template-columns: 1fr; } }
.shot .media { display: grid; gap: 8px; } .shot .media img, .shot .media video { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: var(--surface-2); display: block; }
.shot .media .empty { aspect-ratio: 16/9; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.shot .n { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } .shot .line { background: var(--marigold-soft); border-radius: 8px; padding: 6px 10px; margin: 6px 0; font-size: 14px; } .shot .line b { color: var(--ink); } .shot audio { height: 30px; width: 100%; max-width: 320px; margin-top: 4px; }
.shot .desc { font-size: 13.5px; color: var(--text); margin: 4px 0; } .shot .act { font-size: 13px; color: var(--muted); }
.voice-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; } .voice-pick .v { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; font-size: 13px; } .voice-pick audio { width: 100%; height: 30px; margin-top: 4px; }
.lang-tabs { display: flex; gap: 6px; margin: 6px 0; } .lang-tabs a { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: 13px; color: var(--text); } .lang-tabs a.on { background: var(--ink); color: var(--bg); }
.empty-state { text-align: center; padding: 36px 20px; color: var(--muted); } .empty-state img { width: 200px; border-radius: 12px; margin-bottom: 12px; }

/* landing hero: full-bleed, a video behind the words — on PAPIER's warm charcoal, never blue-black */
.landing .content { max-width: none; padding: 0; }
.lp-nav { display: flex; align-items: center; gap: 22px; padding: 14px 32px; position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.lp-nav .brand { color: #F7F1E3; padding: 0; } .lp-nav nav { display: flex; gap: 18px; } .lp-nav nav a { color: rgba(247,241,227,.85); font-weight: 600; } .lp-nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.lp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(247,241,227,.14); color: #F7F1E3; font-size: 13.5px; font-weight: 600; backdrop-filter: blur(8px); } .lp-pill:hover { background: rgba(247,241,227,.22); text-decoration: none; }
.lp-hero { position: relative; min-height: 92vh; display: grid; place-items: center; overflow: hidden; background: #262220; color: #F7F1E3; }
.lp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(1.05); }
.lp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38,34,32,.55) 0%, rgba(38,34,32,.25) 40%, rgba(38,34,32,.92) 100%); }
.lp-hero-inner { position: relative; z-index: 1; text-align: center; max-width: 880px; padding: 120px 24px 60px; }
.lp-kicker { letter-spacing: .3em; text-transform: uppercase; font-size: 12px; color: rgba(247,241,227,.7); margin-bottom: 14px; }
.lp-hero h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.08; margin: 0 0 16px; color: #F7F1E3; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.lp-hero p { font-size: 1.15rem; color: rgba(247,241,227,.85); max-width: 700px; margin: 0 auto 26px; }
.lp-prompt { display: flex; gap: 8px; max-width: 720px; margin: 0 auto; background: rgba(247,241,227,.1); border: 1px solid rgba(247,241,227,.3); border-radius: 999px; padding: 6px 6px 6px 18px; backdrop-filter: blur(10px); }
.lp-prompt input { background: transparent; border: 0; color: #F7F1E3; padding: 10px 0; font-size: 1rem; } .lp-prompt input::placeholder { color: rgba(247,241,227,.55); } .lp-prompt input:focus { outline: 0; box-shadow: none; }
.lp-prompt button { border-radius: 999px; background: var(--marigold); color: #2B2420; border: 2px solid #2B2420; padding: 10px 20px; }
.lp-cast { justify-content: center; margin-top: 28px; } .lp-cast .who b { color: #F7F1E3; } .lp-cast .who img { border-color: rgba(247,241,227,.35); }
.lp-section { max-width: 1120px; margin: 0 auto; padding: 44px 24px 0; } .lp-section:last-child { padding-bottom: 60px; }
.lp-reel { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; } .lp-reel video { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; background: #1B1714; cursor: pointer; }
.landing .theme a, .theme a { padding: 2px 8px; font-size: 12px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); } .theme a.on { color: var(--ink); border-color: var(--ink); }
@media (max-width: 700px) { .lp-nav { padding: 12px 16px; gap: 12px; } .lp-nav nav { display: none; } .lp-prompt { flex-direction: column; border-radius: 16px; padding: 10px; } .lp-prompt input { padding: 8px 6px; } }

/* job cards: queued, running (percentage), done, failed */
.jobs { display: grid; gap: 8px; } .job { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.job-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .job-head .when { margin-left: auto; }
.job .progress { margin: 8px 0 6px; height: 8px; } .job.queued .progress > i { background: var(--warn); } .job.running .progress > i { background: linear-gradient(90deg, var(--marigold), var(--marigold-deep)); animation: shimmer 1.6s linear infinite; background-size: 200% 100%; }
@keyframes shimmer { 0% { background-position: 0 0; } 100% { background-position: 200% 0; } }
.job-line { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .job .pct { font-weight: 800; color: var(--ink); min-width: 3em; font-variant-numeric: tabular-nums; } .job.failed .note { color: var(--bad); }

/* edit-a-shot modal: preview on top, the words below, the cost on the button */
dialog.modal { border: 0; border-radius: 14px; padding: 0; background: var(--surface); color: var(--text); width: min(820px, 94vw); box-shadow: 0 24px 80px rgba(30,24,16,.5); }
dialog.modal::backdrop { background: rgba(30,24,16,.65); backdrop-filter: blur(4px); }
.modal-body { padding: 16px 18px 18px; } .modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 1.05rem; }
.modal-media { border-radius: 10px; overflow: hidden; background: #1B1714; margin-bottom: 14px; } .modal-media video, .modal-media img { width: 100%; max-height: 380px; object-fit: contain; display: block; } .modal-media .empty { padding: 40px; text-align: center; color: var(--muted); }
.modal-foot { margin-top: 6px; }
.credits { font-weight: 700; color: var(--ink); margin-bottom: 6px; font-variant-numeric: tabular-nums; }

/* globe language menu */
.lang-menu { position: relative; display: inline-block; border: 0; padding: 0; margin: 6px 0 0; background: transparent; } .lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 700; } .lang-menu summary::-webkit-details-marker { display: none; }
.lang-list { position: absolute; bottom: calc(100% + 6px); left: 0; min-width: 150px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; z-index: 20; display: grid; } .lang-list a { padding: 7px 10px; border-radius: 7px; color: var(--text); } .lang-list a:hover { background: var(--surface-2); text-decoration: none; } .lang-list a.on { color: var(--forest); font-weight: 700; }
.lp-nav .lang-menu, .topbar .lang-menu { margin: 0; } .lp-nav .lang-menu summary { background: rgba(247,241,227,.14); color: #F7F1E3; backdrop-filter: blur(8px); } .lp-nav .lang-list, .topbar .lang-list { bottom: auto; top: calc(100% + 6px); left: auto; right: 0; }

/* guided start: one step at a time */
.wizard { display: flex; gap: 6px; margin: 6px 0 16px; flex-wrap: wrap; } .wz { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.wz .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; font-size: 12px; } .wz.done { color: var(--ok); border-color: var(--ok); } .wz.done .n { background: var(--ok-bg); color: var(--ok); } .wz.now { color: var(--ink); border: 2px solid var(--ink); } .wz.now .n { background: var(--marigold); color: #2B2420; }
.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; } .qgrid label span { display: block; margin-bottom: 4px; } .qgrid .wide { grid-column: 1 / -1; } @media (max-width: 760px) { .qgrid { grid-template-columns: 1fr; } }
details.summary-line { padding: 10px 14px; } details.summary-line summary { font-weight: 400; }

/* public pages inside the app shell */
.page-head { display: flex; align-items: center; gap: 22px; padding: 14px 32px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; } .page-head .brand { padding: 0; } .page-head nav { display: flex; gap: 18px; } .page-head nav a { color: var(--muted); font-weight: 600; } .page-head nav a.on { color: var(--ink); } .page-head .lp-nav-right { margin-left: auto; }
.page-head .lang-menu summary { background: var(--surface-2); color: var(--ink); } .page-head .lang-list { bottom: auto; top: calc(100% + 6px); left: auto; right: 0; }
.landing .page-body { max-width: 1120px; margin: 0 auto; padding: 28px 32px 60px; }
.level { margin: 22px 0 8px; } .level-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; } .level-head h2 { margin: 0; } .level-head p { margin: 2px 0 0; }
.lvl { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--marigold); border: 2px solid var(--ink); color: #2B2420; font-weight: 800; font-family: "Fraunces", serif; }
.big-flow { flex-wrap: wrap; } .big-flow .st { min-width: 150px; flex: 1 1 150px; padding: 12px 14px; } .big-flow .st .ic { font-size: 26px; } .big-flow .st .s { margin-top: 4px; }
.who { display: inline-block; margin-top: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink); } .who.you { background: var(--marigold-soft); color: var(--ink); }
.example { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; } .example figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; } .example img, .example video { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: #1B1714; } .example figcaption { padding: 10px 12px; font-size: 13px; color: var(--muted); } .example figcaption b { color: var(--ink); }

/* landing: prototype banner, pricing */
.proto { max-width: 760px; } .proto .pill { margin-bottom: 8px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 10px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; } .plan.reco { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -14px; left: 18px; background: var(--marigold); border: 2px solid var(--ink); color: #2B2420; font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; transform: rotate(-2deg); box-shadow: 0 0 0 3px var(--surface); }
.plan .pname { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; } .plan .price { font-family: "Fraunces", serif; font-size: 2rem; font-weight: 900; color: var(--ink); margin: 4px 0 8px; font-variant-numeric: tabular-nums; } .plan .price span { font-size: .9rem; font-weight: 500; color: var(--muted); font-family: "Nunito Sans", sans-serif; }
.plan ul { list-style: none; padding: 0; margin: 0 0 16px; flex: 1; } .plan li { padding: 5px 0; border-top: 1px solid var(--border); font-size: 14px; } .plan li::before { content: "✓ "; color: var(--ok); } .plan .btn { justify-content: center; }

/* episode page: tabs (notebook, timeline, exports, script) */
.pills { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 4px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 18px 0 14px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; } .tabs a.on { color: var(--ink); border-bottom-color: var(--marigold-deep); }
.tabs .cnt { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
/* notebook: one cell per generation request */
.cell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.cell-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; } .cell-head b { color: var(--ink); }
.tiles { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.tile-sm { flex: 0 0 220px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface-2); color: inherit; display: flex; flex-direction: column; }
.tile-sm:hover { text-decoration: none; border-color: var(--ink); } .tile-sm.chosen { border: 2px solid var(--ink); box-shadow: 0 0 0 2px var(--surface); }
.tile-sm img, .tile-sm video { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #1B1714; }
.tile-sm .cap { padding: 6px 8px; font-size: 12px; color: var(--muted); } .tile-sm .cap b { color: var(--ink); }
.tile-sm.audio { padding: 8px; gap: 6px; } .tile-sm.audio audio { width: 100%; height: 32px; } .tile-sm.audio .cap { padding: 0; }
.tile-sm.empty { aspect-ratio: 16/9; display: grid; place-items: center; font-size: 12px; color: var(--muted); border-style: dashed; }
.small-btn { padding: 5px 10px; font-size: 12.5px; }
.prompt-line { border: 0; background: transparent; padding: 6px 0 0; margin: 4px 0 0; } .prompt-line summary { font-weight: 400; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prompt-line[open] summary { white-space: normal; } .prompt-line p { margin: 6px 0; font-size: 13.5px; } .prompt-line pre { white-space: pre-wrap; margin: 6px 0; }
.cell .line { background: var(--marigold-soft); border-radius: 8px; padding: 6px 10px; margin: 6px 0; font-size: 14px; } .cell .line b { color: var(--ink); } .cell audio { height: 30px; width: 100%; max-width: 320px; margin-top: 4px; }
.cell-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.gen-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; position: sticky; bottom: 12px; box-shadow: var(--shadow); }
.gen-bar .what { flex: 1; min-width: 240px; display: flex; flex-direction: column; } .gen-bar .what b { color: var(--ink); }
/* timeline: blocks as wide as their shot is long */
.timeline { display: flex; gap: 4px; align-items: stretch; margin-top: 8px; }
.tl-block { flex: 1 1 0; min-width: 84px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); color: inherit; font-size: 12px; display: flex; flex-direction: column; }
.tl-block:hover { text-decoration: none; border-color: var(--ink); } .tl-block.replay { opacity: .75; border-style: dashed; }
.tl-block .thumb { aspect-ratio: 16/9; background: var(--surface-2); } .tl-block .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-block .lbl { padding: 4px 6px 0; color: var(--ink); } .tl-block .txt { padding: 2px 6px 6px; color: var(--muted); overflow: hidden; }
.ruler { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
/* exports: the video, its files, the checklist */
.export { display: grid; grid-template-columns: minmax(280px, 1fr) 1fr; gap: 20px; align-items: start; margin-bottom: 20px; } @media (max-width: 860px) { .export { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 8px 0; font-size: 13.5px; } .checks li { padding: 3px 0; } .checks li.ok { color: var(--ok); } .checks li.bad { color: var(--bad); }
.tile-sm .score { margin-top: 4px; font-size: 12px; line-height: 1.3; } .tile-sm .score.ok { color: var(--ok); } .tile-sm .score.bad { color: var(--bad); }
.ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 8px; }
.ladder .rung { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.ladder .rung.done { border-color: var(--ok, #2e9e5b); }
.ladder .rung.done > b::after { content: " ✓"; color: var(--ok, #2e9e5b); }
.ladder .rung form { margin-top: auto; }
