/* WNE Finance: marketing site. Same palette as the app (navy #0f1b2d, accent #1f6feb). */
:root {
    --navy: #0f1b2d;
    --navy-2: #1d3354;
    --accent: #1f6feb;
    --accent-2: #1557c0;
    --in: #1a7f4b;
    --out: #c2362b;
    --bg: #ffffff;
    --bg-alt: #f4f6f9;
    --surface: #ffffff;
    --text: #172233;
    --muted: #5d6878;
    --border: #e3e8ef;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 27, 45, .08);
    --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d1117;
        --bg-alt: #121821;
        --surface: #161b22;
        --text: #e6edf3;
        --muted: #9aa6b5;
        --border: #263241;
        --shadow: 0 10px 30px rgba(0, 0, 0, .35);
        --in: #3fb97a;
        --out: #f07167;
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6rem; }
.sub { color: var(--muted); font-size: 1.08rem; max-width: 720px; }
.center.sub, p.sub.center { margin-inline: auto; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .8rem 1.35rem; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: transform .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .5rem 1rem; font-size: .92rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { color: var(--text); border-color: var(--border); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(15, 27, 45, .96); backdrop-filter: blur(8px); color: #fff; }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand strong { display: block; font-size: 1.05rem; }
.brand small { display: block; font-size: .72rem; letter-spacing: .05em; color: #aab6c8; }
.brand-logo { width: auto; height: 40px; background: #fff; border-radius: 9px; padding: 3px 5px; object-fit: contain; }
.links { display: flex; gap: 1.3rem; }
.links a { color: #cfd8e5; text-decoration: none; font-size: .95rem; }
.links a:hover { color: #fff; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(31, 111, 235, .35), transparent 60%), linear-gradient(180deg, var(--navy) 0%, #13233b 100%); color: #fff; padding: 5rem 0 5.5rem; }
.hero .eyebrow { color: #8fb8ff; }
.hero .lead { color: #c6d2e2; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: #c6d2e2; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: #6ee7a8; font-weight: 700; margin-right: .45rem; }

.hero-card { background: #fff; color: #172233; border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.mock-top { display: flex; gap: 6px; padding: 12px 14px; background: #eef2f7; }
.mock-top span { width: 10px; height: 10px; border-radius: 50%; background: #c9d2de; }
.mock-body { padding: 1.3rem 1.4rem 1.5rem; }
.mock-title { font-weight: 700; margin-bottom: .8rem; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.mock-stats div { background: #f4f6f9; border-radius: 10px; padding: .6rem .7rem; }
.mock-stats small { display: block; color: #6b7686; font-size: .75rem; }
.mock-stats b { font-size: .98rem; }
.mock-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-bottom: 1rem; }
.mock-bars i { flex: 1; background: linear-gradient(180deg, #1f6feb, #7aa7f2); border-radius: 6px 6px 2px 2px; }
.mock-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.mock-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid #edf1f5; }
.mock-list span { color: #4a5566; }
.in { color: #1a7f4b; }
.out { color: #c2362b; }

/* Strip */
.strip { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.6rem 0; }
.strip-grid div { text-align: center; }
.strip-grid b { display: block; font-size: 1.15rem; }
.strip-grid span { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: 5rem 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--navy); color: #fff; }
.section.dark .sub { color: #c6d2e2; }
.section.dark .eyebrow { color: #8fb8ff; }
.section h2.center + .sub { margin-bottom: 2.5rem; }
.section > .wrap > h2.center { margin-bottom: 1rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.card, .feature, .persona { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card p, .feature p, .persona p { color: var(--muted); margin: 0; }
.problem h3 { position: relative; padding-left: 1.6rem; }
.problem h3::before { content: "✓"; position: absolute; left: 0; color: var(--in); }
.group { margin: 2.6rem 0 1rem; font-size: 1.05rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.persona h4 { color: var(--accent); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.checks li { position: relative; padding-left: 1.9rem; color: var(--muted); }
.checks li b { color: var(--text); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: rgba(31, 111, 235, .12); color: var(--accent); font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.checks.light li { color: #c6d2e2; }
.checks.light li b { color: #fff; }
.checks.light li::before { background: rgba(255, 255, 255, .12); color: #8fb8ff; }
.stack { display: grid; gap: 1.2rem; }
.quote-card { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.quote-card .big { font-size: 1.5rem; font-weight: 700; margin-bottom: .4rem; }
.quote-card p { color: #c6d2e2; margin: 0; }
.quote-card .big { color: #fff; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.steps span { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: .9rem; }
.steps p { color: var(--muted); margin: 0; }

/* FAQ */
details { border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; margin-top: .8rem; background: var(--surface); }
summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 1.8rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.3rem; color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: .7rem 0 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--accent), #0f4fb8); color: #fff; padding: 3.5rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { margin: 0; color: #dbe7ff; }
.cta-band .cta-row { margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #aab6c8; padding: 3rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 2rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand strong { display: block; color: #fff; }
.footer-brand small { color: #aab6c8; }
.footer-company { text-align: center; }
.footer-company a { display: block; color: #fff; text-decoration: none; letter-spacing: .05em; }
.footer-company a.muted { color: #aab6c8; font-size: .8rem; letter-spacing: .08em; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.1rem; }
.footer-links a { color: #cfd8e5; text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.copyright { text-align: center; font-size: .82rem; margin: 2rem 16px 0; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .08); }

/* Grid and flex children may shrink below their content width (no sideways scroll on phones). */
.hero-grid > *, .two-col > *, .grid-3 > *, .grid-4 > *, .steps > *, .footer-inner > *, .strip-grid > * { min-width: 0; }
body { overflow-x: hidden; overflow-wrap: break-word; }

/* Responsive */
@media (max-width: 960px) {
    .links { display: none; }
    .hero-grid, .two-col { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .strip-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { justify-content: center; }
    .footer-links { justify-content: center; }
}
@media (max-width: 600px) {
    .hero { padding: 3.5rem 0 4rem; }
    .section { padding: 3.5rem 0; }
    .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
    .mock-stats { grid-template-columns: 1fr 1fr 1fr; }
    .mock-stats b { font-size: .85rem; }
    .brand small { display: none; }
}

/* "New" tag on feature cards */
.feature { position: relative; }
.tag-new { position: absolute; top: 1rem; right: 1rem; background: rgba(26, 127, 75, .12); color: var(--in); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; }
.feature .tag-new + h4 { padding-right: 3.2rem; }

/* What's new: release timeline */
.release-pill { display: inline-block; margin-left: .4rem; padding: .15rem .65rem; border-radius: 999px; background: rgba(31, 111, 235, .1); color: var(--accent); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.releases { list-style: none; padding: 0; margin: 2.5rem auto 0; max-width: 880px; position: relative; }
.releases::before { content: ""; position: absolute; left: 118px; top: .6rem; bottom: .6rem; width: 2px; background: var(--border); }
.release { display: grid; grid-template-columns: 100px 1fr; gap: 2.2rem; margin-bottom: 1.25rem; position: relative; }
.release::before { content: ""; position: absolute; left: 112px; top: 1.45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-alt); border: 3px solid var(--muted); }
.release.major::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(31, 111, 235, .18); }
.release-meta { text-align: right; padding-top: 1.1rem; }
.release-meta b { display: block; font-size: 1.1rem; }
.release-meta span { color: var(--muted); font-size: .82rem; }
.release-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); min-width: 0; }
.release.major .release-card { border-top: 3px solid var(--accent); }
.release-card p { color: var(--muted); margin: 0; }
.muted-note { color: var(--muted); font-size: .92rem; margin: 1.5rem 0 0; }
@media (max-width: 600px) {
    .releases::before { left: 7px; }
    .release { grid-template-columns: 1fr; gap: .4rem; padding-left: 1.8rem; }
    .release::before { left: 1px; top: .3rem; }
    .release-meta { text-align: left; padding-top: 0; display: flex; gap: .6rem; align-items: baseline; }
}

/* Request a demo */
.demo-section { background: radial-gradient(900px 400px at 0% 0%, rgba(31, 111, 235, .12), transparent 60%), var(--bg-alt); }
.demo-shell { display: grid; grid-template-columns: .9fr 1.1fr; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(15, 27, 45, .16); border: 1px solid var(--border); background: var(--surface); }
.demo-shell > * { min-width: 0; }
.demo-aside { background: radial-gradient(600px 300px at 100% 0%, rgba(31, 111, 235, .45), transparent 65%), linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding: 2.75rem 2.5rem; display: flex; flex-direction: column; }
.demo-aside .eyebrow { color: #8fb8ff; }
.demo-aside h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.demo-lead { color: #c6d2e2; }
.demo-perks { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; gap: 1.1rem; }
.demo-perks li { display: flex; gap: .9rem; align-items: flex-start; }
.demo-perks b { display: block; }
.demo-perks small { color: #aab6c8; font-size: .88rem; }
.perk-icon { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.perk-icon svg, .done-icon svg, .input-icon svg, .demo-form .note svg, #demo-submit svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.perk-icon svg { width: 1.2rem; height: 1.2rem; color: #8fb8ff; }
.demo-signin { margin: auto 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); color: #c6d2e2; font-size: .92rem; }
.demo-signin a { color: #fff; font-weight: 600; text-decoration: none; }
.demo-signin a:hover { text-decoration: underline; }

.demo-main { padding: 2.5rem; }
.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.demo-form .field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; margin: 0; }
.demo-form .full { grid-column: 1 / -1; }
.demo-form label, .demo-form legend { font-weight: 600; font-size: .9rem; }
.demo-form label em { color: var(--out); font-style: normal; }
.demo-form .opt { color: var(--muted); font-weight: 400; font-size: .8rem; margin-left: .25rem; }
.demo-form input:not([type=radio]), .demo-form textarea { font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; padding: .75rem .9rem; width: 100%; transition: border-color .15s ease, box-shadow .15s ease; }
.demo-form textarea { resize: vertical; min-height: 110px; }
.demo-form input::placeholder, .demo-form textarea::placeholder { color: var(--muted); opacity: .7; }
.demo-form input:not([type=radio]):focus, .demo-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 111, 235, .15); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: .85rem; top: 50%; width: 1.1rem; height: 1.1rem; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input:not([type=radio]) { padding-left: 2.6rem; }
.input-icon:focus-within svg { color: var(--accent); }

.field-error { display: none; color: var(--out); font-size: .82rem; }
.field.invalid .field-error { display: block; }
.field.invalid input { border-color: var(--out) !important; box-shadow: 0 0 0 4px rgba(194, 54, 43, .12) !important; }
.counter { align-self: flex-end; color: var(--muted); font-size: .78rem; margin-top: -.15rem; }

.use-for { border: 0; padding: 0; }
.use-for legend { padding: 0; margin-bottom: .4rem; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: .35rem; }
.segmented label { position: relative; margin: 0; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: .6rem .5rem; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.segmented input:checked + span { background: var(--surface); color: var(--accent); box-shadow: 0 2px 8px rgba(15, 27, 45, .12), inset 0 0 0 1.5px var(--accent); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.submit-row { margin-top: .3rem; }
.btn-block { width: 100%; padding: .95rem 1.35rem; font-size: 1.02rem; border: 0; cursor: pointer; font-family: inherit; background: linear-gradient(120deg, var(--accent), #0f4fb8); box-shadow: 0 10px 24px rgba(31, 111, 235, .3); }
.btn-block:hover { background: linear-gradient(120deg, var(--accent-2), #0c3f94); }
#demo-submit svg { width: 1.15rem; height: 1.15rem; transition: transform .15s ease; }
#demo-submit:hover svg { transform: translateX(3px); }
#demo-submit.sending { opacity: .8; cursor: progress; transform: none; }
#demo-submit.sending svg { display: none; }
.demo-form .note { display: flex; align-items: center; justify-content: center; gap: .4rem; color: var(--muted); font-size: .84rem; margin: .8rem 0 0; }
.demo-form .note svg { width: .95rem; height: .95rem; flex: none; }
.demo-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.demo-done { text-align: center; padding: 2.5rem 1rem; }
.demo-done[hidden], .demo-form[hidden], .form-msg[hidden] { display: none; }
.done-icon { display: inline-grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 50%; background: rgba(26, 127, 75, .12); color: var(--in); margin-bottom: 1.2rem; animation: pop .35s ease-out; }
.done-icon svg { width: 2rem; height: 2rem; stroke-width: 2.5; }
.demo-done p { color: var(--muted); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.form-msg { margin-bottom: 1.25rem; padding: .9rem 1.1rem; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.form-msg.err { background: rgba(194, 54, 43, .1); color: var(--out); border: 1px solid rgba(194, 54, 43, .3); }

@media (max-width: 960px) {
    .demo-shell { grid-template-columns: 1fr; }
    .demo-aside { padding: 2rem 1.75rem; }
    .demo-perks { margin-bottom: 1.4rem; }
}
@media (max-width: 600px) {
    .demo-main { padding: 1.5rem 1.25rem; }
    .demo-form { grid-template-columns: 1fr; }
    .segmented span { font-size: .82rem; padding: .55rem .3rem; }
}
@media (prefers-reduced-motion: reduce) {
    .done-icon { animation: none; }
    .segmented span, #demo-submit svg { transition: none; }
}

/* Live demo: a link to the sign-in page, which lists the demo logins (app 0.35.0) */
.live-demo { background: var(--bg-alt); padding: 3.5rem 0; }
.live-card { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 20px; padding: 2.2rem 2.5rem; box-shadow: var(--shadow); }
.live-card > div { flex: 1 1 420px; min-width: 0; }
.live-card .eyebrow { color: #8fb8ff; }
.live-card h2 { margin-bottom: .5rem; }
.live-card p { color: #c6d2e2; margin: 0; }
.live-card .btn { flex: none; }
@media (max-width: 600px) { .live-card { padding: 1.6rem 1.3rem; } .live-card .btn { width: 100%; } }

/* Plans (0.45.1) */
.cycle-switch { display: flex; justify-content: center; gap: .4rem; margin: -1rem 0 .5rem; }
.cycle-btn { font: inherit; font-weight: 600; padding: .45rem 1.1rem; border-radius: 999px; border: 2px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.cycle-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); justify-content: center; gap: 1.1rem; }
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); min-width: 0; }
.plan-desc { color: var(--muted); margin: 0 0 .8rem; font-size: .95rem; }
.plan-price b { font-size: 1.8rem; letter-spacing: -.01em; }
.plan-price span { color: var(--muted); margin-left: .35rem; }
.plan-gst { color: var(--muted); font-size: .85rem; margin: .1rem 0 0; }
.plan ul { margin: 1rem 0 1.2rem; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }
.plan .btn { margin-top: auto; }
#plans .group { text-align: center; }
