/* ============================================================
   Chalet Butler — Marketing Website CSS
   Design tokens and component styles for all marketing pages.
   Pure CSS, no framework. To build: serve from priv/static
   directly; add tailwind/esbuild entry for production minify.
   ============================================================ */

/* ========================
   1. Design Tokens
   ======================== */
:root {
  --color-bg:         #F7F3EE;
  --color-surface:    #EDE8E0;
  --color-dark:       #1C3028;
  --color-text:       #1A1814;
  --color-muted:      #7A746C;
  --color-accent:     #C8872A;
  --color-accent-h:   #A3691A;
  --color-alt:        #3A5A6E;
  --color-white:      #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --t-xs:   clamp(0.70rem, 1.4vw, 0.80rem);
  --t-sm:   clamp(0.875rem, 1.8vw, 1rem);
  --t-base: clamp(1rem, 2vw, 1.125rem);
  --t-lg:   clamp(1.125rem, 2.5vw, 1.375rem);
  --t-xl:   clamp(1.25rem, 3vw, 1.625rem);
  --t-2xl:  clamp(1.5rem, 3.5vw, 2rem);
  --t-3xl:  clamp(2rem, 5vw, 3rem);
  --t-4xl:  clamp(2.5rem, 7vw, 4rem);
  --t-hero: clamp(2.75rem, 8vw, 5.5rem);

  /* Spacing (8px grid) */
  --sp-1:  0.5rem;
  --sp-2:  1rem;
  --sp-3:  1.5rem;
  --sp-4:  2rem;
  --sp-6:  3rem;
  --sp-8:  4rem;
  --sp-10: 5rem;
  --sp-12: 6rem;
  --sp-16: 8rem;

  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(26,24,20,0.08);
  --shadow-md: 0 4px 16px rgba(26,24,20,0.12);
  --shadow-lg: 0 8px 40px rgba(26,24,20,0.18);

  --ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================
   2. Reset & Base
   ======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ========================
   3. Skip Link (a11y)
   ======================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  padding: var(--sp-1) var(--sp-3);
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--r-md);
  z-index: 9999;
  transition: top 0.1s;
}
.skip-link:focus { top: var(--sp-2); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ========================
   4. Layout
   ======================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

.section { padding-block: clamp(4rem, 10vw, 8rem); }

/* ========================
   5. Navigation
   ======================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--sp-3) 0;
  background-color: var(--color-dark);
  transition: background-color var(--ease), box-shadow var(--ease), padding var(--ease);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-md);
  padding: var(--sp-2) 0;
}

.nav-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-icon { font-size: 1.4em; line-height: 1; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.locale-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: rgba(255,255,255,0.7);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.locale-link {
  color: rgba(255,255,255,0.65);
  transition: color var(--ease);
}
.locale-link:hover { color: var(--color-white); }
.locale-current { color: var(--color-white); font-weight: 700; }
.locale-sep { opacity: 0.35; }

/* ========================
   6. CTA Buttons
   ======================== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--t-sm);
  font-weight: 600;
  border-radius: var(--r-full);
  transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.btn-cta:hover {
  background: var(--color-accent-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200,135,42,0.4);
}
.btn-cta:active { transform: translateY(0); }

.btn-cta-lg {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2.25rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--t-base);
  font-weight: 600;
  border-radius: var(--r-full);
  transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-cta-lg:hover {
  background: var(--color-accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200,135,42,0.45);
}
.btn-cta-lg:active { transform: translateY(0); }

/* ========================
   7. Feature badge (waitlist)
   ======================== */

.feature-badge-new {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #15803d;
  background: #dcfce7;
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: var(--sp-2);
}

/* ========================
   15. Footer
   ======================== */
.site-footer {
  background: var(--color-dark);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-6); }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.footer-tagline {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--sp-3);
}

.footer-locale {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.45);
}

.footer-locale a {
  color: rgba(255,255,255,0.6);
  transition: color var(--ease);
}
.footer-locale a:hover { color: var(--color-white); }

.footer-col-heading {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--sp-2);
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.footer-nav a {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--ease);
}
.footer-nav a:hover { color: var(--color-white); }

.footer-email {
  font-size: var(--t-sm);
  color: var(--color-accent);
}

.footer-made {
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.3);
  font-style: italic;
  margin-top: var(--sp-2);
}

.footer-app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  transition: background var(--ease), border-color var(--ease);
}
.footer-app-store-badge:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}

.footer-app-store-badge-icon { font-size: 1.5rem; line-height: 1; }

.footer-app-store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.footer-app-store-badge-small {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
}

.footer-app-store-badge-large {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
}

.footer-bottom {
  max-width: 1200px;
  margin-inline: auto;
  margin-top: var(--sp-6);
  padding-inline: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.3);
}

.footer-bottom a {
  color: rgba(255,255,255,0.38);
  transition: color var(--ease);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ========================
   16. Scroll Reveal
   ======================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   17. Interior Pages
   ======================== */
.page-interior {
  padding-top: 8rem;
  padding-bottom: clamp(4rem, 8vw, 8rem);
  min-height: 100vh;
}

.page-interior .container { max-width: 720px; }

.page-eyebrow {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-2);
}

.page-interior h1 {
  font-family: var(--font-display);
  font-size: var(--t-4xl);
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--sp-3);
}

.page-subtitle {
  font-size: var(--t-lg);
  color: var(--color-muted);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--color-surface);
  line-height: 1.65;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 600;
  color: var(--color-dark);
  margin-top: var(--sp-4);
}

.prose h3 {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--color-dark);
}

.prose p { color: var(--color-text); line-height: 1.8; }

.prose ul {
  padding-left: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  color: var(--color-text);
}

.prose li { line-height: 1.7; }

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* How It Works */

/* Pricing */
.pricing-wrap {
  max-width: 500px;
  margin-inline: auto;
  margin-top: var(--sp-8);
}

.pricing-card {
  background: var(--color-surface);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
}

.pricing-plan {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-3);
}

.pricing-trial-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--t-sm);
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: var(--t-hero);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1;
}

.pricing-currency {
  font-size: var(--t-2xl);
  vertical-align: super;
  font-weight: 500;
}

.pricing-period {
  font-size: var(--t-sm);
  color: var(--color-muted);
  margin-bottom: var(--sp-6);
}

.pricing-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  text-align: left;
  max-width: 32ch;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
}

.pricing-includes li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--t-sm);
  color: var(--color-text);
  line-height: 1.6;
}

