/* RevCount. Near-black green ground so the cards carry the colour; emerald for action and money coming in, ember for money going out.
   Unbounded for figures and headings, Instrument Sans for everything you read or press. */
@font-face { font-family: "Unbounded"; src: url(/fonts/Unbounded_500Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url(/fonts/Unbounded_700Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url(/fonts/Unbounded_900Black.ttf); font-weight: 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/InstrumentSans_400Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/InstrumentSans_500Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/InstrumentSans_600SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/InstrumentSans_700Bold.ttf); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #060D0A; --side: #08120D; --surface: #0D1A14; --raised: #14261D; --field: #09140F; --hover: rgba(120, 255, 190, .07);
  --line: rgba(130, 255, 195, .12); --line2: rgba(130, 255, 195, .24);
  --text: #EAF6F0; --mute: #8EA89B; --faint: #5E786B;
  --accent: #34E29B; --accent-2: #22D38A; --accent-3: #B9F15C; --on-accent: #03170D; --accent-soft: rgba(52, 226, 155, .14);
  --pos: #34E29B; --neg: #FF7D5C; --warn: #FFC55A; --pos-soft: rgba(52, 226, 155, .13); --neg-soft: rgba(255, 125, 92, .14); --warn-soft: rgba(255, 197, 90, .14);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); --pop: 0 18px 50px -12px rgba(0, 0, 0, .75), 0 0 0 1px var(--line2);
  --display: "Unbounded", system-ui, sans-serif; --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 18px; --r-s: 11px; --ease: cubic-bezier(.2, .8, .2, 1);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #EEF3F0; --side: #F6F9F7; --surface: #FFFFFF; --raised: #FFFFFF; --field: #F3F7F5; --hover: rgba(8, 40, 26, .05);
  --line: rgba(8, 40, 26, .1); --line2: rgba(8, 40, 26, .2);
  --text: #0A1F15; --mute: #4F665A; --faint: #839A8E;
  --accent: #0A8556; --accent-2: #0B8A59; --accent-3: #4E8F00; --on-accent: #FFFFFF; --accent-soft: rgba(10, 133, 86, .1);
  --pos: #0A8556; --neg: #C93F17; --warn: #8A5A00; --pos-soft: rgba(10, 133, 86, .1); --neg-soft: rgba(201, 63, 23, .1); --warn-soft: rgba(176, 122, 0, .13);
  --shadow: 0 20px 44px -26px rgba(8, 40, 26, .28); --pop: 0 18px 44px -14px rgba(8, 40, 26, .3), 0 0 0 1px var(--line);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: 1.5rem; } h2 { font-size: .95rem; font-weight: 500; } h3 { font-size: .95rem; font-weight: 500; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
.hidden { display: none !important; }
.mute { color: var(--mute); } .small { font-size: .8125rem; } .pos { color: var(--pos); } .neg { color: var(--neg); }
.link { color: var(--accent); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; } .link:hover { text-decoration: underline; }
.ic { flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.label { display: flex; align-items: center; gap: 6px; color: var(--mute); font-size: .8125rem; font-weight: 500; }
.av { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; flex: none; color: #fff; font-weight: 700; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 99; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 10px; } .skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line2); background: transparent; color: var(--text);
  font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent-2); border-color: transparent; color: var(--on-accent); box-shadow: 0 8px 22px -10px var(--accent-2), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent-2) 86%, #fff); }
.btn.danger { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 45%, transparent); } .btn.danger:hover { background: var(--neg-soft); }
.btn.sm { height: 32px; padding: 0 12px; font-size: .8125rem; border-radius: 9px; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 1rem; border-radius: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.working { color: transparent !important; position: relative; }
.btn.working::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--on-accent); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.working:not(.primary)::after { border-color: var(--text); border-right-color: transparent; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: var(--mute); flex: none; transition: background .15s, color .15s; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--hover); color: var(--text); } .icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.spin { display: inline-block; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; } .actions.start { justify-content: flex-start; }

/* ---------- fields ---------- */
.in { width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line2); background: var(--field); color: var(--text); min-width: 0; transition: border-color .15s, box-shadow .15s; }
.in::placeholder { color: var(--faint); }
.in:hover { border-color: var(--faint); }
.in:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.in.big { height: 56px; font: 700 1.5rem var(--display); letter-spacing: -.02em; }
.in-group { display: flex; align-items: center; gap: 8px; } .in-group > .in { flex: 1; } .in-group > .sel { flex: none; }
.in-prefix, .in-suffix { color: var(--mute); font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; } .field-l { font-size: .8125rem; font-weight: 600; color: var(--mute); display: flex; gap: 8px; align-items: center; } .field-l output { color: var(--text); margin-left: auto; }
.field-h { color: var(--faint); font-size: .8125rem; line-height: 1.4; }
.form { display: flex; flex-direction: column; gap: 18px; } .form-2, .form-3 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; align-items: start; } .form-3 { grid-template-columns: repeat(3, 1fr); }
.sel { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line2); background: var(--field); color: var(--text); font-weight: 500; max-width: 100%; min-width: 0; transition: border-color .15s, background .15s; }
.sel:hover { border-color: var(--faint); } .sel[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sel-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; text-align: left; } .sel-t.ph { color: var(--faint); }
.sel > .ic:last-child { color: var(--mute); } .field > .sel { width: 100%; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); max-width: 100%; }
.seg.full { display: flex; } .seg.full button { flex: 1; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: var(--mute); font-weight: 600; font-size: .8125rem; white-space: nowrap; transition: background .18s, color .18s; }
.seg button:hover { color: var(--text); } .seg button:disabled { opacity: .5; cursor: not-allowed; }
.seg button[aria-checked="true"] { background: var(--raised); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 0 0 1px var(--line); }
.seg.tabs { margin-bottom: 18px; }
.toggle { display: flex; align-items: center; gap: 14px; cursor: pointer; } .toggle.off { opacity: .55; cursor: not-allowed; }
.toggle-t { flex: 1; display: flex; flex-direction: column; } .toggle-t b { font-weight: 600; } .toggle-t small { color: var(--faint); font-size: .8125rem; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { width: 42px; height: 24px; border-radius: 99px; background: var(--line2); position: relative; flex: none; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .22s var(--ease); }
.toggle input:checked + i { background: var(--accent-2); } .toggle input:checked + i::after { background: var(--on-accent); } .toggle input:checked + i::after { transform: translateX(18px); }
.toggle input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line2); background: transparent; color: var(--mute); font-weight: 600; font-size: .8125rem; transition: all .15s; }
.chip:hover { color: var(--text); border-color: var(--faint); } .chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.box { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line2); flex: none; color: var(--on-accent); } .box.on { background: var(--accent-2); border-color: var(--accent-2); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: var(--line2); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .5), 0 0 0 4px var(--accent-soft); cursor: grab; }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); cursor: grab; }
.tip { position: relative; display: inline-grid; place-items: center; border: 0; background: none; padding: 0; color: var(--faint); cursor: help; }
.tip:hover, .tip:focus-visible { color: var(--text); }
.tip::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-4px); width: max-content; max-width: min(280px, 70vw); padding: 10px 12px; border-radius: 10px; background: var(--raised); box-shadow: var(--pop);
  color: var(--text); font: 400 .8125rem/1.45 var(--sans); letter-spacing: 0; text-align: left; white-space: normal; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 50; }
.tip:hover::after, .tip:focus::after { opacity: 1; transform: translateX(-50%); }
.head .tip::after, .card-h .tip::after { left: auto; right: -8px; transform: translateY(-4px); } .head .tip:hover::after, .card-h .tip:hover::after, .card-h .tip:focus::after { transform: none; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; background: var(--hover); color: var(--mute); font-size: .75rem; font-weight: 600; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tag.ok { background: var(--pos-soft); color: var(--pos); } .tag.due { background: var(--warn-soft); color: var(--warn); } .tag.err { background: var(--neg-soft); color: var(--neg); } .tag .spin { width: 11px; height: 11px; border-color: currentColor; border-right-color: transparent; }
.delta { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px; border-radius: 99px; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.delta.up { background: var(--pos-soft); color: var(--pos); } .delta.down { background: var(--neg-soft); color: var(--neg); }
.notice, .note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--text); margin-bottom: 16px; font-size: .9rem; }
.fine { display: flex; align-items: center; gap: 7px; color: var(--faint); font-size: .8125rem; }

