/* ============================================================
   Blitz Advocates v4 — main.css
   ============================================================
   Design tokens · base · public pages · components
*/

/* ====== Tokens ====== */
:root {
  --ink: #0a1228;
  --navy: #1e2a4a;
  --navy-2: #2d3e6a;
  --gold: #d4af37;
  --gold-soft: #e8c863;
  --parchment: #f6f3eb;
  --paper: #fbfaf6;
  --line: #e5e1d3;
  --text: #1f2937;
  --text-soft: #475569;
  --text-mute: #6b7280;
  --success: #065f46;
  --success-bg: #d1fae5;
  --error: #991b1b;
  --error-bg: #fee2e2;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--paper); color: var(--text); }
.display { font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; letter-spacing: -0.01em; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ====== Buttons ====== */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 0;
  text-align: center;
  line-height: 1.2;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); text-decoration: none; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); text-decoration: none; color: var(--navy); }
.btn-ink { background: var(--ink); color: white; }
.btn-ink:hover { background: var(--navy); text-decoration: none; color: white; }

/* ====== Public Nav ====== */
.public-nav {
  background: rgba(251, 250, 246, 0.96);
  border-bottom: 1px solid var(--line);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}
.public-nav .brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.public-nav .brand:hover { text-decoration: none; }
.public-nav .brand .mark { color: var(--gold); }
.public-nav .nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.public-nav .nav-links a { color: var(--navy); }

/* ====== Hero ====== */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--navy) 100%);
  color: white;
  padding: 84px 32px 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 175, 55, 0.10), transparent);
  pointer-events: none;
}
.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: white;
  max-width: 18ch;
}
.hero h1 .accent { font-style: italic; color: var(--gold); font-weight: 400; }
.hero .lead {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 60ch;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ctas .btn { padding: 14px 26px; font-size: 15px; }
.hero-ctas .btn-ghost { color: white; border-color: rgba(255, 255, 255, 0.25); }
.hero-ctas .btn-ghost:hover { color: white; border-color: var(--gold); }

/* ====== Demo Banner ====== */
.demo-banner {
  background: linear-gradient(180deg, var(--parchment) 0%, #ecdcc4 100%);
  padding: 56px 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.demo-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.demo-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.demo-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6d10;
  font-weight: 700;
  margin-bottom: 14px;
  background: white;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--gold);
}
.demo-banner h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.2;
}
.demo-banner .demo-lead {
  font-size: 15px;
  color: var(--text-soft);
  margin: 0 auto 26px;
  line-height: 1.6;
  max-width: 54ch;
}
.demo-creds {
  display: inline-block;
  background: white;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  padding: 18px 24px;
  margin-bottom: 22px;
  text-align: left;
  box-shadow: 0 12px 32px -14px rgba(212, 175, 55, 0.5);
}
.demo-cred-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 14px;
  padding: 6px 0;
}
.demo-cred-row + .demo-cred-row { border-top: 1px solid var(--line); }
.demo-cred-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #8a6d10;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 72px;
}
.demo-cred-row code {
  color: var(--ink);
  font-weight: 600;
  min-width: 230px;
  background: transparent;
  padding: 0;
}
.demo-copy {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  color: var(--text-soft);
  font-weight: 500;
}
.demo-copy:hover { border-color: var(--gold); color: var(--ink); background: white; }
.demo-copy.copied { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.demo-btn { padding: 14px 36px; font-size: 15px; margin-bottom: 12px; display: inline-block; }
.demo-reassure {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.demo-reassure span::before { content: "✓ "; color: var(--success); font-weight: bold; }

/* ====== Stats ====== */
.stats {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.stats-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--gold);
  display: block;
  line-height: 1.1;
}
.stat .lbl {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* ====== Sections ====== */
.section { padding: 64px 32px; }
.section.alt { background: var(--parchment); }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.section-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--ink);
}
.section-head .kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.section-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  max-width: 48ch;
}
.section-head .view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

/* ====== Requirement cards ====== */
.req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.req-card {
  background: white;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.req-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(10, 18, 40, 0.15); text-decoration: none; }
.req-card .req-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  margin-bottom: 12px;
}
.req-card .req-role {
  background: rgba(212, 175, 55, 0.12);
  color: #8a6d10;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 600;
}
.req-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--ink);
}
.req-card .req-poster { font-size: 13px; color: var(--text-soft); margin-bottom: 14px; }
.req-card .req-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  align-items: center;
}
.req-card .req-tag { color: var(--text-soft); }
.req-card .req-rate { font-weight: 600; color: var(--navy); margin-left: auto; }

