/* ==========================================================================
   Creavidy step screens — port of BeatCut theme.css (step shell, glass, cards,
   buttons, fields, chips, dropzone, tabs, gallery, rail, dock, toast).
   Recoloured with the landing's master plum + lime variables (defined in
   index.html :root). Rules: no brown / peach, blue <= red and blue - green <= 4
   for every colour. Home page CSS lives in index.html and is NOT touched here.
   Element-level rules are scoped under .shell so the hero is never affected.
   ========================================================================== */
:root {
  --glass-line: rgba(255, 255, 255, 0.16);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -20px 40px rgba(10, 8, 10, 0.12), 0 30px 60px -10px rgba(10, 8, 10, 0.55);
  --glass-blur: blur(26px) saturate(150%);
  --field-bg: rgba(23, 20, 23, 0.6);
  --field-line: rgba(240, 238, 233, 0.10);
  --line: rgba(255, 255, 255, 0.12);
  --text-2: rgba(237, 232, 234, 0.88);
  --idle: rgba(240, 238, 233, 0.5);
  --amber: var(--warm);
  --sage: #F0EEE9;
  --err: #ffb1b1;
  --err-bg: rgba(200, 60, 60, 0.3);
  --err-line: rgba(255, 128, 128, 0.8);
  --err-wash: rgba(200, 60, 60, 0.26);
  --alert: #ff6b6b;
  --focus-ring: 0 0 0 4px rgba(237, 232, 234, 0.22);
  --radius: 28px;
  --radius-sm: 16px;
  --rail-w: 72px;
  --main-left: 124px;
  --main-right: 32px;
  --dock-h: 96px;
  --dock-bottom: 26px;
  --dock-total: calc(var(--dock-h) + var(--dock-bottom));
}

/* ---- shell visibility: home vs step ---- */
.shell { display: none; position: fixed; inset: 0; z-index: 5; isolation: isolate; overflow: hidden; color: var(--text); }
body.on-step .shell { display: block; }
body.on-step .home { display: none; }
body.on-step { overflow: hidden; }

.shell *, .shell *::before, .shell *::after { box-sizing: border-box; }
.shell button { font: inherit; color: inherit; cursor: pointer; }
.shell input, .shell textarea, .shell select { font: inherit; color: inherit; }
.shell a { color: var(--text); }
.shell :focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 8px; }
.shell ::selection, ::selection { background: #F0EEE9; color: #171417; }
.shell h1, .shell h2, .shell h3 { margin: 0; }
.shell h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.shell h2 { letter-spacing: -0.03em; }
.shell { -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }

.mono { font-family: var(--font-mono); letter-spacing: 0.08em; }
.eyebrow, .lab { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cloud); }
.mk-page h2 .hl, .mk-page h1 .hl { color: #d1fe17; background: none; -webkit-text-fill-color: currentColor; }
.shell svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- glass: one recipe for every surface ---- */
.shell .gl, .shell .card, .shell .stat, .shell .tile, .shell .shot, .shell .guide-card, .shell .empty,
.shell .toast, .shell .rail, .shell .dock, .shell .mascot-bubble {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* ---- main scroll area ---- */
.shell .main { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--main-left); right: 0; overflow-y: auto; overflow-x: hidden; padding: 30px var(--main-right) calc(var(--dock-total) + 28px) 0; scrollbar-width: none; }
.shell .main::-webkit-scrollbar { display: none; }
.stage-layer { min-height: 100%; transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.stage-layer.leave-fwd { opacity: 0; transform: translateX(-28px) scale(0.99); }
.stage-layer.leave-back { opacity: 0; transform: translateX(28px) scale(0.99); }
.stage-layer.enter-fwd { opacity: 0; transform: translateX(28px) scale(0.99); transition: none; }
.stage-layer.enter-back { opacity: 0; transform: translateX(-28px) scale(0.99); transition: none; }

/* ---- icon rail ---- */
.shell .rail { position: fixed; z-index: 30; left: 24px; top: 24px; bottom: 24px; width: var(--rail-w); border-radius: 36px; display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 8px; background: linear-gradient(180deg, rgba(237, 232, 234, 0.24), rgba(23, 20, 23, 0.4)); }
.rail-logo { width: 42px; height: 42px; margin-bottom: 12px; padding: 0; border: 0; border-radius: 50%; background: none; display: block; flex: none; transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1); }
.rail-logo:hover { transform: scale(1.06); }
.rail-logo img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.rail-item { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: rgba(237, 232, 234, 0.88); text-decoration: none; transition: background var(--ease), color var(--ease), transform var(--ease); flex: none; }
.rail-item:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.rail-item.active { background: var(--warm); color: var(--on-pill); box-shadow: 0 8px 20px rgba(10, 8, 10, 0.4), 0 0 24px rgba(var(--warm-rgb), 0.4); }
.rail-item svg { width: 21px; height: 21px; }
.rail-check { position: absolute; right: 5px; bottom: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok-bg); color: var(--on-pill); display: grid; place-items: center; }
.rail-check svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rail-item.active .rail-check { display: none; }
.rail-sp { flex: 1; }
/* custom tooltip, beside the icon (never native title) */
.rail [data-tip]::after { content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; transform: translate(-6px, -50%); white-space: nowrap; padding: 7px 12px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--text); background: rgba(23, 20, 23, 0.92); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 10px 24px rgba(10, 8, 10, 0.5); opacity: 0; pointer-events: none; transition: opacity var(--ease), transform var(--ease); z-index: 5; }
.rail [data-tip]:hover::after, .rail [data-tip]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

