:root {
    --ink: #0f0f0f;
    --cream: #f9f6f1;
    --gold: #c9a84c;
    --gold-light: #e8d5a3;
    --gold-dark: #8a6e2f;
    --slate: #2c3e50;
    --slate-mid: #4a5568;
    --slate-light: #718096;
    --border: #e2d9cc;
    --surface: #ffffff;
    --danger: #c0392b;
    --success: #27ae60;
    --warn: #e67e22;
    --sidebar-w: 260px;
    --radius: 10px;
  }

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

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--ink);
    min-height: 100vh;
  }

  /* ── AUTH ─────────────────────────────────────── */
  #auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate);
    position: relative;
    overflow: hidden;
  }
  #auth-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 20% 80%, rgba(201,168,76,0.18) 0%, transparent 60%),
      radial-gradient(ellipse 60% 80% at 80% 20%, rgba(201,168,76,0.10) 0%, transparent 60%);
  }
  .auth-card {
    background: var(--surface);
    border-radius: 18px;
    padding: 52px 48px;
    width: 420px;
    max-width: 95vw;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  }
  .auth-logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--slate);
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: -0.5px;
  }
  .auth-logo span { color: var(--gold); }
  .auth-sub { font-size: 13px; color: var(--slate-light); margin-bottom: 36px; font-weight: 300; }
  .auth-tabs { display: flex; gap: 6px; margin-bottom: 28px; background: var(--cream); border-radius: 8px; padding: 4px; }
  .auth-tab {
    flex: 1; padding: 9px; border: none; border-radius: 6px; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
    color: var(--slate-light); background: transparent; transition: all .2s;
  }
  .auth-tab.active { background: var(--surface); color: var(--slate); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
  .field { margin-bottom: 18px; }
  .field label { display: block; font-size: 12px; font-weight: 600; color: var(--slate-mid); margin-bottom: 6px; letter-spacing: .5px; text-transform: uppercase; }
  .field input, .field select {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
    border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px;
    color: var(--ink); background: var(--cream); transition: border-color .2s;
    outline: none;
  }
  .field input:focus, .field select:focus { border-color: var(--gold); background: #fff; }
  .btn-primary {
    width: 100%; padding: 13px; background: var(--gold);
    color: var(--ink); border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; letter-spacing: .3px;
  }
  .btn-primary:hover { background: var(--gold-dark); color: #fff; transform: translateY(-1px); }
  .demo-hint { margin-top: 20px; font-size: 12px; color: var(--slate-light); text-align: center; line-height: 1.6; }
  .demo-hint strong { color: var(--gold-dark); }

  /* ── APP SHELL ────────────────────────────────── */
  #app { display: none; min-height: 100vh; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w);
    background: var(--slate); display: flex; flex-direction: column; z-index: 100;
  }
  .sidebar-brand {
    padding: 28px 22px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .sidebar-logo { font-family: 'Playfair Display', serif; font-size: 20px; color: #fff; font-weight: 700; }
  .sidebar-logo span { color: var(--gold); }
  .sidebar-role { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 3px; text-transform: uppercase; letter-spacing: .8px; }
  .sidebar-nav { flex: 1; padding: 16px 10px; overflow-y: auto; }
  .nav-section { font-size: 10px; color: rgba(255,255,255,.3); padding: 14px 12px 6px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
  .nav-item {
    display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 8px;
    color: rgba(255,255,255,.6); font-size: 13.5px; font-weight: 400; cursor: pointer;
    transition: all .15s; margin-bottom: 2px; border: none; background: none; width: 100%; text-align: left;
  }
  .nav-item:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.9); }
  .nav-item.active { background: rgba(201,168,76,.18); color: var(--gold-light); font-weight: 500; }
  .nav-item .icon { font-size: 16px; width: 20px; text-align: center; }
  .sidebar-footer {
    padding: 16px 10px; border-top: 1px solid rgba(255,255,255,.08);
  }
  .user-badge {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
    background: rgba(255,255,255,.05);
  }
  .user-avatar {
    width: 34px; height: 34px; border-radius: 50%; background: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--slate);
  }
  .user-info { flex: 1; min-width: 0; }
  .user-name { font-size: 13px; color: rgba(255,255,255,.85); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .user-role { font-size: 11px; color: rgba(255,255,255,.35); }
  .btn-logout { background: none; border: none; color: rgba(255,255,255,.3); cursor: pointer; font-size: 16px; transition: color .2s; }
  .btn-logout:hover { color: var(--danger); }

  .main { margin-left: var(--sidebar-w); min-height: 100vh; }
  .topbar {
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 0 32px; height: 62px; display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50;
  }
  .topbar-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; color: var(--slate); }
  .topbar-actions { display: flex; gap: 10px; }
  .btn-secondary {
    padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 7px;
    background: transparent; font-family: 'DM Sans', sans-serif; font-size: 13px;
    font-weight: 500; color: var(--slate-mid); cursor: pointer; transition: all .2s;
  }
  .btn-secondary:hover { border-color: var(--gold); color: var(--gold-dark); }
  .btn-accent {
    padding: 8px 18px; border: none; border-radius: 7px; background: var(--gold);
    font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
    color: var(--ink); cursor: pointer; transition: all .2s;
  }
  .btn-accent:hover { background: var(--gold-dark); color: #fff; }

  .content { padding: 32px; }

  /* ── CARDS & GRID ─────────────────────────────── */
  .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 32px; }
  .stat-card {
    background: var(--surface); border-radius: var(--radius); padding: 22px 24px;
    border: 1px solid var(--border); position: relative; overflow: hidden;
  }
  .stat-card::after {
    content: attr(data-icon); position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    font-size: 40px; opacity: .06;
  }
  .stat-label { font-size: 11px; color: var(--slate-light); text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
  .stat-value { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--slate); margin: 6px 0 2px; font-weight: 600; }
  .stat-sub { font-size: 12px; color: var(--slate-light); }
  .stat-card.gold .stat-value { color: var(--gold-dark); }

  .card {
    background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
    margin-bottom: 20px;
  }
  .card-header {
    padding: 18px 24px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
  }
  .card-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 600; color: var(--slate); }
  .card-body { padding: 20px 24px; }

  /* ── TABLE ────────────────────────────────────── */
  table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
  thead th {
    text-align: left; padding: 10px 14px; font-size: 11px;
    font-weight: 600; color: var(--slate-light); text-transform: uppercase;
    letter-spacing: .6px; border-bottom: 1px solid var(--border); background: var(--cream);
  }
  tbody tr { transition: background .1s; }
  tbody tr:hover { background: #faf8f5; }
  tbody td { padding: 12px 14px; border-bottom: 1px solid #f0ebe3; color: var(--slate-mid); vertical-align: middle; }
  tbody tr:last-child td { border-bottom: none; }
  .badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
    border-radius: 20px; font-size: 11px; font-weight: 600;
  }
  .badge-success { background: #d4edda; color: #1a7338; }
  .badge-warn { background: #fdebd0; color: #a04000; }
  .badge-danger { background: #fce4e4; color: #922b21; }
  .badge-info { background: #dbeafe; color: #1e40af; }
  .badge-gold { background: #fef3cd; color: #856404; }

  /* ── FORMS ────────────────────────────────────── */
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .form-full { grid-column: 1 / -1; }
  .form-field { display: flex; flex-direction: column; gap: 6px; }
  .form-field label { font-size: 12px; font-weight: 600; color: var(--slate-mid); letter-spacing: .4px; text-transform: uppercase; }
  .form-field input, .form-field select, .form-field textarea {
    padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 7px;
    font-family: 'DM Sans', sans-serif; font-size: 13.5px; color: var(--ink);
    background: var(--cream); outline: none; transition: border-color .2s;
  }
  .form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    border-color: var(--gold); background: #fff;
  }
  .form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }

  /* ── MODAL ────────────────────────────────────── */
  .modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200;
    display: none; align-items: center; justify-content: center; padding: 20px;
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: var(--surface); border-radius: 14px; width: 640px; max-width: 100%;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    animation: slideUp .2s ease;
  }
  .modal-lg { width: 860px; }
  @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
  .modal-header {
    padding: 22px 26px 18px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
  }
  .modal-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; color: var(--slate); }
  .modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--slate-light); transition: color .2s; line-height: 1; }
  .modal-close:hover { color: var(--danger); }
  .modal-body { padding: 24px 26px; }
  .modal-footer { padding: 16px 26px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

  /* ── CONFIGURAÇÕES ───────────────────────────── */
  .cfg-layout { display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: start; }
  .cfg-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; }
  .cfg-tab-btn {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 14px; border: none; border-radius: 7px; background: none;
    font-family: 'DM Sans', sans-serif; font-size: 13.5px; font-weight: 500;
    color: var(--slate-mid); cursor: pointer; text-align: left; transition: all .15s;
  }
  .cfg-tab-btn:hover { background: var(--cream); color: var(--slate); }
  .cfg-tab-btn.active { background: var(--slate); color: #fff; }
  .cfg-tab-icon { font-size: 16px; width: 20px; text-align: center; }
  .cfg-panel { min-height: 400px; }
  .cfg-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
  .cfg-section-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 600; color: var(--slate); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  .cfg-save-bar { margin-top: 20px; display: flex; justify-content: flex-end; }
  .cfg-loading { padding: 40px; text-align: center; color: var(--slate-light); font-size: 14px; }

  /* Plano */
  .cfg-plan-card { background: linear-gradient(135deg, rgba(201,168,76,.08) 0%, transparent 100%); border: 1px solid rgba(201,168,76,.25); border-radius: 10px; padding: 20px 24px; }
  .cfg-plan-badge { display: inline-block; padding: 5px 16px; background: var(--gold); color: var(--slate); border-radius: 20px; font-size: 13px; font-weight: 700; letter-spacing: .4px; }
  .cfg-stat-item { display: flex; flex-direction: column; gap: 4px; }
  .cfg-stat-label { font-size: 11px; color: var(--slate-light); text-transform: uppercase; letter-spacing: .5px; }
  .cfg-stat-val { font-size: 15px; font-weight: 700; color: var(--slate); font-family: 'DM Mono', monospace; }
  .cfg-calc-box { background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; }
  .cfg-progress-track { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
  .cfg-progress-fill { height: 100%; border-radius: 4px; transition: width .4s ease; }

  /* Escritório */
  .cfg-members-list { display: flex; flex-direction: column; gap: 4px; }
  .cfg-member-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--cream); }
  .cfg-member-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--slate); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
  .cfg-member-info { flex: 1; min-width: 0; }
  .cfg-member-name { font-size: 13.5px; font-weight: 600; color: var(--slate); }
  .cfg-member-meta { font-size: 12px; color: var(--slate-light); margin-top: 2px; }
  .cfg-member-status { flex-shrink: 0; }

  /* Personalização */
  .cfg-preview-doc { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 12px; }
  .cfg-preview-header { background: var(--slate); color: rgba(255,255,255,.8); padding: 12px 16px; font-family: 'DM Mono', monospace; font-size: 11px; white-space: pre-line; min-height: 36px; }
  .cfg-preview-body { padding: 16px; background: #fff; min-height: 80px; }
  .cfg-preview-footer { background: #f5f5f5; color: #888; padding: 10px 16px; font-size: 10px; border-top: 1px solid var(--border); white-space: pre-line; min-height: 28px; }

  /* ── PETIÇÃO ─────────────────────────────────── */
  .pet-doc { font-family: 'Georgia', serif; font-size: 13.5px; line-height: 1.9; color: #1a1a1a; max-width: 720px; margin: 0 auto; }
  .pet-title { text-align: center; font-size: 15px; font-weight: bold; margin: 24px 0 8px; letter-spacing: .5px; }
  .pet-sec { text-align: center; font-size: 13.5px; font-weight: bold; margin: 22px 0 10px; text-decoration: underline; text-underline-offset: 3px; }
  .pet-p { text-align: justify; margin: 0 0 10px; }
  .pet-indent { margin-left: 32px; }
  .pet-ph { border-bottom: 1.5px solid #888; color: #555; font-style: italic; padding: 0 2px; }
  .pet-assinatura { text-align: center; margin: 40px 0 20px; line-height: 2; color: #1a1a1a; }
  .pet-rodape { font-size: 10px; color: #999; text-align: center; margin-top: 32px; border-top: 1px solid #e0e0e0; padding-top: 10px; font-family: 'DM Sans', sans-serif; }
  @media print {
    .modal-overlay, .modal { display: block !important; position: static !important; background: white !important; box-shadow: none !important; }
    .modal-header, .modal-footer { display: none !important; }
    .modal-body { padding: 0 !important; overflow: visible !important; }
    body > *:not(.modal-overlay) { display: none !important; }
    #modal-peticao { display: block !important; }
  }

  /* ── PARTILHA ─────────────────────────────────── */
  .partilha-section { margin-bottom: 24px; }
  .partilha-title { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--slate); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
  .herdeiro-bar {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; background: #faf8f5;
  }
  .herdeiro-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--slate); flex-shrink: 0;
  }
  .herdeiro-info { flex: 1; }
  .herdeiro-name { font-size: 13.5px; font-weight: 600; color: var(--slate); }
  .herdeiro-meta { font-size: 12px; color: var(--slate-light); }
  .herdeiro-quota { font-family: 'DM Mono', monospace; font-size: 15px; font-weight: 500; color: var(--gold-dark); }
  .progress-bar-wrap { flex: 1; background: var(--border); border-radius: 4px; height: 8px; }
  .progress-bar { height: 100%; border-radius: 4px; background: var(--gold); transition: width .4s; }

  .bem-row {
    display: flex; align-items: center; gap: 10px; padding: 11px 14px;
    border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px;
    background: var(--surface);
  }
  .bem-icon { font-size: 22px; width: 34px; text-align: center; }
  .bem-info { flex: 1; }
  .bem-desc { font-size: 13px; font-weight: 600; color: var(--slate); }
  .bem-val { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--slate-light); }
  .bem-assign { font-size: 12px; color: var(--success); font-weight: 500; }

  .compensacao-box {
    background: #fff8e6; border: 1px solid var(--gold-light); border-radius: 10px;
    padding: 16px 18px; margin-top: 12px;
  }
  .compensacao-title { font-size: 12px; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
  .compensacao-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--slate-mid); padding: 4px 0; }
  .compensacao-row.total { font-weight: 700; color: var(--slate); border-top: 1px solid var(--gold-light); padding-top: 8px; margin-top: 4px; }

  /* ── ITCMD ────────────────────────────────────── */
  .itcmd-box {
    background: #f0f7ff; border: 1px solid #bfdbfe; border-radius: 10px;
    padding: 16px 18px; margin-top: 16px;
  }
  .itcmd-title { font-size: 12px; font-weight: 700; color: #1e40af; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
  .itcmd-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--slate-mid); padding: 3px 0; }
  .itcmd-row.total { font-weight: 700; color: var(--slate); border-top: 1px solid #bfdbfe; padding-top: 8px; margin-top: 4px; }

  /* ── MEAÇÃO ───────────────────────────────────── */
  .meacao-box {
    background: #f0fdf4; border: 1px solid #86efac; border-radius: 10px;
    padding: 16px 18px; margin-bottom: 16px;
  }

  /* ── UTILS ────────────────────────────────────── */
  .text-mono { font-family: 'DM Mono', monospace; }
  .text-gold { color: var(--gold-dark); }
  .text-success { color: var(--success); }
  .text-danger { color: var(--danger); }
  .text-small { font-size: 12px; color: var(--slate-light); }
  .mt-4 { margin-top: 16px; }
  .mt-6 { margin-top: 24px; }
  .flex { display: flex; }
  .flex-col { flex-direction: column; }
  .gap-2 { gap: 8px; }
  .gap-3 { gap: 12px; }
  .items-center { align-items: center; }
  .justify-between { justify-content: space-between; }
  .divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
  .empty-state { text-align: center; padding: 48px 24px; color: var(--slate-light); }
  .empty-state .es-icon { font-size: 48px; margin-bottom: 12px; opacity: .3; }
  .empty-state p { font-size: 14px; }

  /* ── SECTIONS (pages) ─────────────────────────── */
  .section { display: none; }
  .section.active { display: block; }

  /* ── TAG ──────────────────────────────────────── */
  .tag {
    display: inline-flex; align-items: center; padding: 3px 10px;
    background: var(--cream); border: 1px solid var(--border); border-radius: 20px;
    font-size: 11px; color: var(--slate-mid); font-weight: 500;
  }

  /* ── RANGE ────────────────────────────────────── */
  input[type=range] { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--border); outline: none; }
  input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }

  /* ── TOOLTIP ──────────────────────────────────── */
  .info-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-light); color: var(--gold-dark); font-size: 10px; font-weight: 700; cursor: help; flex-shrink: 0; }

  /* ── RESPONSIVE (basic) ───────────────────────── */
  @media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    .main { margin-left: 0; }
    .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
  }

  /* ── LANDING PAGE ─────────────────────────────── */
  #landing {
    min-height: 100vh;
    background: var(--slate);
    color: #fff;
    overflow-x: hidden;
  }
  .lp-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 60px; height: 68px;
    background: rgba(44,62,80,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .lp-logo { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -.5px; }
  .lp-logo span { color: var(--gold); }
  .lp-nav-btn {
    padding: 10px 26px; background: var(--gold); color: var(--slate);
    border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif;
    font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s;
  }
  .lp-nav-btn:hover { background: var(--gold-dark); color: #fff; transform: translateY(-1px); }

  .lp-hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 100px 60px 60px;
    position: relative; overflow: hidden;
    background: radial-gradient(ellipse 80% 70% at 10% 90%, rgba(201,168,76,.14) 0%, transparent 60%),
                radial-gradient(ellipse 60% 60% at 90% 10%, rgba(201,168,76,.08) 0%, transparent 60%),
                var(--slate);
  }
  .lp-hero::before {
    content: '⚖️';
    position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
    font-size: 280px; opacity: .04; pointer-events: none;
    animation: floatIcon 6s ease-in-out infinite;
  }
  @keyframes floatIcon {
    0%,100% { transform: translateY(-50%) rotate(-3deg); }
    50% { transform: translateY(-54%) rotate(3deg); }
  }
  .lp-hero-inner { max-width: 700px; }
  .lp-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 20px;
    background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.3);
    color: var(--gold-light); font-size: 12px; font-weight: 600;
    letter-spacing: .8px; text-transform: uppercase; margin-bottom: 28px;
  }
  .lp-h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 5vw, 62px); font-weight: 700; line-height: 1.12;
    margin-bottom: 24px; color: #fff; letter-spacing: -.5px;
  }
  .lp-h1 span { color: var(--gold); }
  .lp-sub {
    font-size: 18px; color: rgba(255,255,255,.65); line-height: 1.7;
    margin-bottom: 44px; max-width: 560px; font-weight: 300;
  }
  .lp-cta-group { display: flex; gap: 14px; flex-wrap: wrap; }
  .lp-btn-primary {
    padding: 15px 36px; background: var(--gold); color: var(--slate);
    border: none; border-radius: 10px; font-family: 'DM Sans', sans-serif;
    font-size: 15px; font-weight: 700; cursor: pointer; transition: all .25s;
    box-shadow: 0 8px 32px rgba(201,168,76,.3);
  }
  .lp-btn-primary:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,168,76,.4); }
  .lp-btn-secondary {
    padding: 15px 36px; background: transparent; color: rgba(255,255,255,.8);
    border: 1.5px solid rgba(255,255,255,.2); border-radius: 10px;
    font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
    cursor: pointer; transition: all .25s;
  }
  .lp-btn-secondary:hover { border-color: var(--gold); color: var(--gold-light); }

  .lp-stats {
    display: flex; gap: 48px; margin-top: 56px; padding-top: 48px;
    border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap;
  }
  .lp-stat-num { font-family: 'Playfair Display', serif; font-size: 36px; color: var(--gold); font-weight: 700; }
  .lp-stat-label { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 2px; }

  .lp-features {
    padding: 100px 60px; background: #1e2d3d;
  }
  .lp-section-label {
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 14px;
  }
  .lp-section-title {
    font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 700;
    color: #fff; margin-bottom: 56px; max-width: 500px; line-height: 1.2;
  }
  .lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
  .lp-card {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px; padding: 32px; transition: all .25s;
  }
  .lp-card:hover { background: rgba(255,255,255,.07); border-color: rgba(201,168,76,.3); transform: translateY(-3px); }
  .lp-card-icon { font-size: 32px; margin-bottom: 18px; }
  .lp-card-title { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 10px; }
  .lp-card-desc { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; }

  .lp-profiles {
    padding: 100px 60px; background: var(--slate);
  }
  .lp-profiles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
  .lp-profile-card {
    border-radius: 16px; padding: 40px;
    border: 1px solid rgba(255,255,255,.08); position: relative; overflow: hidden;
  }
  .lp-profile-card.adv { background: linear-gradient(135deg, rgba(201,168,76,.12) 0%, rgba(44,62,80,0) 100%); border-color: rgba(201,168,76,.2); }
  .lp-profile-card.cli { background: linear-gradient(135deg, rgba(29,78,216,.12) 0%, rgba(44,62,80,0) 100%); border-color: rgba(29,78,216,.2); }
  .lp-profile-emoji { font-size: 48px; margin-bottom: 20px; }
  .lp-profile-title { font-family: 'Playfair Display', serif; font-size: 24px; color: #fff; margin-bottom: 8px; }
  .lp-profile-sub { font-size: 14px; color: rgba(255,255,255,.5); margin-bottom: 24px; }
  .lp-profile-list { list-style: none; padding: 0; }
  .lp-profile-list li { font-size: 14px; color: rgba(255,255,255,.7); padding: 6px 0; display: flex; align-items: center; gap: 10px; }
  .lp-profile-list li::before { content: '✓'; color: var(--gold); font-weight: 700; }

  .lp-cta-section {
    padding: 100px 60px; text-align: center;
    background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(201,168,76,.1) 0%, transparent 70%), #1e2d3d;
  }
  .lp-cta-title { font-family: 'Playfair Display', serif; font-size: 46px; color: #fff; margin-bottom: 18px; font-weight: 700; }
  .lp-cta-sub { font-size: 18px; color: rgba(255,255,255,.5); margin-bottom: 44px; }

  .lp-footer {
    padding: 32px 60px; border-top: 1px solid rgba(255,255,255,.07);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--slate); color: rgba(255,255,255,.3); font-size: 13px;
  }

  @media (max-width: 768px) {
    .lp-nav { padding: 0 24px; }
    .lp-hero { padding: 100px 24px 60px; }
    .lp-features, .lp-profiles, .lp-cta-section { padding: 60px 24px; }
    .lp-profiles-grid { grid-template-columns: 1fr; }
    .lp-stats { gap: 28px; }
    .lp-footer { flex-direction: column; gap: 8px; text-align: center; }
  }