/* Sober, editorial palette — dashboard + app chrome */
:root {
  --bg: #0a0a0b;
  --bg-elevated: #141415;
  --bg-hover: #1e1e20;
  --border: rgba(255, 255, 255, 0.055);
  --border-strong: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --text-faint: #737373;
  --accent: #d4d4d4;
  --accent-2: #a3a3a3;
  --accent-dim: rgba(255, 255, 255, 0.06);
  --accent-hover: #fafafa;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-text: #fca5a5;
  --success-bg: rgba(34, 197, 94, 0.12);
  --success-text: #86efac;
  --radius: 10px;
  --radius-sm: 6px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.35);
}

body.landing {
  --bg: #090909;
  --bg-elevated: #111111;
  --bg-hover: #1a1a1a;
  --border: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(255, 255, 255, 0.095);
  --text: #f5f5f5;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.landing::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 55% at 50% -15%, rgba(255, 255, 255, 0.035), transparent 52%),
    #090909;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.landing-shell {
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}

.landing-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 18px;
  background: #f5f5f5;
  color: #0a0a0a;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  left: 24px;
  top: 16px;
}

.skip-link:focus-visible {
  outline: 2px solid #f5f5f5;
  outline-offset: 3px;
}

/* ——— Sticky nav ——— */
.landing-header-wrap {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(9, 9, 9, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
}

.law-logo {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.law-logo:hover {
  color: var(--text);
}

.law-logo span {
  color: var(--text-muted);
  font-weight: 600;
}

.law-logo--footer {
  font-size: 1.5rem;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

.landing-nav-primary {
  display: flex;
  align-items: center;
  gap: 6px 26px;
  flex-wrap: wrap;
}

.landing-nav-primary a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  text-decoration: none;
}

.landing-nav-primary a:hover {
  color: var(--text);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.landing-nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: border-color 0.15s, background 0.15s;
}

.landing-nav-login:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.landing-nav-login--drawer {
  width: 100%;
  justify-content: center;
}

.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  text-decoration: none !important;
  color: #0a0a0a !important;
  background: #ebebeb !important;
  border: 1px solid #ebebeb !important;
  border-radius: var(--radius-sm) !important;
  transition: background 0.15s, border-color 0.15s !important;
}

.btn-nav-primary:hover {
  background: #f5f5f5 !important;
  border-color: #f5f5f5 !important;
  color: #0a0a0a !important;
}

.btn-nav-primary--block {
  width: 100%;
}

.landing-nav-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.landing-nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.landing-nav-toggle::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  box-shadow: 0 -6px 0 var(--text), 0 6px 0 var(--text);
}

@media (max-width: 960px) {
  .landing-nav {
    display: none;
  }

  .landing-nav-toggle {
    display: flex;
  }
}

.landing-nav-drawer {
  padding: 16px 24px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 9, 0.97);
}

.landing-nav-drawer:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.landing-nav-drawer[hidden] {
  display: none !important;
}

.landing-nav-drawer a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.landing-nav-drawer a:hover {
  color: var(--text);
}

/* ——— Hero ——— */
.landing-hero {
  padding: 48px 0 72px;
}

.landing-hero-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 960px) {
  .landing-hero-grid {
    grid-template-columns: 1fr minmax(280px, 340px);
    gap: 56px;
    padding-top: 16px;
  }
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.landing-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  opacity: 0.85;
}

