/*
 * Manor Keeper — application styles
 * Design: warm neutrals, teal accent, clear hierarchy
 */

:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-accent: #0f766e;
  --color-accent-hover: #0d9488;
  --color-accent-light: #ccfbf1;
  --color-success: #059669;
  --color-success-bg: #d1fae5;
  --color-danger: #dc2626;
  --color-danger-bg: #fee2e2;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --radius-lg: 14px;
}

body,
.site-body {
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ----- Sidebar layout ----- */
.site-layout {
  display: flex;
  min-height: 100vh;
}

.site-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #1e293b;
  border-right: none;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.site-sidebar__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 0.75rem;
}

.site-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: #f1f5f9;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  padding: 0.375rem 0.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: background 0.15s;
}

.site-sidebar__brand:hover {
  background: rgba(255, 255, 255, 0.07);
}

.site-sidebar__brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.site-sidebar__brand-text {
  white-space: nowrap;
}

/* ----- Sidebar nav ----- */
.site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.site-nav__link:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.07);
}

.site-nav__link--current {
  color: #ffffff;
  background: var(--color-accent);
  font-weight: 600;
}

.site-nav__link--apply {
  color: var(--color-accent);
  font-weight: 600;
}

.site-nav__link--apply:hover {
  background: var(--color-accent-light);
}

.site-nav__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.75;
}

.site-nav__link--current .site-nav__icon {
  opacity: 1;
}

/* ----- Sidebar footer (user + sign out) ----- */
.site-sidebar__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.site-sidebar__user:hover {
  background: rgba(255, 255, 255, 0.07);
}

.site-nav__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.site-sidebar__avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-nav__email {
  font-size: 0.8125rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-sidebar__signout {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.site-sidebar__signout:hover {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.3);
}

/* Landlord sidebar: superadmin in footer (bottom-left stack), above Sign out */
.site-sidebar__superadmin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #c4b5fd;
  transition: color 0.15s, background 0.15s;
}

.site-sidebar__superadmin:hover {
  color: #ede9fe;
  background: rgba(255, 255, 255, 0.08);
}

.site-sidebar__superadmin--current {
  color: #ffffff;
  background: rgba(124, 58, 237, 0.45);
}

.site-sidebar__superadmin-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}

/* ----- Superadmin shell (distinct from landlord slate sidebar) ----- */
.site-body--superadmin .site-sidebar--superadmin {
  background: #3b0764;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.site-body--superadmin .site-nav__link--current {
  background: #7c3aed;
  color: #ffffff;
}

.site-body--superadmin .site-nav__link--current:hover {
  background: #8b5cf6;
  color: #ffffff;
}

.site-body--superadmin .site-sidebar__avatar-placeholder {
  background: rgba(167, 139, 250, 0.25);
  color: #e9d5ff;
}

.superadmin-page__title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.superadmin-page__lead {
  color: var(--color-text-muted);
  max-width: 52rem;
  margin: 0 0 2rem;
  line-height: 1.65;
}

.superadmin-page__code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--color-bg);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.superadmin-page__empty {
  color: var(--color-text-muted);
}

.superadmin-page__col-right {
  text-align: right;
}

.superadmin-gate-form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.superadmin-gate-form__checkbox {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
}

.site-body--superadmin .site-nav__sub {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin: 0.25rem 0 0.75rem 1.75rem;
  padding-left: 0;
}

.site-body--superadmin .site-nav__sub-link {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.site-body--superadmin .site-nav__sub-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-body--superadmin .site-nav__sub-link--current {
  color: #fff;
  background: rgba(167, 139, 250, 0.35);
  font-weight: 600;
}

.superadmin-page__section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  letter-spacing: -0.01em;
}

.superadmin-page__back {
  margin: 0 0 1rem;
}

.superadmin-page__link {
  color: #7c3aed;
  font-weight: 500;
  text-decoration: none;
}

.superadmin-page__link:hover {
  text-decoration: underline;
}

.superadmin-stat-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.superadmin-stat-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.superadmin-stat-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.superadmin-stat-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.superadmin-stat-grid--tight-top {
  margin-top: 0.75rem;
}

@media (max-width: 960px) {
  .superadmin-stat-grid--3,
  .superadmin-stat-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .superadmin-stat-grid--2,
  .superadmin-stat-grid--3,
  .superadmin-stat-grid--4 {
    grid-template-columns: 1fr;
  }
}

