/* ==========================================================================
   PG Management — Official Product & Compliance Website Stylesheet
   Aligned with Flutter AppTheme (seed: #0f625e, ink: #0f172a, paper: #f6f7f4)
   ========================================================================== */

:root {
  --seed: #0f625e;
  --seed-hover: #0b4a47;
  --seed-dark: #083836;
  --seed-light: #d5eeeb;
  --seed-tint: #eef8f6;
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --muted: #475569;
  --muted-light: #64748b;
  --paper: #f6f7f4;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Status Pill Semantics (matching TenantBoard & StatusPill) */
  --paid-bg: #dcfce7;
  --paid-text: #166534;
  --paid-border: #86efac;

  --due-bg: #fef3c7;
  --due-text: #92400e;
  --due-border: #fcd34d;

  --overdue-bg: #fee2e2;
  --overdue-text: #991b1b;
  --overdue-border: #fca5a5;

  --partial-bg: #e0e7ff;
  --partial-text: #3730a3;
  --partial-border: #a5b4fc;

  --vacant-bg: #f1f5f9;
  --vacant-text: #475569;
  --vacant-border: #cbd5e1;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px -8px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(15, 98, 94, 0.14);

  --container: 1200px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Modern Web Guidance: Balanced headings & pretty body paragraphs */
h1, h2, h3, h4, .balance-text {
  text-wrap: balance;
  color: var(--ink);
  margin-top: 0;
  letter-spacing: -0.025em;
}

p, li, dd, .pretty-text {
  text-wrap: pretty;
}

a {
  color: var(--seed);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

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

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--seed);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top announcement bar */
.top-banner {
  background: var(--ink);
  color: #f8fafc;
  font-size: 0.84rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.top-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(213, 238, 235, 0.15);
  color: var(--seed-light);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.top-banner a {
  color: var(--seed-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.brand-link:hover {
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--seed) 0%, var(--seed-dark) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  box-shadow: 0 4px 10px rgba(15, 98, 94, 0.22);
  flex-shrink: 0;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-working-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 2px;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--seed);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 15px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-lg {
  padding: 15px 26px;
  font-size: 1rem;
  border-radius: 14px;
}

.btn-primary {
  background: var(--seed);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 98, 94, 0.2);
}

.btn-primary:hover {
  background: var(--seed-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 98, 94, 0.28);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--surface-alt);
  border-color: var(--seed);
  color: var(--seed);
}

.btn-soft {
  background: var(--seed-light);
  color: var(--seed-dark);
}

.btn-soft:hover {
  background: #bfe5e0;
  color: var(--seed-dark);
}

/* Hero Section */
.hero {
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--seed-light);
  color: var(--seed-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--seed);
}

.hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--seed);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 60ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.trust-metric {
  display: flex;
  flex-direction: column;
}

.trust-metric strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.trust-metric span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Hero Interactive Mockup Card */
.app-preview-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  position: relative;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.preview-property-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.property-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.preview-property-name {
  font-weight: 800;
  font-size: 0.95rem;
}

.preview-property-sub {
  font-size: 0.76rem;
  color: var(--muted);
}

.role-switcher {
  display: inline-flex;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: 10px;
}

.role-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.role-btn.active {
  background: var(--seed);
  color: #fff;
}

.hero-balance-card {
  background: linear-gradient(135deg, var(--seed) 0%, var(--seed-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-balance-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
  font-weight: 600;
}

.hero-balance-amount {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 4px 0;
}

.hero-balance-meta {
  font-size: 0.82rem;
  opacity: 0.9;
}

/* Occupancy Ring SVG */
.occupancy-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  padding: 12px 16px;
  border-radius: 14px;
  min-width: 110px;
}

.occupancy-ring-pct {
  font-size: 1.25rem;
  font-weight: 800;
}

.occupancy-ring-caption {
  font-size: 0.72rem;
  opacity: 0.9;
}

.preview-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.mini-stat-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}

.mini-stat-card span {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 600;
}

.mini-stat-card strong {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
}

.preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
}

