/*
 * Branchsolve — branchsolve.html.
 *
 * The look of branchsolve.com: off-white paper (#F8F9FF), slate ink headings in
 * Plus Jakarta Sans 800, a deep green primary (#006E2E), white bordered cards,
 * soft green blobs drifting in the hero, mono step numbers, and a dark slate
 * call-to-action band. Colours are read from branchsolve.com. Light only, like
 * the site.
 *
 * Self-contained on purpose: this page does not load css/main.css, so nothing
 * here touches the other apps' pages. The wordmark lives in /branchsolve/img/.
 */

/* ── Tokens ─────────────────────────────────────────────── */

:root {
  color-scheme: light;
  --paper: #F8F9FF;
  --card: #FFFFFF;
  --ink: #1D2D35;          /* headings, dark band */
  --text: #3D4A3D;         /* body copy */
  --muted: #64748B;
  --line: #E3E8EA;
  --line-2: #BCCAB9;
  --green: #006E2E;
  --green-bright: #00AD4D;
  --green-tint: #E8F4EC;
  --mist: #F4F7F6;
  --sky: #EFF4FF;
  --amber-bg: #FDF1DC;
  --amber: #8F5D00;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ── Base ───────────────────────────────────────────────── */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Type ───────────────────────────────────────────────── */

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
.display { font-size: clamp(40px, 5.6vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.h2 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--green); }
.lead { margin: 20px 0 0; max-width: 36em; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.45; }
.sub { margin: 16px 0 0; max-width: 46em; font-size: 18px; line-height: 1.55; }
.note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* ── Header ─────────────────────────────────────────────── */

.top { position: sticky; top: 0; z-index: 50; background: rgba(248, 249, 255, .85); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a:not(.btn) { color: var(--ink); }
.nav a:not(.btn):hover { color: var(--green); }
@media (max-width: 820px) { .nav .wide-only { display: none; } .nav { gap: 14px; } }

/* ── Buttons ────────────────────────────────────────────── */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border: 1px solid transparent; border-radius: 8px; font: 600 16px/1.5 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: #005A25; }
.btn--line { background: transparent; color: var(--ink); border-color: rgba(29, 45, 53, .25); }
.btn--line:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { border-color: #fff; }
.btn--sm { padding: 8px 14px; font-size: 14px; line-height: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Hero ───────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
.blob { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.blob--green { width: 34rem; height: 34rem; right: -10rem; top: -13rem; background: rgba(111, 224, 143, .25); }
.blob--sky { width: 30rem; height: 30rem; left: -13rem; top: 10rem; background: rgba(225, 233, 247, .7); }
@media (prefers-reduced-motion: no-preference) {
  .blob { animation: drift 22s ease-in-out infinite; }
  .blob--sky { animation-delay: -11s; }
}
@keyframes drift { 0%, 100% { transform: translate(0) scale(1); } 50% { transform: translate(2%, -3%) scale(1.08); } }

.hero-grid { position: relative; display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }

.pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); }

/* The routed request card. */
.request { padding: clamp(22px, 3vw, 32px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -28px rgba(29, 45, 53, .35); }
.request-head { display: flex; align-items: center; gap: 12px; }
.request-head .doc { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--green-tint); color: var(--green); flex: none; }
.request-head .doc svg { width: 20px; height: 20px; }
.request-head b { display: block; font-size: 16px; }
.request-head small { font-size: 14px; color: var(--muted); }
.status { margin-left: auto; padding: 4px 12px; border-radius: 999px; background: var(--amber-bg); color: var(--amber); font-size: 12px; font-weight: 600; white-space: nowrap; }
.chain { list-style: none; margin: 22px 0 0; padding: 0; }
.chain li { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.chain li + li::before { content: ""; position: absolute; left: 15px; top: -10px; height: 20px; border-left: 2px solid var(--line); }
.chain .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-2); font-size: 14px; font-weight: 700; color: var(--muted); flex: none; }
.chain .n.is-on { border-color: var(--green); color: var(--green); }
.chain b { display: block; font-size: 15px; }
.chain small { font-size: 13px; color: var(--muted); }
.chain .state { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); }
.chain .state.is-waiting { color: var(--amber); }
.request-foot { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ── Sections ───────────────────────────────────────────── */

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(32px, 4vw, 48px); }

/* Four steps with mono numerals. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.steps .no { font: 700 14px/20px var(--mono); color: var(--green); }
.steps h3 { margin: 12px 0 8px; font-size: 18px; font-weight: 700; }
.steps p { margin: 0; font-size: 15px; }

/* Feature cards. */
.features { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features li { padding: 28px; border-radius: 16px; background: var(--mist); }
.features h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.features p { margin: 0; font-size: 15px; }

/* The routing simulation. */
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: clamp(48px, 6vw, 80px); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.split h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.split p { margin: 14px 0 0; font-size: 17px; }
.sim { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.sim-label { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sim-row { display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.sim-row .amt { font: 700 15px/1.3 var(--mono); color: var(--ink); }
.sim-row .route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.sim-row .route span { padding: 3px 10px; border-radius: 999px; background: var(--green-tint); color: var(--green); }
.sim-row .route i { font-style: normal; color: var(--muted); }
.sim-row small { grid-column: 2; font-size: 13px; color: var(--muted); }

/* Solutions grid. */
.solutions { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .solutions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .solutions { grid-template-columns: repeat(4, 1fr); } }
.sol { display: flex; flex-direction: column; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.sol:hover { border-color: var(--green); box-shadow: 0 16px 32px -24px rgba(0, 110, 46, .45); }
.sol h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.sol p { margin: 0 0 14px; font-size: 15px; }
.sol ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sol li { padding: 3px 10px; border-radius: 999px; background: var(--mist); font-size: 13px; font-weight: 600; color: var(--ink); }
.sol .link { margin-top: auto; font-size: 14px; }
.after { margin: 24px 0 0; font-size: 16px; }

/* Integrations. */
.integrations { display: grid; gap: 16px; }
@media (min-width: 860px) { .integrations { grid-template-columns: 1fr 1fr; } }
.integration { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.integration-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.integration h3 { font-size: 24px; font-weight: 700; }
.badge { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge--live { background: var(--green-tint); color: var(--green); }
.badge--soon { background: var(--sky); color: #3B4A8C; }
.integration p { font-size: 16px; }
.integration ul { margin: 0 0 18px; padding-left: 1.2em; font-size: 15px; }
.integration li { margin-bottom: 6px; }
.integration li::marker { color: var(--green); }
.integration .link { margin-top: auto; }
.offline { margin-top: 16px; padding: 24px 28px; border-radius: 16px; background: var(--mist); }
.offline b { display: block; margin-bottom: 4px; font-size: 17px; }
.offline p { margin: 0; font-size: 15px; }

/* ── Dark call to action ────────────────────────────────── */

.cta { display: grid; gap: 28px; align-items: center; padding: clamp(32px, 6vw, 64px); border-radius: 16px; background: var(--ink); }
@media (min-width: 900px) { .cta { grid-template-columns: 1fr auto; } }
.cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.cta p { margin: 12px 0 0; color: rgba(255, 255, 255, .75); font-size: 17px; max-width: 34em; }
.cta .actions { margin-top: 0; }

/* ── Footer ─────────────────────────────────────────────── */

.foot { padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.foot h2 { margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--green); }
.foot .brand img { height: 28px; margin-bottom: 12px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ── Back to all apps ───────────────────────────────────── */
/* A slim bar above the header, linking to pingsolveai.com. */
.ps-back { background: #fff; border-bottom: 1px solid var(--line); font: 600 13px/1 var(--sans); }
.ps-back .wrap { display: flex; align-items: center; min-height: 36px; }
.ps-back a { color: var(--muted); text-decoration: none; }
.ps-back a:hover { color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
