/* ============================================================
   LegalPoint — design tokens & base
   Navy / gold / white professional legal-tech
   ============================================================ */
:root {
  /* palette */
  --navy:    #0F2742;
  --navy-2:  #16395E;
  --navy-3:  #1d4a78;
  --gold:    #C9A14A;
  --gold-d:  #9A7B2E;   /* darker gold for AA on light bg */
  --ink:     #1C2A3A;
  --muted:   #5C6B7A;
  --faint:   #8493A1;
  --line:    #E2E7EC;
  --line-2:  #D5DBE2;
  --bg:      #FFFFFF;
  --surface: #F5F7F9;
  --surface-2:#EEF2F5;
  --navy-txt:#C7D4E2;

  /* type */
  --font-display: 'Cabinet Grotesk','General Sans','Segoe UI',sans-serif;
  --font-body: 'General Sans','Segoe UI',system-ui,sans-serif;

  --text-hero: clamp(2.6rem, 5.2vw, 4.1rem);
  --text-2xl: clamp(2rem, 3.6vw, 2.9rem);
  --text-xl: clamp(1.5rem, 2.4vw, 2rem);
  --text-lg: 1.25rem;
  --text-base: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,39,66,.06), 0 1px 3px rgba(15,39,66,.05);
  --shadow-md: 0 4px 16px rgba(15,39,66,.08), 0 2px 6px rgba(15,39,66,.05);
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: var(--navy); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-d);
}
.eyebrow.on-dark { color: var(--gold); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: var(--navy-txt); }
.section--navy h2, .section--navy h3 { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-2); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #d8b162; box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface); }
.btn--ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.08); }
.btn .arr { font-size: .9em; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--navy); letter-spacing: -0.01em; }
.brand .dot { color: var(--gold-d); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: var(--text-sm); color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; transition: .3s; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: var(--text-hero); color: var(--navy); margin: 18px 0 0; }
.hero h1 .accent { color: var(--gold-d); }
.hero .lead { font-size: var(--text-lg); color: var(--muted); margin-top: 22px; max-width: 33ch; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { margin-top: 26px; font-size: var(--text-sm); color: var(--faint); display: flex; align-items: center; gap: 8px; }
.hero-trust .g { color: #2f8f5b; }

/* chat mockup */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mock-bar .title { font-size: var(--text-xs); font-weight: 600; color: var(--navy); letter-spacing: .02em; }
.mock-bar .live { margin-left: auto; font-size: 11px; color: #2f8f5b; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.mock-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2f8f5b; box-shadow: 0 0 0 3px rgba(47,143,91,.18); }
.mock-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.bubble { font-size: var(--text-sm); line-height: 1.45; max-width: 88%; }
.bubble.ai { color: var(--ink); }
.bubble.ai .who { font-size: 11px; font-weight: 700; color: var(--gold-d); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 3px; }
.bubble.user { align-self: flex-end; background: var(--surface-2); color: var(--ink); padding: 9px 13px; border-radius: 13px 13px 3px 13px; }
.summary-card { margin: 4px 16px 18px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; background: var(--surface); }
.summary-card .sc-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-d); margin-bottom: 10px; }
.summary-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: var(--text-sm); border-top: 1px solid var(--line); }
.summary-card .row:first-of-type { border-top: none; }
.summary-card .row .k { color: var(--muted); }
.summary-card .row .v { color: var(--navy); font-weight: 600; text-align: right; }
.summary-card .row.flag .k { color: var(--gold-d); font-weight: 700; }
.summary-card .row.flag .v { color: var(--gold-d); }

/* ---------- section heading ---------- */
.s-head { max-width: 620px; margin-bottom: 48px; }
.s-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.s-head h2 { font-size: var(--text-2xl); margin: 12px 0 0; }
.s-head p { color: var(--muted); margin-top: 14px; font-size: var(--text-lg); line-height: 1.5; }
.section--navy .s-head p { color: var(--navy-txt); }

/* ---------- value grid ---------- */
.val-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.val h3 { font-size: var(--text-lg); color: var(--navy); }
.val p { color: var(--muted); margin-top: 8px; font-size: var(--text-sm); line-height: 1.55; }
.val .num { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700; color: var(--gold-d); letter-spacing: .1em; }

