/* The landing page (/). It uses the tokens of site.css only.
   Prefix: lp-. The product views are drawn in HTML; see the view. */

.lp-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.lp-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.lp-tag {
	display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-pill);
	background: var(--bg-alt); color: var(--ink-2); font: 500 12px/1.5 var(--sans); white-space: nowrap;
}

/* Status chips of the product views. Each pairs a tint with a word, so the
   meaning does not depend on color. */
.lp-st { display: inline-flex; padding: 2px 9px; border-radius: var(--r-pill); font: 500 12px/1.6 var(--sans); background: var(--bg-alt); color: var(--ink-2); white-space: nowrap; }
.lp-st-ok { background: var(--accent-soft); color: var(--accent); }
.lp-st-gap { background: #f8ecd2; color: #7a5208; }
.lp-st-bad { background: #f7e1d8; color: #9a3a14; }

/* Grey bars that stand for lines of text on a drawn page. */
.lp-line { height: 7px; border-radius: 4px; background: #e9e4da; margin: 0 0 9px !important; }
.lp-line.w40 { width: 40%; } .lp-line.w60 { width: 60%; } .lp-line.w70 { width: 70%; } .lp-line.w75 { width: 75%; }
.lp-line.w80 { width: 80%; } .lp-line.w85 { width: 85%; } .lp-line.w90 { width: 90%; } .lp-line.w95 { width: 95%; } .lp-line.w100 { width: 100%; }

/* ─── Hero ─── */
.lp-hero {
	padding: var(--s9) 0 var(--s8);
	background:
		radial-gradient(1200px 500px at 50% -10%, rgba(31, 77, 58, .08), transparent 70%),
		var(--bg);
}
.lp-hero-text { display: grid; justify-items: center; text-align: center; gap: var(--s5); }
.lp-hero h1 { max-width: 960px; }
.lp-hero h1 em { font-style: italic; color: var(--accent); }
.lp-hero .site-lead { max-width: 720px; }
.lp-hero .lp-actions { justify-content: center; }
/* The time figures under the hero buttons. */
.lp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); width: 100%; max-width: 880px; margin: var(--s4) 0 0; padding-top: var(--s5); border-top: 1px solid var(--line); }
.lp-stats div { display: grid; gap: var(--s1); align-content: start; }
.lp-stats dt { font: 500 clamp(30px, 3.4vw, 42px)/1.05 var(--serif); color: var(--accent); letter-spacing: -.01em; }
.lp-stats dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.lp-stats-note { font-size: 13px; color: var(--ink-3); max-width: 720px; }
.lp-gains { padding-bottom: var(--s8); }
/* The branches of law: a grid of short cards. */
.lp-branches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.lp-branches li { display: grid; grid-template-rows: auto 1fr auto; gap: var(--s2); padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.lp-branches h3 { font-size: 20px; }
.lp-branches p { font-size: 15px; color: var(--ink-2); }
.lp-branch-code { justify-self: start; padding: 2px 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font: 500 13px/1.6 var(--sans); }

.lp-app {
	margin: var(--s8) 0 0; border: 1px solid var(--line); border-radius: var(--r-lg);
	background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden;
	font-size: 14px; line-height: 1.45;
}
.lp-app-bar { display: flex; align-items: center; gap: var(--s3); padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.lp-dots { display: inline-flex; gap: 6px; }
.lp-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.lp-app-url { flex: 1; text-align: center; color: var(--ink-3); font: 400 12px/1 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-app-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) 300px; min-height: 380px; }

.lp-app-menu { border-right: 1px solid var(--line); padding: var(--s4); background: #fcfbf8; }
.lp-app-matter { display: grid; gap: 2px; padding-bottom: var(--s3); margin-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.lp-app-matter span { color: var(--ink-3); font-size: 13px; }
.lp-app-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lp-app-menu li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: var(--r-sm); color: var(--ink-2); }
.lp-app-menu li i { font-style: normal; color: var(--ink-3); font-size: 12px; }
.lp-app-menu li.is-on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.lp-app-menu li.is-warn i { background: #f8ecd2; color: #7a5208; border-radius: var(--r-pill); padding: 0 7px; }

.lp-app-main { padding: var(--s4); display: grid; gap: var(--s2); align-content: start; }
.lp-seg { display: inline-flex; justify-self: start; gap: 2px; padding: 3px; border-radius: var(--r-md); background: var(--bg-alt); margin-bottom: var(--s2); }
.lp-seg span { padding: 5px 12px; border-radius: 7px; color: var(--ink-2); font-size: 13px; }
.lp-seg span.is-on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.lp-seg i { font-style: normal; color: #9a3a14; font-weight: 600; }
.lp-row { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; background: var(--surface); }
.lp-row-focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lp-row-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.lp-row-head b { font-weight: 600; }
.lp-row p { color: var(--ink-3); font-size: 13px; margin-top: 2px; }

.lp-app-source { border-left: 1px solid var(--line); background: #f6f3ed; padding: var(--s4); display: grid; gap: var(--s3); align-content: start; }
.lp-src-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.lp-src-head span + span { font-weight: 400; color: var(--ink-3); }
.lp-page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px 16px 10px; box-shadow: var(--shadow-sm); }
.lp-quote { margin: 4px 0 12px !important; padding: 4px 6px; background: #fbefc4; box-shadow: inset 2px 0 0 #d6a21e; font: 400 13px/1.45 var(--serif); color: var(--ink); }
.lp-src-note { display: flex; gap: var(--s2); align-items: flex-start; font-size: 13px; color: #9a3a14; }
.lp-src-note .lp-icon { width: 18px; height: 18px; margin-top: 1px; }

/* ─── Shift: what the lawyer stops doing ─── */
.lp-shift { padding: var(--s8) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.lp-shift-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s7); align-items: start; }
.lp-shift h2 { margin-top: var(--s3); font-size: clamp(28px, 3.2vw, 40px); }
.lp-shift-list { list-style: none; margin: 0; padding: 0; display: grid; }
.lp-shift-list li { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.lp-shift-list li:first-child { padding-top: 0; }
.lp-shift-list span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.lp-shift-list b { font-weight: 500; color: var(--ink); }

/* ─── Steps ─── */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); counter-reset: none; }
.lp-steps li {
	position: relative; display: grid; gap: var(--s3); align-content: start;
	padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.lp-steps li > .lp-icon { color: var(--accent); width: 28px; height: 28px; }
.lp-step-n { position: absolute; top: var(--s5); right: var(--s5); font: 500 14px/1 var(--mono); color: var(--ink-3); }
.lp-steps p { color: var(--ink-2); font-size: 16px; }
.lp-steps li.lp-step-you { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lp-step-you > .lp-icon, .lp-step-you .lp-step-n { color: #bfe0cf !important; }
.lp-steps li.lp-step-you p { color: #dcebe3; }

/* ─── Split sections ─── */
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.lp-split-text { display: grid; gap: var(--s5); align-content: start; }
.lp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.lp-checks li { display: flex; gap: var(--s3); align-items: flex-start; color: var(--ink-2); }
.lp-checks li .lp-icon { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; stroke-width: 2; }
.lp-checks b { color: var(--ink); font-weight: 600; }

.lp-panel { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: var(--s5); display: grid; gap: var(--s4); font-size: 15px; }
.lp-panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.lp-panel-head b { font: 600 17px/1.3 var(--serif); }
.lp-assess { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin: 0; }
.lp-assess div { display: grid; gap: 6px; padding: var(--s3); background: var(--bg); border-radius: var(--r-md); }
.lp-assess dt { color: var(--ink-3); font-size: 13px; }
.lp-assess dd { margin: 0; }
.lp-conflict { border: 1px solid #ecc9b9; background: #fdf6f2; border-radius: var(--r-md); padding: var(--s4); display: grid; gap: var(--s3); }
.lp-conflict-title { display: flex; align-items: center; gap: var(--s2); font-weight: 600; color: #9a3a14; }
.lp-conflict-title .lp-icon { width: 20px; height: 20px; }
.lp-conflict-sides { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.lp-conflict blockquote { margin: 0; padding: var(--s3); background: var(--surface); border-radius: var(--r-sm); border: 1px solid var(--line); display: grid; gap: 6px; }
.lp-conflict blockquote p { font: 400 15px/1.4 var(--serif); }
.lp-conflict cite { font-style: normal; font-size: 13px; color: var(--ink-3); }
.lp-conflict-actions { display: flex; gap: var(--s2); }
.lp-conflict-actions span { padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 13px; background: var(--surface); }
.lp-conflict-actions span:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ─── Features ─── */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.lp-features article { background: var(--surface); padding: var(--s6) var(--s5); display: grid; gap: var(--s3); align-content: start; }
.lp-features .lp-icon { color: var(--accent); width: 28px; height: 28px; }
.lp-features p { color: var(--ink-2); font-size: 16px; }

/* ─── Documents ─── */
.lp-docs-section { background: var(--bg-alt); }
.lp-split-rev { grid-template-columns: 1fr 1fr; }
.lp-draft-page { background: #fffefb; border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s5); box-shadow: var(--shadow-sm); }
.lp-draft-to { margin-left: auto !important; width: 55%; font: 400 13px/1.45 var(--serif); color: var(--ink-2); margin-bottom: var(--s4) !important; }
.lp-draft-h { text-align: center; font: 600 15px/1 var(--serif); letter-spacing: .2em; margin-bottom: var(--s4) !important; }
.lp-draft-cite { font: 400 14px/1.5 var(--serif); padding: 6px 8px; margin: 2px 0 12px !important; background: var(--accent-soft); border-radius: 4px; }
.lp-req { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s4); font-size: 14px; }
.lp-req li { display: flex; gap: var(--s2); align-items: center; }
.lp-req .lp-icon { width: 18px; height: 18px; stroke-width: 2; }
.lp-req .ok .lp-icon { color: var(--accent); }
.lp-req .warn { color: #7a5208; }
.lp-doc-kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s5); }
.lp-doc-kinds li { padding-left: var(--s5); position: relative; color: var(--ink-2); }
.lp-doc-kinds li::before { content: ""; position: absolute; left: 0; top: .7em; width: 12px; height: 2px; background: var(--accent); }
.lp-note { font-size: 15px; border-left: 2px solid var(--line-strong); padding-left: var(--s4); }

/* ─── Data sources (dark) ─── */
.lp-eyebrow-dark { color: #9fd3b7; }
.lp-sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.lp-sources article { display: grid; gap: var(--s3); align-content: start; padding: var(--s5); border: 1px solid var(--dark-line); border-radius: var(--r-lg); background: rgba(255, 255, 255, .02); }
.lp-sources .lp-icon { color: #9fd3b7; width: 28px; height: 28px; }
.lp-sources p { color: #c3cbc6; font-size: 16px; }
.lp-data-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s5); }
.lp-data-link {
	display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
	padding: var(--s5); border-radius: var(--r-lg); background: var(--dark-ink); color: var(--ink) !important; text-decoration: none;
	transition: transform .15s, box-shadow .15s;
}
.lp-data-link:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, .25); }
.lp-data-link span { display: grid; gap: 4px; color: var(--ink-2); font-size: 15px; }
.lp-data-link b { font: 600 20px/1.2 var(--serif); color: var(--ink); }
.lp-data-link .lp-icon { color: var(--accent); }

/* ─── Review ─── */
.lp-review { position: relative; padding: var(--s9) 0; overflow: hidden; }
.lp-review-img { position: absolute; inset: 0; }
.lp-review-img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.lp-review::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 32, 26, .55), rgba(18, 32, 26, 0) 70%); }
.lp-review .site-wrap { position: relative; z-index: 1; }
.lp-review-card { max-width: 520px; background: rgba(250, 248, 244, .96); border-radius: var(--r-lg); padding: var(--s6); display: grid; gap: var(--s4); box-shadow: var(--shadow-lg); }

/* ─── Security ─── */
.lp-security { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.lp-security article { display: grid; gap: var(--s3); align-content: start; padding-top: var(--s5); border-top: 2px solid var(--ink); }
.lp-security .lp-icon { color: var(--accent); }
.lp-security h3 { font-size: 20px; }
.lp-security p { color: var(--ink-2); font-size: 16px; }
/* ZDR is the first promise of the block, so it takes a full row. */
.lp-security .lp-sec-wide { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: start; column-gap: var(--s4); padding: var(--s5); border: 1px solid var(--accent); border-top-width: 2px; border-radius: var(--r-lg); background: var(--accent-soft); }
.lp-security .lp-sec-wide .lp-icon { grid-row: span 2; width: 32px; height: 32px; }
.lp-security .lp-sec-wide p { max-width: 820px; color: var(--ink); }

/* ─── Final call ─── */
.lp-cta { padding: var(--s9) 0; background: var(--accent); color: var(--accent-ink); }
.lp-cta-inner { display: grid; justify-items: center; text-align: center; gap: var(--s5); }
.lp-cta .site-lead { color: #dcebe3; }
.lp-cta .site-btn-primary { background: var(--bg); color: var(--ink) !important; }
.lp-cta .site-btn-primary:hover { background: #fff; }
.lp-cta .site-btn-ghost { border-color: rgba(255, 255, 255, .45); color: var(--accent-ink); }
.lp-cta .site-btn-ghost:hover { border-color: #fff; }

/* ─── Narrow screens ─── */
@media (max-width: 1080px) {
	.lp-app-body { grid-template-columns: 180px minmax(0, 1fr); }
	.lp-app-source { display: none; }
	.lp-security { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.lp-shift-grid, .lp-split, .lp-split-rev { grid-template-columns: 1fr; gap: var(--s6); }
	.lp-split-rev .lp-panel { order: 2; }
	.lp-steps, .lp-features, .lp-sources { grid-template-columns: 1fr 1fr; }
	.lp-branches { grid-template-columns: 1fr 1fr; }
	.lp-data-links { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.lp-hero { padding: var(--s7) 0 var(--s6); }
	.lp-hero-text { justify-items: start; text-align: left; }
	.lp-hero .lp-actions { justify-content: flex-start; }
	.lp-app { margin-top: var(--s6); }
	.lp-app-body { grid-template-columns: 1fr; min-height: 0; }
	.lp-app-menu { display: none; }
	.lp-row-head { flex-direction: column; align-items: flex-start; gap: 4px; }
	.lp-steps, .lp-features, .lp-sources, .lp-security, .lp-doc-kinds, .lp-req { grid-template-columns: 1fr; }
	.lp-shift-list li { grid-template-columns: 1fr; gap: var(--s1); }
	.lp-stats { grid-template-columns: 1fr; gap: var(--s4); }
	.lp-branches { grid-template-columns: 1fr; }
	.lp-assess { grid-template-columns: 1fr 1fr 1fr; }
	.lp-assess div { padding: var(--s2); }
	.lp-conflict-sides { grid-template-columns: 1fr; }
	.lp-panel { padding: var(--s4); }
	.lp-review { padding: var(--s8) 0 var(--s6); }
	.lp-review-img { position: static; display: block; margin-bottom: calc(-1 * var(--s8)); }
	.lp-review-img img { height: 240px; }
	.lp-review::after { display: none; }
	.lp-review { padding-top: 0; }
	.lp-review-card { padding: var(--s5); }
	.lp-cta .lp-actions { justify-content: center; }
}
.lp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.lp-shift-list li.lp-shift-head { padding: 0 0 var(--s2); }
.lp-shift-list li.lp-shift-head span { text-decoration: none; font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lp-shift-list li.lp-shift-head span + span { color: var(--accent); }
.lp-shift-list li.lp-shift-head + li { padding-top: var(--s4); }
@media (max-width: 640px) { .lp-shift-list li.lp-shift-head { display: none; } }

/* On a phone the icon stands beside the heading, so a card is shorter. */
@media (max-width: 640px) {
	.lp-steps li, .lp-features article, .lp-sources article, .lp-security article {
		grid-template-columns: 28px 1fr; column-gap: var(--s3); align-items: center; padding: var(--s4) var(--s5) var(--s5);
	}
	.lp-steps li > p, .lp-features article > p, .lp-sources article > p, .lp-security article > p { grid-column: 1 / -1; }
	.lp-steps li > .lp-icon, .lp-features .lp-icon, .lp-sources .lp-icon { width: 24px; height: 24px; }
	.lp-step-n { top: var(--s4); }
	.lp-security .lp-sec-wide .lp-icon { grid-row: auto; width: 24px; height: 24px; }
	.lp-security article { padding: var(--s4) 0 0; }
	.lp-features article { padding: var(--s5); }
}
/* The demo form in the final call (modules/site/views/demo_form.php). */
.lp-cta-form { width: 100%; max-width: 640px; color: var(--ink); }
.lp-cta .lp-cta-form .site-btn-primary { background: var(--accent); color: var(--accent-ink) !important; }
.lp-cta .lp-cta-form .site-btn-primary:hover { background: #173b2c; }
