/*
 * 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;
}

.site-nav__link--with-badge {
  position: relative;
  padding-right: 2.35rem;
}

.site-nav__badge {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
  box-shadow: 0 0 0 2px #0f172a;
}

/* ----- 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__org {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}

.site-sidebar__org-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.site-sidebar__org:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-sidebar__org-name {
  font-size: 0.8125rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.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;
}

/* Sidebar footer: switch between landlord / renter / superadmin areas */
.site-sidebar__role-switches {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.site-sidebar__role-switch {
  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;
  transition: color 0.15s, background 0.15s;
}

.site-sidebar__role-switch:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

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

.site-sidebar__role-switch--landlord {
  color: #93c5fd;
}

.site-sidebar__role-switch--renter {
  color: #86efac;
}

.site-sidebar__role-switch--superadmin {
  color: #c4b5fd;
}

/* ----- 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-page__muted-inline {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 0.25rem;
  white-space: nowrap;
}

.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;
}

/* ----- Tenant section color scheme (blue theme) ----- */
.site-body--tenant .site-sidebar--tenant {
  background: #1e3a8a;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.site-body--tenant .site-nav__link--current {
  background: #3b82f6;
  color: #ffffff;
}

.site-body--tenant .site-nav__link--current:hover {
  background: #60a5fa;
  color: #ffffff;
}

.site-body--tenant .site-sidebar__avatar-placeholder {
  background: rgba(147, 197, 253, 0.25);
  color: #dbeafe;
}

/* ----- Renter section color scheme (teal theme) ----- */
.site-body--renter .site-sidebar--renter {
  background: #134e4a;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.site-body--renter .site-nav__link--current {
  background: #14b8a6;
  color: #ffffff;
}

.site-body--renter .site-nav__link--current:hover {
  background: #2dd4bf;
  color: #ffffff;
}

.site-body--renter .site-sidebar__avatar-placeholder {
  background: rgba(94, 234, 212, 0.2);
  color: #ccfbf1;
}

.site-main--renter {
  max-width: 960px;
}

/* ----- Tenant page styles ----- */
.tenant-page__title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.rental-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.rental-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.rental-card:hover {
  box-shadow: var(--shadow);
}

.rental-card--inactive {
  opacity: 0.75;
}

.rental-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.rental-card__property-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text);
}

.rental-card__badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rental-card__badge--active {
  background: var(--color-success-bg);
  color: var(--color-success);
}

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

.rental-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rental-card__detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-text);
  line-height: 1.5;
}

.rental-card__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--color-text-muted);
  margin-top: 0.125rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 32rem;
  margin: 2rem auto;
}

.empty-state__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  color: var(--color-text-muted);
  opacity: 0.5;
}

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

.empty-state__message {
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

.content-section {
  margin-bottom: 3rem;
}

.content-section__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.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__value-detail {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-left: 0.25rem;
  white-space: nowrap;
}

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

.superadmin-funnel-filters {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.superadmin-funnel-form {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.superadmin-funnel-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.superadmin-funnel-form__input {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.9375rem;
  background: var(--color-bg, #f9fafb);
  transition: border-color 0.15s ease;
}

.superadmin-funnel-form__input:focus {
  outline: none;
  border-color: var(--color-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.superadmin-funnel-form__submit {
  padding: 0.625rem 1.25rem;
  background: var(--color-primary, #2563eb);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.superadmin-funnel-form__submit:hover {
  background: var(--color-primary-dark, #1d4ed8);
}

.superadmin-funnel {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.superadmin-funnel__step {
  width: 100%;
  max-width: 40rem;
  background: var(--color-surface, #fff);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.superadmin-funnel__step--final {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #10b981;
}

.superadmin-funnel__step-content {
  text-align: center;
}

.superadmin-funnel__step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.superadmin-funnel__step-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.superadmin-funnel__step-description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.superadmin-funnel__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  color: var(--color-text-muted);
}

.superadmin-funnel__arrow-icon {
  width: 2rem;
  height: 2rem;
  opacity: 0.5;
}

.superadmin-funnel__conversion-rate {
  margin-top: 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary, #2563eb);
}

.superadmin-page__actions {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.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;
}

/* Role dashboard CTAs — match each app sidebar shell */
.public-nav__landlord-dashboard,
.public-nav__renter-dashboard,
.public-nav__superadmin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #ffffff;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

/* Landlord — slate sidebar (#1e293b) + teal active nav (--color-accent) */
.public-nav__landlord-dashboard {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 10px rgba(30, 41, 59, 0.32);
}

.public-nav__landlord-dashboard:hover {
  color: #ffffff;
  background: var(--color-accent);
  border-color: var(--color-accent-hover);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.4);
  transform: translateY(-1px);
}

/* Renter — teal sidebar (#134e4a / #14b8a6) */
.public-nav__renter-dashboard {
  background: #134e4a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 10px rgba(19, 78, 74, 0.32);
}

.public-nav__renter-dashboard:hover {
  color: #ffffff;
  background: #14b8a6;
  border-color: #2dd4bf;
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.4);
  transform: translateY(-1px);
}

/* Superadmin — purple sidebar (#3b0764 / #7c3aed) */
.public-nav__superadmin {
  background: #3b0764;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(59, 7, 100, 0.32);
}

.public-nav__superadmin:hover {
  color: #ffffff;
  background: #7c3aed;
  border-color: #8b5cf6;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
}

.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, Coming soon) */
.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 blog ----- */
.blog-index {
  width: 100%;
}

.blog-index__hero {
  background: linear-gradient(165deg, #ecfdf5 0%, #f8fafc 55%, #f1f5f9 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 2.75rem 1.5rem 2.5rem;
}

.blog-index__hero-inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.blog-index__breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

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

.blog-index__breadcrumb a:hover {
  text-decoration: underline;
}

.blog-index__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--color-text);
}

.blog-index__lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.blog-index__body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
}

.blog-index__filters {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(15, 118, 110, 0.03) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .blog-index__filters {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}

.blog-index__filters-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.blog-index__filters-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-index__filter-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.blog-index__filter-tag:hover {
  border-color: rgba(15, 118, 110, 0.4);
  background: rgba(15, 118, 110, 0.05);
  color: var(--color-text);
}

.blog-index__filter-tag.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

.blog-index__filter-tag.active:hover {
  background: rgba(15, 118, 110, 0.9);
  border-color: rgba(15, 118, 110, 0.9);
}

.blog-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.blog-index__card {
  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);
  padding: 1.35rem 1.4rem 1.25rem;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.blog-index__card:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.blog-index__card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.blog-index__date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.blog-index__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.blog-index__pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  line-height: 1.2;
}

.blog-index__card-title {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.blog-index__card-title-link {
  color: var(--color-text);
  text-decoration: none;
}

.blog-index__card-title-link:hover {
  color: var(--color-accent);
}

.blog-index__excerpt {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.blog-index__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  width: fit-content;
}

.blog-index__read-more:hover {
  text-decoration: underline;
}

.blog-index__read-more-arrow {
  transition: transform 0.15s ease;
}

.blog-index__read-more:hover .blog-index__read-more-arrow {
  transform: translateX(3px);
}

.blog-index__help {
  margin-top: 2.25rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(99, 102, 241, 0.06) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.blog-index__help-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .blog-index__help-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }
}

.blog-index__help-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.blog-index__help-text strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ----- Blog article (/blog/:slug) ----- */
.blog-post {
  width: 100%;
}

.blog-post__hero {
  background: linear-gradient(165deg, #ecfdf5 0%, #f8fafc 55%, #f1f5f9 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 2.25rem 1.5rem 2rem;
}

.blog-post__hero-inner {
  max-width: 44rem;
  margin: 0 auto;
}

.blog-post__breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

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

.blog-post__breadcrumb a:hover {
  text-decoration: underline;
}

.blog-post__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
}

.blog-post__date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.blog-post__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.blog-post__pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  line-height: 1.2;
}

.blog-post__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--color-text);
}

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

.blog-post__layout {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
}

.blog-post__sheet {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  padding: 1.75rem 1.5rem 2rem;
}

@media (min-width: 640px) {
  .blog-post__sheet {
    padding: 2rem 2.25rem 2.25rem;
  }
}

.blog-post__section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.blog-post__section--first {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.blog-post__section-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  padding-left: 0.85rem;
  border-left: 3px solid rgba(15, 118, 110, 0.65);
  line-height: 1.35;
}

.blog-post__prose {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--color-text);
}