.check-icon {
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-note {
  font-size: var(--t-xs);
  color: var(--color-muted);
  margin-top: var(--sp-3);
}

/* ========================
   Auth pages
   ======================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6) var(--sp-2);
  background: var(--color-bg);
}

.auth-logo {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-6);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--color-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-6);
}

.auth-title {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--sp-1);
  line-height: 1.2;
}

.auth-subtitle {
  font-size: var(--t-sm);
  color: var(--color-muted);
  margin-bottom: var(--sp-4);
}

.auth-subtitle a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}
.auth-subtitle a:hover { text-decoration: underline; }

.auth-field {
  margin-bottom: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.auth-label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--color-text);
}

.auth-label-hint {
  font-size: var(--t-xs);
  font-weight: 400;
  color: var(--color-muted);
}

.auth-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--color-surface);
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--ease), box-shadow var(--ease);
  box-sizing: border-box;
}
.auth-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200,135,42,0.15);
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: var(--r-md);
  padding: 0.625rem var(--sp-2);
  font-size: var(--t-sm);
  margin-bottom: var(--sp-3);
}

.auth-info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  border-radius: var(--r-md);
  padding: 0.625rem var(--sp-2);
  font-size: var(--t-sm);
  margin-bottom: var(--sp-3);
}
.auth-info a { color: #0369a1; }

.auth-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  text-align: center;
  transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.auth-btn:hover {
  background: var(--color-accent-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200,135,42,0.4);
}
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-btn-ghost {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 500;
  border: 1.5px solid var(--color-surface);
  border-radius: var(--r-full);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--ease), color var(--ease);
  margin-top: var(--sp-2);
}
.auth-btn-ghost:hover {
  border-color: var(--color-muted);
  color: var(--color-text);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-3) 0;
  color: var(--color-muted);
  font-size: var(--t-xs);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-surface);
}

.auth-section-label {
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: var(--sp-2);
}

.auth-tip {
  font-size: var(--t-xs);
  color: var(--color-muted);
  text-align: center;
  margin-top: var(--sp-3);
  line-height: 1.6;
}

.auth-email-sent {
  text-align: center;
  padding: var(--sp-2) 0;
}
.auth-email-sent-icon {
  font-size: 2.5rem;
  margin-bottom: var(--sp-2);
}
.auth-email-sent-title {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--sp-1);
}
.auth-email-sent-body {
  font-size: var(--t-sm);
  color: var(--color-muted);
  margin-bottom: var(--sp-4);
  line-height: 1.6;
}

/* ========================
   Host Onboarding Wizard
   ======================== */

.ha-wizard-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6) var(--sp-2);
  background: var(--color-bg);
}

.ha-wizard-card {
  width: 100%;
  max-width: 560px;
  background: var(--color-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-6);
}

.ha-wizard-steps {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.ha-wizard-step-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--color-surface);
  transition: background-color var(--ease);
}
.ha-wizard-step-dot--active { background: var(--color-accent); width: 20px; border-radius: var(--r-full); }
.ha-wizard-step-dot--done   { background: var(--color-accent); opacity: 0.5; }

.ha-wizard-eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: var(--sp-1);
  text-align: center;
}

.ha-wizard-title {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--sp-1);
  line-height: 1.2;
  text-align: center;
}

.ha-wizard-subtitle {
  font-size: var(--t-sm);
  color: var(--color-muted);
  margin-bottom: var(--sp-5);
  text-align: center;
  line-height: 1.6;
}

.ha-wizard-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.ha-wizard-skip {
  display: block;
  text-align: center;
  font-size: var(--t-xs);
  color: var(--color-muted);
  text-decoration: none;
  margin-top: var(--sp-3);
}
.ha-wizard-skip:hover { color: var(--color-text); text-decoration: underline; }

/* ========================
   Host Admin
   ======================== */

.ha-topnav {
  background: var(--color-dark);
  padding: 0.75rem var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  position: sticky;
  top: 0;
  z-index: 50;
}

.ha-topnav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.ha-topnav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  list-style: none;
}

.ha-topnav-link {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--ease);
}
.ha-topnav-link:hover { color: var(--color-white); }

.ha-topnav-logout {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  padding: 0.3rem 0.875rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  transition: background var(--ease), color var(--ease);
}
.ha-topnav-logout:hover { background: rgba(255,255,255,0.16); color: var(--color-white); }

.ha-main {
  max-width: 840px;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4);
}

.ha-main-wide {
  max-width: 840px;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4);
}

.ha-main-narrow {
  max-width: 520px;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4);
}

.ha-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.ha-page-title {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.2;
}

.ha-breadcrumb {
  font-size: var(--t-sm);
  color: var(--color-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: var(--sp-4);
}
.ha-breadcrumb:hover { color: var(--color-text); }

.ha-card {
  background: var(--color-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-surface);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.ha-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.ha-card-title {
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--sp-3);
}
.ha-card-header .ha-card-title { margin-bottom: 0; }

.ha-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.ha-stat {
  background: var(--color-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-surface);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-sm);
}

.ha-stat-label {
  font-size: var(--t-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: var(--sp-1);
}

.ha-stat-value {
  font-family: var(--font-display);
  font-size: var(--t-3xl);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1;
}

.ha-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 640px) { .ha-grid-2 { grid-template-columns: 1fr; } }

.ha-list { display: flex; flex-direction: column; gap: var(--sp-2); }

.ha-list-item {
  background: var(--color-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-surface);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  box-shadow: var(--shadow-sm);
}

.ha-list-item-info { flex: 1; min-width: 0; }

.ha-list-item-name {
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ha-list-item-sub {
  font-size: var(--t-xs);
  color: var(--color-muted);
  margin-top: 2px;
}

.ha-list-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.ha-row { display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0.5rem 0; border-bottom: 1px solid var(--color-surface); gap: var(--sp-3); }
.ha-row:last-child { border-bottom: none; }
.ha-row--link { cursor: pointer; text-decoration: none; color: inherit; border-radius: var(--r-sm); }
.ha-row--link:hover { background: var(--color-surface); margin: 0 calc(-1 * var(--sp-2)); padding-left: var(--sp-2); padding-right: var(--sp-2); }
.ha-row-label { font-size: var(--t-sm); color: var(--color-muted); flex-shrink: 0; }
.ha-row-value { font-size: var(--t-sm); font-weight: 500; color: var(--color-text);
  text-align: right; word-break: break-all; font-family: inherit; }

.ha-activity-entry { display: flex; gap: var(--sp-2); padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--color-surface); }
.ha-activity-entry:last-child { border-bottom: none; }
.ha-activity-icon { font-size: 1.2rem; flex-shrink: 0; }
.ha-activity-text { font-size: var(--t-sm); color: var(--color-text); }
.ha-activity-time { font-size: var(--t-xs); color: var(--color-muted); }

.ha-empty {
  font-size: var(--t-sm);
  color: var(--color-muted);
  padding: var(--sp-3) 0;
  text-align: center;
}

