/* LegalFormsOS design system — premium legal-tech SaaS.
   Deep navy · white · soft gray · emerald/blue accent. */
:root {
  --navy-950: #060D1F;
  --navy-900: #0A1628;
  --navy-800: #10203D;
  --navy-700: #1A2F52;
  --navy-600: #27406B;
  --ink: #0F172A;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --emerald: #10B981;
  --emerald-dark: #059669;
  --blue: #2563EB;
  --blue-light: #3B82F6;
  --red: #DC2626;
  --amber: #D97706;
  --radius: 12px;
  --shadow-md: 0 4px 16px rgba(6, 13, 31, .10);
  --shadow-lg: 0 12px 40px rgba(6, 13, 31, .16);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--slate-50); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---------- shared components ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer;
  border-radius: 10px; padding: 12px 22px; font-size: 15px; font-weight: 600; transition: all .18s ease; text-decoration: none !important; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { position: relative; overflow: hidden;
  background: linear-gradient(180deg, #2ee0a0 0%, #11c088 44%, #059669 100%); color: #fff;
  box-shadow: 0 6px 18px rgba(16,185,129,.42), 0 1px 3px rgba(0,0,0,.22),
              inset 0 1px 0 rgba(255,255,255,.5), inset 0 -3px 7px rgba(0,0,0,.16); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(16,185,129,.55), 0 2px 6px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  pointer-events: none; transform: skewX(-20deg); transition: left .6s ease;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); }
