/* ============================================================
   LexiSync — shared design system
   Navy #0A1628 · Amber #E8A020 · Off-white #F5F8FF
   DM Sans throughout; Instrument Serif italic for hero accents
   ============================================================ */

:root {
  --navy-deep: #0A1628;
  --navy-mid: #132240;
  --navy-light: #1E3460;
  --amber: #E8A020;
  --amber-light: #F5C84A;
  --amber-pale: #FDF0D5;
  --amber-ink: #B8760A;
  --white: #F5F8FF;
  --off-white: #EEF2FA;
  --text-secondary: #8FA3C8;
  --text-muted: #5A7099;
  --text-body: #4A6080;
  --ink: #1A2744;
  --line: #DDE4F0;
  --line-soft: #E6EBF5;
  --border: rgba(245,248,255,0.08);
  --border-light: rgba(232,160,32,0.2);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-text { font-size: 20px; font-weight: 600; color: var(--white); letter-spacing: -0.01em; }
.nav-logo-text span { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 14px; color: var(--text-secondary); text-decoration: none;
  transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--amber); color: var(--navy-deep);
  font-size: 14px; font-weight: 600;
  padding: 9px 22px; border-radius: 6px;
  text-decoration: none; white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}
.nav-cta:hover { background: var(--amber-light); transform: translateY(-1px); }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--amber); color: var(--navy-deep);
  font-size: 15px; font-weight: 600;
  padding: 14px 32px; border-radius: 8px;
  text-decoration: none; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,160,32,0.25); }
.btn-secondary {
  background: transparent; color: var(--white);
  font-size: 15px; font-weight: 500;
  padding: 14px 32px; border-radius: 8px;
  border: 1px solid rgba(245,248,255,0.2);
  text-decoration: none; transition: all 0.2s;
  display: inline-flex; align-items: center;
}
.btn-secondary:hover { border-color: rgba(245,248,255,0.4); background: rgba(245,248,255,0.04); }
.btn-secondary.on-light { color: var(--navy-deep); border-color: var(--line); }
.btn-secondary.on-light:hover { border-color: var(--amber); background: rgba(232,160,32,0.05); }

.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.actions.center { justify-content: center; }

/* ─── HERO (full, homepage) ─── */
.hero {
  background: var(--navy-deep);
  min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 130px 5% 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232,160,32,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,160,32,0.03) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(232,160,32,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { max-width: 880px; text-align: center; position: relative; z-index: 1; }

/* ─── PAGE HERO (interior pages) ─── */
.page-hero {
  background: var(--navy-deep);
  padding: 150px 5% 84px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232,160,32,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,160,32,0.03) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute;
  top: -240px; right: -100px;
  width: 700px; height: 600px;
  background: radial-gradient(ellipse, rgba(232,160,32,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-inner.center { text-align: center; max-width: 820px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(232,160,32,0.1);
  border: 1px solid rgba(232,160,32,0.25);
  color: var(--amber);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px;
  margin-bottom: 26px;
  animation: fadeUp 0.6s ease both;
}
.hero-headline {
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 600; color: var(--white);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease 0.1s both;
}
.page-hero .hero-headline { font-size: clamp(34px, 4.4vw, 52px); max-width: 860px; }
.hero-headline-accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400; color: var(--amber);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary); font-weight: 300;
  max-width: 680px; line-height: 1.65;
  animation: fadeUp 0.6s ease 0.2s both;
}
.hero-inner .hero-sub, .page-hero-inner.center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-sub strong { color: var(--white); font-weight: 500; }
.hero-actions { margin: 40px 0 60px; animation: fadeUp 0.6s ease 0.3s both; }
.page-hero .hero-actions { margin-bottom: 0; }

/* ─── HERO BRAND LOCKUP ─── */
.brand-lockup { letter-spacing: -0.03em; }
.brand-lockup .brand-name {
  color: var(--white); font-weight: 700;
  font-size: 1.12em; letter-spacing: -0.035em;
}
.brand-lockup .hero-headline-accent { display: inline-block; margin-top: 4px; }

/* ─── HERO STATS ─── */
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255,255,255,0.03); overflow: hidden;
  animation: fadeUp 0.6s ease 0.4s both;
}
.stat-item { padding: 20px 32px; text-align: center; border-right: 1px solid var(--border); flex: 1; }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 26px; font-weight: 600; color: var(--amber); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text-secondary); line-height: 1.3; }

