/* ==========================================================================
   Legalia marketing site — shared stylesheet
   Used by index.html, about.html, contact.html
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0D1B2A;
  --navy-mid: #152336;
  --navy-light: #1E3352;
  --gold: #C9A84C;
  --gold-light: #E2C47A;
  --gold-pale: #F5EDD6;
  --cream: #F9F6EF;
  --white: #FFFFFF;
  --text-muted: #8A9AB0;
  --border: rgba(201,168,76,0.18);
  --border-light: rgba(255,255,255,0.07);
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  background: rgba(13,27,42,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--navy) !important; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 0.9rem 1.8rem;
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
  border: 1px solid var(--gold);
  cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 72px 5vw 0;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(30,51,82,0.6) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  padding: 4rem 0;
}
.hero-content { position: relative; }
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  position: relative;
}
.hero-eyebrow::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 1.5rem; height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  margin-bottom: 2.5rem;
  max-width: 28rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── HERO VISUAL (preserved from original) ── */
.hero-visual {
  position: relative;
}
.dashboard-frame {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.1);
}
.dash-topbar {
  background: var(--navy-light);
  padding: 0.7rem 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28ca41; }
.dash-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-left: 1rem;
}
.dash-body { padding: 1.5rem; }
.dash-header-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.dash-matter-title {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
}
.dash-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}
.badge-amber { background: rgba(255,189,46,0.15); color: #ffc947; }
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.dash-metric {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  padding: 1rem;
  border-radius: 4px;
}
.dash-metric-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.dash-metric-val {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
}
.dash-metric-val.gold { color: var(--gold); }
.dash-metric-val.warn { color: #ffc947; }
.dash-metric-sub {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.4rem;
}
.dash-progress {
  background: rgba(255,255,255,0.08);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.dash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 73%;
  position: relative;
}
.dash-phases { display: flex; flex-direction: column; gap: 0.6rem; }
.dash-phase {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  font-size: 0.85rem;
}
.phase-dot { width: 6px; height: 6px; border-radius: 50%; }
.fill-gold { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.fill-warn { background: #ffc947; }
.fill-ok { background: #5df07a; }
.phase-name { flex: 1; color: rgba(255,255,255,0.8); font-family: var(--mono); letter-spacing: 0.04em; font-size: 0.75rem; }
.phase-pct { font-family: var(--mono); font-size: 0.75rem; color: var(--gold); }

/* ── SECTIONS (general) ── */
section { padding: 7rem 5vw; position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-label::before {
  content: ''; width: 1.5rem; height: 1px; background: var(--gold);
}
section h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
section h2 em { color: var(--gold); font-style: italic; }
.section-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 36rem;
}

/* ── PROBLEM SECTION ── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.problem-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.problem-card:hover { background: var(--navy-light); }
.problem-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.4;
}
.problem-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.problem-title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: var(--white);
}
.problem-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
}

/* ── FEATURES (outcome-grouped) ── */
.features-section { background: rgba(255,255,255,0.015); }
.features-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: end;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.feature-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2.5rem;
  transition: all 0.3s;
}
.feature-card:hover { background: var(--navy-light); border-color: var(--border); }
.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.4rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.feature-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--white);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}
.feature-list li::before {
  content: '';
  position: absolute; left: 0; top: 1.05rem;
  width: 0.5rem; height: 1px;
  background: var(--gold);
}

/* ── WHO IT'S FOR ── */
.who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.who-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 1.5rem 1.8rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  transition: all 0.2s;
}
.who-card:hover { background: var(--navy-light); }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}
.pricing-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  position: relative;
  display: flex; flex-direction: column;
  transition: all 0.3s;
}
.pricing-card.featured {
  background: var(--navy-light);
  border-color: var(--gold);
  box-shadow: 0 8px 40px rgba(201,168,76,0.18);
}
.pricing-badge {
  position: absolute; top: -1px; right: 1.5rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  font-weight: 500;
}
.pricing-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.pricing-name {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--white);
}
.pricing-price {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}
.pricing-price span {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-left: 0.5rem;
}
.pricing-users {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
  margin-bottom: 1.4rem;
}
.pricing-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.8rem;
  flex: 1;
}
.btn-pricing {
  width: 100%;
  text-align: center;
  padding: 1rem 1.4rem;
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
  display: inline-block;
}
.btn-pricing-gold {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}
.btn-pricing-gold:hover { background: var(--gold-light); }
.btn-pricing-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-pricing-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── ABOUT PAGE STYLES ── */
.page-header {
  padding: 11rem 5vw 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(201,168,76,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.page-header-inner { max-width: 800px; margin: 0 auto; position: relative; }
.page-header h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.page-header h1 em { color: var(--gold); font-style: italic; }
.page-header-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 36rem;
  margin: 0 auto;
}

.about-narrative {
  max-width: 760px;
  margin: 0 auto;
}
.about-narrative p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.6rem;
}
.about-narrative p em {
  color: var(--gold);
  font-style: italic;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.value-card {
  text-align: left;
}
.value-num {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}
.value-title {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.7rem;
  color: var(--white);
}
.value-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
}

/* ── CONTACT PAGE ── */
.contact-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-intro h2 {
  font-family: var(--display);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contact-intro p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.2rem;
}
.contact-points {
  list-style: none;
  margin-top: 1.8rem;
  padding: 0;
}
.contact-points li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  padding: 0.7rem 0 0.7rem 1.8rem;
  position: relative;
  border-top: 1px solid var(--border-light);
}
.contact-points li:first-child { border-top: none; }
.contact-points li::before {
  content: '\2192';
  position: absolute; left: 0; top: 0.7rem;
  color: var(--gold);
  font-family: var(--mono);
}

.contact-form {
  background: var(--navy-mid);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2.5rem;
}
.form-group {
  margin-bottom: 1.4rem;
}
.form-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-label .required { color: var(--gold); margin-left: 4px; }
.form-input,
.form-textarea {
  width: 100%;
  background: var(--navy);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(13,27,42,0.6);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255,255,255,0.35);
}
.form-textarea {
  min-height: 130px;
  resize: vertical;
  font-family: var(--body);
}
.form-error {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #ff7b75;
  min-height: 0.9rem;
}
.form-success {
  background: rgba(40,202,65,0.08);
  border: 1px solid rgba(40,202,65,0.3);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: #5df07a;
}
.form-success strong {
  display: block;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #5df07a;
}
.btn-submit {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
  padding: 1rem 1.4rem;
  border-radius: 2px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-submit:hover { background: var(--gold-light); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-section h2 { margin-bottom: 1.5rem; }
.cta-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
}
.cta-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  padding: 4rem 5vw 3rem;
  background: var(--navy);
  border-top: 1px solid var(--border-light);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem;
}
.footer-logo {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
}
.footer-logo span { color: var(--gold); }
.footer-tagline {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.footer-links {
  display: flex; gap: 2rem; list-style: none;
}
.footer-links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-up.visible {
  opacity: 1; transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 968px) {
  nav { padding: 0 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .nav-links li:not(.nav-cta-li):not(:nth-last-child(-n+2)) { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .features-header { grid-template-columns: 1fr; gap: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { order: -1; }
  .who-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  section { padding: 5rem 1.5rem; }
  .page-header { padding: 8.5rem 1.5rem 3.5rem; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 540px) {
  .nav-links { gap: 0.8rem; }
  .nav-cta { padding: 0.5rem 1rem; font-size: 0.7rem; }
}
