/* FinBridge: light, airy, deep navy ink; the bridge arch from the logo links "give" and "get". */
:root[data-brand="finbridge"] {
  --bg: #f6f7fa;
  --bg-alt: #eef0f5;
  --card: #ffffff;
  --fg: #1f2a36;
  --muted: #69727f;
  --line: #dde1e8;
  --soft: #f1f3f7;
  --accent: #1f2a36;
  --accent-hover: #2d3b4b;
  --accent-ink: #ffffff;
  --link: #2f5d8a;
  --danger: #d33a2c;
  --success: #1f8a55;
  --shadow: 0 1px 2px rgba(31, 42, 54, .05), 0 10px 30px rgba(31, 42, 54, .06);
  --shadow-lg: 0 2px 6px rgba(31, 42, 54, .05), 0 30px 80px rgba(31, 42, 54, .12);
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

body { position: relative; isolation: isolate; letter-spacing: -.012em; }
a { color: var(--link); }
.fb-waves { position: absolute; inset: 0 0 auto; width: 100%; height: 900px; z-index: -1; pointer-events: none; }

/* Nav */
.nav { background: color-mix(in srgb, var(--bg) 78%, transparent); }
.nav-inner { height: 64px; }
.brand img { display: block; height: 40px; width: auto; }
.nav-cta { min-height: 38px; padding: 0 20px; font-size: 14px; margin-left: 8px; }
@media (max-width: 720px) { .nav-cta { margin-left: auto; } }
.btn-primary { font-weight: 600; }

/* Hero */
.fb-hero { text-align: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: 36px; }
.fb-arch { display: block; width: min(300px, 64vw); height: auto; margin: 0 auto 28px; }
.fb-hero .eyebrow { color: var(--link); }
.fb-hero h1 { font-size: clamp(40px, 7vw, 80px); font-weight: 700; letter-spacing: -.045em; }
.fb-ink { color: var(--muted); }

/* Calculator: give ⌒ get, joined by a small bridge */
.calc-section .calc { max-width: 980px; padding: clamp(20px, 3vw, 32px); }
.fb-calc-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.fb-bridge { position: relative; display: grid; place-items: center; }
.fb-bridge > svg { display: none; }
@media (max-width: 859px) { .fb-hint-pad { display: none; } }
@media (min-width: 860px) {
  .fb-calc-grid { grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: center; }
  .fb-bridge > svg { display: block; position: absolute; width: 120px; top: 50%; transform: translateY(-140%); fill: none; stroke: var(--line); stroke-width: 3; }
  .fb-bridge .swap { margin: 0; transform: rotate(90deg); }
  .fb-bridge .swap.spin { transform: rotate(270deg); }
}
.field-box { background: var(--soft); }
.select-pill select { background: #fff; box-shadow: 0 1px 3px rgba(31, 42, 54, .12); }
.swap { background: var(--fg); color: #fff; border-color: var(--card); }
.swap:hover { background: var(--accent-hover); }
.calc-meta { margin-top: 22px; }

/* Features */
.fb-features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.fb-features .card { padding: 32px 28px; transition: transform .4s var(--spring), box-shadow .4s; }
.fb-features .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fb-features svg { width: 52px; height: 52px; padding: 12px; border-radius: 14px; background: var(--soft); fill: none; stroke: var(--fg); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.fb-features h3 { font-size: 21px; letter-spacing: -.025em; margin-bottom: 8px; }
.fb-features p { color: var(--muted); font-size: 16px; }

/* Steps joined by arches */
.fb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 820px) { .fb-steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.fb-steps li { position: relative; }
.fb-step-num { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 50%; border: 2px solid var(--fg); font-weight: 700; font-size: 18px; background: var(--bg); }
@media (min-width: 820px) {
  .fb-steps li:not(:last-child)::after {
    content: ""; position: absolute; top: -6px; left: 56px; right: -8px; height: 30px;
    border: 2px solid var(--line); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  }
}
.fb-steps h3 { font-size: 21px; letter-spacing: -.025em; margin-bottom: 6px; }
.fb-steps p { color: var(--muted); font-size: 16px; }

.faq summary { font-weight: 600; }

/* Contacts: one card with a 4-up grid inside */
.fb-contact .contacts { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.fb-contact { padding: clamp(28px, 5vw, 56px); background: linear-gradient(135deg, #ffffff, #f1f3f8); }
.fb-contact .contact { padding: 18px 0 0; box-shadow: none; border-top: 1px solid var(--line); border-radius: 0; }
.fb-contact a.contact:hover { transform: none; box-shadow: none; }
a.contact .contact-value { color: var(--fg); }

.fb-footer { display: flex; align-items: center; gap: 14px; }
.footer { background: var(--bg-alt); }

/* Order sheet */
.sheet::backdrop { background: rgba(31, 42, 54, .25); }
.check input { accent-color: var(--fg); }
