/* Cashflows Pro Data Anonymizer — matches the Cashflows Pro marketing look (site.css). */
:root {
	--bg: #08170f;
	--ink: #eef6ea;
	--ink-soft: #b9cbb6;
	--muted: #8aa287;
	--lime: #9be15d;
	--lime-2: #6fc23a;
	--amber: #f6a93b;
	--red: #ff7a6b;
	--card: rgba(255, 255, 255, 0.045);
	--line: rgba(255, 255, 255, 0.1);
	--radius: 22px;
	--font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; min-height: 100vh;
	font: 400 17px/1.6 var(--font); color: var(--ink);
	background: radial-gradient(120% 80% at 50% -10%, #133624 0%, var(--bg) 55%) var(--bg);
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.wrap { width: min(860px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.orb-a { width: 50vmax; height: 50vmax; left: -18vmax; top: -16vmax; background: radial-gradient(circle, rgba(111, 194, 58, .55), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.orb-b { width: 40vmax; height: 40vmax; right: -16vmax; bottom: -12vmax; background: radial-gradient(circle, rgba(246, 169, 59, .28), transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(4vmax, 3vmax); } }

/* Header */
.topbar { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: rgba(8, 23, 15, .7); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 1.1rem/1 var(--display); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.toplink { color: var(--ink-soft); padding: 8px 12px; border-radius: 10px; font-size: .95rem; }
.toplink:hover { color: var(--ink); background: var(--card); text-decoration: none; }

/* Intro */
.intro { padding: clamp(28px, 6vw, 64px) 0 8px; }
.eyebrow { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
h1, h2 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.1; }
h1 {
	margin: 0 0 .35em; font-size: clamp(2.3rem, 7vw, 3.8rem); font-weight: 800;
	background: linear-gradient(100deg, #fff 10%, var(--lime) 60%, var(--amber) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 0; color: var(--ink-soft); font-size: clamp(1.02rem, 1.7vw, 1.15rem); max-width: 40em; }
.lede strong { color: var(--ink); font-weight: 600; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: .88rem; color: var(--ink-soft); background: var(--card); border: 1px solid var(--line); }
.chips svg { width: 16px; height: 16px; color: var(--lime); }

/* Steps */
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 28px 0 14px; counter-reset: none; }
.steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; font-size: .92rem; color: var(--muted); border: 1px solid transparent; transition: color .3s, background .3s, border-color .3s; }
.steps span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: .85rem; background: rgba(255, 255, 255, .08); transition: background .3s, color .3s; }
.steps li.active { color: var(--ink); background: var(--card); border-color: var(--line); }
.steps li.active span { background: var(--amber); color: #1a1200; }
.steps li.done span { background: var(--lime); color: #0a1d10; }
.steps li.done { color: var(--ink-soft); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 26px); margin: 0 0 16px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Dropzone */
.drop {
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
	min-height: 200px; padding: 28px 18px; border-radius: 16px; cursor: pointer;
	border: 2px dashed rgba(155, 225, 93, .35); background: rgba(155, 225, 93, .035);
	transition: border-color .2s, background .2s, transform .2s;
}
.drop:hover, .drop.over { border-color: var(--lime); background: rgba(155, 225, 93, .08); }
.drop.over { transform: scale(1.01); }
.drop:focus-within { outline: 3px solid var(--amber); outline-offset: 3px; }
.drop-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; margin-bottom: 6px; color: #0a1d10; background: linear-gradient(180deg, var(--lime), var(--lime-2)); box-shadow: 0 12px 30px -12px rgba(155, 225, 93, .7); transition: transform .25s; }
.drop:hover .drop-icon, .drop.over .drop-icon { transform: translateY(-3px); }
.drop-icon svg { width: 28px; height: 28px; }
.drop-title { font: 700 1.2rem/1.3 var(--display); }
.drop-sub { color: var(--ink-soft); font-size: .95rem; max-width: 30em; }
.drop-sub u { color: var(--lime); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.drop.loaded { min-height: 120px; border-style: solid; border-color: rgba(155, 225, 93, .5); }
.drop.loaded .drop-icon { width: 46px; height: 46px; border-radius: 14px; }

/* Status */
.status { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: .95rem; background: rgba(255, 255, 255, .05); }
.status.error { background: rgba(255, 122, 107, .12); color: #ffd3cd; }
.status.busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--lime); border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Result */
.result { scroll-margin-top: 76px; animation: rise .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.result-head h2 { margin: 0 0 4px; font-size: 1.35rem; color: var(--lime); }
.result-head p { margin: 0; font-size: .92rem; word-break: break-word; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0; }
.stat { padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.stat b { display: block; font: 800 1.5rem/1.1 var(--display); color: var(--ink); }
.stat small { color: var(--muted); font-size: .82rem; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	padding: 13px 20px; border: 0; border-radius: 999px; cursor: pointer;
	font: 650 1rem/1.1 var(--font); letter-spacing: .01em; color: #0a1d10;
	background: linear-gradient(180deg, var(--lime), var(--lime-2));
	box-shadow: 0 10px 28px -12px rgba(155, 225, 93, .65), inset 0 1px 0 rgba(255, 255, 255, .4);
	transition: transform .18s ease, box-shadow .18s ease, opacity .18s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-alt { background: linear-gradient(180deg, #ffc163, var(--amber)); color: #1a1200; box-shadow: 0 10px 28px -12px rgba(246, 169, 59, .65), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--lime); }
.btn-sm { padding: 8px 14px; font-size: .9rem; flex: none; }
.btn-sm svg { width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hint { margin: 12px 0 0; font-size: .9rem; color: var(--ink-soft); }
.hint strong { color: var(--ink); font-weight: 600; }

/* Note */
.note { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.note summary { cursor: pointer; font-size: .95rem; color: var(--ink-soft); padding: 4px 0; }
.note summary:hover { color: var(--ink); }
.note summary .muted { font-size: .85rem; }
textarea { width: 100%; font: inherit; color: var(--ink); background: rgba(0, 0, 0, .28); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; resize: vertical; }
textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(155, 225, 93, .18); }
#noteText { margin-top: 8px; }

/* Preview */
.preview { margin-top: 18px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 8px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; color: var(--ink-soft); font: 600 .9rem/1 var(--font); padding: 8px 14px; border-radius: 9px; cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: rgba(155, 225, 93, .16); color: var(--lime); }
.code { font: 12.5px/1.5 var(--mono); height: 320px; white-space: pre; overflow: auto; color: #d6e6d2; }

.foot { text-align: center; font-size: .9rem; margin: 26px 0 calc(32px + env(safe-area-inset-bottom, 0)); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 999px; font-size: .92rem; font-weight: 600; color: #0a1d10; background: var(--lime); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); transition: opacity .25s, transform .25s; z-index: 20; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
	body { font-size: 16px; }
	.steps { gap: 4px; }
	.steps li { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: .78rem; text-align: center; line-height: 1.25; }
	.drop { min-height: 170px; }
	.actions .btn { flex: 1 1 calc(50% - 5px); padding: 13px 12px; }
	.actions #downloadButton, .actions #emailButton { flex-basis: 100%; }
	.code { height: 240px; }
	.stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
	.stat { padding: 10px; }
	.stat b { font-size: 1.25rem; }
	.stat small { font-size: .74rem; line-height: 1.25; display: block; }
	.result-head { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
