/* ============================================================
   KEZUMA — Together. We Grow.
   Main stylesheet
   ============================================================ */

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* -------- Tokens -------- */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;

  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-soft: #ccfbf1;

  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --success: #15803d;
  --success-soft: #ecfdf5;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --info-soft: #eff6ff;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;

  --container: 1080px;
  --container-app: 900px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
}

/* -------- Base -------- */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  min-height: 100dvh;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
.container-app { max-width: var(--container-app); margin: 0 auto; padding: 0 var(--space-4); }

.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.text-right { text-align: right; }
.text-success { color: var(--success); font-weight: 600; }
.text-danger  { color: var(--danger);  font-weight: 600; }
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
[hidden] { display: none !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  background: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: black !important;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--text-muted);
}

.btn-white {
  background: #ffffff;
  color: var(--primary) !important;
  border-color: #ffffff;
}
.btn-white:hover {
  background: #f3f4f6;
  border-color: #f3f4f6;
  color: var(--primary-hover) !important;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff !important;
  border-color: var(--danger);
}
.btn-danger:hover {
  background: #991b1b;
  border-color: #991b1b;
}

.btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============================================================
   PUBLIC SITE
   ============================================================ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 700; text-decoration: none; color: var(--text); font-size: 1.05rem;
}
.brand img { width: 28px; height: 28px; }

.site-nav { display: none; gap: var(--space-4); align-items: center; }
.site-nav a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}
.site-nav a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; padding: var(--space-2); color: var(--text);
}

@media (min-width: 720px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
}

/* Hero */
.hero {
  padding: var(--space-8) 0 var(--space-6);
  background: linear-gradient(180deg, #f0fdfa 0%, var(--bg) 100%);
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.75rem, 6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto var(--space-4);
}
.hero-sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 55ch;
  margin: 0 auto var(--space-6);
}
.hero-actions {
  display: flex; flex-direction: column; gap: var(--space-3);
  justify-content: center; margin-bottom: var(--space-4);
}
@media (min-width: 480px) { .hero-actions { flex-direction: row; } }
.hero-note { color: var(--text-muted); font-size: 0.875rem; }

/* Sections */
.section, .features, .how, .cta, .faq { padding: var(--space-8) 0; }
.section-title, .features h2, .how h2, .cta h2, .faq h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: var(--space-5);
  letter-spacing: -0.01em;
  text-align: center;
}
.section-title.left {
  text-align: left;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.feature-icon { font-size: 1.75rem; margin-bottom: var(--space-3); }
.feature h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.feature p { color: var(--text-muted); font-size: 0.9375rem; }

.steps { list-style: none; padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-5);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  font-weight: 700; margin-bottom: var(--space-3);
}

.cta {
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta h2 { margin-bottom: var(--space-5); }

.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.faq summary { font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--text-muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: var(--space-3); color: var(--text-muted); }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-8);
}
.footer-grid { display: grid; gap: var(--space-5); margin-bottom: var(--space-6); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-top: var(--space-2);
}
.footer-grid a:hover { color: var(--text); }
.footer-legal { border-top: 1px solid var(--border); padding-top: var(--space-4); }

/* ============================================================
   APP SHELL
   ============================================================ */
.app { padding-bottom: 64px; }

.app-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.app-topbar .container-app {
  display: flex; align-items: center; justify-content: space-between; height: 56px;
}

.user-menu { position: relative; }
.user-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: none; border: none; cursor: pointer; padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}
.user-btn:hover { background: var(--bg); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
}
.user-name { display: none; font-weight: 600; font-size: 0.9375rem; }
.caret { color: var(--text-muted); font-size: 0.75rem; }
@media (min-width: 480px) { .user-name { display: inline; } }

.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  min-width: 200px; padding: var(--space-2) 0; z-index: 60;
}
.dropdown a, .dropdown-item {
  display: block; width: 100%; text-align: left;
  padding: var(--space-2) var(--space-4);
  text-decoration: none; color: var(--text); font-size: 0.9375rem;
  background: none; border: none; cursor: pointer;
}
.dropdown a:hover, .dropdown-item:hover { background: var(--bg); }
.dropdown hr { border: none; border-top: 1px solid var(--border); margin: var(--space-2) 0; }

