/* ==========================================================================
   site.css — kwinski public site. Same Ink look as the CRM login page:
   black ground, parchment text, 1px hairlines, square corners, no fills.
   Token values copied from the CRM's kwinski-tokens.css.
   ========================================================================== */
:root {
    color-scheme: dark;   /* stop browsers auto-recolouring the page in light or forced-dark modes */
    --k-bg:          #000000;
    --k-surface:     #0b0a08;
    --k-raised:      #13110e;
    --k-line:        #2a2620;
    --k-line-strong: #3a352d;
    --k-text:        #d9d3c7;
    --k-text-2:      #aaa397;
    --k-text-3:      #8f897e;
    --k-text-4:      #6b665c;
    --k-brass:       #b89a64;
    --k-ok:          #95a678;
    --k-danger:      #c97a6d;
    --k-shadow-hi:   0 2px 0 rgba(0, 0, 0, 0.6), 0 16px 40px -10px rgba(0, 0, 0, 0.9);

    --k-serif:   Georgia, 'Times New Roman', serif;
    --k-logo:    Optima, 'Optima Nova', Candara, 'Segoe UI', sans-serif;   /* KWINSKI wordmark (2026-11-18) */
    --k-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --k-sans:    'Avenir Next', 'Avenir', 'Helvetica Neue', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: var(--k-bg); }
body {
    font-family: var(--k-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--k-text);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 1px solid var(--k-brass); outline-offset: 3px; }

/* ---- Logo (same construction as login.php): Optima, no letter spreading ---- */
.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--k-logo);
    font-weight: 400;
    letter-spacing: normal;
    text-align: center;
    text-decoration: none;
}
.logo > * { display: block; }
.logo-name   { font-size: 40px; line-height: 1; color: var(--k-text); }
.logo-rule   { align-self: stretch; height: 1px; background: var(--k-line-strong); margin: 16px 0 12px; }
.logo-sub    { font-size: 15px; line-height: 1.6; color: var(--k-text-2); }
.logo-slogan { font-size: 13px; line-height: 1.6; color: var(--k-text-3); }

.logo.small { align-items: flex-start; text-align: left; }
.logo.small .logo-name { font-size: 22px; }
.logo.small .logo-rule { margin: 7px 0 4px; }
.logo.small .logo-sub  { font-size: 11px; line-height: 1.5; }

/* ---- Buttons: parchment outline, fills solid on hover ---- */
.btn {
    display: inline-block;
    padding: 11px 28px;
    background: transparent;
    color: var(--k-text);
    border: 1px solid var(--k-text-3);
    border-radius: 0;
    font-family: var(--k-serif);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover  { background: var(--k-text); color: var(--k-bg); border-color: var(--k-text); }
.btn:active { transform: scale(0.99); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn-quiet { border-color: var(--k-line-strong); color: var(--k-text-2); }

/* ---- Text links: the navigation, no frame; a brass hairline on hover ---- */
.link {
    display: inline-block;
    padding: 6px 0;
    background: none;
    border: 0;
    border-bottom: 1px solid transparent;
    color: var(--k-text);
    font-family: var(--k-serif);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.link:hover { border-bottom-color: var(--k-brass); }

/* ---- Home ---- */
.home {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}
.actions {
    margin-top: 56px;
    display: flex;
    justify-content: center;
    gap: 48px;
}
@media (max-width: 560px) {
    .actions { flex-direction: column; align-items: center; gap: 20px; }
}
.home-foot {
    position: fixed;
    bottom: 20px;
    left: 0; right: 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--k-text-4);
}

/* Intro: name, rule, CRM, slogan, then the buttons */
.fade { opacity: 0; transform: translateY(8px); animation: fadeUp 0.9s ease forwards; }
.d1 { animation-delay: 0.15s; }
.d2 { animation-delay: 0.7s; }
.d3 { animation-delay: 1.1s; }
.d4 { animation-delay: 1.5s; }
.d5 { animation-delay: 2.0s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .fade { animation: none; opacity: 1; transform: none; }
}

/* ---- Overview ---- */
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 16px;
    border-bottom: 1px solid var(--k-line);
}
.top nav { display: flex; gap: 32px; flex-wrap: wrap; justify-content: flex-end; }
.top .link { font-size: 11px; }

.page { max-width: 1120px; margin: 0 auto; padding: 64px 16px 96px; }
.eyebrow {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--k-text-3);
}
h1, h2 {
    font-family: var(--k-display);
    font-weight: 400;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--k-text);
}
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 10px 0 16px; }
h2 { font-size: 24px; line-height: 1.25; margin: 6px 0 8px; }
.lead { max-width: 620px; color: var(--k-text-2); font-size: 16px; }
.lead + .lead { margin-top: 14px; }