/* ---------- popovers and menus ---------- */
.pop { position: fixed; z-index: 80; background: var(--raised); border-radius: 14px; box-shadow: var(--pop); padding: 6px; max-height: min(440px, calc(100vh - 16px)); overflow: auto; animation: pop .16s var(--ease); transform-origin: top; }
.pop[data-up="true"] { transform-origin: bottom; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.menu { display: flex; flex-direction: column; min-width: 190px; }
.menu-i { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text); text-align: left; text-decoration: none; font-weight: 500; font-size: .9rem; }
.menu-i:hover, .menu-i:focus-visible { background: var(--hover); outline: 0; } .menu-i:disabled { opacity: .4; cursor: not-allowed; }
.menu-i.danger { color: var(--neg); } .menu-i > .ic:first-child { color: var(--mute); } .menu-i.danger > .ic { color: inherit; } .menu-i > .ic:last-child:not(:first-child) { color: var(--accent); }
.menu-l { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .menu-l small { color: var(--faint); font-size: .78rem; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; } .menu-h { padding: 8px 10px 4px; color: var(--faint); font-size: .75rem; font-weight: 600; }
.range-box { display: flex; flex-direction: column; gap: 10px; padding: 0 6px 6px; } .range-row { display: flex; align-items: center; gap: 8px; } .range-row .sel { height: 36px; font-size: .85rem; }
.cal { width: 252px; padding: 6px; } .cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; } .cal-h b { font-weight: 600; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; } .cal-w { text-align: center; color: var(--faint); font-size: .72rem; font-weight: 600; padding: 4px 0; }
.cal-d { height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: .85rem; font-variant-numeric: tabular-nums; }
.cal-d:hover { background: var(--hover); } .cal-d.today { box-shadow: inset 0 0 0 1px var(--line2); } .cal-d[aria-pressed="true"] { background: var(--accent-2); color: var(--on-accent); font-weight: 700; } .cal-d:disabled { opacity: .25; cursor: not-allowed; }

/* ---------- colour picker ---------- */
.pop-cp { padding: 12px; overflow: visible; }
.cp { width: 236px; display: flex; flex-direction: column; gap: 12px; }
.cp-sv { position: relative; height: 150px; border-radius: 10px; cursor: crosshair; touch-action: none; background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(var(--h, 230) 100% 50%)); }
.cp-hue { position: relative; flex: 1; height: 14px; border-radius: 99px; cursor: pointer; touch-action: none; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.cp-knob { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); pointer-events: none; }
.cp-hue .cp-knob { top: 50%; background: transparent; }
.cp-row { display: flex; align-items: center; gap: 10px; } .cp-chip { width: 30px; height: 30px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line2); flex: none; }
.cp-fields { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 6px; } .cp-fields label { display: flex; flex-direction: column; gap: 3px; text-align: center; color: var(--faint); font-size: .7rem; font-weight: 600; }
.cp-fields .in { height: 32px; padding: 0 4px; text-align: center; font-size: .8125rem; font-variant-numeric: tabular-nums; border-radius: 8px; }
.cp-presets { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; } .cp-presets button { aspect-ratio: 1; border-radius: 6px; border: 0; box-shadow: inset 0 0 0 1px var(--line2); transition: transform .12s; } .cp-presets button:hover { transform: scale(1.18); }
.colorbtn { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px 0 6px; border-radius: 11px; border: 1px solid var(--line2); background: var(--field); font-weight: 600; font-size: .85rem; font-variant-numeric: tabular-nums; }
.colorbtn:hover { border-color: var(--faint); } .cb-chip { width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.colorbtn.compact { padding: 0; width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; justify-content: center; } .colorbtn.compact .cb-chip { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line2); }

/* ---------- sheets, dialogs, toasts ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; }
.scrim { position: absolute; inset: 0; background: rgba(2, 8, 5, .62); backdrop-filter: blur(3px); opacity: 0; transition: opacity .24s; }
.sheet-p { position: relative; width: min(460px, 100%); height: 100%; background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--shadow); transform: translateX(40px); opacity: 0; transition: transform .28s var(--ease), opacity .2s; outline: 0; }
.sheet.open .scrim { opacity: 1; } .sheet.open .sheet-p { transform: none; opacity: 1; }
.sheet.center { align-items: center; justify-content: center; padding: 16px; } .sheet.center .sheet-p { height: auto; max-height: 100%; width: min(480px, 100%); border-radius: 22px; transform: translateY(16px) scale(.97); } .sheet.center .sheet-p.narrow { width: min(420px, 100%); }
.sheet.center.open .sheet-p { transform: none; }
.sheet-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 6px; } .sheet-h h2 { font-size: 1.1rem; font-weight: 700; } .sheet-h p { color: var(--mute); margin-top: 6px; font-size: .9rem; }
.sheet-b { flex: 1; overflow: auto; padding: 16px 22px 22px; } .sheet-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }
.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 12px 0; } .done .copy { width: 100%; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast { display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); animation: rise .25s var(--ease); transition: opacity .25s, transform .25s; }
.toast.err { background: #D8431A; color: #fff; } .toast.out { opacity: 0; transform: translateY(8px); }
@keyframes rise { from { opacity: 0; filter: blur(8px); transform: scale(.9); } }

/* ---------- rolling counter ---------- */
.odo { display: inline-flex; white-space: nowrap; font-variant-numeric: tabular-nums; }
.od-d { display: inline-block; height: 1.12em; overflow: hidden; } .od-c { display: inline-block; height: 1.12em; line-height: 1.12; }
.od-col { display: flex; flex-direction: column; transition: transform 1s var(--ease); will-change: transform; } .od-col span { height: 1.12em; line-height: 1.12; text-align: center; }