/* ---- step screens ---- */
.step { position: relative; max-width: 1360px; display: flex; flex-direction: column; gap: 22px; min-height: 100%; padding-bottom: 8px; }
.step-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 28px; flex-wrap: wrap; position: relative; z-index: 3; }
.step-title { min-width: 0; flex: 1 1 520px; }
.step-kicker { margin-bottom: 4px; }
.shell .step-head h1 { font-family: var(--font-display); font-size: 104px; line-height: 0.92; font-weight: 600; margin: 16px 0 12px; letter-spacing: -0.065em; text-shadow: 0 10px 50px rgba(10, 8, 10, 0.4); color: var(--text); }
.shell .step-head h1.t-md { font-size: 88px; }
.shell .step-head h1.t-sm { font-size: 70px; }
.blurb { margin: 0; color: var(--muted); max-width: 62ch; font-size: 16px; line-height: 1.45; }
.step-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-bottom: 10px; max-width: 100%; }
.step-mascot { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; }
.step-mascot img { width: 92px; height: auto; display: block; filter: drop-shadow(0 14px 18px var(--mascot-shadow)); user-select: none; -webkit-user-drag: none; }
.step-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.step-actions .hint { flex-basis: 100%; text-align: right; }
.step-body { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.step-foot { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 4px; margin-top: auto; }
.hint { color: var(--muted); font-size: 13px; }

/* speech bubble (mascot hint) */
.shell .mascot-bubble { margin: 0; max-width: 270px; padding: 11px 16px; border-radius: 22px; font-size: 13px; line-height: 1.4; color: var(--text); position: relative; }
.mascot-bubble::after { content: ''; position: absolute; right: -6px; top: 50%; width: 11px; height: 11px; background: rgba(70, 66, 70, 0.8); transform: translateY(-50%) rotate(45deg); border-top: 1px solid var(--glass-line); border-right: 1px solid var(--glass-line); }

/* ---- chips / badges ---- */
.chip { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-radius: 99px; font-size: 14px; font-weight: 500; }
.chip.stale { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); }
.chip.error { background: var(--err-bg); color: var(--err); border: 1px solid var(--err-line); }
.badge { font-family: var(--font-mono); letter-spacing: 0.05em; font-size: 11px; padding: 3px 11px; border-radius: 99px; text-transform: uppercase; }
.badge-tpl { background: rgba(255, 255, 255, 0.16); color: var(--text-2); }
.badge-code { background: rgba(var(--lime-rgb), 0.14); color: var(--lime); border: 1px solid rgba(var(--lime-rgb), 0.4); }
.badge-rev, .badge-ok { background: var(--ok-bg); color: var(--on-pill); font-weight: 600; }
.song-ready { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.song-ready .badge-ok { display: inline-block; padding: 4px 12px; font-family: var(--font-sans); letter-spacing: 0; text-transform: none; font-size: 13px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: center; }
.chip-row .badge { background: rgba(255, 255, 255, 0.14); color: var(--text-2); border: 1px solid var(--glass-line); }

/* ---- cards ---- */
.shell .card { position: relative; border-radius: var(--radius); padding: 24px; transition: border-color var(--ease), box-shadow var(--ease); }
.shell .card:focus-within { border-color: rgba(255, 255, 255, 0.34); }
.extract-card { background: radial-gradient(circle at 12% 40%, rgba(240, 238, 233, 0.28), rgba(237, 232, 234, 0.08) 55%, rgba(23, 20, 23, 0.34)); }
.extract-card p { margin: 8px 0 0; }

/* ---- buttons ---- */
.shell .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.16); padding: 11px 20px; border-radius: 99px; color: var(--text); font-weight: 550; font-size: 14.5px; line-height: 1.2; white-space: nowrap; text-decoration: none; transition: background var(--ease), border-color var(--ease), opacity var(--ease), box-shadow var(--ease), filter var(--ease); }
.shell .btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); border-color: rgba(var(--cloud-rgb), 0.5); }
.shell .btn.primary { background: var(--cloud); color: var(--on-pill); border-color: transparent; font-weight: 600; box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(10, 8, 10, 0.38); }
.shell .btn.danger { color: var(--err); border-color: var(--err-line); background: var(--err-wash); }
.shell .btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.shell .btn.sm { padding: 7px 15px; font-size: 13px; }
.shell .btn.ctl { padding: 8px 15px; font-size: 13px; }
.shell .btn-ghost { background: transparent; border: 0; color: var(--text-2); padding: 5px 10px; border-radius: 99px; }
.shell .btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(23, 20, 23, 0.25); border-top-color: var(--on-pill); animation: spin 0.8s linear infinite; flex: none; }
.spinner.dark { border-color: rgba(255, 255, 255, 0.25); border-top-color: var(--warm); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- fields ---- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.field input, .field textarea, .field select, .input { border: 1px solid var(--field-line); background: var(--field-bg); border-radius: 16px; padding: 11px 15px; color: var(--text); transition: border-color var(--ease), box-shadow var(--ease), background var(--ease); box-shadow: none; }
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: var(--idle); }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus { outline: none; border-color: rgba(var(--lime-rgb), 0.5); box-shadow: none; background: rgba(23, 20, 23, 0.6); }
.field textarea { resize: none; overflow-y: auto; scrollbar-width: none; line-height: 1.5; }
.field textarea::-webkit-scrollbar { display: none; }
.shell select option { background: #282428; color: var(--text); }
.shell input[type='checkbox'], .shell input[type='radio'], .shell progress { accent-color: var(--warm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.span2 { grid-column: 1 / -1; }

/* ---- empty / banners / toasts ---- */
.shell .empty { text-align: center; padding: 40px 20px 36px; color: var(--muted); border-radius: var(--radius); background: radial-gradient(circle at 50% 30%, rgba(var(--warm-rgb), 0.14), rgba(237, 232, 234, 0.08) 55%, rgba(23, 20, 23, 0.34)); }
.empty-art { width: 68px; height: 68px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 22px; background: rgba(255, 255, 255, 0.14); color: var(--text); box-shadow: 0 0 40px rgba(var(--warm-rgb), 0.22); }
.empty-art svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.shell .empty h3 { margin: 0 0 4px; color: var(--text); font-size: 22px; }
.empty p { margin: 0 auto 18px; max-width: 46ch; }
.banner.error { background: var(--err-bg); color: var(--err); padding: 14px 20px; border-radius: 22px; border: 1px solid var(--err-line); }
.soft-warn { margin: 0; padding: 12px 18px; border-radius: 20px; background: var(--warn-bg); color: var(--warn-text); font-size: 13.5px; line-height: 1.5; border: 1px solid var(--warn-border); }
.toasts { position: fixed; right: 24px; bottom: calc(var(--dock-total) + 28px); display: flex; flex-direction: column; gap: 8px; z-index: 95; pointer-events: none; }
.shell .toast, .toasts .toast { color: var(--text); padding: 12px 20px; border-radius: 22px; background: linear-gradient(150deg, rgba(60, 56, 60, 0.9), rgba(23, 20, 23, 0.94)); font-size: 14px; max-width: 420px; border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); animation: toast-in 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- bottom dock (static player mock) ---- */
.shell .dock { position: fixed; z-index: 20; left: var(--main-left); right: var(--main-right); bottom: var(--dock-bottom); height: var(--dock-h); border-radius: 30px; display: flex; align-items: center; gap: 20px; padding: 0 26px; background: var(--glass-bg-strong); }
.dk-art { width: 56px; height: 56px; border-radius: 16px; background: var(--art-bg); display: grid; place-items: center; overflow: hidden; flex: none; }
.dk-art img { width: 46px; height: 46px; }
.dk-tt { width: 170px; flex: none; min-width: 0; }
.dk-tt b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-tt span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-ctl { display: flex; align-items: center; gap: 14px; flex: none; }
.dk-skip { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: rgba(237, 232, 234, 0.88); display: grid; place-items: center; }
.dk-skip:hover { background: rgba(255, 255, 255, 0.14); }
.dk-skip svg { width: 18px; height: 18px; fill: currentColor; }
.shell .dock .pbtn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--cloud); color: var(--on-pill); display: grid; place-items: center; flex: none; box-shadow: 0 8px 24px rgba(10, 8, 10, 0.4), 0 0 26px rgba(var(--warm-rgb), 0.4); transition: transform var(--ease); }
.shell .dock .pbtn:hover { transform: scale(1.06); }
.shell .dock .pbtn svg { width: 20px; height: 20px; fill: var(--on-pill); }
.tl2 { flex: 1; min-width: 0; position: relative; height: 100%; }
.tl-track { position: absolute; inset: 22px 0 22px; display: flex; gap: 4px; }
.tl-seg { position: relative; flex: var(--w, 1); min-width: 0; border-radius: 10px; background: var(--c, #EDE8EA); opacity: 0.88; display: flex; align-items: flex-end; padding: 4px 8px; font: 500 10px var(--font-mono); color: var(--on-pill); letter-spacing: 0.06em; transition: opacity var(--ease), transform var(--ease); }
.tl-seg:hover { opacity: 1; transform: translateY(-2px); }
.tl-ruler { position: absolute; left: 0; right: 0; top: 4px; display: flex; justify-content: space-between; font: 500 10px var(--font-mono); color: var(--idle); letter-spacing: 0.06em; pointer-events: none; }
.playhead { position: absolute; top: 14px; bottom: 8px; left: 38%; width: 2px; background: #fff; border-radius: 1px; pointer-events: none; z-index: 2; box-shadow: 0 0 10px rgba(var(--warm-rgb), 0.95), 0 0 24px rgba(var(--warm-rgb), 0.55); }
.dk-time { font: 500 13px/1.6 var(--font-mono); color: var(--muted); white-space: nowrap; flex: none; text-align: left; }
.dk-time b { color: var(--text); font-weight: 500; }

/* ---- shared helpers ---- */
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.warn-text { color: var(--warn-text); }

/* ---- dropzone ---- */
.dropzone { overflow: hidden; border: 1.5px dashed rgba(255, 255, 255, 0.38); border-radius: var(--radius); padding: 38px 30px; text-align: center; background: rgba(255, 255, 255, 0.07); cursor: pointer; transition: border-color var(--ease), background var(--ease), box-shadow var(--ease), transform var(--ease); }
.dropzone:hover, .dropzone.drag { border-color: var(--warm); background: rgba(var(--warm-rgb), 0.1); box-shadow: 0 0 50px -10px rgba(var(--warm-rgb), 0.45); }
.dropzone.drag { transform: scale(1.015); }
.dz-icon { width: 54px; height: 54px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 255, 255, 0.14); color: var(--text); }
.dz-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dz-title { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.dz-hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
.dz-item { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; text-align: left; }
.dz-item.err { color: var(--err); }
.dz-bar { width: 40%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); overflow: hidden; align-self: center; }
.dz-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--warm), var(--cloud)); border-radius: 3px; }

