/* ============================================================
   SFI Loans — shared site design system (interior pages).
   The scroll home (index.html) keeps its own cinematic engine + inline styles.
   These styles power the standard pages: About, Loan Programs, Deal Analyzer,
   Resources, Get Prequalified, Refer a Deal. Same SFI palette + type as the home.
   ============================================================ */

:root {
  --carbon: #06140e;
  --paper: #f4f1e9;
  --paper-2: #ffffff;
  --ink: #21322b;
  --ink-soft: #45564c;
  --heritage: #C8A24B;   /* gold */
  --gold-deep: #7a5f1e;
  --petrol: #0B3D2E;     /* green */
  --petrol-2: #0f4d38;
  --petrol-ink: #082a1e;
  --line: rgba(11, 61, 46, .16);
  --display: "Poppins", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 4.2vw, 64px);
  --wrap: 1200px;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(6, 20, 14, .12);
  --shadow-sm: 0 8px 22px rgba(6, 20, 14, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--petrol); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--petrol); line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--heritage); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 14px; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-soft); line-height: 1.5; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--body); font-weight: 700; font-size: 15px; line-height: 1; padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, filter .15s ease, background .15s ease, color .15s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--gold { background: var(--heritage); color: #1a1205; }
.btn--gold:hover { filter: brightness(1.06); }
.btn--green { background: var(--petrol); color: var(--paper); }
.btn--green:hover { background: var(--petrol-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--petrol); border-color: rgba(11, 61, 46, .4); }
.btn--ghost:hover { background: rgba(11, 61, 46, .06); }
.btn--ondark { background: var(--heritage); color: #1a1205; }
.btn--ondark-ghost { background: transparent; color: var(--paper); border-color: rgba(244, 241, 233, .5); }
.btn--ondark-ghost:hover { background: rgba(244, 241, 233, .12); color: #fff; }
.btn--lg { font-size: 16px; padding: 16px 28px; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--petrol); border-bottom: 1px solid rgba(200, 162, 75, .22); }
.site-header__bar { display: flex; align-items: center; gap: 22px; padding: 12px var(--gutter); max-width: 1360px; margin-inline: auto; }
.brand-logo { height: 56px; width: auto; border-radius: 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 26px); margin-left: 8px; }
.site-nav a { color: var(--paper); font-size: 13px; font-weight: 600; letter-spacing: .04em; opacity: .9; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { opacity: 1; color: var(--heritage); text-decoration: none; }
.site-nav a.is-current { color: var(--heritage); opacity: 1; }
.site-header__end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.site-header__phone { color: var(--paper); font-weight: 700; font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
.site-header__phone:hover { color: var(--heritage); text-decoration: none; }
.nav-call, .nav-cta { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; }
.nav-toggle span { display: block; height: 2.5px; background: var(--paper); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header__bar { gap: 12px; }
  .nav-toggle { display: flex; }
  .site-header__end { display: none; }
  .site-nav {
    position: fixed; left: 0; right: 0; top: 80px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--petrol-ink); border-top: 1px solid rgba(200, 162, 75, .25); margin: 0;
    padding: 8px var(--gutter) 20px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease; max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .site-header.nav-open .site-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 15px 4px; font-size: 16px; border-bottom: 1px solid rgba(244, 241, 233, .1); letter-spacing: .02em; }
  .nav-call, .nav-cta { display: block; color: var(--heritage); font-weight: 800; }
  .brand-logo { height: 48px; }
}

/* ---------- Page banner (interior hero) : green on beige, two-column ---------- */
.banner { position: relative; overflow: hidden; background: linear-gradient(180deg, #efeadf, var(--paper)); color: var(--ink); padding: clamp(52px, 7.5vw, 96px) 0; }
.banner::after { content: ""; position: absolute; right: -6%; top: -22%; width: 42%; height: 150%; background: radial-gradient(closest-side, rgba(11, 61, 46, .08), transparent 70%); pointer-events: none; }
.banner__wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.banner__copy { min-width: 0; }
.banner .eyebrow { color: var(--gold-deep); }
.banner h1 { color: var(--petrol); font-size: clamp(34px, 5vw, 58px); max-width: 16ch; }
.banner .lead { color: var(--ink-soft); max-width: 52ch; }
.banner__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.banner__aside { position: relative; z-index: 1; }
.banner--solo .banner__wrap { grid-template-columns: 1fr; }
@media (max-width: 860px) { .banner__wrap { grid-template-columns: 1fr; } .banner__aside { max-width: 460px; } }

/* ---------- Hero visual cards (right column of interior heroes) ---------- */
.hero-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.hero-card__title { font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
.hero-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 2px; border-top: 1px solid var(--line); text-decoration: none; }
.hero-row:first-of-type { border-top: 0; }
.hero-row b { color: var(--petrol); font-size: 15.5px; }
.hero-row__meta { color: var(--ink-soft); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero-row__meta i { color: var(--heritage); font-style: normal; font-weight: 800; transition: transform .15s ease; }
.hero-row:hover { text-decoration: none; }
.hero-row:hover b { color: var(--petrol-2); }
.hero-row:hover .hero-row__meta i { transform: translateX(3px); }
.next-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.next-steps li { counter-increment: s; position: relative; padding: 0 0 16px 42px; }
.next-steps li:last-child { padding-bottom: 0; }
.next-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--heritage); color: #1a1205; font-family: var(--display); font-weight: 800; font-size: 14px; }
.next-steps b { display: block; color: var(--petrol); font-size: 15.5px; }
.next-steps span { color: var(--ink-soft); font-size: 13.5px; }
.verdict-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--petrol); color: var(--paper); font-family: var(--display); font-weight: 800; padding: 8px 14px; border-radius: 999px; font-size: 15px; margin-bottom: 16px; }
.verdict-badge span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--heritage); color: #1a1205; font-size: 13px; }
.verdict-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.verdict-metrics > div { background: rgba(11, 61, 46, .05); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.verdict-metrics small { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 3px; }
.verdict-metrics b { font-family: var(--display); font-size: 20px; color: var(--petrol); }
.verdict-note { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 108px) 0; }
.section--tint { background: linear-gradient(180deg, #efeadf, var(--paper)); }
.section--green { background: var(--petrol); color: var(--paper); }
.section--green h2, .section--green h3 { color: var(--paper); }
.section__head { max-width: 62ch; margin-bottom: 40px; }
.section__head.center { margin-inline: auto; }
.section h2 { font-size: clamp(28px, 3.6vw, 46px); }
.section h2.big { font-size: clamp(32px, 4.4vw, 56px); }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card__tag { display: inline-block; font-family: var(--body); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); background: rgba(200, 162, 75, .14); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.card__list { list-style: none; margin: 14px 0 20px; padding: 0; }
.card__list li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.45; }
.card__list li::before { content: "\2713"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--heritage); color: #1a1205; font-size: 12px; font-weight: 900; }

/* value / pillar tiles */
.pillar { text-align: left; }
.pillar__ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(11, 61, 46, .08); color: var(--petrol); margin-bottom: 14px; }
.section--green .pillar__ic { background: rgba(200, 162, 75, .18); color: var(--heritage); }
.pillar h3 { font-size: 19px; margin-bottom: 6px; }
.pillar p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.section--green .pillar p { color: #cde0d6; }

/* stats */
.stat { text-align: center; }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 56px); color: var(--heritage); line-height: 1; }
.stat__label { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.section--green .stat__label { color: #cde0d6; }

/* testimonials */
.quote { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.quote .stars { color: var(--heritage); letter-spacing: 2px; margin-bottom: 10px; }
.quote p { font-size: 16px; color: var(--ink); }
.quote .who { font-weight: 700; color: var(--petrol); font-size: 15px; }
.quote .who small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 13px; margin-top: 2px; }

/* ---------- Forms ---------- */
.form { background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 14px; color: var(--petrol); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid rgba(11, 61, 46, .28); border-radius: 11px;
  font-family: var(--body); font-size: 16px; color: var(--ink); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--heritage); outline-offset: 1px; border-color: transparent; }
.form__consent { font-size: 12.5px; color: var(--ink-soft); margin: 4px 0 18px; }
.form__note { font-size: 13px; color: var(--gold-deep); background: rgba(200, 162, 75, .12); border: 1px dashed rgba(200, 162, 75, .5); border-radius: 10px; padding: 10px 13px; margin-bottom: 20px; }
.form .btn { width: 100%; justify-content: center; }
.form__ok { display: none; text-align: center; padding: 8px 0; }
.form__ok h3 { color: var(--petrol); }
.form.is-sent .form__body { display: none; }
.form.is-sent .form__ok { display: block; }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 4px; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--petrol); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--heritage); font-family: var(--body); line-height: 1; flex: 0 0 auto; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 4px 22px; color: var(--ink-soft); font-size: 16px; max-width: 70ch; }

