/* KH Landing Page Builder — front-end styles
   Built on the Platform Style Guide tokens & class conventions (kh- shared UI, khe- cards). */

.khlpb-wrap {
	/* Brand */
	--khe-brand: #439bc0;
	--khe-brand-dark: #357c9b;
	--khe-brand-soft: #e8f3f8;
	/* Surfaces */
	--khe-bg: #f5f7f9;
	--khe-card: #ffffff;
	--khe-border: #e6e9ec;
	--khe-border-strong: #d1d5db;
	/* Text */
	--khe-text: #222222;
	--khe-text-muted: #555555;
	--khe-text-faint: #888888;
	/* Semantic */
	--khe-success: #1e6e3a;
	--khe-danger: #b00020;
	/* Shape */
	--khe-radius: 12px;
	--khe-radius-sm: 6px;
	--khe-shadow: 0 2px 8px rgba(0, 0, 0, .06);
	--khe-shadow-hover: 0 6px 18px rgba(0, 0, 0, .10);
	/* Shared search-ui aliases (buttons/inputs) */
	--kh-accent: #439bc0;
	--kh-accent-hover: #3286a8;
	--kh-border: #e5e7eb;
	--kh-text: #111827;
	--kh-text-muted: #6b7280;
	--kh-radius: 8px;
	--kh-transition: 0.2s ease;

	--khe-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-family: var(--khe-font);
	color: var(--khe-text);
	line-height: 1.5;
	box-sizing: border-box;
	max-width: 1080px;
	margin: 0 auto;
	padding: 32px 20px 80px;
}
.khlpb-wrap * { box-sizing: border-box; }

/* ---- Hero ---- */
.khlpb-hero { text-align: center; margin-bottom: 28px; }
.khlpb-logo { max-height: 96px; width: auto; margin: 0 auto 16px; display: block; }
.khlpb-welcome { font-size: 18px; color: var(--khe-text-muted); max-width: 680px; margin: 0 auto; }
.khlpb-welcome p { margin: 0 0 10px; }