.ha-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-full);
  font-size: var(--t-xs);
  font-weight: 600;
}
.ha-badge-green  { background: #dcfce7; color: #15803d; }
.ha-badge-blue   { background: #dbeafe; color: #1d4ed8; }
.ha-badge-yellow { background: #fef9c3; color: #a16207; }
.ha-badge-gray   { background: var(--color-surface); color: var(--color-muted); }

.ha-presence-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.ha-presence-chip {
  font-size: 11px;
  font-weight: 500;
  border-radius: 10px;
  padding: 1px 8px;
  white-space: nowrap;
}

.ha-presence-chip--yellow { background: #fef9c3; color: #a16207; }
.ha-presence-chip--blue   { background: #dbeafe; color: #1d4ed8; }
.ha-presence-chip--green  { background: #dcfce7; color: #15803d; }
.ha-badge-purple { background: #f3e8ff; color: #7e22ce; }
.ha-badge-red    { background: #fef2f2; color: #dc2626; }

.ha-connected { color: #15803d; font-size: var(--t-xs); font-weight: 600; }
.ha-connected::before { content: '● '; }
.ha-disconnected { color: var(--color-muted); font-size: var(--t-xs); font-weight: 600; }
.ha-disconnected::before { content: '○ '; }

.ha-toggle {
  border: none;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: var(--t-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.ha-toggle--on  { background: #dcfce7; color: #15803d; }
.ha-toggle--off { background: var(--color-surface); color: var(--color-muted); }
.ha-toggle:hover { opacity: 0.8; }

/* OTP verification section — reuses auth-* classes, minimal additions */
.otp-section {
  border: 1.5px solid var(--color-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin: var(--sp-5) 0;
  background: var(--color-bg);
}
.otp-section-title {
  font-family: var(--font-head);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--sp-2);
}
.otp-section-hint {
  font-size: var(--t-sm);
  color: var(--color-muted);
  margin-bottom: var(--sp-4);
  line-height: 1.5;
}
.otp-code-input {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-align: center;
  font-family: var(--font-mono, monospace);
}

.ha-link {
  font-size: var(--t-sm);
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}
.ha-link:hover { text-decoration: underline; }

.ha-link-muted {
  font-size: var(--t-sm);
  color: var(--color-muted);
  text-decoration: none;
}
.ha-link-muted:hover { color: var(--color-text); }

.ha-link-danger {
  font-size: var(--t-sm);
  color: #dc2626;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: none;
}
.ha-link-danger:hover { text-decoration: underline; }

.ha-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.ha-btn:hover { background: var(--color-accent-h); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,135,42,0.35); }
.ha-btn:active { transform: translateY(0); }

.ha-btn-dark {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  background: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--ease);
  white-space: nowrap;
}
.ha-btn-dark:hover { opacity: 0.85; }

.ha-btn-sm {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.ha-btn-sm:hover { background: var(--color-accent-h); }

.ha-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 500;
  border: 1.5px solid var(--color-surface);
  border-radius: var(--r-full);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--ease), color var(--ease);
}
.ha-btn-outline:hover { border-color: var(--color-muted); color: var(--color-text); }

.ha-order-btns { display: flex; flex-direction: column; gap: 1px; }
.ha-order-btn {
  background: none; border: none; cursor: pointer;
  font-size: 0.65rem; color: var(--color-muted); line-height: 1;
  padding: 2px 4px; border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
}
.ha-order-btn:hover { color: var(--color-text); background: var(--color-surface); }
.ha-order-btn.ha-hidden { visibility: hidden; }

.ha-form-section { margin-bottom: var(--sp-4); }
.ha-form-section-title {
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: var(--sp-2);
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--color-surface);
}

.ha-check-field {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.ha-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}
.ha-inline-form .auth-input { width: auto; flex: 1 1 180px; }
.ha-inline-form .auth-input[type="number"] { flex: 0 1 90px; }

.concierge-thread {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 640px;
}
.concierge-msg {
  padding: var(--sp-3) var(--sp-4);
  border-radius: 16px;
  max-width: 85%;
}
.concierge-msg p { margin: 0; white-space: pre-line; line-height: 1.5; }
.concierge-msg-label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--color-accent, #c8872a);
  margin-bottom: 4px;
}
.concierge-msg--guest {
  align-self: flex-end;
  background: var(--color-accent, #c8872a);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.concierge-msg--concierge {
  align-self: flex-start;
  background: var(--color-surface, #f5f2ed);
  color: var(--color-text, #1a1814);
  border-bottom-left-radius: 4px;
}
.concierge-reply-form {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}
.concierge-reply-form .auth-input { flex: 1; }
.concierge-msg--pending { opacity: 0.7; }
.concierge-msg--pending p::after {
  content: "";
  display: inline-block;
  width: 1em;
  animation: concierge-dots 1.2s steps(4, end) infinite;
}
@keyframes concierge-dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}
.ha-check { width: 1rem; height: 1rem; accent-color: var(--color-accent); cursor: pointer; }
.ha-check-label { font-size: var(--t-sm); color: var(--color-text); cursor: pointer; }

.ha-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--color-surface);
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A746C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.ha-select:focus { outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200,135,42,0.15); }

.ha-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--color-surface);
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  box-sizing: border-box;
  resize: vertical;
  min-height: 100px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.ha-textarea:focus { outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200,135,42,0.15); }

/* ── Markdown editor toolbar ──────────────────────────────────────────────── */
.md-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-surface);
  border-bottom: none;
  border-radius: var(--r-md) var(--r-md) 0 0;
  flex-wrap: wrap;
}
/* When toolbar is present, remove the top radius from the textarea below it */
.md-toolbar + .ha-textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.md-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  font-size: var(--t-xs);
  font-family: var(--font-body);
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
}
.md-btn:hover { background: var(--color-bg); border-color: var(--color-border); }
.md-sep {
  width: 1px;
  height: 16px;
  background: var(--color-border);
  margin: 0 4px;
  flex-shrink: 0;
}
.md-preview-btn { margin-left: auto; }
.md-preview-btn--active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.md-preview-btn--active:hover { background: var(--color-primary); border-color: var(--color-primary); }

/* Preview panel mimics the guest-facing markdown rendering */
.md-preview {
  width: 100%;
  min-height: 100px;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--color-surface);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: var(--t-sm);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  box-sizing: border-box;
  overflow-y: auto;
}
.md-preview h1, .md-preview h2, .md-preview h3 {
  font-weight: 600; margin: 0.75em 0 0.25em;
}
.md-preview h1 { font-size: 1.25em; }
.md-preview h2 { font-size: 1.1em; }
.md-preview h3 { font-size: 1em; }
.md-preview p { margin: 0 0 0.6em; }
.md-preview ul { margin: 0 0 0.6em 1.25em; padding: 0; }
.md-preview li { margin-bottom: 0.2em; }
.md-preview a { color: var(--color-accent); text-decoration: underline; }
.md-preview-empty { color: var(--color-muted); font-style: italic; }

.ha-field-error { font-size: var(--t-xs); color: #dc2626; margin-top: 4px; display: block; }

.ha-flash-info {
  background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1;
  border-radius: var(--r-md); padding: 0.75rem var(--sp-3);
  font-size: var(--t-sm); margin-bottom: var(--sp-3);
}
.ha-flash-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
  border-radius: var(--r-md); padding: 0.75rem var(--sp-3);
  font-size: var(--t-sm); margin-bottom: var(--sp-3);
}

.ha-divider { height: 1px; background: var(--color-surface); margin: var(--sp-4) 0; }

.ha-section-label {
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: var(--sp-2);
}

/* ── Dashboard message inbox ──────────────────────────────────────────────── */
.ha-badge-accent { background: var(--color-accent); color: #fff; }

.ha-msg-item {
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  margin-bottom: var(--sp-2);
  background: var(--color-bg);
}

.ha-msg-item--unread {
  border-left: 3px solid var(--color-accent);
  background: #f0f7ff;
}

.ha-msg-item--escalated {
  border-left: 3px solid #e94560;
  background: #fff5f5;
}

.ha-badge-escalated {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 700;
  color: #e94560;
  border: 1px solid #e94560;
  border-radius: var(--r-sm);
  padding: 1px 6px;
  margin-right: var(--sp-2);
  white-space: nowrap;
}

.ha-msg-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-1);
  flex-wrap: wrap;
}

.ha-msg-property {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--color-primary, #2c6e49);
}

.ha-msg-asset {
  font-size: var(--t-xs);
  font-weight: 600;
  background: var(--color-surface);
  border-radius: var(--r-sm);
  padding: 2px var(--sp-2);
  color: var(--color-dark);
}

.ha-msg-guest {
  font-size: var(--t-xs);
  color: var(--color-muted);
}

.ha-msg-time {
  font-size: var(--t-xs);
  color: var(--color-muted);
  margin-left: auto;
}

.ha-msg-body {
  font-size: var(--t-sm);
  color: var(--color-text);
  margin-bottom: var(--sp-2);
  line-height: 1.5;
}