.blog-post__prose:last-child {
  margin-bottom: 0;
}

.blog-post__footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.blog-post__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.blog-post__back:hover {
  text-decoration: underline;
}

.blog-post__back-arrow {
  transition: transform 0.15s ease;
}

.blog-post__back:hover .blog-post__back-arrow {
  transform: translateX(-3px);
}

/* ----- Blog post related resources ----- */
.blog-post__related {
  margin: 2.5rem 0;
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.blog-post__related-calculators {
  margin: 2.5rem 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(165deg, #f0fdfa 0%, #ffffff 100%);
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.blog-post__related-title {
  margin: 0 0 1.5rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.3;
}

.blog-post__related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.blog-post__related-item {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.blog-post__related-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.3);
}

.blog-post__related-item h3 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-text);
  line-height: 1.4;
}

.blog-post__related-item p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.blog-post__related-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

.blog-post__related-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* ----- Blog social share ----- */
.blog-social-share {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.blog-social-share__heading {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.blog-social-share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.blog-social-share__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.blog-social-share__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-social-share__button--x:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.blog-social-share__button--facebook:hover {
  background: #1877F2;
  color: #ffffff;
  border-color: #1877F2;
}

.blog-social-share__button--linkedin:hover {
  background: #0A66C2;
  color: #ffffff;
  border-color: #0A66C2;
}

.blog-social-share__button--email:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.blog-social-share__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .blog-social-share__buttons {
    flex-direction: column;
  }
  
  .blog-social-share__button {
    width: 100%;
    justify-content: center;
  }
}

/* ----- Calculator social share ----- */
.calculator-social-share {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.calculator-social-share__heading {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.calculator-social-share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.calculator-social-share__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.calculator-social-share__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calculator-social-share__button--x:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.calculator-social-share__button--facebook:hover {
  background: #1877F2;
  color: #ffffff;
  border-color: #1877F2;
}

.calculator-social-share__button--linkedin:hover {
  background: #0A66C2;
  color: #ffffff;
  border-color: #0A66C2;
}

.calculator-social-share__button--email:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.calculator-social-share__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .calculator-social-share__buttons {
    flex-direction: column;
  }
  
  .calculator-social-share__button {
    width: 100%;
    justify-content: center;
  }
}


/* ----- Blog guide pages (e.g. listing sync help) ----- */
.blog-guide {
  width: 100%;
}

.blog-guide__hero {
  background: linear-gradient(165deg, #ecfdf5 0%, #f8fafc 55%, #f1f5f9 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 2.25rem 1.5rem 2rem;
}

.blog-guide__hero-inner {
  max-width: 44rem;
  margin: 0 auto;
}

.blog-guide__breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

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

.blog-guide__breadcrumb a:hover {
  text-decoration: underline;
}

.blog-guide__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 4.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--color-text);
}

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

.blog-guide__body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
}

.blog-guide__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
  align-items: start;
}

.blog-guide__panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.4rem 1.35rem;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.blog-guide__panel:hover {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.07);
}

.blog-guide__panel--wide {
  grid-column: 1 / -1;
}

.blog-guide__panel-title {
  margin: 0 0 0.85rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--color-border);
}

.blog-guide__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.blog-guide__list li {
  margin: 0.4rem 0;
}

.blog-guide__list li::marker {
  color: rgba(15, 118, 110, 0.75);
}

.blog-guide__prose {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--color-text-muted);
}

.blog-guide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.blog-guide__faq {
  margin: 0;
  padding: 0;
}

.blog-guide__faq-question {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.blog-guide__faq-question:first-of-type {
  margin-top: 0;
}

.blog-guide__faq-answer {
  margin: 0 0 0.5rem;
  padding-left: 0;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--color-text-muted);
}

