/* ============================================================
   Lexdate — brand stylesheet
   Palette matches the app's own design system (CLAUDE.md §12):
   navy = primary/brand, orange = "next hearing date" accent
   ============================================================ */

:root {
  --navy: #24358B;
  --navy-dark: #1a2670;
  --navy-light: #3447a6;
  --orange: #FF9500;
  --orange-dark: #e07f00;
  --blue: #1565C0;
  --green: #2E7D32;
  --red: #C62828;
  --ink: #1c1f2e;
  --ink-soft: #4b4f63;
  --bg: #ffffff;
  --bg-soft: #F5F7FB;
  --border: #E4E7F1;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(36, 53, 139, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(36, 53, 139, 0.14);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(36,53,139,0.07);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.eyebrow-light { background: rgba(255,255,255,0.14); color: #fff; }
.eyebrow-center { margin-left: auto; margin-right: auto; }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--navy); }
.section-head p { font-size: 17px; }

.bg-soft { background: var(--bg-soft); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #17131a; box-shadow: 0 10px 24px -8px rgba(255,149,0,0.55); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 21px; color: var(--navy); }
.brand img { width: 38px; height: 38px; }
.brand .lex { color: var(--navy); }
.brand .dates { color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #171d70 0%, #24358B 46%, #232f9c 100%);
  color: #fff;
  padding: 96px 0 120px;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.12; color: #fff; }
.hero h1 .accent { color: var(--orange); }
.hero p.lead { color: rgba(255,255,255,0.82); font-size: 18px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero-trust { margin-top: 40px; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); font-size: 14px; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.16);
  border: 2px solid #24358B; margin-left: -8px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.hero-trust .avatars span:first-child { margin-left: 0; }

.hero-art { position: relative; }
.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
  color: var(--ink);
  transform: rotate(-2deg);
}
.hero-card .row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.hero-card .row:last-child { border-bottom: none; }
.hero-card .case { font-weight: 600; font-size: 14px; }
.hero-card .muted { color: var(--ink-soft); font-size: 12.5px; }
.hero-card .badge { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-orange { background: rgba(255,149,0,0.14); color: var(--orange-dark); }
.badge-green { background: rgba(46,125,50,0.12); color: var(--green); }
.hero-float {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.hero-float.f1 { top: -18px; right: -10px; transform: rotate(4deg); }
.hero-float.f2 { bottom: -22px; left: -26px; transform: rotate(-3deg); }
.hero-float .icon-dot { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,149,0,0.14); display: flex; align-items: center; justify-content: center; }

.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.5;
}

/* ---------------- Logos / bench strip ---------------- */
.strip {
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
}
.strip .container { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.strip-item { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.strip-item svg { width: 20px; height: 20px; color: var(--navy); }

/* ---------------- Features ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(36,53,139,0.08);
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; color: var(--navy); }
.feature-card.accent .feature-icon { background: rgba(255,149,0,0.14); }
.feature-card.accent .feature-icon svg { color: var(--orange-dark); }
.feature-card h3 { font-size: 18px; color: var(--ink); }
.feature-card p { font-size: 14.5px; margin-bottom: 0; }
.feature-card .plan-tag {
  display: inline-block; margin-top: 14px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; color: var(--navy);
  background: rgba(36,53,139,0.07); padding: 4px 10px; border-radius: 999px;
}

/* ---------------- How it works ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 24px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: -18px; left: 24px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -6px rgba(36,53,139,0.5);
}
.step h4 { font-size: 16px; margin-top: 6px; color: var(--ink); }
.step p { font-size: 14px; margin-bottom: 0; }

/* ---------------- Pricing ---------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--orange);
  box-shadow: 0 20px 40px -18px rgba(255,149,0,0.4);
  position: relative;
  transform: translateY(-10px);
}
.price-card.featured .ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #17131a; font-size: 11.5px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase;
}
.price-card .plan-name { font-weight: 700; font-size: 15px; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.price-card .price { font-size: 36px; font-weight: 700; margin: 10px 0 2px; color: var(--ink); }
.price-card .price span { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.price-card .price-sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }
.price-card ul { margin: 0 0 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.price-card li svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--green); }
.price-card li.off svg { color: #b8bccb; }
.price-card li.off span { color: #b0b3c2; }

/* ---------------- Notification / app preview strip ---------------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.split.reverse .split-art { order: 2; }
.split-art { position: relative; }
.phone-mock {
  width: 260px; margin: 0 auto; background: var(--navy); border-radius: 34px; padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(36,53,139,0.5);
}
.phone-screen { background: var(--bg-soft); border-radius: 24px; padding: 18px; min-height: 420px; }
.notif-card { background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.notif-card .top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.notif-card .app-dot { width: 18px; height: 18px; border-radius: 5px; background: var(--navy); }
.notif-card .app-name { font-size: 12px; }
.notif-card .time { margin-left: auto; font-size: 11px; color: var(--ink-soft); }
.notif-card .title { font-size: 13px; font-weight: 700; }
.notif-card .body { font-size: 12px; color: var(--ink-soft); margin: 0; }

.split-title { color: var(--navy); font-size: clamp(26px, 3vw, 34px); }
.link-underline { color: var(--navy); text-decoration: underline; }

.checklist { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.checklist-item { display: flex; gap: 14px; }
.checklist-item .tick {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(46,125,50,0.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.checklist-item .tick svg { width: 14px; height: 14px; color: var(--green); }
.checklist-item h4 { margin: 0 0 4px; font-size: 15.5px; }
.checklist-item p { margin: 0; font-size: 14px; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px; font-size: 16px; font-weight: 600; color: var(--ink);
}
.faq-q .plus { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--navy); border-radius: 2px; transition: transform .2s ease;
}
.faq-q .plus::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-q .plus::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-item.open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 260px; }
.faq-a p { padding: 0 4px 22px; font-size: 14.5px; }

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background: linear-gradient(120deg, #24358B, #2c3798);
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */
.site-footer { background: #10133f; color: rgba(255,255,255,0.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand .lex { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; max-width: 280px; }
.footer-col h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }

/* ---------------- Legal pages ---------------- */
.legal-hero { background: var(--bg-soft); padding: 64px 0 40px; border-bottom: 1px solid var(--border); }
.legal-hero h1 { color: var(--navy); font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 8px; }
.legal-hero .updated { font-size: 14px; color: var(--ink-soft); }
.legal-body { padding: 56px 0 96px; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 100px; border-left: 2px solid var(--border); padding-left: 20px; }
.legal-toc h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: 14px; }
.legal-toc ul { display: flex; flex-direction: column; gap: 10px; }
.legal-toc a { font-size: 13.5px; color: var(--ink-soft); }
.legal-toc a:hover { color: var(--navy); }
.legal-content h2 { font-size: 21px; color: var(--navy); margin-top: 40px; scroll-margin-top: 100px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 16.5px; color: var(--ink); margin-top: 26px; }
.legal-content p, .legal-content li { font-size: 15px; color: var(--ink-soft); }
.legal-content ul, .legal-content ol { padding-left: 22px; margin: 0 0 16px; }
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--ink); }
.callout {
  background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--orange);
  border-radius: 10px; padding: 16px 18px; font-size: 14px; color: var(--ink-soft); margin: 18px 0;
}
.legal-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.legal-content th, .legal-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.legal-content th { color: var(--navy); font-weight: 600; }

