/* SafeBuy — web visual system. Tokens and rules mirror design/STYLE.md. */

:root {
    --ink: #17140f;
    --ink-2: #5f574b;
    --ink-3: #948a7a;
    --paper: #f4efe6;
    --card: #fffcf7;
    --line: #e6dccb;
    --pine: #1b4332;
    --pine-2: #24563f;
    --pine-soft: #e2ebe4;
    --clay: #c4512c;
    --clay-soft: #f6e4da;
    --glass: rgba(255, 252, 247, 0.14);
    --glass-line: rgba(255, 252, 247, 0.22);

    --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: "Instrument Sans", ui-sans-serif, -apple-system, "Helvetica Neue", "Noto Sans", sans-serif;

    --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
    --r-panel: 18px; --r-field: 12px; --r-pill: 999px;
    --shadow: 0 24px 60px -24px rgba(23, 20, 15, 0.35);
    --rail: 88px;
    --bar: 72px;
    --gutter: var(--s5);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, .serif {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0;
}
h1 { font-size: 40px; line-height: 1.05; }
h2 { font-size: 28px; line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 600; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
.eyebrow {
    font-size: 12px; line-height: 1.2; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.muted { color: var(--ink-2); }
.small { font-size: 14px; line-height: 1.45; }
.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }

/* ---------- App frame ---------- */

.app { min-height: 100dvh; }
.has-rail .app { padding-left: var(--rail); }

.rail {
    position: fixed; inset: 0 auto 0 0; z-index: 40;
    width: var(--rail);
    display: flex; flex-direction: column; align-items: center;
    gap: 4px;
    padding: var(--s3) 0 var(--s2);
    background: var(--card);
    border-right: 1px solid var(--line);
}
.rail-logo {
    display: grid; place-items: center;
    width: 48px; height: 48px; margin-bottom: var(--s3);
    border-radius: 14px;
    background: var(--ink); color: var(--card);
    font-family: var(--serif); font-size: 26px; line-height: 1;
    text-decoration: none;
}
.rail-items { display: contents; }
.rail-spacer { flex: 1; }
.rail-item {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    width: 72px; padding: 8px 0;
    border: 0; background: none; cursor: pointer;
    font: 500 11px/1.2 var(--sans); letter-spacing: 0.01em;
    color: var(--ink-2); text-decoration: none;
    border-radius: 14px;
    transition: color 150ms var(--ease), background 150ms var(--ease);
}
.rail-item svg { width: 22px; height: 22px; }
.rail-item:hover { color: var(--ink); background: var(--paper); }
.rail-item.is-active { color: var(--pine); background: var(--pine-soft); }
.rail-item.is-active::before {
    content: ""; position: absolute; left: -4px; top: 50%;
    width: 4px; height: 4px; margin-top: -2px;
    border-radius: 50%; background: var(--clay);
}
.rail form { margin: 0; }

.main { position: relative; min-height: 100dvh; }
.mode-immersive .main { height: 100dvh; overflow: hidden; }

.page {
    max-width: calc(960px + 2 * var(--gutter));
    margin: 0 auto;
    padding: var(--s6) var(--gutter) var(--s7);
}
.page.narrow { max-width: calc(720px + 2 * var(--gutter)); }

.page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: var(--s3); margin-bottom: var(--s4);
}
.page-head .eyebrow { margin-bottom: var(--s1); }
.page-head p.muted { margin-top: var(--s1); max-width: 56ch; }

@media (max-width: 799px) {
    :root { --gutter: var(--s3); }
    .has-rail .app { padding-left: 0; padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }
    .rail {
        inset: auto 0 0 0; width: auto; height: calc(var(--bar) + env(safe-area-inset-bottom));
        flex-direction: row; justify-content: flex-start;
        padding: 0 var(--s1) env(safe-area-inset-bottom);
        border-right: 0; border-top: 1px solid var(--line);
        overflow-x: auto; scrollbar-width: none;
    }
    .rail::-webkit-scrollbar { display: none; }
    .rail-logo, .rail-spacer { display: none; }
    .rail-item { flex: 0 0 auto; width: 68px; }
    .rail-item.is-active::before { left: 50%; top: 2px; margin: 0 0 0 -2px; }
    .mode-immersive .main { height: calc(100dvh - var(--bar) - env(safe-area-inset-bottom)); min-height: 0; }
    .page { padding-top: var(--s5); }
    .page-head { flex-direction: column; align-items: flex-start; }
    h1 { font-size: 36px; }
}
@media (max-width: 479px) { :root { --gutter: var(--s2); } }

/* ---------- Toasts ---------- */

.toasts {
    position: fixed; top: var(--s3); right: var(--s3); z-index: 60;
    display: grid; gap: var(--s1); width: min(380px, calc(100vw - 2 * var(--s2)));
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: flex; gap: 12px; align-items: flex-start;
    padding: var(--s2);
    background: var(--card); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--r-panel);
    box-shadow: var(--shadow);
    font-size: 14px; line-height: 1.45;
    animation: toast-in 220ms var(--ease) both;
}
.toast::before {
    content: ""; flex: 0 0 8px; height: 8px; margin-top: 6px;
    border-radius: 50%; background: var(--pine);
}
.toast.is-status { animation: toast-in 220ms var(--ease) both, toast-out 300ms var(--ease) 6s forwards; }
.toast.is-match::before { background: var(--clay); }
.toast.is-error { background: var(--clay-soft); border-color: transparent; color: #7a2e15; }
.toast.is-error::before { background: var(--clay); }
.toast ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); visibility: hidden; } }
@media (max-width: 799px) { .toasts { top: var(--s2); right: var(--s2); } }