.superadmin-stat-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem 1.125rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.superadmin-stat-card__label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.superadmin-stat-card__value {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.superadmin-stat-card__footnote {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.superadmin-stub {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  border: 1px dashed var(--color-border);
  background: var(--color-bg);
}

.superadmin-stub--inline {
  border-style: solid;
}

.superadmin-stub__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.superadmin-stub__body {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 48rem;
}

.superadmin-stub__hint {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.superadmin-users-table__col-roles {
  width: 5rem;
  text-align: center;
}

.superadmin-users-table__col-actions {
  width: 8rem;
  text-align: right;
  vertical-align: top;
}

.superadmin-users-table__cell-flag {
  text-align: center;
  vertical-align: middle;
}

.superadmin-users-table__cell-actions {
  text-align: right;
  vertical-align: top;
}

.superadmin-users__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.superadmin-users__flag--yes {
  color: #0d5c2e;
  background: rgba(34, 197, 94, 0.18);
}

.superadmin-users__flag--no {
  color: #9b1c1c;
  background: rgba(239, 68, 68, 0.14);
}

.superadmin-user-email-compose {
  max-width: 36rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.superadmin-user-email-compose__meta {
  margin: 0 0 1.5rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.superadmin-user-email-compose__meta > div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.superadmin-user-email-compose__meta > div:last-child {
  margin-bottom: 0;
}

.superadmin-user-email-compose__meta dt {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.superadmin-user-email-compose__meta dd {
  margin: 0;
  font-size: 0.9375rem;
}

.superadmin-user-email-compose__field {
  margin-bottom: 1rem;
}

.superadmin-user-email-compose__field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text-muted);
}

.superadmin-user-email-compose__input,
.superadmin-user-email-compose__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  background: var(--color-bg);
  color: var(--color-text);
}

.superadmin-user-email-compose__textarea {
  resize: vertical;
  min-height: 8rem;
}

.superadmin-user-email-compose__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.superadmin-users-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.superadmin-users-toolbar__filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.superadmin-users-toolbar__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0;
}

.superadmin-users-toolbar__select {
  min-width: 11rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  background: var(--color-bg);
  color: var(--color-text);
}

.superadmin-users-toolbar__input {
  min-width: 12rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  background: var(--color-bg);
  color: var(--color-text);
}

.superadmin-users-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.superadmin-users-pagination {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.superadmin-users-pagination__link {
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.superadmin-users-pagination__link:hover {
  text-decoration: underline;
}

.superadmin-users-pagination__muted {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.superadmin-users-pagination__status {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ----- Content area (app layout) ----- */
.site-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  padding: 2.5rem 2.5rem 4rem;
}

/* =========================================================
   Public layout — top nav + full-width content
   ========================================================= */

.public-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.public-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.public-nav__brand {
  flex-shrink: 0;
}

.public-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.public-nav__logo:hover {
  color: var(--color-accent);
}

.public-nav__logo-icon {
  border-radius: 6px;
  flex-shrink: 0;
}

.public-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.public-nav__link {
  text-decoration: none;
  color: #334155;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.public-nav__link:hover {
  color: var(--color-text);
  background: var(--color-bg);
}

.public-nav__link--current {
  color: var(--color-accent);
  font-weight: 700;
}

/* Features mega-menu (hover / focus-within on desktop) */
.public-nav__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.public-nav__dropdown-chevron {
  flex-shrink: 0;
  opacity: 0.7;
  margin-top: 0.05rem;
  transition: transform 0.2s ease, opacity 0.15s;
}

.public-nav__dropdown:hover .public-nav__dropdown-chevron,
.public-nav__dropdown:focus-within .public-nav__dropdown-chevron,
.public-nav__dropdown.is-open .public-nav__dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.public-nav__dropdown {
  position: relative;
}

.public-nav__dropdown-panel {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* top: 100% (no margin gap) so the pointer can reach the panel without leaving the hover chain */
  top: 100%;
  min-width: min(1080px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  padding: calc(0.5rem + 1.25rem) 1.5rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 200;
}

/* Top-level Payments / Accounting dropdowns (single column of sub-links) */
.public-nav__dropdown-panel.public-nav__dropdown-panel--standalone {
  min-width: min(22rem, calc(100vw - 2rem));
  max-width: min(28rem, calc(100vw - 2rem));
}

.public-nav__dropdown-inner {
  display: grid;
  grid-template-columns: repeat(var(--features-nav-cols, 5), minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.public-nav__dropdown-column-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-decoration: none;
  margin-bottom: 0.625rem;
}

.public-nav__dropdown-column-title-text {
  line-height: 1.25;
}

.public-nav__dropdown-column-icon {
  flex-shrink: 0;
  color: var(--color-accent);
  opacity: 0.92;
}

.public-nav__dropdown-column-title:hover {
  color: var(--color-accent);
}

.public-nav__dropdown-column-title:hover .public-nav__dropdown-column-icon {
  opacity: 1;
}

.public-nav__dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.public-nav__dropdown-item {
  display: block;
  text-decoration: none;
  padding: 0.35rem 0;
  border-radius: 4px;
  transition: background 0.12s;
}

.public-nav__dropdown-item:hover {
  background: var(--color-bg);
}

.public-nav__dropdown-item-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.public-nav__dropdown-item-blurb {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.35;
  margin-top: 0.125rem;
}

.public-nav__dropdown-overview {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.public-nav__dropdown-overview-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.public-nav__dropdown-overview-sep {
  color: var(--color-text-muted);
  user-select: none;
}

.public-nav__dropdown-overview-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.public-nav__dropdown-overview-link:hover {
  text-decoration: underline;
}

@media (min-width: 641px) {
  .public-nav__dropdown:hover .public-nav__dropdown-panel,
  .public-nav__dropdown:focus-within .public-nav__dropdown-panel {
    display: block;
  }
}

@media (max-width: 640px) {
  /* Touch: hover is unreliable; only .is-open (Stimulus) shows the panel */
  .public-nav__dropdown:hover .public-nav__dropdown-panel,
  .public-nav__dropdown:focus-within .public-nav__dropdown-panel {
    display: none !important;
  }

  .public-nav__dropdown.is-open .public-nav__dropdown-panel {
    display: block !important;
  }

  .public-nav__dropdown-panel {
    left: 0;
    transform: none;
    width: calc(100vw - 3rem);
    max-width: 520px;
    max-height: min(75vh, 32rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .public-nav__dropdown-inner {
    grid-template-columns: 1fr;
  }
}

.public-nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Superadmin: top-right, distinct from primary CTA */
.public-nav__superadmin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #6d28d9;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.public-nav__superadmin:hover {
  color: #5b21b6;
  background: #ede9fe;
  border-color: #c4b5fd;
}

.public-nav__signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  color: var(--color-accent);
  background: var(--color-surface);
  border: 2px solid var(--color-accent-light);
  box-shadow: 0 1px 3px rgba(15, 118, 110, 0.12);
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.public-nav__signin:hover {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 3px 12px rgba(15, 118, 110, 0.3);
  transform: translateY(-1px);
}

/* Public header CTAs — stronger fill + shadow (Start free, Open dashboard, My rentals) */
.public-nav__actions .btn.btn--primary.btn--sm {
  padding: 0.5rem 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.32);
}

.public-nav__actions .btn.btn--primary.btn--sm:hover {
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.4);
}

.public-nav__actions .btn.btn--primary.btn--sm.btn--disabled {
  transform: none;
  box-shadow: none;
  opacity: 0.55;
}

.public-main {
  min-height: calc(100vh - 60px);
}

/* ----- Resource articles / help center ----- */
.resource-hub {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.resource-hub__header h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.resource-hub__header p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 44rem;
}

.resource-hub__grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.resource-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.resource-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
}

.resource-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.0625rem;
}

.resource-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.resource-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.resource-article__breadcrumb {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

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

.resource-article__header h1 {
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0.375rem 0 0.75rem;
}

.resource-article__summary {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

.resource-article__content {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--color-text);
}

.resource-article__content h2 {
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.resource-article__content ul,
.resource-article__content ol {
  padding-left: 1.2rem;
}

.resource-article__content li {
  margin: 0.25rem 0;
}

/* ----- Public vacancy page ----- */
.vacancy-page {
  background: var(--color-bg);
}

.vacancy-page__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.5rem;
}

.vacancy-page__gallery,
.vacancy-page__content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.vacancy-page__gallery {
  padding: 0.75rem;
}

.vacancy-page__hero-image-wrap {
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: #e2e8f0;
  min-height: 260px;
}

.vacancy-page__hero-image-wrap--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.vacancy-page__hero-image {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 420px;
}

.vacancy-page__thumb-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.vacancy-page__thumb-image {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
}

.vacancy-page__content {
  padding: 1.25rem 1.375rem;
}

.vacancy-page__eyebrow {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vacancy-page__title {
  margin: 0.375rem 0 0.3rem;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.2;
}

.vacancy-page__address {
  margin: 0;
  color: var(--color-text-muted);
}

.vacancy-page__meta {
  margin-top: 0.625rem;
}

.vacancy-page__section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.vacancy-page__section h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.vacancy-page__description {
  color: var(--color-text);
  line-height: 1.65;
}

.vacancy-page__amenities {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text);
}

.vacancy-page__cta .btn {
  width: 100%;
  text-align: center;
}

.vacancy-page__disclaimer {
  margin-top: 0.625rem;
  margin-bottom: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .vacancy-page__inner {
    grid-template-columns: 1fr;
  }
}

/* ----- Public apply (renter layout) ----- */
.apply-page {
  background: var(--color-bg);
  min-height: 100%;
}

.apply-page__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.5rem;
}

.apply-page__inner--narrow {
  max-width: 560px;
}

.apply-page__intro {
  margin-bottom: 1.25rem;
}

.apply-page__eyebrow {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.apply-page__title {
  margin: 0.35rem 0 0.25rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.2;
}

.apply-page__property {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.apply-page__lead {
  margin: 0.75rem 0 0;
  color: var(--color-text);
  line-height: 1.6;
  font-size: 1rem;
}

.apply-page__hint {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.apply-page__panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.375rem;
  margin-top: 1rem;
}

.apply-page__panel--empty {
  text-align: center;
  padding: 2rem 1.5rem;
}

.apply-page__panel--errors {
  border-color: #fecaca;
  background: #fef2f2;
}

.apply-page__error-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: #991b1b;
}

.apply-page__panel--success {
  text-align: center;
  padding: 2rem 1.5rem;
}

.apply-page__section-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.apply-page__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.apply-page__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.apply-page__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.apply-page__req {
  color: #b91c1c;
}

.apply-page__input,
.apply-page__textarea,
.apply-page__select {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}

.apply-page__textarea {
  resize: vertical;
  min-height: 6rem;
}

.apply-page__questions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.apply-page__question {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.apply-page__question:first-child {
  padding-top: 0;
  border-top: 0;
}

.apply-page__checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.apply-page__check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  cursor: pointer;
}

.apply-page__checkbox {
  margin-top: 0.2rem;
}

.apply-page__submit-wrap {
  margin-top: 1.5rem;
}

.apply-page__submit {
  width: 100%;
}

.apply-page__success-icon {
  color: #059669;
  margin-bottom: 0.5rem;
}

.apply-page__success-icon svg {
  display: block;
  margin: 0 auto;
}

.apply-page__meta {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.apply-page__meta p {
  margin: 0.2rem 0;
}

.apply-page__success-actions {
  margin-top: 1.5rem;
}

.apply-page__success-actions .btn {
  width: 100%;
  text-align: center;
}

/* ----- Flash messages ----- */
.flash {
  padding: 0.875rem 1.5rem;
  text-align: center;
  font-weight: 500;
  border-radius: 0 0 var(--radius) var(--radius);
}

.flash--notice {
  background: var(--color-success-bg);
  color: #065f46;
  border-bottom: 1px solid #a7f3d0;
}

.flash--alert {
  background: var(--color-danger-bg);
  color: #991b1b;
  border-bottom: 1px solid #fecaca;
}

/* ----- Page container ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-width {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-page {
  max-width: 500px;
  margin: 100px auto;
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.auth-page h1 {
  color: #333;
  margin-bottom: 30px;
}

.user-info {
  padding: 20px 0;
}

.user-info .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.user-info h2 {
  color: #333;
  margin: 20px 0 10px;
}

.user-info p {
  color: #666;
  margin-bottom: 30px;
}

.sign-in p {
  color: #666;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  box-sizing: border-box;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-accent-light);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.15);
}

/* BEM aliases — marketing/public views use btn--primary / btn--secondary */
.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
  border: 1px solid transparent;
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.btn--secondary {
  background-color: var(--color-surface);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn--secondary:hover {
  background-color: var(--color-accent-light);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.15);
}

/* ----- Homepage hero ----- */
.page-hero {
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}

.page-hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.page-hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.page-hero__oauth-hint {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.btn-inline-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--color-accent);
  cursor: pointer;
  text-decoration: underline;
  font-weight: 500;
}

.btn-inline-link:hover {
  color: var(--color-accent-hover);
}

/* ----- Cards (questionnaire list) ----- */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card__body {
  padding: 1.25rem 1.75rem 1.5rem;
}

.property-private-notes-list {
  margin-top: 1.25rem;
}

#property-private-notes-empty {
  margin-top: 1rem;
}

.property-photo-grid {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.property-photo-grid__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.property-photo-grid__image-wrap {
  aspect-ratio: 4 / 3;
  background: #f8fafc;
}

.property-photo-grid__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-photo-grid__meta {
  padding: 0.625rem 0.75rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

#property-photo-empty {
  margin-top: 1rem;
}

.property-photo-email-in__address code {
  display: inline-block;
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  word-break: break-all;
}

.card__title:not(.card__header .card__title) {
  padding: 1.25rem 1.75rem 0;
  display: block;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.card__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.card__link:hover {
  color: var(--color-accent-hover);
}

.card__description {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--active {
  background: var(--color-success-bg);
  color: #065f46;
}

.badge--inactive {
  background: var(--color-bg);
  color: var(--color-text-muted);
}

.card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card__footer {
  padding: 1rem 1.75rem;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.card__share-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.card__share-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card__share-input {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  flex: 1;
  min-width: 200px;
}

.btn-copy {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-accent);
  background: transparent;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-copy:hover {
  background: var(--color-accent);
  color: white;
}

/* ----- Buttons (keep existing, add variants) ----- */
.btn-primary.card__btn {
  background: var(--color-accent);
  color: white;
}

.btn-primary.card__btn:hover {
  background: var(--color-accent-hover);
}

.btn-secondary.card__btn {
  background: var(--color-surface);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-secondary.card__btn:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ----- Empty state ----- */
.empty-state {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
  padding: 3rem 2rem;
  text-align: center;
}

.empty-state__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.empty-state__text {
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
}

.alert, .notice {
  padding: 15px;
  margin: 20px 0;
  border-radius: 6px;
  text-align: center;
}

.alert {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
}

.notice {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #66bb6a;
}

/* ----- Page headings ----- */
.page-header {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-header__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.page-header__subtitle {
  color: var(--color-text-muted);
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
}

.page-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ----- Reports hub (Free plan preview) ----- */
.report-upgrade-banner {
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.report-upgrade-banner__inner {
  max-width: 42rem;
}

.report-upgrade-banner__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.report-upgrade-banner__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.report-upgrade-banner__link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.report-upgrade-banner__link:hover {
  text-decoration: underline;
}

.reports-hub__fieldset {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.reports-hub__legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Page content wrapper ----- */
.page-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.legal-disclaimer p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.legal-disclaimer p:last-child {
  margin-bottom: 0;
}

.legal-disclaimer strong {
  color: var(--color-text);
}

.legal-disclaimer .legal-disclaimer__muted {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.policy-document h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 1.75rem 0 0.5rem;
}

.policy-document h2:first-child {
  margin-top: 0;
}

.policy-document ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.policy-document li {
  margin-bottom: 0.35rem;
}

.policy-document a {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
}

.policy-document a:hover {
  text-decoration: underline;
}

/* ----- Property grid ----- */
.property-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.property-card {
  padding: 1.5rem 1.75rem;
}

.property-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.property-card__name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.property-card__name a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s;
}

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

.property-card__address {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: 0 0 0.75rem;
}

.property-card__stats {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.property-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.property-marketing-links-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.property-marketing-links-list li {
  margin: 0.35rem 0;
  line-height: 1.5;
}

.property-marketing-links-list code {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.12rem 0.35rem;
}

.property-listing-photo-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.property-listing-photo {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

/* ----- Button size variants ----- */
.btn--sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

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

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

/* ----- Back link ----- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--color-accent-hover);
}

/* ----- Status badges (more variants) ----- */
.badge--pending {
  background: #fef3c7;
  color: #92400e;
}

.badge--reviewed {
  background: #dbeafe;
  color: #1e40af;
}

.badge--approved {
  background: var(--color-success-bg);
  color: #065f46;
}

.badge--denied {
  background: var(--color-danger-bg);
  color: #991b1b;
}

.badge--open {
  background: #fef3c7;
  color: #92400e;
}

.badge--scheduled {
  background: #dbeafe;
  color: #1e40af;
}

.badge--completed {
  background: var(--color-success-bg);
  color: #065f46;
}

/* ----- Tables ----- */
.table-wrapper {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table__head {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.table__header {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table__header--right {
  text-align: right;
}

.table__header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.table__body {
  background: var(--color-surface);
  divide-y: 1px solid var(--color-border);
}

.table__row {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
}

.table__row:hover {
  background: var(--color-bg);
}

.table__row:last-child {
  border-bottom: none;
}

.table__cell {
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--color-text);
}

.table__cell--right {
  text-align: right;
}

.table__cell-label {
  display: block;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.125rem;
}

.table__cell-sublabel {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.table__link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.table__link:hover {
  color: var(--color-accent-hover);
}

/* ----- Forms ----- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.form__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.form__input,
.form__select {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form__input:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form__input::placeholder {
  color: var(--color-text-muted);
}

.form__checkbox {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.form__inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ----- Filter buttons ----- */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.625rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.filter-btn:hover {
  background: var(--color-bg);
  border-color: #cbd5e1;
}

.filter-btn--active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.filter-btn--pending.filter-btn--active {
  background: #eab308;
  border-color: #eab308;
}

.filter-btn--approved.filter-btn--active {
  background: var(--color-success);
  border-color: var(--color-success);
}

.filter-btn--denied.filter-btn--active {
  background: var(--color-danger);
  border-color: var(--color-danger);
}

/* ----- Applicant detail view ----- */
.applicant-header {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.applicant-header__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.applicant-header__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}

.applicant-header__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ----- Answer list ----- */
.answer-list {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  padding: 1.5rem 1.75rem;
}

.answer-list__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.answer-list__items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.answer-item {
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
}

.answer-item__question {
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 0.375rem;
  font-size: 0.9375rem;
}

.answer-item__answer {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.answer-item__answer--empty {
  font-style: italic;
  color: #94a3b8;
}

/* ----- Comparison table ----- */
.comparison-table {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.comparison-table .table__head {
  position: sticky;
  top: 0;
  z-index: 10;
}

.comparison-table .table__header--sticky {
  position: sticky;
  left: 0;
  background: var(--color-bg);
  z-index: 20;
}

.comparison-table .table__cell--sticky {
  position: sticky;
  left: 0;
  background: var(--color-surface);
  z-index: 5;
  border-right: 2px solid var(--color-border);
  font-weight: 500;
}

.comparison-table .table__cell--applicant {
  min-width: 200px;
  border-left: 2px solid var(--color-border);
}

.applicant-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.applicant-col__name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
}

.applicant-col__email,
.applicant-col__phone {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.applicant-col__date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.applicant-col__link {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.question-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* ----- Question list ----- */
.question-list {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  padding: 1.5rem 1.75rem;
}

.question-list__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.question-list__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.question-item {
  border-left: 3px solid var(--color-accent);
  padding: 0.75rem 0 0.75rem 1rem;
}

.question-item__content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.question-item__text {
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.question-item__required {
  color: var(--color-danger);
}

.question-item__meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.question-item__position {
  font-size: 0.75rem;
  color: #cbd5e1;
  font-weight: 500;
}

.question-item__options {
  margin-top: 0.75rem;
  margin-left: 1rem;
}

.question-item__options-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.question-item__options-list {
  list-style: disc;
  list-style-position: inside;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ----- Action buttons ----- */
.action-bar {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn--gray {
  background: #6b7280;
  color: white;
  border: none;
}

.btn--gray:hover {
  background: #4b5563;
}

.btn--purple {
  background: #9333ea;
  color: white;
  border: none;
}

.btn--purple:hover {
  background: #7e22ce;
}

.btn--purple:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.btn--print {
  background: var(--color-accent);
  color: white;
  border: none;
  cursor: pointer;
}

.btn--print:hover {
  background: var(--color-accent-hover);
}

/* ----- Utility: max-width containers ----- */
.content-narrow {
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.content-wide {
  max-width: 100%;
}

/* ----- Auth card ----- */
.auth-card-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1rem;
}

.auth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}

.auth-card__title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin: 0 0 0.375rem;
}

.auth-card__subtitle {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: 0 0 1.75rem;
}

.auth-card__submit {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.auth-card__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.auth-card__divider::before,
.auth-card__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.auth-card__google-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9375rem;
  justify-content: center;
}

.auth-card__footer-link {
  text-align: center;
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.auth-card__footer-link a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-card__footer-link a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.auth-card__errors {
  background: var(--color-danger-bg);
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  color: #991b1b;
  font-size: 0.875rem;
}

.auth-card__errors p {
  margin: 0.25rem 0;
}

.auth-card__errors p:first-child {
  margin-top: 0;
}

.auth-card__errors p:last-child {
  margin-bottom: 0;
}

/* ----- Account page ----- */
.account-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  max-width: 560px;
  margin: 2.5rem auto;
}

.account-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.account-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.account-card__avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-card__name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.125rem;
}

.account-card__email {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

.account-card__section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}

.account-card__google-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.account-card__google-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.account-card__google-sub {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.125rem;
}

.badge--connected {
  background: var(--color-success-bg);
  color: #065f46;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ----- Data table (transactions) ----- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  overflow: hidden;
  font-size: 0.875rem;
}

.data-table thead {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.data-table td {
  padding: 0.875rem 1rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

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

.data-table tbody tr:hover td {
  background: var(--color-bg);
}

.data-table__check {
  width: 2rem;
  text-align: center !important;
}

.data-table__row--uncategorized td {
  background: #fffbeb;
}

.data-table__row--uncategorized:hover td {
  background: #fef3c7;
}

/* ----- Utility classes ----- */
.text-right { text-align: right; }
.text-nowrap { white-space: nowrap; }
.text-positive { color: var(--color-success); font-weight: 600; }
.text-negative { color: var(--color-danger); font-weight: 600; }

/* ----- Badge variants ----- */
.badge--income {
  background: var(--color-success-bg);
  color: #065f46;
}

.badge--expense {
  background: var(--color-danger-bg);
  color: #991b1b;
}

.badge--warning {
  background: #fef3c7;
  color: #92400e;
}

/* ----- Filter bar ----- */
.filter-bar__form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar__checkbox {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.form__select--sm {
  padding: 0.375rem 0.625rem;
  font-size: 0.875rem;
}

/* ----- Bulk action bar ----- */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.bulk-bar__count {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  min-width: 6rem;
}

/* ----- Inline form ----- */
.inline-form {
  margin: 0;
}

/* ----- Extra button size ----- */
.btn--xs {
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;
}

/* ----- Stat cards (dashboard) ----- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
}

.stat-card--positive {
  border-color: #a7f3d0;
  background: #f0fdf9;
}

.stat-card--negative {
  border-color: #fecaca;
  background: #fff5f5;
}

.stat-card__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.375rem;
}

.stat-card__value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

/* ----- Alert variants ----- */
.alert--warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
}

.alert--warning a {
  color: #92400e;
  font-weight: 600;
}

/* ----- Empty state variants ----- */
.empty-state__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

.empty-state__body {
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
}

.empty-state--inline {
  padding: 2rem 1.75rem;
  border: none;
  border-radius: 0;
  text-align: center;
}

.empty-state--inline .empty-state__body {
  margin: 0;
}

/* ----- Page content variants ----- */
.page-content--narrow {
  max-width: 680px;
}

/* ----- Report form ----- */
.report-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.75rem 1.5rem;
}

.report-form__filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ----- Dashboard table links ----- */
.data-table td a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.data-table td a:hover {
  color: var(--color-accent-hover);
}

/* =========================================================
   Pricing page
   ========================================================= */

.pricing-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.pricing-page__header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-page__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}

.pricing-page__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ----- Plan cards ----- */
.pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
  align-items: start;
}

.pricing-plan {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pricing-plan--pro {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-md);
}

.pricing-plan__badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pricing-plan__header {
  margin-bottom: 1.5rem;
}

.pricing-plan__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}

.pricing-plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.375rem;
}

.pricing-plan__amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-text);
  line-height: 1;
}

.pricing-plan__period {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.pricing-plan__tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0 0;
}

.pricing-plan__annual {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0 0;
}

.pricing-plan__savings {
  color: var(--color-success);
  font-weight: 600;
}

.pricing-plan__features {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.pricing-plan__feature {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-plan__feature--included::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.pricing-plan__feature--excluded {
  opacity: 0.45;
}

.pricing-plan__feature--excluded::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.pricing-plan__cta {
  margin-top: auto;
  width: 100%;
  min-width: 0;
}

.pricing-plan__cta .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

/* ----- Calculator ----- */
.pricing-calculator {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.pricing-calculator__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.375rem;
}

.pricing-calculator__description {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

.pricing-calculator__form {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.pricing-calculator__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.pricing-calculator__input {
  width: 100px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
}

.pricing-calculator__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.pricing-calculator__result {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.pricing-calculator__monthly,
.pricing-calculator__annual {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.pricing-calculator__monthly strong,
.pricing-calculator__annual strong {
  color: var(--color-text);
  font-size: 1.25rem;
}

.pricing-calculator__savings {
  font-size: 0.875rem;
  color: var(--color-success);
  font-weight: 500;
}

/* ----- Comparison table ----- */
.pricing-comparison {
  margin-bottom: 3rem;
}

.pricing-comparison__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.pricing-comparison__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.pricing-comparison__table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text);
}

.pricing-comparison__table th:first-child {
  border-radius: var(--radius) 0 0 0;
}

.pricing-comparison__table th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

.pricing-comparison__table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.pricing-comparison__table td:first-child {
  color: var(--color-text);
  font-weight: 500;
}

.pricing-comparison__table td strong {
  color: var(--color-accent);
}

.pricing-comparison__table tr:last-child td {
  border-bottom: none;
}

.pricing-comparison__table tr:hover td {
  background: var(--color-bg);
}

/* ----- FAQ ----- */
.pricing-faq {
  border-top: 1px solid var(--color-border);
  padding-top: 2.5rem;
}

.pricing-faq__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1.5rem;
}

.pricing-faq__item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.pricing-faq__item:last-child {
  border-bottom: none;
}

.pricing-faq__question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.pricing-faq__answer {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ----- Print styles ----- */
@media print {
  .btn,
  .back-link,
  .filter-bar,
  .form,
  .site-sidebar,
  .action-bar {
    display: none !important;
  }
  
  .comparison-table .table__header--sticky,
  .comparison-table .table__cell--sticky {
    position: static !important;
  }
}

/* =========================================================
   Landing page sections
   ========================================================= */

.landing {
  width: 100%;
}

/* ----- Hero ----- */
.landing-hero {
  background: linear-gradient(160deg, #f0fdf9 0%, #f8fafc 60%);
  border-bottom: 1px solid var(--color-border);
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
}

.landing-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.landing-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text);
  margin: 0 0 1.25rem;
}

.landing-hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.landing-hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.landing-hero__hint {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.landing-hero__subtitle-pro {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ----- Social proof strip ----- */
.landing-proof {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.landing-proof__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-proof__stat {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

.landing-proof__stat strong {
  color: var(--color-text);
}

/* ----- Features grid ----- */
.landing-features {
  padding: 5rem 1.5rem;
  background: var(--color-bg);
}

.landing-features__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.landing-features__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 0.625rem;
  color: var(--color-accent);
}

.landing-features__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.landing-features__lede {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.landing-features__pro-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
  margin: 3rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.landing-features__pro-lede {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

.landing-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.landing-features__grid--pro {
  gap: 1.25rem;
}

.landing-feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.landing-feature--pro {
  opacity: 0.92;
  background: var(--color-bg);
  box-shadow: none;
  border-style: dashed;
  padding: 1.375rem 1.5rem;
}

.landing-feature--pro .landing-feature__icon {
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
}

.landing-feature--pro .landing-feature__title {
  font-size: 1rem;
}

.landing-feature--pro .landing-feature__body {
  font-size: 0.875rem;
  line-height: 1.55;
}

.landing-feature__icon {
  font-size: 1.75rem;
  margin-bottom: 0.875rem;
  line-height: 1;
}

.landing-feature__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.landing-feature__body {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ----- How it works ----- */
.landing-how {
  padding: 5rem 1.5rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.landing-how__inner {
  max-width: 780px;
  margin: 0 auto;
}

.landing-how__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
  margin: 0 0 3rem;
  color: var(--color-text);
}

.landing-how__steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.landing-how__step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.landing-how__step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.landing-how__step-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.375rem;
}

.landing-how__step-content p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ----- Receipt demo ----- */
.landing-demo {
  padding: 5rem 1.5rem;
  background: linear-gradient(160deg, #f0fdf9 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--color-border);
}

.landing-demo--pro-secondary {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.landing-demo__plan-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
}

.landing-demo__inner {
  max-width: 780px;
  margin: 0 auto;
}

.landing-demo__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.landing-demo__intro {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.landing-demo__steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.landing-demo__step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.landing-demo__step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.landing-demo__step div {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.landing-demo__step strong {
  color: var(--color-text);
}

.landing-demo__cash-note {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0 0 2rem;
  font-style: italic;
}

.landing-demo__cta {
  text-align: center;
}

/* ----- Pricing teaser ----- */
.landing-pricing {
  padding: 5rem 1.5rem;
  background: var(--color-bg);
}

.landing-pricing__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.landing-pricing__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.landing-pricing__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin: 0 0 2.5rem;
}

.landing-pricing__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.landing-pricing__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: left;
  position: relative;
  box-shadow: var(--shadow);
}

.landing-pricing__card--featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-md);
}

.landing-pricing__card--secondary {
  border-style: dashed;
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
  opacity: 0.95;
}

.landing-pricing__card--secondary .landing-pricing__price {
  font-size: 2rem;
}

.landing-pricing__optional-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 0.375rem;
}

.landing-pricing__trial-muted {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.landing-pricing__badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 99px;
  margin-bottom: 0.875rem;
  letter-spacing: 0.02em;
}

.landing-pricing__badge--free {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.landing-pricing__card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.landing-pricing__price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.landing-pricing__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0;
}

.landing-pricing__per-unit {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}

.landing-pricing__card ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.landing-pricing__card li {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  padding-left: 1.375rem;
  position: relative;
}

.landing-pricing__card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.landing-pricing__compare {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

.landing-pricing__compare a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.landing-pricing__compare a:hover {
  text-decoration: underline;
}

/* ----- Final CTA ----- */
.landing-cta {
  padding: 5rem 1.5rem;
  background: #1e293b;
  text-align: center;
}

.landing-cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.landing-cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #f1f5f9;
  margin: 0 0 0.75rem;
}

.landing-cta__subtitle {
  font-size: 1.0625rem;
  color: #94a3b8;
  margin: 0 0 2rem;
}

/* ----- Landing footer (secondary links) ----- */
.landing-footer {
  padding: 1.75rem 1.5rem 2.25rem;
  background: #1e293b;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.landing-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-footer__nav {
  display: flex;
  justify-content: center;
}

.landing-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.75rem;
}

.landing-footer__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}

.landing-footer__link:hover {
  color: #f1f5f9;
}

.landing-footer__meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.landing-footer__copyright {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

.landing-footer__policy-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.landing-footer__policy-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}

.landing-footer__policy-link:hover {
  color: #f1f5f9;
  text-decoration: underline;
}

.landing-footer__policy-sep {
  color: #475569;
  font-size: 0.75rem;
  user-select: none;
}

/* ----- Careers page ----- */
.careers-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}

.careers-hero {
  padding: 2rem 0 1.5rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border);
}

.careers-hero__breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.careers-hero__breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.careers-hero__breadcrumb a:hover {
  text-decoration: underline;
}

.careers-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}

.careers-hero__lead {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 40rem;
}

.careers-showcase {
  padding: 1.75rem 0 2rem;
}

.careers-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.careers-showcase__card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.careers-showcase__card:hover {
  box-shadow: var(--shadow-md);
}

.careers-showcase__image {
  width: 100%;
  height: auto;
  display: block;
}

.careers-showcase__caption {
  padding: 1rem 1.125rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.careers-showcase__caption strong {
  font-size: 0.9375rem;
  color: var(--color-text);
  font-weight: 600;
}

.careers-page__content {
  padding-top: 0;
}

.careers-openings {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--color-bg) 0%, #f0fdfa 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.careers-openings__status {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}

.careers-openings__note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

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

/* ----- Button size variants for landing ----- */
.btn--lg {
  padding: 0.75rem 1.75rem;
  font-size: 1.0625rem;
}

.btn--block {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ----- Responsive: keep compact nav; mega-menu hidden on small screens ----- */
@media (max-width: 640px) {
  .public-nav__links {
    flex: 1;
    justify-content: center;
    gap: 0.125rem;
  }

  .landing-features__grid {
    grid-template-columns: 1fr;
  }

  .landing-pricing__cards {
    grid-template-columns: 1fr;
  }

  .landing-how__step {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ----- Renter app shell ----- */
.site-body--renter .renter-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.renter-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.renter-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.renter-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.0625rem;
}

.renter-brand__icon {
  border-radius: 6px;
}

.renter-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.renter-nav__link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.renter-nav__link:hover {
  color: var(--color-accent);
}

.renter-nav__link--current {
  color: var(--color-accent);
}

.renter-nav__signout {
  appearance: none;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

.renter-nav__signout:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.renter-main {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  width: 100%;
  box-sizing: border-box;
}

.renter-home__title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.renter-home__lead {
  color: var(--color-text-muted);
  margin: 0;
  max-width: 42rem;
}

.form__fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.form__radio-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.375rem;
}

.form__radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  cursor: pointer;
}

/* Hotwire Native placeholder screens (minimal launch + deep-link docs) */
.native-placeholder-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
}

.native-placeholder {
  text-align: center;
  padding: 2rem;
}

.native-placeholder__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.native-placeholder__lead {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.5;
  max-width: 44rem;
}

.native-placeholder__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
}