/* ---------------- Placeholder marker ---------------- */
.ph { background: rgba(255,149,0,0.16); padding: 1px 5px; border-radius: 4px; color: var(--orange-dark); font-weight: 600; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-art { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; border-left: none; padding-left: 0; border-top: 2px solid var(--border); padding-top: 16px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .cta-banner { padding: 48px 24px; }
}


/* ---------------- Billing toggle + pricing extras ---------------- */
.billing-toggle {
  display: inline-flex; padding: 4px; margin: 0 auto 36px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.billing-wrap { text-align: center; }
.bill-btn {
  border: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px;
  color: var(--ink-soft); padding: 9px 22px; border-radius: 999px; transition: background .2s, color .2s;
}
.bill-btn small { font-weight: 600; color: var(--green); margin-left: 6px; }
.bill-btn.active { background: var(--navy); color: #fff; }
.bill-btn.active small { color: #ffd9a3; }
.price-note { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin: 28px auto 0; max-width: 720px; }
.pro-monthly-note {
  text-align: center; margin: 0 auto 26px; max-width: 640px; font-size: 15px; color: var(--ink);
  background: rgba(255,149,0,0.10); border: 1px solid rgba(255,149,0,0.35); border-radius: 12px; padding: 12px 18px;
}
.compare-wrap { margin-top: 56px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.compare th, .compare td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink); font-weight: 600; }
.compare thead th { background: var(--bg-soft); color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.compare thead th.pro { color: var(--orange-dark); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td { color: var(--ink-soft); }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: #b8bccb; }
.compare h3, .compare caption { text-align: left; }
.hero-note { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 12px; text-align: center; }
.cta-note { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 18px; }
.legal-content .contact-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
@media (max-width: 720px) { .bill-btn { padding: 9px 16px; } }

/* ---- content / SEO landing pages ---- */
.page-hero { background: linear-gradient(160deg, #171d70 0%, #24358B 46%, #232f9c 100%); color: #fff; padding: 72px 0 64px; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; margin-bottom: 14px; }
.page-hero .lead { color: rgba(255,255,255,0.88); max-width: 720px; font-size: 18px; margin-bottom: 26px; }
.crumbs { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.prose { max-width: 820px; }
.prose h2 { font-size: 26px; color: var(--navy); margin: 40px 0 12px; }
.prose h3 { font-size: 18px; color: var(--ink); margin: 22px 0 6px; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); }
.prose ul { padding-left: 22px; margin: 10px 0 16px; }
.prose li { margin-bottom: 8px; }
.prose li strong { color: var(--ink); }
.prose-cta { margin-top: 44px; padding: 24px 26px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.prose-cta h2 { margin-top: 0; }
.prose-related { margin-top: 28px; font-size: 14.5px; }