/* ─── SECTION FURNITURE ─── */
section { position: relative; }
.wrap { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.wrap-narrow { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }

.sec-light { background: var(--white); padding: 96px 5%; }
.sec-tint { background: var(--off-white); padding: 96px 5%; }
.sec-dark { background: var(--navy-deep); padding: 96px 5%; overflow: hidden; }
.sec-dark::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(232,160,32,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 16px;
}
.section-headline {
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 600;
  line-height: 1.2; letter-spacing: -0.01em;
  max-width: 760px; margin-bottom: 18px;
  color: var(--navy-deep);
}
.sec-dark .section-headline { color: var(--white); }
.section-sub { font-size: 17px; max-width: 640px; margin-bottom: 52px; line-height: 1.65; color: var(--text-body); }
.sec-dark .section-sub { color: var(--text-secondary); }
.sec-dark .section-sub strong { color: var(--white); font-weight: 500; }
.head-center { text-align: center; }
.head-center .section-headline, .head-center .section-sub { margin-left: auto; margin-right: auto; }

/* ─── CARD GRIDS ─── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.cap-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.sec-dark .cap-card { background: rgba(255,255,255,0.04); border-color: var(--border); }
.cap-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.cap-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--amber-pale); color: var(--amber-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; margin-bottom: 16px;
}
.sec-dark .cap-icon { background: rgba(232,160,32,0.12); color: var(--amber); border: 1px solid rgba(232,160,32,0.28); }
.cap-title { font-size: 16px; font-weight: 600; color: var(--navy-deep); margin-bottom: 8px; }
.sec-dark .cap-title { color: var(--white); }
.cap-body { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }
.sec-dark .cap-body { color: var(--text-secondary); }

/* ─── NUMBERED FLOW ─── */
.flow-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.sec-light .flow-step, .sec-tint .flow-step { background: var(--white); border-color: var(--line); }
.flow-num { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--amber); margin-bottom: 12px; }
.flow-title { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 8px; line-height: 1.35; }
.sec-light .flow-title, .sec-tint .flow-title { color: var(--navy-deep); }
.flow-body { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.sec-light .flow-body, .sec-tint .flow-body { color: var(--text-muted); }

/* ─── STEP LIST (vertical, numbered) ─── */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 60px 1fr; gap: 24px;
  padding: 30px 0; border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.sec-light .step, .sec-tint .step { border-bottom-color: var(--line-soft); }
.step:last-child { border-bottom: none; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.3);
  color: var(--amber);
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.sec-light .step-num, .sec-tint .step-num { background: var(--amber-pale); color: var(--amber-ink); border-color: rgba(232,160,32,0.35); }
.step-title { font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.sec-light .step-title, .sec-tint .step-title { color: var(--navy-deep); }
.step-body { font-size: 14px; color: var(--text-secondary); line-height: 1.7; max-width: 660px; }
.sec-light .step-body, .sec-tint .step-body { color: var(--text-body); }
.step-body strong { color: var(--amber-light); font-weight: 500; }
.sec-light .step-body strong, .sec-tint .step-body strong { color: var(--amber-ink); }

/* ─── RESULT CARDS ─── */
.result-card { border: 1px solid var(--line); border-radius: 14px; padding: 34px; background: var(--white); }
.result-card.featured { background: var(--navy-deep); border-color: var(--border-light); }
.result-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px;
}
.result-stat { font-size: 44px; font-weight: 600; color: var(--amber); line-height: 1; margin-bottom: 8px; }
.result-headline { font-size: 16px; font-weight: 600; color: var(--navy-deep); margin-bottom: 12px; line-height: 1.45; }
.result-card.featured .result-headline { color: var(--white); }
.result-body { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.result-card.featured .result-body { color: var(--text-secondary); }
.result-body strong { color: var(--navy-deep); font-weight: 600; }
.result-card.featured .result-body strong { color: var(--white); }

/* ─── PRICING TIERS ─── */
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tier {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 28px 24px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.tier:hover { border-color: var(--border-light); transform: translateY(-2px); }
.tier-cases {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.tier-price { font-size: 34px; font-weight: 600; color: var(--navy-deep); line-height: 1; }
.tier-price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.tier-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-top: 14px; }
.tier-grace { margin-top: auto; padding-top: 18px; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--line-soft); }

/* ─── INCLUDED PANEL ─── */
.included { background: var(--navy-deep); border-radius: 14px; padding: 34px 38px; }
.included-title { font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.included-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.included-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 28px; }
.included-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--white); }
.included-check { color: var(--amber); font-weight: 600; flex-shrink: 0; }

