/* ============================================================
   LEGALCLARITY — SHARED STYLES
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', sans-serif;
  background: #f7f4ef;
  color: #1c1a17;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── TOKENS ── */
:root {
  --cream: #f7f4ef;
  --cream-dark: #ede9e1;
  --ink: #1c1a17;
  --ink-mid: #4a4640;
  --ink-light: #8a837a;
  --gold: #b8860b;
  --gold-light: #d4a017;
  --gold-pale: #f5edda;
  --forest: #2d4a3e;
  --forest-mid: #3d6455;
  --teal: #1a6b6b;
  --rust: #7a2e20;
  --white: #ffffff;
  --border: rgba(28,26,23,.11);
  --border-s: rgba(28,26,23,.2);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --max: 1180px;
  --shadow: 0 4px 32px rgba(28,26,23,.07);
  --radius: 2px;
}

/* ── LAYOUT ── */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.wrap-sm { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.wrap-md { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* ── REVEAL ── */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.rv.on { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

/* ── GRAIN ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 900; opacity: .4;
}

/* ── TOPBAR ── */
.topbar { background: var(--forest); padding: .42rem 0; text-align: center; position: relative; z-index: 501; }
.topbar p { font-size: .71rem; letter-spacing: .05em; color: rgba(247,244,239,.7); }
.topbar a { color: var(--gold); border-bottom: 1px solid var(--gold); transition: opacity .2s; }
.topbar a:hover { opacity: .75; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 1.1rem 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
nav.sc { background: rgba(247,244,239,.97); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border); padding: .75rem 0; }
.nav-i { display: flex; align-items: center; justify-content: space-between; max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem,4vw,3rem); }
.logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: .45rem; }
.logo-mark { width: 25px; height: 25px; background: var(--forest); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark svg { width: 12px; height: 12px; fill: var(--cream); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .84rem; font-weight: 400; letter-spacing: .04em; color: var(--ink-mid); position: relative; padding-bottom: 2px; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--gold); transition: width .3s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--forest) !important; color: var(--cream) !important; padding: .55rem 1.4rem; border-radius: var(--radius); font-weight: 500 !important; font-size: .84rem !important; letter-spacing: .05em; transition: background .2s !important; white-space: nowrap; }
.nav-cta:hover { background: var(--forest-mid) !important; }
.nav-cta::after { display: none !important; }
.nav-cta-gold { background: var(--gold) !important; color: var(--ink) !important; padding: .55rem 1.4rem; border-radius: var(--radius); font-weight: 600 !important; font-size: .84rem !important; transition: background .2s !important; white-space: nowrap; }
.nav-cta-gold:hover { background: var(--gold-light) !important; }
.nav-cta-gold::after { display: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: all .3s; }

/* ── MOBILE NAV ── */
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 480; background: var(--cream); flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--serif); font-size: 1.9rem; font-weight: 300; color: var(--ink); transition: color .2s; }
.mobile-nav a:hover { color: var(--forest); }
.mobile-close { position: absolute; top: 1.5rem; right: 1.75rem; background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--ink-mid); }