/* ---------- app shell ---------- */
body.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.boot, .fatal { grid-column: 1 / -1; min-height: 100vh; display: grid; place-content: center; gap: 14px; text-align: center; padding: 24px; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px 14px; background: var(--side); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px; font: 700 1.02rem var(--display); letter-spacing: -.03em; text-decoration: none; color: var(--text); }
.mark { display: inline-flex; align-items: flex-end; gap: 2.5px; width: 28px; height: 28px; padding: 7px; border-radius: 9px; background: var(--accent-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.mark i { flex: 1; border-radius: 1.5px; background: var(--on-accent); } .mark i:nth-child(1) { height: 55%; } .mark i:nth-child(2) { height: 100%; } .mark i:nth-child(3) { height: 75%; }
.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 26px; }
.nav a, .nav-s { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px; color: var(--mute); text-decoration: none; font-weight: 600; transition: background .15s, color .15s; }
.nav a:hover, .nav-s:hover { background: var(--hover); color: var(--text); }
.nav a[aria-current="page"], .nav-s[aria-current="page"] { background: var(--accent-soft); color: var(--text); } .nav a[aria-current="page"] .ic { color: var(--accent); }
.side-b { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.account { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: transparent; text-align: left; transition: background .15s; }
.account:hover, .account[aria-expanded="true"] { background: var(--hover); } .account-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; } .account-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .account-t small { color: var(--faint); }
.account.mini { width: auto; padding: 3px; border-radius: 50%; }
.main { min-width: 0; display: flex; flex-direction: column; }
.mtop, .tabbar { display: none; }
.demo { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: linear-gradient(90deg, rgba(34, 211, 138, .22), rgba(185, 241, 92, .16), rgba(34, 211, 138, .22)); font-weight: 600; font-size: .9rem; text-align: center; }
#view { width: 100%; max-width: 1240px; margin: 0 auto; padding: 30px 32px 64px; outline: 0; transition: opacity .2s; } #view.busy { opacity: .55; pointer-events: none; }
.view.enter { animation: enter .35s var(--ease); } @keyframes enter { from { opacity: 0; filter: blur(10px); } }
.head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; min-height: 40px; } .head h1 { margin-right: auto; } .head-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .head .sel { background: var(--surface); max-width: 240px; }
.skel { display: flex; flex-direction: column; gap: 18px; } .skel i { display: block; border-radius: var(--r); background: linear-gradient(100deg, var(--surface) 40%, var(--raised) 50%, var(--surface) 60%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.sk-h { width: 180px; height: 34px; border-radius: 10px !important; } .sk-g { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; } .sk-g i { height: 340px; } .sk-w { height: 180px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- cards and lists ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; min-width: 0; }
.card + .card, .grid + .card, .card + .grid { margin-top: 18px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; min-height: 28px; } .card-h h2 { margin-right: auto; }
.grid { display: grid; gap: 18px; } .grid > .card { margin: 0; } .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; margin-top: 18px; }
.grid.home { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "hero month" "kpis kpis" "chans bd"; align-items: start; }
.hero { grid-area: hero; align-self: stretch; } .month { grid-area: month; align-self: stretch; display: flex; flex-direction: column; } .kpis { grid-area: kpis; } .chans { grid-area: chans; } .bd { grid-area: bd; }
.figure { font: 700 clamp(2.3rem, 4.6vw, 3.6rem)/1.1 var(--display); letter-spacing: -.045em; margin: 6px 0 10px; }
.hero-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 24px; margin-bottom: 18px; font-size: .9rem; }
.chart { position: relative; touch-action: pan-y; } .chart svg { display: block; width: 100%; height: auto; overflow: visible; } .chart text { fill: var(--faint); font: 500 11px var(--sans); } .chart .gl { stroke: var(--line); stroke-width: 1; } .chart .band { fill: var(--hover); }
.chart .col { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .7s var(--ease) both; animation-delay: calc(var(--i) * 9ms); } @keyframes grow { from { transform: scaleY(0); } }
.chart-tip { position: absolute; transform: translate(-50%, -100%); min-width: 150px; padding: 10px 12px; border-radius: 12px; background: var(--raised); box-shadow: var(--pop); pointer-events: none; display: flex; flex-direction: column; gap: 3px; font-size: .8125rem; z-index: 5; }
.chart-tip b { font: 700 1rem var(--display); letter-spacing: -.02em; } .chart-tip i { display: flex; align-items: center; gap: 7px; font-style: normal; color: var(--mute); } .chart-tip i span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; } .chart-tip i span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--mute); font-size: .8125rem; } .legend > span { display: inline-flex; align-items: center; gap: 7px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); } .kpi b { font: 700 1.45rem var(--display); letter-spacing: -.03em; }
.pace { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; } .pace > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; } .pace-n { font: 700 1.5rem var(--display); letter-spacing: -.03em; }
.ring { position: relative; width: 76px; height: 76px; flex: none; display: grid; place-items: center; } .ring svg { position: absolute; inset: 0; transform: rotate(-90deg); } .ring circle { fill: none; stroke-width: 8; } .ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dashoffset: var(--off); animation: ring 1.1s var(--ease) both; } @keyframes ring { from { stroke-dashoffset: var(--full); } } .ring b { font-size: .85rem; font-weight: 700; }
.lines { margin: 0 0 18px; display: flex; flex-direction: column; flex: 1; } .lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); } .lines dt { color: var(--mute); } .lines dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.lines .total { margin-top: auto; border-top: 1px solid var(--line2); padding-top: 12px; } .lines .total dt { color: var(--text); font-weight: 600; } .lines .total dd { font: 700 1.05rem var(--display); letter-spacing: -.02em; }
.rows { display: flex; flex-direction: column; } .row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; } .rows > .row:first-child { border-top: 0; padding-top: 2px; } .rows > .row:last-child { padding-bottom: 2px; }
.row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .row-t > b, .row-t > a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .row-t > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-n { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; flex: none; min-width: 84px; font-variant-numeric: tabular-nums; } .row-n b { font-weight: 700; } .row-d { width: 72px; display: flex; justify-content: flex-end; flex: none; }
.spark { width: 96px; height: 28px; flex: none; } .spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.badge { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--hover); color: var(--mute); flex: none; } .badge.income { background: var(--pos-soft); color: var(--pos); } .badge.expense { background: var(--neg-soft); color: var(--neg); }
.bars { display: flex; flex-direction: column; gap: 14px; } .bar-r { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; } .bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bar-v { font-weight: 600; font-variant-numeric: tabular-nums; } .bar-r .meter { grid-column: 1 / -1; }
.meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; } .meter.thin { height: 4px; margin-top: 6px; max-width: 420px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transform-origin: left; animation: fill .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); } @keyframes fill { from { transform: scaleX(0); } }
.bd-body { margin-top: 18px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 34px 16px; } .empty p { color: var(--mute); max-width: 44ch; } .empty .btn { margin-top: 6px; }
.empty-i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--accent-soft); color: var(--accent); } .empty-i.ok { background: var(--pos-soft); color: var(--pos); }
.checklist { margin-bottom: 18px; background: linear-gradient(120deg, var(--accent-soft), transparent 60%), var(--surface); } .check-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.check-step { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .875rem; background: var(--surface); transition: border-color .15s, transform .15s var(--ease); } .check-step:hover { border-color: var(--accent); transform: translateY(-1px); } .check-step.done { color: var(--faint); text-decoration: line-through; }

/* ---------- welcome ---------- */
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding: 24px 0; min-height: calc(100vh - 160px); }
.welcome-art { position: relative; height: 480px; } .welcome-art img { position: absolute; width: 250px; border-radius: 18px; box-shadow: var(--shadow); } .welcome-art img:first-child { left: 8%; top: 0; transform: rotate(-7deg); } .welcome-art img:last-child { right: 8%; bottom: 0; transform: rotate(6deg); }
.welcome-t { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; } .welcome-t h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); } .lede { color: var(--mute); font-size: 1.05rem; max-width: 52ch; }
.steps { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; } .steps li { display: flex; gap: 14px; } .steps p { color: var(--mute); font-size: .9rem; }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; flex: none; }

/* ---------- videos ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 180px; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line2); background: var(--field); color: var(--mute); } .search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; color: var(--text); } .search input::placeholder { color: var(--faint); }
.rank { width: 22px; text-align: right; color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; flex: none; } .thumb { width: 96px; aspect-ratio: 16 / 9; border-radius: 9px; object-fit: cover; flex: none; background: var(--raised); }
.vid-a { text-decoration: none; } .vid-a:hover { color: var(--accent); } .row-t .dot { margin-right: 6px; }

/* ---------- money ---------- */
.eq-card { margin-bottom: 0; } .eq { display: flex; align-items: stretch; gap: 10px; margin: 14px 0 12px; flex-wrap: wrap; }
.eq-t { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: var(--field); border: 1px solid var(--line); } .eq-t b { font: 700 1.25rem var(--display); letter-spacing: -.03em; }
.eq-t.total { background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); border-color: transparent; color: var(--on-accent); flex: 1.3; } .eq-t.total .label { color: inherit; opacity: .75; } .eq-t.total.neg { color: #fff; } .eq-t.total b { font-size: 1.6rem; } .eq-t.total.neg { background: linear-gradient(135deg, #C93F17, #FF7D5C); }
.eq-op { align-self: center; color: var(--faint); font: 500 1.3rem var(--display); }
.stepper { display: flex; align-items: center; gap: 6px; margin-right: auto; } .stepper b { font: 700 1.05rem var(--display); letter-spacing: -.02em; min-width: 170px; text-align: center; }
.owe { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; } .owe b { font: 700 1.3rem var(--display); letter-spacing: -.03em; }
.partner .row-n { gap: 5px; }

/* ---------- channels ---------- */
.grid.tiles { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); margin-bottom: 14px; }
.channel { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; transition: border-color .2s, transform .2s var(--ease); } .channel:hover { border-color: var(--line2); }
.channel-h { display: flex; align-items: center; gap: 12px; width: 100%; } .channel-h b { font-size: 1.02rem; }
.channel-f { width: 100%; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; } .people { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.person { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 4px 0 5px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); font-size: .8125rem; font-weight: 500; max-width: 100%; }
.person em { font-style: normal; color: var(--warn); font-size: .72rem; } .person button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 0; background: transparent; color: var(--faint); } .person button:hover { background: var(--neg-soft); color: var(--neg); }

/* ---------- card studio ---------- */
.studio { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 18px; align-items: start; }
.studio-c { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - 36px); overflow: auto; } .pane { display: flex; flex-direction: column; gap: 20px; animation: enter .25s var(--ease); }
.studio-p { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); min-height: 600px;
  background: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 22px 22px, var(--side); }