.preview-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-chip {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--seed-light);
  color: var(--seed-dark);
  font-weight: 800;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.preview-row-title {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.preview-row-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-paid {
  background: var(--paid-bg);
  color: var(--paid-text);
  border-color: var(--paid-border);
}

.status-due {
  background: var(--due-bg);
  color: var(--due-text);
  border-color: var(--due-border);
}

.status-overdue {
  background: var(--overdue-bg);
  color: var(--overdue-text);
  border-color: var(--overdue-border);
}

.status-partial {
  background: var(--partial-bg);
  color: var(--partial-text);
  border-color: var(--partial-border);
}

.status-vacant {
  background: var(--vacant-bg);
  color: var(--vacant-text);
  border-color: var(--vacant-border);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--seed-tint);
  border: 1px solid var(--seed-light);
  color: var(--seed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.25rem;
  font-weight: 800;
}

.feature-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0 0 16px;
  flex-grow: 1;
}

.feature-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.feature-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Interactive Bed Board Section */
.board-showcase {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: start;
}

.board-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.board-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  padding: 6px 13px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--seed);
}

.chip-btn.active {
  background: var(--seed-light);
  border-color: var(--seed);
  color: var(--seed-dark);
  font-weight: 700;
}

.rooms-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.room-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.room-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.room-box-title {
  font-weight: 800;
  font-size: 0.92rem;
}

.room-sharing-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
}

.beds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.bed-tile {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bed-tile:hover {
  border-color: var(--seed);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.bed-tile.selected {
  border-color: var(--seed);
  background: var(--seed-tint);
  box-shadow: 0 0 0 3px rgba(15, 98, 94, 0.15);
}

.bed-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.bed-code {
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--ink);
}

.app-dot {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--seed);
}

.bed-tenant {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bed-balance {
  font-size: 0.74rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.inspector-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 96px;
}

.inspector-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.inspector-row span {
  color: var(--muted);
}

.inspector-row strong {
  color: var(--ink);
  text-align: right;
}

/* Interactive Billing & Proration Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.label-hint {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--seed);
  box-shadow: 0 0 0 3px rgba(15, 98, 94, 0.14);
}

.statement-output {
  background: var(--ink);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 28px;
}

.statement-output h3 {
  color: #ffffff;
  margin-bottom: 6px;
}

.statement-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}

.statement-line span {
  color: #cbd5e1;
}

.statement-line strong {
  font-family: var(--font-mono);
  color: #ffffff;
}

.statement-total {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(213, 238, 235, 0.1);
  border: 1px solid rgba(213, 238, 235, 0.24);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.statement-total strong {
  font-size: 1.35rem;
  font-family: var(--font-mono);
  color: var(--seed-light);
}

.guard-notice {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(254, 243, 199, 0.12);
  border: 1px solid rgba(252, 211, 77, 0.35);
  color: #fde68a;
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--seed);
  box-shadow: var(--shadow-lg);
}

.pricing-ribbon {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--seed);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.plan-price {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan-price span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.plan-subprice {
  font-size: 0.82rem;
  color: var(--seed);
  font-weight: 700;
  margin-top: 6px;
  margin-bottom: 22px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.check-icon {
  color: var(--seed);
  font-weight: 800;
  flex-shrink: 0;
}

/* Native Details Accordion (Modern Web Guidance) */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

details.faq-item[open] {
  border-color: var(--seed);
  box-shadow: var(--shadow-xs);
}

details.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--seed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

details.faq-item[open] summary::after {
  content: "−";
  background: var(--seed-light);
}

.faq-body {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* Legal & Policy Pages Layout */
.legal-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 48px 0 80px;
  align-items: start;
}

.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: 96px;
}

.legal-toc h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-toc a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.legal-toc a:hover {
  color: var(--seed);
}

.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-callout {
  background: var(--seed-tint);
  border-left: 4px solid var(--seed);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-size: 0.94rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

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

.data-table th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 64px 0 40px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--seed-light);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: #94a3b8;
  font-size: 0.82rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid,
  .board-showcase,
  .calc-grid,
  .pricing-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .rooms-container,
  .form-row-2,
  .hero-trust-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 24px;
  }
}