.app-body { display: block; }
.app-sidebar { display: none; }
.app-main {
  max-width: var(--container-app);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4);
}

@media (min-width: 900px) {
  .app-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    max-width: var(--container);
    margin: 0 auto;
  }
  .app-sidebar {
    display: block;
    padding: var(--space-5) var(--space-3);
    border-right: 1px solid var(--border);
    min-height: calc(100dvh - 56px);
  }
  .app-sidebar nav {
    display: flex; flex-direction: column; gap: var(--space-1);
    position: sticky; top: 76px;
  }
  .app-sidebar a {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm); text-decoration: none;
    color: var(--text-muted); font-weight: 500; font-size: 0.9375rem;
  }
  .app-sidebar a:hover { background: var(--bg); color: var(--text); }
  .app-sidebar a.active { background: var(--primary-soft); color: var(--primary); }
  .bottom-nav { display: none; }
}

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--surface); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: var(--space-2) 0 max(var(--space-2), env(safe-area-inset-bottom));
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: var(--text-muted); font-size: 0.6875rem;
}
.bottom-nav a span { font-size: 1.25rem; }
.bottom-nav a.active { color: var(--primary); }

/* ============================================================
   CARDS, LISTS, FORMS
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-5);
}

.group-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-5);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.group-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.group-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--space-3); margin-bottom: var(--space-2);
}
.group-card-head h3 { font-size: 1.05rem; }
.group-card-meta { margin-bottom: var(--space-4); }
.group-card-balance .label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.group-card-balance .value { font-size: 1.5rem; font-weight: 700; margin-top: 2px; }

.pill {
  background: var(--bg); padding: 0.2rem 0.6rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 500;
  white-space: nowrap;
}
.pill-role {
  background: var(--primary-soft); color: var(--primary); text-transform: capitalize;
}

.list { list-style: none; padding: 0; }
.list-item {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-3); padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }

.amount { font-weight: 700; font-size: 1.05rem; }

.badge {
  padding: 0.15rem 0.55rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; text-transform: capitalize;
}
.badge-paid { background: var(--success-soft); color: var(--success); }
.badge-pending { background: var(--warning-soft); color: var(--warning); }
.badge-partial { background: var(--info-soft); color: #1d4ed8; }
.badge-overdue { background: var(--danger-soft); color: var(--danger); }
.badge-approved { background: var(--success-soft); color: var(--success); }
.badge-pending_approval { background: var(--warning-soft); color: var(--warning); }
.badge-scheduled, .badge-awaiting_security { background: var(--warning-soft); color: var(--warning); }
.badge-ready, .badge-unlocked { background: var(--primary-soft); color: var(--primary); }
.badge-defaulted { background: var(--danger-soft); color: var(--danger); }
.badge-active { background: var(--success-soft); color: var(--success); }
.badge-draft, .badge-paused { background: var(--warning-soft); color: var(--warning); }
.badge-completed { background: var(--info-soft); color: #1d4ed8; }
.badge-new { background: var(--bg); color: var(--text-muted); }
.badge-established { background: var(--info-soft); color: #1d4ed8; }
.badge-trusted { background: var(--primary-soft); color: var(--primary); }
.badge-veteran { background: var(--success-soft); color: var(--success); }

.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
  font-size: 0.9375rem;
}
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-info { background: var(--info-soft); color: #1d4ed8; }

/* Forms */
.form { max-width: 560px; }
.form-section { margin-bottom: var(--space-5); }
.form-row { display: grid; gap: var(--space-4); }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-label {
  display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: var(--space-2);
}
.form-input {
  width: 100%; padding: 0.7rem 0.875rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 1rem;
}
.form-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-help { color: var(--text-muted); font-size: 0.8125rem; margin-top: var(--space-1); }
.form-actions {
  display: flex; gap: var(--space-3); justify-content: flex-end;
  margin-top: var(--space-5);
}
.form-error { color: var(--danger); font-size: 0.8125rem; margin-top: var(--space-1); }

.page-head { margin-bottom: var(--space-5); }
.page-head h1 {
  font-size: clamp(1.4rem, 4vw, 1.875rem); letter-spacing: -0.01em;
}
.back-link {
  color: var(--text-muted); text-decoration: none; font-size: 0.875rem;
  display: inline-block; margin-bottom: var(--space-2);
}
.back-link:hover { color: var(--text); }

