:root {
  color-scheme: light;
  --sky: #a9dcff;
  --cream: #fff8e8;
  --paper: rgba(255, 252, 242, .91);
  --ink: #302218;
  --muted: #765f4e;
  --sun: #f7aa16;
  --sun-dark: #d77a08;
  --caramel: #a95b22;
  --coral: #e65d46;
  --line: rgba(102, 57, 25, .18);
  --shadow: 0 24px 70px rgba(73, 41, 19, .22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f7d288; font-family: "Gaegu", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif; font-weight: 700; font-size: 1.08rem; line-height: 1.5; }
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.scene { position: fixed; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(255,247,226,.44) 0 45%, rgba(255,255,255,0) 68%), url('./assets/shushu-hero.png') right top / cover no-repeat; }
.scene::after { content: ""; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent, #f6c86b 78%); }
.topbar { height: 76px; width: min(1180px, calc(100% - 36px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 5; }
.brand { display: flex; gap: 11px; align-items: center; font-weight: 900; font-size: 1.2rem; letter-spacing: -.04em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; color: white; background: var(--sun); box-shadow: 0 7px 18px rgba(180, 97, 0, .26); }
.brand-dot { color: var(--sun-dark); }
nav { display: flex; gap: 24px; font-weight: 700; font-size: .92rem; }
nav a:hover, footer a:hover { color: var(--sun-dark); }
.lang-toggle { min-width: 38px; height: 30px; border: 1px solid rgba(70,42,22,.2); border-radius: 10px; color: var(--ink); background: rgba(255,255,255,.56); cursor: pointer; font-weight: 900; }
.workspace-shell { min-height: calc(100vh - 76px); width: min(1180px, calc(100% - 36px)); margin: 0 auto; display: grid; grid-template-columns: minmax(420px, 620px) 1fr; align-items: center; gap: 24px; padding: 28px 0 80px; }
.workspace-card { padding: clamp(26px, 4vw, 46px); border: 1px solid rgba(255,255,255,.72); border-radius: 30px; background: var(--paper); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--caramel); font-weight: 800; font-size: .82rem; letter-spacing: .08em; }
.eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(230,93,70,.13); }
h1 { margin: 14px 0 14px; font-size: clamp(2.45rem, 5vw, 4.6rem); letter-spacing: -.07em; line-height: 1.02; }
h1 strong { color: var(--sun-dark); font-weight: 950; }
.lead { max-width: 560px; margin: 0 0 26px; color: var(--muted); font-size: 1.05rem; }
.action-row, .capture-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.primary, .secondary, .ghost, .danger { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 14px; cursor: pointer; font-weight: 850; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.primary { color: #2f1c08; background: var(--sun); box-shadow: 0 10px 24px rgba(190, 103, 0, .24); }
.primary:hover, .secondary:hover, .ghost:hover, .danger:hover { transform: translateY(-2px); }
.primary:disabled, .disabled { opacity: .48; cursor: not-allowed; transform: none; }
.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.74); }
.ghost { color: var(--muted); background: rgba(120,78,46,.08); }
.danger { color: white; background: var(--coral); }
.record-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,255,255,.36); }
.status { margin-top: 16px; min-height: 24px; color: var(--muted); font-size: .86rem; }
.capture-panel { margin-top: 18px; }
.preview-wrap { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; background: #251d18; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); touch-action: none; user-select: none; }
.preview-wrap video, .preview-wrap canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.selection { position: absolute; left: 10%; top: 10%; width: 80%; height: 80%; border: 3px solid var(--sun); border-radius: 10px; background: rgba(247,170,22,.08); box-shadow: 0 0 0 9999px rgba(24,16,10,.5); cursor: crosshair; }
.selection::after { content: ""; position: absolute; right: -7px; bottom: -7px; width: 15px; height: 15px; border-radius: 4px; background: white; border: 3px solid var(--sun); }
.selection-hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); padding: 5px 10px; border-radius: 999px; color: white; background: rgba(31,23,17,.72); font-size: .75rem; pointer-events: none; }
.controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 12px; }
.controls label { display: grid; gap: 5px; color: var(--muted); font-size: .78rem; font-weight: 750; }
select { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fffaf0; font-weight: 750; }
.progress-track { height: 8px; overflow: hidden; margin-top: 12px; border-radius: 999px; background: rgba(120,78,46,.13); }
.progress-track div { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sun), var(--coral)); transition: width .2s linear; }
.estimate { margin: 8px 0 0; color: var(--muted); font-size: .78rem; }
.edit-panel { margin-top: 20px; }
.edit-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 10px; }
.edit-head h2 { margin: 2px 0 0; font-size: 1.35rem; letter-spacing: -.04em; }
.edit-step { color: var(--coral); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.edit-head > span { color: var(--muted); font-size: .82rem; font-weight: 800; }
.edit-preview { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 16/9; border-radius: 18px; background: #241d18; }
.edit-preview canvas { max-width: 100%; max-height: 100%; }
.preview-play { position: absolute; left: 12px; bottom: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; color: #33200c; background: var(--sun); cursor: pointer; box-shadow: 0 7px 20px rgba(0,0,0,.25); }
.scrubber { width: 100%; margin: 12px 0; accent-color: var(--sun-dark); }
.trim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trim-grid label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; font-weight: 800; }
.trim-grid input, .caption-tool input { min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fffaf0; }
.overlay-tools { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 15px 0; padding: 14px; border-radius: 16px; background: rgba(126,79,42,.07); }
.caption-tool label, .sticker-tool > span, .scene-duration { display: block; margin-bottom: 6px; color: var(--muted); font-size: .78rem; font-weight: 850; }
.caption-tool > div { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.caption-tool button, .stickers button { border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; font-weight: 800; }
.caption-tool button { padding: 0 14px; }
.stickers { display: flex; flex-wrap: wrap; gap: 6px; }
.stickers button { width: 38px; height: 38px; font-size: 1.15rem; }
.scene-duration { display: grid; grid-template-columns: auto minmax(120px, 180px); align-items: center; gap: 10px; }
.scene-duration select { min-height: 38px; }
.overlay-list { display: grid; gap: 6px; margin-bottom: 12px; }
.overlay-chip { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.62); font-size: .8rem; }
.overlay-chip span { flex: 1; color: var(--muted); }
.overlay-chip button { border: 0; color: var(--coral); background: transparent; cursor: pointer; font-weight: 900; }
.result { margin-top: 18px; padding: 14px; display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); }
.result[hidden] { display: none; }
.result img { width: 92px; height: 68px; border-radius: 10px; object-fit: cover; background: #261f19; }
.result strong, .result span { display: block; }
.result span { color: var(--muted); font-size: .8rem; }
.result .ghost { grid-column: 2 / 4; justify-self: start; min-height: 34px; padding: 0 12px; }
.mascot-caption { align-self: end; justify-self: end; margin: 0 18px 54px 0; padding: 12px 16px; border-radius: 16px 16px 5px 16px; background: rgba(255,255,255,.82); box-shadow: 0 12px 30px rgba(80,45,20,.2); backdrop-filter: blur(12px); }
.mascot-caption span, .mascot-caption strong { display: block; }
.mascot-caption span { color: var(--sun-dark); font-size: .78rem; font-weight: 900; }
.mascot-caption strong { font-size: .92rem; }
.content-section, .extension-section, .shu-family { width: min(1120px, calc(100% - 36px)); margin: 0 auto 70px; padding: clamp(30px, 5vw, 58px); border-radius: 30px; background: #fff8e9; box-shadow: 0 20px 70px rgba(91,51,24,.14); }
.section-heading span, .pill { color: var(--coral); font-size: .76rem; font-weight: 900; letter-spacing: .12em; }
.section-heading h2, .extension-section h2 { margin: 7px 0 22px; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.05em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps article { min-height: 190px; padding: 24px; border: 1px solid rgba(164,95,37,.14); border-radius: 22px; background: white; }
.steps b { color: var(--sun-dark); font-size: 1.55rem; }
.steps h3 { margin: 26px 0 6px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }
.extension-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6vw, 72px); background: #3b2518; color: white; }
.extension-section p { color: #e7d7c7; margin-bottom: 24px; }
.extension-demo { overflow: hidden; border: 8px solid #1f1712; border-radius: 22px; background: white; box-shadow: 0 24px 44px rgba(0,0,0,.26); transform: rotate(2deg); }
.browser-bar { height: 38px; padding: 0 9px; display: flex; align-items: center; gap: 6px; background: #efe4d6; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d19d69; }
.browser-bar span { flex: 1; height: 18px; margin-left: 7px; border-radius: 9px; background: white; }
.browser-bar b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: #3b2518; background: var(--sun); }
.demo-screen { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #a7d9f7 0 40%, #f3bf5b 40% 100%); }
.crop-box { position: absolute; inset: 19% 16%; border: 3px solid var(--sun); box-shadow: 0 0 0 999px rgba(31,23,18,.4); }
.crop-box span { position: absolute; right: 6px; top: 6px; padding: 3px 7px; border-radius: 7px; color: white; background: var(--coral); font-size: .72rem; }
.shu-family { display: grid; grid-template-columns: .8fr 2fr; gap: 30px; align-items: start; }
.shu-family > div > span { color: var(--coral); font-size: .76rem; font-weight: 900; letter-spacing: .12em; }
.shu-family h2 { margin: 7px 0 0; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.05em; }
.family-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.family-links a { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: white; transition: transform .18s ease, box-shadow .18s ease; }
.family-links a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(93,50,20,.1); }
.family-links b, .family-links small { display: block; }
.family-links small { margin-top: 3px; color: var(--muted); }
footer { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 20px 0 38px; display: grid; gap: 10px; color: #614430; font-size: .86rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.footer-row span { margin-right: auto; }
.footer-credit { padding-top: 12px; border-top: 1px solid rgba(102,57,25,.14); color: #7c604a; font-size: .8rem; }
.footer-credit a { font-weight: 700; }
.footer-credit a:hover { color: var(--sun-dark); }
.family-more { display: flex; align-items: center; justify-content: center; padding: 17px; border: 1.5px dashed rgba(164,95,37,.3); border-radius: 16px; color: var(--muted); font-size: .85rem; font-weight: 700; }
@media (max-width: 900px) {
  .scene { background-position: 58% top; }
  nav { display: none; }
  .workspace-shell { grid-template-columns: 1fr; align-items: start; padding-top: 18px; }
  .workspace-card { max-width: 620px; }
  .mascot-caption { display: none; }
  .extension-section { grid-template-columns: 1fr; }
  .shu-family { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .scene { background-position: 66% top; }
  .scene::before { content: ""; position: absolute; inset: 0; background: rgba(255,247,226,.33); }
  .workspace-shell { width: min(100% - 20px, 560px); }
  .workspace-card { padding: 24px 18px; border-radius: 24px; }
  h1 { font-size: 2.55rem; }
  .controls { grid-template-columns: repeat(2, 1fr); }
  .result { grid-template-columns: 72px 1fr; }
  .result img { width: 72px; height: 58px; }
  .result .primary { grid-column: 1 / 3; }
  .result .ghost { grid-column: 1 / 3; }
  .steps { grid-template-columns: 1fr; }
  .family-links { grid-template-columns: 1fr; }
  .steps article { min-height: 0; }
  .footer-row span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* cute fonts: Jua for headings & buttons, Gaegu for body */
h1, h2, h3, h1 strong, .brand, .brand-mark, .primary, .secondary, .ghost, .danger, .lang-toggle, .steps b, .edit-step, .eyebrow, .pill, .section-heading span, .shu-family > div > span, .family-links b { font-family: "Jua", "Gaegu", sans-serif; font-weight: 400; letter-spacing: 0; }
h1 { line-height: 1.12; }

/* ---- timeline studio ---- */
.crop-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 4px; color: var(--muted); font-size: .85rem; }
.crop-row .ghost { min-height: 34px; padding: 0 12px; font-size: .85rem; }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; font-family: "Jua", sans-serif; font-size: clamp(4rem, 14vw, 8rem); color: #fff; background: rgba(28,19,12,.55); text-shadow: 0 8px 24px rgba(0,0,0,.4); }
.countdown[hidden] { display: none; }
.capture-tip { margin: 12px 0 0; padding: 11px 14px; border-radius: 14px; background: rgba(247,170,22,.16); color: #6b4a22; font-size: .86rem; line-height: 1.45; }
.timeline-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 18px 0 8px; }
.timeline-head strong { font-family: "Jua", sans-serif; font-weight: 400; font-size: 1.1rem; }
.timeline-head span { color: var(--muted); font-size: .84rem; }
.timeline { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.timeline-empty { margin: 0; padding: 20px 14px; width: 100%; text-align: center; color: var(--muted); border: 1.5px dashed rgba(164,95,37,.32); border-radius: 16px; font-size: .88rem; }
.clip { flex: 0 0 auto; display: grid; gap: 5px; }
.clip-thumb { position: relative; width: 132px; height: 88px; padding: 0; border: 2.5px solid transparent; border-radius: 14px; background: #241d18 center / cover no-repeat; cursor: pointer; overflow: hidden; }
.clip.selected .clip-thumb { border-color: var(--sun); box-shadow: 0 6px 18px rgba(190,103,0,.28); }
.clip-badge { position: absolute; left: 5px; bottom: 5px; padding: 3px 8px; border-radius: 999px; color: #fff; background: rgba(28,19,12,.72); font-size: .68rem; font-weight: 700; }
.clip-actions { display: flex; gap: 4px; justify-content: center; }
.clip-actions button { width: 38px; height: 28px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.8); cursor: pointer; font-size: .72rem; }
.clip-actions button:disabled { opacity: .35; cursor: default; }
.clip-actions .danger-icon { color: var(--coral); }
.clip-tools { margin: 4px 0 14px; padding: 13px 15px; border-radius: 14px; background: rgba(126,79,42,.07); }
.clip-tools[hidden] { display: none; }
.clip-duration { display: grid; grid-template-columns: auto minmax(110px, 170px); align-items: center; gap: 10px; color: var(--muted); font-size: .84rem; }
.clip-duration select { min-height: 38px; }
.clip-trim { display: grid; grid-template-columns: auto 1fr 1fr auto; align-items: center; gap: 10px; color: var(--muted); font-size: .84rem; }
.clip-range { width: 100%; accent-color: var(--sun-dark); }
.clip-trim-readout { font-weight: 800; white-space: nowrap; }
@media (max-width: 620px) {
  .clip-trim { grid-template-columns: 1fr 1fr; }
  .clip-trim span:first-child, .clip-trim-readout { grid-column: 1 / 3; }
}
