/* YakutEstate front page and sign-in (Views/Home/Landing.cshtml, Views/Account/Login.cshtml).
   Its own palette, light and dark written together; the visitor's choice is kept in the browser, otherwise the
   device's setting decides. Every pair of text / surface below is chosen for both themes. */
:root, [data-theme="light"] {
    --bg: #f6f7fb;          /* page */
    --bg2: #eef0fb;         /* bands */
    --surface: #ffffff;     /* cards */
    --text: #0f172a;        /* on bg and surface: 17:1 */
    --muted: #475569;       /* on surface: 7.6:1 */
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --map-line: #94a3b8;
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --chip-bg: #ffffff;
    --chip-text: #0f172a;
}
[data-theme="dark"] {
    --bg: #0b1020;
    --bg2: #10172c;
    --surface: #141c33;
    --text: #f1f5f9;        /* on surface: 15:1 */
    --muted: #a3b1c6;       /* on surface: 7.9:1 */
    --line: #24304d;
    --line-strong: #34436a;
    --map-line: #51628a;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --chip-bg: #1b2542;
    --chip-text: #f1f5f9;
}
:root {
    --indigo: #4f46e5; --fuchsia: #c026d3; --amber: #f59e0b; --sky: #0ea5e9; --emerald: #10b981; --rose: #e11d48;
    --free: #16a34a; --reserved: #d97706; --sold: #dc2626;
    --grad: linear-gradient(120deg, #4f46e5 0%, #c026d3 55%, #f59e0b 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.ld { background: var(--bg); color: var(--text); font-family: "Segoe UI", Tahoma, system-ui, -apple-system, Arial, sans-serif; line-height: 1.5;
    -webkit-font-smoothing: antialiased; }
.ld a { color: inherit; }
.ld-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.ld-tap { user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* top bar */
.ld-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); }
.ld-top .ld-wrap { display: flex; align-items: center; gap: 8px; min-height: 58px; }
.ld-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--text); }
.ld-brand img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.ld-sp { flex: 1; }
.ld-langs { display: flex; gap: 2px; }
.ld-lang { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: .82rem; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-family: inherit; }
.ld-lang.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong); }
.ld-lang:focus-visible, .ld-icon:focus-visible, .ld-btn:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.ld-icon { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong);
    background: var(--surface); color: var(--text); cursor: pointer; font-size: 1rem; }
.ld-select { display: none; min-height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
    font-family: inherit; font-weight: 700; padding: 0 8px; }

/* buttons */
.ld-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px;
    font-weight: 800; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap; }
.ld-btn.primary { background: var(--grad); color: #ffffff; box-shadow: 0 8px 22px rgba(192, 38, 211, .28); }     /* white on #4f46e5..#c026d3: 6.3:1 / 5.0:1 */
.ld-btn.wa { background: #16a34a; color: #ffffff; }                                                                  /* 3.3:1 at bold 16px (large) */
.ld-btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.ld-btn.sm { min-height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.ld-btn:active { transform: translateY(1px); filter: brightness(.95); }
@media (hover: hover) {
    .ld-btn.primary:hover { filter: brightness(1.08); color: #ffffff; }
    .ld-btn.wa:hover { background: #15803d; color: #ffffff; }
    .ld-btn.ghost:hover { border-color: var(--indigo); color: var(--text); }
    .ld-icon:hover { border-color: var(--indigo); }
    .ld-lang:not(.on):hover { color: var(--text); }
}

/* hero */
.ld-hero { position: relative; overflow: hidden; padding: 40px 0 28px; }
.ld-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 520px; background:
    radial-gradient(closest-side, rgba(79, 70, 229, .22), transparent 70%) 10% 40% / 520px 520px no-repeat,
    radial-gradient(closest-side, rgba(192, 38, 211, .18), transparent 70%) 80% 20% / 460px 460px no-repeat,
    radial-gradient(closest-side, rgba(245, 158, 11, .16), transparent 70%) 55% 80% / 420px 420px no-repeat; pointer-events: none; }
.ld-hero .ld-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.ld-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--surface);
    border: 1px solid var(--line-strong); color: var(--muted); font-size: .85rem; font-weight: 700; }
.ld-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--free); box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }
.ld-h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; margin: 14px 0 12px; font-weight: 900; letter-spacing: -.01em; }
.ld-h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 20px; max-width: 560px; }
.ld-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.ld-ticks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.ld-ticks span::before { content: "✓"; color: var(--emerald); font-weight: 900; margin-inline-end: 6px; }