.section { margin-bottom: var(--space-6); }

.table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td {
  padding: var(--space-3) var(--space-4);
  text-align: left; border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.table th {
  background: var(--bg); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); font-weight: 600;
}
.table tr:last-child td { border-bottom: none; }

.empty-state { text-align: center; padding: var(--space-8) var(--space-5); }
.empty-state h2 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.empty-state p { margin-bottom: var(--space-5); }

/* ============================================================
   SECURE ROTATION
   ============================================================ */
.rotation-timeline { display: flex; flex-direction: column; gap: var(--space-4); }

.rotation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}
.rotation-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--border);
}
.rotation-card.status-ready::before,
.rotation-card.status-unlocked::before { background: var(--primary); }
.rotation-card.status-paid::before { background: var(--success); }
.rotation-card.status-defaulted::before { background: var(--danger); }
.rotation-card.mine { border-color: var(--primary); }

.rotation-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--space-3); margin-bottom: var(--space-4);
}
.rotation-position {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 2px;
}

.rotation-body { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .rotation-body { grid-template-columns: 1fr 2fr; } }
.rotation-amount .value, .rotation-security .value {
  font-size: 1.25rem; font-weight: 700;
}
.rotation-security .value { color: var(--primary); }

.progress {
  height: 8px; background: var(--bg); border-radius: 999px;
  overflow: hidden; margin: var(--space-2) 0;
}
.progress-bar {
  height: 100%; background: var(--primary);
  transition: width 0.4s ease;
}

.stat { text-align: left; }
.stat .value.big { font-size: 1.75rem; font-weight: 700; margin-top: var(--space-1); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-shell {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: var(--space-5);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: var(--space-2); text-align: center; }
.auth-card .brand { justify-content: center; margin-bottom: var(--space-5); }
.auth-card .subtitle {
  text-align: center; color: var(--text-muted);
  margin-bottom: var(--space-5); font-size: 0.9375rem;
}
.auth-card .form { max-width: none; }
.auth-card .form-actions { flex-direction: column; }
.auth-card .form-actions .btn { width: 100%; }
.auth-alt {
  text-align: center; margin-top: var(--space-5);
  font-size: 0.9375rem; color: var(--text-muted);
}
.auth-alt a { color: var(--primary); text-decoration: none; font-weight: 600; }
/* ---------- Anchor scroll offset for sticky header ---------- */
html { scroll-padding-top: 20px; }

[id] { scroll-margin-top: 20px; }
/* ============================================================
   REAL-TIME FORM VALIDATION
   ============================================================ */

/* Input with remote status indicator */
.input-with-status {
  position: relative;
  display: block;
}
.input-with-status .form-input {
  padding-right: 2.25rem;
}
.input-status {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 1rem;
  pointer-events: none;
}
.input-status.status-ok      { color: var(--success); }
.input-status.status-error   { color: var(--danger); }
.input-status.status-loading { color: var(--text-muted); }

/* Field error states */
.form-section.has-error .form-input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.08);
}
.form-section.has-error .form-input:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}
.form-section.has-success .form-input {
  border-color: var(--success);
}

/* Inline error text */
.form-error {
  color: var(--danger);
  font-size: 0.8125rem;
  margin-top: var(--space-1);
  display: block;
}
.form-error[hidden] { display: none; }

/* Password field wrapper with toggle */
.password-field {
  position: relative;
  display: block;
}
.password-field .form-input {
  padding-right: 2.75rem;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.password-toggle:hover {
  background: var(--bg);
  color: var(--text);
}
.password-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.password-toggle .eye-icon { display: inline-block; pointer-events: none; }

/* Password strength meter */
.password-strength {
  margin-top: var(--space-2);
}
.password-strength-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}
.password-strength-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
  background: var(--border);
}
.password-strength-fill.strength-weak        { background: var(--danger); }
.password-strength-fill.strength-fair        { background: var(--warning); }
.password-strength-fill.strength-strong      { background: #65a30d; }
.password-strength-fill.strength-very-strong { background: var(--success); }

.password-strength-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  margin-top: 4px;
  color: var(--text-muted);
}

