/* LexGest — Ambiente de demonstração: página /demonstracao, nota na entrada e botão «Trocar de perfil». */
:root {
	--lgd-primary: #13294b;
	--lgd-primary-2: #1d3a66;
	--lgd-accent: #a8864d;
	--lgd-bg: #f4f3ef;
	--lgd-surface: #ffffff;
	--lgd-text: #19212e;
	--lgd-muted: #5f6774;
	--lgd-border: #e2ddd1;
	--lgd-shadow: 0 1px 2px rgba(25, 33, 46, .05), 0 8px 24px -12px rgba(19, 41, 75, .22);
	--lgd-font: 'Inter LG', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
	--lgd-serif: 'Source Serif LG', Georgia, 'Times New Roman', serif;
}
@media (prefers-color-scheme: dark) {
	:root { --lgd-bg: #0e131b; --lgd-surface: #151c27; --lgd-text: #e5e9ef; --lgd-muted: #a1abb9; --lgd-border: #2c3648; --lgd-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -12px rgba(0, 0, 0, .6); }
}

/* ---------- Landing page ---------- */
.lgd-body { margin: 0; font-family: var(--lgd-font); font-size: 15px; line-height: 1.55; color: var(--lgd-text); background: var(--lgd-bg); -webkit-font-smoothing: antialiased; }
.lgd-body *, .lgd-body *::before, .lgd-body *::after { box-sizing: border-box; }
.lgd-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.lgd-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: color-mix(in srgb, var(--lgd-accent) 14%, transparent); padding: 1px 6px; border-radius: 6px; }