/* ----- 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;
  display: flex;
  flex-direction: column;
}

.vacancy-page__section--below-photos {
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.vacancy-page__gallery-header {
  flex-shrink: 0;
  margin-bottom: 0.625rem;
}

.vacancy-page__gallery-header .vacancy-page__eyebrow {
  margin: 0;
}

.vacancy-page__title--over-photos {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.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__hero-image-wrap--carousel {
  position: relative;
}

.vacancy-page__gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.vacancy-page__gallery-btn:hover {
  background: rgba(15, 23, 42, 0.78);
}

.vacancy-page__gallery-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.vacancy-page__gallery-btn--prev {
  left: 0.5rem;
}

.vacancy-page__gallery-btn--next {
  right: 0.5rem;
}

.vacancy-page__gallery-counter {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.vacancy-page__thumb-strip {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vacancy-page__thumb-btn {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  line-height: 0;
  opacity: 0.88;
  transition: opacity 0.15s, border-color 0.15s;
}

.vacancy-page__thumb-btn:hover {
  opacity: 1;
}

.vacancy-page__thumb-btn--current {
  border-color: var(--color-accent);
  opacity: 1;
}

.vacancy-page__thumb-btn-image {
  width: 72px;
  height: 56px;
  object-fit: cover;
  display: block;
}

.vacancy-page__specs {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
}

.vacancy-page__specs li {
  margin: 0;
}

.vacancy-page__inquiry-lede {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
}

.vacancy-page__inquiry-form .form__row {
  margin-bottom: 0.75rem;
}

.vacancy-page__inquiry-errors {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.875rem;
}

.data-table__row--muted td {
  color: var(--color-text-muted);
}

.vacancy-inquiry-detail {
  padding: 1.25rem 1.375rem;
}

.vacancy-inquiry-detail__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

.vacancy-inquiry-detail__meta dt {
  margin: 0;
  color: var(--color-text-muted);
  font-weight: 500;
}

.vacancy-inquiry-detail__meta dd {
  margin: 0;
}

.vacancy-inquiry-detail__label {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vacancy-inquiry-detail__text {
  line-height: 1.65;
}

.vacancy-inquiry-detail__hint {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
}

.vacancy-inquiry-detail__tel {
  font-weight: 600;
}

.vacancy-inquiry-table__contact {
  font-size: 0.875rem;
  line-height: 1.45;
  max-width: 14rem;
}

.vacancy-inquiry-table__email,
.vacancy-inquiry-table__phone {
  display: block;
}

.vacancy-inquiry-table__phone {
  margin-top: 0.2rem;
}

.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-block {
  margin-top: 0.25rem;
}

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

.vacancy-page__map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.vacancy-page__map-link:hover {
  text-decoration: underline;
}

.vacancy-page__map-link-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.vacancy-page__rent {
  margin: 0.75rem 0 0;
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.vacancy-page__availability {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
}

.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__panel--after-tracker {
  margin-top: 1.25rem;
}

.app-status-tracker {
  text-align: left;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.app-status-tracker__heading {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.app-status-tracker__current {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.app-status-tracker__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app-status-tracker__step {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.5rem;
  border-left: 2px solid var(--color-border);
  margin-left: 0.5rem;
}

.app-status-tracker__step:last-child {
  border-left-color: transparent;
}

.app-status-tracker__step--complete {
  border-left-color: color-mix(in srgb, #16a34a 45%, var(--color-border));
}

.app-status-tracker__step--current {
  border-left-color: var(--color-accent);
}

.app-status-tracker__step--current .app-status-tracker__step-label {
  color: var(--color-accent);
  font-weight: 700;
}

.app-status-tracker__step--upcoming {
  opacity: 0.65;
}

.app-status-tracker__step-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.app-status-tracker__step-hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

.app-status-tracker__step-hint--success {
  color: #15803d;
  font-weight: 600;
}

.app-status-tracker__step-hint--muted {
  color: var(--color-text-muted);
}

.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 show — listing photos album (#property-listing-photos) ----- */
.property-listing-photos__album {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.property-listing-photos__hero-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #e2e8f0;
  min-height: 200px;
}

.property-listing-photos__hero-image {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 380px;
}

.property-listing-photos__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.property-listing-photos__nav:hover {
  background: rgba(15, 23, 42, 0.78);
}

.property-listing-photos__nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.property-listing-photos__nav--prev {
  left: 0.5rem;
}

.property-listing-photos__nav--next {
  right: 0.5rem;
}

.property-listing-photos__counter {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

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

.property-listing-photos__thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  line-height: 0;
  opacity: 0.88;
  transition: opacity 0.15s, border-color 0.15s;
}

.property-listing-photos__thumb:hover {
  opacity: 1;
}

.property-listing-photos__thumb--current {
  border-color: var(--color-accent);
  opacity: 1;
}

.property-listing-photos__thumb-image {
  width: 72px;
  height: 56px;
  object-fit: cover;
  display: block;
}

.property-listing-photos__single {
  margin: 1.25rem 0 0;
}

.property-listing-photos__single-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  border: 1px solid var(--color-border);
}

/* ----- Property show — units in building (#property-units) ----- */
#property-units {
  scroll-margin-top: 5.5rem;
}

#property-units .property-units__intro {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  line-height: 1.55;
}

#property-units .property-units__add {
  padding: 1.25rem 1.375rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

#property-units .property-units__add .btn.btn-primary {
  margin-top: 0.25rem;
}