/* Password rules checklist */
.password-rules {
  list-style: none;
  padding: 0;
  margin: var(--space-2) 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.password-rules li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.25rem;
  transition: color 0.15s;
}
.password-rules li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: 700;
}
.password-rules li.rule-met {
  color: var(--success);
}
.password-rules li.rule-met::before {
  content: "✓";
  color: var(--success);
}

/* Terms checkbox row */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}
.checkbox-row a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.checkbox-row a:hover { text-decoration: underline; }

/* Submit button with spinner */
.btn[data-submit-btn] {
  position: relative;
}
.btn[data-submit-btn]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
/* ============================================================
   SUBSCRIPTION / UPGRADE
   ============================================================ */

.badge-pending    { background: var(--warning-soft); color: var(--warning); }
.badge-invoiced   { background: var(--info-soft);    color: #1d4ed8; }
.badge-paid       { background: var(--success-soft); color: var(--success); }
.badge-activated  { background: var(--primary-soft); color: var(--primary); }
.badge-rejected   { background: var(--danger-soft);  color: var(--danger); }
.badge-cancelled  { background: var(--bg);           color: var(--text-muted); }
/* ============================================================
   LOCKED FEATURES (Feature Gating)
   ============================================================ */

.locked-feature {
  position: relative;
  opacity: 0.85;
  border-style: dashed !important;
}
.locked-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(15, 118, 110, 0.02) 10px,
    rgba(15, 118, 110, 0.02) 20px
  );
  pointer-events: none;
  border-radius: var(--radius);
}
.locked-feature .locked-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
  display: inline-block;
}
.locked-feature h3 {
  font-size: 1rem;
  margin-bottom: var(--space-1);
}
.locked-feature > * {
  position: relative;
  z-index: 1;
}

/* Pill for tier badges next to group title */
.pill {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
/* ============================================================
   PRICING PAGE
   ============================================================ */

.pricing-hero {
  padding: var(--space-8) 0 var(--space-5);
  text-align: center;
  background: linear-gradient(180deg, #f0fdfa 0%, var(--bg) 100%);
}
.pricing-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin: 0 auto var(--space-4);
}
.pricing-sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 55ch;
  margin: 0 auto;
}

.pricing-grid {
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.pricing-card-featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-head h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: var(--space-4) 0 var(--space-1);
}
.pricing-amount {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.pricing-period {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.pricing-annual {
  margin-bottom: var(--space-4);
}
.pricing-save {
  color: var(--success);
  font-weight: 600;
}

.pricing-cap {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: var(--space-4) 0;
  font-size: 0.9375rem;
  text-align: center;
}

.pricing-features {
  flex: 1;
  margin-bottom: var(--space-5);
}
.pricing-features .list-item {
  padding: 0.4rem 0;
  border-bottom: none;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 0.9375rem;
}
.pricing-features .list-item .feature-check,
.pricing-features .list-item .feature-x {
  flex-shrink: 0;
  width: 1.1rem;
  text-align: center;
  font-weight: 700;
}
.feature-check { color: var(--success); }
.feature-x     { color: var(--text-muted); opacity: 0.5; }

.pricing-missing span {
  color: var(--text-muted);
}

/* Comparison table */
.pricing-comparison { background: var(--surface); padding: var(--space-8) 0; }
.pricing-table th:first-child,
.pricing-table td:first-child { text-align: left; }
.pricing-table th,
.pricing-table td { min-width: 100px; }

/* FAQ */
.pricing-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.pricing-faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.pricing-faq summary::-webkit-details-marker { display: none; }
.pricing-faq summary::after {
  content: "＋";
  float: right;
  color: var(--text-muted);
}
.pricing-faq details[open] summary::after { content: "−"; }
.pricing-faq details p {
  margin-top: var(--space-3);
  color: var(--text-muted);
}
.pricing-faq a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.pricing-faq a:hover { text-decoration: underline; }
/* ============================================================
   PAYMENT INSTRUCTIONS
   ============================================================ */

.payment-card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: var(--space-5);
  background: #f8fdfb;
  margin-top: var(--space-3);
}
.payment-card-compact {
  padding: var(--space-4);
}

.payment-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.payment-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
}