.ha-msg-reply-btn {
  font-size: var(--t-xs);
  color: var(--color-accent);
  background: none;
  border: 1px solid var(--color-accent);
  border-radius: var(--r-sm);
  padding: 2px var(--sp-2);
  cursor: pointer;
  font-weight: 600;
}
.ha-msg-reply-btn:hover { background: var(--color-accent); color: #fff; }

.ha-msg-reply-form { margin-top: var(--sp-2); }

/* Signalements anonymes card */
.ha-report-item {
  border: 1px solid var(--color-border);
  border-left: 3px solid #e67e22;
  border-radius: var(--r-md);
  padding: var(--sp-3);
  margin-bottom: var(--sp-2);
  background: #fffdf9;
}
.ha-report-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  flex-wrap: wrap;
}
.ha-report-name {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--color-dark);
}
.ha-report-thread {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.ha-report-msg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 85%;
}
.ha-report-msg--reporter { align-self: flex-end; align-items: flex-end; }
.ha-report-msg--host     { align-self: flex-start; align-items: flex-start; }
.ha-report-msg-body {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  line-height: 1.45;
}
.ha-report-msg--reporter .ha-report-msg-body {
  background: var(--color-surface);
  color: var(--color-text);
  border-bottom-right-radius: 4px;
}
.ha-report-msg--host .ha-report-msg-body {
  background: var(--color-accent);
  color: #fff;
  border-bottom-left-radius: 4px;
}

/* Advanced section accordion */
.ha-advanced-section {
  border: 1px solid var(--color-surface);
  border-radius: var(--r-sm);
  margin-top: var(--sp-4);
}
.ha-advanced-summary {
  cursor: pointer;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--color-muted);
  list-style: none;
  user-select: none;
}
.ha-advanced-summary::-webkit-details-marker { display: none; }
.ha-advanced-summary::before {
  content: "▶ ";
  font-size: 0.65em;
  vertical-align: middle;
}
details.ha-advanced-section[open] .ha-advanced-summary::before { content: "▼ "; }
.ha-advanced-section > .ha-form-section:first-of-type,
.ha-advanced-section > [style] { padding: 0 var(--sp-3); }
.ha-advanced-section .ha-form-section { padding: var(--sp-2) var(--sp-3) 0; }
.ha-advanced-section .ha-form-section:last-child { padding-bottom: var(--sp-3); }

.ha-field-hint {
  font-size: var(--t-xs);
  color: var(--color-muted);
  font-weight: 400;
}

/* ============================================================
   Stay show — back link, subtitle, definition list, tokens, activity
   ============================================================ */

.ha-back-link {
  font-size: var(--t-sm);
  color: var(--color-muted);
  text-decoration: none;
}
.ha-back-link:hover { color: var(--color-dark); text-decoration: underline; }

