/* Brisk Legal – dark navy and gold (matches the letterhead) */
:root {
  --navy: #111A2E;          /* header, dark sections */
  --navy-deep: #0B1220;
  --ink: #0F1729;           /* main text */
  --gold: #C6A35F;          /* buttons */
  --gold-hover: #B8934C;
  --gold-text: #8A6420;     /* gold readable on cream/white */
  --gold-bright: #D9B25E;   /* gold on dark backgrounds */
  --cream: #FAF8F3;
  --cream-2: #F3EFE6;
  --white: #FFFFFF;
  --muted: #5A6275;
  --body-text: #343B4B;
  --line: #E4DFD3;
  --line-soft: #EEEAE1;
  --field: #F1F0F3;
  --navy-soft: #E6E9F0;
  --on-navy: #C9CFDB;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); font-size: 16px; line-height: 1.6; }
a { color: var(--ink); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
img { max-width: 100%; display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------------- Header ---------------- */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-header-inner { max-width: 1280px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--white); margin-right: auto; }
.brand-mark { width: 52px; height: 52px; background: var(--navy-deep); display: flex; align-items: center; justify-content: center; flex: none; }
.brand-mark img { height: 40px; width: auto; }
.brand-mark--lg { width: 64px; height: 64px; background: var(--ink); }
.brand-mark--lg img { height: 50px; }
.brand-name { font-weight: 800; font-size: 26px; letter-spacing: 0.3px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.site-nav a { color: var(--white); text-decoration: none; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 0.2px; padding: 10px 0; }
.site-nav a:hover { color: var(--gold-bright); }
.btn-signin { background: var(--gold); color: var(--ink); text-decoration: none; font-weight: 800; text-transform: uppercase; font-size: 15px; padding: 14px 22px; min-height: 48px; display: inline-flex; align-items: center; }
.btn-signin:hover { background: var(--gold-hover); }

@media (max-width: 1100px) {
  .site-nav { order: 3; width: 100%; gap: 0 18px; }
  .site-nav a { font-size: 13px; padding: 8px 0; }
}
@media (max-width: 600px) {
  .brand-name { font-size: 20px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-mark img { height: 32px; }
  .btn-signin { padding: 10px 16px; min-height: 44px; font-size: 14px; }
  .site-header-inner { padding: 12px 16px; gap: 12px; }
  .site-nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .site-nav a { white-space: nowrap; }
}

/* ---------------- Homepage ---------------- */
.hero { background: var(--navy); color: var(--white); padding: 96px 0 104px; position: relative; overflow: hidden; }
.hero::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: 76px 76px; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 1180px; }
.eyebrow { margin: 0 0 16px; font-size: 14px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-bright); }
.eyebrow-dark { color: var(--gold-text); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; max-width: 900px; letter-spacing: -0.5px; }
.hero-lead { font-size: 19px; color: var(--on-navy); max-width: 720px; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn-gold-solid { background: var(--gold); color: var(--ink); text-decoration: none; font-weight: 800; padding: 15px 26px; min-height: 52px; display: inline-flex; align-items: center; }
.btn-gold-solid:hover { background: var(--gold-hover); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,0.45); color: var(--white); text-decoration: none; font-weight: 700; padding: 14px 24px; min-height: 52px; display: inline-flex; align-items: center; }
.btn-outline-light:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.hero-locations { margin: 40px 0 0; color: var(--on-navy); font-size: 14px; letter-spacing: 0.4px; }

.section { padding: 88px 0; }
.section-tint { background: var(--cream-2); }
.section-dark { background: var(--navy); color: var(--white); }
.section h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.3px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 64px; align-items: start; }
.prose p { margin: 0 0 16px; font-size: 18px; color: var(--body-text); }
.prose-lead { font-size: 18px; color: var(--body-text); margin: 20px auto 0; max-width: 680px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.info-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 28px; }
.info-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.info-card p { margin: 0; color: var(--body-text); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.steps li { border: 1px solid rgba(255,255,255,0.12); padding: 28px; }
.step-num { color: var(--gold-bright); font-weight: 800; font-size: 15px; letter-spacing: 1px; }
.steps h3 { font-size: 21px; font-weight: 800; margin: 12px 0 8px; }
.steps p { margin: 0; color: var(--on-navy); }
.contact-card { font-style: normal; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 28px; }
.contact-card p { margin: 0 0 12px; color: var(--body-text); }
.contact-card a { color: var(--ink); font-weight: 700; }
.contact-name { font-weight: 800; color: var(--ink) !important; font-size: 19px; }
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding: 28px 0; font-size: 14px; }
.site-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 600px) {
  .hero { padding: 64px 0 72px; }
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
}