.stage { position: relative; display: grid; place-items: center; flex: 1; width: 100%; min-height: 300px; padding: 16px 0; perspective: 1300px; }
.frame { position: relative; width: fit-content; max-width: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); transform-style: preserve-3d; will-change: transform;
  transform: translateY(0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.frame.up { transform: translateY(-12px) scale(1.025) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .14s ease-out, box-shadow .3s; box-shadow: 0 60px 90px -36px rgba(0, 0, 0, .85); }
.stage img, .stage canvas { display: block; max-width: 100%; transition: opacity .25s, filter .25s; }
.shine { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity .3s; }
.shine::after { content: ""; position: absolute; inset: -20% -60%; background: linear-gradient(105deg, transparent 45%, rgba(255, 255, 255, .55) 47.5%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, .55) 52.5%, transparent 55%); transform: translateX(-100%); }
.frame.sweep .shine { opacity: 1; } .frame.sweep .shine::after { animation: sweep 1.35s cubic-bezier(.4, 0, .2, 1); } .frame.sweep:not(.up) .shine { transition: opacity .3s 1.2s; opacity: 0; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.stage.fmt-story img, .stage.fmt-story canvas { height: min(64vh, 660px); width: auto; } .stage.fmt-square .frame { width: min(100%, 520px); } .stage.fmt-landscape .frame { width: min(100%, 780px); } .stage.fmt-square img, .stage.fmt-square canvas, .stage.fmt-landscape img, .stage.fmt-landscape canvas { width: 100%; height: auto; }
.frame .next { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
/* while a card is being drawn: the old one softens and a band of light keeps passing over it */
.frame.gen > img:first-child, .frame.gen > canvas { filter: blur(3px) saturate(.75) brightness(.82); transform: scale(1.012); }
.frame > img:first-child, .frame > canvas { transition: filter .5s var(--ease), transform .5s var(--ease); }
.gen-band { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 46%, rgba(255, 255, 255, .34) 50%, rgba(255, 255, 255, .22) 54%, transparent 70%); background-size: 260% 100%; mix-blend-mode: screen; }
.frame.gen .gen-band { opacity: 1; animation: gen-band 1.25s linear infinite; } @keyframes gen-band { from { background-position: 130% 0; } to { background-position: -130% 0; } }
/* the finished card resolves out of a soft-focus, over-bright version of itself behind a feathered wipe */
.frame.reveal .next { opacity: 1; animation: develop 1s cubic-bezier(.22, .9, .25, 1) both; -webkit-mask: linear-gradient(105deg, #000 42%, transparent 58%) 0 0 / 340% 100% no-repeat; mask: linear-gradient(105deg, #000 42%, transparent 58%) 0 0 / 340% 100% no-repeat; }
@keyframes develop { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; filter: blur(18px) saturate(1.7) brightness(1.35); transform: scale(1.05); } 55% { filter: blur(3px) saturate(1.2) brightness(1.08); } to { -webkit-mask-position: 0 0; mask-position: 0 0; filter: none; transform: none; } }
.frame.morph > img:first-child { animation: morph .95s cubic-bezier(.22, .9, .25, 1) both; } @keyframes morph { from { opacity: 0; filter: blur(26px) saturate(1.8) brightness(1.4); transform: scale(1.07); } 60% { opacity: 1; filter: blur(4px) saturate(1.2) brightness(1.08); } } 
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpl { display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 9px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--field); text-align: left; transition: border-color .15s, transform .15s var(--ease); }
.tpl:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--faint); } .tpl[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .tpl:disabled { opacity: .5; cursor: not-allowed; }
.tpl img { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; object-position: center 62%; border-radius: 8px; } .tpl b { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: .85rem; padding: 4px 3px 0; } .tpl small { color: var(--faint); font-size: .72rem; line-height: 1.3; padding: 0 3px; }
.accent-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .dots { display: flex; gap: 8px; } .dots button { width: 24px; height: 24px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: transform .12s; } .dots button:hover { transform: scale(1.18); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.swatch { aspect-ratio: 1; border-radius: 12px; border: 0; background: var(--field) center / cover; box-shadow: inset 0 0 0 1px var(--line2); transition: transform .15s var(--ease), box-shadow .15s; }
.swatch:hover:not(:disabled) { transform: scale(1.05); } .swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); } .swatch:disabled { opacity: .5; cursor: not-allowed; }
.swatch.own { grid-column: span 2; aspect-ratio: auto; height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: .8125rem; color: var(--mute); border: 1.5px dashed var(--line2); box-shadow: none; } .swatch.own:hover:not(:disabled) { color: var(--text); border-color: var(--accent); transform: none; } .swatch.own[aria-pressed="true"] { border-style: solid; border-color: var(--accent); color: var(--text); background: var(--accent-soft); box-shadow: none; }
.copy .in { font-size: .8125rem; height: 36px; } .link-row { align-items: flex-start; } .link-row .copy { margin-top: 8px; }

/* ---------- settings ---------- */
.settings { display: flex; flex-direction: column; gap: 18px; max-width: 860px; } .settings .card { margin: 0; }
.set { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; } .set-h { display: flex; flex-direction: column; gap: 6px; } .set-h h2 { font-weight: 700; } .set-h p { font-size: .875rem; overflow-wrap: anywhere; } .set-b { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.plan { display: flex; flex-direction: column; gap: 4px; } .plan b { font: 700 1.2rem var(--display); }

/* ---------- small screens ---------- */
@media (max-width: 1080px) {
  .grid.home { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "kpis" "month" "chans" "bd"; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio { grid-template-columns: minmax(0, 1fr); } .studio-p { order: -1; min-height: 0; } .studio-c { position: static; max-height: none; } .stage.fmt-story img, .stage.fmt-story canvas { height: min(56vh, 560px); }
  .grid.two { grid-template-columns: minmax(0, 1fr); } .check-steps { grid-template-columns: 1fr 1fr; } .welcome { grid-template-columns: 1fr; } .welcome-art { display: none; }
}
@media (max-width: 860px) {
  body.app { display: block; padding-bottom: calc(64px + env(safe-area-inset-bottom)); } .side { display: none; }
  .mtop { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--side) 92%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 12px; color: var(--faint); text-decoration: none; font-size: .68rem; font-weight: 600; } .tabbar a[aria-current="page"] { color: var(--accent); }
  #view { padding: 18px 14px 40px; } .card { padding: 16px; border-radius: 16px; } .head h1 { width: 100%; margin: 0; font-size: 1.3rem; } .head-r { width: 100%; } .head-r .sel { flex: 1 1 140px; max-width: none; } .head-r .btn.primary { flex: 1 1 100%; } .card-h { flex-wrap: wrap; } .owe { width: 100%; justify-content: flex-start; }
  .set { grid-template-columns: 1fr; gap: 14px; } .form-3 { grid-template-columns: 1fr; } .hide-s, .spark, .row-d { display: none; } .thumb { width: 72px; } .rank { display: none; }
  .sheet { align-items: flex-end; } .sheet-p { width: 100%; height: auto; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(40px); } .sheet.center { padding: 0; align-items: flex-end; } .sheet.center .sheet-p { width: 100%; border-radius: 22px 22px 0 0; }
  .toasts { bottom: calc(78px + env(safe-area-inset-bottom)); } .eq-op { display: none; } .eq-t { min-width: calc(50% - 5px); } .grid.tiles { grid-template-columns: 1fr; } .stepper b { min-width: 130px; } .partner { flex-wrap: wrap; } .partner .row-t { min-width: 60%; }
  .check-steps { grid-template-columns: 1fr; } .form-2 { grid-template-columns: 1fr; } .kpi b { font-size: 1.2rem; } .kpi { padding: 14px; } .kpis { gap: 12px; }
}

/* ---------- public pages: shared cards, profiles, legal, errors ---------- */
body.public { min-height: 100vh; display: flex; flex-direction: column; }
.pub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 1.02rem var(--display); letter-spacing: -.03em; text-decoration: none; color: var(--text); }
.pub-main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 40px); } .pub-main > h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 10px; } .pub-main a { color: var(--accent); }
.pub-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; } .pub-img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); } .pub-img.fmt-story { max-width: 360px; justify-self: center; }
.pub-facts h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); } .pub-facts .lede { margin: 8px 0 22px; }
.facts { width: 100%; border-collapse: collapse; } .facts th, .facts td { padding: 11px 0; border-top: 1px solid var(--line); text-align: left; } .facts th { color: var(--mute); font-weight: 500; } .facts td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.verify { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--pos-soft); color: var(--text); font-size: .9rem; }
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 26px; } .pub-grid a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); font-weight: 600; } .pub-grid img { border-radius: 14px; border: 1px solid var(--line); transition: transform .2s var(--ease); } .pub-grid a:hover img { transform: translateY(-3px); }
.pub-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 22px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); color: var(--faint); font-size: .8125rem; } .pub-foot a { color: inherit; text-decoration: none; } .pub-foot a:hover { color: var(--text); }
.legal { max-width: 70ch; } .legal h1 { font-size: 2rem; margin-bottom: 18px; } .legal h2 { font-size: 1.05rem; font-weight: 700; margin: 30px 0 8px; } .legal p { color: var(--mute); margin-bottom: 12px; }
@media (max-width: 760px) { .pub-card { grid-template-columns: 1fr; } }

