/* ============================================================
   exart.io — Unified Stylesheet
   Covers: landing page + all app pages
   (login, onboarding, dashboard, case-detail, editor, settings)
   Design: Navy / Gold / Cream · Playfair Display + Source Serif 4 + DM Sans
   ============================================================ */

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

:root {
  --navy:        #1a2640;
  --navy-mid:    #243350;
  --navy-light:  #2e4068;
  --gold:        #b89a5e;
  --gold-light:  #d4b97a;
  --gold-dim:    rgba(184,154,94,0.15);
  --cream:       #f7f4ef;
  --cream-dark:  #ede8df;
  --white:       #ffffff;
  --text-dark:   #1a2640;
  --text-mid:    #4a5568;
  --text-light:  #6b7a94;
  --border:      rgba(26,38,64,0.12);
  --border-mid:  rgba(26,38,64,0.2);
  --success:     #2d7a4f;
  --success-bg:  #edf7f1;
  --error:       #b84040;
  --error-bg:    #fdf2f2;
  --warn:        #8a6200;
  --warn-bg:     #fdf8ec;
  --serif:       'Playfair Display', Georgia, serif;
  --body-serif:  'Source Serif 4', Georgia, serif;
  --sans:        'DM Sans', system-ui, sans-serif;
  --radius:      5px;
  --shadow-sm:   0 1px 4px rgba(26,38,64,0.08);
  --shadow-md:   0 4px 16px rgba(26,38,64,0.1);
  --nav-h:       56px;
  --sidebar-w:   220px;
  /* Extended palette */
  --gold-dark:   #7a5e25;
  --cream-off:   #fafaf8;
  --warn-orange: #e65100;
  /* On-dark text stops (white on navy backgrounds) */
  --on-dark-muted:     rgba(255,255,255,0.4);
  --on-dark-secondary: rgba(255,255,255,0.5);
  --on-dark-body:      rgba(255,255,255,0.65);
  --on-dark-strong:    rgba(255,255,255,0.8);
}

html { scroll-behavior: smooth; }
body {
	min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--text-dark);
  background: #fff;
  width: 100%;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }


/* ═══════════════════════════════════════════════════════════
   SHARED PRIMITIVES
   ═══════════════════════════════════════════════════════════ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 400;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
  text-decoration: none;
  white-space: nowrap;
  text-align: center; justify-content: center; 
}
.btn i { font-size: 15px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary  { background: var(--navy); color: #fff; }
.btn-primary:hover:not(:disabled)  { background: var(--navy-light); }
.btn-gold     { background: var(--gold); color: var(--navy); font-weight: 500; }
.btn-gold:hover:not(:disabled)     { background: var(--gold-light); }
.btn-ghost    { background: transparent; color: var(--text-mid); border: 0.5px solid var(--border-mid); }
.btn-ghost:hover:not(:disabled)    { background: var(--cream); color: var(--navy); }
.btn-danger   { background: transparent; color: var(--error); border: 0.5px solid var(--error); }
.btn-danger:hover:not(:disabled)   { background: var(--error-bg); }
.btn-sm  { padding: 6px 12px; font-size: 12px; }
.btn-sm i { font-size: 13px; }
.btn-lg  { padding: 12px 24px; font-size: 14px; }

/* Landing-page-style standalone buttons (used in hero, CTA) */
.btn-lp-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.15s;
}
.btn-lp-primary:hover { background: var(--gold-light); }
.btn-lp-secondary {
  background: transparent;
  color: var(--on-dark-strong);
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 400;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 0.15s, color 0.15s;
}
.btn-lp-secondary:hover { border-color: var(--on-dark-secondary); color: #fff; }

/* ── Form elements ── */
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--sans);
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,38,64,0.06);
}
.field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.field-hint { font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* ── Status messages ── */
.msg {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.msg i { font-size: 15px; flex-shrink: 0; }
.msg-error   { background: var(--error-bg);   color: var(--error);   border: 0.5px solid rgba(184,64,64,0.25); }
.msg-success { background: var(--success-bg); color: var(--success); border: 0.5px solid rgba(45,122,79,0.25); }
.msg-warn    { background: var(--warn-bg);    color: var(--warn);    border: 0.5px solid rgba(138,98,0,0.25); }
.msg-info    { background: var(--cream);      color: var(--text-mid); border: 0.5px solid var(--border); }
.msg[hidden] { display: none; }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.badge-draft   { background: var(--cream-dark); color: var(--text-mid); }
.badge-active  { background: var(--success-bg); color: var(--success); }
.badge-pending { background: var(--warn-bg);    color: var(--warn); }
.badge-error   { background: var(--error-bg);   color: var(--error); }
.badge-gold    { background: var(--gold-dim);   color: var(--gold-dark); border: 0.5px solid rgba(184,154,94,0.3); }

/* ── Upload zone ── */
.upload-zone {
  border: 1px dashed var(--border-mid);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  background: var(--cream);
  transition: border-color 0.15s, background 0.15s;
}
.upload-zone.drag-over { border-color: var(--navy); background: #fff; }
.upload-zone-icon { font-size: 28px; color: var(--text-light); margin-bottom: 0.5rem; }
.upload-zone p { font-size: 13px; color: var(--text-mid); margin-bottom: 0.75rem; }
.upload-zone p small { font-size: 11px; color: var(--text-light); display: block; margin-top: 3px; }
input[type="file"] { display: none; }

/* ── Skeleton loader ── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--cream-dark) 25%, var(--cream) 50%, var(--cream-dark) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 3px;
}

/* ── Divider ── */
.divider { width: 36px; height: 2px; background: var(--gold); margin: 1.5rem 0; }
.section-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.5rem 0; color: var(--text-light);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
}
.section-divider::before,
.section-divider::after { content: ''; flex: 1; height: 0.5px; background: var(--border); }

/* ── Eyebrow / label base (shared by .section-label, .page-eyebrow, .hero-eyebrow, .anfrage-eyebrow) ── */
.eyebrow,
.section-label,
.page-eyebrow,
.hero-eyebrow,
.anfrage-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
/* ── Section commons (landing) ── */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-label { font-size: 10px; letter-spacing: 0.15em; margin-bottom: 0.6rem; } /* eyebrow base */
.section-title {
  font-family: var(--serif); font-size: 30px; font-weight: 500;
  color: var(--navy); line-height: 1.25; margin-bottom: 1rem;
}
.section-lead {
  font-family: var(--body-serif); font-size: 15px; color: var(--text-mid);
  line-height: 1.7; font-weight: 300; max-width: 580px;
}

/* ── Data table ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-light); font-weight: 500;
  padding: 0 12px 8px; border-bottom: 0.5px solid var(--border);
}
.data-table td {
  padding: 11px 12px; color: var(--text-mid);
  border-bottom: 0.5px solid var(--border); vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--cream); }
.data-table td.strong { color: var(--navy); font-weight: 500; }
.data-table a { color: var(--navy); text-decoration: none; }
.data-table a:hover { text-decoration: underline; }

/* ── App card ── */
.card {
  background: #fff; border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 0.5px solid var(--border);
}
.card-title {
  font-family: var(--serif); font-size: 15px; font-weight: 500;
  color: var(--navy); display: flex; align-items: center; gap: 8px;
}
.card-title i { font-size: 16px; color: var(--gold); }

/* ── Page header (app) ── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem;
}
.page-header-left { flex: 1; }
.page-eyebrow { font-size: 10px; letter-spacing: 0.14em; margin-bottom: 0.35rem; } /* eyebrow base */
.page-title {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  color: var(--navy); line-height: 1.2;
}
.page-subtitle {
  font-family: var(--body-serif); font-size: 13px;
  color: var(--text-light); margin-top: 4px; font-weight: 300;
}
.page-divider { width: 30px; height: 2px; background: var(--gold); margin: 0.75rem 0 0; }


/* ═══════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════ */

/* ── Landing nav ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem; border-bottom: 0.5px solid var(--border);
  background: #fff; position: sticky; top: 0; z-index: 100;
}
.nav-logo { display: flex; align-items: baseline; gap: 3px; text-decoration: none; }
.nav-logo-mark {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--navy); letter-spacing: -0.02em;
}
.nav-logo-sub,
.app-nav-logo-sub {
  font-size: 16px; color: var(--gold); text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 500;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  font-size: 13px; color: var(--text-mid); text-decoration: none;
  font-weight: 400; transition: color 0.15s;
}
.nav-links a:hover { color: var(--navy); }
/* .nav-cta shares .btn-primary styles; only padding differs by 1px from .btn */
.nav-cta {
  background: var(--navy); color: #fff; font-size: 13px;
  font-family: var(--sans); padding: 8px 18px; border-radius: var(--radius);
  border: none; cursor: pointer; transition: background 0.15s;
}
.nav-cta:hover { background: var(--navy-light); }

/* ── Hero ── */
.hero {
  color: #fff;
  padding: 5rem 2rem 4rem;
  position: relative;
  background:
    linear-gradient(rgba(10,18,32,0.62), rgba(10,18,32,0.62)),
    url('https://bcxyychocefmurtblmwa.supabase.co/storage/v1/object/public/assets/hero_bgb.jpg')
    center center / cover no-repeat;
}
 
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  max-width: 960px; margin: 0 auto; align-items: center;
}
.hero-eyebrow { letter-spacing: 0.16em; margin-bottom: 1.2rem; } /* eyebrow base */
.hero h1 {
  font-family: var(--serif); font-size: 38px; font-weight: 500;
  line-height: 1.2; margin-bottom: 1.25rem; color: #fff;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-desc {
  font-family: var(--body-serif); font-size: 15px; line-height: 1.7;
  color: var(--on-dark-body); font-weight: 300; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Hero doc preview */
.hero-doc {
  background: rgba(255,255,255,0.05); border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 6px; padding: 1.5rem;
}
.hero-doc-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.12);
}
.hero-doc-icon {
  width: 28px; height: 28px; background: var(--gold); border-radius: 3px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-doc-icon i { font-size: 14px; color: var(--navy); }
.hero-doc-title {
  font-family: var(--serif); font-size: 13px;
  color: var(--on-dark-strong); font-weight: 500; line-height: 1.3;
}
.hero-doc-meta { font-size: 10px; color: var(--on-dark-muted); margin-top: 2px; letter-spacing: 0.05em; }
.hero-doc-body p {
  font-family: var(--body-serif); font-size: 11px; color: var(--on-dark-secondary);
  line-height: 1.7; margin-bottom: 0.5rem; font-weight: 300; font-style: italic;
}
.hero-doc-body p strong { color: var(--on-dark-strong); font-style: normal; font-weight: 400; }
.doc-status {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 0.75rem;
  background: rgba(184,154,94,0.15); border: 0.5px solid rgba(184,154,94,0.4);
  border-radius: 3px; padding: 4px 10px; font-size: 10px;
  color: var(--gold-light); letter-spacing: 0.06em;
}
.doc-status i { font-size: 11px; }

/* ── Trust bar ── */
.trust { padding: 1.25rem 2rem; background: var(--cream); border-bottom: 0.5px solid var(--cream-dark); }
.trust-inner {
  max-width: 960px; margin: 0 auto; display: flex;
  align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center;
}
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-mid); }
.trust-item i { font-size: 14px; color: var(--navy); }
.trust-sep { width: 1px; height: 16px; background: var(--border); }