/* ---------- Buttons ---------- */

.btn, button {
    -webkit-appearance: none; appearance: none;
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
    min-height: 56px; padding: 0 var(--s3);
    border: 1px solid transparent; border-radius: var(--r-pill);
    font: 600 16px/1 var(--sans); letter-spacing: 0;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    background: transparent; color: var(--ink);
    transition: background 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease);
}
.btn svg, button svg { width: 18px; height: 18px; flex: none; }
.btn-primary, .btn-green { background: var(--pine); color: var(--card); }
.btn-primary:hover, .btn-green:hover { background: var(--pine-2); }
.btn-secondary, .btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-secondary:hover, .btn-ghost:hover { border-color: var(--ink-3); background: var(--card); }
.btn-danger, .btn-clay { background: var(--clay); color: var(--card); }
.btn-quiet {
    min-height: 0; padding: 0; border: 0; border-radius: 0;
    color: var(--ink-2); font-weight: 500; text-decoration: underline;
    text-decoration-color: var(--line); text-underline-offset: 4px;
}
.btn-quiet:hover { color: var(--ink); text-decoration-color: currentColor; }
.btn-sm { min-height: 40px; padding: 0 var(--s2); font-size: 14px; }
.btn-block { width: 100%; }
button:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 1; color: var(--ink-3); background: var(--paper); border-color: var(--line); }

/* ---------- Fields ---------- */

.field { display: grid; gap: var(--s1); }
.field > span:first-child, .field-label {
    font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.field small { color: var(--ink-3); font-size: 13px; }
input, select, textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px var(--s2);
    font: 400 16px/1.4 var(--sans); color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line); border-radius: var(--r-field);
    transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
select {
    -webkit-appearance: none; appearance: none; padding-right: var(--s5);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235f574b' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 18px center;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:hover, select:hover, textarea:hover { border-color: #d6c9b2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 1px var(--pine); }
.affix { position: relative; }
.affix input { padding-right: 64px; }
.affix em {
    position: absolute; right: var(--s2); top: 50%; transform: translateY(-50%);
    font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-3);
    pointer-events: none;
}