/* ---------- landing ---------- */
html:has(body.landing) { overflow-x: hidden; } body.landing { overflow-x: hidden; } .l-hero { overflow-x: clip; }
.l-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.l-nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s; } .l-nav.stuck { border-color: var(--line); }
.l-nav .l-wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; } .l-nav-r { display: flex; align-items: center; gap: 22px; } .l-nav-r a:not(.btn) { color: var(--mute); text-decoration: none; font-weight: 600; font-size: .9rem; } .l-nav-r a:not(.btn):hover { color: var(--text); }
.l-err { background: #D8431A; color: #fff; text-align: center; padding: 12px 16px; font-weight: 600; }
.l-hero { position: relative; padding: clamp(36px, 7vw, 84px) 0 clamp(48px, 8vw, 96px); }
.l-glow { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none; filter: blur(70px); opacity: .75;
  background: radial-gradient(38% 42% at 72% 38%, var(--g1, #12B076) 0, transparent 70%), radial-gradient(30% 36% at 88% 70%, var(--g2, #FF5A1F) 0, transparent 70%), radial-gradient(34% 34% at 8% 6%, rgba(34, 211, 138, .55) 0, transparent 70%);
  animation: drift 16s ease-in-out infinite alternate; transition: --g1 .8s, --g2 .8s; }
@property --g1 { syntax: "<color>"; inherits: true; initial-value: #12B076; } @property --g2 { syntax: "<color>"; inherits: true; initial-value: #FF5A1F; }
@keyframes drift { to { transform: translate3d(-4%, 5%, 0) scale(1.08); } }
.l-hero .l-wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.l-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 900; line-height: 1.04; letter-spacing: -.045em; } .l-hero h1 span { display: block; } .l-hero h1 span + span { background: linear-gradient(95deg, #34E29B, #B9F15C, #34E29B); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.l-hero .lede { margin: 22px 0 30px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: #BCD3C7; max-width: 50ch; }
.l-cta { display: flex; flex-wrap: wrap; gap: 12px; } .l-cta .btn.ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); } .l-cta .btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.g-ic { width: 18px; height: 18px; background: #fff; border-radius: 50%; padding: 2px; }
.l-fine { margin-top: 20px; color: var(--faint); font-size: .8125rem; max-width: 56ch; } .l-fine a { color: var(--mute); }
.l-in > * { animation: l-in .9s var(--ease) both; } .l-in > *:nth-child(2) { animation-delay: .08s; } .l-in > *:nth-child(3) { animation-delay: .16s; } .l-in > *:nth-child(4) { animation-delay: .24s; }
@keyframes l-in { from { opacity: 0; filter: blur(16px); } }
.l-demo { display: flex; flex-direction: column; align-items: center; gap: 20px; animation: l-card 1.1s var(--ease) .15s both; } @keyframes l-card { from { opacity: 0; filter: blur(24px) saturate(1.6); transform: perspective(1200px) rotateY(-38deg) scale(.9); } }
.l-tilt { perspective: 1400px; } .l-card { position: relative; width: min(330px, 74vw); aspect-ratio: 9 / 16; border-radius: 26px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; transform-style: preserve-3d;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 120px -30px var(--g1, #12B076); }
.l-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 26px; opacity: 0; transition: opacity .55s ease; } .l-card img.on { opacity: 1; }
.l-card::after { content: ""; position: absolute; inset: 0; border-radius: 26px; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .16) 46%, transparent 58%); background-size: 250% 100%; background-position: var(--sx, 120%) 0; mix-blend-mode: screen; }
.l-dock { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: rgba(8, 18, 13, .72); border: 1px solid var(--line2); backdrop-filter: blur(14px); }
.l-dock .seg { background: transparent; border: 0; padding: 0; } .l-sw { display: flex; gap: 8px; } .l-sw button { width: 36px; height: 36px; border-radius: 10px; border: 0; background: center / cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); transition: transform .15s var(--ease), box-shadow .15s; }
.l-sw button:hover { transform: translateY(-2px) scale(1.06); } .l-sw button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #fff; }
.l-sec { padding: clamp(56px, 9vw, 120px) 0; } .l-sec h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; text-wrap: balance; max-width: 20ch; } .l-sec .lede { margin-top: 16px; font-size: 1.08rem; }
.l-shot { margin-top: clamp(28px, 5vw, 56px); border-radius: 20px; border: 1px solid var(--line2); overflow: hidden; box-shadow: 0 60px 120px -50px rgba(34, 211, 138, .4), var(--shadow); background: var(--surface); }
.l-shot img { display: block; width: 100%; height: auto; } .l-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--side); } .l-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.l-rise { opacity: 0; filter: blur(16px); transform: scale(1.03); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); } .l-rise.seen { opacity: 1; filter: none; transform: none; }
.l-feats { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 120px); } .l-feat { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: center; } .l-feat:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } .l-feat:nth-child(even) > div:first-child { order: 2; }
.l-feat h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; } .l-feat p { margin-top: 14px; color: var(--mute); font-size: 1.02rem; max-width: 46ch; }
.l-feat ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; } .l-feat li { display: flex; gap: 10px; align-items: flex-start; } .l-feat li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; flex: none; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334E29B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.500 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.l-feat .l-shot { margin: 0; }
.l-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; counter-reset: how; } .l-how li { list-style: none; counter-increment: how; padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); } .l-how ol { display: contents; }
.l-how li::before { content: counter(how); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; margin-bottom: 18px; background: var(--accent-2); color: var(--on-accent); font: 700 1rem var(--display); } .l-how b { display: block; font: 700 1.05rem var(--display); letter-spacing: -.02em; margin-bottom: 8px; } .l-how p { color: var(--mute); }
.l-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } .l-trust b { display: block; font-weight: 700; margin-bottom: 4px; } .l-trust p { color: var(--mute); font-size: .92rem; }
.l-end { position: relative; text-align: center; padding: clamp(64px, 10vw, 130px) 0; overflow: hidden; } .l-end h2 { margin: 0 auto 28px; max-width: 18ch; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; } .l-end .l-cta { justify-content: center; }
.l-end::before { content: ""; position: absolute; inset: 20% 10% -40%; z-index: -1; filter: blur(80px); opacity: .6; background: radial-gradient(40% 50% at 35% 50%, #12B076, transparent 70%), radial-gradient(35% 45% at 68% 60%, #8FCB2E, transparent 70%); }
@media (max-width: 880px) {
  .l-hero .l-wrap, .l-feat, .l-feat:nth-child(even) { grid-template-columns: 1fr; } .l-feat:nth-child(even) > div:first-child { order: 0; } .l-how, .l-trust { grid-template-columns: 1fr; } .l-nav-r a:not(.btn) { display: none; } .l-demo { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .l-rise { opacity: 1; transform: none; }
}
.set-b > .seg { align-self: flex-start; }

/* ---------- motion: entrances, hovers and small rewards ---------- */
.view.enter { animation: none; }
.view.enter > *, .view.enter > .grid > *, .view.enter > .settings > * { animation: rise-in .55s var(--ease) both; }
.view.enter > *:nth-child(2) { animation-delay: .05s; } .view.enter > *:nth-child(3) { animation-delay: .1s; } .view.enter > *:nth-child(4) { animation-delay: .15s; } .view.enter > *:nth-child(n+5) { animation-delay: .2s; }
.view.enter > .grid > *:nth-child(1), .view.enter > .settings > *:nth-child(1) { animation-delay: .08s; } .view.enter > .grid > *:nth-child(2), .view.enter > .settings > *:nth-child(2) { animation-delay: .15s; } .view.enter > .grid > *:nth-child(3), .view.enter > .settings > *:nth-child(3) { animation-delay: .22s; }
.view.enter > .grid > *:nth-child(4), .view.enter > .settings > *:nth-child(4) { animation-delay: .29s; } .view.enter > .grid > *:nth-child(n+5), .view.enter > .settings > *:nth-child(n+5) { animation-delay: .36s; }
.view.enter > .grid, .view.enter > .settings { animation: none; }
@keyframes rise-in { from { opacity: 0; filter: blur(14px); transform: scale(1.02); } }
.view.enter .kpis > * { animation: rise-in .5s var(--ease) both; } .view.enter .kpis > *:nth-child(2) { animation-delay: .3s; } .view.enter .kpis > *:nth-child(1) { animation-delay: .24s; } .view.enter .kpis > *:nth-child(3) { animation-delay: .36s; } .view.enter .kpis > *:nth-child(4) { animation-delay: .42s; }
.view.enter .kpis { animation: none; }
.view.enter .row { animation: row-in .45s var(--ease) both; animation-delay: calc(.25s + var(--i, 0) * 35ms); } @keyframes row-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { clip-path: inset(-20px); } }
.view.enter .delta, .view.enter .tag { animation: pop-in .4s var(--ease) .5s both; } @keyframes pop-in { from { opacity: 0; transform: scale(.6); } }
.view.enter .eq-t { animation: rise-in .5s var(--ease) both; } .view.enter .eq-t:nth-of-type(2) { animation-delay: .1s; } .view.enter .eq-t:nth-of-type(3) { animation-delay: .2s; } .view.enter .eq-t.total { animation-delay: .32s; }
.view.enter .eq-op { animation: pop-in .35s var(--ease) .3s both; }

.view.enter .swatch, .view.enter .tpl { animation: pop-in .4s var(--ease) both; }
.spark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) .35s forwards; } @keyframes draw { to { stroke-dashoffset: 0; } }