/* ── How it works ── */
.how { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.step { padding: 1.75rem; border: 0.5px solid var(--border); border-radius: 6px; }
.step-num { font-family: var(--serif); font-size: 34px; color: var(--cream-dark); font-weight: 600; line-height: 1; margin-bottom: 0.75rem; }
.step-icon { margin-bottom: 0.75rem; }
.step-icon i { font-size: 22px; color: var(--navy); }
.step h3 { font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 0.5rem; }
.step p { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

/* ── Features ── */
.features { background: var(--cream); }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; }
.feat { background: #fff; border: 0.5px solid var(--border); border-radius: 6px; padding: 1.75rem; }
.feat-icon {
  width: 38px; height: 38px; background: var(--cream); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.feat-icon i { font-size: 19px; color: var(--navy); }
.feat h3 { font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 0.5rem; }
.feat p { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

/* ── Security ── */
.security { background: var(--navy); color: #fff; }
.security .section-title { color: #fff; }
.security .section-lead { color: var(--on-dark-body); }
.security .divider { background: var(--gold); }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.sec-card {
  background: rgba(255,255,255,0.05); border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 6px; padding: 1.5rem;
}
.sec-card i.sec-icon { font-size: 22px; color: var(--gold-light); margin-bottom: 0.75rem; display: block; }
.sec-card h3 { font-family: var(--serif); font-size: 14px; font-weight: 500; color: var(--on-dark-strong); margin-bottom: 0.5rem; }
.sec-card p { font-size: 12px; color: var(--on-dark-secondary); line-height: 1.6; }
.sec-cert-bar {
  margin-top: 2.5rem; padding-top: 2rem; border-top: 0.5px solid rgba(255,255,255,0.1);
  display: flex; gap: 2rem; align-items: center; flex-wrap: wrap;
}
.sec-cert { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--on-dark-secondary); }
.sec-cert i { font-size: 14px; color: var(--gold); }
.sec-note {
  font-family: var(--body-serif); font-style: italic; font-size: 13px;
  color: var(--on-dark-muted); margin-left: auto; max-width: 280px; line-height: 1.5;
}

/* ── Pricing ── */
.pricing { background: #fff; }
.billing-toggle {
  display: flex; align-items: center; gap: 10px; margin-bottom: 2rem;
  font-size: 13px;
}
.billing-label { color: var(--text-mid); }
.badge-save {
  background: var(--gold-dim); color: var(--gold-dark);
  border: 0.5px solid rgba(184,154,94,0.3); border-radius: 3px;
  font-size: 10px; font-weight: 500; padding: 2px 7px; letter-spacing: 0.04em;
  margin-left: 5px;
}

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; align-items: stretch; }
.plan { border: 0.5px solid var(--border); border-radius: 6px; padding: 1.75rem 1.25rem; position: relative; display: flex;
  flex-direction: column;}
.plan-featured { border: 1.5px solid var(--navy); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-size: 10px; padding: 3px 12px;
  border-radius: 3px; letter-spacing: 0.08em; white-space: nowrap; font-weight: 500;
}
.plan-tier { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); font-weight: 500; margin-bottom: 0.4rem; }
.plan-name { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--navy); margin-bottom: 0.25rem; }
.plan-desc { font-size: 12px; color: var(--text-light); line-height: 1.5; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 0.5px solid var(--border); }
.plan-price { margin-bottom: 1.25rem; }
.plan-price .amount { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--navy); }
.plan-price .period { font-size: 12px; color: var(--text-light); margin-left: 3px; }
.plan-price .note { font-size: 11px; color: var(--text-light); margin-top: 3px; }
.plan-features { list-style: none; margin-bottom: 1.5rem; padding-left: 0; list-style: none;}
.plan-features li { display: flex; align-items: flex-start; gap: 5px; font-size: 12px; color: var(--text-mid); margin-bottom: 8px; line-height: 1.4; }
.plan-features li i { font-size: 13px; color: var(--gold); margin-top: 1px; flex-shrink: 0; width: 13px; }
.plan-btn {
  margin-top: auto;
  width: 100%; padding: 10px; border-radius: var(--radius); font-size: 13px;
  font-family: var(--sans); cursor: pointer; font-weight: 400;
  border: 1px solid var(--navy); background: transparent; color: var(--navy);
  transition: background 0.15s, color 0.15s;
}
.plan-btn:hover { background: var(--cream); }
.plan-btn-primary,
.plan-btn-featured { background: var(--navy); color: #fff; border-color: var(--navy); }
.plan-btn-primary:hover,
.plan-btn-featured:hover { background: var(--navy-light); }
.pricing-note { font-size: 12px; color: var(--text-light); margin-top: 1.5rem; text-align: center; }

/* ── Testimonial ── */
.quote-section { background: var(--cream); padding: 4rem 2rem; }
.quote-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.quote-mark { font-family: var(--serif); font-size: 64px; color: var(--gold); line-height: 0.5; margin-bottom: 1.25rem; display: block; }
blockquote { font-family: var(--body-serif); font-size: 19px; font-style: italic; color: var(--navy); line-height: 1.65; font-weight: 300; margin-bottom: 1.5rem; }
.quote-attr { font-size: 12px; color: var(--text-light); letter-spacing: 0.06em; text-transform: uppercase; }
.quote-attr strong { color: var(--navy); font-weight: 500; }

/* ── CTA banner ── */
.cta-banner { background: var(--navy); padding: 4rem 2rem; text-align: center; }
.cta-banner h2 { font-family: var(--serif); font-size: 28px; color: #fff; font-weight: 500; margin-bottom: 0.75rem; }
.cta-banner p { font-family: var(--body-serif); font-size: 15px; color: var(--on-dark-body); margin-bottom: 2rem; font-weight: 300; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.footer { background: #fff; border-top: 0.5px solid var(--border); padding: 2rem; }
.footer-inner { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--navy); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--text-light); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--navy); }
.footer-copy { font-size: 11px; color: var(--text-light); }


/* ═══════════════════════════════════════════════════════════
   APP CHROME (nav, sidebar, shell)
   ═══════════════════════════════════════════════════════════ */

/* App pages need cream background */
body.app-page { background: var(--cream); }

/* ── App navbar ── */
.app-nav {
  height: var(--nav-h); background: var(--navy);
  display: flex; align-items: center; padding: 0 1.5rem; gap: 1.5rem;
  position: sticky; top: 0; z-index: 200;
}
.app-nav-logo { display: flex; align-items: baseline; gap: 3px; text-decoration: none; flex-shrink: 0; }
.app-nav-logo-mark { font-family: var(--serif); font-size: 20px; font-weight: 600; color: #fff; letter-spacing: -0.02em; }
/* .app-nav-logo-sub — merged with .nav-logo-sub above */
.app-nav-sep { width: 0.5px; height: 18px; background: rgba(255,255,255,0.15); }
.app-nav-links { display: flex; gap: 0.25rem; flex: 1; }
.app-nav-links a {
  font-size: 13px; color: var(--on-dark-body); text-decoration: none;
  padding: 5px 10px; border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  display: flex; align-items: center; gap: 6px;
}
.app-nav-links a i { font-size: 15px; }
.app-nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.app-nav-links a.active { color: #fff; background: rgba(255,255,255,0.1); }
.app-nav-right { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.app-nav-user { font-size: 12px; color: var(--on-dark-secondary); }
.app-nav-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 0.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-dark-body); font-size: 13px; cursor: pointer; transition: background 0.15s;
}
.app-nav-avatar:hover { background: rgba(255,255,255,0.16); }

/* ── Demo banner ── */
#info-banner {
  background: var(--warn-bg); border-bottom: 0.5px solid rgba(138,98,0,0.2);
  padding: 8px 1.5rem; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--warn);
}
#info-banner:empty { display: none; }

/* ── Page shell ── */
.page-shell { min-height: calc(100vh - var(--nav-h)); display: flex; max-width: calc(1200px + var(--sidebar-w)); margin: 0 auto; width: 100%; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: #fff;
  border-right: 0.5px solid var(--border); padding: 1.5rem 0;
  display: flex; flex-direction: column;
}
.sidebar-section-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-light); font-weight: 500; padding: 0 1rem 0.5rem;
}
.sidebar-nav { list-style: none; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 8px; padding: 8px 1rem;
  font-size: 13px; color: var(--text-mid); text-decoration: none;
  transition: background 0.12s, color 0.12s; border-left: 2px solid transparent;
}
.sidebar-nav a i { font-size: 16px; }
.sidebar-nav a:hover { background: var(--cream); color: var(--navy); }
.sidebar-nav a.active { background: var(--cream); color: var(--navy); border-left-color: var(--gold); font-weight: 500; }
.sidebar-spacer { flex: 1; }
.sidebar-footer { padding: 1rem; border-top: 0.5px solid var(--border); }