.payment-details {
  display: grid;
  gap: var(--space-2);
}
.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px dashed var(--border);
  gap: var(--space-3);
  flex-wrap: wrap;
}
.payment-row:last-child {
  border-bottom: none;
}
.payment-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.payment-value {
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.payment-value code {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.btn-copy {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-copy:hover {
  background: var(--bg);
  color: var(--primary);
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.payment-notes {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.payment-reminder {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  color: var(--primary-hover);
  font-size: 0.875rem;
  line-height: 1.5;
}
.payment-reminder strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Compact inline version on the dashboard */
.payment-inline {
  background: #f8fdfb;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
  font-size: 0.9375rem;
}
.payment-inline-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.payment-inline-value {
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.payment-inline-value code {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.payment-inline-ref {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.payment-inline-ref code {
  font-weight: 700;
  color: var(--primary);
  background: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
/* ============================================================
   ROLE EXPLANATIONS
   ============================================================ */

.roles-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .roles-grid { grid-template-columns: repeat(3, 1fr); }
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
}

.role-card-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.role-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}

.role-card-head h3 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem 0;
}

.role-perms {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0;
  font-size: 0.875rem;
  flex: 1;
}

.role-perms li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  line-height: 1.4;
}
.role-perms li.yes {
  color: var(--text);
}
.role-perms li.yes::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.role-perms li.no {
  color: var(--text-muted);
}
.role-perms li.no::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.role-when {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.role-when strong {
  color: var(--text);
}

.role-note {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: var(--primary-soft);
  border-radius: var(--radius);
  color: var(--primary-hover);
  font-size: 0.9375rem;
  line-height: 1.6;
}
/* ============================================================
   NOTIFICATION BELL
   ============================================================ */

.notification-bell {
  position: relative;
}

.bell-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.bell-btn:hover { background: var(--bg); }

.bell-icon { font-size: 1.35rem; line-height: 1; }

.bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0 4px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 999px;
  border: 2px solid var(--surface);
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 60;
  overflow: hidden;
}

.notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.notif-head strong { font-size: 0.9375rem; }
.notif-see-all {
  color: var(--primary);
  font-size: 0.8125rem;
  text-decoration: none;
  font-weight: 600;
}

.notif-list {
  max-height: 420px;
  overflow-y: auto;
}

.notif-item {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.1s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg); }

.notif-item-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.15rem;
}
.notif-item-body {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.notif-item-time {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.3rem;
}

.notif-empty, .notif-loading {
  padding: var(--space-5);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Notifications page */
.notif-page-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notif-page-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.notif-page-item:last-child { border-bottom: none; }

.notif-page-item.unread {
  background: #f0fdfa;
}
.notif-page-item.unread::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
}

.notif-page-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.notif-page-body {
  flex: 1;
  min-width: 0;
}
.notif-page-body strong {
  display: block;
  font-size: 0.9375rem;
}

.notif-page-cta {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
  align-self: center;
}

/* ============================================================
   ROLE MANAGEMENT
   ============================================================ */

.member-manage {
  position: relative;
  display: inline-block;
}
.member-manage summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.8125rem;
}
.member-manage summary::-webkit-details-marker { display: none; }

.member-manage-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: var(--space-2) 0;
  z-index: 50;
}
.member-manage-menu hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-2) 0;
}
.manage-label {
  padding: var(--space-2) var(--space-3) var(--space-1);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.manage-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--space-2) var(--space-3);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text);
}
.manage-item:hover { background: var(--bg); }
.manage-item-danger { color: var(--danger); }
.manage-item-danger:hover { background: var(--danger-soft); }
/* ============================================================
   APP FOOTER
   ============================================================ */

.app-footer {
  padding: var(--space-5) var(--space-4);
  border-top: 1px solid var(--border);
  margin-top: var(--space-6);
  background: var(--surface);
}

/* On mobile, leave room for the bottom nav */
@media (max-width: 899px) {
  .app-footer {
    margin-bottom: 64px;
  }
}

.app-footer a:hover {
  text-decoration: underline;
}

/* Public footer's AhostPal link matches */
.footer-legal a:hover {
  text-decoration: underline;
}
/* ============================================================
   FOOTER — Brand Column with Logo + Socials
   ============================================================ */

/* Public footer — 4-column layout */
.footer-grid {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
}