/* sidebar */
.mark i { transform-origin: bottom; animation: bar-up .6s var(--ease) both; } .mark i:nth-child(2) { animation-delay: .08s; } .mark i:nth-child(3) { animation-delay: .16s; } @keyframes bar-up { from { transform: scaleY(0); } }
.brand:hover .mark i, .wordmark:hover .mark i { animation: bar-bounce .6s var(--ease); } .brand:hover .mark i:nth-child(2), .wordmark:hover .mark i:nth-child(2) { animation-delay: .07s; } .brand:hover .mark i:nth-child(3), .wordmark:hover .mark i:nth-child(3) { animation-delay: .14s; }
@keyframes bar-bounce { 40% { transform: scaleY(.45); } 70% { transform: scaleY(1.12); } }
.side .nav a { animation: row-in .45s var(--ease) both; } .side .nav a:nth-child(2) { animation-delay: .04s; } .side .nav a:nth-child(3) { animation-delay: .08s; } .side .nav a:nth-child(4) { animation-delay: .12s; } .side .nav a:nth-child(5) { animation-delay: .16s; }
.nav a, .nav-s { position: relative; } .nav a .ic, .nav-s .ic, .tabbar .ic { transition: transform .25s var(--ease); }
.nav a:hover .ic, .nav-s:hover .ic { transform: translateX(2px) scale(1.12); } .nav a[aria-current="page"] .ic { animation: nudge .45s var(--ease); } .tabbar a[aria-current="page"] .ic { animation: hop .45s var(--ease); transform: translateY(-1px); }
.nav a::before { content: ""; position: absolute; left: -14px; top: 50%; width: 4px; height: 0; border-radius: 0 4px 4px 0; background: var(--accent); transform: translateY(-50%); transition: height .3s var(--ease); } .nav a[aria-current="page"]::before { height: 22px; }
@keyframes nudge { 40% { transform: scale(1.3) rotate(-8deg); } } @keyframes hop { 40% { transform: translateY(-6px) scale(1.15); } }
.account .av { transition: transform .3s var(--ease); } .account:hover .av { transform: scale(1.08) rotate(-6deg); } .account > .ic { transition: transform .25s var(--ease); } .account[aria-expanded="true"] > .ic { transform: rotate(180deg); }
.sel > .ic:last-child { transition: transform .25s var(--ease); } .sel[aria-expanded="true"] > .ic:last-child { transform: rotate(180deg); }
.demo { background-size: 200% 100%; animation: slide-bg 8s ease-in-out infinite alternate; } @keyframes slide-bg { to { background-position: 100% 0; } }

/* hovers */
.card, .kpi, .eq-t { transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.kpi:hover, .eq-t:hover, .channel:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: var(--shadow); }
.kpi:hover b { color: var(--accent); } .kpi b { transition: color .25s; }
.row { transition: background .2s, padding .25s var(--ease), box-shadow .2s; border-radius: 0; }
.rows > .row:hover { background: linear-gradient(90deg, var(--hover), transparent); box-shadow: -10px 0 0 var(--hover), inset 3px 0 0 -1px transparent; }
.row .av, .row .thumb, .row .badge { transition: transform .3s var(--ease); } .row:hover .av, .row:hover .badge { transform: scale(1.1); } .row:hover .thumb { transform: scale(1.05) rotate(-1deg); }
.row:hover .spark path { animation: draw .7s var(--ease) both; }
.btn { position: relative; overflow: hidden; } .btn .ic { transition: transform .25s var(--ease); } .btn:hover:not(:disabled) .ic { transform: scale(1.15) rotate(-6deg); }
.btn.primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.btn.primary:hover:not(:disabled)::before { transform: translateX(120%); transition: transform .7s var(--ease); }
.btn.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 30px -12px var(--accent-2), inset 0 1px 0 rgba(255, 255, 255, .25); } .btn.primary:active:not(:disabled) { transform: scale(.97); }
.icon-btn:hover .ic { transform: scale(1.12); } .icon-btn .ic { transition: transform .2s var(--ease); } .icon-btn:active { transform: scale(.9); }
.chip:active, .seg button:active, .swatch:active, .tpl:active, .check-step:active { transform: scale(.95); } .chip .ic { animation: pop-in .25s var(--ease); }
.seg button[aria-checked="true"] { animation: seg-in .3s var(--ease); } @keyframes seg-in { from { transform: scale(.92); } }
.menu-i { transition: background .15s, padding-left .2s var(--ease); } .menu-i:hover { padding-left: 13px; } .menu-i .ic:last-child:not(:first-child) { animation: pop-in .25s var(--ease); }
.pop .menu-i { animation: row-in .28s var(--ease) both; } .pop .menu-i:nth-child(2) { animation-delay: .02s; } .pop .menu-i:nth-child(3) { animation-delay: .04s; } .pop .menu-i:nth-child(4) { animation-delay: .06s; } .pop .menu-i:nth-child(n+5) { animation-delay: .08s; }
.cal-d { transition: background .15s, transform .15s var(--ease); } .cal-d:hover:not(:disabled) { transform: scale(1.12); }
.empty-i { animation: float 3.6s ease-in-out infinite; } @keyframes float { 50% { transform: translateY(-5px); } }
.done .empty-i { animation: tick .6s var(--ease); } @keyframes tick { from { transform: scale(0) rotate(-40deg); } 60% { transform: scale(1.2); } }
.ring b { animation: pop-in .5s var(--ease) .6s both; } .person { animation: pop-in .3s var(--ease) both; transition: border-color .2s, transform .2s var(--ease); } .person:hover { transform: translateY(-1px); border-color: var(--line2); }
.sheet-b > .form > *, .sheet-b > .rows > * { animation: rise-in .4s var(--ease) both; } .sheet-b > .form > *:nth-child(2) { animation-delay: .04s; } .sheet-b > .form > *:nth-child(3) { animation-delay: .08s; } .sheet-b > .form > *:nth-child(4) { animation-delay: .12s; } .sheet-b > .form > *:nth-child(n+5) { animation-delay: .16s; }
.chart-tip { transition: left .12s ease-out, top .12s ease-out; animation: pop .15s var(--ease); } .chart .col path { transition: opacity .2s; } .chart:hover .col path { opacity: .55; } .chart .col:hover path { opacity: 1; }
.legend > span { transition: color .2s; } .legend > span:hover { color: var(--text); }
.welcome-art img { animation: float-a 6s ease-in-out infinite; } .welcome-art img:last-child { animation: float-b 7s ease-in-out infinite; }
@keyframes float-a { 50% { transform: rotate(-5deg) translateY(-12px); } } @keyframes float-b { 50% { transform: rotate(8deg) translateY(10px); } }
.welcome-t > * { animation: rise-in .6s var(--ease) both; } .welcome-t > *:nth-child(2) { animation-delay: .08s; } .welcome-t > *:nth-child(3) { animation-delay: .16s; } .welcome-t > *:nth-child(4) { animation-delay: .24s; } .welcome-t > *:nth-child(5) { animation-delay: .32s; }
.check-step .box { transition: transform .25s var(--ease); } .check-step:hover .box { transform: scale(1.15); } .toggle:hover i { box-shadow: 0 0 0 4px var(--accent-soft); } .toggle i { transition: background .2s, box-shadow .2s; }
.thumb, .tpl img { transition: transform .3s var(--ease); } .tpl:hover:not(:disabled) img { transform: scale(1.04); } .tpl { overflow: hidden; }
.dots button:active, .cp-presets button:active { transform: scale(.85); } .colorbtn .cb-chip { transition: transform .25s var(--ease); } .colorbtn:hover .cb-chip { transform: scale(1.1) rotate(8deg); }