/* ---------- assistant cards ---------- */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.acard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.acard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.acard .tag { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-d); }
.acard h3 { font-size: var(--text-xl); margin: 10px 0 0; }
.acard .desc { color: var(--muted); margin-top: 12px; font-size: var(--text-sm); line-height: 1.55; }
.acard ul { list-style: none; margin: 18px 0 24px; }
.acard ul li { font-size: var(--text-sm); color: var(--ink); padding: 7px 0 7px 22px; position: relative; border-top: 1px solid var(--line); }
.acard ul li:first-child { border-top: none; }
.acard ul li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- for firms (two-col) ---------- */
.firms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.firms-list { list-style: none; }
.firms-list li { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); }
.firms-list li:first-child { border-top: none; }
.firms-list h4 { color: #fff; font-size: var(--text-lg); }
.firms-list p { color: var(--navy-txt); font-size: var(--text-sm); margin-top: 5px; line-height: 1.5; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { padding: 4px; }
.step .sn { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--gold-d); line-height: 1; }
.step h3 { color: var(--navy); font-size: var(--text-lg); margin-top: 14px; }
.step p { color: var(--muted); font-size: var(--text-sm); margin-top: 8px; line-height: 1.55; }
.section--navy .step .sn { color: rgba(201,161,74,.55); }
.section--navy .step h3 { color: #fff; }
.section--navy .step p { color: var(--navy-txt); }
/* pilot step cards */
.pilot-steps { gap: 24px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 30px; }
.pcard .sn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: var(--text-lg); color: var(--gold-d); }
.pcard h3 { margin-top: 18px; }

/* ---------- data / security ---------- */
.data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.dcard h3 { font-size: var(--text-base); font-weight: 700; color: var(--navy); }
.dcard p { color: var(--muted); font-size: var(--text-sm); margin-top: 8px; line-height: 1.55; }

/* ---------- compare table ---------- */
.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.compare .crow { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; }
.compare .crow + .crow { border-top: 1px solid var(--line); }
.compare .chead { background: var(--navy); }
.compare .chead .cell { color: #fff; font-weight: 600; font-family: var(--font-display); }
.compare .chead .cell.lp { color: var(--gold); }
.compare .cell { padding: 16px 20px; font-size: var(--text-sm); }
.compare .cell.lab { font-weight: 700; color: var(--navy); font-family: var(--font-display); }
.compare .cell.bot { color: var(--muted); }
.compare .cell.lp { color: var(--ink); }
.compare .crow:not(.chead):nth-child(even) { background: var(--surface); }

/* ---------- cta / get started ---------- */
.cta-box { text-align: center; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- in practice (EMI worked example) ---------- */
.practice-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: start; }
.mock--light { box-shadow: 0 10px 30px rgba(15,39,66,.06); }
.summary-card--full { margin: 0; background: #fff; box-shadow: 0 10px 30px rgba(15,39,66,.06); padding: 20px 22px; }
.summary-card--full .sc-head { font-size: 12px; margin-bottom: 14px; }
.summary-card--full .row { padding: 9px 0; font-size: var(--text-base); }
.practice-note { margin-top: 28px; color: var(--muted); font-size: var(--text-base); max-width: 60ch; }

/* ---------- pilot cta ---------- */
.pilot-cta { margin-top: 40px; }

/* ---------- faq accordion ---------- */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-head { position: sticky; top: 96px; }
.faq-head h2 { font-size: var(--text-2xl); margin: 12px 0 0; }
.faq-head p { color: var(--muted); margin-top: 18px; font-size: var(--text-base); }
.faq-head p a { color: var(--gold-d); }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 2px; position: relative; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--gold-d); transition: transform .2s ease; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 44px 22px 2px; margin: 0; color: var(--muted); font-size: var(--text-base); line-height: 1.6; }
.faq-item p a { color: var(--gold-d); }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: var(--navy-txt); padding: 56px 0 36px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.footer .brand { color: #fff; }
.footer .brand .dot { color: var(--gold); }
.footer .tagline { color: var(--navy-txt); font-size: var(--text-sm); margin-top: 12px; max-width: 32ch; line-height: 1.5; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: var(--text-sm); color: var(--navy-txt); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: var(--text-xs); color: var(--faint); }

/* ---------- legal / content pages ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--text-2xl); color: var(--navy); }
.page-hero p { color: var(--muted); margin-top: 12px; }
.prose { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.prose h2 { font-size: var(--text-xl); margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--text-lg); margin: 26px 0 8px; color: var(--ink); }
.prose p, .prose li { color: var(--ink); font-size: var(--text-base); line-height: 1.7; margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--gold-d); text-decoration: underline; text-underline-offset: 2px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; font-size: var(--text-sm); color: var(--muted); margin: 22px 0; }
.tbc { background: #FBF6EA; border: 1px dashed var(--gold-d); border-radius: 6px; padding: 1px 7px; font-size: .85em; color: var(--gold-d); font-weight: 600; }

/* contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: var(--text-base);
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(22,57,94,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.contact-aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-aside h3 { font-size: var(--text-lg); }
.contact-aside p { color: var(--muted); font-size: var(--text-sm); margin-top: 8px; line-height: 1.55; }
.contact-aside a.mail { color: var(--gold-d); font-weight: 600; display: inline-block; margin-top: 4px; }
.form-note { font-size: var(--text-xs); color: var(--faint); margin-top: 8px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .lead { max-width: 46ch; }
  .val-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .firms-grid { grid-template-columns: 1fr; gap: 32px; }
  .data-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .faq-head { position: static; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .nav-links.open a { padding: 13px 28px; width: 100%; }
  .menu-toggle { display: block; }
  .nav-cta .btn--ghost { display: none; }
  .cards-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .pilot-steps { gap: 16px; }
  .val-grid { grid-template-columns: 1fr; }
  .practice-grid { grid-template-columns: 1fr; gap: 28px; }
  .data-grid { grid-template-columns: 1fr; }
  .compare .crow { grid-template-columns: 1fr; }
  .compare .cell.lab { background: var(--surface); border-bottom: 1px solid var(--line); }
  .compare .chead { display: none; }
  .compare .cell.bot::before { content: "General chatbot — "; font-weight: 600; color: var(--navy); }
  .compare .cell.lp::before { content: "LegalPoint — "; font-weight: 600; color: var(--gold-d); }
}