/* ── Override Webflow container width for app pages ── */
.w-container { max-width: none; }
.w-embed { max-width: none; width: 100%; }
@media screen and (max-width: 991px) { .w-container { max-width: none; } }

/* ── Format toolbar active state ── */
.fmt-btn.active { background: var(--navy); color: #fff; }

/* ── Autosave indicator states ── */
#autosave-indicator.saving { color: var(--gold); }
#autosave-indicator.saved  { color: var(--success); }
#autosave-indicator.error  { color: var(--error); }
#autosave-indicator        { color: var(--text-light); }

/* ── Main content ── */
.main-content { flex: 1; flex-grow: 0; flex-basis: 1200px; min-width: 0; overflow: auto; padding: 2rem; max-width: 1200px; }
/* FOUC prevention — removed by requireAuth() on success */
body.auth-pending .main-content,
body.auth-pending .main-content-wide { visibility: hidden; }
.main-content-wide { flex: 1; min-width: 0; overflow: auto; padding: 2rem; }


/* ═══════════════════════════════════════════════════════════
   PAGE: LOGIN
   ═══════════════════════════════════════════════════════════ */

.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1.618fr; }
.login-brand { background: var(--navy); display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem; }
.login-brand-logo { display: flex; align-items: baseline; gap: 6px; text-decoration: none; }
.login-brand-logo-mark { font-family: var(--serif); font-size: 20px; font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.login-brand-logo-sub { font-size: 16px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }.login-brand-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.login-brand-quote { font-family: var(--body-serif); font-size: 18px; font-style: italic; font-weight: 300; color: var(--on-dark-strong); line-height: 1.6; margin-bottom: 1rem; }
.login-brand-attr { font-size: 12px; color: var(--on-dark-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.login-brand-trust { display: flex; flex-direction: column; gap: 10px; }
.login-brand-trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--on-dark-secondary); }
.login-brand-trust-item i { font-size: 14px; color: var(--gold); }
.login-form-panel { display: flex; align-items: center; justify-content: center; padding: 2.5rem; background: var(--cream); }
.login-form-box { width: 100%; max-width: 380px; }
.login-form-box h1 { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--navy); margin-bottom: 0.35rem; }
.login-sub { font-family: var(--body-serif); font-size: 14px; color: var(--text-light); font-weight: 300; margin-bottom: 2rem; }
.auth-tabs { display: flex; background: var(--cream-dark); border-radius: var(--radius); padding: 3px; margin-bottom: 1.75rem; }
.auth-tab { flex: 1; padding: 7px; border: none; background: transparent; font-size: 13px; font-family: var(--sans); color: var(--text-mid); cursor: pointer; border-radius: 3px; transition: background 0.15s, color 0.15s; }
.auth-tab.active { background: #fff; color: var(--navy); font-weight: 500; box-shadow: var(--shadow-sm); }
.login-footer-note { margin-top: 1.5rem; font-size: 11px; color: var(--text-light); text-align: center; line-height: 1.6; }
.login-footer-note a { color: var(--navy); }


/* ═══════════════════════════════════════════════════════════
   PAGE: ONBOARDING
   ═══════════════════════════════════════════════════════════ */

.onboarding-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; background: var(--cream); }
.onboarding-progress { display: flex; gap: 6px; margin-bottom: 2rem; }
.onboarding-step-dot { width: 28px; height: 4px; border-radius: 2px; background: var(--cream-dark); }
.onboarding-step-dot.done { background: var(--gold); }
.onboarding-step-dot.active { background: var(--navy); }
.onboarding-card { background: #fff; border: 0.5px solid var(--border); border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 480px; box-shadow: var(--shadow-md); }
.onboarding-icon { width: 44px; height: 44px; background: var(--cream); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.onboarding-icon i { font-size: 22px; color: var(--navy); }
.onboarding-card h1 { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--navy); margin-bottom: 0.35rem; }
.onboarding-sub { font-family: var(--body-serif); font-size: 14px; color: var(--text-light); font-weight: 300; margin-bottom: 1.75rem; line-height: 1.6; }
.onboarding-divider { height: 0.5px; background: var(--border); margin: 1.5rem 0; }
.onboarding-logo { display: flex; align-items: baseline; gap: 5px; text-decoration: none; margin-bottom: 2.5rem; }
.onboarding-logo-mark { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--navy); }
.onboarding-logo-sub { font-size: 16px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   PAGE: DASHBOARD
   ═══════════════════════════════════════════════════════════ */

.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: #fff; border: 0.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; align-items: flex-start; gap: 1rem; }
.stat-icon { width: 38px; height: 38px; border-radius: var(--radius); background: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon i { font-size: 19px; color: var(--navy); }
.stat-value { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--navy); line-height: 1; }
.stat-label { font-size: 11px; color: var(--text-light); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.08em; }
.case-row-title { font-weight: 500; color: var(--navy); }
.case-row-ref { font-size: 11px; color: var(--text-light); margin-top: 2px; }


/* ═══════════════════════════════════════════════════════════
   PAGE: CASE DETAIL
   ═══════════════════════════════════════════════════════════ */

.case-meta-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.case-meta-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-mid); }
.case-meta-item i { font-size: 14px; color: var(--text-light); }
.case-meta-sep { width: 1px; height: 14px; background: var(--border); }