.shots { display: flex; flex-direction: column; gap: 88px; margin-top: 72px; }
.shot { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.shot:nth-child(even) { grid-template-columns: 280px 1fr; }
.shot:nth-child(even) .frame { order: 2; }
.shot figcaption { padding-top: 8px; border-top: 1px solid var(--k-line-strong); }
.shot figcaption p { color: var(--k-text-2); }
.shot .num {
    font-family: var(--k-display);
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--k-brass);
    font-size: 13px;
    letter-spacing: 1px;
}
@media (max-width: 820px) {
    .shot, .shot:nth-child(even) { grid-template-columns: 1fr; gap: 20px; }
    .shot:nth-child(even) .frame { order: 0; }
    .shots { gap: 64px; margin-top: 48px; }
}

.frame {
    display: block;
    background: var(--k-surface);
    border: 1px solid var(--k-line);
    box-shadow: var(--k-shadow-hi);
    overflow: hidden;
    cursor: zoom-in;
    padding: 0;
    width: 100%;
}
.frame img { display: block; width: 100%; height: auto; }
/* Shown until the real screenshot file is in img/ */
.frame.missing {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    color: var(--k-text-4);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.frame.missing img { display: none; }

.page-end { margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--k-line); display: flex; gap: 40px; flex-wrap: wrap; }

/* ---- Key points: four short statements, a brass hairline above each ---- */
.points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 56px;
}
.points li { padding-top: 14px; border-top: 1px solid var(--k-line-strong); position: relative; }
.points li::before { content: ''; position: absolute; top: -1px; left: 0; width: 28px; height: 1px; background: var(--k-brass); }
.points h2 { font-size: 19px; margin: 0 0 8px; }
.points p { color: var(--k-text-2); font-size: 14px; }
@media (max-width: 960px) { .points { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; } }

/* ---- Dialogs (contact form, screenshot zoom) ---- */
dialog {
    margin: auto;
    border: 1px solid var(--k-line-strong);
    border-radius: 0;
    background: var(--k-surface);
    color: var(--k-text);
    box-shadow: var(--k-shadow-hi);
    padding: 0;
    max-width: calc(100vw - 32px);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.78); }
dialog[open] { animation: dlgIn 0.35s ease; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { dialog[open] { animation: none; } }

.contact { width: 440px; }
.dlg-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 24px 28px 0;
}
.dlg-head h2 { margin: 0; }
.dlg-close {
    background: none;
    border: 0;
    color: var(--k-text-3);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}
.dlg-close:hover { color: var(--k-text); }
.contact form { display: flex; flex-direction: column; gap: 18px; padding: 20px 28px 28px; }
.contact .note { color: var(--k-text-3); font-size: 13px; }

label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--k-text-3);
}
input, textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--k-line-strong);
    border-radius: 0;
    color: var(--k-text);
    font-family: var(--k-sans);
    font-size: 15px;
    padding: 8px 2px;
    outline: none;
    transition: border-color 0.2s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input:focus, textarea:focus { border-color: var(--k-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact .btn { width: 100%; padding: 11px; margin-top: 4px; }
.form-msg { font-size: 13px; min-height: 1em; }
.form-msg.err { color: var(--k-danger); }
.sent { padding: 28px; display: none; flex-direction: column; gap: 18px; }
.contact.done form { display: none; }
.contact.done .sent { display: flex; }
.sent p { color: var(--k-text-2); }

.zoom { width: 1400px; background: var(--k-bg); cursor: zoom-out; }
.zoom img { display: block; width: 100%; height: auto; }

/* ---- Print: dark ink on white paper so nothing disappears ---- */
@media print {
    :root {
        color-scheme: light;
        --k-bg: #ffffff; --k-surface: #ffffff; --k-raised: #ffffff;
        --k-line: #cccccc; --k-line-strong: #999999;
        --k-text: #111111; --k-text-2: #333333; --k-text-3: #555555; --k-text-4: #666666;
        --k-brass: #7a5f2e; --k-shadow-hi: none;
    }
    .top nav, .page-end, dialog { display: none; }
}