/* ── BUTTONS ── */
.btn-primary { display: inline-flex; align-items: center; gap: .65rem; background: var(--forest); color: var(--cream); padding: .92rem 1.9rem; font-size: .875rem; font-weight: 500; letter-spacing: .05em; border: none; cursor: pointer; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; border-radius: var(--radius); }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: var(--forest-mid); transform: translateX(-101%); transition: transform .35s cubic-bezier(.16,1,.3,1); }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(45,74,62,.22); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary svg { transition: transform .25s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-gold { display: inline-flex; align-items: center; gap: .65rem; background: var(--gold); color: var(--ink); padding: .92rem 1.9rem; font-size: .875rem; font-weight: 600; letter-spacing: .04em; border: none; cursor: pointer; transition: background .2s, transform .2s; border-radius: var(--radius); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-gold svg { transition: transform .25s; }
.btn-gold:hover svg { transform: translateX(3px); }

.btn-ghost { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-mid); font-size: .83rem; border-bottom: 1px solid var(--border-s); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.btn-ghost:hover { color: var(--forest); border-color: var(--forest); }

.btn-outline { display: inline-flex; align-items: center; gap: .5rem; color: var(--forest); font-size: .84rem; font-weight: 500; border: 1px solid var(--forest); padding: .7rem 1.5rem; transition: background .2s, color .2s; border-radius: var(--radius); }
.btn-outline:hover { background: var(--forest); color: var(--cream); }

/* ── SECTION HEADERS ── */
.sec-eye { display: flex; align-items: center; gap: .65rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 1.1rem; }
.sec-eye::before { content: ''; display: block; width: 20px; height: 1px; background: var(--gold); }
.sec-title { font-family: var(--serif); font-size: clamp(2rem, 3.8vw, 3.5rem); font-weight: 300; line-height: 1.1; color: var(--ink); margin-bottom: .85rem; }
.sec-title em { font-style: italic; color: var(--forest); }
.sec-sub { font-size: .95rem; color: var(--ink-mid); max-width: 500px; line-height: 1.8; font-weight: 300; }

/* ── TICKER ── */
.ticker { background: var(--forest); padding: .58rem 0; overflow: hidden; }
.ticker-track { display: flex; animation: ticker 36s linear infinite; white-space: nowrap; }
.ticker-item { display: inline-flex; align-items: center; gap: 1.2rem; padding: 0 1.65rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,244,239,.65); }
.ticker-dot { width: 3px; height: 3px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── FORMS ── */
.form-wrap { background: var(--white); padding: 2.25rem; border: 1px solid var(--border); }
.form-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); margin-bottom: .3rem; }
.form-sub { font-size: .8rem; color: var(--ink-light); margin-bottom: 1.75rem; }
.field-group { margin-bottom: 1.1rem; }
.field-group label { display: block; font-size: .73rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 500; color: var(--ink-mid); margin-bottom: .38rem; }
.field-group input,
.field-group select,
.field-group textarea {
  width: 100%; padding: .75rem .95rem;
  border: 1px solid var(--border-s);
  background: var(--cream);
  font-family: var(--sans); font-size: .875rem; color: var(--ink);
  outline: none;
  transition: border-color .2s, background .2s;
  border-radius: var(--radius);
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus { border-color: var(--forest); background: var(--white); }
.field-group input.error,
.field-group select.error,
.field-group textarea.error { border-color: #c0614a; background: rgba(192,97,74,.04); }
.field-group .err-msg { font-size: .72rem; color: #c0614a; margin-top: .3rem; display: none; }
.field-group textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.field-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a837a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .95rem center; background-color: var(--cream); }
.field-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.check-group { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .85rem; margin-top: .35rem; }
.check-label { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--ink-mid); cursor: pointer; font-weight: 400; letter-spacing: 0; text-transform: none; }
.check-label input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--forest); cursor: pointer; flex-shrink: 0; }
.form-disclaimer { font-size: .73rem; color: var(--ink-light); line-height: 1.6; margin-bottom: 1rem; }
.form-disclaimer a { color: var(--forest); border-bottom: 1px solid currentColor; }
.form-submit { width: 100%; padding: .95rem; background: var(--forest); color: var(--cream); font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .05em; border: none; cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center; gap: .5rem; border-radius: var(--radius); }
.form-submit:hover { background: var(--forest-mid); }
.form-submit:disabled { background: var(--ink-light); cursor: not-allowed; }
.form-success { display: none; text-align: center; padding: 2.5rem 2rem; background: rgba(45,74,62,.05); border: 1px solid rgba(45,74,62,.2); }
.form-success .check-icon { font-size: 2.5rem; color: var(--forest); margin-bottom: .75rem; }
.form-success h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--forest); margin-bottom: .6rem; }
.form-success p { font-size: .875rem; color: var(--ink-mid); line-height: 1.8; }
.form-error-banner { display: none; padding: .85rem 1.1rem; background: rgba(192,97,74,.08); border: 1px solid rgba(192,97,74,.25); font-size: .82rem; color: #7a2e20; margin-bottom: 1rem; border-radius: var(--radius); }

/* ── PRICING CARDS ── */
.price-card { border: 1px solid var(--border); background: var(--white); position: relative; transition: border-color .25s, box-shadow .25s, transform .25s; }
.price-card:hover { border-color: var(--forest); box-shadow: var(--shadow); transform: translateY(-3px); }
.price-card.featured { border-color: var(--forest); background: var(--cream); }
.pc-accent-bar { height: 4px; }
.pc-tag-paralegal .pc-accent-bar { background: var(--teal); }
.pc-tag-std .pc-accent-bar { background: var(--forest); }
.pc-tag-deep .pc-accent-bar { background: var(--gold); }
.pc-top-label { position: absolute; top: -.1rem; right: 1.4rem; background: var(--forest); color: var(--cream); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: .26rem .9rem; }
.pc-body { padding: 1.9rem; }
.pc-type-label { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: .42rem; }
.pc-tag-paralegal .pc-type-label { color: var(--teal); }
.pc-tag-std .pc-type-label { color: var(--forest); }
.pc-tag-deep .pc-type-label { color: var(--gold); }
.pc-who { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--ink); margin-bottom: .28rem; }
.pc-scope { font-size: .76rem; color: var(--ink-light); margin-bottom: 1.3rem; line-height: 1.5; }
.pc-price { display: flex; align-items: baseline; gap: .22rem; margin-bottom: .18rem; }
.pc-currency { font-family: var(--serif); font-size: 1.25rem; color: var(--ink-mid); font-weight: 300; }
.pc-amount { font-family: var(--serif); font-size: 3rem; font-weight: 300; color: var(--ink); line-height: 1; }
.pc-period { font-size: .76rem; color: var(--ink-light); margin-bottom: 1.3rem; }
.pc-divider { height: 1px; background: var(--border); margin: 1.3rem 0; }
.pc-features { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.65rem; }
.pc-features li { display: flex; align-items: flex-start; gap: .6rem; font-size: .81rem; color: var(--ink-mid); line-height: 1.5; }
.pc-features li::before { content: '→'; flex-shrink: 0; font-weight: 500; }
.pc-tag-paralegal .pc-features li::before { color: var(--teal); }
.pc-tag-std .pc-features li::before { color: var(--forest); }
.pc-tag-deep .pc-features li::before { color: var(--gold); }
.pc-btn { width: 100%; padding: .9rem; font-family: var(--sans); font-size: .855rem; font-weight: 500; letter-spacing: .05em; border: none; cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: .45rem; border-radius: var(--radius); }
.pc-tag-paralegal .pc-btn { background: var(--teal); color: var(--cream); }
.pc-tag-paralegal .pc-btn:hover { background: #145858; }
.pc-tag-std .pc-btn { background: var(--forest); color: var(--cream); }
.pc-tag-std .pc-btn:hover { background: var(--forest-mid); }
.pc-tag-deep .pc-btn { background: var(--gold); color: var(--ink); }
.pc-tag-deep .pc-btn:hover { background: var(--gold-light); }

/* ── FOOTER ── */
.site-footer { background: #111009; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(247,244,239,.07); margin-bottom: 1.75rem; }
.footer-logo { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--cream); display: flex; align-items: center; gap: .45rem; margin-bottom: .8rem; }
.footer-logo .logo-mark { background: var(--forest); }
.footer-brand-p { font-size: .78rem; color: rgba(247,244,239,.38); line-height: 1.7; font-weight: 300; max-width: 270px; }
.footer-col h4 { font-size: .65rem; letter-spacing: .13em; text-transform: uppercase; color: rgba(247,244,239,.3); font-weight: 500; margin-bottom: .8rem; }
.footer-col a { display: block; font-size: .78rem; color: rgba(247,244,239,.48); margin-bottom: .48rem; transition: color .2s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-disclaimer { font-size: .68rem; color: rgba(247,244,239,.26); line-height: 1.7; max-width: 660px; }
.footer-copy { font-size: .68rem; color: rgba(247,244,239,.26); white-space: nowrap; }

/* ── MODAL ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 800; align-items: center; justify-content: center; padding: 1.5rem; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--white); max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; cursor: pointer; font-size: 1.3rem; color: var(--ink-light); z-index: 1; transition: color .2s; }
.modal-close:hover { color: var(--ink); }
.modal-header { padding: 2rem 2rem 1rem; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); }
.modal-body { padding: 1.75rem 2rem 2rem; }

/* ── ALERT / TOAST ── */
.toast { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; background: var(--ink); color: var(--cream); padding: 1rem 1.5rem; font-size: .875rem; max-width: 340px; box-shadow: 0 8px 24px rgba(0,0,0,.2); transform: translateY(120%); transition: transform .35s cubic-bezier(.16,1,.3,1); border-radius: var(--radius); }
.toast.show { transform: translateY(0); }
.toast.success { background: var(--forest); }
.toast.error { background: var(--rust); }

/* ── PROGRESS STEPS ── */
.progress-steps { display: flex; align-items: center; gap: 0; margin-bottom: 2.5rem; }
.ps-step { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 500; color: var(--ink-light); flex: 1; }
.ps-step.active { color: var(--forest); }
.ps-step.done { color: var(--teal); }
.ps-num { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 600; flex-shrink: 0; transition: all .3s; }
.ps-step.active .ps-num { border-color: var(--forest); color: var(--forest); }
.ps-step.done .ps-num { border-color: var(--teal); background: var(--teal); color: var(--cream); }
.ps-line { flex: 1; height: 1px; background: var(--border); }
.ps-step.done + .ps-line { background: var(--teal); }

/* ── UTIL ── */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-muted { color: var(--ink-light); }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .field-grid-2 { grid-template-columns: 1fr; }
  .field-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .check-group { grid-template-columns: 1fr; }
}