.doc-list { list-style: none; }
.doc-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 0.5px solid var(--border); font-size: 13px; }
.doc-item:last-child { border-bottom: none; }
.doc-item-icon { width: 30px; height: 30px; background: var(--cream); border-radius: 3px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-item-icon i { font-size: 15px; color: var(--navy); }
.doc-item-name { flex: 1; color: var(--navy); }
.doc-item-meta { font-size: 11px; color: var(--text-light); }

.generate-panel {
  background: var(--navy); border-radius: var(--radius); padding: 1.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.generate-panel-text h3 { font-family: var(--serif); font-size: 17px; font-weight: 500; color: #fff; margin-bottom: 0.35rem; }
.generate-panel-text p { font-family: var(--body-serif); font-size: 13px; color: var(--on-dark-secondary); font-weight: 300; line-height: 1.5; }
.generate-status { font-size: 12px; color: var(--on-dark-body); margin-top: 0.5rem; display: flex; align-items: center; gap: 6px; }


/* ═══════════════════════════════════════════════════════════
   PAGE: EDITOR
   ═══════════════════════════════════════════════════════════ */

.editor-shell { height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; overflow: hidden; }
.editor-toolbar {
  background: #fff; border-bottom: 0.5px solid var(--border);
  padding: 0.625rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0;
}
.editor-toolbar-title { flex: 1; display: flex; flex-direction: column; }
.editor-toolbar-title .case-name { font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--navy); line-height: 1.2; }
.editor-toolbar-title .case-ref { font-size: 11px; color: var(--text-light); }
.editor-toolbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.editor-panels { flex: 1; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.editor-panel { display: flex; flex-direction: column; overflow: hidden; }
.editor-panel-header {
  background: var(--cream); border-bottom: 0.5px solid var(--border);
  padding: 8px 1rem; display: flex; align-items: center; gap: 8px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-light); font-weight: 500; flex-shrink: 0;
}
.editor-panel-header i { font-size: 14px; }
.editor-panel-header.right { border-left: 0.5px solid var(--border); }
.source-panel-body { flex: 1; overflow-y: auto; padding: 1rem; background: var(--cream); }
.source-doc-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 1rem; }
.source-doc-tab {
  padding: 4px 10px; background: #fff; border: 0.5px solid var(--border);
  border-radius: 3px; font-size: 11px; cursor: pointer; color: var(--text-mid);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.source-doc-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.source-doc-content { font-family: var(--body-serif); font-size: 13px; line-height: 1.75; color: var(--text-mid); white-space: pre-wrap; }
.output-panel-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; border-left: 0.5px solid var(--border); }
.ql-toolbar  { border: none !important; border-bottom: 0.5px solid var(--border) !important; background: #fff; }
.ql-container { border: none !important; flex: 1; font-family: var(--body-serif) !important; font-size: 13px !important; }
.ql-editor { padding: 1.25rem !important; line-height: 1.75 !important; }
.save-status { font-size: 11px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.save-status i { font-size: 13px; }


/* ═══════════════════════════════════════════════════════════
   PAGE: SETTINGS
   ═══════════════════════════════════════════════════════════ */

.settings-grid { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: start; }
.settings-nav { list-style: none; }
.settings-nav li a {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  font-size: 13px; color: var(--text-mid); text-decoration: none;
  border-radius: var(--radius); transition: background 0.12s, color 0.12s;
  border-left: 2px solid transparent;
}
.settings-nav li a i { font-size: 15px; }
.settings-nav li a:hover { background: var(--cream-dark); color: var(--navy); }
.settings-nav li a.active { background: var(--cream); color: var(--navy); border-left-color: var(--gold); font-weight: 500; }
.settings-section { display: none; }
.settings-section.active { display: block; }
.verif-status-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; background: var(--cream); border-radius: var(--radius); margin-bottom: 1rem; }
.verif-status-label { font-size: 13px; font-weight: 500; color: var(--navy); }
.plan-current { background: var(--cream); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.plan-current-name { font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--navy); }
.plan-current-meta { font-size: 12px; color: var(--text-light); margin-top: 2px; }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .feat-grid { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .trust-sep { display: none; }
  .nav-links { gap: 1rem; }
  /* App */
  .editor-panels { grid-template-columns: 1fr; }
  .source-panel { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-links a { display: none; }
  .hero h1 { font-size: 28px; }
  .steps { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .sec-note { margin-left: 0; max-width: 100%; }
  /* App */
  .main-content { padding: 1rem; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  /* Login */
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   LEGAL / CONTENT PAGES
   ═══════════════════════════════════════════════════════════ */

.legal-hero {
  background: var(--navy);
  padding: 3.5rem 2rem 3rem;
}
.legal-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal-hero-eyebrow {
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold) !important;
  font-weight: 500;
  margin-bottom: 0.75rem !important;
  font-family: var(--sans) !important;
}
.legal-hero h1 {
  font-family: var(--serif) !important;
  font-size: 32px !important;
  font-weight: 500 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  margin-bottom: 0.5rem !important;
}
.legal-hero-meta {
  font-size: 12px !important;
  color: var(--on-dark-muted) !important;
  letter-spacing: 0.04em;
  font-family: var(--sans) !important;
}
.legal-body {
  background: #fff;
  padding: 4rem 2rem;
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 {
  font-family: var(--serif) !important;
  font-size: 19px !important;
  font-weight: 500 !important;
  color: var(--navy) !important;
  margin: 2.5rem 0 0.75rem !important;
  padding-top: 2rem !important;
  border-top: 0.5px solid var(--border) !important;
  line-height: 1.3 !important;
}
.legal-content h2:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}
.legal-content h3 {
  font-family: var(--serif) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--navy) !important;
  margin: 1.5rem 0 0.5rem !important;
  line-height: 1.4 !important;
}
.legal-content p {
  font-family: var(--body-serif) !important;
  font-size: 14px !important;
  color: var(--text-mid) !important;
  line-height: 1.8 !important;
  font-weight: 300 !important;
  margin-bottom: 1rem !important;
}
.legal-content ul {
  padding-left: 1.5rem !important;
  margin-bottom: 1rem !important;
  list-style: disc !important;
}
.legal-content ul li {
  font-family: var(--body-serif) !important;
  font-size: 14px !important;
  color: var(--text-mid) !important;
  line-height: 1.8 !important;
  font-weight: 300 !important;
  margin-bottom: 0.35rem !important;
  display: list-item !important;
}
.legal-content ol {
  padding-left: 1.5rem !important;
  margin-bottom: 1rem !important;
  list-style: decimal !important;
}
.legal-content ol li {
  font-family: var(--sans) !important;
  font-size: 13px !important;
  color: var(--text-mid) !important;
  line-height: 1.8 !important;
  margin-bottom: 0.25rem !important;
  display: list-item !important;
}
.legal-content a {
  color: var(--navy) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--navy-light) !important; }
.legal-content .legal-highlight {
  background: var(--cream) !important;
  border-left: 3px solid var(--gold) !important;
  padding: 1rem 1.25rem !important;
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  margin: 1.5rem 0 !important;
}
.legal-content .legal-highlight p {
  margin: 0 !important;
  font-size: 13px !important;
}
.legal-toc {
  background: var(--cream) !important;
  border: 0.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 1.25rem 1.5rem !important;
  margin-bottom: 2.5rem !important;
}
.legal-toc > p {
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: var(--text-light) !important;
  font-weight: 500 !important;
  margin-bottom: 0.75rem !important;
  font-family: var(--sans) !important;
  line-height: 1.4 !important;
}
.legal-toc ol {
  padding-left: 1.25rem !important;
  margin: 0 !important;
  list-style: decimal !important;
}
.legal-toc ol li {
  font-size: 13px !important;
  color: var(--text-mid) !important;
  line-height: 1.8 !important;
  font-family: var(--sans) !important;
  display: list-item !important;
}
.legal-toc ol li a {
  color: var(--navy) !important;
  text-decoration: none !important;
}
.legal-toc ol li a:hover { text-decoration: underline !important; }

.pricing-page-wrap { background: #fff; }



.app-nav-suite-wrapper {
  position: relative;
}

.app-nav-suite-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: opacity .15s;
}

.app-nav-suite-btn:hover {
  opacity: .8;
}

.app-nav-suite-btn .ti-chevron-down {
  font-size: 13px;
  transition: transform .2s;
}

.app-nav-suite-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--navy);
  border: 0.5px solid rgba(184,154,94,.25);
  border-radius: 8px;
  padding: 4px 0;
  min-width: 220px;
  z-index: 999;
}

.app-nav-suite-dropdown.open {
  display: block;
}

.suite-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--cream);
  text-decoration: none;
  cursor: pointer;
  transition: background .12s;
}