/* Message thread view */
.ha-thread { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.ha-thread-msg { max-width: 80%; }
.ha-thread-msg--host { align-self: flex-end; }
.ha-thread-msg--guest { align-self: flex-start; }
.ha-thread-meta { display: flex; align-items: baseline; gap: var(--sp-2); margin-bottom: 2px; }
.ha-thread-from { font-size: var(--t-xs); font-weight: 600; color: var(--color-dark); }
.ha-thread-asset-ctx { font-weight: 400; color: var(--color-muted); font-size: var(--t-xs); }
.ha-thread-time { font-size: 10px; color: var(--color-muted); }
.ha-thread-body { font-size: var(--t-sm); line-height: 1.5; padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md); }
.ha-thread-msg--guest .ha-thread-body { background: var(--color-surface); color: var(--color-dark); }
.ha-thread-msg--host .ha-thread-body { background: var(--color-accent); color: #fff; }
.ha-thread-msg--ai { align-self: flex-end; }
.ha-thread-msg--ai .ha-thread-body { background: #f6efe4; color: var(--color-dark); border: 1px solid #e3d3b8; }
.ha-thread-reply { border-top: 1px solid var(--color-border); padding-top: var(--sp-3); margin-top: var(--sp-2); }

/* Arthur card (Fiche tab) */
.ha-butler-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.ha-butler-check { display: flex; align-items: baseline; gap: var(--sp-2); font-size: var(--t-sm); }
.ha-butler-check-detail { color: var(--color-muted); font-size: var(--t-xs); margin-left: auto; text-align: right; }
.ha-butler-check--missing { color: #a33; }
.ha-butler-test-log { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-3);
  max-height: 320px; overflow-y: auto; border: 1px solid var(--color-border); border-radius: var(--r-md);
  padding: var(--sp-3); background: var(--color-surface); }
.ha-butler-test-q { font-size: var(--t-sm); font-weight: 600; }
.ha-butler-test-a { font-size: var(--t-sm); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: var(--sp-1); }
.ha-butler-test-a--answered { background: #f6efe4; border: 1px solid #e3d3b8; }
.ha-butler-test-a--escalated { background: #fdf3e0; border: 1px solid #ecd39a; }
.ha-butler-test-a--error { background: #fbecec; border: 1px solid #e5b8b8; }
.ha-butler-test-badge { font-size: var(--t-xs); font-weight: 600; color: var(--color-muted); }
.ha-butler-test-form { display: flex; gap: var(--sp-2); align-items: flex-start; }

.ha-page-sub {
  font-size: var(--t-sm);
  color: var(--color-muted);
  margin: var(--sp-1) 0 0;
}

.ha-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--sp-1) var(--sp-4);
  font-size: var(--t-sm);
  margin: 0;
}
.ha-dl dt { color: var(--color-muted); font-weight: 500; }
.ha-dl dd { margin: 0; color: var(--color-dark); }

.ha-mono { font-family: var(--font-mono, monospace); font-size: var(--t-sm); letter-spacing: 0.04em; }

/* Invite form */
.ha-invite-form { display: flex; flex-direction: column; }
.ha-invite-result { background: var(--color-bg-alt, #f8f8f6); border: 1px solid var(--color-border); border-radius: var(--r-md); padding: var(--sp-3); }
.ha-invite-url-row { display: flex; gap: var(--sp-2); align-items: center; }
.ha-invite-url-input {
  flex: 1;
  font-size: var(--t-xs);
  font-family: var(--font-mono, monospace);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: var(--sp-2);
  background: var(--color-bg);
  color: var(--color-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ha-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--t-sm);
  color: var(--color-accent);
  cursor: pointer;
  text-decoration: underline;
}
.ha-link-btn:hover { color: var(--color-accent-h); }

/* Guest token list */
.ha-token-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.ha-token-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--t-sm);
}
.ha-token-item:last-child { border-bottom: none; }
.ha-token-name { flex: 1; font-weight: 500; color: var(--color-dark); }
.ha-token-tier { color: var(--color-muted); font-size: var(--t-xs); }

.ha-token-badge {
  font-size: var(--t-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}
.ha-token-badge--active { background: #d1fae5; color: #065f46; }
.ha-token-badge--revoked { background: #fee2e2; color: #991b1b; }
.ha-token-badge--expired { background: #f3f4f6; color: #6b7280; }

/* Activity feed */
.ha-activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ha-activity-item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.ha-activity-item:last-child { border-bottom: none; }
.ha-activity-icon { font-size: var(--t-sm); flex-shrink: 0; }
.ha-activity-text { flex: 1; font-size: var(--t-sm); color: var(--color-dark); }
.ha-activity-time { font-size: var(--t-xs); color: var(--color-muted); white-space: nowrap; }

/* Device picker — Seam Connect Webview */
.ha-device-pick-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ha-device-pick-btn:hover {
  border-color: var(--color-primary);
  background: #f0fdf4;
}

/* ==========================================================================
   WAITLIST / COMING SOON PAGE
   ========================================================================== */

:root {
  --wl-green: #2c6e49;
  --wl-green-dark: #1f4f34;
  --wl-accent: #e8f5ee;
  --wl-sp-1: 4px;
  --wl-sp-2: 8px;
  --wl-sp-3: 12px;
  --wl-sp-4: 16px;
  --wl-sp-6: 24px;
  --wl-sp-8: 32px;
  --wl-sp-12: 48px;
  --wl-sp-16: 64px;
}

.wl-root {
  min-height: 100vh;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Flash */
.wl-flash {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--wl-sp-3) var(--wl-sp-6);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}
.wl-flash--success { background: #dcfce7; color: #15803d; }
.wl-flash--error   { background: #fee2e2; color: #b91c1c; }

/* Hero */
.wl-hero {
  background: linear-gradient(160deg, #0f2d1e 0%, #1a4530 60%, #2c6e49 100%);
  color: #fff;
  padding: var(--wl-sp-16) var(--wl-sp-4);
  position: relative;
  overflow: hidden;
}
.wl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.wl-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}
.wl-hero--confirmed .wl-hero-inner { padding: var(--wl-sp-12) 0; }

.wl-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: var(--wl-sp-6);
}
.wl-badge-flag {
  height: 14px;
  width: auto;
  border-radius: 2px;
  vertical-align: middle;
}

.wl-hero-h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--wl-sp-4);
  letter-spacing: -0.02em;
}
.wl-hero-accent { color: #86efac; }

.wl-hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.80);
  line-height: 1.6;
  margin-bottom: var(--wl-sp-6);
}

/* Urgency bar */
.wl-urgency {
  display: inline-flex;
  align-items: center;
  gap: var(--wl-sp-2);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  margin-bottom: var(--wl-sp-6);
}
.wl-urgency-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Form */
.wl-form { width: 100%; }
.wl-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wl-sp-2);
  justify-content: center;
  margin-bottom: var(--wl-sp-3);
}
.wl-input {
  flex: 1 1 200px;
  padding: 14px 16px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}
.wl-input::placeholder { color: rgba(255,255,255,0.55); }
.wl-input:focus { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.15); }

.wl-cta-btn {
  flex-shrink: 0;
  background: #fff;
  color: var(--wl-green-dark);
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s, box-shadow 0.1s;
}
.wl-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.wl-cta-btn--dark { background: var(--wl-green); color: #fff; }
.wl-cta-btn--dark:hover { background: var(--wl-green-dark); }

.wl-form-note {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.wl-form-note--light { color: var(--color-muted, #666); }

/* Scroll cue */
.wl-hero-scroll {
  text-align: center;
  margin-top: var(--wl-sp-8);
  opacity: 0.5;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Sections */
.wl-section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--wl-sp-16) var(--wl-sp-4);
  text-align: center;
}
.wl-section-h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #111;
  margin-bottom: var(--wl-sp-4);
  letter-spacing: -0.02em;
}
.wl-section-sub {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: var(--wl-sp-8);
}

/* Proof section */
.wl-proof { background: var(--wl-accent); }
.wl-proof-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wl-green);
  margin-bottom: var(--wl-sp-3);
}
.wl-proof-body {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: var(--wl-sp-6);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.wl-demo-btn {
  display: inline-block;
  background: var(--wl-green);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.wl-demo-btn:hover { background: var(--wl-green-dark); transform: translateY(-1px); }
.wl-proof-note {
  margin-top: var(--wl-sp-3);
  font-size: 12px;
  color: #888;
}

/* Feature trifecta */
.wl-features { background: #fff; }
.wl-trifecta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--wl-sp-4);
  text-align: left;
}
.wl-feat-card {
  border: 2px solid #e8f5ee;
  border-radius: 16px;
  padding: var(--wl-sp-6);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wl-feat-card:hover { border-color: var(--wl-green); box-shadow: 0 4px 20px rgba(44,110,73,0.1); }
.wl-feat-card--accent { border-color: var(--wl-green); background: var(--wl-accent); }
.wl-feat-icon { font-size: 2.5rem; margin-bottom: var(--wl-sp-3); }
.wl-feat-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: var(--wl-sp-2);
}
.wl-feat-body { font-size: 0.95rem; color: #555; line-height: 1.6; }

/* Quebec section */
.wl-quebec { background: #f8f9fa; }
.wl-quebec-flag { margin-bottom: var(--wl-sp-4); text-align: center; }
.wl-quebec-flag-img { height: 64px; width: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.wl-quebec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--wl-sp-4);
  text-align: left;
  margin-top: var(--wl-sp-8);
}
.wl-qc-item {
  display: flex;
  gap: var(--wl-sp-3);
  align-items: flex-start;
}
.wl-qc-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.wl-qc-item strong { display: block; font-size: 0.95rem; font-weight: 700; color: #111; margin-bottom: 4px; }
.wl-qc-item p { font-size: 0.9rem; color: #555; line-height: 1.5; margin: 0; }

/* Bottom CTA */
.wl-cta-section { background: linear-gradient(160deg, #0f2d1e 0%, #2c6e49 100%); color: #fff; }
.wl-cta-inner { text-align: center; }
.wl-incentive-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--wl-sp-6);
}
.wl-cta-h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: var(--wl-sp-4);
  letter-spacing: -0.02em;
}
.wl-cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.80);
  line-height: 1.6;
  margin-bottom: var(--wl-sp-8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.wl-form--bottom .wl-input {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}

/* ── Step-2 page: standalone dark layout, auth-style form ────────
   Replaces wl-hero for the /waitlist/propriete page so we don't
   inherit text-align:center from wl-hero-inner.                  */
.wl-step2-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 1.25rem 4rem;
  background: linear-gradient(160deg, #0f2d1e 0%, #1a4530 60%, #2c6e49 100%);
  color: #fff;
}
.wl-step2-card {
  width: 100%;
  max-width: 420px;
  text-align: left;
}
.wl-step2-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 1rem 0 0.5rem;
  text-align: left;
}
.wl-step2-sub {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

/* Field rows: identical structure to auth-field */
.wl-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}
.wl-field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.wl-field-hint {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* Inputs inside the step-2 form: block, not flex hero-row items */
.wl-step2-card .wl-input {
  flex: none;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
}

/* Divider between required and optional sections */
.wl-form-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 1.5rem 0 1rem;
}
.wl-form-section-label {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Confirmed page */
.wl-confirmed-inner { padding: var(--wl-sp-16) var(--wl-sp-4); }
.wl-confirmed-icon { font-size: 4rem; margin-bottom: var(--wl-sp-4); }
.wl-confirmed-perks {
  display: flex;
  flex-direction: column;
  gap: var(--wl-sp-3);
  margin: var(--wl-sp-8) auto;
  max-width: 400px;
}
.wl-perk {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 15px;
}

/* Footer */
.wl-footer {
  text-align: center;
  padding: var(--wl-sp-6) var(--wl-sp-4);
  font-size: 13px;
  color: #999;
  border-top: 1px solid #eee;
}
.wl-footer a { color: var(--wl-green); }

/* ── Property management tabs ───────────────────────────────────── */
.ha-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--sp-4);
}
.ha-tab {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.ha-tab:hover { color: var(--color-text); }
.ha-tab--active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  font-weight: 600;
}

/* ── CITQ upload zone ───────────────────────────────────────────── */
.ha-upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--r-md);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ha-upload-zone:hover {
  border-color: var(--color-accent);
  background: #f0faf4;
}

/* ── Host gallery grid ───────────────────────────────────── */
.ha-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--sp-2);
}

.ha-gallery-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--color-surface);
}
.ha-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ha-gallery-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.ha-gallery-thumb:hover .ha-gallery-delete { opacity: 1; }