.form-stack { display: grid; gap: var(--s3); }
.fieldset {
    margin: 0; padding: var(--s4); min-width: 0;
    border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--card);
    display: grid; gap: var(--s3);
}
.fieldset legend { float: left; width: 100%; padding: 0; margin-bottom: 0; }
.fieldset legend + * { clear: both; }
.fieldset-head { display: grid; gap: 4px; }
.fieldset-head h2 { font-size: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
@media (max-width: 639px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .fieldset { padding: var(--s3); } }

.form-bar {
    position: sticky; bottom: var(--s2); z-index: 5;
    display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
    padding: var(--s1) var(--s1) var(--s1) var(--s3);
    background: var(--ink); color: var(--card);
    border-radius: var(--r-pill); box-shadow: var(--shadow);
}
.form-bar p { font-size: 14px; color: rgba(255, 252, 247, 0.7); }
.form-bar .btn-primary { background: var(--card); color: var(--ink); }
.form-bar .btn-primary:hover { background: #fff; }
@media (max-width: 799px) { .form-bar { bottom: calc(var(--bar) + var(--s2)); } }

.dropzone {
    position: relative; display: grid; place-items: center; gap: var(--s1);
    padding: var(--s5) var(--s3); text-align: center;
    border: 1.5px dashed #d6c9b2; border-radius: var(--r-panel); background: var(--paper);
    color: var(--ink-2); cursor: pointer;
    transition: border-color 150ms var(--ease), background 150ms var(--ease);
}
.dropzone:hover { border-color: var(--pine); background: var(--pine-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.dropzone svg { width: 28px; height: 28px; color: var(--pine); }
.dropzone strong { color: var(--ink); font-weight: 600; }
.thumbs { display: flex; gap: var(--s1); flex-wrap: wrap; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-field); }

/* ---------- Pills ---------- */

.pill {
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 12px;
    border-radius: var(--r-pill);
    font: 600 12px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
    background: var(--paper); color: var(--ink-2); border: 1px solid var(--line);
    white-space: nowrap;
}
.pill svg { width: 14px; height: 14px; }
.pill-verified, .pill-published, .pill-ok { background: var(--pine-soft); color: var(--pine); border-color: transparent; }
.pill-rejected, .pill-bad { background: var(--clay-soft); color: var(--clay); border-color: transparent; }
.pill-glass {
    background: var(--glass); color: var(--card); border-color: var(--glass-line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}

/* ---------- Panels & rows ---------- */

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); }
.rows { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.row-item {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
    gap: var(--s3); padding: var(--s3);
}
.row-item + .row-item { border-top: 1px solid var(--line); }
a.row-item { text-decoration: none; transition: background 150ms var(--ease); }
a.row-item:hover { background: #fbf7f0; }
.row-main { display: grid; gap: 4px; min-width: 0; }
.row-main h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--ink-2); font-size: 14px; }
.row-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.row-side { display: flex; align-items: center; gap: var(--s2); }
.row-price { font-family: var(--serif); font-size: 28px; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.row-price small, .price small { font: 600 12px/1 var(--sans); letter-spacing: 0.08em; color: var(--ink-3); margin-left: 4px; }
.row-actions { display: flex; gap: var(--s1); }
.row-actions form { margin: 0; }
.thumb {
    width: 64px; height: 64px; border-radius: var(--r-field); flex: none;
    background: var(--paper) center/cover no-repeat;
    border: 1px solid var(--line);
    display: grid; place-items: center; color: var(--ink-3);
}
.thumb svg { width: 24px; height: 24px; }
.avatar {
    width: 48px; height: 48px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: var(--ink); color: var(--card);
    font-family: var(--serif); font-size: 22px; line-height: 1;
}
.avatar.lg { width: 56px; height: 56px; font-size: 26px; }
.chev { width: 20px; height: 20px; color: var(--ink-3); }

@media (max-width: 639px) {
    .row-item { grid-template-columns: auto minmax(0, 1fr); gap: var(--s2); padding: var(--s2); }
    .row-side { grid-column: 1 / -1; justify-content: space-between; }
    .row-side.compact { grid-column: auto; }
}

/* Admin density */
.tabs {
    display: inline-flex; gap: 4px; padding: 4px; margin-bottom: var(--s4);
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.tabs a {
    padding: 10px var(--s2); border-radius: var(--r-pill);
    font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none;
}
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { background: var(--ink); color: var(--card); }
.rows.dense .row-item { padding: var(--s2) var(--s3); gap: var(--s2); }
.rows.dense .thumb { width: 48px; height: 48px; }
.rows.dense .avatar { width: 40px; height: 40px; font-size: 18px; }
.rows.dense h3 { font-size: 16px; }
.rows.dense .row-price { font-size: 22px; }
.rows-head {
    display: grid; grid-template-columns: inherit; padding: 12px var(--s3);
    background: var(--paper); border-bottom: 1px solid var(--line);
}

/* ---------- Empty states ---------- */

.empty {
    display: grid; justify-items: center; text-align: center; gap: var(--s2);
    padding: var(--s7) var(--s3);
    max-width: 520px; margin: 0 auto;
}
.empty h1 { font-size: 44px; margin-top: var(--s2); }
.empty p { color: var(--ink-2); max-width: 40ch; }
.empty .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1); margin-top: var(--s2); }
.empty-art {
    position: relative; width: 120px; height: 120px;
}
.empty-art::before {
    /* arched window */
    content: ""; position: absolute; left: 30px; top: 10px; width: 60px; height: 92px;
    border: 1.5px solid var(--ink); border-radius: 30px 30px 2px 2px;
    background:
        linear-gradient(var(--ink), var(--ink)) 50% 0 / 1.5px 100% no-repeat,
        linear-gradient(var(--ink), var(--ink)) 0 58% / 100% 1.5px no-repeat,
        var(--card);
}
.empty-art::after {
    /* sill + horizon */
    content: ""; position: absolute; left: 14px; right: 14px; top: 104px; height: 1.5px; background: var(--ink);
    box-shadow: 0 8px 0 -0.5px var(--line);
}
.empty-art i {
    position: absolute; right: 18px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--clay);
}
.empty.on-panel { padding: var(--s6) var(--s3); }

/* ---------- Architectural panel (auth + photo fallback) ---------- */

.arch {
    position: relative; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(120% 80% at 80% 0%, #2a241b 0%, transparent 60%),
        linear-gradient(180deg, #1d1912 0%, var(--ink) 70%);
    color: var(--card);
}
.arch-scene { position: absolute; inset: 0; z-index: -1; }
/* far tower */
.arch-scene .tower {
    position: absolute; bottom: 18%; left: 12%; width: 26%; height: 58%;
    background:
        repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,252,247,0.05) 18px 19px),
        repeating-linear-gradient(0deg, transparent 0 26px, rgba(255,252,247,0.05) 26px 27px),
        #221d16;
    border-top: 1px solid rgba(255,252,247,0.1);
}
/* main facade with windows */
.arch-scene .facade {
    position: absolute; bottom: 18%; left: 34%; width: 44%; height: 70%;
    background: #2a241b;
    border-top: 1px solid rgba(255,252,247,0.14);
    border-radius: 2px 2px 0 0;
}
.arch-scene .windows {
    position: absolute; inset: 9% 10% 26% 10%; overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(23,20,15,0) 0 62%, #2a241b 62% 100%),
        linear-gradient(0deg, rgba(23,20,15,0) 0 70%, #2a241b 70% 100%);
    background-size: 25% 13%, 25% 13%;
    background-color: #17140f;
}
.arch-scene .lit {
    /* one window of the 4-column grid: column 3, row 3 */
    position: absolute; left: 50%; top: 29.9%;
    width: 15.5%; height: 9.1%;
    background: linear-gradient(180deg, #e98a5f, var(--clay));
    box-shadow: 0 0 40px 6px rgba(196, 81, 44, 0.35);
}
.arch-scene .door {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 22%; height: 22%;
    border: 1px solid rgba(255,252,247,0.22); border-bottom: 0;
    border-radius: 999px 999px 0 0;
    background: #17140f;
}
.arch-scene .ground {
    position: absolute; left: 0; right: 0; bottom: 0; height: 18%;
    background: linear-gradient(180deg, #120f0b, #0d0b08);
    border-top: 1px solid rgba(255,252,247,0.12);
}
.arch-scene .lines {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, transparent calc(100% - 1px), rgba(255,252,247,0.04) 0) 0 0 / 12.5% 100%;
    mask-image: linear-gradient(180deg, #000, transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.arch-scene .moon {
    position: absolute; top: 12%; right: 14%; width: 56px; height: 56px; border-radius: 50%;
    border: 1px solid rgba(255,252,247,0.3);
}

/* ---------- Auth ---------- */

.mode-auth .main { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; }
.auth-art { display: flex; flex-direction: column; justify-content: space-between; padding: var(--s5); min-height: 100dvh; position: sticky; top: 0; }
.auth-brand { font-family: var(--serif); font-size: 32px; line-height: 1; letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.auth-brand b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 400; font-size: 24px; }
.auth-line { font-family: var(--serif); font-size: 44px; line-height: 1.05; max-width: 14ch; letter-spacing: -0.01em; }
.auth-line em { font-style: italic; color: #e8c9b6; }
.auth-foot { margin-top: var(--s3); font-size: 13px; color: rgba(255,252,247,0.55); letter-spacing: 0.04em; }
.auth-side { display: grid; place-items: center; padding: var(--s6) var(--s5); }
.auth-form { width: 100%; max-width: 400px; display: grid; gap: var(--s5); }
.auth-form .head { display: grid; gap: var(--s1); }
.auth-form h1 { font-size: 48px; }
.auth-form form { display: grid; gap: var(--s3); }
.auth-alt { font-size: 15px; color: var(--ink-2); }
.auth-alt a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
@media (max-width: 799px) {
    .mode-auth .main { grid-template-columns: 1fr; }
    .auth-art { min-height: 240px; position: relative; padding: var(--s3); }
    .auth-line { font-size: 30px; }
    .auth-foot { display: none; }
    .auth-side { padding: var(--s5) var(--s3) var(--s6); place-items: start center; }
    .auth-form h1 { font-size: 40px; }
}

/* ---------- Swipe / viewing ---------- */

.viewing {
    position: relative; height: 100%;
    background: var(--ink) center/cover no-repeat;
    color: var(--card);
    overflow: hidden;
}
.viewing-photo { position: absolute; inset: 0; background: center/cover no-repeat; }
.viewing .arch { position: absolute; inset: 0; }
.viewing::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(23,20,15,0.45) 0%, rgba(23,20,15,0) 22%),
        linear-gradient(0deg, rgba(23,20,15,0.88) 0%, rgba(23,20,15,0.55) 30%, rgba(23,20,15,0) 58%);
}
.viewing-top {
    position: absolute; z-index: 2; top: var(--s3); left: var(--s4); right: var(--s4);
    display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
}
.viewing-top .tags { display: flex; gap: var(--s1); flex-wrap: wrap; }
.viewing-info {
    position: absolute; z-index: 2; left: var(--s5); right: var(--s5); bottom: 152px;
    display: grid; gap: 12px; max-width: 720px;
}
.price {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(48px, 7vw, 88px); line-height: 0.95; letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(23,20,15,0.3);
}
.price small { font-size: 14px; color: rgba(255,252,247,0.7); margin-left: 8px; vertical-align: 0.9em; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 17px; font-weight: 500; }
.facts .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,252,247,0.6); }
.address { font-size: 14px; color: rgba(255,252,247,0.66); }
.desc {
    font-size: 15px; line-height: 1.55; color: rgba(255,252,247,0.82); max-width: 60ch;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.viewing-actions {
    position: absolute; z-index: 3; left: 50%; bottom: var(--s4); transform: translateX(-50%);
    display: flex; align-items: flex-end; gap: var(--s4);
}
.viewing-actions form { margin: 0; display: grid; justify-items: center; gap: var(--s1); }
.round {
    width: 80px; height: 80px; min-height: 0; padding: 0; border-radius: 50%;
    box-shadow: var(--shadow);
}
.round svg { width: 30px; height: 30px; }
.round:active { transform: scale(0.94); }
.round-pass {
    background: var(--glass); color: var(--card); border: 1px solid var(--glass-line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.round-pass:hover { background: rgba(255,252,247,0.24); }
.round-like { background: var(--pine); color: var(--card); }
.round-like:hover { background: var(--pine-2); }
.round-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,252,247,0.7); }
.keys { position: absolute; z-index: 2; right: var(--s4); bottom: var(--s4); font-size: 12px; color: rgba(255,252,247,0.5); display: flex; gap: 6px; align-items: center; }
.keys kbd { font: 600 11px/1 var(--sans); padding: 4px 6px; border: 1px solid rgba(255,252,247,0.25); border-radius: 6px; }

.report { position: relative; }
.report > summary {
    list-style: none; cursor: pointer;
}
.report > summary::-webkit-details-marker { display: none; }
.report-pop {
    position: absolute; right: 0; top: calc(100% + var(--s1)); z-index: 10;
    width: 320px; padding: var(--s3);
    background: var(--card); color: var(--ink);
    border-radius: var(--r-panel); box-shadow: var(--shadow);
    display: grid; gap: var(--s2);
}
.report-pop form { display: grid; gap: var(--s2); }
.report-pop p { font-size: 14px; color: var(--ink-2); }

@media (max-width: 799px) {
    .viewing-top { top: var(--s2); left: var(--s2); right: var(--s2); }
    .viewing-info { left: var(--s3); right: var(--s3); bottom: 132px; }
    .viewing-actions { bottom: var(--s3); gap: var(--s5); }
    .round { width: 72px; height: 72px; }
    .round-label, .keys { display: none; }
    .report-pop { width: min(320px, calc(100vw - 2 * var(--s2))); }
}
@media (max-width: 479px) {
    .report .lbl { display: none; }
    .report > summary { width: 28px; padding: 0; justify-content: center; }
    .viewing-top { align-items: flex-start; }
}

.mode-immersive .empty-wrap { height: 100%; display: grid; place-items: center; overflow: auto; }

/* ---------- Chat ---------- */

.thread { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; background: var(--paper); }
.thread-head {
    display: flex; align-items: center; gap: var(--s2);
    padding: var(--s2) var(--s4);
    background: var(--card); border-bottom: 1px solid var(--line);
}
.thread-head .back {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    color: var(--ink-2); text-decoration: none;
}
.thread-head .back:hover { background: var(--paper); color: var(--ink); }
.thread-head .back svg { width: 20px; height: 20px; }
.thread-head .who { display: grid; gap: 2px; min-width: 0; }
.thread-head .who p { font-size: 14px; color: var(--ink-2); }
.thread-log { overflow-y: auto; padding: var(--s4) var(--s4) var(--s3); overscroll-behavior: contain; }
.thread-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; min-height: 100%; justify-content: flex-end; }
.msg { display: grid; justify-items: start; gap: 4px; max-width: min(72%, 520px); margin-top: 8px; }
.msg.mine { align-self: flex-end; justify-items: end; }
.msg .bubble {
    padding: 12px var(--s2); border-radius: 18px 18px 18px 6px;
    background: var(--card); border: 1px solid var(--line);
    font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg.mine .bubble { border-radius: 18px 18px 6px 18px; background: var(--pine); border-color: var(--pine); color: var(--card); }
.msg time { font-size: 12px; color: var(--ink-3); padding: 0 4px; }
.thread-day { align-self: center; margin: var(--s2) 0; }
.composer {
    padding: var(--s2) var(--s4) var(--s3);
    background: linear-gradient(180deg, rgba(244,239,230,0), var(--paper) 30%);
}
.composer form {
    max-width: 760px; margin: 0 auto;
    display: flex; align-items: center; gap: var(--s1);
    padding: 6px 6px 6px var(--s3);
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill);
    box-shadow: 0 12px 32px -20px rgba(23,20,15,0.4);
}
.composer form:focus-within { border-color: var(--pine); }
.composer input { border: 0; min-height: 44px; padding: 0; background: transparent; box-shadow: none; }
.composer input:focus { box-shadow: none; }
.composer button { width: 48px; height: 48px; min-height: 0; padding: 0; border-radius: 50%; flex: none; }
.thread .empty { padding: var(--s5) var(--s3); }
@media (max-width: 799px) {
    .thread-head { padding: 12px var(--s2); }
    .thread-log { padding: var(--s2); }
    .composer { padding: var(--s1) var(--s2) var(--s2); }
    .msg { max-width: 84%; }
}

/* ---------- Map ---------- */

.mapview { position: relative; height: 100%; }
#map { position: absolute; inset: 0; background: #e9e3d6; z-index: 0; }
#map .leaflet-tile-pane { filter: grayscale(0.85) sepia(0.18) contrast(0.92) brightness(1.04); }
.map-panel {
    position: absolute; z-index: 500; top: var(--s3); left: var(--s3);
    width: min(380px, calc(100% - 2 * var(--s2)));
    padding: var(--s3);
    background: var(--card); border-radius: var(--r-panel); box-shadow: var(--shadow);
    display: grid; gap: var(--s2);
}
.map-panel h1 { font-size: 32px; }
.map-panel form { display: flex; gap: var(--s1); }
.map-panel input { min-height: 48px; }
.map-panel button { min-height: 48px; }
.map-count { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.map-count b { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); }
.map-empty {
    position: absolute; z-index: 500; left: 50%; bottom: var(--s4); transform: translateX(-50%);
    padding: 12px var(--s3); border-radius: var(--r-pill); background: var(--ink); color: var(--card);
    font-size: 14px; box-shadow: var(--shadow); white-space: nowrap;
}
.pin {
    display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
    background: var(--ink); color: var(--card);
    border-radius: var(--r-pill); border: 2px solid var(--card);
    font: 600 13px/1 var(--sans); white-space: nowrap;
    box-shadow: 0 6px 16px -6px rgba(23,20,15,0.5);
    transform: translate(-50%, -50%);
    transition: transform 150ms var(--ease), background 150ms var(--ease);
}
.pin.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8fc3a5; margin-right: 6px; }
.leaflet-marker-icon:hover .pin { background: var(--pine); transform: translate(-50%, -50%) scale(1.06); }
.sb-pin { background: none !important; border: 0 !important; }
.leaflet-popup-content-wrapper { border-radius: var(--r-panel) !important; padding: 0 !important; overflow: hidden; box-shadow: var(--shadow) !important; background: var(--card) !important; }
.leaflet-popup-content { margin: 0 !important; width: 260px !important; font-family: var(--sans); color: var(--ink); }
.leaflet-popup-tip { background: var(--card) !important; }
.leaflet-container a.leaflet-popup-close-button { color: var(--card); top: 8px; right: 8px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.pop-photo { height: 140px; background: var(--ink) center/cover no-repeat; }
.pop-body { padding: var(--s2); display: grid; gap: 6px; }
.pop-price { font-family: var(--serif); font-size: 28px; line-height: 1; }
.pop-price small { font: 600 11px/1 var(--sans); letter-spacing: 0.08em; color: var(--ink-3); margin-left: 4px; }
.pop-line { font-size: 14px; color: var(--ink-2); }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 14px !important; overflow: hidden; }
.leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 40px !important; color: var(--ink) !important; background: var(--card) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { background: rgba(255,252,247,0.8) !important; font-family: var(--sans); font-size: 11px; }
@media (max-width: 799px) {
    .map-panel { top: var(--s2); left: var(--s2); padding: var(--s2); }
    .map-panel h1 { font-size: 26px; }
}

