:root {
  --ink: #090909;
  --paper: #f3f3f0;
  --white: #ffffff;
  --line: #d7d7d2;
  --muted: #6b6b67;
  --red: #c8102e;
  --focus: #767676;
}

* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.bank-shell { min-height: 100vh; background: var(--paper); }
.bank-app { width: min(100%, 760px); min-height: 100vh; margin: 0 auto; padding: 0 24px; }
.topbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 800; letter-spacing: -.04em; }
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: -.025em; }
.session-indicator { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.hero { padding: 58px 0 34px; display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.eyebrow, .section-number, .balance-label { margin: 0 0 14px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 14px; max-width: 570px; font-size: clamp(38px, 8vw, 64px); line-height: .96; letter-spacing: -.06em; }
.intro { max-width: 500px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.prototype-badge { flex: none; padding: 8px 10px; border: 1px solid var(--ink); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.panel { background: var(--white); border: 1px solid var(--ink); padding: 28px; box-shadow: 8px 8px 0 var(--ink); }
.panel-heading { margin-bottom: 28px; }
.row-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.panel h2 { margin-bottom: 0; font-size: 23px; line-height: 1.1; letter-spacing: -.035em; }
.form-stack, .lookup-form { display: grid; gap: 18px; }
.field { display: grid; gap: 9px; }
.field > span { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.field small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.field input, .field select { width: 100%; min-height: 54px; border: 1px solid var(--line); border-radius: 0; background: #fafaf8; color: var(--ink); padding: 0 16px; font-size: 16px; outline: none; transition: border-color 150ms ease, box-shadow 150ms ease; }
.field select { padding-right: 42px; }
.field input:focus, .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(9, 9, 9, .12); }
.primary-button { min-height: 54px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--white); padding: 0 22px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background 150ms ease, transform 150ms ease; }
.primary-button:hover:not(:disabled) { background: #303030; }
.primary-button:active:not(:disabled) { transform: translateY(1px); }
.primary-button:focus-visible, .secondary-button:focus-visible, .text-button:focus-visible, .auth-switch button:focus-visible, .dashboard-nav button:focus-visible, .brand:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.primary-button:disabled { cursor: wait; opacity: .6; }
.demo-note, .form-status { margin: 20px 0 0; padding: 13px 15px; border-left: 3px solid var(--ink); background: #eeeeea; color: var(--muted); font-size: 12px; line-height: 1.55; }
.demo-note code { color: var(--ink); font-family: inherit; font-weight: 800; }
.form-status { border-left-color: var(--red); }
.text-button { border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 2px 0; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: -10px -10px 28px; padding: 4px; background: #eeeeea; }
.auth-switch button, .dashboard-nav button { min-height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.auth-switch button.active, .dashboard-nav button.active { background: var(--ink); color: var(--white); }
.dashboard-panel { padding-bottom: 0; }
.compact-heading { margin-bottom: 22px; }
.dashboard-nav { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -28px; border-top: 1px solid var(--ink); }
.dashboard-nav button { min-height: 54px; border-right: 1px solid var(--ink); }
.dashboard-nav button:last-child { border-right: 0; }
.content-section { padding-top: 38px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.count-label, .security-label { margin-top: 4px; padding: 7px 9px; border: 1px solid var(--ink); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.account-grid .balance-card { margin-top: 0; }
.transfer-form { display: grid; gap: 18px; }
.review-card, .receipt-card { border: 1px solid var(--ink); background: var(--white); padding: 30px; box-shadow: 8px 8px 0 var(--ink); }
.review-card h3, .receipt-card h3 { margin: 0 0 26px; font-size: 28px; line-height: 1.1; letter-spacing: -.04em; }
.review-list { margin: 0 0 28px; border-top: 1px solid var(--line); }
.review-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.review-list dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.review-list dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.review-list .review-amount { color: var(--red); font-size: 24px; letter-spacing: -.03em; }
.button-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.secondary-button { min-height: 54px; border: 1px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); padding: 0 22px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.receipt-card { position: relative; overflow: hidden; }
.receipt-card > p:not(.section-number) { color: var(--muted); }
.success-mark { position: absolute; top: 24px; right: 26px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 19px; font-weight: 800; }
.receipt-meta { display: flex; justify-content: space-between; gap: 20px; margin: 30px 0 24px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.lookup-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.lookup-button { min-width: 200px; }
.balance-card { margin-top: 22px; background: var(--ink); color: var(--white); padding: 30px; border: 1px solid var(--ink); }
.balance-topline, .balance-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.balance-label { margin-bottom: 8px; color: #a9a9a4; }
.account-name { margin-bottom: 0; font-size: 16px; font-weight: 700; }
.currency-chip { padding: 7px 9px; border: 1px solid #565653; color: #d7d7d2; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.balance-value { margin: 46px 0 42px; color: #ff244b; font-size: clamp(42px, 10vw, 70px); font-weight: 800; line-height: .95; letter-spacing: -.06em; overflow-wrap: anywhere; }
.balance-meta { padding-top: 16px; border-top: 1px solid #343432; color: #aaa9a4; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.footer { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 640px) {
  .bank-app { padding: 0 18px; }
  .topbar { min-height: 74px; }
  .brand-name { font-size: 15px; }
  .session-indicator { max-width: 98px; justify-content: flex-end; text-align: right; font-size: 9px; }
  .hero { padding: 42px 0 28px; display: block; }
  .prototype-badge { display: inline-block; margin-top: 24px; }
  .panel { padding: 22px; box-shadow: 5px 5px 0 var(--ink); }
  .dashboard-nav { margin: 0 -22px; }
  .section-heading { display: block; }
  .count-label, .security-label { display: inline-block; margin-top: 14px; }
  .review-card, .receipt-card { padding: 24px 22px; box-shadow: 5px 5px 0 var(--ink); }
  .review-list > div { grid-template-columns: 1fr; gap: 6px; }
  .review-list dd { text-align: left; }
  .button-row { grid-template-columns: 1fr; }
  .receipt-meta { flex-direction: column; }
  .lookup-form { grid-template-columns: 1fr; }
  .lookup-button { width: 100%; }
  .balance-card { padding: 24px 22px; }
  .balance-value { margin: 38px 0 36px; }
  .balance-meta, .footer { align-items: flex-start; flex-direction: column; }
  .footer { justify-content: center; }
}

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