/* Rapids Funding: one stylesheet for every page. Palette from the logo: navy, rapids blue, slate grey. */
:root {
  --navy: #0b4160; --navy-2: #072c42; --sky: #14a3d4; --sky-2: #0e86b0; --sky-soft: #e7f6fc; --grey: #63636b;
  --ink: #0d1b26; --muted: #55606b; --line: #e2e8ee; --bg: #ffffff; --bg-2: #f5f9fb; --ok: #0f7b4b; --bad: #b42318;
  --r: 14px; --shadow: 0 18px 40px -24px rgba(7, 44, 66, 0.45); --w: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--sky-2); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--navy-2); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { display: block; height: 38px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--sky-2); }
.top .btn { margin-left: 4px; }
/* Mobile menu: a native <details>, so it works without JavaScript */
.mnav { display: none; margin-left: auto; }
.mnav summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 700; color: var(--navy); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav nav { position: absolute; left: 0; right: 0; top: 72px; display: flex; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 20px 16px; box-shadow: var(--shadow); }
.mnav nav a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
@media (max-width: 920px) { .mnav { display: block; } .nav, .top > .wrap > .btn { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; font: inherit; font-weight: 700; color: #fff; background: var(--sky); border: 0; border-radius: 12px; text-decoration: none; cursor: pointer; transition: background 0.15s, transform 0.15s; white-space: nowrap; }
.btn:hover { background: var(--sky-2); }
.btn:active { transform: translateY(1px); }
.btn.navy { background: var(--navy); } .btn.navy:hover { background: var(--navy-2); }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--sky); color: var(--sky-2); }
.btn.lg { padding: 16px 28px; font-size: 1.05rem; }
.btn.light { background: #fff; color: var(--navy); } .btn.light:hover { background: var(--sky-soft); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 55%, #0d5a83 100%); }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #5cc8ee; }
.hero .lead { font-size: 1.2rem; color: rgba(255, 255, 255, 0.86); max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .actions .ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.hero .actions .ghost:hover { border-color: #fff; color: #fff; }
.waves { position: absolute; inset: auto 0 0 0; z-index: 1; height: 140px; width: 100%; }
.hero-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 26px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55); }
.hero-card h3 { margin-bottom: 14px; }
.hero-card ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; }
.page-hero { background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #fff; position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 76px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.page-hero p { color: rgba(255, 255, 255, 0.85); max-width: 680px; font-size: 1.1rem; margin: 0; }
.crumbs { font-size: 0.85rem; margin-bottom: 12px; color: rgba(255, 255, 255, 0.7); }
.crumbs a { color: #9fdcf3; text-decoration: none; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 84px; } }

/* Sections */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 700px; margin-bottom: 36px; }
.kicker { display: inline-block; margin-bottom: 10px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-2); }
.lead { font-size: 1.12rem; color: var(--muted); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.card { display: block; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: inherit; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
a.card:hover { border-color: #b9e3f3; box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--sky-2); }
.ico { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; color: var(--sky-2); background: var(--sky-soft); border-radius: 13px; }
.ico svg { width: 24px; height: 24px; }
.tick { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; color: #fff; background: var(--sky); border-radius: 50%; }
.tick svg { width: 14px; height: 14px; }
.list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: flex-start; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding: 26px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; font-weight: 800; color: #fff; background: var(--navy); border-radius: 50%; }
.step p { color: var(--muted); margin: 0; }

/* Product detail */
.product { scroll-margin-top: 90px; padding: 34px 0; border-top: 1px solid var(--line); }
.product:first-child { border-top: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 18px 0; }
.fact { padding: 14px 16px; background: var(--bg-2); border-radius: 12px; }
.fact b { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
.note { padding: 14px 18px; border-left: 4px solid var(--sky); background: var(--sky-soft); border-radius: 0 12px 12px 0; color: var(--navy-2); }

/* CTA band */
.band { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, var(--navy), #0d5a83); border-radius: 22px; padding: 46px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0 0 6px; }
.band p { margin: 0; color: rgba(255, 255, 255, 0.85); }

/* Forms */
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.form legend { font-weight: 800; color: var(--navy-2); font-size: 1.1rem; margin-bottom: 8px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } .form { padding: 22px 18px; } }
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
label .opt { font-weight: 500; color: var(--muted); }
input, select, textarea { width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #cfd8e0; border-radius: 10px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(20, 163, 212, 0.18); }
textarea { min-height: 96px; resize: vertical; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 18px; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px; font-size: 0.9rem; line-height: 1.55; color: #33414d; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sky-2); }
.consent label { font-weight: 500; font-size: inherit; margin: 0; }
.fine { font-size: 0.85rem; color: var(--muted); }
.alert { padding: 12px 16px; border-radius: 10px; background: #fef3f2; color: var(--bad); border: 1px solid #fecdca; margin-bottom: 18px; }
.hp { position: absolute; left: -5000px; height: 1px; overflow: hidden; }

/* Messages (sample texts) */
.sms { display: grid; gap: 10px; max-width: 520px; }
.bubble { padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: #eef2f5; font-size: 0.95rem; }
.bubble.me { justify-self: end; border-radius: 18px 18px 6px 18px; background: var(--sky); color: #fff; }
.bubble small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.65; margin-bottom: 2px; }

/* Legal pages */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { margin-top: 1.4em; }
.legal li { margin-bottom: 0.4em; }
.legal .callout { padding: 16px 20px; border: 1.5px solid #b9e3f3; background: var(--sky-soft); border-radius: 12px; font-weight: 600; color: var(--navy-2); }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { margin: 0; flex: none; }
.contact-list b { display: block; }

/* Footer */
.foot { background: var(--navy-2); color: rgba(255, 255, 255, 0.78); padding: 60px 0 34px; margin-top: 0; font-size: 0.95rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: #9fdcf3; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot .logo { height: 40px; width: auto; margin-bottom: 14px; }
.disclosure { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.85rem; color: rgba(255, 255, 255, 0.66); }
.disclosure p { margin: 0 0 6px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } .band { padding: 30px 22px; } .section { padding: 56px 0; } }