/* Brand column with logo */
.footer-brand .footer-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}
.footer-brand .footer-logo img {
  width: 40px;
  height: 40px;
  display: block;
}
.footer-brand .footer-brand-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

/* Social links — public */
.social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.social-links a:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* App footer — grid layout */
.app-footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 640px) {
  .app-footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

.app-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.app-footer-brand .footer-logo img {
  width: 32px;
  height: 32px;
  display: block;
}
.app-footer-brand .footer-brand-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Social links — app */
.app-footer-socials {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.app-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.app-footer-socials a:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}
/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-hero {
  padding: var(--space-8) 0 var(--space-6);
  text-align: center;
  background: linear-gradient(180deg, #f0fdfa 0%, var(--bg) 100%);
}
.about-title {
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 26ch;
  margin: 0 auto var(--space-4);
}
.about-sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 55ch;
  margin: 0 auto;
}

/* Headings on the about page */
.about-hero + .section h2,
.about-hero + .section h2:first-child {
  margin-top: 0;
}
.about-hero ~ .section h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}
.about-hero ~ .section h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}
.about-hero ~ .section p {
  color: #374151;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.about-hero ~ .section p:last-child {
  margin-bottom: 0;
}
.about-hero ~ .section strong {
  color: var(--text);
}

/* Feature blocks */
.about-features {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-5) 0;
}
@media (min-width: 720px) {
  .about-features { grid-template-columns: repeat(3, 1fr); }
}
.about-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.about-feature-icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-3);
  line-height: 1;
}
.about-feature h3 {
  font-size: 1rem;
  margin-bottom: var(--space-2);
}
.about-feature p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
}

/* Comparison table */
.about-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  margin: var(--space-5) 0;
}
.about-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
}
.about-table th,
.about-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  vertical-align: top;
}
.about-table th {
  background: var(--bg);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}
.about-table tr:last-child td { border-bottom: none; }
.about-table td:nth-child(2) {
  background: #f0fdfa;
}

/* Callout */
.about-callout {
  margin: var(--space-5) 0;
  padding: var(--space-5);
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
}
.about-callout strong {
  display: block;
  color: var(--primary-hover);
  font-size: 1rem;
  margin-bottom: var(--space-2);
}
.about-callout p {
  margin: 0;
  color: var(--primary-hover);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* User segments */
.about-segments {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}
@media (min-width: 640px) {
  .about-segments { grid-template-columns: repeat(3, 1fr); }
}
.about-segment {
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.about-segment strong {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 0.9375rem;
}
.about-segment p {
  margin: 0;
  line-height: 1.6;
}

/* Values list */
.about-values {
  counter-reset: values;
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0;
}
.about-values li {
  counter-increment: values;
  padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 2.5rem);
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #374151;
}
.about-values li:last-child { border-bottom: none; }
.about-values li::before {
  content: counter(values);
  position: absolute;
  left: 0;
  top: var(--space-4);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}
.about-values li strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

/* Company footer block */
.about-company {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.about-company p { margin: 0 0 var(--space-2) 0; }
.about-company p:last-child { margin-bottom: 0; }
.about-company a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.about-company a:hover { text-decoration: underline; }
/* ============================================================
   UPGRADE PAGE — Pricing comparison cards
   ============================================================ */

.pricing-grid-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: stretch;
  margin-bottom: var(--space-6);
}
@media (min-width: 720px) {
  .pricing-grid-compare {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }
}

.pricing-card-compare {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pricing-card-compare:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.pricing-card-compare.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.pricing-badge-compare {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-card-compare-head {
  margin-bottom: var(--space-4);
}
.pricing-card-compare-head h3 {
  font-size: 1.375rem;
  margin-bottom: 0.25rem;
}

.pricing-card-compare-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.pricing-card-compare-price .amount {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.pricing-card-compare-price .period {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Feature list — left-aligned with check on the left */
.pricing-features-compare {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  flex: 1;
}
.pricing-features-compare li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
}
.pricing-features-compare .check {
  flex-shrink: 0;
  color: var(--success);
  font-weight: 700;
  line-height: 1.5;
  width: 1rem;
  text-align: center;
}

.pricing-card-compare-action {
  margin-top: auto;
}