/* ── Feedback moderation rows (Avis tab) ──────────────────── */
.ha-feedback-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.ha-feedback-meta {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  flex: 1;
  min-width: 0;
}
.ha-feedback-sentiment {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.ha-feedback-body {
  font-size: var(--t-xs);
  font-style: italic;
  color: var(--color-text);
  margin: var(--sp-1) 0 0;
  line-height: 1.5;
}
.ha-feedback-photo-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--r-sm);
  margin-top: var(--sp-2);
  display: block;
}
.ha-feedback-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-2);
  flex-shrink: 0;
}
.ha-feedback-row--escalated {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  padding-left: var(--sp-3);
  margin-left: calc(-1 * var(--sp-3));
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.ha-feedback-thread {
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  background: var(--color-surface);
  border-radius: var(--r-sm);
  border: 1px solid var(--color-border);
}
.ha-thread-msg {
  max-width: 85%;
  margin-bottom: var(--sp-2);
}
.ha-thread-msg--host { align-self: flex-end; margin-left: auto; }
.ha-thread-msg--guest { align-self: flex-start; }
.ha-thread-sender {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-muted);
  display: block;
  margin-bottom: 2px;
}
.ha-thread-body {
  font-size: var(--t-xs);
  line-height: 1.5;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  margin: 0;
}
.ha-thread-msg--guest .ha-thread-body { background: #fff; color: var(--color-dark); border: 1px solid var(--color-border); }
.ha-thread-msg--host .ha-thread-body { background: var(--color-accent); color: #fff; }
.ha-thread-msg--ai { align-self: flex-end; margin-left: auto; }
.ha-thread-msg--ai .ha-thread-body { background: #f6efe4; color: var(--color-dark); border: 1px solid #e3d3b8; }
.ha-thread-time { font-size: 10px; color: var(--color-muted); display: block; margin-top: 2px; }

/* ── Availability calendar ─────────────────────────────────────────────────── */
.ha-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}
.ha-cal-nav-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  cursor: pointer;
  font-size: var(--t-sm);
  color: var(--color-text);
  line-height: 1.4;
}
.ha-cal-nav-btn:hover { background: var(--color-surface); }
.ha-cal-month-label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--color-text);
}
.ha-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: var(--sp-2);
}
.ha-cal-dow {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-muted);
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ha-cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-size: var(--t-xs);
  border: 1px solid transparent;
  transition: opacity 0.1s;
}
.ha-cal-day-num { line-height: 1; }

/* States */
.ha-cal-day--other-month { opacity: 0.25; }
.ha-cal-day--past        { opacity: 0.4; }

.ha-cal-day--ical         { background: #dbeafe; color: #1d4ed8; }
.ha-cal-day--ical-blocked { background: var(--color-surface); color: var(--color-muted); }
.ha-cal-day--manual       { background: #fef9c3; color: #a16207; cursor: pointer; }
.ha-cal-day--free.ha-cal-day--in-month { background: #dcfce7; color: #15803d; }

.ha-cal-day--clickable { cursor: pointer; }
.ha-cal-day--clickable:hover { border-color: var(--color-primary, #2c6e49); }
.ha-cal-day--manual:hover { border-color: #a16207; }

/* Legend */
.ha-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  margin-top: var(--sp-1);
}
.ha-cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-xs);
  color: var(--color-muted);
}
.ha-cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.ha-cal-dot--ical         { background: #dbeafe; border: 1px solid #93c5fd; }
.ha-cal-dot--ical-blocked { background: var(--color-surface); border: 1px solid var(--color-border); }
.ha-cal-dot--manual       { background: #fef9c3; border: 1px solid #fde047; }

/* ========================
   CastorOS — Mascot images
   ======================== */

/* Top nav logo image (green background) */
.ha-topnav-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .ha-topnav-logo-img { display: none; }
  .ha-topnav-logo-text { display: inline; }
}

/* Guest layout logo */
.guest-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

/* Marketing nav / footer logo */
.logo-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.footer-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

/* Notification icon (castor_wrench) */
.ha-notif-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Empty state — castor_empty */
.ha-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-2);
  text-align: center;
}
.ha-empty-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  opacity: 0.85;
}

/* Loading state — castor_beaver_tail */
.ha-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-2);
  text-align: center;
}
.ha-loading-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  animation: castor-wag 1.4s ease-in-out infinite;
}
@keyframes castor-wag {
  0%, 100% { transform: rotate(-8deg); }
  50%       { transform: rotate(8deg); }
}
.ha-cal-dot--free         { background: #dcfce7; border: 1px solid #86efac; }

/* Voyageurs table */
.ha-voy-wrap  { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ha-voy-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.ha-voy-th    { padding: var(--sp-2) var(--sp-3); border-bottom: 2px solid var(--color-border); text-align: left; white-space: nowrap; font-weight: 600; }
.ha-voy-sort-btn { background: none; border: none; padding: 0; font-size: var(--t-xs); font-weight: 600; color: var(--color-muted); cursor: pointer; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.ha-voy-sort-btn:hover { color: var(--color-dark); }
.ha-voy-arrow { font-size: 10px; opacity: 0.7; }
.ha-voy-row   { border-bottom: 1px solid var(--color-border); }
.ha-voy-row:last-child { border-bottom: none; }
.ha-voy-row:hover { background: var(--color-surface); }
.ha-voy-td    { padding: var(--sp-2) var(--sp-3); vertical-align: middle; white-space: nowrap; }
.ha-voy-td--name  { font-weight: 600; color: var(--color-dark); }
.ha-voy-td--email { color: var(--color-muted); font-size: var(--t-xs); }
.ha-voy-td--date  { color: var(--color-muted); font-size: var(--t-xs); }
@media (max-width: 640px) {
  .ha-voy-th:nth-child(n+3), .ha-voy-td:nth-child(n+3) { display: none; }
}
/* --- Seam disconnected banner --- */
.ha-seam-disconnected-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: #fff1f1;
  border: 1px solid #f87171;
  border-left: 4px solid #dc2626;
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  font-size: var(--t-sm);
}
.ha-seam-disconnected-banner > div { flex: 1; }
.ha-seam-disconnected-banner strong { color: #b91c1c; }

/* ========================
   QR sign — printable asset poster
   ======================== */
.ha-qr-sign {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--color-dark, #1a1a1a);
  border-radius: var(--r-md);
  padding: var(--sp-6) var(--sp-7);
  margin-bottom: var(--sp-2);
  text-align: center;
}

.ha-qr-sign-property {
  font-size: var(--t-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--sp-1);
}

.ha-qr-sign-asset {
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--sp-4);
}

.ha-qr-sign-code svg { width: 220px; height: 220px; }

.ha-qr-sign-purpose {
  margin-top: var(--sp-4);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--color-dark);
}

.ha-qr-sign-purpose-en {
  margin-top: var(--sp-1);
  font-size: var(--t-sm);
  color: var(--color-muted);
}

/* Print: only the sign, centered, full size */
@media print {
  body * { visibility: hidden; }
  .ha-qr-sign, .ha-qr-sign * { visibility: visible; }
  .ha-qr-sign {
    position: fixed;
    inset: 0;
    margin: auto;
    width: fit-content;
    height: fit-content;
    border-width: 3px;
  }
  .ha-qr-sign-code svg { width: 320px; height: 320px; }
}

/* Inline SVG marketing icons (replacing emoji) */

.wl-feat-icon svg,
.wl-qc-icon svg { display: block; }

.wl-feat-icon { display: flex; }
.wl-feat-icon svg { color: var(--wl-green, #2c6e49); }
.wl-qc-icon { display: inline-flex; }
.wl-qc-icon svg { color: var(--wl-green, #2c6e49); }

/* ========================
   Landing (/landing) — single-promise homepage candidate.
   Classes prefixed .lp-; reuses the global tokens above.
   ======================== */
.lp { background: var(--color-bg); color: var(--color-text); }

.lp-hero {
  background: var(--color-dark);
  color: var(--color-white);
  padding: calc(var(--sp-12) + var(--sp-2)) 0 var(--sp-10);
}
.lp-hero-grid {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.lp-eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--sp-2);
}
.lp-eyebrow--center { text-align: center; }
.lp-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-4xl);
  line-height: 1.08;
  margin: 0 0 var(--sp-3);
}
.lp-headline em { font-style: italic; color: #E8C98F; }
.lp-lede {
  font-size: var(--t-lg);
  line-height: 1.6;
  color: rgba(255,255,255,0.86);
  margin: 0 0 var(--sp-3);
  max-width: 34em;
}
.lp-lede strong { color: var(--color-white); }

.lp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-1); padding: 0; margin: 0 0 var(--sp-4); }
.lp-chips li {
  font-size: var(--t-xs);
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--r-full);
  color: rgba(255,255,255,0.88);
}

