/* ============================================================
   TravelMate — design system
   ============================================================ */
:root {
    --tm-primary: #4f46e5;
    --tm-primary-hover: #4338ca;
    --tm-primary-soft: #eef2ff;
    --tm-ink: #0f172a;
    --tm-body: #334155;
    --tm-muted: #64748b;
    --tm-line: #e2e8f0;
    --tm-surface: #ffffff;
    --tm-bg: #f1f5f9;
    --tm-sidebar: #0f172a;
    --tm-sidebar-ink: #cbd5e1;
    --tm-sidebar-active: #1e293b;
    --tm-success: #059669;
    --tm-danger: #dc2626;
    --tm-warning: #d97706;
    --tm-radius: 12px;
    --tm-radius-sm: 8px;
    --tm-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
    --tm-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--tm-bg);
    color: var(--tm-body);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { color: var(--tm-ink); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-weight: 700; }
h1:focus { outline: none; }

a { color: var(--tm-primary); text-decoration: none; }
a:hover { color: var(--tm-primary-hover); text-decoration: underline; }

.text-muted { color: var(--tm-muted) !important; }

code {
    background: #f8fafc;
    border: 1px solid var(--tm-line);
    border-radius: 5px;
    padding: 1px 6px;
    color: #be185d;
    font-size: .86em;
}

