/* Corvana Bank (fictional). Ink and gold for the bank; Udynamix purple only where Udynamix steps in. */
:root {
  --ink: #0e1726;
  --ink-2: #1b2740;
  --gold: #d6a54a;
  --gold-2: #f0c977;
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #18202e;
  --muted: #5d6676;
  --line: #e3e6ee;
  --ok: #157a4f;
  --ok-bg: #e8f6ef;
  --err: #b4321f;
  --err-bg: #fdecea;
  --info-bg: #eef2fb;
  --udx: #48338a;
  --udx-2: #6a4fc4;
  --udx-bg: #f3f0fb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 23, 38, .06), 0 8px 24px rgba(14, 23, 38, .06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* layout rules below must never re-show hidden elements */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink-2); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 600; }
h3 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* Header */
.top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
.logo-mark { width: 32px; height: 32px; }
.logo-bg { fill: var(--ink-2); }
.logo-c { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.logo-dot { fill: var(--gold-2); }
nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
nav a, nav .link { color: #c9d1e0; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
nav a:hover, nav .link:hover, nav a.on { color: #fff; background: rgba(255, 255, 255, .08); }
nav form { margin: 0; }
nav .btn-small { color: var(--ink); background: var(--gold); }
nav .btn-small:hover { background: var(--gold-2); color: var(--ink); }

main { padding-block: 32px 48px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 8px 14px; font-size: .9rem; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); }
.btn-udx { background: var(--udx); }
.btn-udx:hover { background: var(--udx-2); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.actions.center { justify-content: center; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Panels and forms */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px; }
.narrow { max-width: 480px; margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; color: var(--muted); margin-top: 16px; }
.stack { display: grid; gap: 16px; margin-top: 8px; }
label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
.opt { color: var(--muted); font-weight: 400; }
input, select {
  font: inherit; color: var(--text); background: #fff; width: 100%;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
input:focus, select:focus { border-color: var(--ink-2); outline: none; box-shadow: 0 0 0 3px rgba(27, 39, 64, .12); }
input[readonly] { background: var(--bg); font-weight: 600; letter-spacing: .03em; }

.notice { border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; font-size: .95rem; max-width: 720px; margin-inline: auto; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.err { background: var(--err-bg); color: var(--err); }
.notice.info { background: var(--info-bg); color: var(--ink-2); margin-inline: 0; }

/* Landing */
.hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  background: radial-gradient(120% 140% at 0% 0%, var(--ink-2), var(--ink) 60%);
  color: #fff; border-radius: 22px; padding: clamp(28px, 5vw, 56px); margin-bottom: 28px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: .35em; }
.lede { color: #c9d1e0; font-size: 1.08rem; max-width: 34em; }
.lede b { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: var(--gold-2); margin-bottom: 12px; }
.eyebrow.dark { color: var(--muted); }
.hero-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 24px; backdrop-filter: blur(6px); }
.mini-label { color: #9aa6bd; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.formula { font-size: 1.6rem; font-weight: 700; margin: 6px 0 16px; }
.formula span { color: var(--gold-2); }
.mini-rows { display: grid; gap: 10px; }
.mini-rows div { display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 10px; color: #c9d1e0; }
.mini-rows b { color: #fff; font-variant-numeric: tabular-nums; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features article { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.features p { color: var(--muted); margin: 0; }

/* Accounts */
.greeting { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.greeting h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0; font-variant-numeric: tabular-nums; }
.greeting .muted { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.account { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.acct-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.acct-no { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.acct-bal { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.account.secure { background: var(--udx-bg); }
.account.secure .acct-name { color: var(--udx); }
.account.secure p { color: var(--muted); font-size: .9rem; margin: 8px 0; }
.account.secure a { color: var(--udx); font-weight: 600; }
.activity { width: 100%; border-collapse: collapse; }
.activity td { padding: 12px 6px; border-top: 1px solid var(--line); }
.activity tr:first-child td { border-top: 0; }
.activity .date { color: var(--muted); width: 80px; white-space: nowrap; }
.amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.amt.in { color: var(--ok); }

/* Udynamix Secure Access */
.icon { width: 20px; height: 20px; flex: none; }
.icon path { fill: currentColor; }
.icon .tick { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.secure-access {
  max-width: 480px; margin: 0 auto; background: var(--card); border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(72, 51, 138, .15), 0 16px 40px rgba(72, 51, 138, .18); padding-bottom: 20px;
}
.secure-access > *:not(.sa-head) { margin-inline: 28px; }
.sa-head { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, var(--udx), var(--udx-2)); color: #fff; padding: 20px 28px; margin-bottom: 20px; }
.sa-head .icon { width: 36px; height: 36px; }
.sa-head .icon path { fill: rgba(255, 255, 255, .95); }
.sa-head .icon .tick { stroke: var(--udx); fill: none; }
.sa-title { font-weight: 700; font-size: 1.1rem; }
.sa-sub { color: #e2dcf6; font-size: .9rem; }
.sa-summary { display: grid; gap: 10px; margin-top: 0; margin-bottom: 20px; padding: 16px; background: var(--udx-bg); border-radius: 12px; }
.sa-summary div { display: flex; justify-content: space-between; gap: 12px; }
.sa-summary dt { color: var(--muted); }
.sa-summary dd { margin: 0; font-weight: 600; text-align: right; }
.sa-amount { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.secure-access form + form { margin-top: 12px; text-align: center; }
.row { display: flex; gap: 12px; }
.row .btn { flex: 1; }
.sa-status { display: flex; gap: 14px; align-items: flex-start; background: var(--udx-bg); border-radius: 12px; padding: 16px; margin: 12px 0 24px; color: var(--udx); }
.sa-status .icon { width: 28px; height: 28px; }
.sa-status p { margin: 4px 0 0; }
.big-tick { color: var(--ok); display: flex; justify-content: center; margin-bottom: 8px; }
.big-tick .icon { width: 56px; height: 56px; }
.lead-amount { font-size: 2.2rem; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }

/* Live values */
.lookups { display: grid; gap: 14px; margin-top: 12px; }
.lookup { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.lookup .btn { padding-block: 13px; }

/* Footer */
.foot { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); padding-block: 20px 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; max-width: 60ch; }
.badge { display: inline-flex; align-items: center; gap: 6px; color: var(--udx); font-weight: 600; margin-right: 12px; }
.badge .icon { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .hero, .features, .cards { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  nav a, nav .link { padding: 8px; }
}
.mini-note { color: #9aa6bd; font-size: .8rem; margin: 14px 0 0; }
