/*
 * Home page layout (the Kicks Plugins storefront). Shared pieces and the
 * design tokens live in style.css and css/store.css.
 */

.kdh h1, .kdh h2, .kdh h3 { color: var(--kd-ink); }
.kdh .kds-notify h3 { color: #fff; }
.kdh ul, .kdh ol { list-style: none; margin: 0; padding: 0; }

/* ---------- hero ---------- */
.kdh-hero { padding: 56px 0 72px; }
.kdh-badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; background: #fff; border: 1px solid #efede7; border-radius: 999px; font-size: 13px; color: var(--kd-gray); margin-bottom: 26px; }
.kdh-badge b { background: var(--kd-accent); color: var(--kd-ink); border-radius: 999px; padding: 4px 11px; font-size: 11px; font-weight: 700; }
.kdh-badge:hover { color: var(--kd-ink); border-color: var(--kd-ink); }
.kdh .kdh-hero h1 { font-size: clamp(42px, 7.4vw, 92px); line-height: 0.98; letter-spacing: -0.05em; margin: 0 0 26px; max-width: 980px; }
.kdh-hero-sub { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: #4a483f; max-width: 560px; margin: 0 0 32px; }
.kdh-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 56px; }

/* portal preview (decorative) */
.kdh-preview { background: #fff; border: 1px solid #ebe9e2; border-radius: 22px; box-shadow: 0 2px 4px rgba(17, 17, 17, 0.03), 0 30px 60px rgba(17, 17, 17, 0.08); overflow: hidden; }
.kdh-preview-bar { display: flex; align-items: center; gap: 7px; padding: 14px 20px; border-bottom: 1px solid #f1efe9; }
.kdh-preview-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e6e3da; }
.kdh-preview-bar span { flex: 1; text-align: center; font: 400 11px var(--kd-font-mono); color: #9a978c; margin-right: 40px; }
.kdh-preview-body { display: grid; grid-template-columns: 220px 1fr; }
.kdh-preview-nav { padding: 20px 16px; border-right: 1px solid #f1efe9; }
.kdh-preview-nav li { padding: 10px 14px; border-radius: 10px; font-size: 13px; color: #8a877c; margin-bottom: 4px; }
.kdh-preview-nav li.is-on { background: var(--kd-ink); color: #fff; font-weight: 600; }
.kdh-preview-main { padding: 22px 26px 26px; }
.kdh-preview-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.kdh-preview-head b { font-family: var(--kd-font-heading); font-weight: 800; font-variation-settings: 'wdth' 106; font-size: 18px; letter-spacing: -0.03em; }
.kdh-preview-head span { font-size: 12px; color: #8a877c; }
.kdh-preview-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #f1efe9; border-radius: 14px; margin-bottom: 10px; }
.kdh-preview-row .kds-icon { width: 40px; height: 40px; border-radius: 11px; }
.kdh-preview-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kdh-preview-name b { font-size: 14px; font-weight: 600; }
.kdh-preview-name code { font: 400 11px var(--kd-font-mono); color: #9a978c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kdh-preview-state { font-size: 12px; color: #8a877c; }

/* ---------- why strip ---------- */
.kdh-why { background: #fff; border-top: 1px solid #efede7; border-bottom: 1px solid #efede7; }
.kdh-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 36px 0 !important; }
.kdh-why-grid svg { margin-bottom: 14px; }
.kdh .kdh-why h3 { font-family: var(--kd-font-body); font-weight: 600; font-variation-settings: normal; font-size: 14px; letter-spacing: -0.01em; margin: 0 0 6px; }
.kdh-why p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--kd-gray); }

/* ---------- sections ---------- */
.kdh-section { padding: 88px 0; }
.kdh-white { background: #fff; }
.kdh-sechead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.kdh-section h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1; letter-spacing: -0.05em; margin: 0; }
.kdh .kdh-h2-wide { max-width: 760px; margin-bottom: 44px; }
.kdh-more { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--kd-ink); font-size: 14px; font-weight: 600; color: var(--kd-ink); white-space: nowrap; }
.kdh-more:hover { color: var(--kd-ink); border-bottom-color: var(--kd-accent); }
.kdh-more svg { width: 14px; height: 14px; }
.kdh-cards { align-items: stretch; }
.kdh-cards .kds-notify { min-height: 100%; }

/* ---------- steps ---------- */
.kdh-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.kdh-steps li { border-top: 2px solid #d9d6cc; padding-top: 18px; }
.kdh-steps .kds-label { margin-bottom: 10px; display: block; }
.kdh .kdh-steps h3 { font-size: 20px; letter-spacing: -0.03em; margin: 0 0 8px; }
.kdh-steps p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--kd-gray); }

/* ---------- FAQ ---------- */
.kdh-faq { max-width: 860px; }
.kdh-faq details { background: #fff; border: 1px solid #efede7; border-radius: 16px; margin-bottom: 10px; padding: 0 24px; }
.kdh-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; }
.kdh-faq summary::-webkit-details-marker { display: none; }
.kdh-faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #f3f1ea; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.kdh-faq details[open] summary::after { content: '–'; background: var(--kd-accent); }
.kdh .kdh-faq h3 { font-family: var(--kd-font-body); font-weight: 600; font-variation-settings: normal; font-size: 17px; letter-spacing: -0.01em; margin: 0; }
.kdh-faq details p { margin: 0 0 22px; font-size: 15px; line-height: 1.65; color: #4a483f; max-width: 720px; }
.kdh summary:focus-visible { outline: 3px solid var(--kd-accent); outline-offset: 3px; border-radius: 12px; }

/* ---------- client portal band ---------- */
.kdh-portal { background: var(--kd-ink); color: #fff; padding: 88px 0; }
.kdh-portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.kdh .kdh-portal h2 { color: #fff; font-size: clamp(34px, 4.6vw, 56px); line-height: 1; letter-spacing: -0.05em; margin: 0 0 18px; max-width: 460px; }
.kdh-portal-text { color: #bdbab0; font-size: 16px; line-height: 1.6; margin: 0 0 28px; max-width: 420px; }
.kdh-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kdh-stat { display: flex; flex-direction: column; gap: 6px; background: #1b1b1b; border: 1px solid #262626; border-radius: 18px; padding: 22px 24px; color: #fff; transition: border-color 0.15s; }
a.kdh-stat:hover { border-color: #444; color: #fff; }
.kdh-stat span { font-size: 13px; color: #a9a69b; }
.kdh-stat b { font-family: var(--kd-font-heading); font-weight: 800; font-variation-settings: 'wdth' 106; font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
.kdh-stat em { font-style: normal; font-size: 13px; color: var(--kd-accent); }
.kdh-stat-wide { grid-column: 1 / -1; }

/* ---------- closing CTA ---------- */
.kdh-cta { padding: 88px 0; }
.kdh-cta-card { background: var(--kd-accent); border-radius: 28px; padding: 64px 72px; display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: end; }
.kdh .kdh-cta-card h2 { grid-column: 1 / -1; font-size: clamp(48px, 8vw, 104px); line-height: 0.92; letter-spacing: -0.055em; margin: 0; color: var(--kd-ink); }
.kdh-cta-text { margin: 0; max-width: 440px; font-size: 16px; line-height: 1.55; color: #3a3320; }
.kdh-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 !important; }
.kdh-btn-ghost { background: transparent; color: var(--kd-ink); border-color: var(--kd-ink); }
.kdh-btn-ghost:hover { background: var(--kd-ink); color: #fff; }

/* ---------- tablet / phone ---------- */
@media (max-width: 960px) {
	.kdh-why-grid { grid-template-columns: repeat(2, 1fr); }
	.kdh-steps { grid-template-columns: 1fr; gap: 24px; }
	.kdh-portal-grid { grid-template-columns: 1fr; gap: 36px; }
	.kdh-cta-card { padding: 44px 36px; grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.kdh-hero { padding: 34px 0 48px; }
	.kdh-hero-actions { margin-bottom: 36px; }
	.kdh-preview-body { grid-template-columns: 1fr; }
	.kdh-preview-nav { display: none; }
	.kdh-preview-main { padding: 16px; }
	.kdh-preview-state { display: none; }
	.kdh-preview-bar span { margin-right: 0; }
	.kdh-why-grid { grid-template-columns: 1fr; gap: 22px; padding: 28px 0 !important; }
	.kdh-section, .kdh-portal, .kdh-cta { padding: 52px 0; }
	.kdh-sechead { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
	.kdh-faq details { padding: 0 18px; }
	.kdh-stats { grid-template-columns: 1fr 1fr; }
	.kdh-stat { padding: 18px; }
	.kdh-stat b { font-size: 34px; }
	.kdh-cta-card { padding: 36px 24px; border-radius: 22px; }
}