/* ---------- Blog list ---------- */
.post { display: block; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .15s ease; }
.post:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.post .post__cat { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.post h3 { font-size: 20px; margin: 8px 0 6px; }
.post p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.post .post__date { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }

/* ---------- Split (image/copy) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split__media { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--petrol); aspect-ratio: 4 / 3; display: grid; place-items: center; color: rgba(244,241,233,.5); }

/* ---------- Newsletter strip ---------- */
.news { background: var(--petrol); color: var(--paper); border-radius: 20px; padding: clamp(28px, 5vw, 48px); text-align: center; }
.news h2 { color: var(--paper); }
.news form { display: flex; gap: 10px; max-width: 480px; margin: 20px auto 8px; }
.news input { flex: 1; padding: 14px 16px; border: 0; border-radius: 999px; font-size: 16px; font-family: var(--body); }
@media (max-width: 520px) { .news form { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-ink); color: #cde0d6; padding: clamp(48px, 6vw, 72px) 0 32px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { color: var(--paper); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #cde0d6; font-size: 14.5px; display: block; margin-bottom: 9px; }
.site-footer a:hover { color: var(--heritage); text-decoration: none; }
.site-footer__logo { height: 60px; width: auto; border-radius: 12px; margin-bottom: 16px; }
.site-footer__legal { border-top: 1px solid rgba(244, 241, 233, .12); margin-top: 36px; padding-top: 22px; font-size: 12.5px; color: #9fb6ab; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Deal Analyzer embed frame ---------- */
.calc-embed { width: 100%; max-width: 680px; margin: 0 auto; border: 0; height: 900px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); display: block; overflow: hidden; transition: height .22s ease; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* ============ Chat concierge widget (shared) ============ */
.sfi-chat { position: fixed; right: clamp(16px, 2.4vw, 30px); bottom: clamp(16px, 2.4vw, 30px); z-index: 120; font-family: var(--body); }
.sfi-chat *, .sfi-chat *::before, .sfi-chat *::after { box-sizing: border-box; }
.sfi-chat__fab { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-left: auto; border: 0; border-radius: 50%; cursor: pointer; color: var(--paper); background: radial-gradient(120% 120% at 30% 25%, #0f4d38 0%, var(--petrol) 55%, #072318 100%); box-shadow: 0 14px 34px rgba(0, 0, 0, .42), inset 0 0 0 2px rgba(200, 162, 75, .55); transition: transform .18s ease, box-shadow .18s ease; }
.sfi-chat__fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 20px 44px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(200, 162, 75, .85); }
.sfi-chat__fab svg { width: 30px; height: 30px; }
.sfi-chat__fab .sfi-chat__x { display: none; }
.sfi-chat.is-open .sfi-chat__fab .sfi-chat__bubble-ic { display: none; }
.sfi-chat.is-open .sfi-chat__fab .sfi-chat__x { display: block; }
.sfi-chat__pulse { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(200, 162, 75, .55); animation: sfiPulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes sfiPulse { 0% { box-shadow: 0 0 0 0 rgba(200, 162, 75, .5); } 70% { box-shadow: 0 0 0 18px rgba(200, 162, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 162, 75, 0); } }
.sfi-chat.is-open .sfi-chat__pulse { display: none; }
.sfi-chat__notif { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: var(--heritage); color: #1a1205; font-size: 12px; font-weight: 800; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.sfi-chat.is-open .sfi-chat__notif { display: none; }
.sfi-chat__teaser { position: absolute; right: 4px; bottom: 78px; width: min(292px, 76vw); padding: 14px 40px 15px 16px; background: var(--paper); color: var(--carbon); border-radius: 16px 16px 4px 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, .34); border: 1px solid rgba(11, 61, 46, .16); opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom right; pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.sfi-chat__teaser.is-shown { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.sfi-chat.is-open .sfi-chat__teaser { opacity: 0 !important; transform: translateY(10px) scale(.96) !important; pointer-events: none !important; }
.sfi-chat__teaser p { margin: 0; font-size: 14.5px; line-height: 1.4; }
.sfi-chat__teaser strong { color: var(--petrol); }
.sfi-chat__teaser-close { position: absolute; top: 6px; right: 8px; border: 0; background: none; cursor: pointer; font-size: 17px; line-height: 1; color: #8a978f; padding: 4px; }
.sfi-chat__panel { position: absolute; right: 0; bottom: 78px; width: min(376px, calc(100vw - 24px)); height: min(596px, calc(100vh - 108px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--paper); color: var(--carbon); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); border: 1px solid rgba(11, 61, 46, .2); opacity: 0; transform: translateY(16px) scale(.97); transform-origin: bottom right; pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.sfi-chat.is-open .sfi-chat__panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.sfi-chat__head { display: flex; align-items: center; gap: 12px; padding: 15px 16px; background: linear-gradient(150deg, #0f4d38, var(--petrol) 60%, #082a1e); color: var(--paper); }
.sfi-chat__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(200, 162, 75, .7); flex: 0 0 auto; }
.sfi-chat__avatar svg { width: 24px; height: 24px; color: var(--paper); }
.sfi-chat__id { display: flex; flex-direction: column; line-height: 1.2; }
.sfi-chat__id b { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.sfi-chat__status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #cfe0d6; margin-top: 2px; }
.sfi-chat__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #57d38b; box-shadow: 0 0 0 3px rgba(87, 211, 139, .25); }
.sfi-chat__min { margin-left: auto; border: 0; background: none; color: rgba(255, 255, 255, .8); cursor: pointer; font-size: 22px; line-height: 1; padding: 4px 6px; border-radius: 8px; }
.sfi-chat__min:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.sfi-chat__log { flex: 1; overflow-y: auto; padding: 18px 15px 8px; display: flex; flex-direction: column; gap: 11px; background: radial-gradient(140% 90% at 100% 0, rgba(11, 61, 46, .05), transparent 60%), var(--paper); }
.sfi-msg { max-width: 82%; padding: 10px 13px; font-size: 14.5px; line-height: 1.42; border-radius: 15px; }
.sfi-msg--bot { align-self: flex-start; background: #fff; color: #21322b; border: 1px solid rgba(11, 61, 46, .12); border-bottom-left-radius: 5px; box-shadow: 0 2px 10px rgba(6, 20, 14, .06); }
.sfi-msg--user { align-self: flex-end; background: var(--petrol); color: #f2f6f3; border-bottom-right-radius: 5px; }
.sfi-msg b { color: var(--petrol); }
.sfi-msg--user b { color: #fff; }
.sfi-chat__typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid rgba(11, 61, 46, .12); border-radius: 15px; border-bottom-left-radius: 5px; }
.sfi-chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: #9baba2; animation: sfiDot 1.2s infinite ease-in-out; }
.sfi-chat__typing span:nth-child(2) { animation-delay: .2s; } .sfi-chat__typing span:nth-child(3) { animation-delay: .4s; }
@keyframes sfiDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.sfi-chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 15px 8px; }
.sfi-chip { border: 1px solid rgba(11, 61, 46, .32); background: rgba(11, 61, 46, .05); color: var(--petrol); font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 999px; cursor: pointer; transition: background .15s ease, transform .1s ease; font-family: inherit; }
.sfi-chip:hover { background: var(--petrol); color: var(--paper); transform: translateY(-1px); }
.sfi-chip--gold { border-color: rgba(200, 162, 75, .8); background: rgba(200, 162, 75, .16); color: #7a5f1e; }
.sfi-chip--gold:hover { background: var(--heritage); color: #1a1205; }
.sfi-chat__form { padding: 4px 15px 10px; display: none; flex-direction: column; gap: 8px; }
.sfi-chat__form.is-active { display: flex; }
.sfi-chat__form input { width: 100%; padding: 11px 13px; border: 1px solid rgba(11, 61, 46, .28); border-radius: 11px; font-size: 14.5px; font-family: inherit; color: var(--carbon); background: #fff; }
.sfi-chat__form input:focus { outline: 2px solid var(--heritage); outline-offset: 1px; border-color: transparent; }
.sfi-chat__send { padding: 11px 14px; border: 0; border-radius: 11px; background: var(--heritage); color: #1a1205; font-size: 14.5px; font-weight: 800; cursor: pointer; font-family: inherit; transition: filter .15s ease; }
.sfi-chat__send:hover { filter: brightness(1.06); }
.sfi-chat__consent { font-size: 11px; color: #7a887f; line-height: 1.35; margin: 0; }
.sfi-chat__foot { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid rgba(11, 61, 46, .12); background: #fff; }
.sfi-chat__foot input { flex: 1; border: 0; background: none; font-size: 14.5px; font-family: inherit; color: var(--carbon); padding: 6px 4px; }
.sfi-chat__foot input:focus { outline: none; }
.sfi-chat__foot button { border: 0; background: var(--petrol); color: var(--paper); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; flex: 0 0 auto; }
.sfi-chat__foot button:hover { background: #0f4d38; }
.sfi-chat__foot button svg { width: 18px; height: 18px; }
.sfi-chat__brand { text-align: center; font-size: 10.5px; color: #97a49b; padding: 0 0 8px; background: #fff; }
@media (max-width: 480px) { .sfi-chat__panel { width: calc(100vw - 20px); height: calc(100vh - 96px); bottom: 76px; } .sfi-chat__teaser { width: min(272px, 74vw); } }
@media (prefers-reduced-motion: reduce) { .sfi-chat__fab { animation: none !important; } .sfi-chat__pulse { animation: none !important; } }