/* ---------- Payments (demo) ---------- */

.demo-flag {
    display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px;
    border-radius: var(--r-pill); border: 1px dashed var(--ink-3); color: var(--ink-2);
    font: 600 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
}
.demo-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); }
.free-note {
    display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: center;
    padding: var(--s4); margin-bottom: var(--s4);
    background: var(--ink); color: var(--card); border-radius: var(--r-panel);
    position: relative; overflow: hidden;
}
.free-note .big { font-family: var(--serif); font-size: 72px; line-height: 0.9; }
.free-note p { color: rgba(255,252,247,0.75); max-width: 52ch; }
.free-note h2 { margin-bottom: 4px; }
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.demo-option {
    position: relative; display: flex; flex-direction: column; gap: var(--s2);
    padding: var(--s3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel);
}
.demo-option .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.demo-option .ico svg { width: 24px; height: 24px; }
.demo-option h2 { font-size: 28px; }
.demo-option p { font-size: 14px; color: var(--ink-2); }
.demo-option button { margin-top: auto; }
.demo-option > p { margin-bottom: var(--s1); }
.mock-card, .mock-transfer, .mock-plan { height: 164px; }
.mock-card {
    position: relative; border-radius: 14px; overflow: hidden;
    background: linear-gradient(135deg, #24563f, var(--pine) 55%, #0f2a1f);
    color: rgba(255,252,247,0.9); padding: var(--s2);
    display: flex; flex-direction: column; justify-content: space-between;
    font-size: 12px; letter-spacing: 0.12em;
}
.mock-card .chip { width: 32px; height: 24px; border-radius: 5px; background: linear-gradient(135deg, #e7d6b5, #b99d6c); }
.mock-card .num { font-family: var(--sans); font-size: 15px; letter-spacing: 0.18em; }
.mock-card::after {
    content: "DEMO"; position: absolute; inset: 0; display: grid; place-items: center;
    font: 400 56px/1 var(--serif); letter-spacing: 0.2em; color: rgba(255,252,247,0.14);
    transform: rotate(-14deg);
}
.mock-transfer { display: grid; align-content: center; gap: 12px; padding: var(--s2); border-radius: 14px; background: var(--paper); font-size: 13px; color: var(--ink-2); }
.mock-transfer div { display: flex; justify-content: space-between; gap: var(--s1); }
.mock-transfer b { color: var(--ink); font-weight: 600; letter-spacing: 0.04em; }
.mock-plan { display: grid; align-content: space-between; gap: 4px; padding: var(--s2); border-radius: 14px; background: var(--paper); }
.mock-plan .serif { font-size: 40px; line-height: 1; }
.mock-plan span { font-size: 13px; color: var(--ink-2); }
.demo-legal { margin-top: var(--s4); font-size: 14px; color: var(--ink-3); max-width: 64ch; }
@media (max-width: 899px) { .demo-grid { grid-template-columns: 1fr; } .free-note { grid-template-columns: 1fr; } .free-note .big { font-size: 56px; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; transition-duration: 1ms !important; }
    .toast.is-status { animation: none; }
}

/* ==========================================================================
   Public marketing site (layouts/site.blade.php, views/site/*)
   Scoped to body.site and .site-* / .mk-* classes. Does not restyle the app.
   ========================================================================== */

.site { min-height: 100dvh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.site-wrap { max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.site-skip {
    position: absolute; left: var(--s2); top: -64px; z-index: 100;
    padding: 12px var(--s2); border-radius: var(--r-pill); background: var(--ink); color: var(--card);
    text-decoration: none; font-weight: 600; transition: top 150ms var(--ease);
}
.site-skip:focus { top: var(--s2); }

/* Header */
.site-head {
    position: sticky; top: 0; z-index: 50;
    background: rgba(244, 239, 230, 0.92);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.site-head-in { display: flex; align-items: center; gap: var(--s4); height: 72px; }
.site-brand {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -0.01em;
    text-decoration: none; color: var(--ink);
}
.site-brand b {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
    background: var(--ink); color: var(--card); font-weight: 400; font-size: 21px;
}
.site-nav { display: flex; gap: var(--s3); margin-left: var(--s2); }
.site-nav a, .site-login {
    font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
    transition: color 150ms var(--ease);
}
.site-nav a:hover, .site-login:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--pine); text-underline-offset: 8px; text-decoration-thickness: 1.5px; }
.site-cta { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }
.site-nav-sm { display: none; }

/* Footer */
.site-foot { margin-top: auto; padding: var(--s6) 0 var(--s4); background: var(--card); border-top: 1px solid var(--line); }
.site-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s5); }
.site-foot-brand p { margin-top: var(--s2); color: var(--ink-2); max-width: 36ch; font-size: 15px; }
.site-foot nav { display: grid; gap: 10px; align-content: start; }
.site-foot nav .eyebrow { margin-bottom: 4px; }
.site-foot nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.site-foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-foot-base {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3);
    margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line);
    font-size: 13px; color: var(--ink-3);
}