.property-units-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.property-unit-card {
  padding: 1.125rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.property-unit-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.property-unit-card__identity {
  flex: 1;
  min-width: min(100%, 12rem);
}

.property-unit-card__label {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.property-unit-card__details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.25rem;
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.property-unit-card__sep {
  color: var(--color-text-muted);
  user-select: none;
}

.property-unit-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.property-unit-card__actions form {
  display: inline;
}

.property-unit-card__status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.property-unit-card__occupancy {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.property-unit-card__occupancy form {
  display: inline;
}

/* ----- Landlord property show (/properties/:id) ----- */
.property-show {
  max-width: 72rem;
  margin-inline: auto;
  width: 100%;
}

.property-show .page-header {
  margin-bottom: 1.25rem;
}

.page-header__breadcrumb {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-header__breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ~60% / ~30% track ratio (6fr : 3fr), gap uses remaining space */
.property-show__columns {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr);
  gap: 1.5rem;
  align-items: start;
}

.property-show__column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

@media (max-width: 960px) {
  .property-show__columns {
    grid-template-columns: 1fr;
  }
}

.property-show > .page-content {
  gap: 1.25rem;
}

.property-show__archived-banner {
  margin: 0 !important;
  text-align: left;
}

#property-occupancy {
  scroll-margin-top: 1rem;
}

#property-contacts-overview {
  scroll-margin-top: 1rem;
}

.property-show .property-occupancy__status {
  margin: 0;
  padding: 0.875rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.property-show .property-occupancy__available {
  margin: 0.75rem 0 0;
  padding: 0.625rem 0.875rem;
  background: var(--color-success-bg);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  color: #065f46;
  font-size: 0.875rem;
  line-height: 1.45;
}

.property-show .property-occupancy__pipeline-summary {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.property-show .property-occupancy__hint {
  margin-top: 1rem;
}

.property-show .property-occupancy__actions {
  margin-top: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.property-show .property-occupancy__actions form {
  display: inline;
}

.property-onboarding__intro {
  margin: 0 0 0.25rem;
}

.property-show .property-onboarding-checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}

.property-show .property-onboarding-checklist .onboarding-item {
  display: flex;
  gap: 0.625rem;
  align-items: baseline;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.property-show .property-onboarding-checklist .onboarding-item:last-child {
  border-bottom: none;
}

.property-show .onboarding-item--done {
  color: var(--color-text-muted);
}

.property-show .onboarding-item--done .onboarding-item__mark {
  color: var(--color-success);
  font-weight: 700;
}

.property-show .onboarding-item--pending .onboarding-item__mark {
  color: var(--color-text-muted);
}

.property-show .onboarding-item--blocker {
  background: var(--color-danger-bg, #fef2f2);
}

.property-show .onboarding-item--blocker .onboarding-item__mark {
  color: var(--color-danger, #dc2626);
  font-weight: 700;
}

.property-show .onboarding-item__content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.property-show .onboarding-item__fix {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.property-show .onboarding-item__help-link {
  color: var(--color-accent);
  text-decoration: none;
  margin-left: 0.25rem;
}

.property-show .onboarding-item__help-link:hover {
  text-decoration: underline;
}

.property-onboarding__footer {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.property-show .property-compliance-flag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.property-show .property-compliance-flag {
  margin: 0;
  padding: 0.875rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-left: 4px solid #f59e0b;
}

.property-show .property-compliance-flag__title {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.property-show .property-compliance-flag__body {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.property-compliance__footer {
  margin-top: 1rem;
}

.property-show__upload-panel {
  padding: 1.125rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.property-show__upload-panel .form__group:last-of-type {
  margin-bottom: 0;
}

.property-show__inline-form {
  padding: 1.125rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.property-show__inline-form .form__group:last-of-type {
  margin-bottom: 0.75rem;
}

.property-contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.property-contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.property-contact-card__info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  flex: 1;
  min-width: 0;
}

.property-contact-card__actions {
  display: flex;
  flex-shrink: 0;
  margin-left: auto;
}

.property-contact-card__role {
  font-weight: 600;
  color: var(--color-text);
}

.property-contact-card__name {
  color: var(--color-text);
}

.property-contact-card__email,
.property-contact-card__phone {
  flex: 1 1 100%;
  font-size: 0.875rem;
  word-break: break-word;
}

@media (min-width: 32rem) {
  .property-contact-card__email,
  .property-contact-card__phone {
    flex: 0 1 auto;
  }
}

.property-map__intro {
  margin: 0 0 0.75rem;
}

.property-map__coords-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.property-map__coords-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.property-map__coords {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--color-text);
  word-break: break-all;
  line-height: 1.4;
}

.property-map__display-name {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
}

.property-map__actions {
  margin: 0;
}

.property-listing-description__body {
  padding: 1.25rem 1.75rem 1.5rem;
}

.property-listing-description__unit {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.property-listing-description__unit:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.property-listing-description__unit-title {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.property-listing-description__unit-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
}

.property-listing-description__unit-body p {
  margin: 0 0 0.65rem;
}

.property-listing-description__unit-body p:last-child {
  margin-bottom: 0;
}

.property-marketing-links__intro {
  margin: 0 0 1rem;
  max-width: 40rem;
}

.property-marketing-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.property-marketing-links__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.property-marketing-links__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.875rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.property-marketing-links__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.property-marketing-links__url {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  word-break: break-all;
  line-height: 1.45;
}

.property-marketing-links__url:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.property-manual-channels__intro {
  margin: 0 0 1rem;
  max-width: 40rem;
}

.property-manual-channels__unit-heading {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.8125rem;
}

.property-manual-channels__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.property-manual-channel {
  padding: 0.875rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.property-manual-channel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.property-manual-channel__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.property-marketing-readiness {
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--color-warning, #f59e0b);
  background: var(--color-warning-bg, #fffbeb);
}

.property-marketing-readiness--blocked {
  border-left-color: var(--color-danger, #dc2626);
  background: var(--color-danger-bg, #fef2f2);
}

.property-marketing-readiness__title {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.property-manual-channel__btn--posted {
  color: var(--color-success, #15803d);
}

.property-manual-channel__steps {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.property-manual-channel__steps a {
  color: var(--color-accent);
  text-decoration: none;
}

.property-manual-channel__steps a:hover {
  text-decoration: underline;
}

.property-marketing-readiness__lede {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
}

.property-marketing-readiness__list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.property-marketing-readiness__item {
  font-size: 0.8125rem;
  color: var(--color-text);
  line-height: 1.5;
}

.property-show .property-rent-comparison {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.property-show .property-rent-comparison__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.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;
}

/* Marketing / renter feature item pages — multi-paragraph lead (simple_format) */
.page-content__lead--formatted {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
}

.page-content__lead--formatted > p {
  margin: 0 0 1rem;
}

.page-content__lead--formatted > p:last-child {
  margin-bottom: 0;
}

/* Long-form marketing copy — calm reading column (e.g. tenant messaging) */
.marketing-feature-prose {
  max-width: 38rem;
  margin: 0 auto;
}

.marketing-feature-prose p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.marketing-feature-prose p:last-child {
  margin-bottom: 0;
}

.marketing-feature-prose > p:first-of-type {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--color-text);
}

.marketing-feature-prose p.marketing-feature-prose__muted {
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

/* Public marketing feature / section pages (Features, For renters) */
.page-header--public,
.page-content--public {
  box-sizing: border-box;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.page-header--public {
  margin-top: 1.5rem;
}

.page-content--public {
  padding-bottom: 3rem;
}

.page-content--public .page-content__lead--formatted {
  width: 100%;
  max-width: clamp(20rem, 50%, 44rem);
  margin-left: auto;
  margin-right: auto;
}

.page-content--public .page-content__lead--formatted .marketing-feature-prose {
  max-width: none;
  margin: 0;
}

.page-content--public .marketing-feature-prose {
  max-width: clamp(20rem, 50%, 44rem);
}

.page-content--public .card__body > .card__title {
  width: 100%;
  max-width: clamp(20rem, 50%, 44rem);
  margin: 2.5rem auto 0;
  text-align: center;
}

.page-content--public .page-content__benefits {
  list-style: none;
  width: 100%;
  max-width: clamp(20rem, 50%, 44rem);
  margin: 1.25rem auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.page-content--public .page-content__benefits > li {
  margin: 0;
  padding: 0;
}

.page-content--public .marketing-feature-section__item-link {
  display: inline-block;
  text-decoration: none;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.5;
  transition: color 0.15s;
}

.page-content--public .marketing-feature-section__item-link:hover {
  color: var(--color-accent);
}

.page-content--public .marketing-feature-section__item-link strong {
  font-weight: 600;
}

.page-content--public .page-content__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: clamp(20rem, 50%, 44rem);
  margin: 2rem auto 0;
}

.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--waitlist {
  background: #e0e7ff;
  color: #3730a3;
}

.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__group display:flex overrides the [hidden] attribute in some browsers */
.form__group[hidden],
.property-unit-select__unit-group--hidden {
  display: none !important;
}

.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--waitlist.filter-btn--active {
  background: #4f46e5;
  border-color: #4f46e5;
}

.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;
}

.applicant-header__info span {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.applicant-header__subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  font-weight: 400;
  margin: 0.5rem 0 1rem 0;
}

/* Guidance panel */
.guidance-panel {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
  border: 1px solid #99f6e4;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.guidance-panel__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f766e;
  margin: 0 0 1rem 0;
}

.guidance-panel__title-icon {
  flex-shrink: 0;
}

.guidance-panel__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guidance-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid #d1fae5;
}

.guidance-item--high {
  border-color: #fbbf24;
  background: #fffbeb;
}

.guidance-item--medium {
  border-color: #93c5fd;
  background: #eff6ff;
}

.guidance-item--positive {
  border-color: #86efac;
  background: #f0fdf4;
}

.guidance-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0fdfa;
  border-radius: 8px;
  color: #0f766e;
}

.guidance-item--high .guidance-item__icon {
  background: #fef3c7;
  color: #d97706;
}

.guidance-item--medium .guidance-item__icon {
  background: #dbeafe;
  color: #2563eb;
}

.guidance-item--positive .guidance-item__icon {
  background: #d1fae5;
  color: #059669;
}

.guidance-item__content {
  flex: 1;
}

.guidance-item__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.25rem 0;
}

.guidance-item__description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Landlord view notice */
.landlord-view-notice {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.landlord-view-notice svg {
  flex-shrink: 0;
  color: #2563eb;
}

.landlord-view-notice strong {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.landlord-view-notice p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Alert styles */
.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.alert--info {
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1e40af;
}

/* ----- 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;
}

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

/* ----- 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;
}

.alert--info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
}

.alert--info a {
  color: #1e40af;
  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__badge-inline {
  display: inline-block;
  background: var(--color-muted);
  color: var(--color-text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

.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__link--context {
  font-weight: 600;
  color: var(--color-text);
}

.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;
}

.renter-section {
  margin-top: 2rem;
}

.renter-section__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.renter-placement-list,
.renter-app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.renter-placement-card {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem 1.125rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.renter-placement-card__name {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.renter-placement-card__address,
.renter-placement-card__unit {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: 0.125rem 0 0;
}

.renter-placement-card__meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0.75rem 0 0;
}

.renter-placement-card__vacancy {
  margin-top: 0.5rem;
}

.renter-placement-card__vacancy-line {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

.renter-placement-card__vacancy-dates {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0.2rem 0 0;
}

.renter-placement-card__rent {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--color-border);
}

.renter-placement-card__rent-period {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin: 0 0 0.375rem;
}

.renter-placement-card__rent-amount {
  font-size: 0.9375rem;
  margin: 0 0 0.25rem;
}

.renter-placement-card__rent-status {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.renter-placement-card__late {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.renter-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.renter-tag--late {
  background: color-mix(in srgb, #dc2626 16%, transparent);
  color: #b91c1c;
}

.renter-household {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--color-border);
}

.renter-household__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
}

.renter-household__hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
  max-width: 36rem;
}

.renter-household__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.renter-household__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.875rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
}

.renter-household__row:last-child {
  border-bottom: none;
}

.renter-household__name {
  font-weight: 500;
}

.renter-household__email {
  color: var(--color-text-muted);
}

.renter-household__remove {
  appearance: none;
  margin-left: auto;
  border: none;
  background: none;
  color: var(--color-accent);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

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

.renter-household-form__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.renter-household-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 10rem;
  flex: 1 1 12rem;
}

.renter-household-form__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.renter-household-form__input {
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
}

.renter-app-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  background: var(--color-surface);
}

.renter-app-row__property {
  font-weight: 600;
}

.renter-app-row__sub {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
}

.renter-app-row__date {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  margin: 0.375rem 0 0;
}

.renter-app-row__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.renter-app-row__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
}

.renter-app-row__link:hover {
  text-decoration: underline;
}

.renter-app-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.renter-app-status--pending {
  background: color-mix(in srgb, var(--color-text-muted) 12%, transparent);
  color: var(--color-text-muted);
}

.renter-app-status--reviewed {
  background: color-mix(in srgb, var(--color-accent) 15%, transparent);
  color: var(--color-accent);
}

.renter-app-status--approved {
  background: color-mix(in srgb, #16a34a 18%, transparent);
  color: #15803d;
}

.renter-app-status--denied {
  background: color-mix(in srgb, #dc2626 14%, transparent);
  color: #b91c1c;
}

.renter-app-status--waitlist {
  background: color-mix(in srgb, #4f46e5 14%, transparent);
  color: #4338ca;
}

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

.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;
}

/* ----- Blog email signup ----- */
.blog-signup {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--color-accent-light, #ecfdf5);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.blog-signup__heading {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--color-text);
}

.blog-signup__lead {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.blog-signup__form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-signup__input {
  flex: 1 1 14rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.9375rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.blog-signup__button {
  padding: 0.5rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.blog-signup__button:hover {
  background: var(--color-accent-hover);
}

/* ----- Superadmin blog email badges ----- */
.superadmin-blog__badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.superadmin-blog__badge--sent {
  background: #dcfce7;
  color: #166534;
}

.superadmin-blog__badge--pending {
  background: #f1f5f9;
  color: var(--color-text-muted);
}

.superadmin-page__muted {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ----- Calculator page ----- */
.calculator-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.calculator-page__inner {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
}

.calculator-page__header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.calculator-page__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1rem 0;
}

.calculator-page__description {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.calculator-page__features {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.calculator-page__feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.calculator-page__feature-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

/* Calculator groups */
.calculator-group {
  margin-bottom: 3rem;
}

.calculator-group:last-child {
  margin-bottom: 0;
}

.calculator-group__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.calculator-group__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-accent-light);
  border-radius: var(--radius);
  color: var(--color-accent);
}

.calculator-group__icon svg {
  width: 24px;
  height: 24px;
}

.calculator-group__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

/* Calculator form */
.calculator-form {
  margin-bottom: 2rem;
}

.calculator-form__fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 1.5rem 0 0.75rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.form__section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.form__hint {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.375rem;
  line-height: 1.4;
}

.form__input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.form__input-prefix {
  position: absolute;
  left: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
  pointer-events: none;
}

.form__input--with-prefix {
  padding-left: 2rem;
}

.form__input-with-suffix {
  position: relative;
  display: flex;
  align-items: center;
}

.form__input-suffix {
  position: absolute;
  right: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
  pointer-events: none;
}

.form__input--with-suffix {
  padding-right: 2.5rem;
}

/* Calculator results */
.calculator-results {
  background: var(--color-accent-light);
  border: 1px solid #99f6e4;
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}

.calculator-results--error {
  background: var(--color-danger-bg);
  border-color: #fecaca;
}

.calculator-results__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 1.5rem 0;
}

.calculator-results__summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.calculator-results__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #a7f3d0;
}

.calculator-results__row:last-child {
  border-bottom: none;
}

.calculator-results__label {
  font-weight: 500;
  color: var(--color-text);
}

.calculator-results__value {
  font-weight: 600;
  color: var(--color-text);
}

.calculator-results__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-accent);
  color: white;
  padding: 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.calculator-results__total-label {
  font-size: 1.125rem;
  font-weight: 600;
}

.calculator-results__total-value {
  font-size: 1.75rem;
  font-weight: 700;
}

.calculator-results__explanation {
  background: white;
  padding: 1rem;
  border-radius: var(--radius);
}

.calculator-results__explanation p {
  margin: 0.5rem 0;
  color: var(--color-text);
  font-size: 0.9375rem;
}

.calculator-results__explanation p:first-child {
  margin-top: 0;
}

.calculator-results__explanation p:last-child {
  margin-bottom: 0;
}

.calculator-results__errors {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0;
  color: var(--color-danger);
}

/* DSCR Calculator specific styles */
.calculator-results__status {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  text-align: center;
}

.calculator-results__status-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.calculator-results__status-badge--excellent {
  background: #10b981;
  color: white;
}

.calculator-results__status-badge--good {
  background: #3b82f6;
  color: white;
}

.calculator-results__status-badge--acceptable {
  background: #f59e0b;
  color: white;
}

.calculator-results__status-badge--poor {
  background: #ef4444;
  color: white;
}

.calculator-results__status-message {
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.calculator-results__total-value--success {
  color: #10b981;
}

.calculator-results__total-value--warning {
  color: #f59e0b;
}

.calculator-results__value--positive {
  color: #10b981;
  font-weight: 600;
}

.calculator-results__value--negative {
  color: #ef4444;
  font-weight: 600;
}

.calculator-results__row--highlight {
  background: rgba(16, 185, 129, 0.1);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border-bottom: none;
  margin-bottom: 0.5rem;
}

.calculator-results__secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.calculator-results__secondary {
  background: white;
  padding: 1rem;
  border-radius: var(--radius);
}

.calculator-results__secondary-label {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.calculator-results__secondary-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.calculator-results__alternative {
  background: white;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

/* Income to Rent Calculator specific styles */
.calculator-results__income-table {
  margin-bottom: 1.5rem;
}

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

.income-requirements {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.income-requirement {
  background: white;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
}

.income-requirement__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.income-requirement__label {
  font-weight: 600;
  color: var(--color-text);
  font-size: 1rem;
}

.income-requirement__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.income-requirement__badge--pass {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.income-requirement__badge--fail {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.income-requirement__amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

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

.calculator-results__applicant-summary {
  background: white;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

.calculator-results__disclaimer {
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 1.25rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

.calculator-results__disclaimer h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.75rem 0;
}

.calculator-results__disclaimer p {
  font-size: 0.9375rem;
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .income-requirement__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .income-requirement__amount {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .calculator-results__secondary-grid {
    grid-template-columns: 1fr;
  }
}

/* Calculator info section */
.calculator-page__info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

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

.calculator-page__info p {
  color: var(--color-text-muted);
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.calculator-page__info-list {
  color: var(--color-text-muted);
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.calculator-page__info-list li {
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .calculator-page {
    padding: 1.5rem 1rem;
  }

  .calculator-page__inner {
    padding: 1.5rem;
  }

  .calculator-page__title {
    font-size: 1.5rem;
  }

  .calculator-results__total {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .calculator-results__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* Calculator index page */
.calculators-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.calculator-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.calculator-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.calculator-card__content {
  flex: 1;
}

.calculator-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #111827;
}

.calculator-card__description {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  color: #6b7280;
}

.calculator-card__arrow {
  flex-shrink: 0;
  margin-left: 1rem;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.calculator-card:hover .calculator-card__arrow {
  color: #3b82f6;
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .calculators-list {
    gap: 1rem;
  }

  .calculator-card {
    padding: 1rem;
  }

  .calculator-card__title {
    font-size: 1.125rem;
  }

  .calculator-card__description {
    font-size: 0.8125rem;
  }

  .calculator-group__title {
    font-size: 1.25rem;
  }
}

/* Blog companion posts section */
.calculator-page__blog-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e5e7eb;
}

.calculator-page__blog-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1.5rem 0;
}

.calculator-page__blog-grid {
  display: grid;
  gap: 1rem;
}

.calculator-page__blog-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.calculator-page__blog-card:hover {
  background: white;
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

.calculator-page__blog-content {
  flex: 1;
}

.calculator-page__blog-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.375rem 0;
  color: #111827;
  line-height: 1.4;
}

.calculator-page__blog-card-description {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  color: #6b7280;
}

.calculator-page__blog-arrow {
  flex-shrink: 0;
  margin-left: 1rem;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.calculator-page__blog-card:hover .calculator-page__blog-arrow {
  color: #10b981;
  transform: translateX(4px);
}

/* Related section */
.calculator-page__related {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e5e7eb;
}

.calculator-page__related-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1.5rem 0;
}

.calculator-page__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.calculator-page__related-item {
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.calculator-page__related-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.calculator-page__related-item p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6b7280;
  margin: 0 0 1rem 0;
}

.calculator-page__related-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.calculator-page__related-link:hover {
  color: #2563eb;
}

@media (max-width: 768px) {
  .calculator-page__related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .calculator-page__blog-section {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .calculator-page__related {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .calculator-page__blog-title,
  .calculator-page__related-title {
    font-size: 1.25rem;
  }

  .calculator-page__blog-card,
  .calculator-page__related-item {
    padding: 1rem;
  }
}

/* Button group */
.btn-group {
  display: inline-flex;
  border-radius: 0.375rem;
  overflow: hidden;
  border: 1px solid #d1d5db;
}

.btn-group .btn {
  border-radius: 0;
  border: none;
  border-right: 1px solid #d1d5db;
}

.btn-group .btn:last-child {
  border-right: none;
}

.btn-group .btn--active {
  background-color: #3b82f6;
  color: white;
}

.btn-group .btn--active:hover {
  background-color: #2563eb;
}

/* Map popup */
.map-popup__title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.map-popup__title a {
  color: #3b82f6;
  text-decoration: none;
}

.map-popup__title a:hover {
  text-decoration: underline;
}

.map-popup__address {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.map-popup__type {
  margin: 0;
  font-size: 0.8125rem;
  color: #9ca3af;
}

/* Properties map container */
#properties-map-container {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* ----- Renter payments ----- */
.renter-payments {
  max-width: 1000px;
  margin: 0 auto;
}

.renter-back-link {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
}

.renter-back-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.renter-payments__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1.5rem 0;
}

.renter-payments__property-info {
  background: var(--color-surface);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.renter-payments__property-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.25rem 0;
}

.renter-payments__property-address {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.renter-payments__lead {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.renter-payments-table-container {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

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

.renter-payments-table__header {
  background: #f8fafc;
  text-align: left;
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--color-border);
}

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

.renter-payments-table__row {
  border-bottom: 1px solid var(--color-border);
}

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

.renter-payments-table__row:hover {
  background: #f9fafb;
}

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

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

.renter-payments-table__notes {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.renter-payments__summary {
  background: var(--color-surface);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  text-align: right;
}

.renter-payments__summary-text {
  font-size: 1rem;
  color: var(--color-text);
  margin: 0;
}

.renter-payments__empty {
  background: var(--color-surface);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  text-align: center;
}

.renter-payments__empty p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 0.75rem auto;
}

.renter-payments__empty p:last-child {
  margin-bottom: 0;
}

/* ----- Renter Lease Details ----- */
.renter-lease-details {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}

.renter-lease-details__header {
  margin-bottom: 1.5rem;
}

.renter-lease-details__back-link {
  display: inline-block;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.renter-lease-details__back-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.renter-lease-details__title {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

.renter-lease-details__property {
  background: var(--color-surface);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.renter-lease-details__property-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
}

.renter-lease-details__property-address,
.renter-lease-details__unit {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: 0.25rem 0 0;
}

.renter-lease-card {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

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

.renter-lease-card__terms {
  display: grid;
  gap: 1.125rem;
  margin: 0;
}

.renter-lease-card__term {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.renter-lease-card__term:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.renter-lease-card__term-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin: 0;
}

.renter-lease-card__term-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  text-align: right;
}

.renter-lease-card__term-value--empty {
  color: var(--color-text-muted);
  font-weight: 400;
  font-style: italic;
}

.renter-lease-card__occupants {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.renter-lease-card__occupant {
  padding: 0.875rem;
  background: var(--color-bg);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.renter-lease-card__occupant-name {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.renter-lease-card__occupant-email,
.renter-lease-card__occupant-phone {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.125rem;
}

/* ===== E-Signature Modal and Status ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal__content {
  position: relative;
  max-width: 500px;
  margin: 100px auto;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 1001;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.modal__header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

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

.modal__body {
  padding: 1.5rem;
}

.modal__footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* Signature envelope status */
.property-document-item__signatures {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.property-document-item__signatures h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--color-text-muted);
}

.signature-envelope-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--color-bg);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

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

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

.status-badge--fully_executed {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.status-badge--voided {
  background: #f1f5f9;
  color: #475569;
  text-decoration: line-through;
}

.signature-envelope-recipient {
  color: var(--color-text);
}

.signature-envelope-date {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  margin-left: auto;
}

.btn--xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Screening transparency styles */
.screening-status {
  margin-bottom: 1rem;
}

.screening-explanation {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-left: 3px solid #3b82f6;
  border-radius: 4px;
  color: #334155;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.screening-results {
  margin-top: 1rem;
  padding: 1rem;
  background: #f0f9ff;
  border-radius: 6px;
  border: 1px solid #bae6fd;
}

.screening-results p:last-child {
  margin-bottom: 0;
}

/* ----- Landing page screenshot sections ----- */
.landing-screenshot {
  padding: 5rem 1.5rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

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

.landing-screenshot__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.landing-screenshot__title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.landing-screenshot__lede {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.landing-screenshot__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-bottom: 1.5rem;
}

.landing-screenshot__img {
  width: 100%;
  height: auto;
  display: block;
}

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

/* ----- Feature showcase with images ----- */
.landing-features__showcase {
  margin-bottom: 3rem;
}

.landing-feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.landing-feature-showcase--reverse {
  grid-template-columns: 1.2fr 1fr;
}

.landing-feature-showcase--reverse .landing-feature-showcase__content {
  order: 2;
}

.landing-feature-showcase--reverse .landing-feature-showcase__image {
  order: 1;
}

.landing-feature-showcase__content {
  padding: 1rem 0;
}

.landing-feature-showcase__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.landing-feature-showcase__image img {
  width: 100%;
  height: auto;
  display: block;
}

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

.landing-demo-video__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.landing-demo-video__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.landing-demo-video__title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.landing-demo-video__intro {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 760px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.landing-demo-video__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
  background: #000;
  margin-bottom: 2rem;
}

.landing-demo-video__player {
  width: 100%;
  height: auto;
  display: block;
}

.landing-demo-video__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.landing-demo-video__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text);
  text-align: left;
}

.landing-demo-video__timestamp {
  font-weight: 700;
  font-family: monospace;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ----- Demo GIF in receipt section ----- */
.landing-demo__gif {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-bottom: 2rem;
}

.landing-demo__gif-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ----- Comparison table ----- */
.landing-comparison {
  padding: 5rem 1.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

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

.landing-comparison__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 1rem;
  text-align: center;
}

.landing-comparison__title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1rem;
  line-height: 1.2;
  text-align: center;
}

.landing-comparison__intro {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 760px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  text-align: center;
}

.landing-comparison__table-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.landing-comparison__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 800px;
}

.landing-comparison__table thead {
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-border);
}

.landing-comparison__table th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  border-right: 1px solid var(--color-border);
}

.landing-comparison__table th:last-child {
  border-right: none;
}

.landing-comparison__feature-col {
  width: 22%;
  position: sticky;
  left: 0;
  background: var(--color-bg);
  z-index: 10;
}

.landing-comparison__product-col {
  width: 13%;
  text-align: center;
  vertical-align: top;
}

.landing-comparison__product-col--highlight {
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf9 100%);
  border-left: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
}

.landing-comparison__product-name {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.landing-comparison__product-price {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.landing-comparison__table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.landing-comparison__table tbody tr:last-child {
  border-bottom: none;
}

.landing-comparison__table td {
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--color-border);
}

.landing-comparison__table td:last-child {
  border-right: none;
}

.landing-comparison__feature {
  font-weight: 600;
  color: var(--color-text);
  position: sticky;
  left: 0;
  background: var(--color-surface);
  z-index: 5;
}

.landing-comparison__value {
  text-align: center;
  vertical-align: middle;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.landing-comparison__value--highlight {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.4) 0%, rgba(240, 253, 249, 0.4) 100%);
  border-left: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  font-weight: 500;
  color: var(--color-text);
}

.landing-comparison__check {
  color: var(--color-success);
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.landing-comparison__cross {
  color: #94a3b8;
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.landing-comparison__partial {
  color: #f59e0b;
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.landing-comparison__notes {
  max-width: 900px;
  margin: 0 auto;
}

.landing-comparison__note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg);
  border-radius: 8px;
  border-left: 3px solid var(--color-accent);
}

.landing-comparison__note:last-child {
  margin-bottom: 0;
}

.landing-comparison__note strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ----- Calculator Enhancements ----- */
.calculator-tooltip {
  position: fixed;
  background: var(--color-text);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  max-width: 250px;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}

.calculator-tooltip::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--color-text);
}

.calculator-notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--color-accent);
  color: var(--color-text);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateX(400px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.calculator-notification--visible {
  transform: translateX(0);
  opacity: 1;
}

.calculator-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.calculator-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.calculator-action-btn:hover {
  background: var(--color-bg);
  border-color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.calculator-action-btn svg {
  width: 16px;
  height: 16px;
}

.calculator-chart-container {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 2rem 0;
  background: white;
  padding: 1rem;
  border-radius: var(--radius);
}

.calculator-comparison-mode {
  background: #f0f9ff;
  border: 2px dashed #3b82f6;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.calculator-comparison-mode__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e40af;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calculator-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  color: var(--color-text);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: help;
  margin-left: 0.25rem;
}

.form__label--with-help {
  display: flex;
  align-items: center;
}

.calculator-results__chart-section {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

.calculator-results__chart-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 1rem 0;
}

.calculator-results__comparison-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.calculator-results__comparison-intro {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.calculator-results__scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.calculator-results__scenario {
  background: white;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.calculator-results__scenario:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

.calculator-results__scenario-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.75rem 0;
}

.calculator-results__scenario-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.calculator-results__scenario-label {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.calculator-results__scenario-delta {
  font-size: 0.875rem;
  font-weight: 500;
}

.calculator-results__scenario-delta--positive {
  color: #10b981;
}

.calculator-results__scenario-delta--negative {
  color: #ef4444;
}

.calculator-results__explanation--positive {
  background: #ecfdf5;
  border-left: 3px solid #10b981;
}

.calculator-results__explanation--negative {
  background: #fef2f2;
  border-left: 3px solid #ef4444;
}

@media print {
  .public-nav,
  .landing-footer,
  .calculator-form,
  .calculator-actions,
  .calculator-page__info {
    display: none !important;
  }

  .calculator-results {
    box-shadow: none;
    border: 2px solid var(--color-border);
  }

  .calculator-page {
    padding: 0;
  }

  .calculator-page__header {
    margin-bottom: 1rem;
  }

  body {
    background: white !important;
  }
}

/* ----- Responsive adjustments ----- */
@media (max-width: 768px) {
  .landing-feature-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .landing-feature-showcase--reverse {
    grid-template-columns: 1fr;
  }

  .landing-feature-showcase--reverse .landing-feature-showcase__content,
  .landing-feature-showcase--reverse .landing-feature-showcase__image {
    order: 0;
  }

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

  .landing-comparison__table {
    font-size: 0.75rem;
  }

  .landing-comparison__table th,
  .landing-comparison__table td {
    padding: 0.75rem 0.5rem;
  }

  .landing-comparison__product-name {
    font-size: 0.8125rem;
  }

  .landing-comparison__product-price {
    font-size: 0.6875rem;
  }

  .landing-comparison__value {
    font-size: 0.75rem;
  }

  .calculator-actions {
    flex-direction: column;
  }

  .calculator-action-btn {
    width: 100%;
    justify-content: center;
  }

  .calculator-notification {
    top: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .calculator-results__scenario-grid {
    grid-template-columns: 1fr;
  }

  .calculator-chart-container {
    height: 250px;
  }
}