/* landing extras */
.l-rise { transition-delay: var(--d, 0s); } .l-side.l-rise { clip-path: inset(0 100% 0 0); transition: opacity .9s var(--ease), filter .9s var(--ease), clip-path 1.1s var(--ease); transform: none; } .l-side.l-rise.seen { clip-path: inset(0 -40px 0 -40px); }
.l-shot.l-tip { transform: perspective(1600px) rotateX(16deg) scale(.94); transform-origin: 50% 100%; transition-duration: 1.2s; } .l-shot.l-tip.seen { transform: perspective(1600px) rotateX(0) scale(1); }
.l-shot { transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease), box-shadow .4s, border-color .4s; } .l-shot.seen:hover { transform: translateY(-8px) scale(1.01); transition-duration: .4s; transition-delay: 0s; border-color: var(--accent); box-shadow: 0 70px 130px -50px rgba(34, 211, 138, .55), var(--shadow); }
.l-shot img { transition: transform 1.2s var(--ease); } .l-shot.seen:hover img { transform: scale(1.015); }
.l-tilt { animation: bob 6s ease-in-out infinite; } .l-tilt:hover { animation-play-state: paused; } @keyframes bob { 50% { transform: translateY(-12px) rotate(-1.2deg); } }
.l-card::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 26px; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%); background-size: 300% 100%; background-position: 130% 0; mix-blend-mode: screen; animation: glint 5.5s var(--ease) 1.4s infinite; }
@keyframes glint { 0%, 60% { background-position: 130% 0; } 85%, 100% { background-position: -40% 0; } }
.l-nav-r a:not(.btn) { position: relative; } .l-nav-r a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); } .l-nav-r a:not(.btn):hover::after { transform: scaleX(1); }
.l-nav { animation: nav-in .7s var(--ease) both; } @keyframes nav-in { from { opacity: 0; filter: blur(10px); } }
.l-hero h1 span { animation: line-in .9s var(--ease) both; } .l-hero h1 span + span { animation-delay: .14s; background-size: 200% 100%; animation: line-in .9s var(--ease) .14s both, slide-bg 5s ease-in-out 1s infinite alternate; }
@keyframes line-in { from { opacity: 0; clip-path: inset(0 100% 0 0); filter: blur(10px); } to { clip-path: inset(-10% -10% -20% -10%); } }
.l-dock { animation: l-in .8s var(--ease) .5s both; transition: border-color .3s, transform .3s var(--ease); } .l-dock:hover { border-color: rgba(255, 255, 255, .35); transform: translateY(-2px); } .l-sw button { animation: pop-in .4s var(--ease) both; }
.l-sw button:nth-child(1) { animation-delay: .7s; } .l-sw button:nth-child(2) { animation-delay: .75s; } .l-sw button:nth-child(3) { animation-delay: .8s; } .l-sw button:nth-child(4) { animation-delay: .85s; } .l-sw button:nth-child(5) { animation-delay: .9s; } .l-sw button:nth-child(6) { animation-delay: .95s; }
.l-how li { transition: opacity .9s var(--ease), transform .5s var(--ease), filter .9s var(--ease), border-color .3s, box-shadow .3s; transition-delay: var(--d, 0s), var(--d, 0s), var(--d, 0s), 0s, 0s; } .l-how li.seen:hover { transform: translateY(-8px); transition-delay: 0s; border-color: var(--accent); box-shadow: 0 30px 60px -30px rgba(34, 211, 138, .5); }
.l-how li::before { transition: transform .4s var(--ease); } .l-how li:hover::before { transform: rotate(-10deg) scale(1.15); }
.l-feat li { transition: transform .25s var(--ease); } .l-feat li:hover { transform: translateX(6px); }
.l-trust > div b { display: inline-block; transition: color .25s; } .l-trust > div:hover b { color: var(--accent); }
.l-end::before { animation: pulse 7s ease-in-out infinite alternate; } @keyframes pulse { to { transform: scale(1.15) translateY(-4%); opacity: .8; } }
.l-cta .btn { transition: transform .25s var(--ease), background .2s, box-shadow .25s; } .l-cta .btn:hover { transform: translateY(-3px) scale(1.03); }
.pub-foot a, .l-fine a { transition: color .2s; } .pub-img { transition: transform .5s var(--ease); } .pub-img:hover { transform: translateY(-6px) rotate(-1deg) scale(1.01); } .pub-card > * { animation: rise-in .7s var(--ease) both; } .pub-card > *:nth-child(2) { animation-delay: .12s; }
.facts tr { transition: background .2s; } .facts tr:hover { background: var(--hover); }
@media (prefers-reduced-motion: reduce) { .l-tilt, .l-card::before, .empty-i, .welcome-art img, .demo, .l-end::before { animation: none !important; } .l-shot.l-tip, .l-side.l-rise { transform: none; clip-path: none; } .l-rise { filter: none; } .spark path { stroke-dashoffset: 0; } }

/* ---------- settings dialog, pro tags ---------- */
.sheet.center .scrim { background: rgba(2, 8, 5, .74); backdrop-filter: blur(16px) saturate(.75); }
.sheet.center .sheet-p.wide { width: min(880px, 100%); max-height: min(92vh, 940px); }
.settings-m .settings { max-width: none; gap: 0; } .settings-m .set { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 24px 0; } .settings-m .set:first-child { border-top: 0; padding-top: 6px; } .settings-m .set:last-child { padding-bottom: 6px; }
.pro { display: inline-flex; align-items: center; height: 16px; padding: 0 6px; margin-left: 6px; border-radius: 5px; background: linear-gradient(100deg, var(--accent-2), var(--accent-3)); color: var(--on-accent); font: 700 10px/1 var(--sans); letter-spacing: .03em; vertical-align: middle; flex: none; text-decoration: none; }
.tpl b .pro { margin-left: 2px; } .swatch.own .pro, .btn .pro { margin-left: 2px; } .row-l { flex-direction: row; align-items: center; }

