/* Stream Finance — shared styles. Palette: logo blue #2EA4D9, sitewide accent purple #684DF4, form bg #F4F8FF. */

:root {
  /* Legacy token names kept so subpages don't have to be rewritten. Values swapped to new palette. */
  --navy: #0B1030;          /* deep ink, for headings and dark sections */
  --navy-2: #11224d;
  --teal: #684DF4;          /* primary accent / CTA (was teal, now purple) */
  --teal-dark: #4D35C9;
  --brand: #2EA4D9;         /* logo blue, sky accent */
  --brand-deep: #1E84B4;
  --accent: #684DF4;        /* alias of --teal for clarity */
  --accent-deep: #4D35C9;
  --cream: #F8FAFF;
  --sand: #F4F8FF;          /* form background tint */
  --ink: #0B1030;
  --muted: #7B83A8;
  --line: #E2E6F5;
  --white: #FFFFFF;
  --danger: #D74B4B;
  --success: #18B26B;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(11,16,48,.05), 0 2px 8px rgba(11,16,48,.04);
  --shadow-md: 0 10px 28px rgba(11,16,48,.10);
  --shadow-lg: 0 24px 60px rgba(11,16,48,.16);
  --max: 1180px;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--teal-dark); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; color: var(--navy); margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0 0 1em; color: #1b2436; }
.small { font-size: .86rem; color: var(--muted); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: .7rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,239,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); font-weight: 700; letter-spacing: .01em; }
.brand span { color: var(--brand); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: .95rem; color: var(--navy); font-weight: 500; }
.nav-links a:hover { color: var(--teal-dark); }
.nav-cta { background: var(--navy); color: var(--white) !important; padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--teal-dark); color: var(--white) !important; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--cream); border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 12px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem; cursor: pointer; border: 0; transition: transform .1s ease, background .15s ease, color .15s ease, box-shadow .15s ease; text-decoration: none; }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 20px 34px; font-size: 1.08rem; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(31,182,168,.18) 0, transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(11,30,57,.08) 0, transparent 50%),
    var(--cream);
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero h1 strong { color: var(--teal-dark); font-weight: 600; }
.hero .lead { font-size: 1.2rem; color: #2a3448; max-width: 560px; margin: 20px 0 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust strong { color: var(--navy); font-weight: 700; }

.hero-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.hero-card h3 { margin-top: 0; }

/* Form elements */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,182,168,.18);
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label {
  flex: 1 1 calc(33% - 10px); min-width: 120px; text-align: center;
  padding: 12px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--white); cursor: pointer; font-weight: 600; color: var(--navy); font-size: .9rem;
  transition: all .12s ease;
}
.radio-row input { display: none; }
.radio-row input:checked + span, .radio-row label.is-active { color: var(--white); }
.radio-row label:has(input:checked) { background: var(--navy); border-color: var(--navy); color: var(--white); }
.radio-row label:hover { border-color: var(--teal); }

/* Logo row / trust bar */
.trust-bar { padding: 28px 0; background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.trust-inner .small { min-width: 200px; }
.trust-logos { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; color: var(--muted); font-weight: 600; font-size: .95rem; }

/* Grid blocks */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d4cdbb; }
.card h3 { margin-top: 0; }
.card .card-cta { display: inline-flex; gap: 6px; font-weight: 600; color: var(--teal-dark); margin-top: 8px; }
.card .card-cta:after { content: "→"; transition: transform .15s ease; }
.card:hover .card-cta:after { transform: translateX(3px); }

/* Dark section */
.dark {
  background:
    radial-gradient(circle at 90% 10%, rgba(31,182,168,.22) 0, transparent 45%),
    var(--navy);
  color: #EEF1F6;
}
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark p { color: #C7CEDA; }
.dark .btn-primary { background: var(--teal); color: var(--navy); }
.dark .btn-primary:hover { background: var(--white); color: var(--navy); }
.dark .btn-ghost { border-color: #C7CEDA; color: #EEF1F6; }

/* Numbered steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 24px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step:before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 18px; right: 22px; font-family: var(--font-head); font-size: 2.2rem; color: var(--teal); opacity: .45; }
.step h3 { margin-top: 0; padding-right: 50px; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.tmt { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.tmt .stars { color: #F5B301; margin-bottom: 10px; }
.tmt .who { margin-top: 14px; font-size: .85rem; color: var(--muted); font-weight: 600; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; cursor: pointer; }
.faq details[open] { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.faq summary { font-weight: 600; color: var(--navy); list-style: none; outline: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; font-size: 1.6rem; color: var(--teal-dark); transition: transform .15s ease; }
.faq details[open] summary:after { content: "–"; }
.faq p { margin: 12px 0 0; color: #2a3448; }

/* Final CTA band */
.cta-band { padding: 80px 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); max-width: 760px; margin: 0 auto 18px; }
.cta-band p { color: #C7CEDA; max-width: 620px; margin: 0 auto 26px; }

/* Footer */
footer.site-footer { background: var(--navy); color: #C7CEDA; padding: 56px 0 24px; font-size: .92rem; }
footer .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 820px) { footer .foot-grid { grid-template-columns: 1fr 1fr; } }
footer h4 { color: var(--white); margin: 0 0 14px; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; }
footer a { color: #C7CEDA; display: block; margin-bottom: 8px; }
footer a:hover { color: var(--teal); }
.disclosure { border-top: 1px solid #22365a; padding-top: 24px; font-size: .8rem; color: #8A97AD; line-height: 1.6; }

/* Calculator */
.calc { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-md); }
.calc-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
@media (max-width: 820px) { .calc-grid { grid-template-columns: 1fr; } }
.calc input[type=range] { width: 100%; accent-color: var(--teal); }
.calc-summary { background: var(--navy); color: var(--white); border-radius: 14px; padding: 24px; }
.calc-summary .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #2a4370; }
.calc-summary .row:last-child { border-bottom: 0; padding-top: 14px; font-size: 1.2rem; font-weight: 700; }
.calc-value { font-family: var(--font-head); font-size: 1.3rem; color: var(--teal); }

/* Apply page */
.apply-wrap { max-width: 720px; margin: 48px auto; background: var(--white); padding: 40px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.apply-wrap h1 { font-size: 2rem; }
.step-indicator { display: flex; gap: 10px; margin-bottom: 28px; }
.step-indicator div { flex: 1; height: 6px; background: var(--line); border-radius: 3px; transition: background .2s ease; }
.step-indicator div.active { background: var(--teal); }
.step-indicator div.done { background: var(--navy); }
.form-step { display: none; }
.form-step.active { display: block; animation: slideIn .25s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: #E8F6F3; color: var(--teal-dark); font-weight: 600; font-size: .78rem; border-radius: 999px; }
.badge-sand { background: var(--sand); color: var(--navy); }

.highlight-box { background: #E8F6F3; border-left: 4px solid var(--teal); padding: 16px 18px; border-radius: 8px; margin: 20px 0; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-640 { max-width: 640px; }