/* ---- Kynd Kit brand intro ---- */
.khlpb-kkhero { text-align: center; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--khe-border); }
.khlpb-kkhero-logo { max-height: 96px; width: auto; max-width: 320px; margin: 0 auto 14px; display: block; }
.khlpb-kkhero-title { font-size: 40px; font-weight: 800; color: var(--khe-brand); line-height: 1; margin: 0; letter-spacing: -.01em; }
.khlpb-kkhero-tag { font-size: 18px; font-weight: 600; color: var(--khe-brand-dark); margin: 6px 0 14px; }
.khlpb-kkhero-intro { font-size: 15px; color: var(--khe-text-muted); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* ---- How to place your order ---- */
.khlpb-howto { margin-bottom: 28px; }
.khlpb-howto .khlpb-section-h { text-align: center; margin-bottom: 18px; }
.khlpb-howto-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.khlpb-howto-step {
	display: flex; gap: 12px; align-items: flex-start; background: var(--khe-card);
	border: 1px solid var(--khe-border); border-radius: var(--khe-radius); padding: 16px 18px; box-shadow: var(--khe-shadow);
}
.khlpb-howto-num {
	flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
	border-radius: 50%; background: var(--khe-brand); color: #fff; font-weight: 700; font-size: 14px;
}
.khlpb-howto-step strong { display: block; font-size: 14px; margin-bottom: 3px; }
.khlpb-howto-step p { margin: 0; font-size: 13px; color: var(--khe-text-muted); line-height: 1.45; }

/* ---- Shared buttons (kh-) ---- */
.khlpb-wrap .kh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 42px; padding: 0 20px; border: none; border-radius: var(--kh-radius);
	font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
	transition: background var(--kh-transition), color var(--kh-transition); font-family: inherit;
}
.khlpb-wrap .kh-btn--primary { background: var(--kh-accent); color: #fff; }
.khlpb-wrap .kh-btn--primary:hover { background: var(--kh-accent-hover); }
.khlpb-wrap .kh-btn--primary:disabled { background: #a9cede; cursor: not-allowed; }
.khlpb-wrap .kh-btn--ghost { background: transparent; color: var(--khe-text-muted); border: 1px solid var(--kh-border); }
.khlpb-wrap .kh-btn--ghost:hover { background: var(--kh-border); color: var(--khe-text); }

/* ---- Shared inputs (kh-) ---- */
.khlpb-wrap .kh-input {
	height: 44px; padding: 0 14px; border: 1px solid var(--khe-border-strong);
	border-radius: var(--kh-radius); background: #fff; font-size: 15px; color: var(--khe-text);
	outline: none; width: 100%; font-family: inherit; -webkit-appearance: none; appearance: none;
	transition: border-color var(--kh-transition), box-shadow var(--kh-transition);
}
.khlpb-wrap .kh-input:focus { border-color: var(--kh-accent); box-shadow: 0 0 0 3px rgba(67, 155, 192, .15); }

/* ---- Access gate ---- */
.khlpb-gate { display: flex; justify-content: center; }
.khlpb-gate-card {
	background: var(--khe-card); border: 1px solid var(--khe-border); border-radius: var(--khe-radius);
	box-shadow: var(--khe-shadow); padding: 32px; max-width: 420px; width: 100%; text-align: center;
}
.khlpb-gate-card h2 { margin: 0 0 8px; font-size: 20px; }
.khlpb-gate-card p { color: var(--khe-text-muted); font-size: 14px; margin: 0 0 16px; }
.khlpb-gate-card .kh-input { margin-bottom: 12px; }
.khlpb-gate-card .kh-btn { width: 100%; margin-bottom: 8px; }
.khlpb-gate-msg { min-height: 18px; font-size: 13px; margin: 6px 0 0; }
.khlpb-gate-msg.is-error { color: var(--khe-danger); }
.khlpb-gate-msg.is-ok { color: var(--khe-success); }

/* ---- Closed notice ---- */
.khlpb-closed {
	max-width: 480px; margin: 0 auto; text-align: center; padding: 36px 32px;
	background: var(--khe-card); border: 1px solid var(--khe-border);
	border-radius: var(--khe-radius); box-shadow: var(--khe-shadow);
}
.khlpb-closed h2 { margin: 0 0 8px; font-size: 20px; }
.khlpb-closed p { color: var(--khe-text-muted); font-size: 14px; margin: 0; }

/* ---- Builder ---- */
.khlpb-loading, .khlpb-empty {
	text-align: center; color: var(--khe-text-muted); padding: 40px 18px;
	background: var(--khe-bg); border-radius: var(--khe-radius);
}

/* Step indicator */
.khlpb-steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.khlpb-stepdot {
	display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
	color: var(--khe-text-faint); padding: 6px 14px; border-radius: 999px; background: var(--khe-bg);
}
.khlpb-stepdot b {
	display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
	border-radius: 50%; background: #fff; border: 1px solid var(--khe-border); font-size: 12px;
}
.khlpb-stepdot.active { color: var(--khe-brand-dark); background: var(--khe-brand-soft); }
.khlpb-stepdot.active b { background: var(--khe-brand); color: #fff; border-color: var(--khe-brand); }
.khlpb-stepdot.done b { background: var(--khe-success); color: #fff; border-color: var(--khe-success); }

.khlpb-panel { min-height: 200px; }
.khlpb-h2 { font-size: 18px; margin: 0 0 16px; }
.khlpb-cap-note { font-size: 14px; color: var(--khe-text-muted); margin: 0 0 16px; }

/* Kit grid (khe- cards) */
.khlpb-kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.khlpb-kit {
	background: var(--khe-card); border-radius: var(--khe-radius); overflow: hidden;
	box-shadow: var(--khe-shadow); display: flex; flex-direction: column;
	transition: transform .18s, box-shadow .18s; border: 1px solid var(--khe-border);
}
.khlpb-kit:hover { transform: translateY(-3px); box-shadow: var(--khe-shadow-hover); }
.khlpb-kit.is-selected { border-color: var(--khe-brand); box-shadow: 0 0 0 2px var(--khe-brand-soft), var(--khe-shadow); }
.khlpb-kit-img {
	height: 150px; background-size: cover; background-position: center;
	background-color: var(--khe-brand-soft); position: relative;
}
.khlpb-soldout {
	position: absolute; top: 10px; left: 10px; background: #fff; color: var(--khe-danger);
	font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.khlpb-kit .khe-event-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.khlpb-kit .khe-badge {
	display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .03em; background: var(--khe-brand-soft);
	color: var(--khe-brand-dark); align-self: flex-start; margin-bottom: 8px;
}
.khlpb-kit .khe-event-card-title { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.khlpb-kit-price { margin: 0 0 12px; color: var(--khe-text-muted); font-weight: 600; }
.khlpb-qty { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.khlpb-qty .kh-btn { height: 36px; padding: 0 14px; }
.khlpb-qty .khlpb-inc, .khlpb-qty .khlpb-dec { min-width: 40px; font-size: 18px; }
.khlpb-qty .khlpb-add { flex: 1; }
.khlpb-qnum { font-weight: 700; min-width: 18px; text-align: center; }

/* Distribution */
.khlpb-distrib { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.khlpb-dc {
	text-align: left; padding: 20px; border-radius: var(--khe-radius); border: 2px solid var(--khe-border);
	background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; font-family: inherit;
}
.khlpb-dc:hover { border-color: var(--khe-brand); }
.khlpb-dc.active { border-color: var(--khe-brand); box-shadow: 0 0 0 2px var(--khe-brand-soft); }
.khlpb-dc strong { display: block; font-size: 15px; margin-bottom: 6px; color: var(--khe-text); }
.khlpb-dc span { font-size: 13px; color: var(--khe-text-muted); }

/* Review */
.khlpb-review { width: 100%; border-collapse: collapse; }
.khlpb-review td { padding: 12px 8px; border-bottom: 1px solid var(--khe-border); font-size: 14px; }
.khlpb-review td:last-child { text-align: right; white-space: nowrap; }
.khlpb-review td:nth-child(2) { color: var(--khe-text-muted); text-align: center; }
.khlpb-review-label td { color: var(--khe-text-muted); }
.khlpb-review tfoot td { font-weight: 700; border-bottom: none; }
.khlpb-disc { margin-top: 14px; font-size: 13px; color: var(--khe-success); background: #e8f5ec; padding: 10px 14px; border-radius: var(--khe-radius-sm); }

/* Footer */
.khlpb-footer {
	position: sticky; bottom: 0; margin-top: 24px; padding: 16px 0; background: var(--khe-bg);
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	border-top: 1px solid var(--khe-border);
}
.khlpb-count { font-size: 14px; color: var(--khe-text-muted); font-weight: 600; }
.khlpb-footer-btns { display: flex; gap: 10px; }

@media (max-width: 600px) {
	.khlpb-distrib { grid-template-columns: 1fr; }
	.khlpb-footer { flex-direction: column; align-items: stretch; }
	.khlpb-footer-btns .kh-btn { flex: 1; }
}

/* ---- Standard Project Helping content sections ---- */
.khlpb-info { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--khe-border); }
.khlpb-info > div { margin-bottom: 48px; text-align: center; }
.khlpb-info > div:last-child { margin-bottom: 0; }
.khlpb-section-h { font-size: 22px; margin: 0 0 6px; }
.khlpb-section-sub { color: var(--khe-text-muted); margin: 0 0 24px; }
.khlpb-impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
/* Cycle of impact graphic (scoped to .khlpb-cycle) */
.khlpb-cycle { font-family: var(--khe-font); }
.khlpb-cycle .section-eyebrow { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #8a9bab; margin-bottom: .35rem; text-align: center; }
.khlpb-cycle .section-title { font-size: 1.75rem; font-weight: 800; color: #1d3040; line-height: 1.15; margin-bottom: .45rem; text-align: center; }
.khlpb-cycle .section-title em { color: #439bc0; font-style: italic; }
.khlpb-cycle .section-sub { font-size: .9rem; color: #5a6a7a; line-height: 1.6; margin-bottom: 2rem; text-align: center; max-width: 520px; margin-left: auto; margin-right: auto; }
.khlpb-cycle .flow { display: flex; align-items: center; gap: 0; position: relative; }
.khlpb-cycle .step { flex: 1; padding: 1.75rem 1.25rem 1.5rem; text-align: center; border-radius: 18px; border: 1.5px solid; position: relative; transition: box-shadow .2s; }
.khlpb-cycle .step:hover { box-shadow: 0 6px 28px rgba(29,48,64,.09); }
.khlpb-cycle .s1 { background: #f4fbfc; border-color: #b3dde9; }
.khlpb-cycle .s2 { background: #f0fbf8; border-color: #b3e8db; }
.khlpb-cycle .s3 { background: #f5f0fd; border-color: #d4bff5; }
.khlpb-cycle .s4 { background: #fdf0f5; border-color: #f0b8d0; }
.khlpb-cycle .step-num { width: 26px; height: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 800; margin: 0 auto .7rem; color: #fff; }
.khlpb-cycle .n1 { background: #439bc0; }
.khlpb-cycle .n2 { background: #1ec1a1; }
.khlpb-cycle .n3 { background: #924cd8; }
.khlpb-cycle .n4 { background: #de3c7a; }
.khlpb-cycle .step-icon-wrap { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto .8rem; font-size: 1.3rem; }
.khlpb-cycle .iw1 { background: rgba(67,155,192,.12); color: #439bc0; }
.khlpb-cycle .iw2 { background: rgba(30,193,161,.12); color: #1ec1a1; }
.khlpb-cycle .iw3 { background: rgba(146,76,216,.1); color: #924cd8; }
.khlpb-cycle .iw4 { background: rgba(222,60,122,.1); color: #de3c7a; }
.khlpb-cycle .step strong { font-size: .87rem; font-weight: 700; color: #1d3040; display: block; margin-bottom: .35rem; }
.khlpb-cycle .step p { font-size: .77rem; color: #5a6a7a; line-height: 1.58; margin: 0; }
.khlpb-cycle .arrow-conn { flex-shrink: 0; width: 36px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.khlpb-cycle .arrow-conn svg { overflow: visible; }
.khlpb-cycle-link { display: inline-flex; align-items: center; gap: 3px; margin-top: .55rem; font-size: .72rem; font-weight: 600; color: #de3c7a; text-decoration: none; opacity: .7; transition: opacity .15s; }
.khlpb-cycle-link:hover { opacity: 1; }
@media (max-width: 700px) {
	.khlpb-cycle .flow { flex-direction: column; align-items: stretch; gap: .5rem; }
	.khlpb-cycle .arrow-conn { width: auto; height: 28px; transform: rotate(90deg); }
	.khlpb-cycle .section-title { font-size: 1.4rem; }
}
.khlpb-about { max-width: 620px; margin-left: auto; margin-right: auto; }
.khlpb-about p { color: var(--khe-text-muted); font-size: 16px; margin: 0 0 20px; }
.khlpb-support-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }


/* ── Order builder + gate (kklh-lp-*, adapted for the order pipeline) ─────── */
.kklh-lp-wrap .kklh-gate { display:flex; justify-content:center; padding:30px 16px; }
.kklh-gate-card { background:#fff; border:1.5px solid #ddedf4; border-radius:12px; padding:26px; max-width:420px; width:100%; text-align:center; }
.kklh-gate-card h2 { margin:0 0 8px; font-size:20px; color:#1d3040; }
.kklh-gate-card .kh-input { margin:8px 0; }
.kklh-gate-msg { font-size:13px; margin:10px 0 0; min-height:18px; }
.kklh-gate-msg.is-error { color:#c0392b; }
.kklh-gate-msg.is-ok { color:#1e6e3a; }

.kklh-lp-limit { max-width:680px; margin:0 auto 18px; }
.kklh-lp-limit-bar { position:relative; height:10px; background:#eef7fb; border-radius:999px; overflow:hidden; }
.kklh-lp-limit-bar span { position:absolute; top:0; left:0; height:100%; border-radius:999px; transition:width .3s; }
.kklh-lp-limit-projected { background:#b6ece1; }  /* lighter: live cart preview */
.kklh-lp-limit-committed { background:#1ec1a1; }  /* solid: already-committed orders */
.kklh-lp-limit-label { font-size:13px; color:#5a6a7a; margin-top:6px; text-align:center; }

.kklh-lp-steps { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin:0 0 18px; }
.kklh-lp-stepdot { font-size:13px; color:#8a9bab; display:flex; align-items:center; gap:6px; }
.kklh-lp-stepdot b { width:22px; height:22px; border-radius:50%; background:#eef7fb; color:#5a6a7a; display:inline-flex; align-items:center; justify-content:center; font-size:12px; }
.kklh-lp-stepdot.active { color:#1d3040; font-weight:700; }
.kklh-lp-stepdot.active b { background:#439bc0; color:#fff; }
.kklh-lp-stepdot.done b { background:#e3f7f2; color:#085041; }

.kklh-lp-panel { max-width:680px; margin:0 auto; }
.kklh-lp-h2 { font-size:18px; color:#1d3040; margin:0 0 14px; }
.kklh-lp-kit-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; }
.kklh-lp-kit { border:1.5px solid #ddedf4; border-radius:12px; overflow:hidden; background:#fff; }
.kklh-lp-kit.is-selected { border-color:#439bc0; box-shadow:0 4px 14px rgba(67,155,192,.12); }
.kklh-lp-kit-img { height:120px; background:#eef7fb center/cover no-repeat; }
.kklh-lp-kit-body { padding:12px; }
.kklh-lp-tier { font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:#357c9b; font-weight:700; }
.kklh-lp-kit-title { font-size:15px; color:#1d3040; margin:4px 0 10px; }
.kklh-lp-qty { display:flex; align-items:center; gap:8px; }
.kklh-lp-qnum { min-width:24px; text-align:center; font-weight:700; }
.kklh-lp-cap-note { font-size:13px; color:#5a6a7a; margin:0 0 12px; }

.kklh-lp-distrib { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.kklh-lp-dc { text-align:left; border:1.5px solid #ddedf4; border-radius:12px; padding:14px; background:#fff; cursor:pointer; }
.kklh-lp-dc.active { border-color:#439bc0; background:#eef7fb; }
.kklh-lp-dc strong { display:block; color:#1d3040; margin-bottom:4px; }
.kklh-lp-dc span { font-size:13px; color:#5a6a7a; }

.kklh-lp-form { display:flex; flex-direction:column; gap:10px; max-width:480px; }
.kklh-lp-form-row { display:flex; gap:10px; }
.kklh-lp-form .kh-input { width:100%; }

.kklh-lp-review { width:100%; border-collapse:collapse; margin-bottom:14px; }
.kklh-lp-review td { padding:8px 0; border-bottom:1px solid #eef7fb; font-size:14px; }
.kklh-lp-review-ship { font-size:14px; color:#5a6a7a; margin-bottom:12px; }
.kklh-lp-note { font-size:13px; color:#5a6a7a; background:#eef7fb; padding:10px 12px; border-radius:10px; }

.kklh-lp-footer { display:flex; justify-content:space-between; align-items:center; max-width:680px; margin:18px auto 0; gap:10px; flex-wrap:wrap; }
.kklh-lp-count { font-size:13px; color:#5a6a7a; }
.kklh-lp-footer-btns { display:flex; gap:8px; }
.kklh-lp-empty { text-align:center; color:#8a9bab; padding:24px; }
.kklh-lp-thanks { text-align:center; padding:36px 16px; }
.kklh-lp-thanks i { font-size:42px; color:#1ec1a1; }
.kklh-lp-thanks p { font-size:16px; color:#1d3040; margin-top:10px; }
.kklh-lp-loading { text-align:center; color:#8a9bab; padding:24px; }

@media (max-width:560px) {
    .kklh-lp-distrib { grid-template-columns:1fr; }
    .kklh-lp-form-row { flex-direction:column; }
}
