/* ================================================================
   TrustDoc AI — Premium Design System v3
   Mobile-first · SEO-friendly · Modern SaaS
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', system-ui, sans-serif; background: #fff; color: #0f172a; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Design Tokens ── */
:root {
  --blue:       #2563eb;
  --blue-dark:  #1d4ed8;
  --blue-light: #eff6ff;
  --blue-mid:   #dbeafe;
  --indigo:     #4f46e5;
  --gold:       #f59e0b;
  --gold-light: #fef3c7;
  --slate-50:   #f8fafc;
  --slate-100:  #f1f5f9;
  --slate-200:  #e2e8f0;
  --slate-400:  #94a3b8;
  --slate-500:  #64748b;
  --slate-600:  #475569;
  --slate-700:  #334155;
  --slate-900:  #0f172a;
  --radius:     16px;
  --radius-lg:  24px;
  --shadow:     0 1px 3px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.07);
  --shadow-lg:  0 8px 40px rgba(15,23,42,.10), 0 2px 8px rgba(15,23,42,.05);
  --shadow-xl:  0 20px 60px rgba(15,23,42,.12);
}

/* ── Typography ── */
.t-display { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.t-h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.t-h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
.t-h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.t-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--slate-400); }
.t-gradient { background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 1.25rem; }
.section-sm { padding: 3rem 1.25rem; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Cards ── */
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--slate-200); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-blue { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #bfdbfe; }
.card-gold  { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-weight: 600; border-radius: 12px; cursor: pointer; transition: all .2s cubic-bezier(.34,1.56,.64,1); border: none; font-family: inherit; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; padding: .8rem 1.75rem; font-size: .9rem; box-shadow: 0 4px 14px rgba(37,99,235,.3); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 24px rgba(37,99,235,.45); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--slate-700); padding: .8rem 1.75rem; font-size: .9rem; border: 1.5px solid var(--slate-200); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--slate-600); padding: .7rem 1.25rem; font-size: .875rem; }
.btn-ghost:hover { background: var(--slate-100); color: var(--slate-900); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: .5rem 1rem; font-size: .8rem; border-radius: 9px; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .85rem; border-radius: 50px; font-size: .75rem; font-weight: 600; }
.badge-blue { background: var(--blue-light); color: var(--blue); border: 1px solid var(--blue-mid); }
.badge-green { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-gold  { background: var(--gold-light); color: #92400e; border: 1px solid #fde68a; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }

/* ── Navigation ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 68px; background: rgba(255,255,255,.88); backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid rgba(226,232,240,.7); transition: box-shadow .3s; }
.nav.scrolled { box-shadow: 0 4px 24px rgba(15,23,42,.08); }
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: .6rem; }
.nav-logo-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--blue); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(37,99,235,.25); flex-shrink: 0; }
.nav-logo-text { font-weight: 800; font-size: 1.05rem; color: var(--slate-900); letter-spacing: -.03em; }
.nav-logo-text em { font-style: normal; color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a { font-size: .85rem; font-weight: 500; color: var(--slate-500); padding: .5rem .85rem; border-radius: 8px; transition: all .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--slate-900); background: var(--slate-100); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; color: var(--slate-700); }
.mobile-nav { display: none; position: fixed; inset: 68px 0 0; background: #fff; z-index: 999; padding: 1.5rem; border-top: 1px solid var(--slate-200); flex-direction: column; gap: .5rem; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1rem; font-weight: 600; color: var(--slate-700); padding: .85rem 1rem; border-radius: 10px; border: 1px solid transparent; }
.mobile-nav a:hover { background: var(--slate-100); border-color: var(--slate-200); }

/* ── Hero ── */
.hero-wrap { padding: 8rem 1.25rem 5rem; }
.hero-eyebrow { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1.5rem; }
.hero-title { text-align: center; margin-bottom: 1.25rem; }
.hero-sub { text-align: center; font-size: 1.1rem; color: var(--slate-500); max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-trust { display: flex; justify-content: center; align-items: center; gap: 2rem; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; color: var(--slate-500); }
.hero-trust-item svg { color: var(--blue); }

/* ── Feature cards ── */
.feature-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--blue-light); border: 1px solid var(--blue-mid); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.feature-icon svg { color: var(--blue); }

/* ── Journey / Process steps ── */
.journey-wrap { position: relative; }
.journey-step { display: flex; gap: 1.5rem; margin-bottom: 3rem; position: relative; }
.journey-step:last-child { margin-bottom: 0; }
.journey-line { position: absolute; left: 19px; top: 44px; bottom: -3rem; width: 2px; background: linear-gradient(180deg, var(--blue-mid), transparent); }
.journey-step:last-child .journey-line { display: none; }
.journey-num { width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; font-size: .9rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(37,99,235,.25); }
.journey-content { padding-top: .4rem; }
.journey-content h3 { font-weight: 700; font-size: 1rem; color: var(--slate-900); margin-bottom: .35rem; }
.journey-content p { font-size: .875rem; color: var(--slate-500); line-height: 1.65; }

/* ── Stats ── */
.stat-val { font-size: 2.2rem; font-weight: 900; color: var(--slate-900); letter-spacing: -.04em; line-height: 1; margin-bottom: .3rem; }
.stat-label { font-size: .8rem; color: var(--slate-500); font-weight: 500; }

/* ── Wizard Layout ── */
.wizard-page { min-height: 100vh; background: var(--slate-50); padding-top: 68px; }
.wizard-top-bar { background: #fff; border-bottom: 1px solid var(--slate-200); padding: 1.25rem; }
.wizard-progress-wrap { max-width: 760px; margin: 0 auto; }
.wizard-steps { display: flex; align-items: center; gap: 0; }
.wstep { flex: 1; display: flex; align-items: center; }
.wstep-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; flex-shrink: 0; transition: all .3s; border: 2px solid var(--slate-200); background: #fff; color: var(--slate-400); font-family: 'Inter', sans-serif; }
.wstep.done   .wstep-icon { background: var(--blue); border-color: var(--blue); color: #fff; }
.wstep.active .wstep-icon { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.wstep-label { font-size: .7rem; font-weight: 600; margin-top: .3rem; }
.wstep.done   .wstep-label { color: var(--blue); }
.wstep.active .wstep-label { color: var(--slate-900); }
.wstep.pending .wstep-label { color: var(--slate-400); }
.wstep-line { flex: 1; height: 2px; background: var(--slate-200); margin: 0 4px; transition: background .4s; }
.wstep.done + .wstep .wstep-line { background: var(--blue); }
.wstep-col { display: flex; flex-direction: column; align-items: center; }
.wizard-body { max-width: 760px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

/* ── Wizard cards ── */
.wcard { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--slate-200); box-shadow: var(--shadow-lg); overflow: hidden; }
.wcard-head { padding: 1.75rem 2rem 1.4rem; border-bottom: 1px solid var(--slate-100); }
.wcard-head-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-light); border: 1px solid var(--blue-mid); display: flex; align-items: center; justify-content: center; margin-bottom: .85rem; }
.wcard-head h1 { font-size: 1.35rem; font-weight: 800; color: var(--slate-900); letter-spacing: -.03em; margin-bottom: .25rem; }
.wcard-head p { font-size: .85rem; color: var(--slate-500); }
.wcard-body { padding: 1.75rem 2rem; }
.wcard-foot { padding: 1.25rem 2rem; border-top: 1px solid var(--slate-100); display: flex; justify-content: space-between; align-items: center; background: var(--slate-50); }

/* ── Form fields ── */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--slate-500); margin-bottom: .45rem; }
.field input, .field textarea, .field select { width: 100%; background: var(--slate-50); border: 1.5px solid var(--slate-200); border-radius: 10px; padding: .75rem .95rem; font-size: .875rem; color: var(--slate-900); outline: none; transition: all .2s; font-family: inherit; resize: none; }
.field input:focus, .field textarea:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.field input::placeholder, .field textarea::placeholder { color: var(--slate-400); }

/* ── Info tip ── */
.info-tip { display: flex; gap: .65rem; align-items: flex-start; background: var(--blue-light); border: 1px solid var(--blue-mid); border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1.4rem; font-size: .8rem; color: #1e40af; line-height: 1.55; }
.warn-tip { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ── Trustee / party blocks ── */
.party-block { border: 1.5px solid var(--slate-200); border-radius: 14px; padding: 1.35rem; margin-bottom: 1rem; background: var(--slate-50); }
.party-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.party-badge { display: flex; align-items: center; gap: .55rem; }
.party-num { width: 26px; height: 26px; border-radius: 7px; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ── Own card ── */
.own-card { border: 2px solid var(--slate-200); border-radius: 12px; padding: .95rem 1.1rem; cursor: pointer; transition: all .2s; background: #fff; }
.own-card:hover { border-color: #93c5fd; }
.own-card.selected { border-color: var(--blue); background: var(--blue-light); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.own-card-title { font-weight: 700; font-size: .875rem; color: var(--slate-900); margin-bottom: .25rem; }
.own-card-desc { font-size: .78rem; color: var(--slate-500); line-height: 1.5; }

/* ── Share total ── */
.share-total { font-size: .72rem; font-weight: 700; font-family: monospace; padding: .25rem .65rem; border-radius: 7px; background: var(--slate-100); color: var(--slate-600); transition: all .3s; }
.share-total.ok  { background: #dcfce7; color: #15803d; }
.share-total.bad { background: #fee2e2; color: #dc2626; }

/* ── Gen Overlay ── */
#gen-overlay { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(248,250,252,.95); backdrop-filter: blur(16px); align-items: center; justify-content: center; }
#gen-overlay.show { display: flex; }
.gen-card { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; max-width: 440px; width: 92%; box-shadow: var(--shadow-xl); border: 1px solid var(--slate-200); }
.gen-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--blue); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; animation: gen-bob .8s ease-in-out infinite alternate; box-shadow: 0 8px 24px rgba(37,99,235,.3); }
@keyframes gen-bob { from { transform: translateY(0) scale(1); } to { transform: translateY(-5px) scale(1.03); } }
.gen-title { font-size: 1.25rem; font-weight: 800; text-align: center; color: var(--slate-900); margin-bottom: .3rem; letter-spacing: -.03em; }
.gen-status { font-size: .82rem; color: var(--slate-500); text-align: center; margin-bottom: 1.5rem; min-height: 1.1em; }
.gen-bar-wrap { background: var(--slate-100); border-radius: 50px; height: 7px; overflow: hidden; margin-bottom: .5rem; }
.gen-bar { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--blue), var(--indigo)); transition: width .7s cubic-bezier(.4,0,.2,1); position: relative; }
.gen-bar::after { content:''; position:absolute; inset:0; background: linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.gen-meta { display: flex; justify-content: space-between; font-size: .7rem; color: var(--slate-400); margin-bottom: 1.25rem; font-weight: 600; }
.gen-pct { font-weight: 800; color: var(--slate-900); font-size: .85rem; }
.stage-row { display: flex; align-items: center; gap: .7rem; padding: .45rem .6rem; border-radius: 8px; opacity: .4; transition: all .35s; font-size: .78rem; color: var(--slate-600); font-weight: 500; }
.stage-row.active { opacity: 1; color: var(--blue-dark); background: var(--blue-light); }
.stage-row.done  { opacity: .7; color: var(--slate-500); }
.stage-icon { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid currentColor; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stage-row.done .stage-icon { background: #dcfce7; border-color: #16a34a; color: #16a34a; }
.stage-row.active .stage-icon { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }

/* ── Compliance review ── */
.review-pass { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 1rem 1.25rem; }
.review-warn { background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px; padding: 1rem 1.25rem; }
.review-badge { display: flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; margin-bottom: .35rem; }

/* ── Sections ── */
.section-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin-bottom: .6rem; }
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--slate-900); letter-spacing: -.03em; margin-bottom: .7rem; line-height: 1.2; }
.section-sub { font-size: 1rem; color: var(--slate-500); line-height: 1.7; max-width: 520px; }

/* ── FAQ ── */
.faq-item { border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; margin-bottom: .6rem; }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--slate-900); transition: background .15s; gap: 1rem; }
.faq-q:hover { background: var(--slate-50); }
.faq-q svg { flex-shrink: 0; transition: transform .25s; color: var(--slate-400); }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--blue); }
.faq-a { display: none; padding: 0 1.25rem 1.1rem; font-size: .875rem; color: var(--slate-600); line-height: 1.7; border-top: 1px solid var(--slate-100); padding-top: .85rem; }
.faq-item.open .faq-a { display: block; }

/* ── Footer ── */
.footer { background: var(--slate-900); color: rgba(255,255,255,.6); padding: 4rem 1.25rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; max-width: 1160px; margin: 0 auto 3rem; }
.footer-brand p { font-size: .83rem; color: rgba(255,255,255,.4); line-height: 1.7; margin-top: .75rem; max-width: 260px; }
.footer-col h4 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.35); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: .83rem; color: rgba(255,255,255,.5); margin-bottom: .55rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1160px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .75rem; color: rgba(255,255,255,.3); }

