:root {
  --ubsb-red: #e60000;
  --ubsb-red-dark: #b80000;
  --ubsb-ink: #1c1c1c;
  --ubsb-grey: #f1f0ee;
  --ubsb-line: #dedbd6;
}
body { font-family: "Helvetica Neue", Arial, sans-serif; color: var(--ubsb-ink); background: #fff; }
h1, h2, h3, .headline { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -0.01em; }
a { color: var(--ubsb-red); }
a:hover { color: var(--ubsb-red-dark); }

.topbar { background: var(--ubsb-ink); color: #cfcfcf; font-size: 0.78rem; padding: 6px 0; }
.main-nav { background: #fff; border-bottom: 1px solid var(--ubsb-line); padding: 0.7rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { background: var(--ubsb-red); color: #fff; font-weight: 700; letter-spacing: 0.12em; padding: 0.25rem 0.7rem; display: inline-block; font-size: 1.1rem; }
.brand-text { color: var(--ubsb-ink); font-size: 0.95rem; font-weight: 500; }
.main-nav .nav-link { color: var(--ubsb-ink); font-weight: 500; padding: 0.5rem 0.9rem; border-bottom: 2px solid transparent; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--ubsb-red); border-bottom-color: var(--ubsb-red); }

.btn-ubsb { background: var(--ubsb-red); border-color: var(--ubsb-red); color: #fff; border-radius: 0; font-weight: 500; }
.btn-ubsb:hover, .btn-ubsb:focus { background: var(--ubsb-red-dark); border-color: var(--ubsb-red-dark); color: #fff; }
.btn-outline-dark, .btn-outline-light, .btn-dark { border-radius: 0; }
.form-control, .form-select { border-radius: 0; border-color: #b9b5ae; padding: 0.6rem 0.8rem; }
.form-control:focus, .form-select:focus { border-color: var(--ubsb-red); box-shadow: 0 0 0 0.15rem rgba(230, 0, 0, 0.15); }
.alert { border-radius: 0; }

.hero { background: linear-gradient(120deg, #1c1c1c 0%, #2b2b2b 60%, #3a1010 100%); color: #fff; padding: 6rem 0 5rem; border-bottom: 6px solid var(--ubsb-red); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin-bottom: 1rem; }
.hero .lead { color: #d8d8d8; max-width: 34rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: #ff6b6b; margin-bottom: 1rem; }

.page-head { background: var(--ubsb-grey); border-bottom: 1px solid var(--ubsb-line); padding: 2.6rem 0 2rem; }
.page-head h1 { font-size: 2.2rem; margin-bottom: 0.3rem; }
.page-head p { margin: 0; color: #5b5b5b; }

.feature-row { margin-top: -2.5rem; position: relative; }
.feature-card { background: #fff; border: 1px solid var(--ubsb-line); border-top: 3px solid var(--ubsb-red); padding: 1.6rem; height: 100%; }
.feature-card i { font-size: 1.8rem; color: var(--ubsb-red); display: block; margin-bottom: 0.6rem; }
.feature-card p { color: #5b5b5b; margin-bottom: 0; }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: 0.8rem; color: #444; }
.cta-panel { background: var(--ubsb-grey); padding: 2.2rem; border-left: 5px solid var(--ubsb-red); }

.auth-wrap { background: var(--ubsb-grey); padding: 3.5rem 0; min-height: 70vh; }
.auth-card, .panel { background: #fff; border: 1px solid var(--ubsb-line); padding: 2rem; }
.panel { padding: 1.5rem; }
.panel h5 { font-weight: 600; }

.balance-card { background: linear-gradient(135deg, var(--ubsb-red) 0%, #8d0000 100%); color: #fff; padding: 1.8rem; }
.balance-amount { font-family: Georgia, serif; font-size: 2.4rem; margin-top: 0.3rem; }
.acc-no { color: #fff; background: rgba(0, 0, 0, 0.25); padding: 0.15rem 0.5rem; letter-spacing: 0.06em; }

.stat { background: #fff; border: 1px solid var(--ubsb-line); border-left: 4px solid var(--ubsb-red); padding: 1.1rem 1.2rem; }
.stat-num { font-family: Georgia, serif; font-size: 1.7rem; }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6b6b6b; }
.list-row { padding: 0.6rem 0; border-bottom: 1px solid var(--ubsb-line); }
.list-row:last-child { border-bottom: 0; }

.strength { height: 5px; background: #e5e2dd; }
.strength-bar { height: 100%; width: 0; transition: width 0.25s, background 0.25s; }

.table thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6b6b6b; border-bottom-width: 2px; }

.site-footer { background: var(--ubsb-ink); color: #cfcfcf; padding: 3rem 0 1.5rem; }
.site-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.site-footer a { color: #cfcfcf; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer hr { border-color: #444; }

@page { margin: 14mm; }
.statement-head { border-bottom: 3px solid var(--ubsb-red); padding-bottom: 1rem; margin-bottom: 1.2rem; }
.statement-sum td { padding: 0.25rem 1rem 0.25rem 0; }
.brand-mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

@media print {
  .topbar, .main-nav, .site-footer, .no-print, .page-head p { display: none !important; }
  .panel { border: 0; padding: 0; }
}

/* UBSB v1.2 onboarding polish */
.onboarding-card { padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: 0 12px 40px rgba(28,28,28,.06); }
.form-section { padding: 1.5rem 0; border-top: 1px solid var(--ubsb-line); }
.section-title { display:flex; gap:.85rem; align-items:center; margin-bottom:1.2rem; }
.section-title > span { width:34px; height:34px; display:grid; place-items:center; background:var(--ubsb-red); color:#fff; font-size:.78rem; font-weight:700; }
.section-title h5 { margin:0; font-weight:600; }
.section-title small { color:#777; }
.required { color:var(--ubsb-red); }
.secure-pill { border:1px solid var(--ubsb-line); padding:.45rem .7rem; font-size:.75rem; white-space:nowrap; color:#555; }
.application-note { display:flex; gap:.75rem; background:#f7f5f2; border-left:3px solid var(--ubsb-red); padding:.9rem 1rem; }
.application-note > i { color:var(--ubsb-red); font-size:1.1rem; }
.form-label { font-weight:500; }
.auth-card .eyebrow { font-size:.7rem; margin-bottom:.35rem; }
.registration-wait { position:fixed; inset:0; z-index:2000; display:grid; place-items:center; background:rgba(255,255,255,.97); }
.registration-wait-content { display:grid; justify-items:center; gap:1rem; color:var(--ubsb-ink); }
.registration-spinner { width:52px; aspect-ratio:1; border:4px solid var(--ubsb-line); border-top-color:var(--ubsb-red); border-radius:50%; animation:registration-spin .8s linear infinite; }
@keyframes registration-spin { to { transform:rotate(360deg); } }
@media (max-width: 576px) { .secure-pill { display:none; } .onboarding-card { padding:1rem; } }

html { scroll-behavior: smooth; }
.main-nav { transition: box-shadow 0.25s, padding 0.25s; }
.main-nav.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); padding: 0.4rem 0; }
.btn { transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn-ubsb:hover { box-shadow: 0 8px 20px rgba(230, 0, 0, 0.28); }
.feature-card { transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1); }
.feature-card i { transition: transform 0.3s; }
.feature-card:hover i { transform: scale(1.15) rotate(-6deg); }
.form-section { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--ubsb-red); border-bottom: 1px solid var(--ubsb-line); padding-bottom: 0.4rem; margin: 1.4rem 0 1rem; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

.to-top { position: fixed; right: 1rem; bottom: 1rem; width: 44px; height: 44px; border: 0; background: var(--ubsb-ink); color: #fff; opacity: 0; pointer-events: none; transform: translateY(12px); transition: 0.25s; z-index: 1030; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--ubsb-red); }

.hero-x { position: relative; overflow: hidden; background: #141414; color: #fff; padding: 5.5rem 0 5rem; border-bottom: 6px solid var(--ubsb-red); }
.hero-x::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(230, 0, 0, 0.35), transparent 45%), radial-gradient(circle at 85% 80%, rgba(120, 0, 0, 0.5), transparent 50%); animation: drift 14s ease-in-out infinite alternate; }
.hero-x::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%); }
.hero-x .container { position: relative; z-index: 2; }
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.08); } }
.hero-x h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.08; margin: 0.4rem 0 1.1rem; }
.hero-x .lead { color: #d6d6d6; max-width: 33rem; }
.typed { color: #ff5a5a; border-right: 3px solid #ff5a5a; padding-right: 4px; animation: caret 0.8s steps(1) infinite; white-space: nowrap; }
@keyframes caret { 50% { border-color: transparent; } }
.live-pill { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); padding: 0.3rem 0.8rem; font-size: 0.78rem; letter-spacing: 0.05em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 2rem; font-size: 0.85rem; color: #cfcfcf; }
.trust-row i { color: #ff5a5a; margin-right: 0.35rem; }

.card-stage { position: relative; perspective: 1000px; max-width: 420px; margin: 0 auto; padding: 1.5rem 0 2rem; }
.acct-card { position: relative; aspect-ratio: 1.586; padding: 1.5rem; color: #fff; background: linear-gradient(135deg, #e60000 0%, #8d0000 60%, #3a0000 100%); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); transition: transform 0.15s ease-out; transform-style: preserve-3d; overflow: hidden; }
.acct-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.22) 48%, transparent 62%); transform: translateX(-120%); animation: sheen 5s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(120%); } }
.acct-chip { width: 42px; height: 32px; background: linear-gradient(135deg, #f3d37a, #b98a1f); margin: 1.2rem 0 0.8rem; }
.acct-no { font-family: Consolas, monospace; letter-spacing: 0.14em; font-size: 1.05rem; }
.acct-bal { font-family: Georgia, serif; font-size: 1.7rem; }
.float-chip { position: absolute; background: #fff; color: var(--ubsb-ink); padding: 0.55rem 0.9rem; font-size: 0.8rem; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); display: flex; align-items: center; gap: 0.5rem; animation: bob 5s ease-in-out infinite; }
.float-chip.one { top: 0; right: -6px; }
.float-chip.two { bottom: 0; left: -10px; animation-delay: -2.4s; }
.float-chip i { color: #1f9d55; font-size: 1.1rem; }
@keyframes bob { 50% { transform: translateY(-9px); } }

.stats-strip { background: #fff; border: 1px solid var(--ubsb-line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08); margin-top: -2.6rem; position: relative; z-index: 3; }
.stats-strip .cell { padding: 1.4rem 1rem; text-align: center; border-right: 1px solid var(--ubsb-line); }
.stats-strip .cell:last-child { border-right: 0; }
.stats-strip .num { font-family: Georgia, serif; font-size: 2.1rem; color: var(--ubsb-red); line-height: 1; }
.stats-strip .lab { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: #6b6b6b; margin-top: 0.4rem; }
@media (max-width: 767px) { .stats-strip .cell { border-right: 0; border-bottom: 1px solid var(--ubsb-line); } .stats-strip .cell:last-child { border-bottom: 0; } }

.section { padding: 4.5rem 0 0; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 0.6rem; }
.section-kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem; color: var(--ubsb-red); font-weight: 600; }
.tilt-card { background: #fff; border: 1px solid var(--ubsb-line); padding: 1.7rem; height: 100%; position: relative; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.tilt-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--ubsb-red); transition: width 0.4s; }
.tilt-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.1); }
.tilt-card:hover::before { width: 100%; }
.tilt-card .ico { width: 52px; height: 52px; display: grid; place-items: center; background: #fdeaea; color: var(--ubsb-red); font-size: 1.5rem; margin-bottom: 1rem; transition: 0.3s; }
.tilt-card:hover .ico { background: var(--ubsb-red); color: #fff; }
.tilt-card p { color: #5b5b5b; margin: 0; }

.demo-wrap { background: var(--ubsb-grey); border: 1px solid var(--ubsb-line); padding: 2rem; }
.demo-tabs { display: flex; flex-direction: column; gap: 0.6rem; }
.demo-tab { text-align: left; border: 1px solid var(--ubsb-line); background: #fff; padding: 0.9rem 1rem; display: flex; gap: 0.8rem; align-items: center; transition: 0.2s; }
.demo-tab i { font-size: 1.3rem; color: var(--ubsb-red); }
.demo-tab small { display: block; color: #6b6b6b; }
.demo-tab:hover { border-color: var(--ubsb-red); }
.demo-tab.active { background: var(--ubsb-ink); color: #fff; border-color: var(--ubsb-ink); }
.demo-tab.active small { color: #bdbdbd; }
.demo-tab.active i { color: #ff6b6b; }
@media (max-width: 991px) { .demo-tabs { flex-direction: row; overflow-x: auto; } .demo-tab { flex: 0 0 auto; } .demo-tab small { display: none; } }
.demo-window { background: #fff; border: 1px solid var(--ubsb-line); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12); min-height: 360px; }
.demo-bar { background: #ececec; padding: 0.5rem 0.8rem; display: flex; align-items: center; gap: 0.4rem; border-bottom: 1px solid var(--ubsb-line); }
.demo-bar span { width: 10px; height: 10px; border-radius: 50%; background: #c9c9c9; }
.demo-bar span:first-child { background: #ff5f57; }
.demo-bar span:nth-child(2) { background: #febc2e; }
.demo-bar span:nth-child(3) { background: #28c840; }
.demo-bar em { margin-left: 0.6rem; font-style: normal; font-size: 0.72rem; color: #777; background: #fff; padding: 0.1rem 0.7rem; flex: 1; }
.demo-pane { display: none; padding: 1.4rem; animation: paneIn 0.35s ease; }
.demo-pane.active { display: block; }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.demo-balance { background: linear-gradient(135deg, var(--ubsb-red), #8d0000); color: #fff; padding: 1.2rem; }
.demo-balance .amt { font-family: Georgia, serif; font-size: 2rem; }
.demo-row { display: flex; justify-content: space-between; padding: 0.55rem 0; border-bottom: 1px solid var(--ubsb-line); font-size: 0.9rem; }
.demo-row:last-child { border-bottom: 0; }
.demo-note { font-size: 0.72rem; color: #8a8a8a; text-align: right; margin-top: 0.6rem; }
.demo-success { display: none; border-left: 4px solid #1f9d55; background: #eaf7ef; padding: 0.7rem 0.9rem; margin-top: 1rem; font-size: 0.88rem; }
.demo-success.show { display: block; animation: paneIn 0.35s; }

.stepper { position: relative; display: flex; justify-content: space-between; margin-bottom: 2rem; }
.stepper::before { content: ""; position: absolute; top: 24px; left: 6%; right: 6%; height: 3px; background: var(--ubsb-line); }
.stepper .fill { position: absolute; top: 24px; left: 6%; height: 3px; width: 0; background: var(--ubsb-red); transition: width 0.5s; }
.step-dot { position: relative; z-index: 2; flex: 1; text-align: center; background: none; border: 0; padding: 0; }
.step-dot .bubble { width: 50px; height: 50px; margin: 0 auto 0.5rem; display: grid; place-items: center; background: #fff; border: 3px solid var(--ubsb-line); font-size: 1.2rem; color: #888; transition: 0.3s; }
.step-dot.done .bubble { border-color: var(--ubsb-red); color: var(--ubsb-red); }
.step-dot.active .bubble { background: var(--ubsb-red); border-color: var(--ubsb-red); color: #fff; transform: scale(1.12); }
.step-dot .cap { font-size: 0.8rem; font-weight: 600; }
.step-panel { background: #fff; border: 1px solid var(--ubsb-line); border-left: 5px solid var(--ubsb-red); padding: 1.6rem; min-height: 130px; }
.step-panel h4 { font-family: Georgia, serif; font-weight: 400; }

.ready-card { background: var(--ubsb-ink); color: #fff; padding: 2rem; height: 100%; }
.check-item { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.85rem 1rem; background: #fff; border: 1px solid var(--ubsb-line); margin-bottom: 0.6rem; cursor: pointer; transition: 0.2s; }
.check-item:hover { border-color: var(--ubsb-red); }
.check-item input { margin-top: 0.3rem; accent-color: var(--ubsb-red); width: 1.1rem; height: 1.1rem; }
.check-item.on { background: #fdeaea; border-color: var(--ubsb-red); }
.check-item small { color: #6b6b6b; display: block; }
.ready-bar { height: 8px; background: rgba(255, 255, 255, 0.15); margin: 1rem 0; }
.ready-bar div { height: 100%; width: 0; background: var(--ubsb-red); transition: width 0.4s; }

.faq .accordion-item { border-radius: 0; border-color: var(--ubsb-line); }
.faq .accordion-button { font-weight: 600; border-radius: 0; }
.faq .accordion-button:not(.collapsed) { background: #fdeaea; color: var(--ubsb-red-dark); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 0.15rem rgba(230, 0, 0, 0.15); }

.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, #b80000, #e60000, #7a0000); background-size: 200% 200%; animation: shift 9s ease infinite; color: #fff; padding: 3.5rem 2rem; text-align: center; }
@keyframes shift { 50% { background-position: 100% 50%; } }
.cta-band .btn-light { border-radius: 0; font-weight: 600; color: var(--ubsb-red-dark); }

.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1029; background: #fff; border-top: 1px solid var(--ubsb-line); padding: 0.6rem 1rem; display: none; transform: translateY(100%); transition: transform 0.3s; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12); }
.mobile-cta.show { transform: none; }
@media (max-width: 767px) { .mobile-cta { display: flex; gap: 0.5rem; } .mobile-cta .btn { flex: 1; } .to-top { bottom: 4.6rem; } }

.timeline { position: relative; padding-left: 1.6rem; border-left: 3px solid var(--ubsb-line); }
.timeline .t-item { position: relative; margin-bottom: 1.4rem; }
.timeline .t-item::before { content: ""; position: absolute; left: -2.05rem; top: 0.3rem; width: 13px; height: 13px; background: var(--ubsb-red); border-radius: 50%; box-shadow: 0 0 0 4px #fdeaea; }
.pill-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.pill-tabs button { border: 1px solid var(--ubsb-line); background: #fff; padding: 0.4rem 1rem; font-size: 0.85rem; transition: 0.2s; }
.pill-tabs button.active, .pill-tabs button:hover { background: var(--ubsb-red); border-color: var(--ubsb-red); color: #fff; }
.svc-item { transition: opacity 0.3s, transform 0.3s; }
.svc-item.hide { display: none; }
.info-tile { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem; background: var(--ubsb-grey); margin-bottom: 0.8rem; }
.info-tile i { color: var(--ubsb-red); font-size: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