/* ---- tabs (pill) ---- */
.choice-tabs, .tabs-inner { display: inline-flex; gap: 2px; padding: 4px; background: rgba(255, 255, 255, 0.12); border: 1px solid var(--glass-line); border-radius: 99px; align-self: flex-start; }
.shell .choice, .shell .tab { border: 0; background: transparent; padding: 10px 22px; border-radius: 99px; color: var(--text-2); font-weight: 500; transition: background var(--ease), color var(--ease), box-shadow var(--ease); }
.shell .choice:hover, .shell .tab:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.shell .choice.active, .shell .tab.active { background: var(--cloud); color: var(--on-pill); font-weight: 600; box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(10, 8, 10, 0.38); transition: background-color 200ms ease, transform 200ms ease; }
.shell .choice.active:hover, .shell .tab.active:hover { background: #d1fe17; color: var(--on-pill); transform: translateY(-1px); }
.shell .choice.active[data-tab="yearly"], .shell .choice.active[data-tab="yearly"]:hover { background: #D5FF4D; color: #171417; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 18px rgba(10, 8, 10, 0.38); }
.tab-count { opacity: 0.7; font-family: var(--font-mono); font-size: 11px; margin-left: 6px; }
[data-panel][hidden] { display: none; }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shell .stat { position: relative; border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; min-height: 130px; overflow: hidden; }
.stat-lab { display: flex; align-items: center; gap: 8px; color: rgba(237, 232, 234, 0.7); font-size: 12px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.stat b { font-size: 56px; font-weight: 500; letter-spacing: -0.07em; line-height: 0.95; color: var(--text); margin-top: 8px; }
.stat-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 12px; }
.stat-big b { font-size: 88px; line-height: 0.85; margin: 0; }
.stat-big small { font-size: 18px; color: var(--muted); font-weight: 500; }
.stat-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.stat-chips span { padding: 6px 9px; border-radius: 99px; font: 500 11px var(--font-mono); background: rgba(255, 255, 255, 0.16); color: var(--text); }
.stat-chips span.on { background: var(--cloud); color: var(--on-pill); }
.dots { display: flex; align-items: center; justify-content: space-between; height: 22px; position: relative; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.dots i.on { background: var(--warm); height: 12px; width: 3px; border-radius: 2px; }

/* ---- gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.shell .tile { margin: 0; border-radius: 24px; overflow: hidden; transition: border-color var(--ease), transform var(--ease); }
.tile:hover { border-color: rgba(255, 255, 255, 0.34); transform: translateY(-2px); }
.tile-media { position: relative; aspect-ratio: 16 / 10; background: rgba(23, 20, 23, 0.5); display: grid; place-items: center; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { display: flex; flex-direction: column; padding: 10px 14px 12px; gap: 2px; }
.tile-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; font-weight: 500; }

/* ---- scene / shot rows ---- */
.shots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.shell .shot { display: grid; grid-template-columns: 24px 70px 110px 1fr auto 32px; gap: 14px; align-items: center; border-radius: 24px; padding: 10px 18px; }
.shot-start { display: inline-block; min-width: 52px; font-family: var(--font-mono); font-weight: 500; color: var(--warm); }
.shot-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- look / section cards ---- */
.section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.section-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.section-thumb { position: relative; border-radius: 18px; overflow: hidden; background: rgba(23, 20, 23, 0.5); min-height: 120px; display: grid; place-items: center; border: 1px solid var(--line); }
.section-id { position: absolute; left: 10px; top: 10px; font-family: var(--font-mono); letter-spacing: 0.08em; font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 99px; background: rgba(23, 20, 23, 0.8); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.16); }

/* ---- produce / player ---- */
.player-card { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.player-frame { border-radius: 20px; overflow: hidden; background: #120F12; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.14); max-width: 860px; margin: 0 auto; width: 100%; position: relative; aspect-ratio: 16 / 9; }
.player-empty { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); background: radial-gradient(closest-side at 50% 45%, rgba(var(--warm-rgb), 0.18), transparent), rgba(23, 20, 23, 0.6); }
.outputs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.out-video { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; background: rgba(255, 255, 255, 0.14); border-radius: 99px; color: var(--text); text-decoration: none; border: 1px solid var(--glass-line); }
.checker { margin: 0; border-radius: 18px; overflow: hidden; background: repeating-conic-gradient(rgba(255, 255, 255, 0.16) 0% 25%, rgba(255, 255, 255, 0.05) 0% 50%) 50% / 20px 20px; border: 1px solid var(--line); }

/* ---- step guide ---- */
.guide { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; margin-top: 4px; }
.shell .guide-card { position: relative; text-align: left; color: var(--text); border-radius: var(--radius); padding: 20px 24px; }
.guide-title { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.guide dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.guide dt { color: var(--muted); }
.guide dd { margin: 0; }
.shell a.guide-next { display: block; text-decoration: none; cursor: pointer; transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease); }
.guide-next:hover { border-color: rgba(255, 255, 255, 0.9); transform: translateY(-2px); box-shadow: var(--glass-shadow), 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 40px rgba(237, 232, 234, 0.25); }
.guide-next-row { display: flex; align-items: center; gap: 14px; }
.guide-glyph { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); color: var(--text); flex: none; }
.guide-glyph svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.guide-next-text { display: flex; flex-direction: column; gap: 2px; flex: 1; font-size: 13px; color: var(--muted); }
.guide-next-text strong { color: var(--text); font-size: 17px; letter-spacing: -0.02em; }
.guide-arrow { color: var(--text); width: 22px; height: 22px; display: grid; place-items: center; }
.guide-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- narrow screens: rail becomes a bottom pill strip ---- */
@media (max-width: 900px) {
  :root { --main-left: 0px; --main-right: 0px; --dock-h: 76px; --dock-bottom: 82px; }
  .shell .rail { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; height: 62px; border-radius: 31px; flex-direction: row; justify-content: space-between; padding: 0 8px; gap: 0; }
  .rail-logo { margin: 0; width: 38px; height: 38px; }
  .rail-item { width: 40px; height: 40px; }
  .rail-item svg { width: 19px; height: 19px; }
  .rail-sp { display: none; }
  .rail [data-tip]::after { display: none; }
  .shell .main { padding: 18px 16px calc(var(--dock-total) + 24px) 16px; }
  .shell .dock { left: 12px; right: 12px; bottom: var(--dock-bottom); height: var(--dock-h); padding: 0 16px; gap: 12px; border-radius: 26px; }
  .dk-tt, .dk-skip { display: none; }
  .dk-art { width: 44px; height: 44px; border-radius: 13px; }
  .dk-art img { width: 36px; height: 36px; }
  .shell .dock .pbtn { width: 44px; height: 44px; }
  .dk-time { font-size: 11px; }
  .toasts { right: 12px; left: 12px; align-items: flex-end; }
  .step { gap: 16px; }
  .shell .step-head h1, .shell .step-head h1.t-md, .shell .step-head h1.t-sm { font-size: 54px; }
  .step-mascot { display: none; }
  .step-aside { align-items: flex-start; }
  .step-actions { justify-content: flex-start; }
  .step-actions .hint { text-align: left; }
  .form-grid, .guide { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat b { font-size: 40px; }
  .stat-big b { font-size: 60px; }
  .shell .shot { grid-template-columns: 24px 1fr auto; row-gap: 8px; }
  .section-grid { grid-template-columns: 1fr; }
  .shell .card { padding: 18px; border-radius: 24px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .shell *, .shell *::before, .shell *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Marketing shell (pages/<id>.html) — nav, scroll container, page skeleton.
   Page fragments add their own styles in a top <style> prefixed .pg-<id>.
   ========================================================================== */
body.on-step .toasts { bottom: 24px; }
.toasts { bottom: 24px; }

.mk-shell .mk-nav { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 30; }
.mk-shell .mk-nav a { color: rgba(255, 255, 255, 0.78); }
.mk-shell .mk-nav a:hover { color: #fff; }
.mk-shell .mk-nav a.on { color: #fff; }
.mk-shell .mk-nav a.cta { color: var(--on-pill); }

.mk-shell .mk-main { position: absolute; inset: 0; z-index: 2; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.mk-shell .mk-main::-webkit-scrollbar { display: none; }
.mk-wrap { max-width: 1200px; margin: 0 auto; padding: 128px 32px 96px; padding-top: max(128px, calc(var(--nav-top, 26px) + 63px * var(--hs, 1) + 40px)); } /* the nav scales with the stage (up to 1.4x); the page starts below it */
.mk-wrap.mk-in { animation: mk-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes mk-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.mk-page { display: flex; flex-direction: column; gap: 72px; }
.mk-hero { display: flex; flex-direction: column; gap: 16px; max-width: 820px; padding-top: 24px; }
.mk-hero h1 { font-family: var(--font-display); font-size: clamp(40px, 4.9vw, 70px); line-height: 0.96; font-weight: 600; letter-spacing: -0.065em; text-shadow: 0 10px 50px rgba(10, 8, 10, 0.4); color: var(--text); }
.mk-hero .lead { margin: 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 640px; }
.mk-section { display: flex; flex-direction: column; gap: 24px; }
.mk-section > h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; font-weight: 600; letter-spacing: -0.04em; color: var(--text); }
.mk-section > .sub { margin: -12px 0 0; color: var(--text-2); font-size: 17px; line-height: 1.5; max-width: 640px; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

@media (max-width: 900px) {
  .mk-shell .mk-nav { left: 12px; right: 12px; top: 10px; transform: none; flex-wrap: wrap; justify-content: space-between; row-gap: 2px; }
  .mk-shell .mk-nav a:not(.ghost) { display: flex; }
  .mk-shell .mk-nav a.ghost { display: none; }
  .mk-shell .mk-nav a:not(.cta):not(.hm-lg) { order: 3; padding: 8px 10px; font-size: 13px; }
  .mk-shell .mk-nav a.cta { order: 2; margin-left: auto; }
  .mk-wrap { padding: 132px 20px 72px; }
  .mk-page { gap: 52px; }
}
.shell .btn.cl { background: var(--cloud); color: var(--on-pill); border-color: transparent; font-weight: 600; box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(10, 8, 10, 0.38); }
.shell .btn.cl:hover:not(:disabled), .shell .btn.cl:focus-visible { background: #d1fe17; border-color: transparent; filter: none; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 18px rgba(10, 8, 10, 0.38); }

/* ==========================================================================
   Round 9: readable headings, no gold buttons, plum fields, custom select, footer
   ========================================================================== */
.mk-page h1, .mk-page h2, .mk-page h3, .mk-hero h1, .mk-section > h2 { color: var(--cloud); text-shadow: 0 2px 22px rgba(23, 20, 23, 0.6); }
.mk-page h1 .hl, .mk-page h2 .hl { color: #d1fe17; }
.mk-page .eyebrow { color: rgba(240, 238, 233, 0.72); }
.mk-page details summary:hover { color: var(--cloud); }

/* custom select (data-select) */
.cs { position: relative; }
.cs-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; border: 1px solid var(--field-line); background: var(--field-bg); border-radius: 16px; padding: 11px 15px; color: var(--cloud); transition: border-color var(--ease), background var(--ease); }
.cs-btn:hover { border-color: rgba(240, 238, 233, 0.22); }
.cs-btn:focus-visible, .cs.open .cs-btn { outline: none; border-color: rgba(var(--lime-rgb), 0.5); }
.cs-btn svg { flex: none; width: 14px; height: 14px; stroke: var(--cloud); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; transition: transform 200ms ease; }
.cs.open .cs-btn svg { transform: rotate(180deg); }
.cs-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; background: #282428; border: 1px solid rgba(240, 238, 233, 0.12); border-radius: 16px; box-shadow: 0 18px 40px rgba(10, 8, 10, 0.5); max-height: 260px; overflow-y: auto; scrollbar-width: none; }
.cs-list::-webkit-scrollbar { display: none; }
.cs-list[hidden] { display: none; }
.cs-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 11px; color: var(--cloud); font-size: 14.5px; cursor: pointer; }
.cs-list li:hover, .cs-list li.act { background: #342F34; }
.cs-list li[aria-selected="true"] { color: #d1fe17; font-weight: 600; }
.cs-list li[aria-selected="true"]::after { content: ""; width: 5px; height: 10px; border: solid #d1fe17; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); }

/* footer */
.mk-foot { max-width: 1200px; margin: 0 auto; padding: 0 32px 40px; }
.mk-foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(240, 238, 233, 0.10); color: rgba(240, 238, 233, 0.62); font-size: 13px; }
.mk-foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.mk-foot-brand img { height: 16px; width: auto; display: block; opacity: 0.9; }
.mk-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.mk-foot nav a { color: rgba(240, 238, 233, 0.72); text-decoration: none; transition: color 200ms ease; }
.mk-foot nav a:hover { color: #d1fe17; }
@media (max-width: 900px) { .mk-foot { padding: 0 20px 32px; } }

/* inner pages: same gold light, calmer and smaller so it never sits behind headings */
body.on-step .backdrop { background:
  radial-gradient(46vw 52vh at 0% 22%, rgba(var(--glow-rgb), 0.5), rgba(var(--glow-rgb), 0.16) 45%, transparent 100%),
  radial-gradient(45vw 60vh at 98% 96%, rgba(23, 20, 23, 0.60), transparent 65%),
  linear-gradient(160deg, #383438, #171417 75%); }
body.on-step .backdrop::before { left: -26vw; top: 4vh; width: 52vw; height: 56vh; opacity: 0.55; background: radial-gradient(closest-side, rgba(var(--glow-rgb), 0.5), rgba(var(--glow-rgb), 0.14) 50%, transparent 100%); }


/* Round 10: gold hairline motif. A 1px ring masked out of the card's own border box, lit by a gradient, so it follows border-radius.
   .gold-edge = top edge; .gold-corner-{bl,tr,br,tl} = light wrapping a corner, fading out along both edges. Use sparingly, ~1 per section. */
.gold-edge, .gold-corner-bl, .gold-corner-tr, .gold-corner-br, .gold-corner-tl { position: relative; }
.gold-edge::after, .gold-corner-bl::after, .gold-corner-tr::after, .gold-corner-br::after, .gold-corner-tl::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.gold-corner-bl::after { background: radial-gradient(circle 300px at 0 100%, rgba(var(--warm-rgb), 1), rgba(var(--warm-rgb), 0.45) 55%, transparent 100%); }
.gold-corner-tr::after { background: radial-gradient(circle 300px at 100% 0, rgba(var(--warm-rgb), 1), rgba(var(--warm-rgb), 0.45) 55%, transparent 100%); }
.gold-corner-br::after { background: radial-gradient(circle 300px at 100% 100%, rgba(var(--warm-rgb), 1), rgba(var(--warm-rgb), 0.45) 55%, transparent 100%); }
.gold-corner-tl::after { background: radial-gradient(circle 300px at 0 0, rgba(var(--warm-rgb), 1), rgba(var(--warm-rgb), 0.45) 55%, transparent 100%); }
.gold-edge::after { background: linear-gradient(90deg, transparent 4%, rgba(var(--warm-rgb), 0.8) 50%, transparent 96%) top / 100% 3px no-repeat; }

/* solid gold button (pricing Business card only); same hover as the other fills */
.shell .btn.gold { background: #D4AF37; color: var(--on-pill); border-color: transparent; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 18px rgba(10, 8, 10, 0.38); }
.shell .btn.gold:hover:not(:disabled), .shell .btn.gold:focus-visible { background: #d1fe17; border-color: transparent; transform: translateY(-2px); }

/* Round 11: gold edge on EVERY card, varied placement. JS (index.html, applyGoldEdges) sets data-ge="<variant>" on each card (pages) or injects <i class="ge-i"> (home hero cards, whose ::after is taken);
   it also sets --gr/--gh/--gv (corner radius, horizontal/vertical segment length) from the card size. Same 1px masked ring as Round 10, so it follows border-radius. */
.mk-wrap [data-ge] { position: relative; }
.ge-i, .mk-wrap [data-ge]::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: var(--ge-bg, none);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.ge-i { display: block; }
[data-ge="c-tl"] { --ge-bg: radial-gradient(circle var(--gr, 240px) at 0 0, rgba(var(--warm-rgb), 1), rgba(var(--warm-rgb), 0.45) 55%, transparent 100%); }
[data-ge="c-tr"] { --ge-bg: radial-gradient(circle var(--gr, 240px) at 100% 0, rgba(var(--warm-rgb), 1), rgba(var(--warm-rgb), 0.45) 55%, transparent 100%); }
[data-ge="c-br"] { --ge-bg: radial-gradient(circle var(--gr, 240px) at 100% 100%, rgba(var(--warm-rgb), 1), rgba(var(--warm-rgb), 0.45) 55%, transparent 100%); }
[data-ge="c-bl"] { --ge-bg: radial-gradient(circle var(--gr, 240px) at 0 100%, rgba(var(--warm-rgb), 1), rgba(var(--warm-rgb), 0.45) 55%, transparent 100%); }
[data-ge="c-tl-w"] { --ge-bg: radial-gradient(circle calc(var(--gr, 240px) * 1.7) at 0 0, rgba(var(--warm-rgb), 0.7), rgba(var(--warm-rgb), 0.3) 55%, transparent 100%); }
[data-ge="c-br-w"] { --ge-bg: radial-gradient(circle calc(var(--gr, 240px) * 1.7) at 100% 100%, rgba(var(--warm-rgb), 0.7), rgba(var(--warm-rgb), 0.3) 55%, transparent 100%); }
[data-ge="c-tr-s"] { --ge-bg: radial-gradient(circle calc(var(--gr, 240px) * .55) at 100% 0, rgba(var(--warm-rgb), 1), rgba(var(--warm-rgb), 0.6) 55%, transparent 100%); }
[data-ge="c-bl-s"] { --ge-bg: radial-gradient(circle calc(var(--gr, 240px) * .55) at 0 100%, rgba(var(--warm-rgb), 1), rgba(var(--warm-rgb), 0.6) 55%, transparent 100%); }
[data-ge="top-l"] { --ge-bg: linear-gradient(90deg, transparent 3%, rgba(var(--warm-rgb), 0.9) calc(3% + var(--gh, 220px) * .3), transparent calc(3% + var(--gh, 220px))) top / 100% 4px no-repeat; }
[data-ge="top-r"] { --ge-bg: linear-gradient(270deg, transparent 3%, rgba(var(--warm-rgb), 0.9) calc(3% + var(--gh, 220px) * .3), transparent calc(3% + var(--gh, 220px))) top / 100% 4px no-repeat; }
[data-ge="top-c"] { --ge-bg: linear-gradient(90deg, transparent calc(50% - var(--gh, 220px) / 2), rgba(var(--warm-rgb), 0.95) 50%, transparent calc(50% + var(--gh, 220px) / 2)) top / 100% 4px no-repeat; }
[data-ge="bot-l"] { --ge-bg: linear-gradient(90deg, transparent 3%, rgba(var(--warm-rgb), 0.9) calc(3% + var(--gh, 220px) * .3), transparent calc(3% + var(--gh, 220px))) bottom / 100% 4px no-repeat; }
[data-ge="bot-r"] { --ge-bg: linear-gradient(270deg, transparent 3%, rgba(var(--warm-rgb), 0.9) calc(3% + var(--gh, 220px) * .3), transparent calc(3% + var(--gh, 220px))) bottom / 100% 4px no-repeat; }
[data-ge="bot-c"] { --ge-bg: linear-gradient(90deg, transparent calc(50% - var(--gh, 220px) / 2), rgba(var(--warm-rgb), 0.95) 50%, transparent calc(50% + var(--gh, 220px) / 2)) bottom / 100% 4px no-repeat; }
[data-ge="left-m"] { --ge-bg: linear-gradient(180deg, transparent calc(50% - var(--gv, 160px) / 2), rgba(var(--warm-rgb), 0.9) 50%, transparent calc(50% + var(--gv, 160px) / 2)) left / 4px 100% no-repeat; }
[data-ge="right-m"] { --ge-bg: linear-gradient(180deg, transparent calc(50% - var(--gv, 160px) / 2), rgba(var(--warm-rgb), 0.9) 50%, transparent calc(50% + var(--gv, 160px) / 2)) right / 4px 100% no-repeat; }
[data-ge="left-t"] { --ge-bg: linear-gradient(180deg, transparent 4%, rgba(var(--warm-rgb), 0.85) calc(4% + var(--gv, 160px) * .3), transparent calc(4% + var(--gv, 160px))) left / 4px 100% no-repeat; }
[data-ge="right-b"] { --ge-bg: linear-gradient(0deg, transparent 4%, rgba(var(--warm-rgb), 0.85) calc(4% + var(--gv, 160px) * .3), transparent calc(4% + var(--gv, 160px))) right / 4px 100% no-repeat; }

/* ===== 2026-10-08 fixes: content fades under the fixed nav, sample video lightbox ===== */
.mk-shell .mk-main { --mk-fade: calc(var(--nav-top, 26px) + 63px * var(--hs, 1)); -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent calc(var(--mk-fade) - 24px), #000 calc(var(--mk-fade) + 30px)); mask-image: linear-gradient(to bottom, transparent 0, transparent calc(var(--mk-fade) - 24px), #000 calc(var(--mk-fade) + 30px)); }
@media (max-width: 900px) { .mk-shell .mk-main { -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 92px, #000 140px); mask-image: linear-gradient(to bottom, transparent 0, transparent 92px, #000 140px); } }
.vbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: rgba(12, 10, 12, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vbox[hidden] { display: none; }
.vbox-in { position: relative; width: min(1100px, 100%); }
.vbox-in.tall { width: min(420px, 100%); }
.vbox video { display: block; width: 100%; max-height: calc(100vh - 96px); border-radius: 20px; background: #171417; box-shadow: 0 0 0 1px rgba(240, 238, 233, 0.14), 0 40px 90px -20px rgba(0, 0, 0, 0.8); }
.vbox-x { position: absolute; top: -52px; right: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(240, 238, 233, 0.1); border: 1px solid rgba(240, 238, 233, 0.22); color: #F0EEE9; cursor: pointer; transition: background .2s; }
.vbox-x:hover, .vbox-x:focus-visible { background: rgba(240, 238, 233, 0.2); outline: none; }
.vbox-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.vbox-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 8px; background: #282428; color: #F0EEE9; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.vbox-x:hover .vbox-tip, .vbox-x:focus-visible .vbox-tip { opacity: 1; }

/* ==========================================================================
   Mobile hamburger nav (<=900px). Desktop is untouched: the wrapper is display:contents, the button hidden.
   ========================================================================== */
.nav-links { display: contents; }
.nav-burger { display: none; }
@media (max-width: 900px) {
  .hm-nav, .mk-shell .mk-nav { flex-wrap: nowrap; align-items: center; }
  .hm-nav { position: relative; }
  .mk-shell .mk-nav { position: fixed; }
  .hm-nav a.cta, .mk-shell .mk-nav a.cta { order: 0; margin-left: auto; padding: 10px 14px; font-size: 14px; }
  .hm-nav a.hm-lg, .mk-shell .mk-nav a.hm-lg { padding: 0 8px 0 10px; flex: 0 0 auto; }
  .nav-burger {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: 4px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
    background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.92);
    transition: background 0.2s ease, color 0.2s ease;
  }
  .nav-burger:hover, .nav-burger[aria-expanded="true"] { background: rgba(255, 255, 255, 0.22); color: #fff; }
  .nav-burger:focus-visible { outline: 2px solid rgba(var(--cloud-rgb), 0.9); outline-offset: 2px; }
  .nav-burger svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .nav-burger path { transform-box: view-box; transform-origin: 12px 12px; transition: transform 0.18s ease, opacity 0.12s ease; }
  .nav-burger[aria-expanded="true"] .b1 { transform: translateY(5px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] .b2 { opacity: 0; }
  .nav-burger[aria-expanded="true"] .b3 { transform: translateY(-5px) rotate(-45deg); }

  .nav-links {
    display: flex; flex-direction: column; gap: 2px; position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5;
    padding: 8px; border-radius: 24px;
    /* near-opaque: a backdrop blur nested inside the nav's own blur renders nothing, so the page would show through */
    background: linear-gradient(150deg, rgba(58, 54, 58, 0.97), rgba(23, 20, 23, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(var(--warm-rgb), 0.6), 0 18px 40px rgba(10, 8, 10, 0.5);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.16s ease, transform 0.16s ease; }
  .hm-nav .nav-links a, .mk-shell .mk-nav .nav-links a {
    order: 0; display: flex; align-items: center; min-height: 48px; padding: 0 16px; font-size: 17px; border-radius: 16px;
  }
}
@media (max-width: 900px) and (max-width: 380px) {
  .hm-nav a.cta .icon, .mk-shell .mk-nav a.cta .icon { display: none; }
  .hm-nav a.cta, .mk-shell .mk-nav a.cta { padding: 10px 12px; font-size: 13px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .nav-links, .nav-links.open, .nav-burger path { transition: none; }
}

/* ==========================================================================
   Coloured card headings (contact side cards, privacy, terms): rotate through the accent palette.
   Adjacent headings always differ. Palette: gold + tones of the cream button (#F0EEE9, #DAD3C7). No lime, orange, sage, blue/violet.
   ========================================================================== */
.mk-page .ct-side .card:nth-child(3n+1) h3,
.mk-page .lg-body h2:nth-of-type(3n+1) { color: #D4AF37; }
.mk-page .ct-side .card:nth-child(3n+2) h3,
.mk-page .lg-body h2:nth-of-type(3n+2) { color: #F0EEE9; }
.mk-page .ct-side .card:nth-child(3n) h3,
.mk-page .lg-body h2:nth-of-type(3n) { color: #DAD3C7; }

/* Samples: both formats on one page, each under a coloured heading */
.mk-page .sm-fmt { margin: 0 0 18px; font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.mk-page .sm-fmt.web { color: #D4AF37; }
.mk-page .sm-fmt.mobile { color: #F2D98A; }

/* ==========================================================================
   Nav pill: identical size on every route (desktop). The home nav (scaled stage) and the page nav (fixed)
   laid text out half a pixel apart, so every item gets a fixed width and the same top. Active state only
   changes background/colour, never size.
   ========================================================================== */
@media (min-width: 901px) {
  .hm-nav, .mk-shell .mk-nav { top: 26px; box-sizing: border-box; }
  .hm-nav a { box-sizing: border-box; text-align: center; justify-content: center; }
  .hm-nav a[data-page="how"] { width: 124px; }
  .hm-nav a[data-page="samples"] { width: 92px; }
  .hm-nav a[data-page="pricing"] { width: 81px; }
  .hm-nav a.cta { width: 150px; }
}

/* Page nav takes the home nav's size: the home nav sits in the scaled 1440x900 stage, so the
   page nav uses the same scale (--hs) and the same screen top (--nav-top), both set by fitStage(). */
@media (min-width: 901px) {
  .mk-shell .mk-nav {
    top: var(--nav-top, 26px);
    transform: translateX(-50%) scale(calc(var(--hs, 1) * var(--nav-k)));
    transform-origin: 50% 0;
  }
  /* --nav-k: how much bigger the menu is than its 1440 design size, same on home and pages */
  :root { --nav-k: 1.12; }
  .hm-stage .hm-nav:not(.mk-nav) { transform: translateX(-50%) scale(var(--nav-k)); transform-origin: 50% 0; }
}

/* Active menu tab: gold TEXT only, no pill fill or outline (owner dislikes the outlined pill, 2026-10-10). */
.hm-nav a.on:not(.cta), .mk-shell .mk-nav a.on:not(.cta) {
  background: none;
  color: #F2D46B;
  box-shadow: none;
}
.hm-nav a.on:not(.cta):hover, .mk-shell .mk-nav a.on:not(.cta):hover { background: none; color: #F6E27A; }

/* Menu links: no pill on hover or active, colour only (owner, 2026-10-10). The Book a demo button keeps its fill. */
.hm-nav a:not(.cta):not(.hm-lg):hover, .mk-shell .mk-nav a:not(.cta):not(.hm-lg):hover { background: none; }

/* Round 11 (2026-10-10, owner): no ellipse shapes. Buttons, toggles and the nav are near-rectangles with soft corners.
   The nav frame is wider so the logo has room before the first link. */
:root { --btn-r: 12px; --box-r: 16px; }
.hm-nav, .mk-shell .mk-nav { border-radius: var(--box-r); padding: 7px 7px 7px 10px; }
.hm-nav .hm-lg, .mk-shell .mk-nav .hm-lg { padding: 0 44px 0 14px; }
.hm-nav a, .mk-shell .mk-nav a,
.pill, .shell .btn, .shell .btn-ghost, .out-video,
.shell .choice, .shell .tab { border-radius: var(--btn-r); }
.choice-tabs, .tabs-inner { border-radius: var(--box-r); }

/* ==========================================================================
   Language selector (nav) + CJK font fallbacks
   ========================================================================== */
.lang-sel {
  appearance: none; -webkit-appearance: none; cursor: pointer; color-scheme: dark;
  height: 38px; padding: 0 28px 0 12px; margin-left: 4px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22); font: 500 14px/1 var(--font-sans);
  color: rgba(255, 255, 255, 0.85); background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F0EEE9' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 8px center / 12px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-sel:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.lang-sel:focus-visible { outline: 2px solid rgba(var(--cloud-rgb), 0.9); outline-offset: 2px; }
.lang-sel option { background: #282428; color: #F0EEE9; }
@media (max-width: 900px) { .nav-links .lang-sel { width: 100%; height: 40px; margin: 6px 0 0; } }

/* Inter has no Hangul or Han glyphs: system CJK faces take over, Latin stays Inter */
:root[lang="ko"] { --font-sans: 'Inter', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Noto Sans CJK KR', -apple-system, sans-serif; --font-display: var(--font-sans); }
:root[lang="zh-Hans"] { --font-sans: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', -apple-system, sans-serif; --font-display: var(--font-sans); }
:root[lang="ko"] .eyebrow, :root[lang="zh-Hans"] .eyebrow, :root[lang="ko"] .lab, :root[lang="zh-Hans"] .lab { letter-spacing: 0.04em; }
