/* C.L.E.A.N Books: book page, picker and order status. Builds on cwo-base.css. */

/* Hero */
.cb-hero__art { display: grid; place-items: center; }
.cb-hero__art img { width: min(380px, 78%); transform: rotate(4deg); border-radius: 3px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }

/* Story */
.cwo-story { padding: clamp(64px, 9vw, 120px) 0; background: var(--cwo-surface); }
.cwo-story__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.cwo-pull { margin: 0; position: sticky; top: 110px; border: 0; padding: 0; background: none; }
.cwo-pull p { font-family: var(--cwo-display); font-weight: 700; font-size: clamp(34px, 3.8vw, 52px); line-height: 1.12; margin: 0; color: var(--cwo-ink); font-style: normal; }
.cwo-pull em { font-style: normal; color: var(--cwo-ink); background: linear-gradient(transparent 64%, var(--cwo-gold) 64%, var(--cwo-gold) 92%, transparent 92%); }
.cwo-prose { max-width: 36em; font-size: 19px; color: var(--cwo-text); }
.cwo-prose p { margin-bottom: 1.15em; }
.cwo-prose__close { border-top: 1px solid var(--cwo-line); padding-top: 1.2em; margin-top: 1.6em; color: var(--cwo-ink); }
.cwo-prose__close strong { color: var(--cwo-green); }

/* Author */
.cb-author { background: var(--cwo-ground); padding: clamp(56px, 7vw, 88px) 0 0; overflow: hidden; }
.cb-author__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.cb-author__photo { margin: 0; align-self: end; }
.cb-author__photo img { width: min(420px, 100%); margin: 0 auto; }
.cb-author__copy { padding-bottom: clamp(56px, 7vw, 88px); max-width: 34em; }
.cb-author__quote { font-family: var(--cwo-display); font-size: 24px; line-height: 1.3; color: var(--cwo-green); margin: 1.2em 0; }

/* Order section */
.cwo-order { padding: clamp(64px, 9vw, 110px) 0; background: var(--cwo-green-tint); scroll-margin-top: 90px; }
.cb-order-form { max-width: 780px; }

