:root {
  --ink: #14161A; --blue: #2D3A8C; --amber: #F2A900; --concrete: #E6E4DF; --paper: #FAFAF7;
  --green: #3F8F5E; --red: #C0392B; --ink2: #3a3d44; --ink3: #6b6e75;
  --head: 'Bricolage Grotesque', system-ui, sans-serif; --body: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--blue); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.02em; margin: 0; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(250,250,247,.9); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--concrete); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 700 19px/1 var(--head); letter-spacing: -.03em; }
.mark { width: 22px; height: 22px; background: var(--blue); position: relative; clip-path: polygon(0 0, 62% 0, 100% 38%, 100% 100%, 0 100%); }
.mark::after { content: ""; position: absolute; right: 0; top: 0; width: 38%; height: 38%; background: var(--amber); clip-path: polygon(0 0, 0 100%, 100% 100%); }
.links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.links a { color: var(--ink2); text-decoration: none; }
.links a:hover { color: var(--ink); }
.btn { display: inline-block; background: var(--blue); color: #fff !important; border-radius: 9px; padding: 9px 15px; font-weight: 600; font-size: 14px; text-decoration: none; border: 0; cursor: pointer; font-family: var(--body); }
.btn:hover { background: #24307a; }
.btn.lg { padding: 13px 22px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.ghost { color: var(--blue); font-weight: 600; text-decoration: none; padding: 13px 6px; }
@media (max-width: 760px) { .links a:not(.btn):not([hreflang]) { display: none; } .links { gap: 14px; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 20px; }
.sub { font-size: 18px; color: var(--ink2); max-width: 500px; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fine { font-size: 13px; color: var(--ink3); margin-top: 18px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }
.hero-card { position: relative; justify-self: center; width: 100%; max-width: 430px; margin-top: 18px; }
.hero-card::before { content: ""; position: absolute; right: -12px; top: -12px; width: 62px; height: 62px; background: var(--amber); clip-path: polygon(0 0, 100% 100%, 100% 0); z-index: 1; }
.app { position: relative; z-index: 0; background: #fff; border: 1px solid var(--concrete); border-radius: 14px; box-shadow: 0 24px 60px -24px rgba(20,22,26,.35); padding: 18px; font-size: 13px; }
.app-t { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 12px; }
.app-t span { color: var(--ink3); font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.kpi { background: var(--paper); border: 1px solid var(--concrete); border-radius: 9px; padding: 9px; }
.kpi small { display: block; color: var(--ink3); font-size: 11px; }
.kpi b, .line span:last-child { font-variant-numeric: tabular-nums; }
.kpi b { font-size: 16px; }
.ok { color: var(--green); } .owe { color: var(--red); }
.line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #F0EEE9; }
.chip { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 6px; background: #FDF3D6; color: #8a6100; margin-left: 6px; }
.chip.g { background: #E3F1E8; color: #2d6b45; margin-left: 0; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 40px; } .hero-card { max-width: 430px; } }
@media (max-width: 480px) { .hero-card { max-width: 100%; } .hero-card::before { width: 46px; height: 46px; right: -8px; top: -8px; } }

/* sections */
.problem { font: 600 clamp(22px, 3vw, 30px)/1.3 var(--head); letter-spacing: -.02em; text-align: center; max-width: 820px; padding-top: 40px; padding-bottom: 56px; border-top: 1px solid var(--concrete); margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 600; color: var(--blue); margin: 0 0 8px; }
section h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin-bottom: 12px; }
.lead { color: var(--ink2); font-size: 18px; max-width: 640px; margin: 0 0 36px; }
.journey, .features { padding-top: 64px; padding-bottom: 64px; }

/* journey */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { display: flex; gap: 14px; background: #fff; border: 1px solid var(--concrete); border-radius: 14px; padding: 20px; min-width: 0; }
.n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.step > div { min-width: 0; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { margin: 0 0 12px; color: var(--ink2); font-size: 15px; }
.vig { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; background: var(--paper); border: 1px dashed var(--concrete); border-radius: 8px; padding: 8px 10px; font-size: 13px; color: var(--ink2); max-width: 100%; overflow-wrap: anywhere; }
.vig code { font-size: 12px; color: var(--ink); word-break: break-all; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* feature tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { background: #fff; border: 1px solid var(--concrete); border-radius: 14px; padding: 18px 20px; min-width: 0; }
.tile[open] { grid-column: 1 / -1; border-color: var(--blue); }
.tile summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.tile summary::-webkit-details-marker { display: none; }
.tile summary b { font: 700 19px/1.2 var(--head); color: var(--blue); }
.tile summary span { grid-column: 1; color: var(--ink2); }
.tile summary em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 13px; color: var(--blue); white-space: nowrap; }
.tile summary em::after { content: " ▾"; }
.tile[open] summary em::after { content: " ▴"; }
.tile ul { margin: 14px 0 0; padding-left: 18px; columns: 2; column-gap: 32px; color: var(--ink2); }
.tile li { break-inside: avoid; margin-bottom: 5px; }
.tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 720px) { .tiles { grid-template-columns: 1fr; } .tile ul { columns: 1; } .tile:last-child:nth-child(odd) { grid-column: auto; } }

/* trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 48px; padding-bottom: 72px; border-top: 1px solid var(--concrete); }
.trust h3 { font-size: 19px; margin-bottom: 6px; }
.trust p { margin: 0; color: var(--ink2); }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

/* form */
.access { background: var(--ink); color: var(--paper); padding: 72px 0; }
.access h2 { color: var(--paper); }
.access .lead { color: #c9ccd3; }
.access-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
#ea-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 24px; min-width: 0; }
#ea-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; min-width: 0; }
#ea-form .full { grid-column: 1 / -1; }
#ea-form input, #ea-form select, #ea-form textarea { font: 15px var(--body); padding: 11px 12px; border: 1px solid var(--concrete); border-radius: 9px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
#ea-form input:focus, #ea-form select:focus, #ea-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
#ea-form .bad { border-color: var(--red); }
#ea-form .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink2); }
#ea-form .consent input { margin-top: 3px; width: auto; }
#ea-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin: 0; font-size: 14px; }
.msg.err { color: var(--red); }
.done { grid-column: 1 / -1; text-align: center; padding: 28px 8px; }
.done h3 { font-size: 26px; margin-bottom: 6px; }
@media (max-width: 860px) { .access-in { grid-template-columns: 1fr; } #ea-form { grid-template-columns: 1fr; } }

/* footer, legal */
.foot { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--ink3); }
.foot a { color: var(--ink3); }
.legal { max-width: 720px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: 40px; margin-bottom: 6px; }
.legal h2 { font-size: 22px; margin: 28px 0 6px; }
.legal p { color: var(--ink2); }
/* features not built yet: listed after the available ones, muted, with a tag */
.tile li.soon { color: var(--ink3, #6b7280); }
.soon-tag { display: inline-block; margin-left: 4px; padding: 0 7px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; line-height: 17px; letter-spacing: .02em; vertical-align: 1px; white-space: nowrap; }
