/* ============================================================
   Martim Superhost — Design System (claude.ai-inspired light theme)
   ============================================================ */

:root {
    /* Palette — derived from the Martim logo (navy + light blue on cream) */
    --bg: #ffffff;
    --bg-soft: #faf9f5;
    --bg-cream: #f5f1e8;
    --bg-card: #ffffff;

    --text: #1a1a1a;
    --text-muted: #5a5955;
    --text-subtle: #8a8680;

    --border: #e8e5de;
    --border-strong: #d8d4cb;

    --primary: #1e3a5f;
    --primary-hover: #2a4f7c;
    --primary-soft: #5a8fb8;
    --primary-tint: #e8eef5;

    --success: #15803d;
    --success-soft: #dcfce7;
    --warning: #b45309;
    --warning-soft: #fef3c7;
    --danger: #dc2626;

    /* Dashboard aliases (kept for backwards compat with old variable names) */
    --bg-dark: var(--bg-soft);
    --primary-hover: #2a4f7c;
    --text-main: var(--text);
    --text-light: var(--text);
    --border-color: var(--border);

    /* Radius & shadow */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 14px 40px rgba(15, 23, 42, 0.08);

    /* Type */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Fraunces', 'Georgia', 'Times New Roman', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; }

p { color: var(--text-muted); }
a { color: var(--primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary-hover); }

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-soft);
    margin-bottom: 1.25rem;
}

.lead { font-size: 1.15rem; line-height: 1.55; max-width: 640px; }

/* Layout */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.bg-soft { background: var(--bg-soft); }
section.bg-cream { background: var(--bg-cream); }

/* Header / Nav */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: var(--text);
}
.logo a { color: inherit; }
.site-nav {
    display: flex; align-items: center; gap: 2rem;
}
.site-nav a.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}
.site-nav a.nav-link:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    color: #ffffff;
    transform: translateY(-1px);
}
.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-secondary:hover {
    background: var(--bg-soft);
    border-color: var(--text-subtle);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
}
.btn-ghost:hover { color: var(--primary); }

.btn-lg { padding: 0.95rem 1.8rem; font-size: 1rem; }
.full-width { width: 100%; }
.full { width: 100%; justify-content: center; }

/* Hero */
.hero {
    text-align: center;
    padding: 112px 24px 80px;
    max-width: 820px;
    margin: 0 auto;
}
.hero h1 { margin-bottom: 1.25rem; font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
.hero .lead { margin: 0 auto 2rem; }
.hero .cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero .fineprint { margin-top: 1rem; font-size: 0.85rem; color: var(--text-subtle); }

/* Inputs */
input, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}
textarea { resize: vertical; font-family: var(--font-sans); }
label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

/* Modals */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 999;
    padding: 1rem;
}
.hidden { display: none !important; }
.modal-content {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.24s ease;
}
.modal-content h2 { margin-bottom: 1.25rem; font-size: 1.5rem; }
.close-btn {
    position: absolute; top: 0.9rem; right: 1.2rem;
    background: none; border: none;
    font-size: 1.4rem; color: var(--text-subtle); cursor: pointer;
    line-height: 1;
}
.close-btn:hover { color: var(--text); }
.switch-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.feat-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--primary-tint);
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.95rem; }

/* Steps (how it works) */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}
.step-item { text-align: left; }
.step-n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.step-item h3 { margin-bottom: 0.5rem; }

/* Pricing */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    align-items: stretch;
}
.price-card {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex; flex-direction: column;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.price-card:hover { border-color: var(--border-strong); }
.price-card.featured {
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.price-card.featured:hover { transform: translateY(-6px); }
.price-badge {
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}
.plan-hint {
    font-size: 0.9rem;
    color: var(--text-subtle);
    margin-top: 0.25rem;
}
.price {
    margin: 1.5rem 0;
    display: flex; align-items: baseline; gap: 0.25rem;
}
.price .currency { font-size: 1.1rem; color: var(--text-muted); }
.price .amount {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--text);
}
.price .period { font-size: 0.95rem; color: var(--text-muted); }
.price-card ul {
    list-style: none;
    margin: 0.5rem 0 1.75rem;
    flex: 1;
}
.price-card li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-soft);
    font-weight: 700;
}

/* FAQ */
.faq-list { margin-top: 2rem; }
.faq-list details {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}
.faq-list summary {
    cursor: pointer;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text);
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--text-subtle);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Chat mockup (demo) */
.chat-mockup {
    max-width: 420px;
    margin: 2.5rem auto 0;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex; flex-direction: column; gap: 0.6rem;
}
.chat-bubble {
    max-width: 80%;
    padding: 0.7rem 1rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.45;
}
.chat-bubble.guest {
    align-self: flex-start;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-top-left-radius: 6px;
}
.chat-bubble.martim {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border-top-right-radius: 6px;
}
.chat-bubble.small {
    align-self: center;
    background: transparent;
    color: var(--text-subtle);
    font-size: 0.75rem;
    padding: 0.25rem;
}