.lgd-hero {
	position: relative; overflow: hidden; color: #eef2f8; padding: 34px 0 88px;
	background:
		radial-gradient(900px 420px at 8% -20%, color-mix(in srgb, var(--lgd-accent) 38%, transparent), transparent 62%),
		radial-gradient(700px 480px at 105% 120%, rgba(74, 111, 165, .35), transparent 60%),
		linear-gradient(160deg, var(--lgd-primary-2) 0%, var(--lgd-primary) 55%, #0c1a31 100%);
}
.lgd-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .06; background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 22px); }
.lgd-hero .lgd-wrap { position: relative; z-index: 1; }
.lgd-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 46px; font-weight: 600; font-size: .95rem; color: #dfe6f1; }
.lgd-brand__mark { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; font-family: var(--lgd-serif); font-size: 19px; color: #fff; background: linear-gradient(140deg, color-mix(in srgb, var(--lgd-accent) 80%, #fff), var(--lgd-accent)); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.lgd-brand__sep { opacity: .5; }
.lgd-brand span:last-child { font-weight: 500; color: #b8c4d6; }
.lgd-eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 600; color: color-mix(in srgb, var(--lgd-accent) 65%, #fff); }
.lgd-title { margin: 0; max-width: 760px; font-family: var(--lgd-serif); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.12; letter-spacing: -.015em; color: #fff; }
.lgd-lead { margin: 16px 0 0; max-width: 680px; font-size: 1.05rem; color: #cfd8e6; }
.lgd-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; }
.lgd-chips li { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); color: #eef2f8; }
.lgd-chips li::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: color-mix(in srgb, var(--lgd-accent) 70%, #fff); }

.lgd-main { margin-top: -56px; position: relative; z-index: 2; padding-bottom: 40px; }
.lgd-alert { background: #fdf1d9; color: #6b4708; border: 1px solid #f0d49b; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.lgd-session { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--lgd-surface); border: 1px solid var(--lgd-border); border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; box-shadow: var(--lgd-shadow); }
.lgd-session p { margin: 0; }
.lgd-session__actions { display: flex; gap: 14px; align-items: center; }

.lgd-section { margin-top: 26px; }
.lgd-section:first-of-type { margin-top: 0; }
.lgd-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 14px; }
.lgd-section h2, .lgd-manual h2 { margin: 0; font-family: var(--lgd-serif); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; }
.lgd-section__head p { margin: 0; color: var(--lgd-muted); font-size: .88rem; }
.lgd-main > .lgd-section:first-of-type .lgd-section__head h2, .lgd-main > .lgd-section:first-of-type .lgd-section__head p { color: #fff; }
.lgd-main > .lgd-section:first-of-type .lgd-section__head p code { background: rgba(255, 255, 255, .14); color: #fff; }
.lgd-main > .lgd-alert ~ .lgd-section:first-of-type .lgd-section__head h2,
.lgd-main > .lgd-session ~ .lgd-section:first-of-type .lgd-section__head h2,
.lgd-main > .lgd-alert ~ .lgd-section:first-of-type .lgd-section__head p,
.lgd-main > .lgd-session ~ .lgd-section:first-of-type .lgd-section__head p { color: inherit; }

.lgd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.lgd-grid--two { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.lgd-card { --tone: var(--lgd-primary); display: flex; flex-direction: column; background: var(--lgd-surface); border: 1px solid var(--lgd-border); border-radius: 16px; padding: 18px 18px 14px; box-shadow: var(--lgd-shadow); position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.lgd-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tone); }
.lgd-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(25, 33, 46, .06), 0 16px 32px -14px rgba(19, 41, 75, .3); }
.lgd-card--navy { --tone: #1d3a66; } .lgd-card--gold { --tone: #a8864d; } .lgd-card--teal { --tone: #237a78; }
.lgd-card--plum { --tone: #7a3e6e; } .lgd-card--green { --tone: #2f7a3e; } .lgd-card--slate { --tone: #4b5565; }
@media (prefers-color-scheme: dark) {
	.lgd-card--navy { --tone: #6f95cf; } .lgd-card--gold { --tone: #d6b679; } .lgd-card--teal { --tone: #5cc1bd; }
	.lgd-card--plum { --tone: #c98cbc; } .lgd-card--green { --tone: #77c28a; } .lgd-card--slate { --tone: #a3adbd; }
}
.lgd-card__head { display: flex; gap: 12px; align-items: center; }
.lgd-card__avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; letter-spacing: .02em; color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent); }
.lgd-card__role { margin: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--tone); }
.lgd-card__name { margin: 1px 0 0; font-weight: 600; font-size: 1.04rem; }
.lgd-card__points { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; gap: 6px; flex: 1; align-content: start; }
.lgd-card__points li { position: relative; padding-left: 18px; font-size: .9rem; color: var(--lgd-muted); }
.lgd-card__points li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--tone) 60%, transparent); }
.lgd-card__form { margin: 0; }
.lgd-card__login { margin: 10px 0 0; font-size: .8rem; color: var(--lgd-muted); }

.lgd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; font: inherit; font-weight: 600; font-size: .93rem; padding: 10px 16px; min-height: 44px; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--lgd-primary) 85%, #000); color: #fff; cursor: pointer; text-decoration: none; background: linear-gradient(180deg, color-mix(in srgb, var(--lgd-primary) 86%, #fff), var(--lgd-primary)); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--lgd-primary) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .15); transition: filter .15s, transform .08s; }
.lgd-btn:hover { filter: brightness(1.12); }
.lgd-btn:active { transform: translateY(1px); }
.lgd-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lgd-accent) 55%, transparent); }
.lgd-btn[disabled] { opacity: .5; cursor: not-allowed; }
.lgd-btn--ghost { background: var(--lgd-surface); color: var(--lgd-text); border-color: var(--lgd-border); box-shadow: 0 1px 2px rgba(25, 33, 46, .05); }
.lgd-btn--ghost:hover { filter: none; border-color: color-mix(in srgb, var(--lgd-border) 40%, var(--lgd-text)); }
.lgd-btn--small { width: auto; min-height: 36px; padding: 6px 14px; font-size: .88rem; }
.lgd-link { color: #1e5a96; font-weight: 600; text-decoration: none; }
.lgd-link:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { .lgd-link { color: #8cbcf0; } .lgd-btn { border-color: #3a5a8c; } }

.lgd-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 30px; }
.lgd-split > div { background: var(--lgd-surface); border: 1px solid var(--lgd-border); border-radius: 16px; padding: 20px 22px; box-shadow: var(--lgd-shadow); }
.lgd-steps { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.lgd-steps li { padding-left: 4px; color: var(--lgd-text); font-size: .93rem; }
.lgd-steps li::marker { color: var(--lgd-accent); font-weight: 700; }
.lgd-manual p { margin: 12px 0 0; }
.lgd-pass { font-size: 1rem !important; padding: 3px 10px !important; }
.lgd-muted { color: var(--lgd-muted); font-size: .86rem; }

.lgd-footer { border-top: 1px solid var(--lgd-border); padding: 20px 0 34px; font-size: .86rem; color: var(--lgd-muted); }
.lgd-footer p { margin: 4px 0; max-width: 860px; }

@media (max-width: 860px) {
	.lgd-split { grid-template-columns: 1fr; }
	.lgd-hero { padding-bottom: 76px; }
	.lgd-brand { margin-bottom: 28px; }
}
@media (max-width: 600px) {
	.lgd-main > .lgd-section:first-of-type .lgd-section__head p { display: none; }
}
@media (max-width: 420px) {
	.lgd-wrap { padding: 0 16px; }
	.lgd-grid, .lgd-grid--two { grid-template-columns: 1fr; }
}

/* ---------- Note on the LexGest sign-in pages ---------- */
.lgd-login-note {
	position: fixed; z-index: 50; right: 18px; bottom: 18px; max-width: 360px; display: grid; gap: 4px;
	font-family: var(--lgd-font); font-size: .86rem; line-height: 1.45; color: #19212e;
	background: #fffaf0; border: 1px solid #ecd9b0; border-left: 4px solid var(--lgd-accent); border-radius: 12px; padding: 12px 14px;
	box-shadow: 0 12px 30px -14px rgba(19, 41, 75, .45);
}
.lgd-login-note strong { color: #6b4f1f; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.lgd-login-note a { color: #1e5a96; font-weight: 600; }
.lgd-login-note code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #f3e7cc; padding: 1px 6px; border-radius: 5px; }
@media (max-width: 860px) { .lgd-login-note { position: static; max-width: none; margin: 0 16px 20px; } }

/* ---------- «Trocar de perfil» inside the application ---------- */
.lgd-switch {
	position: fixed; z-index: 60; left: 50%; bottom: 14px; transform: translateX(-50%);
	display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 24px);
	font-family: var(--lgd-font); font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap;
	color: #fff; background: rgba(19, 41, 75, .92); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 7px 14px 7px 12px;
	box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .55); backdrop-filter: blur(6px); transition: background .15s, transform .15s;
}
.lgd-switch:hover { background: #13294b; transform: translateX(-50%) translateY(-1px); }
.lgd-switch:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(168, 134, 77, .6); }
.lgd-switch svg { flex: none; color: #d6b679; }
.lgd-switch__who { font-weight: 500; color: #c9d4e5; overflow: hidden; text-overflow: ellipsis; }
.lgd-switch__who::after { content: '·'; margin-left: 8px; color: rgba(255, 255, 255, .35); }
@media (max-width: 560px) { .lgd-switch__who { display: none; } .lgd-switch { bottom: 10px; } }
/* Room at the end of LexGest pages so the button never hides the last lines. */
.main, .pt-main { padding-bottom: 80px !important; }
@media print { .lgd-switch, .lgd-login-note { display: none !important; } }