/* ====== Lawyer cards (home grid) ====== */
.law-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.law-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.law-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(10, 18, 40, 0.15); text-decoration: none; }
.law-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.law-card h4 {
  margin: 0 0 4px;
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.law-card .law-tier {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.law-card .law-loc { font-size: 12px; color: var(--text-mute); margin: 6px 0; }
.law-card .law-rate {
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.law-verified {
  display: inline-block;
  font-size: 10px;
  color: var(--success);
  background: var(--success-bg);
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 600;
  margin-left: 4px;
  vertical-align: middle;
}

/* ====== Features grid ====== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.feature { background: white; padding: 28px; display: flex; flex-direction: column; }
.feature .num {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.feature h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.feature p { font-size: 14px; color: var(--text-soft); margin: 0; line-height: 1.55; }

/* ====== Split (sign-in / sign-up at bottom of homepage) ====== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.split > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.split h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; color: var(--ink); margin: 0 0 8px; }
.split p { font-size: 14px; color: var(--text-soft); margin: 0 0 18px; }

/* ====== Login form ====== */
.login-form .field { margin-bottom: 14px; }
.login-form label, .field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.login-form input, .field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  background: var(--paper);
}
.login-form input:focus, .field input:focus { outline: 2px solid var(--gold); outline-offset: -1px; border-color: var(--gold); }
.login-form .submit, .submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--ink);
  color: white;
  font-weight: 600;
  font-size: 14px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 6px;
  font-family: inherit;
}
.login-form .submit:hover, .submit-btn:hover { background: var(--navy); }
.login-form .helper { font-size: 12px; color: var(--text-mute); margin-top: 10px; text-align: center; }

/* ====== Persistent disclaimer strip ====== */
.disclaimer-strip {
  background: #fef9e7;
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--line);
  padding: 18px 32px;
  font-size: 12.5px;
  color: #78350f;
  text-align: center;
  line-height: 1.6;
}
.disclaimer-strip .disc-inner { max-width: 980px; margin: 0 auto; }
.disclaimer-strip strong { color: #5a2c0a; font-weight: 700; }
.disclaimer-strip a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  margin-left: 4px;
}

/* ====== Disclaimer modal ====== */
.disclaimer-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 40, 0.85);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 9999;
  padding: 40px 20px;
  overflow-y: auto;
}
.disclaimer-modal {
  max-width: 560px;
  width: 100%;
  background: var(--paper);
  border-radius: 8px;
  padding: 36px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  margin-top: 30px;
}
.disclaimer-modal .modal-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold);
}
.disclaimer-modal .modal-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), #e8c863);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.disclaimer-modal h2 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.disclaimer-modal .modal-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a6d10;
  font-weight: 700;
  margin-top: 3px;
}
.disclaimer-modal .intro { font-size: 14px; color: var(--text); margin: 0 0 14px; line-height: 1.6; }
.disclaimer-modal .bullets {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  padding: 0 0 0 18px;
  margin: 0 0 18px;
}
.disclaimer-modal .bullets li { margin-bottom: 10px; }
.disclaimer-modal .bullets li::marker { color: var(--gold); font-weight: bold; }
.disclaimer-modal .footer-note {
  background: white;
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 14px 16px;
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 20px;
}
.disclaimer-modal .footer-note strong { color: var(--ink); }
.disclaimer-modal .actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.disclaimer-modal .actions a { font-size: 13px; color: var(--text-soft); text-decoration: underline; }
.disclaimer-modal .btn-agree {
  background: var(--ink);
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 13px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.disclaimer-modal .btn-agree:hover { background: var(--navy); }

/* ====== Public Footer ====== */
.public-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 32px 24px;
  border-top: 4px solid var(--gold);
}
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid h5 {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin: 0 0 14px;
}
.footer-grid a {
  color: rgba(255, 255, 255, 0.65);
  display: block;
  padding: 4px 0;
  font-size: 13px;
}
.footer-grid a:hover { color: var(--gold); text-decoration: none; }
.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: white;
  font-weight: 600;
  margin-bottom: 8px;
}
.footer-tag { font-size: 13px; color: rgba(255, 255, 255, 0.55); max-width: 34ch; }
.footer-bot {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* ====== Flash messages ====== */
.flash {
  max-width: 720px;
  margin: 16px auto;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  border-left: 4px solid;
}
.flash.success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.flash.error { background: var(--error-bg); color: var(--error); border-color: var(--error); }
.flash.info { background: #dbeafe; color: #1e40af; border-color: #1e40af; }

/* ====== Mobile responsiveness ====== */
@media (max-width: 980px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .req-grid { grid-template-columns: repeat(2, 1fr); }
  .law-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 60px 20px 70px; }
  .hero h1 { font-size: 38px; }
  .demo-banner { padding: 40px 20px; }
  .demo-banner h2 { font-size: 24px; }
  .demo-creds { padding: 14px 16px; }
  .demo-cred-row code { min-width: 0; font-size: 12px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 20px; }
  .section-head h2 { font-size: 26px; }
  .req-grid, .law-grid { grid-template-columns: 1fr; }
  .public-nav { padding: 14px 20px; gap: 12px; flex-wrap: wrap; }
  .public-nav .nav-links { gap: 14px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
  .disclaimer-modal { padding: 24px 20px; }
}
