/* ToonMotion pages: the same look as the rest of video.froyla.com (same colours, header, buttons, cards, dark mode).
   The main site keeps these rules inside each page; they are repeated here once so every ToonMotion page shares them.
   Fonts come from /site.css like every other page. */
:root {
  --bg: #ffffff; --surface: #f6f7f9; --ink: #111418; --muted: #5d6470; --line: #e3e6eb;
  --accent: #1f5eff; --accent-ink: #ffffff; --accent-soft: #eaf1ff; --danger: #b42318; --ok: #067647;
  --radius: 14px; --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark;
    --bg: #0c0e11; --surface: #14171c; --ink: #eef0f3; --muted: #9aa2ad; --line: #262b33;
    --accent: #6d8cff; --accent-ink: #0c0e11; --accent-soft: #1a2440; --danger: #f97066; --ok: #4ade80;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; flex-wrap: wrap; }
.brand { font-weight: 750; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 2px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.actions { display: flex; gap: 10px; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 10px;
  text-decoration: none; font: inherit; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; background: none; color: var(--ink); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 750; }
h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 720; }
h3 { font-size: 18px; margin: 0 0 6px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: 19px; color: var(--muted); max-width: 600px; margin: 0 0 28px; }
.intro { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 0 32px; }
.muted { color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero { padding: 72px 0 56px; }
section.block { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } .grid4 { grid-template-columns: repeat(2, 1fr); } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); }
.steps li::before { counter-increment: s; content: counter(s); display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.notice { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; margin: 0 0 20px; font-size: 15px; }
.notice.warn { border-left-color: var(--danger); }
.notice.ok { border-left-color: var(--ok); }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 44px; }
textarea { min-height: 120px; resize: vertical; }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.error { color: var(--danger); font-size: 14px; font-weight: 600; margin-top: 8px; }

/* the studio: five steps on one page, one card each */
.stepper { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.stepper li { font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.stepper li[aria-current="step"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 700; }
.studio-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; background: var(--bg); }
.studio-step[hidden] { display: none; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 10px 0; }
.choice { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg); color: var(--ink); text-align: left; font: inherit; cursor: pointer; min-height: 56px; }
.choice[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--accent-soft); }
.choice[disabled] { opacity: .5; cursor: not-allowed; }
.choice small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.step-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
table.plain { width: 100%; border-collapse: collapse; font-size: 15px; }
table.plain th, table.plain td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
footer.site { border-top: 1px solid var(--line); padding: 32px 0 44px; margin-top: 24px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer.site a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }
footer.site a:hover { color: var(--ink); }

/* characters page: consent choices and the photo library (pictures keep their shape: sized by width, never stretched) */
fieldset.kinds { border: 0; padding: 0; margin: 0 0 12px; }
fieldset.kinds legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 6px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; margin: 8px 0; min-height: 44px; }
label.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.consent { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; margin: 6px 0 14px; font-size: 15px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.person { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--bg); }
.person img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--surface); }
.person h3 { margin: 10px 0 2px; }
.pick { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 8px 0; min-height: 56px; }
.pick img { width: 56px; height: auto; border-radius: 8px; }
.pick label { margin: 0; font-weight: 600; flex: 1; display: flex; align-items: center; gap: 12px; }
.pick input { width: 22px; height: 22px; flex: none; }

/* character sheets: six pictures per character, sized by width so they are never stretched */
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 10px 0; }
.sheet-cell { margin: 0; }
.sheet-cell img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--surface); }
.sheet-cell figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.sheet-empty { display: flex; align-items: center; justify-content: center; min-height: 90px; border: 1px dashed var(--line); border-radius: 8px; font-size: 13px; color: var(--muted); text-align: center; padding: 6px; }

/* progress bar for a cartoon being made */
.progress { height: 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; margin: 10px 0 6px; }
.progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .6s ease; }
.progress-line { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .progress-bar { transition: none; } }


/* the studio: optional parts sit in closed "more" boxes; the make bar stays in view while the scenes are long */
details.more { border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px; margin: 14px 0; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
button.linkish { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.price-bar { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); margin-top: 18px; }