.landing-hero-title {
  margin: 0 0 22px;
  font-size: clamp(2.35rem, 5.5vw, 3.45rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.07;
  max-width: 16ch;
  color: var(--text);
}

.landing-lede {
  margin: 0 0 28px;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.btn-lg {
  padding: 14px 26px !important;
  font-size: 15px !important;
}

body.landing .btn-primary {
  background: #ebebeb;
  color: #0a0a0a;
  border: 1px solid #ebebeb;
}

body.landing .btn-primary:hover {
  background: #f5f5f5;
  border-color: #f5f5f5;
  color: #0a0a0a;
}

.landing-trust {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.landing-trust-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.landing-trust-mark {
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.landing-trust-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-faint);
}

.landing-hero-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: none;
}

.landing-hl-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.landing-hero-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.landing-hero-highlights li {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.landing-hero-highlights li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.landing-hl-value {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ——— Sections ——— */
.landing-section {
  padding: 72px 0;
}

.landing-section--surface {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.landing-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.landing-section-title {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.18;
}

.landing-section-lede {
  margin: 0 0 40px;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.landing-section-lede--tight {
  margin-bottom: 32px;
}

.landing-practice-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .landing-practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .landing-practice-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.practice-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  transition: border-color 0.2s;
}

.practice-card:hover {
  border-color: rgba(255, 255, 255, 0.11);
}

.practice-card-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

.practice-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.landing-services-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .landing-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .landing-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.svc-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.svc-card-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.svc-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.landing-proof-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .landing-proof-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.proof-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.proof-metric {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 3.8vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.proof-cap {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.proof-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 1px;
  align-self: flex-start;
}

.proof-link:hover {
  color: var(--text);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.landing-split {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .landing-split {
    grid-template-columns: 1fr 380px;
    align-items: start;
    gap: 56px;
  }
}

.landing-checklist {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.landing-checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 18px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

.landing-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
}

.landing-roadmap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.landing-roadmap-title {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 600;
}

.landing-roadmap-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.landing-roadmap-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.landing-roadmap-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.landing-roadmap-list span {
  display: block;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.landing-cta-band {
  padding: 64px 0;
  background: #0c0c0c;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.landing-cta-inner {
  text-align: center;
  max-width: 640px;
}

.landing-cta-title {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 2.8vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.landing-cta-text {
  margin: 0 0 26px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.btn-cta-contrast {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-copy .landing-eyebrow {
  margin-bottom: 14px;
}

.auth-copy h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.auth-copy code.landing-inline-code,
.landing-inline-code {
  font-family: var(--mono);
  font-size: 13px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: #e4e4e7;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-hover);
}

/* ——— Auth panel ——— */
.landing-shell .auth-section {
  padding-top: 56px;
  padding-bottom: 72px;
}

.auth-section {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .auth-section {
    grid-template-columns: 1fr 400px;
    align-items: start;
    gap: 64px;
  }
}

.auth-copy h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.auth-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.auth-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.auth-tab:hover {
  color: var(--text);
}

.auth-tab[aria-selected="true"] {
  background: var(--bg-hover);
  color: var(--text);
}

.auth-panel[hidden] {
  display: none;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.field input::placeholder {
  color: var(--text-faint);
}

.form-footer {
  margin-top: 20px;
}

.form-footer .btn {
  width: 100%;
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.muted-hint {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
}

.landing-footer-wide {
  margin-top: 48px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
  background: #090909;
}

.landing-footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .landing-footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
  }
}

.landing-footer-brand p {
  margin: 14px 0 0;
  max-width: 34ch;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.landing-footer-heading {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.landing-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-footer-links li + li {
  margin-top: 10px;
}

.landing-footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.landing-footer-links a:hover {
  color: var(--text);
}

.landing-footer-bar {
  padding: 22px 24px 40px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-faint);
}

/* ——— Dashboard (matches sober landing chrome) ——— */
body.dashboard {
  background: #090909;
  color: var(--text);
  position: relative;
}

body.dashboard::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 55% at 50% -15%, rgba(255, 255, 255, 0.035), transparent 52%),
    #090909;
  pointer-events: none;
  z-index: 0;
}

.dashboard-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  grid-template-columns: 260px 1fr;
}

@media (max-width: 768px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }
}

.dash-sidebar {
  border-right: 1px solid var(--border);
  padding: 28px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #111111;
}

@media (min-width: 769px) {
  .dash-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 100vh;
  }
}

@media (max-width: 768px) {
  .dash-sidebar {
    flex-direction: column;
    align-items: stretch;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px 18px;
    min-height: 0;
    position: relative;
  }

  .dash-brand {
    margin-bottom: 8px;
  }

  .dash-nav {
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }

  .dash-nav a.active {
    border-left: none;
    padding-left: 12px;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.22);
  }

  .dash-user {
    margin-top: 0;
  }
}

.dash-brand.law-logo {
  display: block;
  margin-bottom: 22px;
  padding: 4px 12px;
  text-decoration: none;
}

.dash-brand.law-logo:hover {
  color: var(--text);
}

.dash-brand.law-logo:focus-visible {
  outline: 2px solid rgba(245, 245, 245, 0.35);
  outline-offset: 3px;
  border-radius: 4px;
}

.dash-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.dash-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.dash-nav a.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-left-color: rgba(245, 245, 245, 0.35);
  padding-left: 10px;
}

.dash-user {
  margin-top: auto;
  padding: 16px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #141415;
}

.dash-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.dash-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
}

.dash-user-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.dash-user-meta {
  min-width: 0;
}

.dash-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-user-email {
  font-size: 11px;
  color: var(--text-faint);
  word-break: break-all;
  margin-top: 2px;
  line-height: 1.35;
}

.dash-user .btn-logout {
  width: 100%;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: inherit;
  color: #0a0a0a;
  background: #ebebeb;
  border: 1px solid #ebebeb;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.dash-user .btn-logout:hover {
  background: #f5f5f5;
  border-color: #f5f5f5;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-text:hover {
  color: var(--text);
}

.profile-avatar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.profile-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}

.profile-avatar-preview--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.profile-avatar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.profile-inline-form {
  margin: 0;
}

.profile-upload-label {
  cursor: pointer;
  margin: 0;
}

.profile-upload-label input:focus-visible + *,
.profile-upload-label:focus-within {
  outline: 2px solid rgba(245, 245, 245, 0.35);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.profile-upload-hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-faint);
}

.profile-form .field {
  max-width: 400px;
}

.auth-forgot {
  margin: -4px 0 12px;
  font-size: 13px;
}

.auth-forgot a {
  color: var(--text-muted);
}

.auth-forgot a:hover {
  color: var(--text);
}

.auth-standalone {
  min-height: 100vh;
}

.auth-standalone-main {
  padding: 24px 24px 80px;
}

.auth-card--narrow {
  max-width: 420px;
  margin-inline: auto;
}

.auth-standalone-title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 600;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.03);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.dash-main {
  padding: 40px 48px 56px;
  overflow-x: hidden;
  max-width: 1180px;
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .dash-main {
    padding: 28px 20px 40px;
    max-width: none;
  }
}