.lp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.25rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--t-base);
  font-weight: 600;
  border-radius: var(--r-full);
  text-decoration: none;
  transition: background-color var(--ease), transform var(--ease);
}
.lp-cta:hover { background: var(--color-accent-h); transform: translateY(-1px); }
.lp-demo-link {
  display: block;
  width: fit-content;
  margin: var(--sp-3) 0 var(--sp-2);
  color: #E8C98F;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lp-fineprint { font-size: var(--t-xs); color: rgba(255,255,255,0.65); margin: 0; }

.lp-founder {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: var(--t-sm);
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
}
.lp-founder p { margin: 0; }
.lp-founder a { color: var(--color-white); text-decoration: underline; }
.lp-founder-avatar { width: 44px; height: 44px; border-radius: var(--r-full); flex-shrink: 0; }

.lp-hero-visual { position: relative; margin: 0; padding-left: var(--sp-6); }
.lp-hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.lp-hero-chat {
  position: absolute;
  left: 0;
  bottom: var(--sp-4);
  width: min(78%, 330px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.lp-tag {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--color-white);
  color: var(--color-dark);
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-full);
}

.lp-bubble {
  font-size: var(--t-sm);
  line-height: 1.5;
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-lg);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
}
.lp-bubble--guest { background: var(--color-white); border-top-left-radius: var(--r-sm); }
.lp-bubble--arthur { background: #F3E6CF; margin-left: var(--sp-3); border-top-right-radius: var(--r-sm); }
.lp-bubble-meta { display: block; font-size: 0.72rem; color: var(--color-muted); margin-bottom: 0.2rem; }
.lp-source {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--r-full);
  background: rgba(58,90,110,0.12);
  color: var(--color-alt);
}

.lp-steps-section { max-width: 1200px; margin-inline: auto; padding: var(--sp-12) var(--sp-4) var(--sp-6); }
.lp-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-3xl);
  line-height: 1.15;
  text-align: center;
  max-width: 18em;
  margin: 0 auto var(--sp-2);
}
.lp-h2--light { color: var(--color-white); }
.lp-sub { text-align: center; color: var(--color-muted); max-width: 36em; margin: 0 auto var(--sp-6); line-height: 1.6; }
.lp-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.lp-step { background: var(--color-surface); border-radius: var(--r-lg); padding: var(--sp-3); }
.lp-step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-xl);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 var(--sp-1);
}
.lp-step > p { font-size: var(--t-sm); color: var(--color-muted); line-height: 1.55; margin: 0 0 var(--sp-2); }
.lp-step .lp-bubble--arthur { margin-left: var(--sp-2); }
.lp-step-num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--r-full);
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lp-notif {
  background: var(--color-white);
  border-left: 3px solid #C0392B;
  border-radius: var(--r-md);
  padding: 0.75rem 0.9rem;
  font-size: var(--t-sm);
  line-height: 1.5;
  box-shadow: var(--shadow-md);
}
.lp-notif-title { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.lp-disclaimer { text-align: center; font-size: var(--t-xs); color: var(--color-muted); margin: var(--sp-3) 0 0; }

.lp-more { max-width: 900px; margin-inline: auto; padding: var(--sp-6) var(--sp-4); text-align: center; }
.lp-h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-2xl); margin: 0 0 var(--sp-1); }
.lp-more p { line-height: 1.7; margin: 0; }

.lp-final { padding: var(--sp-4) var(--sp-4) var(--sp-12); }
.lp-final-card {
  max-width: 760px;
  margin-inline: auto;
  background: var(--color-dark);
  color: rgba(255,255,255,0.82);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
}
.lp-final-card > p:not(.lp-fineprint) { max-width: 32em; margin: 0 auto var(--sp-4); line-height: 1.6; }
.lp-final-card .lp-fineprint { margin-top: var(--sp-3); }

@media (max-width: 900px) {
  .lp-hero { padding-top: calc(var(--sp-12) + var(--sp-2)); }
  .lp-hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .lp-hero-visual { padding-left: 0; }
  .lp-hero-chat { left: var(--sp-2); right: var(--sp-2); width: auto; }
  .lp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .lp-hero-grid, .lp-steps-section, .lp-more, .lp-final { padding-inline: var(--sp-2); }
  .lp-cta { width: 100%; }
}

/* Homepage: the two secondary links under the CTA, and the "tout ce que fait
   CastorOS" link under "Et en plus". */
.lp-links { display: flex; flex-wrap: wrap; column-gap: var(--sp-4); margin: var(--sp-3) 0 var(--sp-2); }
.lp-links .lp-demo-link { margin: 0; }
.lp-more-link { color: var(--color-white); }
.lp-more-cta {
  display: inline-block;
  margin-top: var(--sp-2);
  color: var(--color-accent-h);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========================
   How it works (/how-it-works) — the homepage's "En savoir plus".
   Apple feature-page style: one idea per chapter, big type, real
   screenshots in device frames. Classes prefixed .hiw-.
   ======================== */
.hiw { background: var(--color-bg); color: var(--color-text); }
.hiw-container { max-width: 1120px; margin-inline: auto; padding-inline: var(--sp-4); }
.hiw-narrow { max-width: 760px; }
.hiw-center { text-align: center; }

.hiw-eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--sp-2);
}
.hiw-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-4xl);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-3);
}
.hiw-h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-3xl); margin: 0 0 var(--sp-4); }
.hiw-body { font-size: var(--t-lg); line-height: 1.6; color: var(--color-muted); margin: 0 0 var(--sp-3); }
.hiw-pilot {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: var(--r-full);
  background: rgba(200,135,42,0.15);
  color: var(--color-accent-h);
}

/* Hero */
.hiw-hero {
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: calc(var(--sp-16) + var(--sp-2)) var(--sp-4) var(--sp-10);
}
.hiw-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 8vw, 5.25rem);
  line-height: 1.02;
  max-width: 14em;
  margin: 0 auto var(--sp-3);
}
.hiw-lede { font-size: var(--t-lg); line-height: 1.6; color: rgba(255,255,255,0.8); max-width: 36em; margin: 0 auto var(--sp-4); }
.hiw-hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-2) var(--sp-4); }
.hiw-link { color: #E8C98F; text-decoration: underline; text-underline-offset: 3px; }

/* Sticky chapter nav, Apple-style */
.hiw-subnav {
  position: sticky;
  top: 64px;
  z-index: 50;
  display: flex;
  gap: var(--sp-1);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.6rem var(--sp-4);
  justify-content: safe center;
  background: rgba(247,243,238,0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(26,24,20,0.08);
}
.hiw-subnav::-webkit-scrollbar { display: none; }
.hiw-subnav a {
  flex-shrink: 0;
  font-size: var(--t-xs);
  color: var(--color-text);
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-full);
}
.hiw-subnav a:hover { background: var(--color-surface); }
.hiw [id] { scroll-margin-top: 130px; }

/* Plain sections */
.hiw-section { padding: var(--sp-12) 0; }
.hiw-section--tight { padding: var(--sp-8) 0; }

/* Weekend timeline */
.hiw-timeline {
  list-style: none;
  padding: 0;
  margin: var(--sp-6) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.hiw-step { background: var(--color-white); border-radius: var(--r-xl); padding: var(--sp-4); box-shadow: var(--shadow-sm); }
.hiw-step-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  background: rgba(200,135,42,0.12);
  color: var(--color-accent-h);
  margin-bottom: var(--sp-2);
}
.hiw-step-when { display: block; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.hiw-step h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-2xl); margin: 0.35rem 0 var(--sp-1); }
.hiw-step p { margin: 0; line-height: 1.6; color: var(--color-muted); }