/* Type helpers */
.mk-display { font-size: clamp(48px, 6.4vw, 80px); line-height: 0.98; letter-spacing: -0.02em; }
.mk-h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1; letter-spacing: -0.015em; }
.mk-h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.05; }
.mk-h3 { font-family: var(--sans); font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.005em; }
.mk-display em, .mk-h1 em, .mk-h2 em { font-style: italic; }
.mk-lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.mk-note { font-size: 13px; color: var(--ink-3); letter-spacing: 0.04em; }
.mk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }

/* Hero */
.mk-hero { padding: var(--s7) 0 var(--s6); }
.mk-hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s6); align-items: center; }
.mk-hero-copy { display: grid; gap: var(--s3); justify-items: start; }
.mk-hero-copy .mk-actions { margin-top: var(--s1); }

.mk-device { margin: 0; display: grid; gap: var(--s2); justify-items: center; }
.mk-device-screen {
    position: relative; width: min(100%, 360px); aspect-ratio: 9 / 16;
    border-radius: 32px; box-shadow: var(--shadow);
    border: 8px solid var(--ink);
}
.mk-device-screen::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: linear-gradient(0deg, rgba(23,20,15,0.88) 0%, rgba(23,20,15,0.4) 32%, rgba(23,20,15,0) 55%);
}
.mk-device-top { position: absolute; z-index: 1; top: var(--s2); left: var(--s2); right: var(--s2); display: flex; gap: 6px; flex-wrap: wrap; }
.mk-device-top .pill { height: 24px; font-size: 10px; padding: 0 10px; }
.mk-device-info { position: absolute; z-index: 1; left: var(--s3); right: var(--s3); bottom: 112px; display: grid; gap: 6px; }
.mk-device-price { font-family: var(--serif); font-size: 52px; line-height: 0.95; letter-spacing: -0.02em; }
.mk-device-price small { font: 600 11px/1 var(--sans); letter-spacing: 0.08em; color: rgba(255,252,247,0.7); margin-left: 6px; vertical-align: 0.9em; }
.mk-device-facts { font-size: 14px; font-weight: 500; color: rgba(255,252,247,0.86); }
.mk-device-actions { position: absolute; z-index: 1; left: 0; right: 0; bottom: var(--s3); display: flex; justify-content: center; gap: var(--s4); }
.mk-round { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); }
.mk-round svg { width: 24px; height: 24px; }
.mk-round.is-pass { background: var(--glass); border: 1px solid var(--glass-line); color: var(--card); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.mk-round.is-like { background: var(--pine); color: var(--card); }
.mk-device figcaption { font-size: 13px; color: var(--ink-3); }

/* Sections */
.mk-section { padding: var(--s7) 0; position: relative; }
.mk-section.mk-tight { padding-top: var(--s5); }
.mk-section + .mk-section:not(.mk-dark):not(.mk-band) { border-top: 1px solid var(--line); }
.mk-head { display: grid; gap: var(--s1); margin-bottom: var(--s5); max-width: 640px; }
.mk-narrow { max-width: calc(720px + 2 * var(--gutter)); }
.mk-band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mk-more { margin-top: var(--s4); }
.mk-more a:not(.btn-quiet) { color: var(--ink); text-underline-offset: 4px; }

.mk-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.mk-split-body { display: grid; gap: var(--s2); font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.mk-split-body strong { color: var(--ink); font-weight: 600; }

/* Dark architectural section */
.mk-dark { color: var(--card); }
.mk-dark .arch-scene { opacity: 0.35; }
.mk-dark .mk-split-body { color: rgba(255,252,247,0.78); }
.mk-dark .mk-h2 em { color: #e8c9b6; }
.mk-eyebrow-light { color: rgba(255,252,247,0.55); }

/* Steps */
.mk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.mk-steps li { display: grid; align-content: start; gap: var(--s1); padding: var(--s3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); }
.mk-steps li h3 { margin-top: var(--s1); }
.mk-steps li p { color: var(--ink-2); font-size: 15px; }
.mk-step-n { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--pine); }

/* Interest -> match -> chat flow */
.mk-flow { list-style: none; margin: var(--s2) 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); }
.mk-flow li {
    position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 var(--s2);
    border-radius: var(--r-pill); border: 1px solid var(--glass-line); background: var(--glass);
    font: 600 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--card);
}
.mk-flow li + li::before { content: ""; position: absolute; left: -20px; top: 50%; width: 16px; height: 1px; background: rgba(255,252,247,0.4); }
.mk-flow li.is-match::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); order: -1; }