.dash-top {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.dash-top h1 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.028em;
}

.dash-top p {
  margin: 0;
  max-width: 54ch;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.dash-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.stat-card {
  background: #111111;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  transition: border-color 0.15s;
  box-shadow: none;
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.11);
}

.stat-card .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.stat-card .value {
  font-size: clamp(1.6rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.stat-card .hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.dash-panel {
  margin-top: 28px;
  background: #111111;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  box-shadow: none;
}

.dash-panel h2 {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.dash-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.dash-panel li + li {
  margin-top: 8px;
}

.dash-panel code {
  font-family: var(--mono);
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.dash-panel-lead {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.dash-item-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #111111;
}

.dash-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.dash-item:last-child {
  border-bottom: none;
}

.dash-item-title {
  font-weight: 600;
  font-size: 15px;
}

.dash-item-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.dash-settings-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 24px;
  font-size: 14px;
}

.dash-settings-dl dt {
  margin: 0;
  color: var(--text-faint);
  font-weight: 500;
}

.dash-settings-dl dd {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .dash-settings-dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .dash-settings-dl dd {
    margin-bottom: 12px;
  }
}

/* ——— Landing pricing strip ——— */
.landing-tier-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 36px 0;
}

.landing-tier-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-tier-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.landing-tier-price-line {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.landing-tier-dollar {
  font-size: 0.65em;
  font-weight: 600;
  vertical-align: super;
  margin-right: 2px;
  color: var(--text-muted);
}

.landing-tier-meta {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ——— Paywall ——— */
body.paywall::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 55% at 50% -15%, rgba(255, 255, 255, 0.035), transparent 52%),
    #090909;
  pointer-events: none;
  z-index: 0;
}

.paywall-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.paywall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 9, 0.92);
  backdrop-filter: blur(12px);
}

.paywall-logo {
  text-decoration: none;
}

.paywall-signout {
  margin: 0;
}

.paywall-signout-btn {
  padding: 9px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.paywall-signout-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.paywall-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 24px 72px;
}

.paywall-layout {
  width: 100%;
  max-width: 1020px;
  display: grid;
  gap: 36px;
  align-items: start;
}

@media (min-width: 900px) {
  .paywall-layout {
    grid-template-columns: 1fr minmax(340px, 400px);
    gap: 48px;
    padding-top: 12px;
  }
}

.paywall-intro {
  padding-top: 8px;
}

.paywall-intro .paywall-eyebrow {
  margin-bottom: 16px;
}

.paywall-intro .paywall-title {
  margin: 0 0 18px;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.15;
  max-width: 22ch;
}

.paywall-intro .paywall-lede {
  margin: 0 0 26px;
  max-width: 52ch;
}

.paywall-intro-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.paywall-intro-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.paywall-intro-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.paywall-microcopy {
  margin: 0;
  font-size: 13px;
  color: var(--text-faint);
}

.paywall-microcopy strong {
  color: var(--text-muted);
  font-weight: 500;
}

.paywall-checkout-card {
  background: #111111;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.paywall-checkout-inner {
  padding: 32px 28px 34px;
}

.paywall-plan-name {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.paywall-price-badge {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.paywall-plan-note {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.paywall-paypal-wrap {
  position: relative;
  margin-top: 2px;
  min-height: 128px;
}

.paywall-paypal-wrap .paywall-paypal {
  position: relative;
  z-index: 2;
  min-height: 0;
}

.paywall-paypal-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  padding: 10px 0 14px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.paywall-paypal-wrap--ready .paywall-paypal-loading {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.28s ease,
    visibility 0s linear 0.28s;
}

.paywall-paypal-loading-bar {
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.07) 42%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 180% 100%;
  animation: paywall-paypal-shimmer 1.35s ease-in-out infinite;
}

.paywall-paypal-loading-text {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  text-align: center;
}

@keyframes paywall-paypal-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .paywall-paypal-loading-bar {
    animation: none;
    background-position: 0 0;
  }
}

.paywall-paypal iframe {
  border-radius: var(--radius-sm) !important;
}

.paywall-hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.paywall-hint--error {
  color: var(--danger-text);
}

.paywall-placeholder-box {
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}

.paywall-placeholder-box p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.paywall-placeholder-box p:last-child {
  margin-bottom: 0;
}

.paywall-placeholder-sub {
  font-size: 13px !important;
  color: var(--text-faint) !important;
}

.paywall-fake-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.paywall-fake-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: #ebebeb;
  color: #0a0a0a;
}

.paywall-fake-btn--muted {
  background: #2c2e2f;
  color: #fff;
}

.dash-sub-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-faint);
  word-break: break-all;
}
