/* SalesMap public site plan — MindForge brand tokens */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/inter-var.woff2') format('woff2');
}

:root {
    --ink: #16203b;
    --body: #3a4358;
    --muted: #6b7280;
    --line: #e5e8f0;
    --bg: #f6f7fb;
    --brand-deep: #4f46e5;
    --navy: #16203b;
    --green: #16a34a;
    --red: #dc2626;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }

html, body { height: 100%; }

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font: 400 16px/1.55 var(--font);
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.site-page { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; }

.site-page > header { margin-bottom: 1.1rem; }

.head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1.25rem;
}

.company-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.company-brand img { max-height: 38px; width: auto; }
.company-brand span { font-weight: 600; color: var(--ink); font-size: 0.95rem; }

.site-page h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.summary { margin: 0; color: var(--muted); font-size: 0.95rem; }
.contact-phone { margin-left: auto; color: var(--ink); font-size: 0.95rem; font-weight: 600; }
.plate-phone { color: #aab3c7; font-weight: 500; }

.plan-wrap {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(22, 32, 59, 0.05);
}

.plan-wrap img { display: block; width: 100%; height: auto; }

.plan-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.unit { stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill-opacity 120ms ease; }
.unit.is-available { fill: rgba(34, 197, 94, 0.35); stroke: #16a34a; }
.unit.is-sold { fill: rgba(239, 68, 68, 0.35); stroke: #dc2626; }
.unit:hover { fill-opacity: 0.75; }

.tooltip {
    position: absolute;
    transform: translate(-50%, -100%);
    background: var(--navy);
    color: #fff;
    border-radius: 9px;
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(22, 32, 59, 0.35);
}

.tooltip a { color: #b0b9ff; pointer-events: auto; font-weight: 550; }

.legend-bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0.85rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.legend { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend::before { content: ""; width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.legend.available::before { background: rgba(34, 197, 94, 0.55); border: 1px solid #16a34a; }
.legend.sold::before { background: rgba(239, 68, 68, 0.55); border: 1px solid #dc2626; }
.legend-bar .print-link { margin-left: auto; color: var(--brand-deep); font-weight: 500; text-decoration: none; }
.legend-bar .print-link:hover { text-decoration: underline; }

/* --- MindForge brand plate (footer) --- */
.brand-plate {
    background: var(--navy);
    color: #aab3c7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    font-size: 0.82rem;
}

.brand-plate .plate-app {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    color: #e7eaf2;
}

.plate-logo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    padding: 3px 7px;
    flex-shrink: 0;
}

.plate-logo-chip img { max-height: 20px; width: auto; display: block; }

.plate-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #aab3c7;
    text-decoration: none;
    font-weight: 500;
}

.plate-credit strong { color: #fff; font-weight: 650; }
.plate-credit:hover strong { color: #c7cbff; }

.plate-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 7px;
    flex-shrink: 0;
}

.plate-chip img { width: 18px; height: auto; display: block; }

/* --- Landing page --- */
.landing-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.landing-topbar .brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.landing-topbar .brand-logo { width: 30px; height: auto; display: block; }
.landing-topbar .brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.landing-topbar .brand-by { font-size: 0.8rem; color: var(--muted); font-weight: 500; margin-top: 0.2em; }

.landing { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem 3rem; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    padding: 3.5rem 0 3rem;
}

.hero-copy h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    font-weight: 750;
    color: var(--ink);
    margin: 0 0 1rem;
}

.hero-copy p { margin: 0 0 1.5rem; font-size: 1.02rem; color: var(--body); max-width: 46ch; }

.hero-cta {
    display: inline-block;
    background: #6366f1;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 9px;
}

.hero-cta:hover { background: var(--brand-deep); }

.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 30px rgba(22, 32, 59, 0.12)); }

.parcel { stroke-width: 2; }
.parcel.p-green { fill: rgba(34, 197, 94, 0.32); stroke: #16a34a; }
.parcel.p-red { fill: rgba(239, 68, 68, 0.32); stroke: #dc2626; }
.hero-dot { fill: #16203b; }

@media (prefers-reduced-motion: no-preference) {
    .parcels .parcel { opacity: 0; animation: parcel-in 480ms ease forwards; }
    .parcels .parcel:nth-child(1) { animation-delay: 80ms; }
    .parcels .parcel:nth-child(2) { animation-delay: 150ms; }
    .parcels .parcel:nth-child(3) { animation-delay: 220ms; }
    .parcels .parcel:nth-child(4) { animation-delay: 290ms; }
    .parcels .parcel:nth-child(5) { animation-delay: 360ms; }
    .parcels .parcel:nth-child(6) { animation-delay: 430ms; }
    .parcels .parcel:nth-child(7) { animation-delay: 500ms; }
    .parcels .parcel:nth-child(8) { animation-delay: 570ms; }
    .parcels .parcel:nth-child(9) { animation-delay: 640ms; }
    .parcels .parcel:nth-child(10) { animation-delay: 710ms; }
    .parcels .parcel:nth-child(11) { animation-delay: 780ms; }
    .hero-tip, .hero-dot { opacity: 0; animation: parcel-in 420ms ease 950ms forwards; }
    @keyframes parcel-in { to { opacity: 1; } }
}

.projects h2 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 1rem; }
.projects-empty { color: var(--muted); }

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.project-card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: box-shadow 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.project-card:hover {
    border-color: #c7cbff;
    box-shadow: 0 10px 30px rgba(22, 32, 59, 0.12);
    transform: translateY(-2px);
}

.project-thumb { display: block; aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.project-body { display: grid; gap: 0.2rem; padding: 0.85rem 1rem 1rem; }

.project-company {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 550;
}

.project-company img { max-height: 18px; width: auto; }

.project-name { font-weight: 650; font-size: 1.02rem; letter-spacing: -0.01em; }
.project-meta { color: var(--muted); font-size: 0.85rem; }

@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; gap: 2rem; padding: 2.25rem 0 2.25rem; }
    .hero-art { max-width: 480px; }
}

@media (max-width: 720px) {
    .site-page { padding: 1rem 0.9rem 2rem; }
    .site-page h1 { font-size: 1.25rem; }
    .summary { font-size: 0.88rem; }
    .company-brand img { max-height: 30px; }
    .plan-wrap { border-radius: 9px; }
    .tooltip { font-size: 0.85rem; max-width: calc(100vw - 2.5rem); white-space: normal; }
    .legend-bar { flex-wrap: wrap; gap: 0.75rem 1.25rem; }
    .brand-plate { flex-direction: column; gap: 0.5rem; padding: 0.9rem 1rem; text-align: center; }
}