/* ---------- tightening: fewer effects, one radius, quieter headings ---------- */
:root { --r: 14px; }
h2 { font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.l-sec h2, .l-end h2 { font-family: var(--display); } .sheet-h h2 { font-family: var(--display); }
.meter i { background: var(--accent-2); } .eq-t.total { background: var(--accent-2); } .eq-t.total.neg { background: var(--neg); color: #1B0700; }
.checklist { background: var(--surface); } .demo { background: var(--accent-soft); animation: none; font-weight: 500; }
.pro { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn.primary { box-shadow: none; } .btn.primary:hover:not(:disabled) { box-shadow: none; }
.kpi:hover, .eq-t:hover { transform: none; box-shadow: none; } .kpi:hover b { color: inherit; }
.card { border-radius: var(--r); } .kpi { border-radius: var(--r); }

/* ---------- card studio: preview left, inspector right ---------- */
.studio { grid-template-columns: minmax(0, 1fr) 368px; gap: 18px; }
.studio-p { position: sticky; top: 18px; height: calc(100vh - 124px); min-height: 420px; padding: 18px; gap: 10px; background: var(--side); justify-content: center; }
.studio-p .stage { min-height: 0; padding: 14px 0; } .stage.fmt-story img, .stage.fmt-story canvas { height: min(calc(100vh - 230px), 700px); }
.studio-c { position: static; max-height: none; overflow: visible; gap: 6px; padding: 16px 18px 6px; }
.pane { gap: 0; } .insp-s { padding: 16px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; } .pane > .insp-s:first-child { border-top: 0; }
.insp-s h3 { font: 600 .8125rem var(--sans); letter-spacing: 0; color: var(--mute); }
.opts { display: flex; flex-direction: column; margin: -4px 0; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 42px; cursor: pointer; border-top: 1px solid var(--line); } .opt:first-child { border-top: 0; } .opt.off { opacity: .55; cursor: not-allowed; }
.opt > span { flex: 1; display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 500; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt i { width: 36px; height: 20px; border-radius: 99px; background: var(--line2); position: relative; flex: none; transition: background .2s; }
.opt i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.opt input:checked + i { background: var(--accent-2); } .opt input:checked + i::after { transform: translateX(16px); background: var(--on-accent); } .opt input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatches { grid-template-columns: repeat(6, 1fr); gap: 7px; } .swatch { border-radius: 9px; } .swatch.own { grid-column: span 3; height: 44px; }
.tpl small { display: none; } .tpl img { aspect-ratio: 9 / 12; }
@media (max-width: 1080px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .studio-p { order: 0; position: sticky; top: 0; z-index: 6; height: auto; min-height: 0; padding: 10px; border-radius: var(--r); background: var(--bg); border-color: var(--line); }
  .studio-p .stage { padding: 4px 0; } .stage.fmt-story img, .stage.fmt-story canvas { height: min(40vh, 380px); } .stage.fmt-square .frame { width: min(100%, 40vh, 380px); } .stage.fmt-landscape .frame { width: min(100%, 560px); }
  .studio-p > .small { display: none; }
}
@media (max-width: 860px) {
  .studio-p { top: 53px; margin: 0 -14px; border-radius: 0; border-width: 0 0 1px; }
  .head-r .icon-btn { order: 3; } .swatches { grid-template-columns: repeat(6, 1fr); }
  .sheet.center .sheet-p.wide { max-height: 92vh; } .settings-m .set { padding: 18px 0; }
}

.btn.xbtn { background: #000; border-color: #000; color: #fff; } .btn.xbtn:hover { background: #16181C; border-color: #2F3336; } [data-theme="dark"] .btn.xbtn { border-color: #2F3336; } .btn.xbtn.working::after { border-color: #fff; border-right-color: transparent; }
.xmark { font: 400 1.05rem/1 "Segoe UI Symbol", "Cambria Math", "Apple Symbols", "Noto Sans Math", system-ui, sans-serif; }
@media (max-width: 860px) { .head-r .btn.xbtn { flex: 1 1 40%; } .head-r .btn.primary { flex: 1 1 40%; } }

/* ---------- pricing cards (landing and Settings) ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin-top: 40px; align-items: stretch; }
.plan-c { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line2); overflow: hidden; isolation: isolate;
  transition: opacity .9s var(--ease), filter .9s var(--ease), transform .35s var(--ease), border-color .3s, box-shadow .35s; transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s, 0s; }
.plan-c:hover { transform: translateY(-6px); border-color: var(--faint); box-shadow: 0 34px 70px -40px rgba(0, 0, 0, .8); }
.plan-c h3 { display: flex; align-items: center; gap: 10px; font: 700 1.15rem var(--display); letter-spacing: -.02em; }
.plan-tag { padding: 4px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font: 600 .72rem var(--sans); letter-spacing: 0; }
.plan-p { display: flex; align-items: baseline; gap: 10px; } .plan-p b { font: 900 clamp(2.4rem, 5vw, 3.2rem)/1 var(--display); letter-spacing: -.05em; } .plan-p span { color: var(--mute); }
.plan-d { color: var(--mute); } .plan-c ul { list-style: none; margin: 4px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan-c li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.35; } .plan-c li::before { content: ""; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; flex: none; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334E29B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan-c li.plan-all { color: var(--mute); font-weight: 600; } .plan-c li.plan-all::before { display: none; }
.plan-c .btn { margin-top: auto; height: 46px; } .plan-c .btn + .btn { margin-top: 0; } .plan-c span.btn { cursor: default; color: var(--mute); }
/* the top plan: an accent edge that slowly travels round it, and a light that crosses it now and then (and on hover) */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plan-c.top { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--spin), var(--accent-2), rgba(185, 241, 92, .9), transparent 30%, transparent 62%, var(--accent-2)) border-box; border-width: 1.5px; animation: spin-edge 7s linear infinite; box-shadow: 0 40px 90px -50px var(--accent-2); }
@keyframes spin-edge { to { --spin: 360deg; } }
.plan-c.top::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 80% 0%, var(--accent-soft), transparent 70%); }
.plan-c.top::before { content: ""; position: absolute; inset: -40% -60%; z-index: 1; pointer-events: none; background: linear-gradient(105deg, transparent 44%, rgba(255, 255, 255, .16) 50%, transparent 56%); transform: translateX(-70%); animation: plan-shine 6s var(--ease) 1.2s infinite; }
.plan-c.top:hover::before { animation: plan-shine-once .9s var(--ease); } @keyframes plan-shine { 0%, 70% { transform: translateX(-70%); } 100% { transform: translateX(70%); } } @keyframes plan-shine-once { from { transform: translateX(-70%); } to { transform: translateX(70%); } }
.plan-c.top:hover { border-color: transparent; box-shadow: 0 50px 100px -46px var(--accent-2); }
.plans.in-app { margin-top: 0; max-width: none; gap: 14px; } .plans.in-app .plan-c { padding: 20px; border-radius: 16px; gap: 10px; background-color: var(--field); } .plans.in-app .plan-c.top { background: linear-gradient(var(--field), var(--field)) padding-box, conic-gradient(from var(--spin), var(--accent-2), rgba(185, 241, 92, .9), transparent 30%, transparent 62%, var(--accent-2)) border-box; }
.plans.in-app .plan-p b { font-size: 2rem; } .plans.in-app li { font-size: .875rem; } .plans.in-app .plan-c:hover { transform: translateY(-3px); }
.settings-m .set:has(.plans) { grid-template-columns: 1fr; gap: 14px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan-c { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { .plan-c.top, .plan-c.top::before { animation: none !important; } }

.frame .next { transition: opacity .2s linear; } .frame.fade .next { opacity: 1; } .frame.morph > canvas { animation: morph .95s cubic-bezier(.22, .9, .25, 1) both; }
.swatch.mov { padding: 0; overflow: hidden; } .swatch.mov canvas { width: 100%; height: 100%; display: block; border-radius: inherit; } .insp-s h3 .pro { margin-left: 6px; }

.shape-ic { display: inline-grid; place-items: center; height: 26px; } .shape-ic svg { display: block; } .seg:has(.shape-ic) button { height: 40px; }

.tiles3 { grid-template-columns: repeat(4, 1fr); gap: 8px; } .tpl { padding: 5px 5px 8px; align-items: flex-start; } .tpl b { font-size: .78rem; padding: 4px 2px 0; } .tpl .pro { margin: 2px 0 0 2px; }
.l-dock .seg button { padding: 0 11px; }

.l-demo-link { margin-top: 16px; color: var(--mute); font-size: .92rem; } .l-demo-link button { border: 0; background: none; padding: 0; color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); } .l-demo-link button:hover { text-decoration-color: var(--accent); color: var(--accent); } .l-demo-link button.working { opacity: .6; }