/* Features */
.mk-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.mk-feature { display: grid; align-content: start; gap: var(--s1); padding: var(--s3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); }
.mk-feature h3 { margin-top: var(--s1); }
.mk-feature p { color: var(--ink-2); font-size: 15px; }
.mk-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--pine-soft); color: var(--pine); }
.mk-ico svg { width: 22px; height: 22px; }

/* FAQ */
.mk-faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.mk-faq details + details { border-top: 1px solid var(--line); }
.mk-faq summary {
    list-style: none; cursor: pointer; position: relative;
    padding: var(--s3) var(--s6) var(--s3) var(--s3);
    font-size: 18px; font-weight: 600; line-height: 1.35;
    transition: background 150ms var(--ease);
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary:hover { background: #fbf7f0; }
.mk-faq summary::after {
    content: ""; position: absolute; right: var(--s3); top: 50%; width: 10px; height: 10px; margin-top: -7px;
    border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2);
    transform: rotate(45deg); transition: transform 150ms var(--ease);
}
.mk-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.mk-faq details p { padding: 0 var(--s3) var(--s3); color: var(--ink-2); max-width: 64ch; }

/* Closing call to action */
.mk-cta { color: var(--card); padding: var(--s7) 0; text-align: center; }
.mk-cta .arch-scene { opacity: 0.55; }
.mk-cta-in { display: grid; justify-items: center; gap: var(--s3); }
.mk-cta .mk-h2 em { color: #e8c9b6; }
.mk-cta p { color: rgba(255,252,247,0.75); max-width: 46ch; }
.mk-cta .mk-actions { justify-content: center; }
.btn-primary.mk-on-dark { background: var(--card); color: var(--ink); }
.btn-primary.mk-on-dark:hover { background: #fff; }
.mk-link-light { color: rgba(255,252,247,0.8); font-weight: 500; text-underline-offset: 4px; text-decoration-color: rgba(255,252,247,0.35); }
.mk-link-light:hover { color: var(--card); text-decoration-color: currentColor; }

/* Inner page head */
.mk-page-head { padding: var(--s7) 0 var(--s4); }
.mk-page-head .site-wrap { display: grid; gap: var(--s2); }

/* Timeline (Cum funcționează) */
.mk-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.mk-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.mk-timeline li { position: relative; display: grid; gap: var(--s1); padding: 0 0 var(--s5) var(--s5); }
.mk-timeline li:last-child { padding-bottom: 0; }
.mk-timeline li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 15px; height: 15px; border-radius: 50%;
    background: var(--paper); border: 1.5px solid var(--pine);
}
.mk-timeline li.is-match::before { background: var(--clay); border-color: var(--clay); }
.mk-timeline p:not(.eyebrow) { color: var(--ink-2); }

/* Lists and prose (legal) */
.mk-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s2); }
.mk-list li { position: relative; padding-left: var(--s3); color: var(--ink-2); }
.mk-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 1.5px; background: var(--pine); }
.mk-list a, .mk-prose a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--ink-3); }
.mk-list a:hover, .mk-prose a:hover { text-decoration-color: currentColor; }