/* ── Testimonials ── */
.testi-card { padding: 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--slate-200); box-shadow: var(--shadow); }
.testi-stars { display: flex; gap: 2px; margin-bottom: .75rem; }
.testi-body { font-size: .875rem; color: var(--slate-600); line-height: 1.65; margin-bottom: 1rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: .6rem; }
.testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; color: var(--blue); }
.testi-name { font-weight: 600; font-size: .82rem; color: var(--slate-900); }
.testi-role { font-size: .72rem; color: var(--slate-400); }

/* ── CTA Banner ── */
.cta-banner { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%); border-radius: var(--radius-lg); padding: 3.5rem 2.5rem; text-align: center; color: #fff; }
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: .75rem; letter-spacing: -.03em; }
.cta-banner p { font-size: 1rem; color: rgba(255,255,255,.7); margin-bottom: 2rem; }

/* ── Trust indicators ── */
.trust-bar { display: flex; justify-content: center; align-items: center; gap: 2.5rem; flex-wrap: wrap; padding: 1.25rem; background: var(--slate-50); border-radius: 14px; }
.trust-item { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; color: var(--slate-600); }

/* ── Animations ── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
@keyframes fadeUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
.anim { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.anim.in { opacity: 1; transform: none; }

/* ── Utilities ── */
.text-center { text-align: center; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-auto { margin-top: auto; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.no-print {}

/* ════════════════════════════════════════════════════════════
   WIZARD v3 — Premium redesign
════════════════════════════════════════════════════════════ */

/* ── Page shell ── */
.wiz-page { background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 45%, #f0f9ff 100%); min-height: 100vh; }
.wiz-shell { min-height: calc(100vh - 68px); display: flex; flex-direction: column; padding-top: 68px; }

/* ── Sticky step header — glassmorphism ── */
.wiz-header {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,.7);
  position: sticky; top: 68px; z-index: 40;
  box-shadow: 0 2px 24px rgba(15,23,42,.06);
}
.wiz-header-inner { max-width: 720px; margin: 0 auto; padding: 1.4rem 1.5rem .85rem; }

/* ── Step pills ── */
.wiz-steps { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.wiz-step  { display: flex; flex-direction: column; align-items: center; gap: .4rem; flex-shrink: 0; }
.wiz-connector { flex: 1; height: 2px; border-radius: 2px; background: var(--slate-200); margin: 0 4px; margin-bottom: 1.25rem; transition: background .5s; }
.wiz-connector.done { background: linear-gradient(90deg, var(--blue), var(--indigo)); }

.wiz-step-bubble {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  background: #fff; border: 2px solid var(--slate-200); color: var(--slate-300);
}
.wiz-step.done .wiz-step-bubble {
  background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
  border: none; color: #fff;
  box-shadow: 0 4px 14px rgba(79,70,229,.35);
}
.wiz-step.active .wiz-step-bubble {
  background: #fff; border: 2.5px solid var(--blue); color: var(--blue);
  box-shadow: 0 0 0 6px rgba(37,99,235,.12), 0 4px 12px rgba(37,99,235,.15);
}
.wiz-step.pending .wiz-step-bubble { background: #fff; border-color: var(--slate-200); color: var(--slate-300); }

.wiz-step-label { font-size: .67rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.wiz-step.done   .wiz-step-label { color: var(--indigo); }
.wiz-step.active .wiz-step-label { color: var(--slate-900); font-weight: 700; }
.wiz-step.pending .wiz-step-label { color: var(--slate-400); }

/* Gradient progress bar */
.wiz-progress-bar  { height: 4px; background: var(--slate-100); border-radius: 50px; overflow: hidden; }
.wiz-progress-fill {
  height: 100%; border-radius: 50px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--indigo) 100%);
  transition: width .6s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.wiz-progress-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: shimmer 2s infinite;
}

/* ── Body & main ── */
.wiz-body { flex: 1; display: flex; justify-content: center; padding: 2.25rem 1.5rem 5rem; }
.wiz-main { width: 100%; max-width: 720px; }

/* ── Card ── */
.wcard {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(226,232,240,.8);
  box-shadow: 0 8px 40px rgba(15,23,42,.08), 0 2px 8px rgba(15,23,42,.04);
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
}
/* Gradient top accent strip */
.wcard::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--indigo) 60%, #7c3aed 100%);
}

/* ── Card head ── */
.wcard-head {
  padding: 1.6rem 2rem 1.4rem;
  border-bottom: 1px solid var(--slate-100);
  display: flex; gap: 1.1rem; align-items: flex-start;
}
.wcard-head-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: .05rem;
  box-shadow: 0 6px 18px rgba(79,70,229,.28);
}
.wcard-head-icon svg { color: #fff; }
.wcard-head-text h1 {
  font-size: 1.3rem; font-weight: 800; color: var(--slate-900);
  letter-spacing: -.04em; margin-bottom: .3rem; line-height: 1.2;
}
.wcard-head-text p { font-size: .84rem; color: var(--slate-500); line-height: 1.6; }

/* ── Card body ── */
.wcard-body { padding: 1.75rem 2rem; }

/* ── Card foot ── */
.wcard-foot {
  padding: 1.1rem 2rem;
  border-top: 1px solid var(--slate-100);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: linear-gradient(90deg, #f8faff 0%, #f0f4ff 100%);
}

/* ── Form fields ── */
.wfield { margin-bottom: 1.15rem; }
.wfield label {
  display: block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--slate-500); margin-bottom: .5rem;
}
.req { color: #ef4444; font-weight: 500; margin-left: 2px; }
.wfield input, .wfield textarea, .wfield select {
  width: 100%; background: var(--slate-50);
  border: 2px solid var(--slate-200);
  border-radius: 12px; padding: .85rem 1.05rem;
  font-size: .9rem; color: var(--slate-900);
  outline: none; transition: all .2s; font-family: inherit; resize: none;
}
.wfield input:focus, .wfield textarea:focus {
  background: #fff; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}
.wfield input::placeholder, .wfield textarea::placeholder { color: var(--slate-400); }
.wfield input[readonly] { background: #f8fafc; color: var(--slate-500); cursor: default; }

/* ── Trustee / owner blocks ── */
.trustee-block {
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-left: 4px solid var(--blue);
  border-radius: 16px; padding: 1.35rem; margin-bottom: .9rem;
  box-shadow: 0 2px 12px rgba(15,23,42,.05);
  transition: border-color .2s, box-shadow .2s;
}
.trustee-block:hover { border-color: var(--blue); border-left-color: var(--indigo); box-shadow: 0 4px 20px rgba(37,99,235,.1); }
.trustee-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.trustee-num {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: #fff; font-size: .78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(79,70,229,.3);
}
.trustee-name-label { font-weight: 700; font-size: .9rem; color: var(--slate-800); }
.remove-btn { font-size: .78rem; font-weight: 600; color: #ef4444; background: none; border: none; cursor: pointer; padding: .3rem .6rem; border-radius: 8px; transition: all .15s; }
.remove-btn:hover { background: #fee2e2; }
.eq-btn {
  font-size: .72rem; font-weight: 700; color: var(--blue);
  background: var(--blue-light); border: 1.5px solid var(--blue-mid);
  border-radius: 8px; padding: .25rem .7rem; cursor: pointer;
  white-space: nowrap; transition: all .15s; font-family: inherit;
}
.eq-btn:hover { background: var(--blue-mid); }
.add-trustee-btn {
  width: 100%; border: 2px dashed #c7d2fe; border-radius: 14px;
  padding: 1rem; font-size: .85rem; font-weight: 700; color: var(--indigo);
  background: #fafbff; cursor: pointer; transition: all .2s;
  margin-bottom: 1.25rem; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.add-trustee-btn:hover { border-color: var(--indigo); background: #eef2ff; box-shadow: 0 4px 14px rgba(79,70,229,.1); }

/* ── Ownership type selector ── */
.own-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.own-card {
  border: 2px solid var(--slate-200); border-radius: 14px;
  padding: 1.1rem 1.2rem; cursor: pointer; transition: all .2s;
  background: #fff; position: relative; overflow: hidden;
}
.own-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--indigo)); opacity: 0; transition: opacity .2s; }
.own-card:hover { border-color: #93c5fd; box-shadow: 0 4px 14px rgba(37,99,235,.1); }
.own-card:hover::before { opacity: 1; }
.own-card.selected { border-color: var(--blue); background: var(--blue-light); box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.own-card.selected::before { opacity: 1; }
.own-card-title { font-weight: 700; font-size: .9rem; color: var(--slate-900); margin-bottom: .35rem; }
.own-card-desc  { font-size: .78rem; color: var(--slate-500); line-height: 1.55; }

/* ── Share total pill ── */
.share-total {
  font-size: .72rem; font-weight: 700; font-family: 'Inter', monospace;
  padding: .3rem .7rem; border-radius: 50px;
  background: var(--slate-100); color: var(--slate-600); transition: all .3s;
}

/* ── Info tip ── */
.ai-tip {
  display: flex; gap: .7rem; align-items: flex-start;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  border: 1px solid var(--blue-mid); border-radius: 12px;
  padding: .9rem 1.1rem; margin-bottom: 1.4rem;
  font-size: .82rem; color: #1e40af; line-height: 1.6;
}
.ai-tip-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: .05rem; color: var(--blue); }
.warn-tip { background: linear-gradient(135deg, #fffbeb, #fff7ed); border-color: #fde68a; color: #92400e; }

/* ── Document toolbar ── */
.doc-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--slate-100);
  background: linear-gradient(90deg, #f8faff, #f0f4ff); gap: 1rem; flex-wrap: wrap;
}
.doc-toolbar-left  { display: flex; align-items: center; gap: .85rem; }
.doc-toolbar-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.doc-toolbar-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(79,70,229,.28);
}
.doc-toolbar-title { font-weight: 700; font-size: .9rem; color: var(--slate-900); }
.doc-toolbar-addr  { font-size: .72rem; color: var(--slate-400); margin-top: .1rem; }

/* ── Wide layout ── */
.wiz-body-wide { padding: 1.5rem 1.25rem 3rem; }
.wiz-main-wide { max-width: 1040px; }
.wiz-main-wide .wcard { max-width: 100%; }

/* Document paper */
.doc-preview-paper {
  background: #fff; max-width: 860px; margin: 0 auto;
  box-shadow: 0 4px 40px rgba(15,23,42,.13), 0 1px 4px rgba(15,23,42,.06);
  border-radius: 4px; overflow: hidden;
}

/* ── Page hero ── */
.page-hero { padding:7.5rem 1.25rem 4rem; background:linear-gradient(180deg,#f0f6ff 0%,#fff 100%); }
.page-hero h1 { margin-bottom:.85rem; }
.page-hero .section-sub { margin:0 auto 2rem; }

/* ── Mobile ── */
@media (max-width: 640px) {
  .wiz-header-inner { padding: .9rem 1rem .65rem; }
  .wiz-step-label { display: none; }
  .wiz-step-bubble { width: 34px; height: 34px; border-radius: 10px; }
  .wcard::before { height: 2px; }
  .wcard-head { padding: 1.25rem 1.25rem 1.1rem; flex-direction: column; gap: .75rem; }
  .wcard-head-icon { width: 42px; height: 42px; }
  .wcard-body { padding: 1.25rem; }
  .wcard-foot { padding: 1rem 1.25rem; flex-direction: column; }
  .wcard-foot .btn { width: 100%; justify-content: center; }
  .own-grid { grid-template-columns: 1fr; }
  .wiz-body { padding: 1.25rem 1rem 3.5rem; }
  .wiz-body-wide { padding: 1rem; }
  .doc-preview-paper { border-radius: 2px; }
}

/* ════════════════════════════════════════════════════════════
   RULES PANEL
════════════════════════════════════════════════════════════ */
.rules-panel {
  margin-top: 1.5rem;
  border: 1.5px solid #e0e7ff;
  border-radius: 14px;
  overflow: hidden;
  background: #fafbff;
}
.rules-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 1.2rem;
  cursor: pointer;
  background: #eef2ff;
  border-bottom: 1.5px solid #e0e7ff;
  user-select: none;
  transition: background .15s;
}
.rules-panel-header:hover { background: #e0e7ff; }
.rules-icon { width: 32px; height: 32px; border-radius: 9px; background: #4f46e5; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rules-icon svg { stroke: #fff; }
.rules-panel-title { font-size: .85rem; font-weight: 700; color: #1e1b4b; }
.rules-panel-sub   { font-size: .72rem; color: #6366f1; margin-top: .1rem; }
.rules-chevron { transition: transform .25s; flex-shrink: 0; stroke: #6366f1; }
.rules-body { display: none; padding: 1.25rem 1.5rem 1.5rem; }
.rules-body.rules-body-open { display: block; }
.rules-h2 { font-size: 1rem; font-weight: 800; color: #1e1b4b; margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid #e0e7ff; }
.rules-h3 { font-size: .8rem; font-weight: 700; color: #3730a3; text-transform: uppercase; letter-spacing: .06em; margin: 1.25rem 0 .55rem; }
.rules-h3:first-child { margin-top: 0; }
.rules-p { font-size: .82rem; color: #374151; line-height: 1.7; margin-bottom: .6rem; }
.rules-list { margin: 0 0 .75rem 0; padding-left: 1.1rem; list-style: none; }
.rules-list li { font-size: .82rem; color: #374151; line-height: 1.7; margin-bottom: .45rem; padding-left: .75rem; position: relative; }
.rules-list li::before { content: '•'; position: absolute; left: 0; color: #6366f1; font-weight: 700; }
.rules-list li strong { color: #1e1b4b; }
.rules-confirm {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-top: 1.1rem;
  padding: .9rem 1.1rem;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
}
.rules-confirm label { font-size: .82rem; color: #166534; font-weight: 600; cursor: pointer; line-height: 1.5; }
#btn-generate:disabled { opacity: .45; cursor: not-allowed; }

/* ════════════════════════════════════════════════════════════
   AI COMPLIANCE REVIEW CARD — Modern Colorful Design
════════════════════════════════════════════════════════════ */
.ai-review-card {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 32px rgba(15,23,42,.1), 0 2px 8px rgba(15,23,42,.06);
}

/* ── PASS state — vibrant green ── */
.ai-review-pass {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1.5px solid #6ee7b7;
}
.ai-review-pass .ai-review-header {
  background: linear-gradient(135deg, #059669, #10b981);
  border: none;
}

/* ── WARN state — vibrant amber/orange ── */
.ai-review-warn {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border: 1.5px solid #fbbf24;
}
.ai-review-warn .ai-review-header {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border: none;
}

/* ── Header ── */
.ai-review-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.35rem; gap: 1rem; position: relative; overflow: hidden;
}
.ai-review-header::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.08); pointer-events: none;
}
.ai-review-header::after {
  content: ''; position: absolute; bottom: -40px; right: 60px;
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(255,255,255,.05); pointer-events: none;
}

.ai-review-header-left  { display: flex; align-items: center; gap: .9rem; position: relative; z-index: 1; }
.ai-review-header-right { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; position: relative; z-index: 1; }

/* Status icon */
.ai-review-icon {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.2); border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
}

.ai-review-title {
  font-weight: 800; font-size: .95rem; letter-spacing: -.02em;
  color: #fff; margin-bottom: .2rem;
}
.ai-review-sub {
  font-size: .75rem; font-weight: 500; color: rgba(255,255,255,.75);
}

/* GPT badge */
.ai-review-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .68rem; font-weight: 700; padding: .35rem .75rem;
  border-radius: 20px; letter-spacing: .03em;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  color: #fff; backdrop-filter: blur(8px);
}

/* Regenerate button */
.ai-review-regen {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 700; color: #fff;
  text-decoration: none; padding: .4rem .85rem; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  transition: all .2s;
}
.ai-review-regen:hover { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.6); }

/* ── Item sections ── */
.ai-review-section { padding: 1rem 1.35rem; }
.ai-review-section + .ai-review-section { border-top: 1px solid rgba(15,23,42,.06); }

.ai-review-section-label {
  display: flex; align-items: center; gap: .45rem;
  font-size: .63rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: .6rem;
}
.ai-label-error { color: #dc2626; }
.ai-label-warn  { color: #b45309; }

.ai-review-items { display: flex; flex-direction: column; gap: .5rem; }

.ai-review-item {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .83rem; line-height: 1.6; padding: .7rem .9rem;
  border-radius: 12px; border: 1.5px solid;
  transition: transform .15s;
}
.ai-review-item:hover { transform: translateX(3px); }

.ai-item-error {
  background: #fff1f2; border-color: #fecdd3; color: #881337;
  box-shadow: 0 2px 8px rgba(220,38,38,.08);
}
.ai-item-error svg { color: #e11d48; flex-shrink: 0; margin-top: .15rem; }

.ai-item-warn {
  background: #fffbeb; border-color: #fde68a; color: #713f12;
  box-shadow: 0 2px 8px rgba(217,119,6,.08);
}
.ai-item-warn svg { color: #d97706; flex-shrink: 0; margin-top: .15rem; }

/* ── Section divider ── */
.section-divider { border:none; border-top:1px solid var(--slate-200); margin:0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-wrap { padding: 6rem 1.25rem 3.5rem; }
  .section { padding: 3.5rem 1.25rem; }
  .wizard-body { padding: 1.25rem 1rem 3rem; }
  .wcard-head, .wcard-body { padding: 1.25rem; }
  .wcard-foot { padding: 1rem 1.25rem; flex-direction: column; gap: .75rem; }
  .wcard-foot .btn { width: 100%; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .trust-bar { gap: 1.25rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; gap: .75rem; }
}
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