/* ─── PLAIN LISTS ─── */
.dash-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dash-list li { position: relative; padding-left: 22px; font-size: 14px; color: var(--text-body); line-height: 1.65; }
.dash-list li::before { content: '—'; position: absolute; left: 0; top: 0; color: var(--amber); }
.sec-dark .dash-list li { color: var(--text-secondary); }

/* ─── QUOTE ─── */
.quote { border-left: 2px solid var(--amber); padding: 6px 0 6px 22px; max-width: 720px; }
.quote-text { font-size: 19px; line-height: 1.6; color: var(--navy-deep); font-weight: 300; }
.sec-dark .quote-text { color: var(--white); }
.quote-attrib { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

/* ─── NOTE BLOCK ─── */
.note {
  border-left: 2px solid var(--amber);
  padding: 4px 0 4px 20px;
  font-size: 15px; color: var(--text-secondary); line-height: 1.7; max-width: 780px;
}
.sec-light .note, .sec-tint .note { color: var(--text-body); }
.note strong { color: var(--white); font-weight: 500; }
.sec-light .note strong, .sec-tint .note strong { color: var(--navy-deep); font-weight: 600; }

/* ─── FAQ ─── */
.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 22px 40px 22px 0; position: relative;
  font-size: 16px; font-weight: 500; color: var(--navy-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 8px; top: 20px;
  font-size: 22px; font-weight: 400; color: var(--amber); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 40px 24px 0; font-size: 14.5px; color: var(--text-body); line-height: 1.75; }
.faq-body strong { color: var(--navy-deep); font-weight: 600; }

/* ─── TABS (practice areas) ─── */
.tabs {
  position: sticky; top: 68px; z-index: 50;
  background: rgba(245,248,255,0.97); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; gap: 8px; padding: 0 5%; overflow-x: auto;
}
.tabs a {
  padding: 16px 20px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  border-bottom: 2px solid transparent; white-space: nowrap; transition: all 0.2s;
}
.tabs a:hover { color: var(--navy-deep); }
.tabs a.active { color: var(--navy-deep); border-bottom-color: var(--amber); }

/* ─── SPEC TABLE ─── */
.spec { display: flex; flex-direction: column; gap: 0; }
.spec-row {
  display: grid; grid-template-columns: 1fr auto; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 14px; align-items: baseline;
}
.spec-row:last-child { border-bottom: none; }
.spec-key { color: var(--text-muted); }
.spec-val { color: var(--navy-deep); font-weight: 600; text-align: right; }
.sec-dark .spec-row { border-bottom-color: var(--border); }
.sec-dark .spec-key { color: var(--text-secondary); }
.sec-dark .spec-val { color: var(--amber); }

/* ─── CTA ─── */
.cta { background: var(--navy-deep); padding: 100px 5%; text-align: center; overflow: hidden; }
.cta::after {
  content: ''; position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(232,160,32,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.cta-headline {
  font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; color: var(--white);
  line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.01em;
}
.cta-sub { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.65; }
.cta-note { font-size: 13px; color: var(--text-muted); margin-top: 22px; }

/* ─── FOOTER ─── */
footer {
  background: #060F1C; padding: 44px 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--border);
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-text { font-size: 16px; font-weight: 600; color: var(--white); }
.footer-logo-text span { color: var(--amber); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-secondary); }
.footer-legal { font-size: 12px; color: #3D5478; width: 100%; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ─── RESPONSIVE ─── */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .included-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-wrap: wrap; }
  .stat-item { flex: 1 1 45%; border-bottom: 1px solid var(--border); }
  .split { grid-template-columns: 1fr !important; gap: 28px !important; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .tier-grid, .included-grid { grid-template-columns: 1fr; }
  .stat-item { flex: 1 1 100%; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .sec-light, .sec-tint, .sec-dark { padding: 68px 6%; }
  .page-hero { padding: 120px 6% 60px; }
}

/* ─── UTILITIES ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split.middle { align-items: center; }
.mb-0 { margin-bottom: 0; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.link-amber { color: var(--amber-ink); font-weight: 600; text-decoration: none; font-size: 14px; }
.link-amber:hover { text-decoration: underline; }
.sec-dark .link-amber { color: var(--amber); }