/* ---------------- Sign-in page ---------------- */
.signin-stage { min-height: calc(100vh - 80px); padding: 48px 16px; display: flex; justify-content: center; align-items: flex-start;
  background-color: var(--cream);
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 76px 76px; }
.signin-card { width: 100%; max-width: 640px; background: #FCFBF8; box-shadow: 0 30px 60px rgba(17,26,46,0.08); padding: 48px 64px 40px; display: flex; flex-direction: column; gap: 18px; }
.signin-brand { display: flex; align-items: center; justify-content: center; gap: 16px; }
.signin-brand-name { font-weight: 800; font-size: 28px; }
.signin-eyebrow { margin: 6px 0 0; text-align: center; color: var(--gold-text); font-weight: 800; font-size: 15px; letter-spacing: 0.4px; text-transform: uppercase; }
.signin-title { text-align: center; font-size: clamp(36px, 5vw, 54px); font-weight: 800; letter-spacing: -0.5px; margin: -6px 0 0; }
.signin-sub { text-align: center; color: var(--muted); font-size: 18px; margin: -4px 0 8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 17px; font-weight: 700; }
.field input { height: 58px; padding: 0 28px; border: 1px solid transparent; border-radius: 999px; background: var(--field); font: inherit; font-size: 18px; font-weight: 600; color: var(--ink); width: 100%; }
.field input:focus { outline: none; border-color: var(--gold); background: var(--white); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 64px; }
.icon-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.signin-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 17px; font-weight: 700; color: var(--ink); }
.check input { width: 20px; height: 20px; accent-color: var(--navy); }
.gold-link { color: var(--gold-text); font-weight: 800; font-size: 17px; text-decoration: none; }
.gold-link:hover { text-decoration: underline; }
.btn-pill-gold { height: 60px; border: 0; border-radius: 999px; background: var(--gold); color: var(--ink); font: inherit; font-size: 19px; font-weight: 800; cursor: pointer; }
.btn-pill-gold:hover { background: var(--gold-hover); }
.btn-pill-gold:disabled { opacity: 0.7; cursor: wait; }
.form-error { padding: 14px 18px; border: 1px solid #F0C9C4; background: #FBEDEB; color: #9B2318; font-size: 15px; font-weight: 600; text-align: center; border-radius: 12px; }
.small-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

@media (max-width: 600px) {
  .signin-card { padding: 32px 20px; }
  .signin-brand-name { font-size: 22px; }
  .signin-sub { font-size: 16px; }
}

/* ---------------- Buttons used in the dashboard ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-outline { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--gold); }

/* Pills */
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill-navy { background: var(--navy); color: var(--white); }
.pill-blue { background: var(--navy-soft); color: var(--navy); }
.pill-gold { background: #F5ECD8; color: var(--gold-text); }
.pill-grey { background: var(--line-soft); color: var(--body-text); font-weight: 600; }

/* ---------------- Dashboard ---------------- */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 12px 24px; background: var(--navy); color: var(--white); }
.topbar .brand { margin-right: 8px; }
.topbar .brand-name { font-size: 22px; }
.topbar .brand-mark { width: 44px; height: 44px; }
.topbar .brand-mark img { height: 32px; }
.search { flex: 1 1 260px; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); color: var(--on-navy); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--white); outline: none; }
.search input::placeholder { color: #9AA3B5; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile { display: flex; align-items: center; gap: 10px; }
.profile-text { display: flex; flex-direction: column; line-height: 1.25; }
.profile-name { font-size: 14px; font-weight: 700; color: var(--white); }
.profile-email { font-size: 12px; color: var(--on-navy); }
.topbar .avatar { background: var(--gold); color: var(--ink); }
.topbar .btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.topbar .btn-outline:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }

.layout { display: flex; flex-wrap: wrap; align-items: flex-start; }
.sidenav { flex: 1 1 220px; max-width: 100%; padding: 20px 16px; display: flex; flex-direction: column; gap: 4px; }
.sidenav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; font-weight: 600; color: var(--body-text); text-decoration: none; }
.sidenav a:hover { background: var(--cream-2); }
.sidenav a.active { background: var(--navy); color: var(--white); font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }
.jarvis-card { margin-top: 20px; padding: 16px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.jarvis-title { font-size: 13px; font-weight: 800; }
.jarvis-text { font-size: 13px; line-height: 1.5; color: var(--muted); }

.content { flex: 999 1 560px; min-width: 0; padding: 28px 28px 48px; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head h1 { font-weight: 800; font-size: 34px; margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 14px; color: var(--muted); }
.stat-value { font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--navy); }
.stat-note { font-size: 13px; color: var(--body-text); }

.card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 18px; font-weight: 800; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; padding: 12px; }
td { padding: 14px 12px; border-top: 1px solid var(--line-soft); }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.card-head + div > .row:first-child { border-top: 0; }
.row-between { justify-content: space-between; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.bar { height: 6px; border-radius: 3px; background: var(--line-soft); margin-top: 4px; }
.bar-fill { height: 6px; border-radius: 3px; background: var(--gold); }
.date-chip { width: 48px; flex: none; text-align: center; border: 1px solid var(--line); padding: 4px 0; }
.date-mon { font-size: 11px; font-weight: 800; color: var(--gold-text); text-transform: uppercase; }
.date-day { font-size: 18px; font-weight: 800; }

@media (max-width: 600px) {
  .topbar { padding: 12px 16px; }
  .content { padding: 20px 16px 40px; }
  .profile-email { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* ---- Firm OS additions to the sign-in card ---- */
.signin-step[hidden] { display: none !important; }
.signin-step { display: flex; flex-direction: column; gap: 18px; }
.qr-box { display: flex; justify-content: center; }
.qr-box img { width: 220px; height: 220px; background: #fff; padding: 8px; border: 1px solid var(--line); }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 15px; letter-spacing: 2px; text-align: center; word-break: break-all; background: var(--field); padding: 12px; border-radius: 12px; }
.ok-box { background: #EEF3EC; border: 1px solid #C9DAC4; color: #23441E; padding: 14px 18px; border-radius: 14px; font-weight: 600; }
.code-input { text-align: center; letter-spacing: 8px; font-size: 26px !important; }
.alt-link { text-align: center; font-size: 15px; color: var(--muted); }
.alt-link a { color: var(--gold-text); font-weight: 800; }
ol.howto { margin: 0; padding-left: 22px; color: var(--body-text); display: grid; gap: 6px; font-size: 16px; }
.terms { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--body-text); }
.terms input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
@media (max-width: 600px) { .signin-card { padding: 32px 22px 28px; } }

/* Client portal sign-in: frosted panel over a dark legal backdrop (reference video) */
body[data-page="portal-login"] .signin-stage {
  min-height: calc(100vh - 80px); align-items: center;
  background:
    radial-gradient(600px 400px at 18% 20%, rgba(216,178,90,0.22), transparent 60%),
    radial-gradient(700px 500px at 85% 80%, rgba(52,93,150,0.35), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23D8B25A' stroke-opacity='.10' stroke-width='3'%3E%3Cpath d='M200 60v270M120 330h160M90 110h220M200 60l-10 20h20z'/%3E%3Cpath d='M110 110l-45 95h90zM290 110l-45 95h90z'/%3E%3Cpath d='M65 205a45 22 0 0 0 90 0M245 205a45 22 0 0 0 90 0'/%3E%3C/svg%3E") right 6% center / min(52vw, 560px) no-repeat,
    linear-gradient(160deg, #0B1729 0%, #13294A 55%, #0B1729 100%);
}
body[data-page="portal-login"] .signin-card {
  max-width: 460px; background: rgba(255,255,255,0.10); color: #fff; border: 1px solid rgba(255,255,255,0.22); border-radius: 18px;
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 30px 80px rgba(0,0,0,0.45); padding: 40px 36px 32px;
}
body[data-page="portal-login"] .signin-card .signin-sub, body[data-page="portal-login"] .signin-card label, body[data-page="portal-login"] .alt-link, body[data-page="portal-login"] .signin-eyebrow { color: #DCE3EE; }
body[data-page="portal-login"] .signin-title, body[data-page="portal-login"] .signin-brand-name { color: #fff; }
body[data-page="portal-login"] .signin-card input:not([type=checkbox]) { background: rgba(255,255,255,0.92); border-radius: 10px; }
body[data-page="portal-login"] .btn-pill-gold { border-radius: 999px; }
.btn-pill-ghost { min-height: 46px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.45); background: transparent; color: inherit; font-weight: 700; cursor: pointer; }
.otp-boxes { display: flex; justify-content: center; gap: 10px; }
.otp-boxes .otp { width: 48px; height: 56px; text-align: center; font-size: 1.5rem; font-weight: 800; border-radius: 10px; border: 1px solid rgba(255,255,255,0.4); }
@media (max-width: 420px) { .otp-boxes .otp { width: 40px; height: 50px; } }

/* one sign-in page: who is signing in */
.who-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 4px 0 18px; border: 1px solid rgba(15, 23, 41, .14); border-radius: 999px; background: rgba(255, 255, 255, .6); }
.who-tabs button { font: inherit; font-size: .88rem; font-weight: 600; padding: 9px 6px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.who-tabs button[aria-selected="true"] { background: var(--gold); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.who-tabs button:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }
@media (max-width: 420px) { .who-tabs button { font-size: .8rem; padding: 8px 2px; } }
.demo-banner { position: sticky; top: 0; z-index: 2000; background: #b3261e; color: #fff; text-align: center; font-weight: 700; font-size: 13px; letter-spacing: .04em; padding: 6px 10px; }