.suite-option:hover {
  background: rgba(255,255,255,.06);
}

.suite-option-disabled {
  color: rgba(247,244,239,.3);
  cursor: default;
}

.suite-option-disabled:hover {
  background: transparent;
}

.suite-soon {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(184,154,94,.15);
  color: rgba(184,154,94,.5);
  letter-spacing: .03em;
}

.footer-inner {
  display: flex;
  justify-content: center;
}

.footer-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 24px;
}

.footer-copy {
  margin: 0;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   PAGE: TRANSPARENCY
   Scoped under .transparency-page to avoid collisions with
   landing-page .hero, .section, .steps, .step, .step-num
   ═══════════════════════════════════════════════════════════ */

/* ── Nav (bare element, transparency only) ── */
.transparency-page nav {
  border-bottom: 1px solid var(--border);
  padding: 0 3rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.transparency-page .nav-logo {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.transparency-page .nav-logo sup {
  font-family: var(--sans);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.1em;
  vertical-align: super;
}
.nav-tag {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

/* ── Hero (scoped — different from landing .hero) ── */
.transparency-page .hero {
  background: var(--navy);
  color: #fff;
  padding: 5rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.transparency-page .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(184,154,94,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 85% 30%, rgba(184,154,94,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(184,154,94,0.12);
  border: 1px solid rgba(184,154,94,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 36px;
  color: var(--gold);
}
.hero-sub {
  font-family: var(--body-serif);
  font-size: 1rem;
  font-weight: 300;
  color: var(--on-dark-body);
  font-style: italic;
  margin-bottom: 2rem;
}
.hero-meta {
  display: inline-flex;
  gap: 2rem;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--on-dark-muted);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Page wrapper ── */
.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ── Table of contents ── */
.toc {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
}
.toc-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.toc ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.toc li a {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-mid);
  text-decoration: none;
}
.toc li a:hover { color: var(--navy); text-decoration: underline; }

/* ── Content sections (scoped — .section is used by landing page) ── */
.transparency-page .section {
  padding: 0;
  margin-bottom: 2.75rem;
  scroll-margin-top: 70px;
}
.section-heading {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.transparency-page .section p {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 0.9rem;
  line-height: 1.85;
}
.transparency-page .section p:last-child { margin-bottom: 0; }

hr.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.75rem 0;
}

/* ── Law quote ── */
.law-quote {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.law-quote-ref {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.law-quote p {
  font-size: 14px;
  font-style: italic;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.7;
}

/* ── Two-column list ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.25rem 0;
}
.col-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.col-label.gold { color: var(--gold); }
.col-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.col-list li {
  font-size: 13px;
  color: var(--text-mid);
  padding-left: 1rem;
  position: relative;
  line-height: 1.55;
}
.col-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-light);
}

/* ── Process steps (scoped — .steps/.step used by landing how-it-works) ── */
.transparency-page .steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}
.transparency-page .step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0;
  border: none;
  border-radius: 0;
}
.transparency-page .step-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
  width: 20px;
  padding-top: 3px;
}
.step-body {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}
.step-body strong {
  color: var(--navy);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

/* ── Norm table ── */
.norm-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.norm-table tr { border-bottom: 1px solid var(--border); }
.norm-table tr:last-child { border-bottom: none; }
.norm-table td {
  padding: 0.55rem 0;
  font-size: 14px;
  color: var(--text-mid);
  vertical-align: top;
  line-height: 1.6;
}
.norm-table td:first-child {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  width: 140px;
  padding-right: 1.25rem;
  padding-top: 0.65rem;
}

/* ── Footer (bare element, scoped) ── */
.transparency-page footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 3rem;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.transparency-page footer a { color: var(--navy); text-decoration: none; }
.transparency-page footer a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .transparency-page nav { padding: 0 1.25rem; }
  .wrap { padding: 2.5rem 1.25rem 4rem; }
  .two-col { grid-template-columns: 1fr; }
  .transparency-page footer { padding: 1.25rem; flex-direction: column; align-items: flex-start; }
  .transparency-page .hero { padding: 3.5rem 1.5rem 3rem; }
  .hero-meta { gap: 1rem; }
}

/* ═══════════════════════════════════════════════════════════
   PAGE: PSYCHKG ANGEBOT
   ═══════════════════════════════════════════════════════════ */

.anfrage-shell {
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.anfrage-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(26,38,64,0.10);
  padding: 2.5rem 2.5rem 2rem;
  width: 100%;
  max-width: 560px;
}
.anfrage-eyebrow { font-weight: 600; letter-spacing: 0.1em; margin: 0 0 8px; } /* eyebrow base */
.anfrage-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1.3;
}
.anfrage-sub {
  font-size: 13px;
  color: var(--text-mid);
  margin: 0 0 2rem;
  line-height: 1.6;
}
.anfrage-divider {
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin-bottom: 2rem;
}

/* .field, .field label, .field input/textarea, .field input:focus/textarea:focus
   are all covered by the global SHARED PRIMITIVES .field rules above. */

/* Page-specific textarea height override */
.anfrage-card .field textarea { min-height: 100px; }

/* Optional label suffix */
.field label .opt { font-weight: 400; color: var(--text-light); margin-left: 4px; }

.datenschutz-hinweis {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  padding: 10px 12px;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.anfrage-msg {
  display: none;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  align-items: center;
  gap: 8px;
}
.anfrage-msg.error {
  display: flex;
  background: var(--error-bg);
  border: 1px solid rgba(184,64,64,0.2);
  color: var(--error);
}
.btn-anfrage {
  width: 100%;
  padding: 13px;
  background: var(--navy);
  color: var(--gold);
  border: none;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
  letter-spacing: 0.02em;
}
.btn-anfrage:hover { opacity: 0.88; }
.btn-anfrage:disabled { opacity: 0.5; cursor: not-allowed; }
.anfrage-back {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 12px;
  color: var(--text-light);
  text-decoration: none;
}
.anfrage-back:hover { color: var(--navy); }

/* ═══════════════════════════════════════════════════════════
   PAGE: EDITOR
   ═══════════════════════════════════════════════════════════ */

/* ── Format toolbar ── */
#format-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 4px 8px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
}
.fmt-btn {
  background: none;
  border: none;
  padding: 5px 7px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.1s;
}
.fmt-btn:hover { background: rgba(26,38,64,0.08); color: var(--navy); }
/* .fmt-btn.active already defined in APP CHROME above: background: var(--navy); color: #fff; */
.fmt-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 3px;
  flex-shrink: 0;
}

/* ── Quill overrides ── */
/* Hide Quill built-in Snow toolbar */
.ql-toolbar.ql-snow { display: none !important; }
/* Restore top border on the Snow container (overrides the global border:none) */
.ql-container.ql-snow { border-top: 1px solid var(--border) !important; }
/* Disabled state */
.ql-disabled { background: var(--cream-off) !important; }
/* Quill editor height */
#quill-editor { min-height: 65vh; font-size: 13px; }
/* Note: .ql-container font-family is set globally via var(--body-serif) — not overridden here */

/* ── Source document tabs (editor variant, distinct from .source-doc-tab in global editor styles) ── */
.source-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.source-tab {
  padding: 6px 12px;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  background: var(--cream);
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  font-family: var(--sans);
  color: var(--text-mid);
}
.source-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.source-doc.hidden { display: none; }
.source-doc-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.source-text {
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 70vh;
  overflow-y: auto;
  padding: 12px;
  background: var(--cream-off);
  border-radius: 4px;
  border: 1px solid var(--border);
  font-family: var(--sans);
  margin: 0;
}
.doc-type-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(184,154,94,0.12);
  color: var(--gold);
  font-family: var(--sans);
}

/* ── Save status variants ── */
.save-status--saved   { color: var(--success); font-size: 12px; }
.save-status--unsaved { color: var(--warn-orange);         font-size: 12px; }
.save-status--saving  { color: var(--navy);     font-size: 12px; }
.save-status--error   { color: var(--error);    font-size: 12px; }

/* ── Tab navigation bar (settings, organisation) ── */
.card-section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-note {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}
.card-note p { font-size: 12px; color: var(--text-light); line-height: 1.6; }

.referral-code {
  background: var(--cream);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-family: monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.25em;
}

.tab-bar {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
}
.tab-btn {
  flex: 1;
  padding: 7px 12px;
  border: none;
  background: none;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-mid);
  transition: background 0.15s, color 0.15s;
}
.tab-btn.active {
  background: var(--navy);
  color: #fff;
}

/* ── Organisation tab sections ── */
.org-section        { display: none; }
.org-section.active { display: block; }


/* ── Organisation tab sections ── */
.org-section        { display: none; }
.org-section.active { display: block; }

/* ── Members table ── */
.members-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.members-table thead tr { border-bottom: 2px solid var(--navy); }
.members-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}
.members-table th:first-child { padding-left: 0; }
.members-table td { padding: 10px 12px; }
.members-table td:first-child { padding-left: 0; }
.members-table tbody tr { border-bottom: 1px solid var(--border); }
.members-table-row-alt { background: var(--cream); }
.td-name { font-weight: 500; color: var(--navy); }
.td-mid  { color: var(--text-mid); }
.td-sm   { color: var(--text-mid); font-size: 12px; }

