:root {
  --bg: #121110;
  --bg-2: #171513;
  --panel: #1c1a17;
  --panel-2: #24211d;
  --line: #2d2924;
  --line-2: #3b362f;
  --text: #eee8de;
  --text-2: #bdb4a7;
  --muted: #8a8174;
  --gold: #e3c493;
  --gold-2: #f0d9b2;
  --gold-ink: #1b150d;
  --danger: #e58a76;
  --ok: #8fc79a;
  --amber: #e7b660;
  --field: #1a1815;
  --canvas: #0d0c0b;
  --accent-soft: rgba(227, 196, 147, 0.12);
  --scrim: rgba(8, 7, 6, 0.6);
  --bar-bg: rgba(28, 26, 23, 0.94);
  --radius: 10px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a[href], button:not(:disabled), [role='button'], [role='tab'], summary, select, label:has(> input[type='checkbox']) { cursor: pointer; }
button:disabled { cursor: default; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 550; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 34px; padding: 0; }
.toolbar .btn.btn-icon { flex: none; }
.btn-primary { background: var(--gold); color: var(--gold-ink); }
@media (hover: hover) { .btn-primary:hover { background: var(--gold-2); } }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
@media (hover: hover) { .btn-ghost:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); } }
.btn-danger { color: var(--danger); }
@media (hover: hover) { .btn-danger:hover { border-color: rgba(229, 138, 118, 0.5); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn {
  width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 8px;
  border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1;
  transition: color 0.15s, background 0.15s;
}
@media (hover: hover) { .icon-btn:hover { color: var(--text); background: var(--panel-2); } }
.link { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.nowrap { white-space: nowrap; }

.inp {
  width: 100%; min-width: 0; height: 38px; padding: 0 11px; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13.5px;
  transition: border-color 0.15s, background 0.15s;
}
@media (hover: hover) { .inp:hover { border-color: var(--line-2); } }
.inp:focus { outline: none; border-color: var(--gold); background-color: var(--field); }
textarea.inp { height: auto; padding: 9px 11px; line-height: 1.55; resize: vertical; }
.editor textarea.inp { resize: none; overflow: hidden; }
.toggle-field { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-top: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.tf-text { display: grid; gap: 4px; }
.tf-text strong { font-size: 13.5px; font-weight: 600; }
.tf-text span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.switch { flex: none; appearance: none; -webkit-appearance: none; position: relative; width: 34px; height: 20px; margin: 2px 0 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: background 0.2s var(--ease); }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform 0.2s var(--ease); }
.switch:checked { background: var(--gold); }
.switch:checked::after { transform: translateX(14px); }
.switch:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.list-input { position: relative; }
.list-input textarea.inp, .lm { padding: 9px 11px 9px 40px; font-size: 13.5px; line-height: 1.55; }
.lm { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; border: 1px solid transparent; color: transparent; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; }
.lm-row { position: relative; }
.lm-row::before { content: attr(data-m); position: absolute; left: -31px; width: 22px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.list-num .lm-row::before { color: var(--gold); font-size: 11.5px; font-weight: 600; }
.list-yes .lm-row::before { color: var(--ok); }
.list-no .lm-row::before { color: var(--danger); }
select.inp { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23808080' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.inp-sm { height: 32px; font-size: 13px; width: auto; }
.inp-lg { height: 48px; font-size: 15px; padding: 0 16px; border-radius: 999px; }
input[type='date'].inp { color-scheme: dark; }
input[type='color'] { width: 38px; height: 38px; padding: 3px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; flex: none; }
input[type='color']::-webkit-color-swatch-wrapper { padding: 0; }
input[type='color']::-webkit-color-swatch { border: 0; border-radius: 5px; }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.seg-btn { border: 0; background: transparent; color: var(--muted); padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 550; cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease); white-space: nowrap; }
@media (hover: hover) { .seg-btn:hover { color: var(--text); } }
.seg-btn.on { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.16em; font-size: 13px; text-decoration: none; color: var(--text); }
.wordmark--sm { font-size: 11.5px; }
.wm-logo { display: block; height: 30px; width: auto; }
.wordmark--sm .wm-logo { height: 24px; }
.wm-mark { width: 16px; height: 20px; border-radius: 2px; background: var(--gold); position: relative; box-shadow: 3px 3px 0 -1px rgba(227, 196, 147, 0.25); }
.wm-mark::before, .wm-mark::after { content: ''; position: absolute; left: 4px; right: 4px; height: 1.5px; background: var(--gold-ink); top: 6px; }
.wm-mark::after { top: 10px; right: 6px; }
.kicker { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

body.mode-app { overflow: hidden; }
.app { display: grid; grid-template-columns: 252px 1fr; height: 100vh; height: 100dvh; }
.sidebar { display: flex; flex-direction: column; background: var(--bg); border-right: 1px solid var(--line); padding: 18px 14px; min-height: 0; }
.side-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 20px; }
.side-close { display: none; }
.side-actions { display: grid; gap: 8px; padding-bottom: 22px; }
.side-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 0 8px 8px; }
.project-list { flex: 1; overflow: auto; display: grid; align-content: start; gap: 2px; margin: 0 -4px 0 -14px; padding: 0 4px 0 14px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.proj { position: relative; display: flex; align-items: center; border-radius: 8px; transition: background 0.15s; }
.proj.menu-open { background: var(--panel); }
@media (hover: hover) { .proj:hover { background: var(--panel); } }
.proj.on { background: var(--panel-2); }
.proj.on::before { content: ''; position: absolute; left: -14px; top: 15%; height: 70%; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); animation: markerIn 0.3s var(--ease); }
@keyframes markerIn { from { transform: scaleY(0.2); opacity: 0; } to { transform: none; opacity: 1; } }
.proj-main { flex: 1; min-width: 0; text-align: left; border: 0; background: transparent; padding: 9px 4px 9px 10px; border-radius: 8px; cursor: pointer; display: grid; gap: 1px; }
.proj-name { justify-self: start; max-width: 100%; font-weight: 550; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-more { flex: none; width: 28px; height: 28px; margin-right: 5px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity 0.15s, background 0.15s, color 0.15s; }
.proj:focus-within .proj-more, .proj.menu-open .proj-more { opacity: 1; }
@media (hover: hover) { .proj:hover .proj-more { opacity: 1; } }
.proj.menu-open .proj-more { background: var(--line); color: var(--text); }
@media (hover: hover) { .proj-more:hover { background: var(--line); color: var(--text); } }
@media (hover: none), (pointer: coarse), (max-width: 900px) { .proj-more { opacity: 1; } }
.proj.renaming { padding: 4px 5px; }
.proj-rename { height: 34px; }

.proj-menu { position: fixed; z-index: 60; min-width: 172px; padding: 5px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.65); transform-origin: top right; animation: menuIn 0.16s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: scale(0.96) translateY(-4px); } to { opacity: 1; transform: none; } }
.proj-menu button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 8px 10px; border-radius: 6px; text-align: left; font-size: 13px; color: var(--text); cursor: pointer; }
.proj-menu button svg { color: var(--muted); }
.proj-menu button:focus-visible { background: var(--panel-2); outline: none; }
@media (hover: hover) { .proj-menu button:hover { background: var(--panel-2); outline: none; } }
.proj-menu button.danger, .proj-menu button.danger svg { color: var(--danger); }
@media (hover: hover) { .proj-menu button.danger:hover { background: rgba(229, 138, 118, 0.1); } }
.menu-sep { height: 1px; background: var(--line); margin: 4px 2px; }
.side-empty { color: var(--muted); font-size: 13px; padding: 0 8px; margin: 0; }
.proj-search { height: 34px; margin: 0 0 10px; font-size: 13px; }
.proj-search[hidden] { display: none; }
.side-new { border-color: var(--line-2); font-weight: 550; }
@media (hover: hover) { .side-new:hover { border-color: var(--gold); color: var(--gold); background: transparent; } }
.side-bottom { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 2px; }
.side-link { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; text-align: left; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-size: 13.5px; text-decoration: none; transition: background 0.15s, color 0.15s; }
.side-link.on { background: var(--panel); color: var(--text); }
@media (hover: hover) { .side-link:hover { background: var(--panel); color: var(--text); } }
.scrim { display: none; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg-2); }
.mobile-bar { display: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px 12px; }
.autosave { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); transition: opacity 0.4s var(--ease); }
.autosave:empty { display: none; }
.autosave::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.autosave[data-state="saving"]::before { background: var(--amber); }
.autosave[data-state="failed"] { color: var(--danger); }
.autosave[data-state="failed"]::before { background: var(--danger); }
.autosave[data-state="idle"] { opacity: 0.6; }
.from-note { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.editor-foot { padding: 6px 0 4px; }
.link-muted { color: var(--muted); }
@media (hover: hover) { .link-muted:hover { color: var(--text-2); } }
.top-titles { min-width: 0; flex: 1; }
.top-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.tabs { display: flex; gap: 2px; padding: 0 20px; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; border: 0; background: transparent; cursor: pointer; padding: 10px 14px 11px; display: grid; gap: 2px; text-align: left; flex: none; border-radius: 8px 8px 0 0; transition: background 0.2s var(--ease); }
@media (hover: hover) { .tab:hover { background: rgba(255, 255, 255, 0.025); } }
.tab::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform 0.25s var(--ease); }
.tab.on::after { transform: scaleX(1); }
.tab-name { font-weight: 600; font-size: 13.5px; color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.tab.on .tab-name { color: var(--text); }
.tab-n { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tab-status { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tab-status i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--muted); }
.st-drafted i { border-color: var(--amber); background: var(--amber); }
.st-drafted { color: var(--amber); }
.st-sent i { border-color: var(--ok); background: var(--ok); }
.st-sent { color: var(--ok); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.topbar .toolbar { flex: none; padding: 0; border: 0; }
.tb-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tb-end { margin-left: auto; }
.tb-label { font-size: 12px; color: var(--muted); }

.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(360px, 460px) 1fr; }
.editor { overflow-y: auto; border-right: 1px solid var(--line); background: var(--panel); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.editor-inner { padding: 22px 24px 60px; animation: fadeUp 0.35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.group { padding: 4px 0 22px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.group:last-child { border-bottom: 0; }
.group-title { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 21px; }
.group-note { margin: -8px 0 12px; color: var(--muted); font-size: 13px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; align-content: start; }
.f-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; font-weight: 550; color: var(--text-2); }
.revert { border: 0; background: none; color: var(--gold); font-size: 11.5px; cursor: pointer; padding: 0; opacity: 0.85; }
@media (hover: hover) { .revert:hover { opacity: 1; text-decoration: underline; } }
.hint { font-size: 12px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.info { margin: 0 0 18px; font-size: 13px; color: var(--muted); padding: 10px 12px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.group .info { margin-bottom: 12px; }
.warn { margin: -4px 0 14px; font-size: 13px; color: var(--amber); padding: 10px 12px; border-radius: 8px; background: rgba(231, 182, 96, 0.08); border: 1px solid rgba(231, 182, 96, 0.25); }
.total-line { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 0; border-top: 1px dashed var(--line-2); color: var(--text-2); }
.total-line strong { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--text); }
.group-body > .seg { margin-bottom: 14px; }

.group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.group-head .group-title { margin: 0; }
.f-label .sec-switch { margin-left: auto; }
.f-label .revert + .sec-switch { margin-left: 0; }
.sec-switch { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 2px 0; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 550; cursor: pointer; }
.sec-switch i { position: relative; width: 30px; height: 18px; border-radius: 999px; background: var(--line-2); transition: background 0.2s var(--ease); }
.sec-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform 0.2s var(--ease); }
.sec-switch[aria-checked='true'] { color: var(--text-2); }
.sec-switch[aria-checked='true'] i { background: var(--gold); }
.sec-switch[aria-checked='true'] i::after { transform: translateX(12px); }
@media (hover: hover) { .sec-switch:hover { color: var(--text); } }
.sec-switch:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skipped-note { display: none; margin: 0; color: var(--muted); font-size: 12.5px; font-style: italic; }
.group.is-off > .group-body, .group.is-off > .group-note, .sec-block.is-off > :not(.f-label):not(.skipped-note), .sec-field.is-off > :not(.f-label) { display: none; }
.group.is-off > .skipped-note, .sec-block.is-off > .skipped-note { display: block; }
.group.is-off .group-title, .sec-block.is-off .f-label > span:first-child, .sec-field.is-off .f-label > span:first-child { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.sec-field.is-off { margin-bottom: 10px; }
.sec-block .skipped-note { margin-top: 6px; }
.sec-list { display: grid; gap: 2px; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sec-row:last-child { border-bottom: 0; }
.sec-row.is-off > span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }

.rows { display: grid; gap: 6px; margin-bottom: 14px; }
.rows-head { display: grid; gap: 6px; font-size: 11.5px; color: var(--muted); padding: 0 2px; }
.row { display: grid; gap: 6px; align-items: center; animation: fadeUp 0.25s var(--ease); }
.add-btn { justify-self: start; border: 1px dashed var(--line-2); background: transparent; color: var(--text-2); padding: 7px 12px; border-radius: 8px; cursor: pointer; font-size: 12.5px; transition: border-color 0.15s, color 0.15s; }
@media (hover: hover) { .add-btn:hover { border-color: var(--gold); color: var(--gold); } }
.color-cell { display: flex; gap: 6px; align-items: center; min-width: 0; }
.color-cell--lg .inp { max-width: 140px; }
.swatch-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.preset { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; transition: transform 0.15s; }
@media (hover: hover) { .preset:hover { transform: scale(1.12); } }
.logo-panel { display: grid; gap: 14px; }
.logo-stage { background: #fff; border-radius: 10px; padding: 18px 18px 16px; color: #111; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04); }
.stage-head { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-bottom: 14px; border-bottom: 1px solid #e8e8e8; }
.stage-logo { height: 44px; max-width: 180px; object-fit: contain; flex: none; border-radius: calc(var(--lr, 0) * 22px); }
.stage-logo.mono { width: 44px; }
.stage-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-name--solo { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.stage-lines i { display: block; height: 6px; border-radius: 3px; background: #efefef; margin-top: 10px; }
.stage-lines i:nth-child(1) { width: 34%; background: var(--accent); opacity: 0.85; height: 4px; }
.stage-lines i:nth-child(2) { width: 88%; }
.stage-lines i:nth-child(3) { width: 62%; }
.logo-panel > .seg, .field > .seg { justify-self: start; }
.logo-controls { display: grid; gap: 10px; justify-items: start; }
.logo-controls .field { width: 100%; margin-bottom: 0; }
.dropzone { display: grid; justify-items: center; gap: 2px; width: 100%; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: 10px; cursor: pointer; color: var(--text); font-weight: 550; font-size: 13.5px; transition: border-color 0.15s, background 0.15s; }
.dropzone span { font-weight: 400; font-size: 12px; color: var(--muted); }
@media (hover: hover) { .dropzone:hover { border-color: var(--gold); background: var(--accent-soft); } }
.restore { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; font-size: 12.5px; transition: border-color 0.15s; }
@media (hover: hover) { .restore:hover { border-color: var(--gold); } }
.restore img { width: 24px; height: 24px; border-radius: 50%; background: #fff; object-fit: contain; padding: 2px; }
.link-sm { font-size: 12.5px; }
.range-field { display: grid; gap: 6px; }
.range-field output { color: var(--gold); font-variant-numeric: tabular-nums; font-weight: 600; }
.range { width: 100%; margin: 0; accent-color: var(--gold); cursor: pointer; }
.range-ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }

.preview { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--canvas); }

.settings-nav { display: none; }
.workspace.is-settings { grid-template-columns: minmax(230px, 300px) 1fr; }
.workspace.is-settings .settings-nav { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--panel); }
.workspace.is-settings .preview { display: none; }
.workspace.is-settings .editor { border-right: 0; background: var(--bg); }
.sn-list { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 4px; padding: 18px 14px; }
.sn-item { position: relative; display: grid; gap: 3px; text-align: left; border: 0; background: transparent; color: var(--text); padding: 13px 16px; border-radius: 10px; cursor: pointer; transition: background 0.15s; }
@media (hover: hover) { .sn-item:hover { background: rgba(255, 255, 255, 0.03); } }
.sn-item.on { background: var(--panel-2); }
.sn-item.on::before { content: ''; position: absolute; left: -14px; top: 18%; height: 64%; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); animation: markerIn 0.3s var(--ease); }
.sn-name { font-weight: 550; font-size: 14.5px; }
.sn-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.sn-item:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.workspace.is-settings .editor-inner { min-height: 100%; display: flex; flex-direction: column; box-sizing: border-box; padding-bottom: 16px; }
.workspace.is-settings .settings-page { flex: 1; display: flex; flex-direction: column; width: 100%; box-sizing: border-box; }
.settings-page .save-bar { position: sticky; bottom: 16px; margin: auto 0 0; padding: 12px 14px 12px 18px; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7); opacity: 0; transform: translateY(14px); visibility: hidden; pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s; }
.settings-page .save-bar.show { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), visibility 0s; }
@media (prefers-reduced-motion: reduce) { .settings-page .save-bar, .settings-page .save-bar.show { transition: none; } }
.restore-types { margin: 10px 0 0; font-size: 13px; }
.data-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.data-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; text-align: left; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease); }
@media (hover: hover) { .data-card:hover { border-color: var(--gold); background: var(--panel-2); } }
.data-card:active { transform: translateY(1px); }
.data-card:focus-within, .data-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.data-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--gold); }
.data-text { display: grid; gap: 4px; }
.data-text strong { font-weight: 600; font-size: 15px; }
.data-text span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.settings-page { max-width: 720px; margin: 0 auto; padding: 18px 16px 0; }
.sp-head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sp-title { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.sp-desc { margin: 0; color: var(--muted); font-size: 14px; }
.preview-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.ph-title { color: var(--text-2); font-weight: 550; }
.preview-scroll { flex: 1; overflow: auto; padding: 28px 32px 60px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.pages { width: max-content; margin: 0 auto; display: grid; gap: 28px; }
.page-frame { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 50px -12px rgba(0, 0, 0, 0.6); border-radius: 2px; overflow: hidden; }

.empty { flex: 1; display: grid; place-items: center; padding: 32px; }
.empty-card { max-width: 560px; }
.empty-title { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.08; margin: 0 0 14px; }
.empty-card > p:not(.kicker) { color: var(--text-2); font-size: 15px; margin: 0 0 26px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: var(--gold-ink); padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 550; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.drawer-root { position: fixed; inset: 0; z-index: 80; }
.drawer-scrim { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.25s var(--ease); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); display: flex; flex-direction: column; padding: 56px 32px 28px; background: var(--panel); border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px -20px rgba(0, 0, 0, 0.7); transform: translateX(100%); transition: transform 0.3s var(--ease); }
.drawer-root.open .drawer-scrim { opacity: 1; }
.drawer-root.open .drawer { transform: none; }
.drawer-x { position: absolute; top: 16px; right: 16px; font-size: 22px; }
.drawer-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 24px; margin-bottom: 22px; background: var(--accent-soft); color: var(--gold); }
.drawer-icon--danger { background: rgba(229, 138, 118, 0.12); color: var(--danger); }
.drawer-icon--save { background: rgba(143, 199, 154, 0.12); color: var(--ok); font-family: var(--sans); font-size: 18px; }
.drawer-title { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.12; }
.drawer-body { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.drawer-body p { margin: 0 0 10px; }
.drawer-body strong { color: var(--text); font-weight: 600; }
.drawer-actions { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
.btn-danger-solid { background: var(--danger); color: #1d0f0b; }
@media (hover: hover) { .btn-danger-solid:hover { background: #eea08e; } }
@media (max-width: 640px) {
  .drawer { top: auto; left: 0; width: 100%; max-height: 88vh; padding: 40px 20px 22px; border-left: 0; border-top: 1px solid var(--line-2); border-radius: 18px 18px 0 0; transform: translateY(100%); }
  .drawer-actions { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-scrim { transition: none; } }

.drawer-root--dialog { display: grid; place-items: center; padding: 20px; }
.drawer-root--dialog .drawer { position: relative; inset: auto; top: auto; left: auto; width: min(440px, 100%); max-height: none; display: block; padding: 24px 24px 20px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.8); opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.2s var(--ease), transform 0.25s var(--ease); }
.drawer-root--dialog.open .drawer { opacity: 1; transform: none; }
.drawer-root--dialog .drawer-icon { --tone: 143, 179, 232; width: 30px; height: 30px; margin: 9px 0 22px 9px; color: var(--panel); background: rgb(var(--tone)); box-shadow: 0 0 0 8px rgba(var(--tone), 0.15), 0 0 0 16px rgba(var(--tone), 0.06); }
.drawer-root--dialog .drawer-icon--danger { --tone: 229, 138, 118; }
.drawer-root--dialog .drawer-icon--warning { --tone: 231, 182, 96; }
.drawer-root--dialog .drawer-icon--info { --tone: 143, 179, 232; }
.drawer-root--dialog .drawer-icon--success { --tone: 143, 199, 154; }
.btn-danger-solid:focus-visible { outline-color: var(--danger); }
.btn-warning-solid:focus-visible { outline-color: var(--amber); }
.btn-info-solid:focus-visible { outline-color: #8fb3e8; }
.btn-success-solid:focus-visible { outline-color: var(--ok); }
.btn-warning-solid { background: var(--amber); color: #1d150a; }
.btn-info-solid { background: #8fb3e8; color: #0d1726; }
.btn-success-solid { background: var(--ok); color: #0f1a12; }
@media (hover: hover) { .btn-warning-solid:hover { background: #efc57d; } .btn-info-solid:hover { background: #a6c3ee; } .btn-success-solid:hover { background: #a5d4ae; } }
.drawer-root--dialog .drawer-title { margin: 0 0 6px; font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.35; }
.drawer-root--dialog .drawer-body { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.drawer-root--dialog .drawer-body p { margin: 0 0 6px; }
.drawer-root--dialog .drawer-actions { margin: 0; padding-top: 20px; display: flex; justify-content: flex-end; gap: 10px; }
.drawer-root--dialog .drawer-actions .btn { min-width: 96px; }
@media (max-width: 480px) {
  .drawer-root--dialog .drawer-actions { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .drawer-root--dialog .drawer { transition: none; } }

.save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 10px; margin: 8px -24px -60px; padding: 14px 24px; background: var(--bar-bg); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.save-status { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.save-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.save-bar.is-dirty .save-status { color: var(--text-2); }
.save-bar.is-dirty .save-status i { background: var(--amber); box-shadow: 0 0 0 4px rgba(231, 182, 96, 0.15); }
.save-bar .btn:disabled { opacity: 0.45; cursor: default; }
.save-bar .btn-primary.just-saved { background: var(--ok); color: #0f1a12; }

@media (max-width: 1180px) {
  .workspace { grid-template-columns: minmax(330px, 400px) 1fr; }
}
@media (max-width: 900px) {
  body.mode-app { overflow: auto; }
  .app { display: block; height: auto; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform 0.3s var(--ease); }
  .app.side-open .sidebar { transform: none; }
  .side-close { display: inline-grid; }
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 30; opacity: 0; pointer-events: none; transition: opacity 0.3s; display: block; }
  .app.side-open .scrim { opacity: 1; pointer-events: auto; }
  .main { min-height: 100dvh; }
  .mobile-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 20; }
  .topbar { padding: 16px 16px 10px; flex-wrap: wrap; }
  .top-title { font-size: 24px; white-space: normal; }
  .tabs { padding: 0 8px; }
  .topbar .toolbar { width: 100%; padding: 0; }
  .tb-end { margin-left: 0; }
  .workspace { display: block; }
  .editor { border-right: 0; overflow: visible; }
  .editor-inner { padding: 18px 16px 28px; }
  .save-bar { margin: 8px -16px -28px; padding: 12px 16px; }
  .preview-scroll { overflow: visible; padding: 16px 12px 40px; }
  .pages { gap: 14px; }
  .workspace.is-settings .settings-nav { display: block; border-right: 0; border-bottom: 1px solid var(--line); scroll-margin-top: 60px; }
  .sn-list { display: flex; overflow-x: auto; gap: 6px; padding: 10px 12px; scrollbar-width: none; }
  .sn-item { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); }
  .sn-item.on { border-color: var(--gold); color: var(--gold); background: transparent; }
  .sn-item.on::before, .sn-desc { display: none; }
  .settings-page .save-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; margin: 0; border-radius: 0; border-width: 1px 0 0; padding: 12px 16px; }
  .data-actions { grid-template-columns: 1fr; }
  .workspace.is-settings .editor-inner { padding-bottom: 90px; }
  .settings-page { padding: 4px 0 0; }
  .sp-title { font-size: 26px; }
  .empty-title { font-size: 34px; }
}
@media (max-width: 480px) {
  .grid2 { grid-template-columns: 1fr; }
  .toolbar .btn { flex: 1 1 auto; }
  .tb-end { width: 100%; }
}

.l-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.l-header { position: sticky; top: 0; z-index: 20; background: rgba(18, 17, 16, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.l-header.scrolled { border-bottom-color: var(--line); }
.l-header-in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.l-nav { display: flex; gap: 4px; }
.l-nav a { position: relative; text-decoration: none; color: var(--muted); font-size: 13.5px; padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
@media (hover: hover) { .l-nav a:hover { color: var(--text); } }
.l-nav a.active { color: var(--text); background: var(--panel-2); }

.hero { padding: 56px 0 72px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5.3vw, 76px); line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 22px; }
.hero-title em { color: var(--gold-2); }
.hero-sub { font-size: 18px; color: var(--text-2); max-width: 540px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-fine { font-size: 13px; color: var(--muted); margin: 0; }
.hero-visual { position: relative; height: 560px; }
.hero-docs { position: absolute; inset: 0; }
.hero-docs, .doc-snip, .dlg-body, .mo-frame { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.hero-doc { --s: 0.42; position: absolute; transform-origin: top left; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 2px 4px rgba(0, 0, 0, 0.3); border-radius: 3px; overflow: hidden; transition: transform 0.6s var(--ease); }
.hero-doc--1 { left: 2%; top: 50px; transform: rotate(-6deg) scale(var(--s)); }
.hero-doc--2 { left: calc(98% - 210mm * var(--s)); top: 64px; transform: rotate(5deg) scale(var(--s)); }
.hero-doc--3 { left: calc(50% - 105mm * var(--s) * 1.06); top: 6px; transform: rotate(-0.5deg) scale(calc(var(--s) * 1.06)); }
@media (hover: hover) {
  .hero-visual:hover .hero-doc--1 { transform: translateX(-10px) rotate(-8deg) scale(var(--s)); }
  .hero-visual:hover .hero-doc--2 { transform: translateX(10px) rotate(7deg) scale(var(--s)); }
}
.hero-visual.spread .hero-doc--1 { transform: translateX(-10px) rotate(-8deg) scale(var(--s)); }
.hero-visual.spread .hero-doc--2 { transform: translateX(10px) rotate(7deg) scale(var(--s)); }
.doc-card.lift .snip-sheet { transform: translateY(-4px); }

.l-section { padding: 110px 0; border-top: 1px solid var(--line); }
.l-section--alt { background: var(--bg-2); }
.sec-head { max-width: 640px; margin-bottom: 52px; }
.l-h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; margin: 0 0 16px; }
.l-h2 em { color: var(--gold-2); }
.l-lead { font-size: 17px; color: var(--text-2); margin: 0; max-width: 560px; }

.doc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.doc-card { min-width: 0; display: flex; flex-direction: column; background: var(--bg); transition: background 0.3s var(--ease); }
@media (hover: hover) { .doc-card:hover { background: var(--panel); } }
.dc-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 22px 28px 28px; }
.dc-n { font-size: 11.5px; font-weight: 600; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.doc-card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 10px 0 8px; }
.doc-card p { margin: 0 0 18px; color: var(--text-2); font-size: 14.5px; }
.dc-preview { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--gold); font-size: 13.5px; font-weight: 550; cursor: pointer; }
.dc-preview::after { content: '→'; transition: transform 0.2s var(--ease); }
@media (hover: hover) { .dc-preview:hover { color: var(--gold-2); } }
@media (hover: hover) { .dc-preview:hover::after { transform: translateX(3px); } }

.doc-snip { --k: 0.6; position: relative; height: 236px; overflow: hidden; padding: 18px 18px 0; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.snip-scale { width: 520px; transform: scale(var(--k)); transform-origin: 0 0; }
.snip-sheet.doc-page { width: 520px; height: auto; padding: 22px 26px 30px; border-radius: 4px 4px 0 0; box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.8); transition: transform 0.35s var(--ease); }
.snip-sheet .pg-body { position: static; }
.snip-sheet .pg-body > .atom:first-child .sec { padding-top: 6mm; }
.snip-head { display: flex; align-items: center; justify-content: space-between; gap: 6mm; padding-bottom: 2.5mm; border-bottom: 0.25mm solid var(--line); font-size: 7pt; color: var(--muted); }
.doc-snip::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: linear-gradient(to bottom, rgba(36, 33, 29, 0), var(--panel-2)); pointer-events: none; }
@media (hover: hover) { .doc-card:hover .snip-sheet { transform: translateY(-4px); } }

.dlg-root { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.dlg-scrim { position: absolute; inset: 0; background: rgba(8, 7, 6, 0.72); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.25s var(--ease); }
.dlg { position: relative; display: flex; flex-direction: column; width: min(920px, 100%); max-height: calc(100dvh - 48px); background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8); overflow: hidden; opacity: 0; transform: translateY(12px) scale(0.985); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.dlg-root.open .dlg-scrim { opacity: 1; }
.dlg-root.open .dlg { opacity: 1; transform: none; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.dlg-badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(227, 196, 147, 0.35); border-radius: 999px; padding: 3px 9px; }
.dlg-title { margin: 10px 0 4px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.dlg-note { margin: 0; font-size: 13px; color: var(--muted); max-width: 52ch; }
.dlg-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.dlg-x { width: 36px; height: 36px; font-size: 24px; border: 1px solid var(--line-2); }
.dlg-body { overflow: auto; padding: 24px 16px 32px; background: var(--canvas); outline: none; }
.dlg-body:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
.dlg-pages { width: max-content; margin: 0 auto; display: grid; gap: 20px; }
@media (max-width: 640px) {
  .dlg-root { padding: 0; }
  .dlg { max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .dlg-head { flex-wrap: wrap; padding: 16px; }
  .dlg-title { font-size: 24px; }
  .dlg-tools { width: 100%; justify-content: space-between; order: -1; }
}
@media (prefers-reduced-motion: reduce) { .dlg, .dlg-scrim, .snip-sheet { transition: none; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-family: var(--serif); font-size: 21px; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 22px 0 8px; }
.step p { margin: 0; color: var(--text-2); }

.motion-slot { max-width: 1100px; margin: 0 auto; }
.film { position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #141414; border: 1px solid hsla(0, 0%, 100%, 0.1); }
.film-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #141414; cursor: pointer; }
.film-end { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.film-end[hidden] { display: none; }
.film-big { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
.film.is-poster .film-big { opacity: 1; visibility: visible; transition-delay: 0s; }
.film-big-btn { display: grid; place-items: center; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: #000; cursor: pointer; pointer-events: auto; box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.7), 0 0 0 8px rgba(255, 255, 255, 0.12); transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.film-big-btn:focus-visible { outline: 2px solid #3b82f6; outline-offset: 4px; }
@media (hover: hover) { .film-big-btn:hover { transform: scale(1.06); background: #fff; box-shadow: 0 14px 44px -8px rgba(0, 0, 0, 0.75), 0 0 0 12px rgba(255, 255, 255, 0.16); } }
.film-controls { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
@media (hover: hover) and (pointer: fine) and (min-width: 641px) {
  .film-controls { opacity: 0; transition: opacity 0.2s ease; }
  .film:hover .film-controls, .film:has(:focus-visible) .film-controls { opacity: 1; }
}
.film-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(8px); color: #fff; font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; }
.film-btn:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
@media (hover: hover) { .film-btn:hover { background: rgba(0, 0, 0, 0.8); border-color: rgba(255, 255, 255, 0.3); } }
.film-btn .i-pause, .film-btn.is-playing .i-play { display: none; }
.film-btn.is-playing .i-pause { display: inline; }
.film:not(.is-muted) .film-btn .i-off, .film.is-muted .film-btn .i-on { display: none; }
.hero .film { width: 100%; text-align: left; }
@media (max-width: 640px) { .hero .film { width: auto; margin: 0 -6px; } }
.film-vol { position: relative; display: flex; }
.film-vol-pop { position: absolute; left: 50%; bottom: 100%; padding-bottom: 10px; transform: translate(-50%, 6px); opacity: 0; visibility: hidden; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s; }
.film-vol:has(:focus-visible) .film-vol-pop, .film-vol.is-dragging .film-vol-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
@media (hover: hover) { .film-vol:hover .film-vol-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; } }
.film-vol-panel { display: flex; justify-content: center; box-sizing: border-box; width: 36px; height: 140px; padding: 18px 0; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.film-vol-track { --v: 100%; position: relative; width: 4px; height: 100%; border-radius: 2px; background: rgba(255, 255, 255, 0.22); cursor: pointer; touch-action: none; outline: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.film-vol-track::before { content: ''; position: absolute; inset: -10px -18px; }
.film-vol-fill { position: absolute; left: 0; right: 0; bottom: 0; height: var(--v); border-radius: 2px; background: #3b82f6; }
.film-vol-thumb { position: absolute; left: 50%; bottom: var(--v); width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translate(-50%, 50%); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(59, 130, 246, 0.45); transition: box-shadow 0.15s ease, transform 0.15s ease; }
.film-vol.is-dragging .film-vol-thumb { transform: translate(-50%, 50%) scale(1.15); }
@media (hover: hover) { .film-vol-track:hover .film-vol-thumb { transform: translate(-50%, 50%) scale(1.15); } }
.film-vol-track:focus-visible .film-vol-thumb, .film-vol.is-dragging .film-vol-thumb { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(59, 130, 246, 0.45); }
@media (hover: none), (max-width: 640px) { .film-vol-pop { display: none; } }
@media (max-width: 640px) {
  .film { aspect-ratio: auto; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .film-video { height: auto; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid hsla(0, 0%, 100%, 0.1); }
  .film-end { bottom: auto; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid transparent; box-sizing: border-box; background-clip: padding-box; }
  .film-big { bottom: auto; aspect-ratio: 16 / 9; }
  .film-big-btn { width: 60px; height: 60px; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(255, 255, 255, 0.12); }
  .film-big-btn svg { width: 22px; height: 22px; }
  .film-controls { position: static; justify-content: flex-end; margin-top: 10px; gap: 8px; opacity: 1; }
  .film-btn { height: 44px; min-width: 44px; padding: 0 12px; font-size: 12px; background: rgba(255, 255, 255, 0.06); }
  .film-btn--text span { display: none; }
}

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.compare-col { padding: 26px 28px; border-radius: 14px; border: 1px solid var(--line); }
.compare-col h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 26px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare-col li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.5; }
.compare-col li::before { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.compare-col--old { background: transparent; }
.compare-col--old h3 { color: var(--muted); }
.compare-col--old li { color: var(--muted); }
.compare-col--old li::before { content: '×'; color: var(--muted); background: var(--panel-2); }
.compare-col--new { background: var(--bg); border-color: var(--line-2); }
.compare-col--new li { color: var(--text-2); }
.compare-col--new li::before { content: '✓'; color: var(--gold); background: rgba(227, 196, 147, 0.14); }

.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.price-card { padding: 34px 32px 30px; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%); box-shadow: 0 30px 80px -40px rgba(227, 196, 147, 0.18); }
.price-top { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.price-name { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--gold); }
.price-amount { margin: 10px 0 0; font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--text); }
.price-note { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.includes { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.includes li { position: relative; padding-left: 30px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.includes li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(227, 196, 147, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1' fill='none' stroke='%23e3c493' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }
.includes strong { display: block; color: var(--text); font-weight: 600; }
.includes a, .faq a { color: var(--gold); }
.price-fine { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.faq-title { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 28px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative; font-weight: 550; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 20px; font-weight: 400; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details.closing summary::after { transform: translateY(-50%); }
.faq details p { margin: -4px 0 0; padding-bottom: 18px; color: var(--text-2); font-size: 14.5px; max-width: 52ch; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.faq details p:not(:last-child) { padding-bottom: 10px; }
.faq details.closing p { opacity: 0; transform: translateY(-4px); }
.faq details[open]:not(.closing) p { animation: faqIn 0.35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } }


.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.doc-cards .reveal:nth-child(3n + 2), .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.doc-cards .reveal:nth-child(3n), .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero-visual.reveal { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

@media (max-width: 960px) {
  .pricing { grid-template-columns: 1fr; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { height: 470px; max-width: 560px; }
  .doc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .l-nav { display: none; }
  .l-wrap { padding: 0 16px; }
  .hero { padding: 36px 0 48px; }
  .hero-sub { font-size: 16px; }
  .hero-visual { height: 360px; }
  .hero-doc { --s: 0.3; }
  .doc-cards { grid-template-columns: minmax(0, 1fr); }
  .l-section { padding: 72px 0; }
  .compare { grid-template-columns: 1fr; margin-top: 40px; }
}

body.mode-app {
  --bg: #000;
  --bg-2: #0a0a0a;
  --panel: #111;
  --panel-2: #1f1f1f;
  --field: #181818;
  --line: #232323;
  --line-2: #333;
  --text: #f5f5f5;
  --text-2: #a8a8a8;
  --muted: #808080;
  --gold: #3b82f6;
  --gold-2: #60a5fa;
  --gold-ink: #fff;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-soft: rgba(59, 130, 246, 0.14);
  --accent-soft: rgba(59, 130, 246, 0.14);
  --canvas: #050505;
  --scrim: rgba(0, 0, 0, 0.7);
  --bar-bg: rgba(17, 17, 17, 0.94);
}
body.mode-app .btn-primary { background: var(--blue); color: #fff; }
@media (hover: hover) { body.mode-app .btn-primary:hover { background: var(--blue-hover); } }
body.mode-app .inp { background-color: var(--field); }
body.mode-app .inp:focus { box-shadow: 0 0 0 3px var(--blue-soft); }
body.mode-app .seg { background: var(--bg); }
body.mode-app .page-frame { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 50px -12px rgba(0, 0, 0, 0.9); }
body.mode-app .wm-mark { background: #fff; box-shadow: none; }
body.mode-app .wm-mark::before, body.mode-app .wm-mark::after { background: #000; }

.swipe-dots { display: none; }
@media (max-width: 640px) {
  #landing .l-section { padding: 64px 0; }
  #landing .sec-head { margin-bottom: 28px; }

  #landing .doc-cards, #landing .compare {
    position: relative;
    display: flex; gap: 12px; margin: 0 -16px; padding: 2px 16px 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    background: transparent; border: 0; border-radius: 0; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  #landing .doc-cards::-webkit-scrollbar, #landing .compare::-webkit-scrollbar { display: none; }
  #landing .doc-card { flex: 0 0 84%; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  #landing .doc-cards .reveal { opacity: 1; transform: none; }
  #landing .compare { margin-top: 32px; }
  #landing .compare-col { flex: 0 0 86%; scroll-snap-align: start; }

  .swipe-dots { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
  .swipe-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .swipe-dots button::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--line-2); transition: width 0.25s var(--ease), background 0.25s var(--ease); }
  .swipe-dots button[aria-current='true']::before { width: 18px; background: var(--gold); }

  #landing .steps { gap: 10px; }
  #landing .step { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; align-items: start; padding: 16px 18px; }
  #landing .step-n { grid-row: span 2; width: 36px; height: 36px; font-size: 17px; }
  #landing .step h3 { margin: 3px 0 4px; font-size: 21px; }
  #landing .step p { grid-column: 2; font-size: 14px; }

  #landing .price-card { padding: 26px 20px 22px; }
}

.journey { --j-blue: var(--blue-text, #3b82f6); --j-mono: var(--mono, ui-monospace, monospace); --stage-h: min(calc(100vh - 210px), 700px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.journey-head { max-width: 880px; margin-bottom: 40px; }

.journey-steps { position: relative; display: flex; flex-direction: column; padding: 0 0 calc(var(--stage-h) * 0.42); }
.j-thread { position: absolute; left: 11px; width: 1px; background: #222; pointer-events: none; }
.j-thread i { position: absolute; left: 0; top: 0; width: 1px; height: var(--fill, 0px); background: var(--j-blue); transition: height 0.5s var(--ease); }
.j-step { position: relative; display: grid; grid-template-columns: auto 1fr; align-content: center; column-gap: 14px; min-height: clamp(150px, 23vh, 220px);
  padding: 20px 0 20px 44px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.j-step::before { content: ''; position: absolute; left: 7px; top: var(--node-y, 50%); width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #2a2a2a;
  box-shadow: 0 0 0 5px var(--bg, #080808); transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.j-step.is-done::before { background: color-mix(in srgb, var(--j-blue) 55%, #1a1a1a); }
.j-step[aria-selected='true']::before { background: var(--j-blue); box-shadow: 0 0 0 5px var(--bg, #080808), 0 0 0 8px color-mix(in srgb, var(--j-blue) 28%, transparent); }
.j-n, .j-phase { font-family: var(--j-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #6b6b6b; transition: color 0.35s var(--ease); }
.j-step .j-name { grid-column: 1 / -1; margin: 10px 0 8px; font-family: var(--serif); font-size: clamp(26px, 2.5vw, 38px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; color: #5f5f5f; transition: color 0.35s var(--ease); }
.j-step .j-desc { grid-column: 1 / -1; max-width: 400px; font-size: 15.5px; line-height: 1.5; color: #7a7a7a; transition: color 0.35s var(--ease); }
.j-step[aria-selected='true'] .j-n { color: var(--j-blue); }
.j-step[aria-selected='true'] .j-phase { color: #a3a3a3; }
.j-step[aria-selected='true'] .j-name { color: var(--text, #fff); }
.j-step[aria-selected='true'] .j-desc { color: var(--text-2, #a3a3a3); }
@media (hover: hover) { .j-step:not([aria-selected='true']):hover .j-name { color: #a8a8a8; } }
.j-step:focus-visible { outline: none; }
.j-step:focus-visible .j-name { text-decoration: underline; text-decoration-color: var(--j-blue); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.journey-show { position: sticky; top: max(88px, calc(50vh - var(--stage-h) / 2 - 10px)); }
.j-panel { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 18px 24px; outline: none; }
.j-stage { grid-column: 1 / -1; position: relative; display: block; width: 100%; height: var(--stage-h); padding: 0; border: 0; border-radius: 28px; overflow: hidden;
  background: radial-gradient(110% 80% at 50% 0%, #171717 0%, #0e0e0e 55%, #0b0b0b 100%); touch-action: pan-y; }
.j-pages { position: absolute; inset: 0; text-align: left; }
.j-sheet { position: absolute; left: 50%; top: 0; width: 210mm; transform-origin: 50% 0; border-radius: 3px; overflow: hidden; background: #fff;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s var(--ease); will-change: transform, opacity; }
.j-sheet .doc-page { margin: 0; box-shadow: none; }
.j-sheet::after { content: ''; position: absolute; inset: 0; background: #0b0b0b; opacity: var(--dim, 0); transition: opacity 0.5s var(--ease); pointer-events: none; }
.j-mark { background: color-mix(in srgb, var(--j-blue) 16%, transparent); box-shadow: 0 0 0 0.6mm color-mix(in srgb, var(--j-blue) 60%, transparent); border-radius: 0.6mm; color: inherit; }
.j-caption { display: flex; align-items: center; gap: 24px; min-width: 0; }
.j-count { margin: 0; font-family: var(--j-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #6b6b6b; white-space: nowrap; }
.j-count-n { color: var(--text, #fff); }
.j-mobile-detail { display: none; }

@media (max-width: 1100px) {
  .journey { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; }
}

@media (max-width: 860px) {
  .journey { grid-template-columns: minmax(0, 1fr); gap: 18px; --stage-h: auto; }
  .journey-head { margin-bottom: 26px; }
  .journey-steps { flex-direction: row; gap: 8px; margin: 0 -16px; padding: 2px 16px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
  .journey-steps::-webkit-scrollbar { display: none; }
  .j-thread, .j-step::before, .j-step .j-phase, .j-step .j-desc { display: none; }
  .j-step { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 0; padding: 10px 15px; border-radius: 999px; background: #111; box-shadow: inset 0 0 0 1px #1f1f1f; scroll-snap-align: start; transition: background 0.25s var(--ease); }
  .j-step .j-name { margin: 0; font-family: var(--sans, Inter, sans-serif); font-size: 14.5px; font-weight: 550; letter-spacing: 0; color: #a3a3a3; }
  .j-step[aria-selected='true'] { background: #fff; box-shadow: none; }
  .j-step[aria-selected='true'] .j-name { color: #000; }
  .j-step[aria-selected='true'] .j-n { color: #2563eb; }
  .j-step:focus-visible { outline: 2px solid var(--j-blue); outline-offset: 2px; }
  .j-step:focus-visible .j-name { text-decoration: none; }
  .journey-show { position: static; }
  .j-panel { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .j-stage { height: auto; aspect-ratio: 4 / 5; border-radius: 22px; }
  .j-count { display: none; }
  .j-mobile-detail { display: block; }
  .j-mobile-detail .j-phase { margin: 0 0 6px; font-family: var(--j-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--j-blue); }
  .j-mobile-detail .j-desc { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-2, #a3a3a3); }
}

@media (prefers-reduced-motion: reduce) {
  .j-sheet, .j-sheet::after, .j-thread i, .j-step::before, .j-n, .j-phase, .j-step .j-name, .j-step .j-desc { transition: none; }
}

.hw { --cv: #e8e8e6; --dot: #cdcdca; --sheet: #fff; --sheet-line: #dcdcd9; --ph: #e6e6e3; --ink: #1c1c1e; --mut: #8d8d89;
  --acc: #2563eb; --acc-soft: rgba(37, 99, 235, 0.13); --brand: #b4532a; --seg: #1c1c1e; --seg-ink: #fff; --cursor-fill: #fff;
  --shadow: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.07)) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.05));
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hw-card { display: flex; flex-direction: column; padding: 10px; border-radius: 22px; background: #0c0c0c; box-shadow: inset 0 0 0 1px #1a1a1a; }
.hw-art { position: relative; aspect-ratio: 40 / 26; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  background-color: var(--cv); background-image: radial-gradient(var(--dot) 0.85px, transparent 0.95px); background-size: 10px 10px; }
.hw-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hw-art, .hw-art * { -webkit-user-select: none; user-select: none; }
.hw-body { padding: 22px 16px 18px; }
.hw-n { font: 500 12px var(--mono, ui-monospace, monospace); letter-spacing: 0.12em; color: var(--blue-text, #3b82f6); }
.hw-body h3 { margin: 10px 0 8px; font: 500 24px/1.1 var(--serif); letter-spacing: -0.025em; color: var(--text, #fff); }
.hw-body p { margin: 0; max-width: 330px; font-size: 15px; line-height: 1.5; color: #8a8a8a; }
.hw .reveal:nth-child(2), .hw > .reveal:nth-child(2) { transition-delay: 0.08s; }
.hw > .reveal:nth-child(3) { transition-delay: 0.16s; }

.hw .sh { fill: var(--sheet); stroke: var(--sheet-line); stroke-width: 1; filter: var(--shadow); }
.hw .ph { fill: var(--ph); }
.hw .hair { stroke: var(--ph); stroke-width: 1; }
.hw .ink { fill: var(--ink); font-family: 'Geist', Inter, sans-serif; }
.hw .mut { fill: var(--mut); font-family: 'Geist', Inter, sans-serif; }
.hw .lbl { fill: var(--mut); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 7px; letter-spacing: 0.12em; }
.hw .ser { fill: var(--ink); font-family: 'Instrument Serif', Georgia, serif; }
.hw .brand { fill: var(--brand); }
.hw .acc { fill: var(--acc); }
.hw .wire { fill: none; stroke: var(--acc); stroke-width: 1.3; }
.hw .dash { stroke-dasharray: 3 3; }
.hw .hl { fill: var(--acc-soft); }
.hw .hl-t { fill: var(--acc); font-family: 'Geist', Inter, sans-serif; font-weight: 600; }
.hw .cursor { fill: var(--cursor-fill); stroke: var(--acc); stroke-width: 1.3; stroke-linejoin: round; }
.hw .burst { stroke: var(--acc); stroke-width: 1.3; stroke-linecap: round; }
.hw .seg { fill: var(--seg); }
.hw .seg-t { fill: var(--seg-ink); font-family: 'Geist', Inter, sans-serif; font-weight: 600; }

.hw-1 .brand { transition: fill 0.5s ease 1s; }
.hw-1:not(.in) .brand { fill: #2c407d; }
.s1-ring, .s1-cursor { transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s; }
.hw-1:not(.in) .s1-ring, .hw-1:not(.in) .s1-cursor { transform: translateX(-44px); }
.s1-wire { transition: opacity 0.5s ease 1.1s; }
.hw-1:not(.in) .s1-wire { opacity: 0; }

.s2-wire { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s cubic-bezier(0.45, 0, 0.2, 1) 0.5s; }
.hw-2:not(.in) .s2-wire { stroke-dashoffset: 1; }
.s2-node { transition: opacity 0.3s ease 0.55s; }
.hw-2:not(.in) .s2-node { opacity: 0; }
.s2-doc .hl, .s2-doc .hl-t { transition: opacity 0.45s ease 1.25s; }
.s2-doc:nth-of-type(2) .hl, .s2-doc:nth-of-type(2) .hl-t { transition-delay: 1.4s; }
.s2-doc:nth-of-type(3) .hl, .s2-doc:nth-of-type(3) .hl-t { transition-delay: 1.55s; }
.hw-2:not(.in) .s2-doc .hl, .hw-2:not(.in) .s2-doc .hl-t { opacity: 0; }

.s3-back { transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s; }
.hw-3:not(.in) .s3-back { transform: translate(12px, -8px); }
.s3-cursor { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s; }
.hw-3:not(.in) .s3-cursor { transform: translate(18px, 16px); }
.s3-btn { transform-box: fill-box; transform-origin: center; }
.hw-3.in .s3-btn { animation: hw-press 0.4s ease 1.05s both; }
@keyframes hw-press { 45% { transform: scale(0.95); } }
.s3-burst { transition: opacity 0.2s ease 1.15s; }
.hw-3:not(.in) .s3-burst { opacity: 0; }
.s3-wire { transition: opacity 0.3s ease 1.25s; }
.hw-3:not(.in) .s3-wire { opacity: 0; }
.s3-file { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 1.3s, opacity 0.5s ease 1.3s; }
.hw-3:not(.in) .s3-file { transform: translateY(10px); opacity: 0; }

@media (max-width: 960px) { .hw { gap: 12px; } .hw-body h3 { font-size: 22px; } }
@media (max-width: 860px) {
  .hw { grid-template-columns: minmax(0, 1fr); }
  .hw-art { aspect-ratio: 40 / 25; }
  .hw-body { padding: 18px 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw *, .hw *::before { transition: none !important; animation: none !important; }
  .hw-card:not(.in) * { transform: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .hw-1:not(.in) .brand { fill: var(--brand); }
}

.pricing.pricing-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 64px; align-items: start; }
.pc-frame { padding: 6px; border-radius: 30px; background: linear-gradient(180deg, rgba(37, 99, 235, 0.36), rgba(37, 99, 235, 0.16) 55%, rgba(37, 99, 235, 0.1));
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.5), 0 30px 90px -30px rgba(37, 99, 235, 0.45); }
.pc-strip { margin: 0; padding: 9px 0 11px; text-align: center; font: 500 12px var(--mono, ui-monospace, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: #93b8ff; }
.pc-card { padding: 34px 34px 28px; border-radius: 24px; background: #101010; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 0 1px #1d1d1d; }
.pc-name { margin: 0; font: 500 34px/1 var(--serif); letter-spacing: -0.035em; color: var(--text, #fff); }
.pc-desc { margin: 10px 0 0; max-width: 40ch; font-size: 15.5px; line-height: 1.5; color: #9a9a9a; }
.pc-price { margin-top: 28px; }
.pc-amount { margin: 0 0 6px; display: flex; align-items: baseline; gap: 12px; font: 500 64px/1 var(--serif); letter-spacing: -0.045em; color: var(--text, #fff); }
.pc-amount[hidden] { display: none; }
.pc-was { font-size: 0.4em; letter-spacing: -0.02em; color: #7d7d7d; text-decoration-thickness: 1.5px; text-decoration-color: #9a9a9a; }
.pc-terms { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14.5px; color: #c8c8c8; }
.pc-terms b { font-weight: 600; color: var(--text, #fff); white-space: nowrap; }
.pc-terms i { width: 4px; height: 4px; border-radius: 50%; background: #3a3a3a; }
.pc-terms span { color: #8f8f8f; }
.pc-sep { height: 1px; margin: 24px 0 20px; border: 0; background: #1f1f1f; }
.pc-label { margin: 0 0 16px; font: 500 12px var(--mono, ui-monospace, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: #6f6f6f; }
.pc-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.pc-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; column-gap: 12px; }
.pc-list svg { display: block; }
.pc-list strong { display: block; font-size: 16px; font-weight: 500; color: #f2f2f2; }
.pc-list span { display: block; margin-top: 1px; font-size: 14px; line-height: 1.45; color: #8f8f8f; }
.pc-list a { color: var(--blue-text, #3b82f6); }
.pc-buy { height: 54px; font-size: 16px; }
.pc-fine { margin: 12px 0 0; text-align: center; font-size: 13px; color: #7d7d7d; }
.pricing-grid .faq { position: sticky; top: 120px; padding-top: 40px; }
@media (max-width: 960px) { .pricing.pricing-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; } .pricing-grid .faq { position: static; padding-top: 0; } }
@media (max-width: 640px) {
  .pc-frame { padding: 4px; border-radius: 24px; }
  .pc-strip { padding: 7px 0 9px; font-size: 11px; }
  .pc-card { padding: 26px 20px 20px; border-radius: 20px; }
  .pc-name { font-size: 28px; }
  .pc-amount { font-size: 52px; }
  .pc-list { gap: 12px; margin-bottom: 24px; }
  .pc-list strong { font-size: 14.5px; }
  .pc-list span { font-size: 13.5px; }
}

.film-btn .i-fs-out, .film.is-full .film-btn .i-fs-in { display: none; }
.film.is-full .film-btn .i-fs-out { display: inline; }
.film.is-full { max-width: none; margin: 0; border: 0; border-radius: 0; background: #000; aspect-ratio: auto; overflow: hidden; }
.film.is-full .film-video { height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; object-fit: contain; background: #000; }
.film.is-full .film-end { inset: 0; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; object-fit: contain; background: #000; }
.film.is-full .film-big { inset: 0; aspect-ratio: auto; }
.film.is-full .film-controls { position: absolute; right: 20px; bottom: 20px; margin: 0; opacity: 1; }