/* Chapters */
.hiw-chapter { padding: var(--sp-16) 0; }
.hiw-chapter--surface { background: var(--color-surface); }
.hiw-chapter--dark { background: var(--color-dark); color: var(--color-white); }
.hiw-chapter--dark .hiw-body { color: rgba(255,255,255,0.75); }
.hiw-chapter--dark .hiw-facts li { border-color: rgba(255,255,255,0.14); color: rgba(255,255,255,0.88); }
.hiw-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-10); align-items: center; }
.hiw-split--reverse .hiw-copy { order: 2; }
.hiw-facts { list-style: none; padding: 0; margin: 0; }
.hiw-facts li { padding: 0.75rem 0; border-top: 1px solid rgba(26,24,20,0.1); font-size: var(--t-base); }
.hiw-facts li::before { content: "✓"; color: var(--color-accent); font-weight: 700; margin-right: 0.6rem; }
.hiw-copy--center { text-align: center; max-width: 40em; margin: 0 auto var(--sp-6); }

/* Device frames */
.hiw-visual { display: flex; justify-content: center; }
.hiw-visual--stack { position: relative; display: block; padding-bottom: var(--sp-6); }
.hiw-phone {
  width: min(300px, 80%);
  background: #111;
  padding: 10px;
  border-radius: 38px;
  box-shadow: var(--shadow-lg);
}
.hiw-phone img { display: block; width: 100%; border-radius: 28px; }
.hiw-phone--overlap { position: absolute; right: -4%; bottom: 0; width: min(190px, 38%); border-radius: 30px; padding: 7px; }
.hiw-phone--overlap img { border-radius: 23px; }
.hiw-browser { background: var(--color-white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hiw-browser img { display: block; width: 100%; }
.hiw-browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: #ECE7DF; }
.hiw-browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #CFC8BD; }
.hiw-visual--stack .hiw-browser { width: 92%; }
.hiw-browser--wide { max-width: 980px; margin-inline: auto; }

/* Tiles */
.hiw-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-top: var(--sp-6); }
.hiw-tile { position: relative; background: var(--color-white); border-radius: var(--r-xl); padding: var(--sp-4); box-shadow: var(--shadow-sm); }
.hiw-tile .hiw-pilot { position: absolute; top: var(--sp-3); right: var(--sp-3); margin: 0; }
.hiw-tile-icon { color: var(--color-accent-h); display: inline-flex; margin-bottom: var(--sp-2); }
.hiw-tile h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-2xl); margin: 0 0 var(--sp-1); }
.hiw-tile p { margin: 0; line-height: 1.6; color: var(--color-muted); }

/* Compatibility */
.hiw-compat { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--sp-8); text-align: center; }
.hiw-compat p { margin: 0; font-size: var(--t-lg); }
.hiw-compat .hiw-compat-label { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.3rem; }
.hiw-compat-note { text-align: center; color: var(--color-muted); font-size: var(--t-sm); margin: var(--sp-4) 0 0; }

/* Story */
.hiw-story-beat { font-family: var(--font-display); font-size: var(--t-3xl); line-height: 1.25; margin: 0 0 var(--sp-3); }
.hiw-story-bio { color: rgba(255,255,255,0.7); line-height: 1.7; margin: var(--sp-4) 0 0; }
.hiw-story-bio a { color: var(--color-white); text-decoration: underline; }

/* Offer */
.hiw-offer { padding: var(--sp-16) 0; }
.hiw-offer .hiw-body { margin-bottom: var(--sp-4); }
.hiw-fineprint { font-size: var(--t-xs); color: var(--color-muted); margin: var(--sp-3) 0 0; }

@media (max-width: 900px) {
  .hiw-split { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hiw-split--reverse .hiw-copy { order: 0; }
  .hiw-timeline, .hiw-tiles { grid-template-columns: 1fr 1fr; }
  .hiw-chapter { padding: var(--sp-12) 0; }
  .hiw-subnav { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .hiw-container { padding-inline: var(--sp-2); }
  .hiw-timeline, .hiw-tiles { grid-template-columns: 1fr; }
  .hiw-hero { padding-inline: var(--sp-2); }
  .hiw-subnav { padding-inline: var(--sp-2); }
}
.hiw-chat { display: flex; flex-direction: column; gap: var(--sp-1); max-width: 420px; margin-inline: auto; width: 100%; }
.hiw-chat .lp-bubble { font-size: var(--t-base); }
.hiw-chat .lp-bubble--guest { margin-right: var(--sp-6); }
.hiw-chat .lp-notif { color: var(--color-text); margin-left: var(--sp-3); }

/* ── /airbnb-alternative (aa-) — reuses the hiw- page skeleton ── */
.aa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aa-changes { list-style: none; padding: 0; margin: var(--sp-4) 0 var(--sp-3); }
.aa-change { position: relative; padding: 0.85rem 0 0.85rem 2rem; border-top: 1px solid rgba(26,24,20,0.1); font-size: var(--t-lg); line-height: 1.5; }
.aa-change::before { position: absolute; left: 0; top: 0.85rem; font-weight: 700; }
.aa-change--no::before { content: "✕"; color: #B4412F; }
.aa-change--ok::before { content: "✓"; color: var(--color-accent); }
.hiw-fineprint a { color: inherit; text-decoration: underline; }
.aa-table-wrap { overflow-x: auto; margin-top: var(--sp-6); }
.aa-table { width: 100%; border-collapse: collapse; font-size: var(--t-base); line-height: 1.45; }
.aa-table th, .aa-table td { text-align: left; vertical-align: top; padding: 0.9rem 0.75rem; border-top: 1px solid rgba(26,24,20,0.1); }
.aa-table thead th { border-top: 0; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.aa-table tbody th { font-weight: 600; width: 30%; }
.aa-table td { color: var(--color-muted); width: 35%; }
.aa-table td.aa-win { color: var(--color-text); font-weight: 600; }
.aa-table td.aa-win::before { content: "✓ "; color: var(--color-accent); }
.aa-warning { max-width: 760px; margin: var(--sp-6) auto 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg); background: rgba(200,135,42,0.12); line-height: 1.6; }
.aa-faq details { border-top: 1px solid rgba(26,24,20,0.1); padding: var(--sp-2) 0; }
.aa-faq details:last-child { border-bottom: 1px solid rgba(26,24,20,0.1); }
.aa-faq summary { cursor: pointer; font-size: var(--t-lg); font-weight: 600; padding: 0.4rem 0; }
.aa-faq details p { margin: var(--sp-1) 0 var(--sp-2); line-height: 1.6; color: var(--color-muted); }
.hiw-offer.hiw-chapter--dark .hiw-fineprint { color: rgba(255,255,255,0.65); }
@media (max-width: 600px) {
  .aa-table th, .aa-table td { padding: 0.75rem 0.4rem; font-size: var(--t-sm); }
}