/* ── Verify badges ── */
.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.verify-badge--verified { color: var(--success); background: rgba(46,125,50,0.08); }
.verify-badge--pending  { color: #e65100; background: rgba(230,81,0,0.08); }
.verify-badge--none     { color: var(--text-light); font-weight: 400; }

/* ── Table placeholder (loading/empty states) ── */
.table-placeholder {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
}

/* ── Invite grid ── */
.invite-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: flex-end;
}
.invite-grid .field { margin: 0; }

/* ── Plan limits info ── */
.plan-limits-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Pending invitation rows ── */
.pending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.pending-row:last-child { border-bottom: none; }
.pending-row-email { color: var(--navy); font-weight: 500; }
.pending-row-meta  { font-size: 11px; color: var(--text-light); }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,38,64,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-icon-danger { background: rgba(184,64,64,0.1); }
.modal-title { margin: 0; font-size: 16px; font-weight: 600; color: var(--navy); }
.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

    /* ── Timeline ── */
    .tl { display: flex; flex-direction: column; gap: 0; }
    .tl-item {
      display: grid;
      grid-template-columns: 32px 1fr;
      gap: 0 1rem;
      position: relative;
    }
    .tl-item:not(:last-child)::before {
      content: '';
      position: absolute;
      left: 15px;
      top: 32px;
      bottom: -16px;
      width: 2px;
      background: var(--border);
      z-index: 0;
    }
    .tl-dot {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      z-index: 1;
      margin-top: 0;
    }
    .tl-dot-done    { background: var(--success); color: #fff; }
    .tl-dot-active  { background: var(--navy);    color: #fff; }
    .tl-dot-pending { background: var(--cream-dark); color: var(--text-light); border: 1.5px solid var(--border-mid); }
    .tl-dot-cond    { background: var(--warn-bg); color: var(--warn); border: 1.5px solid rgba(138,98,0,0.25); }
    .tl-dot-spor    { background: #fff; color: var(--text-light); border: 1.5px dashed var(--border-mid); }

    .tl-card {
      background: #fff;
      border: 0.5px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
      margin-bottom: 1rem;
      transition: border-color 0.15s;
    }
    .tl-card.done    { border-left: 3px solid var(--success); }
    .tl-card.active  { border-left: 3px solid var(--navy); }
    .tl-card.cond    { border-left: 3px dashed rgba(138,98,0,0.4); }
    .tl-card.spor    { border-left: 3px dashed var(--border-mid); opacity: 0.8; }

    .tl-card-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 0;
    }
    .tl-card-title {
      font-family: var(--serif);
      font-size: 14px;
      font-weight: 500;
      color: var(--navy);
      line-height: 1.3;
    }
    .tl-card-para {
      font-size: 11px;
      color: var(--text-light);
      margin-top: 2px;
      letter-spacing: 0.04em;
    }
    .tl-card-desc {
      font-size: 13px;
      color: var(--text-mid);
      line-height: 1.6;
      margin-top: 0.6rem;
    }
    .tl-card-body { margin-top: 1rem; }
    .tl-card-body.collapsed { display: none; }

    .tl-expand-btn {
      background: none;
      border: none;
      font-size: 12px;
      color: var(--text-light);
      cursor: pointer;
      padding: 0;
      margin-top: 0.5rem;
      display: flex;
      align-items: center;
      gap: 4px;
      font-family: var(--sans);
    }
    .tl-expand-btn:hover { color: var(--navy); }

    .tl-type-tag {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 2px 8px;
      border-radius: 10px;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .tag-core  { background: rgba(26,38,64,0.08); color: var(--navy); }
    .tag-cond  { background: var(--warn-bg); color: var(--warn); }
    .tag-spor  { background: var(--cream-dark); color: var(--text-light); }
    .tag-done  { background: rgba(45,122,79,0.1); color: var(--success); }

    /* ── Status bar ── */
    .case-status-bar {
      display: flex;
      gap: 1rem;
      align-items: center;
      flex-wrap: wrap;
      padding: 0.875rem 1.25rem;
      background: var(--cream);
      border: 0.5px solid var(--border);
      border-radius: var(--radius);
      margin-bottom: 1.5rem;
    }
    .csb-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-mid); }
    .csb-item i { font-size: 14px; color: var(--text-light); }
    .csb-sep { width: 1px; height: 14px; background: var(--border); }

    /* ── Legend ── */
    .tl-legend {
      display: flex;
      gap: 1.25rem;
      flex-wrap: wrap;
      margin-bottom: 1.5rem;
      padding: 0.875rem 1.25rem;
      background: #fff;
      border: 0.5px solid var(--border);
      border-radius: var(--radius);
    }
    .legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-mid); }
    .legend-dot {
      width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
    }
    .ld-core  { background: var(--navy); }
    .ld-cond  { background: var(--warn-bg); border: 1.5px solid rgba(138,98,0,0.35); }
    .ld-spor  { background: #fff; border: 1.5px dashed var(--border-mid); }
    .ld-done  { background: var(--success); }

    /* ── Textarea in card ── */
    .doc-textarea {
      width: 100%;
      min-height: 120px;
      resize: vertical;
      padding: 10px 12px;
      border: 0.5px solid var(--border-mid);
      border-radius: var(--radius);
      font-size: 13px;
      font-family: var(--body-serif);
      color: var(--text-dark);
      line-height: 1.6;
      outline: none;
      transition: border-color 0.15s;
    }
    .doc-textarea:focus { border-color: var(--navy); }