/* Bank of Demo — DPDP SandBox. Fictional bank, original branding.
   Zero-build static site; every DPSuite surface is embedded via the public SDKs. */

:root {
  --navy: #10264a;
  --navy-2: #1b3a6b;
  --accent: #2f5fd0;
  --gold: #c9a24b;
  --ink: #172033;
  --muted: #5d6778;
  --line: #e3e8f2;
  --bg: #f6f8fc;
  --panel: #ffffff;
  --good: #0f7a4f;
  --bad: #c02636;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- header ---- */
.top {
  background: var(--navy);
  color: #fff;
}
.top-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy); font-weight: 800; font-size: 16px; letter-spacing: -.5px;
}
.nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.active { color: var(--gold); }

/* ---- hero ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #274a86 100%);
  color: #fff; padding: 72px 24px 84px;
}
.hero-inner { max-width: 1080px; margin: 0 auto; }
.hero h1 { font-size: 42px; line-height: 1.15; margin: 0 0 14px; max-width: 640px; }
.hero p { font-size: 18px; color: rgba(255,255,255,.8); max-width: 560px; margin: 0 0 26px; }
.eyebrow {
  display: inline-block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin-bottom: 14px;
}
.cta {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 15px; padding: 13px 26px; border-radius: 10px;
}
.cta:hover { filter: brightness(1.05); text-decoration: none; }
.cta.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); margin-left: 12px; }

/* ---- layout ---- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 48px 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 2px rgba(16,38,74,.05);
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }
.card .rate { font-size: 30px; font-weight: 800; color: var(--navy-2); margin: 10px 0 2px; }
.card .rate small { font-size: 13px; font-weight: 500; color: var(--muted); }
h2.section { font-size: 26px; margin: 0 0 6px; }
p.section-sub { color: var(--muted); margin: 0 0 26px; font-size: 15px; }

/* ---- footer ---- */
footer { background: var(--navy); color: rgba(255,255,255,.75); margin-top: 40px; }
.foot-inner { max-width: 1080px; margin: 0 auto; padding: 36px 24px; font-size: 13px; }
.foot-inner a { color: rgba(255,255,255,.85); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
.foot-note { color: rgba(255,255,255,.45); max-width: 720px; }

/* ---- demo instrumentation chip (testers watch the plumbing here) ---- */
#dpdp-instrument {
  position: fixed; bottom: 16px; left: 16px; z-index: 2147483600;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}
#dpdp-instrument .chip {
  background: #0d1526; color: #cfe0ff; border: 1px solid #2c3c5e;
  border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 600;
}
#dpdp-instrument .panel {
  display: none; margin-top: 8px; width: 330px; background: #0d1526; color: #cfe0ff;
  border: 1px solid #2c3c5e; border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
#dpdp-instrument.open .panel { display: block; }
#dpdp-instrument .row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
#dpdp-instrument .k { color: #7e93bd; }
#dpdp-instrument .blocked { color: #ff9d9d; }
#dpdp-instrument .fired { color: #7fe0ae; }
#dpdp-instrument button {
  margin-top: 10px; width: 100%; background: #22355c; color: #cfe0ff; border: 0;
  border-radius: 8px; padding: 7px 10px; cursor: pointer; font: inherit;
}

/* ---- content pages ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.panel-title { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
.form-mock label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 4px; }
.form-mock input, .form-mock select {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d3d9e6; border-radius: 9px;
  font: 15px inherit; color: var(--ink); background: #fff;
}
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding: 14px 0 14px 46px; position: relative; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 14px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy-2); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.steps b { display: block; margin-bottom: 2px; }
.steps .observe { font-size: 13.5px; color: var(--muted); }
.steps code { background: #eef2fa; border-radius: 5px; padding: 1px 6px; font-size: 12.5px; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; }
.pill.surface { background: #e8eefb; color: var(--navy-2); }
.notice-box { background: #fbf6e9; border: 1px solid #e7d9ae; border-radius: 10px; padding: 14px 16px; font-size: 13.5px; color: #6b5820; }