.btn-primary:hover::after { left: 150%; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover:not(:disabled) { background: var(--blue-light); }
.btn-ghost { background: transparent; color: var(--slate-300); border: 1px solid var(--navy-600); }
.btn-ghost:hover { color: #fff; border-color: var(--slate-400); }
.btn-outline { background: #fff; color: var(--navy-800); border: 1.5px solid var(--slate-300); }
.btn-outline:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.btn-danger { background: #fff; color: var(--red); border: 1.5px solid #FECACA; }
.btn-danger:hover { background: #FEF2F2; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--slate-500); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--slate-200); border-radius: 8px; background: #fff; outline: none; transition: border .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.field .help { font-size: 12px; color: var(--slate-400); margin-top: 4px; }
.agree-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--slate-500); text-transform: none; letter-spacing: 0; font-weight: 400; cursor: pointer; }
.agree-row input[type=checkbox] { width: 18px; height: 18px; min-width: 18px; margin-top: 1px; accent-color: var(--green, #059669); cursor: pointer; }
.agree-row a { color: var(--blue, #2563eb); font-weight: 600; text-decoration: none; }
.agree-row a:hover { text-decoration: underline; }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.field-sensitive label::after { content: ' 🔒'; }

.card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 3px rgba(6,13,31,.05); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; }
.tag-required { background: #FEF2F2; color: var(--red); }
.tag-recommended { background: #FFFBEB; color: var(--amber); }
.tag-optional { background: var(--slate-100); color: var(--slate-500); }
.tag-ok { background: #ECFDF5; color: var(--emerald-dark); }
.tag-blue { background: #EFF6FF; color: var(--blue); }

/* ---------- landing ---------- */
.landing-nav { position: sticky; top: 0; z-index: 50; background: rgba(6,13,31,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.landing-nav .inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: #fff; letter-spacing: -.02em; }
/* ---------- premium STATIC 3D logo mark (scales-of-justice) ---------- */
.logo .mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  font-size: 0; color: transparent; display: block; position: relative;
  background:
    url('/logo-mark.svg') center / 24px 24px no-repeat,
    linear-gradient(145deg, #16d19a 0%, #2563EB 58%, #1c3faa 100%);
  box-shadow:
    0 8px 20px rgba(37,99,235,.45), 0 2px 5px rgba(0,0,0,.35),
    inset 0 2px 0 rgba(255,255,255,.6), inset 0 -4px 8px rgba(0,0,0,.30),
    inset 0 0 0 1px rgba(255,255,255,.14);
}
.logo .mark::before { /* static glossy top highlight — depth, no motion */
  content: ''; position: absolute; inset: 0; border-radius: 12px; pointer-events: none;
  background: radial-gradient(135% 80% at 50% -25%, rgba(255,255,255,.55), transparent 55%);
}

/* ---------- premium glossy GREEN pill nav CTA (white letters) ---------- */
.nav-cta {
  border-radius: 999px; color: #fff !important; font-weight: 700; letter-spacing: .01em;
  position: relative; overflow: hidden; padding: 9px 22px;
  background: linear-gradient(180deg, #2ee0a0 0%, #10b981 46%, #059669 100%);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 5px 16px rgba(16,185,129,.5), 0 1px 3px rgba(0,0,0,.3),
              inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 5px rgba(0,0,0,.18);
}
.nav-cta:hover:not(:disabled) { transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16,185,129,.62), 0 2px 6px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.65); }
.nav-cta::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  pointer-events: none; transform: skewX(-20deg); transition: left .6s ease;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); }
.nav-cta:hover::after { left: 145%; }
.landing-nav .links { display: flex; gap: 26px; align-items: center; }
.landing-nav .links a { color: var(--slate-300); font-size: 14.5px; font-weight: 500; }
.landing-nav .links a:hover { color: #fff; text-decoration: none; }

.hero { background: radial-gradient(1100px 500px at 70% -10%, rgba(37,99,235,.35), transparent 60%),
         radial-gradient(800px 400px at 20% 0%, rgba(16,185,129,.18), transparent 55%), var(--navy-950);
  color: #fff; padding: 96px 24px 110px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; max-width: 880px; margin: 0 auto 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--emerald), #5EEAD4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { font-size: clamp(16px, 2vw, 20px); color: var(--slate-300); max-width: 640px; margin: 0 auto 36px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .micro { margin-top: 22px; font-size: 13px; color: var(--slate-400); }

.section { max-width: 1140px; margin: 0 auto; padding: 72px 24px; }
.section h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; text-align: center; margin-bottom: 12px; }
.section p.lead { text-align: center; color: var(--slate-500); max-width: 640px; margin: 0 auto 44px; font-size: 16.5px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature { padding: 26px; }
.feature .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; background: #ECFDF5; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--slate-500); }

.dark-band { background: var(--navy-900); color: #fff; }
.dark-band .card { background: var(--navy-800); border-color: var(--navy-700); color: #fff; }
.dark-band .feature p { color: var(--slate-400); }
.dark-band .feature .ico { background: rgba(16,185,129,.14); }

.pricing-card { text-align: center; padding: 34px 26px; position: relative; }
.pricing-card.hot { border: 2px solid var(--emerald); box-shadow: var(--shadow-lg); }
.pricing-card .plan { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); }
.pricing-card .price { font-size: 46px; font-weight: 800; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.pricing-card .per { color: var(--slate-400); font-size: 14px; margin-bottom: 20px; }
.pricing-card ul { list-style: none; text-align: left; margin: 18px 0 26px; }
.pricing-card li { padding: 7px 0; font-size: 14px; color: var(--slate-500); }
.pricing-card li::before { content: '✓  '; color: var(--emerald); font-weight: 800; }
.badge-hot { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--emerald); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 14px; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; }

.faq-item { border-bottom: 1px solid var(--slate-200); padding: 18px 4px; }
.faq-item summary { font-weight: 600; cursor: pointer; font-size: 15.5px; }
.faq-item p { margin-top: 10px; color: var(--slate-500); font-size: 14.5px; }

.disclaimer-box { background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 26px; font-size: 13px; color: var(--slate-500); }
.disclaimer-box h4 { color: var(--ink); margin-bottom: 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.disclaimer-box li { margin: 5px 0 5px 18px; }

.landing-footer { background: var(--navy-950); color: var(--slate-400); padding: 44px 24px; text-align: center; font-size: 13px; }
.landing-footer a { color: var(--slate-300); }

/* ---------- auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background:
  radial-gradient(900px 400px at 80% -5%, rgba(37,99,235,.25), transparent 60%), var(--navy-950); padding: 24px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 16px; padding: 36px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card .sub { color: var(--slate-500); font-size: 14px; margin-bottom: 24px; }
.auth-err { background: #FEF2F2; color: var(--red); border: 1px solid #FECACA; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 14px; display: none; }
.auth-ok { background: #ECFDF5; color: var(--emerald-dark); border: 1px solid #A7F3D0; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 14px; display: none; }

/* ---------- app shell ---------- */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy-950); color: var(--slate-300); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .logo { padding: 6px 10px 20px; font-size: 17px; }
.sidebar .nav-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-500); padding: 14px 10px 6px; }
.sidebar a.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--slate-300); font-size: 14px; font-weight: 500; }
.sidebar a.nav-item:hover { background: var(--navy-800); color: #fff; text-decoration: none; }
.sidebar a.nav-item.active { background: linear-gradient(90deg, rgba(16,185,129,.18), rgba(37,99,235,.10)); color: #fff; border-left: 3px solid var(--emerald); }
.sidebar .spacer { flex: 1; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--slate-200); position: sticky; top: 0; z-index: 30; }
.topbar .crumb { font-weight: 700; font-size: 16px; }
.topbar .right { display: flex; align-items: center; gap: 16px; font-size: 13.5px; }
.wallet-chip { background: var(--navy-900); color: #fff; border-radius: 99px; padding: 7px 16px; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.wallet-chip span { color: #6EE7B7; }
.main { padding: 28px; max-width: 1200px; }

.page-title { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.page-sub { color: var(--slate-500); font-size: 14px; margin-bottom: 24px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 18px 20px; }
.stat .k { font-size: 12px; color: var(--slate-500); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font-size: 28px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }

table.data { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); overflow: hidden; }
table.data th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-500); padding: 12px 16px; background: var(--slate-50); border-bottom: 1px solid var(--slate-200); }
table.data td { padding: 13px 16px; font-size: 14px; border-bottom: 1px solid var(--slate-100); }
table.data tr:last-child td { border-bottom: none; }
table.data tr.click { cursor: pointer; }
table.data tr.click:hover td { background: var(--slate-50); }

/* wizard */
.wizard-steps { display: flex; gap: 6px; margin-bottom: 26px; flex-wrap: wrap; }
.wizard-step { flex: 1; min-width: 110px; text-align: center; font-size: 12px; font-weight: 600; color: var(--slate-400); padding: 9px 6px; border-radius: 8px; background: #fff; border: 1px solid var(--slate-200); }
.wizard-step.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.wizard-step.done { color: var(--emerald-dark); border-color: #A7F3D0; background: #ECFDF5; }

.form-pick { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--slate-200); border-radius: var(--radius); background: #fff; margin-bottom: 12px; cursor: pointer; transition: border .15s; }
.form-pick:hover { border-color: var(--slate-300); }
.form-pick.on { border-color: var(--emerald); background: #F0FDF9; }
.form-pick input[type=checkbox] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--emerald); }
.form-pick .fn { font-weight: 700; font-size: 14.5px; }
.form-pick .ft { font-size: 13px; color: var(--slate-500); margin-top: 2px; }
.form-pick .meta { margin-top: 7px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.form-pick .price { margin-left: auto; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* validation panel */
.val-item { display: flex; gap: 10px; padding: 11px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 8px; cursor: pointer; border: 1px solid transparent; }
.val-item.error { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.val-item.warning { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.val-item.info { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.val-item.ok { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }

/* intake layout */
.intake-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .intake-grid { grid-template-columns: 1fr; } .app-shell { grid-template-columns: 64px 1fr; } .sidebar .nav-item span.lbl, .sidebar .logo span.word, .sidebar .nav-label { display: none; } }
.intake-section { margin-bottom: 18px; }
.intake-section .sec-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 4px 0 12px; }
.sec-num { width: 26px; height: 26px; border-radius: 99px; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; box-sizing: border-box; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

.side-panel { position: sticky; top: 84px; }
.pdf-frame { width: 100%; height: 78vh; border: 1px solid var(--slate-200); border-radius: var(--radius); background: var(--slate-100); }

.children-rows .row { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 36px; gap: 8px; margin-bottom: 8px; }
.children-rows .row input { padding: 8px 10px; border: 1.5px solid var(--slate-200); border-radius: 8px; }
.children-rows button.del { border: none; background: #FEF2F2; color: var(--red); border-radius: 8px; cursor: pointer; font-size: 15px; }

.modal-back { position: fixed; inset: 0; background: rgba(6,13,31,.55); display: grid; place-items: center; z-index: 100; }
.modal { background: #fff; border-radius: 16px; padding: 30px; width: min(560px, 92vw); max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal h2 { font-size: 19px; margin-bottom: 16px; }

.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--navy-900); color: #fff; padding: 13px 18px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow-lg); animation: slideIn .25s ease; max-width: 380px; }
.toast.err { background: var(--red); }
.toast.ok { border-left: 4px solid var(--emerald); }
@keyframes slideIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

.empty { text-align: center; padding: 48px 20px; color: var(--slate-400); }
.empty .big { font-size: 40px; margin-bottom: 10px; }

.notice-legal { font-size: 11.5px; color: var(--slate-400); border-top: 1px solid var(--slate-200); margin-top: 40px; padding: 18px 4px 8px; line-height: 1.6; }

/* ---------- chatbot widget ---------- */
.cb-fab { position: fixed; bottom: 22px; right: 22px; z-index: 300; width: 54px; height: 54px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 24px; color: #fff; background: linear-gradient(135deg, var(--emerald), var(--blue));
  box-shadow: 0 8px 24px rgba(16,185,129,.4); transition: transform .15s; }
.cb-fab:hover { transform: scale(1.07); }
.cb-panel { position: fixed; bottom: 88px; right: 22px; z-index: 300; width: min(360px, calc(100vw - 44px));
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--slate-200);
  display: flex; flex-direction: column; overflow: hidden; }
.cb-head { background: var(--navy-950); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cb-head .cb-sub { font-size: 11px; color: var(--slate-400); font-weight: 400; margin-top: 2px; }
.cb-head button { background: none; border: none; color: var(--slate-300); font-size: 15px; cursor: pointer; }
.cb-msgs { height: 320px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--slate-50); }
.cb-msg { max-width: 85%; padding: 9px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.cb-msg.bot { background: #fff; border: 1px solid var(--slate-200); align-self: flex-start; border-bottom-left-radius: 4px; }
.cb-msg.user { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.cb-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.cb-quick button { border: 1px solid var(--slate-300); background: #fff; border-radius: 99px; padding: 5px 12px; font-size: 12px; cursor: pointer; color: var(--navy-800); }
.cb-quick button:hover { border-color: var(--blue); color: var(--blue); }
.cb-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--slate-200); background: #fff; }
.cb-form input { flex: 1; border: 1.5px solid var(--slate-200); border-radius: 8px; padding: 9px 12px; outline: none; }
.cb-form input:focus { border-color: var(--blue); }
.cb-form button { border: none; background: var(--emerald); color: #fff; font-weight: 700; border-radius: 8px; padding: 0 16px; cursor: pointer; }

/* ---------- analytics bars ---------- */
.bar-row { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding: 8px 0; }
.bar-row .bar { flex: 1; background: linear-gradient(180deg, var(--blue-light), var(--blue)); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bar-row .bar.rev { background: linear-gradient(180deg, #34D399, var(--emerald-dark)); }
.bar-row .bar span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 9.5px; color: var(--slate-500); white-space: nowrap; }
.bar-labels { display: flex; gap: 4px; }
.bar-labels div { flex: 1; text-align: center; font-size: 9px; color: var(--slate-400); overflow: hidden; }

/* announcement bar */
.announce { background: linear-gradient(90deg, var(--emerald-dark), var(--blue)); color: #fff; text-align: center; font-size: 13px; padding: 8px 16px; font-weight: 600; }

/* ---------- locked preview viewer ---------- */
.preview-lock { user-select: none; -webkit-user-select: none; }
.preview-stage { position: relative; background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: 10px; overflow: auto; max-height: 74vh; text-align: center; }
.preview-stage img { max-width: 100%; display: block; margin: 0 auto; pointer-events: none; -webkit-user-drag: none; }
.preview-guard { position: absolute; inset: 0; z-index: 2; } /* blocks drag-to-save on the img */
.preview-note { position: sticky; bottom: 0; background: rgba(6,13,31,.88); color: #FCA5A5; font-size: 12px; padding: 7px 12px; z-index: 3; }
@media print { .preview-stage, .preview-lock { display: none !important; } } /* previews never print */

/* fix: hidden attribute must always win over display:flex so the panel closes */
.cb-panel[hidden] { display: none !important; }

/* impersonation banner */
.imp-banner { position: sticky; top: 0; z-index: 60; background: linear-gradient(90deg, #B45309, #D97706); color: #fff;
  text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.imp-banner button { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 6px; padding: 4px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.imp-banner button:hover { background: rgba(255,255,255,.32); }

/* premium touches: modal fade-in, focus-visible rings, smooth nav */
.modal-back { animation: fadeIn .18s ease; }
.modal { animation: popIn .22s cubic-bezier(.16,1,.3,1); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.nav-item, .btn { transition: all .16s ease; }
.stat, .card { transition: box-shadow .18s ease; }
.stat:hover { box-shadow: var(--shadow-md); }
/* modal scroll on short screens */
.modal { max-height: 90vh; overflow-y: auto; }

/* paywall banner */
.paywall-banner { position: sticky; top: 0; z-index: 55; background: linear-gradient(90deg, #1E293B, #334155); color: #fff;
  text-align: center; font-size: 13px; padding: 9px 16px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.paywall-banner b { color: #6EE7B7; }
.paywall-banner button { background: var(--emerald); border: none; color: #fff; border-radius: 6px; padding: 5px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
.paywall-banner button:hover { background: var(--emerald-dark); }

/* ---------- Stripe-style checkout modal ---------- */
.checkout-modal { padding: 0; overflow: hidden; }
.co-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--slate-200); }
.co-brandrow { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.co-brandrow .mark { background: linear-gradient(135deg, var(--emerald), var(--blue)); border-radius: 6px; color: #fff; display: grid; place-items: center; }
.co-testpill { background: #FEF3C7; color: #92400E; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 99px; letter-spacing: .04em; }
.co-x { border: none; background: none; font-size: 15px; color: var(--slate-400); cursor: pointer; }
.co-amount { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 20px 4px; font-size: 15px; }
.co-amount b { font-size: 26px; font-variant-numeric: tabular-nums; }
.co-sub { padding: 0 20px; color: var(--slate-500); font-size: 13px; margin-bottom: 6px; }
.co-testcard { margin: 10px 20px; background: var(--slate-50); border: 1px dashed var(--slate-300); border-radius: 8px; padding: 9px 12px; font-size: 11.5px; color: var(--slate-500); }
.co-testcard b { color: var(--ink); }
.co-err { display: none; margin: 0 20px 8px; background: #FEF2F2; color: var(--red); border: 1px solid #FECACA; border-radius: 8px; padding: 9px 12px; font-size: 13px; }
#coForm { padding: 4px 20px 20px; }
.co-cardline { position: relative; }
.co-brand { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: var(--slate-500); }
.co-auto { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--slate-600); margin: 4px 0 14px; cursor: pointer; }
.co-auto input { width: 16px; height: 16px; accent-color: var(--emerald); }
.co-pay { width: 100%; font-size: 16px; padding: 13px; }
.co-secure { text-align: center; font-size: 11px; color: var(--slate-400); margin-top: 12px; }
.co-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: coSpin .7s linear infinite; vertical-align: middle; }
@keyframes coSpin { to { transform: rotate(360deg); } }
.co-shake { animation: coShake .4s; }
@keyframes coShake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-7px)} 40%,80%{transform:translateX(7px)} }
.co-success { text-align: center; padding: 34px 26px; }
.co-check { width: 62px; height: 62px; border-radius: 50%; background: var(--emerald); color: #fff; font-size: 32px; display: grid; place-items: center; margin: 0 auto 16px; animation: popIn .3s cubic-bezier(.16,1,.3,1); }
.co-success h2 { font-size: 20px; margin-bottom: 6px; }
.co-success > p { color: var(--slate-500); font-size: 14px; margin-bottom: 18px; }
.co-receipt { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; text-align: left; }
.co-receipt div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; }
.co-receipt span { color: var(--slate-500); }

/* onboarding overlay */
.onb-back { position: fixed; inset: 0; z-index: 90; background: radial-gradient(900px 400px at 70% -5%, rgba(37,99,235,.25), transparent 60%), var(--navy-950); overflow-y: auto; }
.onb-wrap { max-width: 1000px; margin: 0 auto; padding: 48px 24px; color: #fff; }
.onb-wrap h1 { font-size: clamp(26px,4vw,40px); text-align: center; margin-bottom: 8px; }
.onb-wrap .onb-lead { text-align: center; color: var(--slate-300); margin-bottom: 34px; font-size: 16px; }
.onb-plans { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 18px; }
.onb-plans .pricing-card { background: #fff; color: var(--ink); }
.onb-skip { display: block; text-align: center; margin-top: 24px; color: var(--slate-400); cursor: pointer; background: none; border: none; font-size: 13.5px; }

/* ---------- structured address widget ---------- */
.addr-widget { display: flex; flex-direction: column; gap: 8px; }
.addr-grid { display: grid; gap: 8px; grid-template-columns: 2fr 1fr; }
.addr-grid.addr-csz { grid-template-columns: 2fr 90px 1fr; }
.addr-widget input, .addr-widget select { padding: 10px 12px; border: 1.5px solid var(--slate-200); border-radius: 8px; background: #fff; outline: none; width: 100%; }
.addr-widget input:focus, .addr-widget select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.addr-toggle { align-self: flex-start; background: none; border: none; color: var(--blue); font-size: 12.5px; cursor: pointer; padding: 2px 0; font-weight: 600; }
.addr-toggle:hover { text-decoration: underline; }
@media (max-width: 560px) { .addr-grid, .addr-grid.addr-csz { grid-template-columns: 1fr; } }

/* N/A toggle under masked fields */
.na-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--slate-500); text-transform: none; letter-spacing: 0; font-weight: 500; cursor: pointer; }
.na-toggle input { width: 15px; height: 15px; accent-color: var(--emerald); }
.field input:disabled { background: var(--slate-100); color: var(--slate-400); }
/* Money fields: show a $ so the user knows it's currency; value keyed to the right of it. */
.money-input { position: relative; display: block; }
.money-input::before { content: "$"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--slate-500); font-weight: 600; pointer-events: none; }
.money-input input { padding-left: 22px !important; }

/* place-of-marriage widget (County / State / Country) */
.place-grid { display: grid; grid-template-columns: 1.4fr 90px 1fr; gap: 8px; }
.place-widget input, .place-widget select { padding: 10px 12px; border: 1.5px solid var(--slate-200); border-radius: 8px; background: #fff; outline: none; width: 100%; }
.place-widget input:focus, .place-widget select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
@media (max-width: 560px) { .place-grid { grid-template-columns: 1fr; } }

/* sticky bottom action bar on the packet page */
.packet-actionbar { position: sticky; bottom: 0; z-index: 40; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-top: 1px solid var(--slate-200);
  padding: 12px 4px; margin: 18px -4px 0; }
.pkt-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* validation field highlighting */
.field.has-error > input, .field.has-error > select, .field.has-error .addr-widget, .field.has-error .place-widget,
.field.has-error > textarea, .field.has-error .children-rows { border-color: var(--red) !important; }
.field.has-error > label { color: var(--red); }
.field-flash { animation: fieldFlash 1.3s ease; border-radius: 10px; }
@keyframes fieldFlash { 0%,100% { background: transparent; } 25% { background: rgba(220,38,38,.12); box-shadow: 0 0 0 3px rgba(220,38,38,.25); } }

/* ================= PREMIUM LANDING PASS ================= */

/* Feature-icon badges: flat mint -> glossy gradient; cards lift on hover */
.feature .ico {
  background: linear-gradient(145deg, #16d19a, #2563EB); color: #fff;
  box-shadow: 0 6px 14px rgba(37,99,235,.28), inset 0 1.5px 0 rgba(255,255,255,.45), inset 0 -2px 5px rgba(0,0,0,.2);
}
.card.feature { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card.feature:hover { transform: translateY(-3px); border-color: rgba(16,185,129,.35);
  box-shadow: 0 16px 34px rgba(6,13,31,.10); }

/* ---------- Contact us: premium icon cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 18px; padding: 30px 20px; text-align: center;
  box-shadow: 0 2px 10px rgba(6,13,31,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: rgba(16,185,129,.35); box-shadow: 0 16px 32px rgba(6,13,31,.11); }
.contact-ico {
  width: 58px; height: 58px; border-radius: 17px; margin: 0 auto 16px; display: grid; place-items: center; position: relative;
  background: linear-gradient(145deg, #16d19a, #2563EB);
  box-shadow: 0 9px 20px rgba(37,99,235,.36), inset 0 1.5px 0 rgba(255,255,255,.5), inset 0 -3px 6px rgba(0,0,0,.22);
}
.contact-ico::before { content: ''; position: absolute; inset: 0; border-radius: 17px; pointer-events: none;
  background: radial-gradient(130% 80% at 50% -20%, rgba(255,255,255,.5), transparent 55%); }
.contact-ico svg { width: 27px; height: 27px; position: relative; }
.contact-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-card p { color: var(--slate-500); font-size: 14.5px; }

/* ---------- FAQ: premium accordion cards ---------- */
.faq-item {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 14px; padding: 0; margin-bottom: 12px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(6,13,31,.05); transition: box-shadow .2s ease, border-color .2s ease;
}
.faq-item:hover { border-color: rgba(16,185,129,.28); }
.faq-item[open] { border-color: rgba(16,185,129,.42); box-shadow: 0 10px 26px rgba(6,13,31,.09); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; width: 10px; height: 10px; flex-shrink: 0;
  border-right: 2.5px solid var(--emerald); border-bottom: 2.5px solid var(--emerald);
  transform: rotate(45deg); transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:hover { color: var(--emerald-dark); }
.faq-item > p { margin: 0; padding: 2px 22px 20px; color: var(--slate-600); line-height: 1.66; font-size: 14.8px; }

/* ---------- Premium sign-in card (app workspace) ---------- */
.auth-card {
  border-radius: 22px; padding: 42px 40px; max-width: 452px;
  box-shadow: 0 32px 74px rgba(0,0,0,.5), 0 8px 22px rgba(0,0,0,.32),
              inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 1px rgba(255,255,255,.05);
}
.auth-card .logo { font-size: 21px; }
.auth-card h1 { font-size: 27px; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-card .field input, .auth-card .field select { border-radius: 11px; padding: 12px 14px; }

/* ================= MOBILE OPTIMIZATION ================= */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; width: 44px; height: 40px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: #fff; border-radius: 2px; margin: 4.5px auto; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .landing-nav .links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(6,13,31,.98); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 6px 16px 16px; box-shadow: 0 22px 44px rgba(0,0,0,.45);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
  }
  .landing-nav .links.open { max-height: 82vh; opacity: 1; pointer-events: auto; }
  .landing-nav .links a { padding: 14px 6px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .landing-nav .links a:hover { color: var(--emerald); }
  .landing-nav .links .nav-cta { margin-top: 12px; justify-content: center; padding: 14px; font-size: 16px; border-bottom: 0; }
}

@media (max-width: 768px) {
  .section { padding: 48px 18px; }
  .hero { padding: 64px 18px 72px; }
  .landing-nav .inner { padding: 13px 18px; }
  .grid-3, .grid-4 { gap: 14px; }
  .hero .cta-row { flex-direction: column; }
  .hero .cta-row .btn { width: 100%; }
  .modal, .co-modal, .checkout-modal { width: 94vw !important; max-width: 94vw !important; }
  /* app workspace: give the main content room on phones */
  .app-main, .main, .app-content { padding: 18px 16px !important; }
}

@media (max-width: 480px) {
  .section h2 { font-size: 23px; }
  .hero h1 { font-size: 32px; }
  .contact-card { padding: 26px 16px; }
  .faq-item summary { padding: 16px 16px; font-size: 15px; }
  .faq-item > p { padding: 2px 16px 18px; }
  .auth-card { padding: 30px 22px; border-radius: 18px; }
}