/* ---------- Buttons ---------- */
.btn { border-radius: var(--tm-radius-sm); font-weight: 500; padding: .5rem 1rem; }
.btn-sm { padding: .3rem .65rem; }
.btn-primary { background-color: var(--tm-primary); border-color: var(--tm-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--tm-primary-hover); border-color: var(--tm-primary-hover); }
.btn-outline-secondary { color: var(--tm-body); border-color: var(--tm-line); background: #fff; }
.btn-outline-secondary:hover { background: #f8fafc; color: var(--tm-ink); border-color: #cbd5e1; }
.btn-outline-primary { color: var(--tm-primary); border-color: #c7d2fe; }
.btn-outline-primary:hover { background: var(--tm-primary); border-color: var(--tm-primary); color: #fff; }
.btn-outline-danger { color: var(--tm-danger); border-color: #fecaca; }
.btn-outline-danger:hover { background: var(--tm-danger); border-color: var(--tm-danger); color: #fff; }
.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .18);
}
.btn-link { color: var(--tm-primary); }

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--tm-line);
    border-radius: var(--tm-radius);
    background: var(--tm-surface);
    box-shadow: var(--tm-shadow-sm);
}
.card-body { padding: 1.35rem 1.5rem; }

/* ---------- Forms ---------- */
.form-label { font-weight: 500; color: var(--tm-ink); font-size: .875rem; margin-bottom: .35rem; }
.form-control, .form-select {
    border: 1px solid var(--tm-line);
    border-radius: var(--tm-radius-sm);
    padding: .55rem .75rem;
    color: var(--tm-ink);
    background-color: #fff;
}
.form-control::placeholder { color: #94a3b8; }
.form-control:focus, .form-select:focus { border-color: var(--tm-primary); }
.form-text { color: var(--tm-muted); font-size: .8rem; }
.form-check-input:checked { background-color: var(--tm-primary); border-color: var(--tm-primary); }
.validation-message, .invalid-feedback { color: var(--tm-danger); font-size: .82rem; }
.valid.modified:not([type=checkbox]) { outline: none; }
.invalid { outline: none; border-color: var(--tm-danger) !important; }

/* ---------- Tables ---------- */
.table { color: var(--tm-body); margin-bottom: 0; }
.table > thead > tr > th {
    background: #f8fafc;
    color: var(--tm-muted);
    font-weight: 600;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--tm-line);
    padding: .7rem .9rem;
    white-space: nowrap;
}
.table > tbody > tr > td { padding: .7rem .9rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table-striped > tbody > tr:nth-of-type(odd) > td { background: #fcfdfe; }
.table tbody tr:hover > td { background: var(--tm-primary-soft); }
.table-card {
    background: #fff;
    border: 1px solid var(--tm-line);
    border-radius: var(--tm-radius);
    overflow: hidden;
    box-shadow: var(--tm-shadow-sm);
}

/* ---------- Badges ---------- */
.badge { font-weight: 600; padding: .35em .6em; border-radius: 6px; font-size: .72rem; }
.badge.bg-info { background: var(--tm-primary-soft) !important; color: var(--tm-primary) !important; }
.badge.bg-success { background: #dcfce7 !important; color: var(--tm-success) !important; }
.badge.bg-secondary { background: #f1f5f9 !important; color: var(--tm-muted) !important; }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--tm-radius-sm); border: 1px solid transparent; padding: .8rem 1rem; font-size: .9rem; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info { background: var(--tm-primary-soft); border-color: #c7d2fe; color: #3730a3; }

/* ============================================================
   Admin shell (platform + tenant)
   ============================================================ */
.tm-shell { display: flex; min-height: 100vh; }

.tm-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--tm-sidebar);
    color: var(--tm-sidebar-ink);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.tm-brand {
    display: flex; align-items: center; gap: .6rem;
    padding: 1.15rem 1.25rem;
    color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em;
    border-bottom: 1px solid rgba(255,255,255,.07);
    text-decoration: none;
}
.tm-brand:hover { color: #fff; text-decoration: none; }
.tm-brand-mark {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .95rem;
}
.tm-brand span small { display: block; font-weight: 500; font-size: .66rem; color: #64748b; letter-spacing: .06em; text-transform: uppercase; }
.tm-nav { padding: .75rem .6rem; flex: 1; overflow-y: auto; }
.tm-nav-label { color: #64748b; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; padding: .5rem .65rem .35rem; }
.tm-nav a {
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem .7rem; margin-bottom: 2px;
    color: var(--tm-sidebar-ink); border-radius: 8px;
    font-size: .9rem; font-weight: 500; text-decoration: none;
}
.tm-nav a:hover { background: var(--tm-sidebar-active); color: #fff; text-decoration: none; }
.tm-nav a.active { background: var(--tm-primary); color: #fff; }
.tm-sidebar-foot { padding: .85rem 1rem; border-top: 1px solid rgba(255,255,255,.07); font-size: .82rem; }
.tm-sidebar-foot .who { color: #fff; font-weight: 600; }
.tm-sidebar-foot .role { color: #64748b; font-size: .72rem; }

.tm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tm-content { padding: 1.9rem; max-width: 1200px; width: 100%; }

/* Page header used inside content */
.tm-page-head { margin-bottom: 1.35rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.tm-page-head h1 { font-size: 1.5rem; margin-bottom: .15rem; }
.tm-page-head p { color: var(--tm-muted); margin: 0; font-size: .92rem; }

/* Dashboard tiles */
.tm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1rem; }
.tm-tile {
    background: #fff; border: 1px solid var(--tm-line); border-radius: var(--tm-radius);
    padding: 1.25rem; text-decoration: none; color: inherit;
    box-shadow: var(--tm-shadow-sm); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    display: block;
}
.tm-tile:hover { transform: translateY(-2px); box-shadow: var(--tm-shadow); border-color: #c7d2fe; text-decoration: none; color: inherit; }
.tm-tile-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--tm-primary-soft); color: var(--tm-primary); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: .75rem; }
.tm-tile h3 { font-size: 1rem; margin: 0 0 .2rem; }
.tm-tile p { color: var(--tm-muted); font-size: .84rem; margin: 0; }

@media (max-width: 820px) {
    .tm-shell { flex-direction: column; }
    .tm-sidebar { width: 100%; height: auto; position: static; }
    .tm-nav-label { display: none; }
    .tm-content { padding: 1.1rem; }
}

/* ============================================================
   Auth pages (login / signin / register / verify)
   ============================================================ */
.tm-auth {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(1200px 600px at 100% 0%, #e0e7ff 0%, transparent 55%),
                radial-gradient(900px 500px at 0% 100%, #dbeafe 0%, transparent 50%),
                var(--tm-bg);
}
.tm-auth-card {
    width: 100%; max-width: 420px;
    background: #fff; border: 1px solid var(--tm-line); border-radius: 16px;
    box-shadow: var(--tm-shadow); padding: 2rem;
}
.tm-auth-card.wide { max-width: 720px; }
.tm-auth-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem; font-weight: 700; font-size: 1.15rem; color: var(--tm-ink); }
.tm-auth-card h1 { font-size: 1.35rem; margin-bottom: .3rem; }
.tm-auth-sub { color: var(--tm-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.tm-fieldset-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tm-muted); font-weight: 600; margin-bottom: .85rem; }

/* ---------- Landing ---------- */
.tm-landing {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 2rem 1rem;
    background: radial-gradient(1200px 600px at 50% -10%, #e0e7ff 0%, transparent 55%), var(--tm-bg);
}
.tm-landing-inner { max-width: 560px; }
.tm-landing .tm-brand-mark { width: 54px; height: 54px; font-size: 1.5rem; border-radius: 14px; margin: 0 auto 1.25rem; }
.tm-landing h1 { font-size: 2.1rem; margin-bottom: .5rem; }
.tm-landing p.lead { color: var(--tm-muted); font-size: 1.05rem; margin-bottom: 1.75rem; }
.tm-landing .actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Blazor error UI ---------- */
#blazor-error-ui {
    background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.1); bottom: 0; display: none;
    left: 0; padding: .75rem 1.25rem; position: fixed; width: 100%; z-index: 1000; color: #991b1b;
}
.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; border-radius: 8px; }
.blazor-error-boundary::after { content: "An error has occurred." }

/* ============================================================
   Tenant app dashboard (/app)
   ============================================================ */
.tm-app-topbar {
    background: #fff; border-bottom: 1px solid var(--tm-line);
    padding: .8rem 1.75rem; display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 10;
    flex-wrap: wrap; gap: .5rem;
}
.tm-app-topbar > div { flex-wrap: wrap; }
@media (max-width: 640px) {
    .tm-app-topbar { padding: .7rem 1rem; position: static; }
    .tm-app-content { padding: 1rem; }
}
.tm-app-topbar .brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--tm-ink); }
.tm-app-topbar .who { color: var(--tm-muted); font-size: .88rem; }
.tm-app-content { padding: 1.9rem; max-width: 1150px; margin: 0 auto; width: 100%; }

/* Profile menu (avatar + name → change password / sign out) */
.tm-profile {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .25rem .6rem .25rem .3rem; border-radius: 999px;
    border: 1px solid var(--tm-line); background: #fff; cursor: pointer; user-select: none;
    font-size: .85rem; color: var(--tm-body); font-weight: 500;
}
.tm-profile:hover { background: #f8fafc; border-color: #cbd5e1; }
.tm-dropdown[open] > .tm-profile { background: var(--tm-primary-soft); border-color: #c7d2fe; }
.tm-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.tm-profile-caret { color: var(--tm-muted); font-size: .7rem; }
@media (max-width: 640px) { .tm-profile-name { display: none; } }

/* Blank landing (/app) */
.tm-blank-home {
    min-height: 55vh; display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: .95rem; text-align: center;
}

/* Modules menu — native <details> dropdown (no JS) */
.tm-dropdown { position: relative; }
.tm-dropdown > summary { list-style: none; cursor: pointer; user-select: none; }
.tm-dropdown > summary::-webkit-details-marker { display: none; }
.tm-dropdown[open] > summary { background: var(--tm-primary, #4f46e5); color: #fff; border-color: var(--tm-primary, #4f46e5); }
.tm-dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px;
    background: #fff; border: 1px solid var(--tm-line); border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12); padding: .35rem; display: grid; gap: 2px;
}
.tm-dropdown-item {
    display: flex; align-items: center; gap: .35rem; padding: .5rem .7rem; border-radius: 8px;
    color: var(--tm-ink); text-decoration: none; font-size: .9rem; white-space: nowrap;
}
.tm-dropdown-item:hover { background: var(--tm-bg, #f1f5f9); color: var(--tm-primary, #4f46e5); }

.tm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 1rem; }
.tm-stat {
    background: #fff; border: 1px solid var(--tm-line); border-radius: var(--tm-radius);
    padding: 1.15rem 1.25rem; box-shadow: var(--tm-shadow-sm);
}
.tm-stat .k { color: var(--tm-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.tm-stat .v { color: var(--tm-ink); font-weight: 700; font-size: 1.55rem; line-height: 1.2; margin: .2rem 0; }
.tm-stat .sub { color: var(--tm-muted); font-size: .82rem; }
.tm-pillbadge {
    display: inline-block; background: #f1f5f9; color: #475569; border-radius: 20px;
    padding: .12rem .55rem; font-size: .72rem; margin: .15rem .25rem .15rem 0;
}

.tm-panel2 {
    background: #fff; border: 1px solid var(--tm-line); border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow-sm); overflow: hidden; margin-top: 1.5rem;
}
.tm-panel2 > .h {
    background: #f8fafc; border-bottom: 1px solid var(--tm-line); padding: .7rem 1.15rem;
    font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tm-muted); font-weight: 600;
}
.tm-panel2 > .b { padding: 1.15rem 1.25rem; }
.tm-kv { display: flex; padding: .5rem 0; border-bottom: 1px solid #f1f5f9; }
.tm-kv:last-child { border-bottom: none; }
.tm-kv .k { color: var(--tm-muted); min-width: 150px; }
.tm-kv .v { color: var(--tm-ink); font-weight: 500; }

/* ---------- Landing page (Opinex) ---------- */
.lp { --lp-primary: #4f46e5; --lp-ink: #0f172a; --lp-muted: #64748b; color: var(--lp-ink); }
.lp-container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.lp-muted { color: var(--lp-muted); font-size: .85rem; }

/* nav */
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid #eef0f4; }
.lp-nav-inner { display: flex; align-items: center; gap: 2rem; height: 68px; }
.lp-logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.2rem; color: var(--lp-ink); text-decoration: none; }
.lp-nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.lp-nav-links a { color: var(--lp-muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.lp-nav-links a:hover { color: var(--lp-ink); }
.lp-nav-cta { display: flex; gap: .6rem; }
@media (max-width: 820px) { .lp-nav-links { display: none; } .lp-nav-inner { gap: .75rem; } }

/* hero */
.lp-hero { padding: 5rem 0 4.5rem; background:
    radial-gradient(900px 480px at 15% -10%, #e0e7ff 0%, transparent 60%),
    radial-gradient(700px 420px at 95% 0%, #fdf2f8 0%, transparent 55%), #fff; }
.lp-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 920px) { .lp-hero-grid { grid-template-columns: 1fr; } .lp-hero { padding-top: 3rem; } }
.lp-badge { display: inline-block; background: #eef2ff; color: var(--lp-primary); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.1rem; }
.lp-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.lp-hero h1 em { font-style: normal; color: var(--lp-primary); }
.lp-lead { color: var(--lp-muted); font-size: 1.13rem; max-width: 34rem; margin-bottom: 1.6rem; }
.lp-hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.lp-hero-note { color: var(--lp-muted); font-size: .85rem; margin-top: 1rem; }

/* hero mocks */
.lp-hero-visual { position: relative; display: grid; gap: 1rem; justify-items: end; }
.lp-mock { background: #fff; border: 1px solid #eef0f4; border-radius: 14px; box-shadow: 0 12px 32px rgba(15,23,42,.08); padding: 1rem 1.15rem; width: min(340px, 100%); }
.lp-mock-review p { margin: .5rem 0 .6rem; font-size: .92rem; }
.lp-mock-head { display: flex; gap: .6rem; align-items: center; }
.lp-avatar-dot { width: 34px; height: 34px; border-radius: 50%; background: #4f46e5; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.lp-stars { color: #f59e0b; letter-spacing: 2px; font-size: .85rem; }
.lp-ai-chip { display: inline-block; background: #ecfdf5; color: #059669; font-size: .78rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }
.lp-mock-rank { width: min(300px, 100%); margin-right: 3rem; }
.lp-mock-title { font-weight: 600; font-size: .85rem; margin-bottom: .6rem; }
.lp-rank-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: .6rem; font-size: .78rem; color: var(--lp-muted); margin-bottom: .45rem; }
.lp-bar { height: 8px; border-radius: 99px; background: #e2e8f0; }
.lp-bar.you { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.lp-mock-score { display: flex; align-items: center; gap: .9rem; width: min(250px, 100%); margin-right: 1.5rem; }
.lp-score-ring { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #059669; border: 4px solid #34d399; }
@media (max-width: 920px) { .lp-hero-visual { justify-items: start; } .lp-mock-rank, .lp-mock-score { margin-right: 0; } }

/* sections */
.lp-section { padding: 4.5rem 0; }
.lp-alt { background: #f8fafc; }
.lp-section-head { text-align: center; max-width: 620px; margin: 0 auto 2.8rem; }
.lp-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: .6rem; }
.lp-section-head p { color: var(--lp-muted); font-size: 1.02rem; }

/* features */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 920px) { .lp-features { grid-template-columns: 1fr; } }
.lp-feature { background: #fff; border: 1px solid #eef0f4; border-radius: 16px; padding: 1.7rem 1.5rem; box-shadow: 0 4px 16px rgba(15,23,42,.04); }
.lp-feature-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.lp-feature h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .5rem; }
.lp-feature p { color: var(--lp-muted); font-size: .95rem; margin: 0; }

/* steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 920px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-step { text-align: center; padding: 1.4rem 1rem; }
.lp-step-no { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; background: var(--lp-primary); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: .9rem; }
.lp-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.lp-step p { color: var(--lp-muted); font-size: .93rem; margin: 0; max-width: 20rem; margin-inline: auto; }

/* pricing */
.lp-plan { border-radius: 16px; border: 1px solid #eef0f4; box-shadow: 0 4px 16px rgba(15,23,42,.04); }

/* cta band */
.lp-cta { background: linear-gradient(120deg, #4f46e5, #6d28d9); color: #fff; padding: 4rem 0; }
.lp-cta-inner { text-align: center; max-width: 640px; }
.lp-cta h2 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .6rem; }
.lp-cta p { opacity: .85; margin-bottom: 1.5rem; }

/* footer */
.lp-footer { background: #0f172a; color: #94a3b8; padding: 2.6rem 0; }
.lp-footer-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.lp-footer-brand { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 700; }
.lp-footer-links { display: flex; gap: 1.2rem; margin-left: auto; flex-wrap: wrap; }
.lp-footer-links a { color: #94a3b8; text-decoration: none; font-size: .9rem; }
.lp-footer-links a:hover { color: #fff; }
.lp-footer-copy { width: 100%; font-size: .8rem; opacity: .7; }

/* ---------- Landing v2: stats, problem, deep-dives, spy, faq ---------- */
.lp-fade { animation: lpFadeUp .7s ease both; }
.lp-float { animation: lpFadeUp .7s ease both, lpFloat 6s ease-in-out 1s infinite; }
.lp-delay-1 { animation-delay: .15s, 1.5s; }
.lp-delay-2 { animation-delay: .3s, 2s; }
@keyframes lpFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lpFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .lp-fade, .lp-float { animation: none; } }

/* stats strip */
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.5rem;
    background: #fff; border: 1px solid #eef0f4; border-radius: 16px; padding: 1.6rem 1.2rem; box-shadow: 0 10px 28px rgba(15,23,42,.06); }
@media (max-width: 820px) { .lp-stats { grid-template-columns: repeat(2, 1fr); } }
.lp-stat { text-align: center; padding: 0 .6rem; }
.lp-stat b { display: block; font-size: 1.9rem; font-weight: 800; color: #4f46e5; letter-spacing: -.02em; }
.lp-stat span { color: var(--lp-muted); font-size: .84rem; line-height: 1.35; display: inline-block; margin-top: .25rem; }
.lp-stats-note { text-align: center; color: #94a3b8; font-size: .75rem; margin: .8rem 0 0; }

/* problem band */
.lp-problem { background: #0f172a; color: #e2e8f0; padding: 4.5rem 0; }
.lp-problem-inner h2 { text-align: center; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.01em; margin-bottom: 2.4rem; color: #fff; }
.lp-problem-inner h2 em { font-style: normal; color: #a5b4fc; }
.lp-problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 920px) { .lp-problem-grid { grid-template-columns: 1fr; } }
.lp-problem-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 1.5rem 1.4rem; }
.lp-problem-card span { font-size: 1.7rem; }
.lp-problem-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin: .7rem 0 .4rem; }
.lp-problem-card p { color: #94a3b8; font-size: .92rem; margin: 0; }
.lp-problem-close { text-align: center; margin: 2.2rem 0 0; font-weight: 700; color: #a5b4fc; font-size: 1.05rem; }

/* feature deep-dives */
.lp-deep { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; align-items: center; padding: 2.6rem 0; }
@media (max-width: 920px) { .lp-deep { grid-template-columns: 1fr; gap: 1.8rem; } }
.lp-deep-flip .lp-deep-copy { order: 2; }
.lp-deep-flip .lp-deep-visual { order: 1; }
@media (max-width: 920px) { .lp-deep-flip .lp-deep-copy { order: 1; } .lp-deep-flip .lp-deep-visual { order: 2; } }
.lp-pill { display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 999px; margin-bottom: .9rem; }
.lp-deep-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: .7rem; }
.lp-deep-copy > p { color: var(--lp-muted); font-size: 1rem; margin-bottom: 1rem; }
.lp-checks { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.lp-checks li { padding-left: 1.7rem; position: relative; margin-bottom: .55rem; font-size: .95rem; }
.lp-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #059669; font-weight: 800; }
.lp-deep-visual { display: flex; justify-content: center; }

/* audit mock */
.lp-mock-audit { width: min(360px, 100%); }
.lp-audit-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; padding: .5rem 0; border-bottom: 1px dashed #eef0f4; }
.lp-ok { color: #059669; font-weight: 600; font-size: .82rem; white-space: nowrap; }
.lp-warn { color: #d97706; font-weight: 600; font-size: .82rem; white-space: nowrap; }
.lp-audit-score { display: flex; align-items: center; gap: .9rem; padding-top: 1rem; }

/* chat mock */
.lp-mock-chat { width: min(380px, 100%); display: grid; gap: .9rem; }
.lp-chat-review { background: #f8fafc; border-radius: 10px; padding: .85rem .95rem; }
.lp-chat-review p { margin: .45rem 0 0; font-size: .9rem; }
.lp-chat-reply { background: #eef2ff; border-radius: 10px; padding: .85rem .95rem; }
.lp-chat-reply p { margin: .35rem 0 .5rem; font-size: .9rem; }
.lp-ai-tag { color: #4f46e5; font-weight: 700; font-size: .78rem; }
.lp-chat-actions { font-size: .8rem; }

/* competitor mock */
.lp-mock-comp { width: min(380px, 100%); }
.lp-comp-table { width: 100%; border-collapse: collapse; font-size: .86rem; margin-bottom: .8rem; }
.lp-comp-table td { padding: .5rem .35rem; border-bottom: 1px dashed #eef0f4; white-space: nowrap; }
.lp-comp-table tr.you td { font-weight: 700; background: #f5f7ff; }
.lp-feed { display: grid; gap: .45rem; }
.lp-feed-item { background: #f8fafc; border-radius: 8px; padding: .5rem .7rem; font-size: .8rem; color: #475569; }

/* spy band */
.lp-spy { background: linear-gradient(120deg, #4f46e5, #7c3aed); color: #fff; padding: 4.5rem 0; }
.lp-spy-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 920px) { .lp-spy-inner { grid-template-columns: 1fr; } }
.lp-spy h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.01em; margin-bottom: .9rem; }
.lp-spy h2 em { font-style: normal; color: #fde68a; }
.lp-spy p { opacity: .9; margin-bottom: 1.5rem; max-width: 34rem; }
.lp-spy-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .lp-spy-cards { grid-template-columns: 1fr; } }
.lp-spy-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 1rem 1.1rem; font-size: .95rem; }
.lp-spy-card b { display: block; margin-top: .25rem; }
.lp-spy-card span { display: block; font-size: .8rem; opacity: .8; margin-top: .15rem; }

/* faq */
.lp-faq { background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: .8rem; }
.lp-faq summary { font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 1.6rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-weight: 800; color: #4f46e5; }
.lp-faq[open] summary::after { content: "–"; }
.lp-faq p { color: var(--lp-muted); font-size: .93rem; margin: .7rem 0 0; }

.lp-cta-sub { font-size: .85rem; opacity: .75; margin-top: 1rem; }

/* ---------- Landing: profile health check ---------- */
.lp-hc { background: #fff; border: 1px solid #eef0f4; border-radius: 18px; box-shadow: 0 14px 36px rgba(15,23,42,.08); padding: 2rem 2rem 2.2rem; }
.lp-hc-progress { display: flex; align-items: center; gap: .45rem; margin-bottom: 1.6rem; }
.lp-hc-dot { width: 26px; height: 6px; border-radius: 99px; background: #e2e8f0; transition: background .3s; }
.lp-hc-dot.done { background: #4f46e5; }
.lp-hc-dot.now { background: #a5b4fc; }
.lp-hc-count { margin-left: auto; font-size: .8rem; color: #94a3b8; font-weight: 600; }
.lp-hc-question { animation: lpFadeUp .35s ease both; }
.lp-hc-question h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .4rem; }
.lp-hc-why { color: var(--lp-muted); font-size: .92rem; margin-bottom: 1.3rem; }
.lp-hc-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.lp-hc-btn { border-radius: 10px; padding: .65rem 1.9rem; font-weight: 700; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.lp-hc-btn:hover { transform: translateY(-1px); }
.lp-hc-btn.yes { background: #059669; color: #fff; }
.lp-hc-btn.no { background: #fff; color: #dc2626; border-color: #fecaca; }
.lp-hc-btn.no:hover { background: #fef2f2; }
.lp-hc-btn.skip { background: #fff; color: #64748b; border-color: #e2e8f0; font-weight: 600; }
.lp-hc-btn.skip:hover { background: #f8fafc; }

.lp-hc-result { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; animation: lpFadeUp .45s ease both; }
@media (max-width: 640px) { .lp-hc-result { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.lp-hc-gauge { --p: 0; width: 148px; height: 148px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: conic-gradient(#4f46e5 calc(var(--p) * 1%), #e9ecf5 0); animation: lpGauge 1s ease both; }
.lp-hc-gauge-inner { width: 112px; height: 112px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lp-hc-gauge-inner b { font-size: 2.3rem; font-weight: 800; line-height: 1; color: #0f172a; }
.lp-hc-gauge-inner span { font-size: .78rem; color: #94a3b8; font-weight: 600; }
@keyframes lpGauge { from { background: conic-gradient(#4f46e5 0%, #e9ecf5 0); } }
.lp-hc-verdict h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .45rem; }
.lp-hc-verdict > p { color: var(--lp-muted); font-size: .96rem; margin-bottom: 1rem; }
.lp-hc-misses { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: .45rem; }
.lp-hc-misses li { background: #fef2f2; color: #b91c1c; border-radius: 8px; padding: .5rem .8rem; font-size: .88rem; text-align: left; }
.lp-hc-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.lp-hc-retake { background: none; border: none; color: #64748b; font-weight: 600; font-size: .9rem; cursor: pointer; }
.lp-hc-retake:hover { color: #0f172a; }

/* ---------- Landing: ROI calc, comparison, assurance ---------- */
.lp-roi { background: linear-gradient(135deg, #f5f7ff, #fdf4ff); border: 1px solid #e6e9f8; border-radius: 18px; padding: 1.8rem 1.9rem; margin-bottom: 2.6rem; }
.lp-roi-head h3 { font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; margin-bottom: .2rem; }
.lp-roi-head h3 em { font-style: normal; color: #4f46e5; }
.lp-roi-head p { color: var(--lp-muted); font-size: .92rem; margin-bottom: 1.2rem; }
.lp-roi-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
@media (max-width: 820px) { .lp-roi-grid { grid-template-columns: 1fr; } }
.lp-roi-controls { display: grid; gap: 1.3rem; }
.lp-roi-controls label { display: block; }
.lp-roi-controls label span { display: block; font-weight: 600; font-size: .92rem; }
.lp-roi-controls label small { color: #94a3b8; font-weight: 500; }
.lp-roi-controls label b { display: block; color: #4f46e5; font-size: 1.25rem; font-weight: 800; margin: .15rem 0 .3rem; }
.lp-roi-controls input[type=range] { width: 100%; accent-color: #4f46e5; }
.lp-roi-out { background: #fff; border: 1px solid #e6e9f8; border-radius: 14px; padding: 1.2rem 1.3rem; box-shadow: 0 8px 22px rgba(79,70,229,.08); }
.lp-roi-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed #eef0f4; }
.lp-roi-stat span { color: var(--lp-muted); font-size: .85rem; }
.lp-roi-stat b { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.lp-roi-stat.verdict b { color: #059669; }
.lp-roi-note { text-align: center; color: #94a3b8; font-size: .78rem; margin: 1rem 0 0; }

.lp-compare-wrap { overflow-x: auto; }
.lp-compare { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.lp-compare th, .lp-compare td { padding: .85rem 1rem; border-bottom: 1px solid #eef0f4; text-align: left; vertical-align: top; }
.lp-compare thead th { font-size: .85rem; color: var(--lp-muted); font-weight: 700; }
.lp-compare tbody td:first-child { font-weight: 700; white-space: nowrap; }
.lp-compare td:not(:first-child):not(.hl), .lp-compare th:not(.hl) { color: #64748b; }
.lp-compare .hl { background: #f5f7ff; font-weight: 600; color: #0f172a; }
.lp-compare thead .hl { color: #4f46e5; font-size: 1rem; border-top: 3px solid #4f46e5; border-radius: 8px 8px 0 0; }
.lp-compare tbody tr:last-child .hl { border-radius: 0 0 8px 8px; }

.lp-included { display: flex; flex-wrap: wrap; gap: .5rem .9rem; justify-content: center; margin-top: 1.1rem; font-size: .86rem; }
.lp-included span { color: var(--lp-muted); font-weight: 600; }
.lp-included em { font-style: normal; background: #f5f7ff; color: #4338ca; border-radius: 999px; padding: .25rem .7rem; font-weight: 600; }

.lp-assure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.2rem; }
@media (max-width: 920px) { .lp-assure { grid-template-columns: repeat(2, 1fr); } }
.lp-assure div { background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 1rem 1.1rem; font-size: 1.1rem; }
.lp-assure b { display: block; font-size: .95rem; margin-top: .3rem; }
.lp-assure span { display: block; color: var(--lp-muted); font-size: .8rem; margin-top: .2rem; }

/* ---------- Platform dashboard: website analytics ---------- */
.tm-an-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin-bottom: 1rem; }
@media (max-width: 1100px) { .tm-an-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .tm-an-tiles { grid-template-columns: repeat(2, 1fr); } }
.tm-an-tile { background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: .85rem 1rem; }
.tm-an-tile span { display: block; color: #64748b; font-size: .75rem; font-weight: 600; }
.tm-an-tile b { display: block; font-size: 1.55rem; font-weight: 800; color: #0f172a; line-height: 1.25; }
.tm-an-tile small { color: #94a3b8; font-size: .72rem; }
.tm-an-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: .9rem; }
@media (max-width: 920px) { .tm-an-grid { grid-template-columns: 1fr; } }
.tm-an-h { font-size: .85rem; font-weight: 700; color: #64748b; margin-bottom: .8rem; }
.tm-an-chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 1rem; }
.tm-an-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.tm-an-bar { width: 100%; max-width: 26px; background: #4f46e5; border-radius: 4px 4px 0 0; transition: height .4s ease; }
.tm-an-val { font-size: .68rem; color: #64748b; margin-bottom: 2px; }
.tm-an-day { font-size: .66rem; color: #94a3b8; margin-top: 4px; }
