/* Lechimo client portal — matches lechimo.com: near-black, cream, gold, Hanken Grotesk + Instrument Serif + Manrope. */

:root {
	--lp-bg: #020306;
	--lp-card: #0C0E13;
	--lp-inset: #14161C;
	--lp-inset-2: #1E2129;
	--lp-line: rgba(255, 255, 255, 0.10);
	--lp-line-2: rgba(255, 255, 255, 0.18);
	--lp-line-3: rgba(255, 255, 255, 0.25);
	--lp-text: #F4F0E8;
	--lp-white: #FFFFFF;
	--lp-muted: #A9A59E;
	--lp-dim: #8C8880;
	--lp-gold: #C8B07A;
	--lp-pale: #E9DDBC;
	--lp-warm: #F7A35C;
	--lp-orange: #F2811D;
	--lp-green: #2FA866;
	--lp-ok: #5CCB8E;
	--lp-cream: linear-gradient(#FFFFFF, #F3EEE6 45%, #D9D2C6);
	--lp-display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
	--lp-serif: "Instrument Serif", Georgia, serif;
	--lp-body: "Manrope", system-ui, sans-serif;
	--lp-r: 22px;
	--lp-r-sm: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

body.lp {
	margin: 0;
	background: var(--lp-bg);
	color: var(--lp-text);
	font-family: var(--lp-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.lp a { color: var(--lp-pale); }
.lp a:hover { color: var(--lp-white); }
.lp :focus-visible { outline: 2px solid var(--lp-gold); outline-offset: 2px; }
.lp img { max-width: 100%; display: block; }
.lp p { margin: 0; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

/* ---------- Shell ---------- */

.lp-shell { min-height: 100vh; display: flex; flex-wrap: wrap; }

.lp-nav {
	flex: 1 1 240px;
	max-width: 100%;
	padding: 28px 18px;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.lp-logo { display: inline-flex; align-items: stretch; text-decoration: none; color: var(--lp-text) !important; padding: 0 8px; align-self: flex-start; }
.lp-logo-mark { display: inline-flex; align-items: center; border: 1px solid rgba(244, 240, 232, 0.7); padding: 5px 7px; }
.lp-logo-mark i { width: 5px; height: 14px; display: block; }
.lp-logo-mark i:nth-child(1) { background: var(--lp-orange); }
.lp-logo-mark i:nth-child(2) { background: #FFFFFF; }
.lp-logo-mark i:nth-child(3) { background: var(--lp-green); }
.lp-logo-word { border: 1px solid rgba(244, 240, 232, 0.7); border-left: 0; padding: 3px 10px; display: inline-flex; align-items: center; font: 700 14px/1 var(--lp-display); letter-spacing: 0.16em; }

.lp-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lp-nav-link {
	display: flex; align-items: center; min-height: 44px; padding: 0 14px;
	border-radius: 999px; color: var(--lp-muted) !important; text-decoration: none; font-size: 15px;
}
.lp-nav-link:hover { background: rgba(255, 255, 255, 0.05); color: var(--lp-text) !important; }
.lp-nav-link.is-active { background: rgba(255, 255, 255, 0.08); color: var(--lp-text) !important; font-weight: 600; }

.lp-team { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 8px 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.lp-team-name { font-size: 15px; font-weight: 600; }
.lp-signout { color: var(--lp-dim) !important; margin-top: 8px; }

.lp-main {
	flex: 999 1 560px;
	min-width: 0;
	padding: 44px clamp(16px, 4vw, 56px) 64px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 1320px;
}

.lp-preview-bar {
	background: var(--lp-gold); color: #000; font-size: 14px; padding: 10px 20px;
	display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap;
}
.lp-preview-bar a { color: #000 !important; font-weight: 700; }

/* ---------- Type ---------- */

.lp-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lp-gold); }
.lp-eyebrow--quiet { color: var(--lp-dim); }
.lp-eyebrow--gold { color: var(--lp-gold); }

.lp-h1 {
	margin: 0; font-family: var(--lp-display); font-weight: 600;
	font-size: clamp(32px, 4.2vw, 46px); line-height: 1.05; letter-spacing: -0.03em; color: var(--lp-white);
}
.lp-h2 { margin: 0; font-family: var(--lp-display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.lp-h2--sm { font-size: 19px; }
.lp-serif { font-family: var(--lp-serif); font-style: italic; font-weight: 400; color: var(--lp-pale); }
.lp-serif--warm { color: var(--lp-warm); }
.lp-lede { font-size: 17px; color: var(--lp-muted); }
.lp-muted { color: var(--lp-muted); }
.lp-small { font-size: 13px; }
.lp-warm { color: var(--lp-warm); }
.lp-ok { color: var(--lp-ok); }
.lp-pale { color: var(--lp-pale); }
.lp-right { text-align: right; }

.lp-amount { font-family: var(--lp-display); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; color: var(--lp-white); }
.lp-amount--lg { font-size: 38px; }

.lp-head { display: flex; flex-direction: column; gap: 10px; }
.lp-head--split { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.lp-head--split > div { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Cards & layout ---------- */

.lp-card {
	background: var(--lp-card);
	border: 1px solid var(--lp-line);
	border-radius: var(--lp-r);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
.lp-card--flush { padding: 0; overflow: hidden; gap: 0; }
.lp-card--feature { background: linear-gradient(160deg, #2A2418, var(--lp-card)); border-color: rgba(200, 176, 122, 0.5); }
.lp-card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

.lp-grid { display: grid; gap: 18px; }
.lp-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.lp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.lp-split { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.lp-split > .lp-preview { flex: 999 1 520px; }
.lp-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.lp-stack-sm { display: flex; flex-direction: column; gap: 4px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }

/* ---------- Buttons, chips, links ---------- */

.lp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
	background: var(--lp-cream); color: #000 !important; text-decoration: none;
	font: 700 14px/1 var(--lp-display); cursor: pointer; white-space: nowrap;
}
.lp-btn:hover { filter: brightness(1.04); color: #000 !important; }
.lp-btn--ghost { background: transparent; border: 1px solid var(--lp-line-3); color: var(--lp-text) !important; }
.lp-btn--ghost:hover { background: rgba(255, 255, 255, 0.06); color: var(--lp-white) !important; }
.lp-btn--sm { min-height: 44px; padding: 0 18px; }
.lp-btn--block { width: 100%; }

.lp-link { font-size: 14px; display: inline-flex; align-items: center; min-height: 32px; }

.lp-chip { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.lp-chip--warm { background: rgba(242, 129, 29, 0.16); color: var(--lp-warm); }
.lp-chip--ok { background: rgba(47, 168, 102, 0.16); color: var(--lp-ok); }
.lp-chip--quiet { background: rgba(255, 255, 255, 0.08); color: var(--lp-muted); }

/* ---------- Notices ---------- */

.lp-notice { border-radius: var(--lp-r-sm); padding: 14px 18px; font-size: 15px; border: 1px solid; }
.lp-notice--ok { background: rgba(47, 168, 102, 0.12); border-color: rgba(92, 203, 142, 0.4); color: #CDEFDB; }
.lp-notice--warn { background: rgba(242, 129, 29, 0.10); border-color: rgba(247, 163, 92, 0.4); color: #FBD9BC; }
.lp-notice--error { background: rgba(228, 52, 79, 0.12); border-color: rgba(240, 110, 130, 0.45); color: #F8C9D1; }

/* ---------- Stages ---------- */

.lp-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.lp-stage { border-radius: var(--lp-r-sm); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.lp-stage-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.lp-stage-name { font: 600 20px/1.2 var(--lp-display); }
.lp-stage-note { font-size: 13px; color: var(--lp-muted); }
.lp-stage--done { background: var(--lp-inset); }
.lp-stage--done .lp-stage-label { color: var(--lp-ok); }
.lp-stage--now { background: linear-gradient(160deg, #2A2418, var(--lp-inset)); border: 1px solid var(--lp-gold); }
.lp-stage--now .lp-stage-label { color: var(--lp-gold); }
.lp-stage--now .lp-stage-note { color: var(--lp-pale); }
.lp-stage--later { border: 1px dashed var(--lp-line-2); }
.lp-stage--later .lp-stage-label, .lp-stage--later .lp-stage-note { color: var(--lp-dim); }
.lp-stage--later .lp-stage-name { color: #C9C4BB; }
.lp-meter { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.10); overflow: hidden; margin-top: 4px; }
.lp-meter span { display: block; height: 100%; background: var(--lp-gold); }

/* ---------- Tasks, feed, facts ---------- */

.lp-task { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--lp-r-sm); background: var(--lp-inset); }
.lp-task-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.lp-task-text .lp-muted { font-size: 13px; }

.lp-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lp-feed li { display: flex; gap: 14px; align-items: baseline; font-size: 15px; }
.lp-feed-when { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--lp-dim); width: 70px; flex: none; }

.lp-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-facts div, .lp-settings div { display: flex; flex-direction: column; gap: 2px; }
.lp-facts dt, .lp-settings dt { font-size: 13px; color: var(--lp-muted); }
.lp-facts dd, .lp-settings dd { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.lp-settings { margin: 0; display: flex; flex-direction: column; gap: 12px; }

.lp-bubble { background: var(--lp-inset); border-radius: var(--lp-r-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.lp-bubble--team { border-left: 2px solid var(--lp-gold); }
.lp-bubble p + p { margin-top: 8px; }

.lp-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lp-thread .lp-bubble--me { margin-left: clamp(0px, 8vw, 80px); background: #191B22; }
.lp-thread .lp-bubble--team { margin-right: clamp(0px, 8vw, 80px); }

/* ---------- Forms ---------- */

.lp-form { display: flex; flex-direction: column; gap: 10px; }
.lp-form label, .lp-field label { font-size: 14px; font-weight: 600; }
.lp-form--row { flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.lp-form--row .lp-input { flex: 1 1 220px; }
.lp-form--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; align-items: end; margin-top: 14px; }
.lp-field { display: flex; flex-direction: column; gap: 6px; }

.lp-input {
	font: inherit; font-size: 15px; width: 100%;
	padding: 11px 14px; background: var(--lp-inset); color: var(--lp-text);
	border: 1px solid var(--lp-line-2); border-radius: 14px; min-height: 44px;
}
.lp-input::placeholder { color: var(--lp-dim); }
.lp-input:focus { border-color: var(--lp-gold); outline: none; box-shadow: 0 0 0 3px rgba(200, 176, 122, 0.25); }
textarea.lp-input { resize: vertical; }
select.lp-input { appearance: auto; }
.lp-input--inline { width: auto; }

.lp-affix { display: flex; align-items: center; border: 1px solid var(--lp-line-2); border-radius: 14px; background: var(--lp-inset); overflow: hidden; }
.lp-affix .lp-input { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.lp-affix span { padding: 0 12px; font-size: 14px; color: var(--lp-muted); white-space: nowrap; }

.lp-check { display: flex; gap: 10px; align-items: center; font-size: 15px; min-height: 44px; }
.lp-check input { width: 20px; height: 20px; accent-color: var(--lp-gold); }

.lp-details > summary { list-style: none; cursor: pointer; }
.lp-details > summary::-webkit-details-marker { display: none; }
.lp-details[open] > summary.lp-btn { margin-bottom: 4px; }
.lp-details--inline { display: inline-block; }

.lp-switch { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.lp-switch .lp-input { width: auto; min-width: 220px; }

/* ---------- Approvals ---------- */

.lp-preview-bar-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); flex-wrap: wrap; }
.lp-preview-bar-top .lp-btn { margin-left: auto; min-height: 36px; }
.lp-dots { display: inline-flex; gap: 6px; }
.lp-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); display: block; }

.lp-canvas { position: relative; background: var(--lp-inset); cursor: crosshair; }
.lp-canvas img { width: 100%; height: auto; user-select: none; }
.lp-canvas-empty { min-height: 360px; display: flex; align-items: center; justify-content: center; color: var(--lp-muted); font-size: 14px; cursor: default; }

.lp-pin {
	position: absolute; transform: translate(-50%, -50%);
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--lp-orange); color: #000 !important; text-decoration: none;
	font: 700 13px/1 var(--lp-display); display: flex; align-items: center; justify-content: center;
	box-shadow: 0 0 0 3px var(--lp-bg);
}
.lp-pin[hidden] { display: none; }
.lp-pin--team { background: var(--lp-gold); }
.lp-pin--new { background: var(--lp-white); animation: lp-pulse 1.2s ease-in-out infinite; }
.lp-pin--static { position: static; transform: none; flex: none; width: 26px; height: 26px; font-size: 12px; box-shadow: none; }
@keyframes lp-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.2); } }
@media (prefers-reduced-motion: reduce) { .lp-pin--new { animation: none; } }

.lp-comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lp-comments li { display: flex; gap: 10px; }
.lp-comments p { font-size: 15px; overflow-wrap: anywhere; }

.lp-note { font-size: 15px; color: var(--lp-pale); background: var(--lp-inset); border-radius: var(--lp-r-sm); padding: 12px 14px; }
.lp-note p + p { margin-top: 8px; }

.lp-result { border-radius: var(--lp-r-sm); padding: 14px; font-size: 15px; display: flex; flex-direction: column; gap: 4px; border: 1px solid; }
.lp-result--approved { background: rgba(47, 168, 102, 0.14); border-color: rgba(92, 203, 142, 0.4); color: #CDEFDB; }
.lp-result--approved strong { color: var(--lp-ok); }
.lp-result--changes { background: rgba(242, 129, 29, 0.10); border-color: rgba(247, 163, 92, 0.4); color: #FBD9BC; }
.lp-result--changes strong { color: var(--lp-warm); }

.lp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lp-list a[aria-current] { color: var(--lp-white); font-weight: 700; }
.lp-list--rows li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.lp-list--rows li:last-child { border-bottom: 0; }
.lp-list--rows strong { flex: 1; }

/* ---------- Milestones ---------- */

.lp-milestones { list-style: none; margin: 0; padding: 0; }
.lp-ms { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); flex-wrap: wrap; }
.lp-ms:last-child { border-bottom: 0; }
.lp-ms-status { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; width: 120px; }
.lp-ms-title { flex: 1; font-weight: 600; font-size: 15px; }
.lp-ms--done .lp-ms-status { color: var(--lp-ok); }
.lp-ms--client .lp-ms-status { color: var(--lp-warm); }
.lp-ms--next .lp-ms-status { color: var(--lp-dim); }
.lp-ms--next .lp-ms-title { color: #C9C4BB; }

/* ---------- Files ---------- */

.lp-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.lp-file { background: var(--lp-inset); border-radius: var(--lp-r-sm); padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lp-file strong { overflow-wrap: anywhere; }
.lp-file .lp-eyebrow { font-size: 11px; letter-spacing: 0.12em; }
.lp-file--request { background: transparent; border: 1px dashed rgba(247, 163, 92, 0.6); justify-content: center; }

.lp-upload { display: flex; flex-direction: column; gap: 12px; }
.lp-drop {
	position: relative; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; text-align: center;
	border: 1px dashed var(--lp-line-3); border-radius: var(--lp-r-sm); padding: 26px 16px; cursor: pointer; font-weight: 400 !important;
}
.lp-drop:hover, .lp-drop.is-over { border-color: var(--lp-gold); background: rgba(200, 176, 122, 0.06); }
.lp-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Billing ---------- */

.lp-table-wrap { overflow-x: auto; }
.lp-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.lp-table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lp-dim); padding: 10px 8px; border-bottom: 1px solid var(--lp-line); }
.lp-table td { padding: 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); vertical-align: middle; }
.lp-table tr:last-child td { border-bottom: 0; }
.lp-table form { display: inline; }

/* ---------- Website ---------- */

.lp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px; }
.lp-tile { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.lp-tile .lp-eyebrow { font-size: 11px; }
.lp-tile-value { font: 600 19px/1.25 var(--lp-display); }

.lp-mailboxes { list-style: none; margin: 0; padding: 0; }
.lp-mailbox { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.lp-mailbox:last-child { border-bottom: 0; }
.lp-mailbox-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-mailbox-main strong { overflow-wrap: anywhere; }
.lp-mailbox .lp-details--inline[open] { flex-basis: 100%; }

/* ---------- Login ---------- */

.lp-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(ellipse at top, #11131A, var(--lp-bg) 60%); }
.lp-login-card { width: 100%; max-width: 440px; background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 26px; padding: 34px 30px; display: flex; flex-direction: column; gap: 16px; }
.lp-login-card .lp-logo { padding: 0; margin-bottom: 8px; }
.lp-login-card .lp-h1 { font-size: 34px; }
.lp-login-foot { font-size: 14px; color: var(--lp-muted); text-align: center; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
	.lp-nav { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 16px; gap: 14px; flex-basis: 100%; }
	.lp-nav-list { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
	.lp-nav-link { white-space: nowrap; padding: 0 14px; background: rgba(255, 255, 255, 0.04); }
	.lp-team { display: none; }
	.lp-main { padding-top: 28px; }
	.lp-head--split { align-items: flex-start; }
	.lp-task { flex-wrap: wrap; }
}
.lp-table form + form { margin-left: 8px; }