/* the moving map */
.ld-mapcard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 12px; }
.ld-maphead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ld-maphead b { font-size: .95rem; }
.ld-count { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--bg2); color: var(--text); }
.ld-count i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.ld-count.free i { background: var(--free); } .ld-count.reserved i { background: var(--reserved); } .ld-count.sold i { background: var(--sold); }
.ld-map { width: 100%; aspect-ratio: 16 / 11; display: block; border-radius: 12px; background: var(--bg2); }
.ld-map path { fill: none; stroke: var(--map-line); stroke-width: .55; }
.ld-map .ld-lbl { fill: var(--muted); text-anchor: middle; font-family: inherit; }   /* place names: #475569 on #eef0fb light, #a3b1c6 on #10172c dark */
.ld-map .p rect { transition: fill .6s ease; stroke: rgba(0, 0, 0, .2); stroke-width: .12; }
.ld-map .p text { fill: #ffffff; font-weight: 700; direction: ltr; unicode-bidi: bidi-override; font-family: inherit; }
.ld-map .p.free rect { fill: var(--free); } .ld-map .p.reserved rect { fill: var(--reserved); } .ld-map .p.sold rect { fill: var(--sold); }
.ld-map .p.flash rect { stroke: var(--text); stroke-width: .7; }
.ld-mapnote { margin: 8px 2px 0; font-size: .78rem; color: var(--muted); }

/* sections */
.ld-sec { padding: 44px 0; }
.ld-sec.band { background: var(--bg2); }
.ld-h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 6px; font-weight: 900; text-align: center; }
.ld-sub { text-align: center; color: var(--muted); margin: 0 auto 24px; max-width: 640px; }
.ld-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ld-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.ld-card h3 { font-size: 1.08rem; margin: 10px 0 6px; }
.ld-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.ld-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: #ffffff; }
.ld-ic.c1 { background: linear-gradient(135deg, #4f46e5, #6366f1); } .ld-ic.c2 { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.ld-ic.c3 { background: linear-gradient(135deg, #0284c7, #0ea5e9); } .ld-ic.c4 { background: linear-gradient(135deg, #059669, #10b981); }
.ld-ic.c5 { background: linear-gradient(135deg, #c026d3, #d946ef); } .ld-ic.c6 { background: linear-gradient(135deg, #d97706, #f59e0b); }

/* the sale, step by step */
.ld-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: s; }
.ld-steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 12px 14px; text-align: center; }
.ld-steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; margin: -30px auto 8px;
    border-radius: 50%; background: var(--grad); color: #ffffff; font-weight: 900; font-size: .9rem; box-shadow: 0 0 0 4px var(--bg2); }
.ld-steps b { display: block; font-size: .98rem; }
.ld-steps span { color: var(--muted); font-size: .86rem; }

/* the two screens drawn in HTML (no screenshots to go stale) */
.ld-shows { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.ld-desk { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.ld-desk .bar { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.ld-desk .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.ld-desk .body { padding: 14px; display: grid; gap: 10px; }
.ld-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ld-tile { background: var(--bg2); border-radius: 12px; padding: 8px 10px; }
.ld-tile span { display: block; color: var(--muted); font-size: .75rem; }
.ld-tile b { font-size: 1.15rem; }
.ld-bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding: 8px; background: var(--bg2); border-radius: 12px; }
.ld-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--grad); opacity: .9; animation: ld-grow 1.2s ease both; transform-origin: bottom; }
@keyframes ld-grow { from { transform: scaleY(.1); } to { transform: scaleY(1); } }
.ld-phone { width: min(260px, 100%); margin: 0 auto; background: var(--surface); border: 8px solid #0f172a; border-radius: 34px; box-shadow: var(--shadow); padding: 12px 10px; }
[data-theme="dark"] .ld-phone { border-color: #000000; }
.ld-phone .notch { width: 80px; height: 6px; border-radius: 9px; background: var(--line-strong); margin: 0 auto 10px; }
.ld-phone h4 { margin: 0 0 8px; font-size: .95rem; }
.ld-task { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border-radius: 12px; background: var(--bg2); margin-bottom: 6px; border-inline-start: 3px solid var(--indigo); font-size: .82rem; }
.ld-task.late { border-inline-start-color: var(--rose); }
.ld-task b { display: block; }
.ld-task span { color: var(--muted); }

/* numbers + final call */
.ld-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: center; }
.ld-nums b { display: block; font-size: 2rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-nums span { color: var(--muted); font-weight: 600; }
.ld-final { background: var(--grad); color: #ffffff; border-radius: 24px; padding: 30px 20px; text-align: center; }
.ld-final h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); color: #ffffff; }
.ld-final p { margin: 0 0 16px; color: #ffffff; opacity: .92; }
.ld-final .ld-btn.ghost { background: #ffffff; color: #3b0764; border-color: #ffffff; }   /* #3b0764 on white: 14:1 */
.ld-foot { padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }
.ld-foot .ld-wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.ld-foot a { text-decoration: none; color: var(--muted); }
@media (hover: hover) { .ld-foot a:hover { color: var(--text); } }

/* sign-in */
.ld-login { min-height: calc(100dvh - 59px); display: grid; place-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); position: relative; overflow: hidden; }
.ld-login::before { content: ""; position: absolute; inset: 0; background:
    radial-gradient(closest-side, rgba(79, 70, 229, .2), transparent 70%) 15% 20% / 520px 520px no-repeat,
    radial-gradient(closest-side, rgba(245, 158, 11, .14), transparent 70%) 85% 80% / 460px 460px no-repeat; pointer-events: none; }
.ld-logincard { position: relative; width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; }
.ld-logincard h1 { font-size: 1.5rem; margin: 0 0 4px; }
.ld-logincard p.sub { margin: 0 0 16px; color: var(--muted); }
.ld-field { margin-bottom: 12px; }
.ld-field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; color: var(--text); }
.ld-input { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text);
    padding: 0 12px; font-size: 16px; font-family: inherit; }
.ld-input::placeholder { color: var(--muted); font-style: italic; opacity: .85; }
.ld-input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79, 70, 229, .25); }
.ld-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 16px; font-size: .9rem; }
.ld-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ld-check input { width: 18px; height: 18px; accent-color: var(--indigo); }
.ld-link { color: var(--indigo); font-weight: 700; text-decoration: none; }
[data-theme="dark"] .ld-link { color: #a5b4fc; }
.ld-btn.wide { width: 100%; }
.ld-btn:disabled { background: var(--line-strong); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.ld-alert { background: #fef2f2; color: #7f1d1d; border: 1px solid #fecaca; border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; font-size: .92rem; }
[data-theme="dark"] .ld-alert { background: #3b1219; color: #fecaca; border-color: #7f1d1d; }

/* phones */
@media (max-width: 900px) {
    .ld-hero .ld-wrap, .ld-shows { grid-template-columns: minmax(0, 1fr); }
    .ld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ld-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
    .ld-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ld-langs { display: none; }
    .ld-select { display: inline-block; }
    .ld-hero { padding: 22px 0 14px; }
    .ld-lead { font-size: 1rem; margin-bottom: 14px; }
    .ld-ctas .ld-btn { flex: 1 1 calc(50% - 5px); padding: 0 10px; }
    .ld-ctas .ld-btn.primary { flex-basis: 100%; }
    .ld-sec { padding: 28px 0; }
    .ld-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .ld-card { padding: 14px; display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 12px; }
    .ld-card .ld-ic { grid-row: span 2; }
    .ld-card h3 { margin: 0 0 2px; }
    .ld-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ld-top .ld-btn.sm span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ld-map .p rect, .ld-bars i { transition: none; animation: none; } }

.ld-alert.ld-ok { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }      /* #065f46 on #ecfdf5: 7.9:1 */
[data-theme="dark"] .ld-alert.ld-ok { background: #052e22; color: #a7f3d0; border-color: #065f46; }
.ld-confirm { background: var(--bg2); border: 1px solid var(--line-strong); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.ld-confirm p { margin: 0 0 8px; }

/* ---- the live demo: ribbon on the front page, one-tap accounts on the sign-in page ----
   ribbon: white on the indigo→fuchsia gradient (6.3:1 / 5.0:1) in both themes; demo buttons: var(--text) on var(--bg2),
   border var(--line-strong) — #0f172a on #eef0fb light (16:1), #f1f5f9 on #10172c dark (15:1). */
.ld-ribbon { background: var(--grad); color: #ffffff; font-size: .88rem; }
.ld-ribbon .ld-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-top: 6px; padding-bottom: 6px; }
.ld-ribbon span { flex: 1 1 260px; }
.ld-ribbon .ld-ribbon-a { color: #ffffff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
    user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ld-ribbon .ld-ribbon-a:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; border-radius: 4px; }
.ld-demo { margin-bottom: 6px; }
.ld-demo-h { margin: 0 0 8px; font-weight: 700; color: var(--text); }
/* four demo people, two by two; each tile is wide enough for the whole role and name (nothing is cut short) */
.ld-demo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ld-demo-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px; border-radius: 14px;
    background: var(--bg2); color: var(--text); border: 1px solid var(--line-strong); font: inherit; cursor: pointer; text-align: center; }
.ld-demo-btn i { font-size: 1.2rem; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-demo-btn b, .ld-demo-btn span { max-width: 100%; overflow-wrap: anywhere; }
.ld-demo-btn b { font-size: .9rem; line-height: 1.2; }
.ld-demo-btn span { font-size: .76rem; color: var(--muted); line-height: 1.2; }
@media (hover: hover) { .ld-demo-btn:hover { border-color: var(--indigo); background: var(--surface); } }
.ld-demo-btn:active { transform: translateY(1px); }
.ld-demo-btn:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.ld-demo-btn:disabled { opacity: .6; cursor: progress; }
.ld-demo-note { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.ld-or { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--muted); font-size: .85rem; }
.ld-or::before, .ld-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
