/* Cashflows Pro marketing page — scoped to Cashflows/index.html only. */
:root {
	--bg: #08170f;
	--bg-2: #0d2418;
	--ink: #eef6ea;
	--ink-soft: #b9cbb6;
	--muted: #8aa287;
	--lime: #9be15d;
	--lime-2: #6fc23a;
	--amber: #f6a93b;
	--card: rgba(255, 255, 255, 0.045);
	--line: rgba(255, 255, 255, 0.09);
	--radius: 22px;
	--wrap: 1120px;
	--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;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font: 400 17px/1.65 var(--font);
	color: var(--ink);
	background: radial-gradient(120% 80% at 50% -10%, #133624 0%, var(--bg) 55%) var(--bg);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--lime); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

:focus-visible {
	outline: 3px solid var(--amber);
	outline-offset: 3px;
	border-radius: 8px;
}

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--lime); color: #08170f; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Background layers (parallax sky) ---------- */
.sky {
	position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.orb, .grid { position: absolute; will-change: translate; translate: 0 var(--py, 0px); }
.orb { border-radius: 50%; filter: blur(70px); opacity: .55; }
.orb-a { width: 56vmax; height: 56vmax; left: -18vmax; top: -14vmax; background: radial-gradient(circle, rgba(111, 194, 58, .55), transparent 65%); }
.orb-b { width: 44vmax; height: 44vmax; right: -16vmax; top: 40vh; background: radial-gradient(circle, rgba(246, 169, 59, .32), transparent 65%); }
.orb-c { width: 50vmax; height: 50vmax; left: 20vw; top: 75vh; background: radial-gradient(circle, rgba(60, 160, 140, .35), transparent 65%); }
.grid { left: 0; right: 0; top: 18vh; width: 100%; height: 70vh; opacity: .35; }
.trend { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 4.5s ease-out .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Header ---------- */
.topbar {
	position: sticky; top: 0; z-index: 50;
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	background: rgba(8, 23, 15, .62);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, background .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); background: rgba(8, 23, 15, .82); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-top: env(safe-area-inset-top, 0); }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); line-height: 1.1; }
.brand:hover { text-decoration: none; }
.brand-names { font-size: .9rem; color: var(--ink-soft); letter-spacing: .01em; }
.brand-apps { font: 700 1.35rem/1 var(--display); color: var(--ink); letter-spacing: -.01em; }
.topnav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.topnav a:not(.btn) { color: var(--ink-soft); padding: 8px 10px; border-radius: 10px; font-size: .95rem; }
.topnav a:not(.btn):hover { color: var(--ink); background: var(--card); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 22px; border-radius: 999px;
	background: linear-gradient(180deg, var(--lime), var(--lime-2));
	color: #0a1d10; font-weight: 650; letter-spacing: .01em;
	box-shadow: 0 10px 30px -10px rgba(155, 225, 93, .6), inset 0 1px 0 rgba(255, 255, 255, .4);
	transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(155, 225, 93, .75), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-small { padding: 8px 16px; font-size: .92rem; margin-left: 6px; }
.btn-ghost { background: transparent; 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-glyph { width: 20px; height: 20px; margin-top: -2px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 110px) 0 clamp(40px, 7vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero-icon { display: inline-block; border-radius: 28px; filter: drop-shadow(0 18px 40px rgba(111, 194, 58, .35)); transition: transform .3s ease; }
.hero-icon:hover { transform: rotate(-4deg) scale(1.04); }
.hero-icon img { width: 112px; height: 112px; }
.eyebrow, .step {
	margin: 22px 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amber);
}
h1, h2 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.08; margin: 0 0 .5em; }
h1 {
	font-size: clamp(2.8rem, 7.5vw, 5.4rem); font-weight: 800;
	background: linear-gradient(100deg, #ffffff 10%, var(--lime) 60%, var(--amber) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.1rem, 1.8vw, 1.32rem); color: var(--ink-soft); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { display: flex; justify-content: center; perspective: 1200px; }

/* ---------- Phone frame ---------- */
.phone {
	position: relative; margin: 0;
	width: min(300px, 72vw);
	/* Height follows the screenshot (img has its own aspect-ratio), so the 10px bezel
	   never squeezes the screen into a narrower ratio than the 1170x2532 captures. */
	height: auto;
	padding: 10px; border-radius: 46px;
	background: linear-gradient(160deg, #2a3a30, #0f1712 60%);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .8), 0 20px 60px -20px rgba(111, 194, 58, .25);
	translate: 0 var(--py, 0px);
	will-change: translate;
}
/* Screen: exact screenshot ratio, nothing cropped. Corner radius ~12% of screen width
   (iPhone display curve) so it scales with the frame instead of eating the corners. */
.phone img { width: 100%; height: auto; aspect-ratio: 1170 / 2532; object-fit: contain; border-radius: 12% / 5.55%; background: #fff; }
.phone::after {
	content: ""; position: absolute; inset: 10px; border-radius: 12% / 5.55%; pointer-events: none;
	background: linear-gradient(125deg, rgba(255, 255, 255, .22) 0%, transparent 28%);
}
.phone-hero { width: min(330px, 78vw); rotate: 4deg; }

/* ---------- Intro cards ---------- */
.intro { padding: 10px 0 40px; }
.intro-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 26px 26px 18px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.card h2 { font-size: 1.3rem; color: var(--lime); }
.card p { margin: 0 0 .6em; color: var(--ink-soft); }

/* ---------- Feature tour ---------- */
.feature { padding: clamp(50px, 9vw, 120px) 0; position: relative; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.feature .phone { justify-self: center; }
.flip .feature-grid { grid-template-columns: 1.2fr .8fr; }
.flip .phone { order: 2; }
.feature-copy { max-width: 36em; translate: 0 var(--py, 0px); }
.feature-copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.feature-copy p { color: var(--ink-soft); margin: 0 0 1em; }
.feature-copy .step { margin-top: 0; }
.tag {
	display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 6px;
	background: var(--amber); color: #1a1200; font-weight: 800; font-size: .85em; vertical-align: .05em;
}

/* ---------- Closer + footer ---------- */
.closer { text-align: center; padding: clamp(60px, 10vw, 130px) 0; }
.closer img { margin: 0 auto 18px; width: 88px; height: 88px; }
.closer h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.closer p { color: var(--ink-soft); margin: 0 0 26px; }
.closer-cta { justify-content: center; margin-top: 0; }

.footer { border-top: 1px solid var(--line); background: rgba(0, 0, 0, .25); padding: 50px 0 calc(40px + env(safe-area-inset-bottom, 0)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer h2 { font: 700 .8rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 8px; }
.footer-brand { font: 700 1.2rem/1.2 var(--display); margin: 0 0 8px; }
.footer-brand span { color: var(--lime); }
.muted { color: var(--muted); margin: 0; }

/* ---------- Reveal (only when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.hero-grid, .feature-grid, .flip .feature-grid { grid-template-columns: 1fr; }
	.hero-copy { text-align: center; }
	.hero-copy .lede { margin-inline: auto; }
	.cta-row { justify-content: center; }
	.flip .phone { order: 0; }
	.feature-copy { margin-inline: auto; }
	.intro-cards { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.phone { width: min(270px, 70vw); border-radius: 42px; }
	.phone-hero { width: min(290px, 74vw); rotate: 2deg; }
	.orb { filter: blur(50px); }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.brand { flex-direction: column; align-items: flex-start; gap: 2px; }
	.brand-names { font-size: .72rem; }
	.topnav a:not(.btn) { display: none; }
	.topnav a[href^="mailto:"] { display: inline-block; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.trend { stroke-dashoffset: 0; }
	.orb, .grid, .phone, .feature-copy { translate: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}