/* Format tiles with steppers */
.cb-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cb-format {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 16px 16px 16px 18px; border: 1px solid #b9bcc4; border-radius: var(--cwo-r); background: var(--cwo-surface);
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.cb-format.is-on { border-color: var(--cwo-green); background: var(--cwo-green-tint); box-shadow: inset 0 0 0 1px var(--cwo-green); }
.cb-format__info { display: flex; flex-direction: column; line-height: 1.25; }
.cb-format__name { font-family: var(--cwo-sub); font-weight: 700; font-size: 15px; color: var(--cwo-ink); }
.cb-format__price { font-family: var(--cwo-display); font-weight: 700; color: var(--cwo-green); font-size: 22px; margin-top: 2px; }
.cb-stepper { display: inline-flex; align-items: center; border: 1px solid var(--cwo-green); border-radius: var(--cwo-r); overflow: hidden; flex-shrink: 0; background: #fff; }
.cwo .cb-stepper__btn {
	width: 40px; height: 42px; border: 0; background: transparent; color: var(--cwo-green);
	font: 700 20px/1 var(--cwo-sub); cursor: pointer; padding: 0; border-radius: 0; min-height: 0;
}
.cwo .cb-stepper__btn:hover { background: var(--cwo-green-tint); color: var(--cwo-green); }
.cwo .cb-stepper input {
	width: 40px; height: 42px; border: 0; text-align: center; font: 700 17px var(--cwo-sub); color: var(--cwo-ink);
	-moz-appearance: textfield; padding: 0; background: transparent; box-shadow: none; min-height: 0;
}
.cb-stepper input::-webkit-outer-spin-button, .cb-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cb-when-items { border-top: 1px solid var(--cwo-line); padding-top: 28px; margin-top: -4px; margin-bottom: 30px; }
.cb-delivery { margin: -8px 0 26px; }

/* Summary */
.cb-summary { margin: 0; padding: 18px 20px; background: var(--cwo-ground); border-radius: var(--cwo-r); }
.cb-summary > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 16px; }
.cb-summary dt { color: var(--cwo-muted); font-weight: 600; margin: 0; }
.cb-summary dd { margin: 0; font-weight: 700; text-align: right; color: var(--cwo-ink); }
.cb-summary__total { border-top: 1px solid var(--cwo-line); margin-top: 6px; padding-top: 12px !important; }
.cb-summary__total dt, .cb-summary__total dd { color: var(--cwo-ink); font-size: 19px; font-weight: 700; }
.cb-summary__total dd { font-family: var(--cwo-display); color: var(--cwo-green); font-size: 24px; }
.cb-summary dd.is-loading { color: var(--cwo-muted); font-weight: 400; }

/* How it works */
.cwo-howto { padding: clamp(56px, 8vw, 96px) 0; background: var(--cwo-surface); }
.cwo-howto__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 88px); }
.cwo-howto__list { list-style: none; margin: 0; padding: 0; counter-reset: howto; }
.cwo-howto__list li { counter-increment: howto; position: relative; padding: 18px 0 18px 60px; border-top: 1px solid var(--cwo-line); margin: 0; }
.cwo-howto__list li:last-child { border-bottom: 1px solid var(--cwo-line); }
.cwo-howto__list li strong { color: var(--cwo-ink); }
.cwo-howto__list li::before {
	content: counter(howto); position: absolute; left: 0; top: 16px;
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 19px 19px 19px 0;
	font-family: var(--cwo-display); font-weight: 700; font-size: 20px; color: #fff; background: var(--cwo-green);
}
.cwo-howto__list li:nth-child(2)::before { background: var(--cwo-orange); }
.cwo-howto__list li:nth-child(3)::before { background: var(--cwo-purple); }
.cwo-howto__list li:nth-child(4)::before { background: var(--cwo-gold); color: var(--cwo-ink); }

/* Status */
.cb-status { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) 20px; }
.cb-status__card { background: var(--cwo-surface); border: 1px solid var(--cwo-line); border-radius: var(--cwo-r); padding: clamp(22px, 4vw, 36px); }
.cb-status__head { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; }
.cb-status__head img { width: 72px; height: auto; border-radius: 2px; box-shadow: 0 10px 22px -12px rgba(27, 31, 41, .6); }
.cb-status__label { margin: 0 0 2px; font-family: var(--cwo-sub); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--cwo-muted); }
.cb-status__title { font-family: var(--cwo-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.1; color: var(--cwo-ink); }
.cb-steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cb-steps li { font-family: var(--cwo-sub); font-size: 12px; font-weight: 600; color: var(--cwo-muted); padding-top: 12px; border-top: 4px solid var(--cwo-line); margin: 0; }
.cb-steps li.is-done { border-color: var(--cwo-green-3); color: var(--cwo-ink); }
.cb-steps li.is-current { border-color: var(--cwo-green); color: var(--cwo-ink); }
.cb-summary--static { margin-bottom: 18px; }
.cb-status__note { font-size: 16px; color: var(--cwo-text); }
.cb-status__help { text-align: center; color: var(--cwo-muted); font-size: 15px; margin-top: 18px; }

@media (max-width: 900px) {
	.cwo-story__grid, .cwo-howto__grid, .cb-author__grid { grid-template-columns: 1fr; }
	.cwo-pull { position: static; }
	.cb-hero__art img { width: min(260px, 64vw); }
	.cb-author__photo { order: 2; }
	.cb-author__photo img { width: min(320px, 80%); }
	.cb-author__copy { padding-bottom: 0; }
}
@media (max-width: 640px) {
	.cb-formats { grid-template-columns: 1fr; }
	.cb-steps li { font-size: 11px; }
}