/* CTA banner */
.cta-final {
    text-align: center;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    margin: 2rem 0 4rem;
}
.cta-final h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-final p { color: rgba(255, 255, 255, 0.8); margin-bottom: 1.75rem; }
.cta-final .btn-primary {
    background: #fff;
    color: var(--primary);
}
.cta-final .btn-primary:hover { background: #f3f4f6; color: var(--primary); }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 64px 0 32px;
    margin-top: 48px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}
.footer-grid .logo { margin-bottom: 0.75rem; }
.footer-grid h4 { margin-bottom: 1rem; color: var(--text); }
.footer-grid a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.25rem 0;
}
.footer-grid a:hover { color: var(--primary); }
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-subtle);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

/* Center helper */
.center { text-align: center; }
.muted { color: var(--text-muted); }

/* Mobile */
@media (max-width: 760px) {
    .site-nav { gap: 0.75rem; }
    .site-nav a.nav-link { display: none; }
    section { padding: 64px 0; }
    .hero { padding: 64px 24px 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Dashboard — mesma paleta clara
   ============================================================ */

.dashboard-body {
    display: flex;
    min-height: 100vh;
    background: var(--bg-soft);
    overflow: hidden;
}
.sidebar {
    width: 260px;
    background: var(--bg);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    padding: 1.5rem;
    height: 100vh;
    position: sticky; top: 0;
}
.sidebar .logo { 
    margin-bottom: 1.5rem; 
    display: flex; 
    align-items: center; 
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
}
.sidebar nav {
    flex: 1;
    display: flex; flex-direction: column;
    gap: 0.25rem;
}
.sidebar nav a {
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}
.sidebar nav a:hover, .sidebar nav a.active {
    background: var(--bg-soft);
    color: var(--primary);
}
.user-profile {
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex; flex-direction: column;
    gap: 0.5rem;
    color: var(--text);
}
.logout { color: var(--danger); font-size: 0.85rem; }
.logout:hover { color: var(--danger); text-decoration: underline; }

.dashboard-content {
    flex: 1;
    padding: 3rem 2.5rem;
    overflow-y: auto;
    height: 100vh;
}
.dash-header h1 { font-size: 2rem; margin-bottom: 0.25rem; }
.dash-header p { font-size: 1rem; color: var(--text-muted); }

/* Wizard cards */
.wizard-container {
    max-width: 760px;
    margin-top: 2.5rem;
    display: flex; flex-direction: column;
    gap: 1.25rem;
}
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    gap: 1rem;
}
.step-num {
    background: var(--primary);
    color: #fff;
    width: 32px; height: 32px;
    border-radius: var(--radius-pill);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}
.step-title { flex: 1; }
.step-title h2 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.step-title p { font-size: 0.9rem; margin-top: 0.2rem; }

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 500;
}
.status-badge.pending {
    background: var(--warning-soft);
    color: var(--warning);
    border: 1px solid rgba(180, 83, 9, 0.2);
}
.status-badge.success {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid rgba(21, 128, 61, 0.2);
}
.card-body { padding: 1.5rem; }
.card-body p { margin-bottom: 1.25rem; }

/* QR */
.qr-container {
    text-align: center;
    padding: 1.25rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    background: var(--bg-soft);
}
#qr-image {
    width: 250px; height: 250px;
    border-radius: var(--radius-sm);
    display: block;
    margin: 1rem auto;
    background: #fff;
    padding: 10px;
    border: 1px solid var(--border);
}
.small-text { font-size: 0.85rem; margin-bottom: 0 !important; color: var(--text-subtle) !important; }

/* Plan gating visuals */
.plan-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: var(--accent-soft, rgba(59,130,246,0.12));
    color: var(--accent, #3b82f6);
    border-radius: 999px;
    vertical-align: middle;
}
.plan-gated.locked {
    opacity: 0.65;
    position: relative;
}
.plan-gated.locked input,
.plan-gated.locked select,
.plan-gated.locked textarea {
    background: rgba(0,0,0,0.04);
    cursor: not-allowed;
}
.plan-gated.locked legend { color: var(--text-subtle); }

/* Success card */
.success-card .card-body {
    padding: 3rem 2rem;
    background: var(--success-soft);
    border: 1px solid rgba(21, 128, 61, 0.25);
    border-radius: var(--radius);
}
.icon-success { font-size: 3.5rem; color: var(--success); margin-bottom: 1rem; line-height: 1; }
.centered { text-align: center; }

/* Dashboard property list cards */
#properties-list .card {
    padding: 1rem 1.25rem;
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
}

/* Impersonation banner (PLANO_STAFF_SEPARATION.md, Etapa 3b) */
.impersonation-banner {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: #fff3cd;
    border-bottom: 2px solid #d39e00;
    color: #664d03;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.impersonation-banner__text strong { color: #5a3e00; font-weight: 700; }
.impersonation-banner__text span { display: inline-block; margin-left: 0.5rem; }
.impersonation-banner__exit {
    background: #5a3e00;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.impersonation-banner__exit:hover { background: #3d2900; }