.mk-prose { display: grid; gap: var(--s2); color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.mk-prose h2 { color: var(--ink); font-size: 28px; margin-top: var(--s4); }
.mk-prose strong { color: var(--ink); font-weight: 600; }
.mk-prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s1); }
.mk-prose code, .mk-table code { font: 500 14px/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--ink); }
.site kbd { font: 600 12px/1 var(--sans); padding: 3px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--card); color: var(--ink); }

/* Operator identification */
.mk-operator { display: grid; gap: var(--s2); padding: var(--s3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); }
.mk-operator-name { font-family: var(--serif); font-size: 28px; line-height: 1.15; color: var(--ink); }
.mk-operator-name span { font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.mk-operator dl { margin: 0; display: grid; }
.mk-operator dl div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s2); padding: 10px 0; border-top: 1px solid var(--line); }
.mk-operator dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.mk-operator dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
.mk-operator-missing { padding: var(--s2); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r-field); font-size: 14px; color: var(--ink-2); }

/* Simple table (cookies) */
.mk-table { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.mk-table > div { display: grid; grid-template-columns: 1.1fr 2fr 1.1fr; gap: var(--s2); padding: var(--s2) var(--s3); font-size: 15px; }
.mk-table > div + div { border-top: 1px solid var(--line); }
.mk-table > .mk-table-head { background: var(--paper); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* Responsive */
@media (max-width: 999px) {
    .mk-hero-in { grid-template-columns: 1fr; gap: var(--s5); }
    .mk-device-screen { width: min(100%, 320px); }
    .mk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mk-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mk-features.is-3 { grid-template-columns: 1fr; }
}
@media (max-width: 799px) {
    .site-head-in { height: 64px; gap: var(--s2); }
    .site-nav, .site-login { display: none; }
    .site-nav-sm {
        display: flex; gap: var(--s3); padding: 0 var(--gutter) 12px;
        overflow-x: auto; scrollbar-width: none;
    }
    .site-nav-sm::-webkit-scrollbar { display: none; }
    .site-nav-sm a { flex: none; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
    .site-nav-sm a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pine); text-underline-offset: 6px; }
    .mk-hero { padding: var(--s5) 0; }
    .mk-section { padding: var(--s6) 0; }
    .mk-page-head { padding: var(--s5) 0 var(--s3); }
    .mk-split { grid-template-columns: 1fr; gap: var(--s3); }
    .mk-lead { font-size: 17px; }
    .site-foot-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); }
    .site-foot-brand { grid-column: 1 / -1; }
    .mk-operator dl div { grid-template-columns: 1fr; gap: 2px; }
    .mk-table > div { grid-template-columns: 1fr; gap: 4px; }
    .mk-table > .mk-table-head { display: none; }
}
@media (max-width: 559px) {
    .mk-steps, .mk-features { grid-template-columns: 1fr; }
    .site-brand { font-size: 22px; }
    .site-brand b { width: 32px; height: 32px; font-size: 19px; }
    .mk-cta { padding: var(--s6) 0; }
}
.mk-form-status { padding: var(--s2) var(--s3); background: var(--pine-soft); color: var(--pine); border-radius: var(--r-field); font-weight: 500; }
/* ---------- end public marketing site ---------- */
