/* =====================================================================
 * WorkSmarter — Components
 * Hero, cards, feature grids, stats, testimonials, FAQ, CTA, zone nav.
 * ===================================================================== */

/* ---------------- Hero ---------------- */
.ws-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(56px, 8vw, 112px) clamp(64px, 9vw, 128px);
	background:
		radial-gradient(1200px 500px at 80% -10%, var(--accent-soft), transparent 60%),
		linear-gradient(180deg, #fff, var(--ws-bg-alt));
}

.ws-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.ws-hero h1 {
	margin-bottom: 20px;
}

.ws-hero__lede {
	font-size: clamp(1.06rem, 0.98rem + 0.5vw, 1.28rem);
	line-height: 1.6;
	max-width: 560px;
	color: var(--ws-body);
	margin-bottom: 30px;
}

.ws-hero .ws-cta-row {
	margin-bottom: 30px;
}

.ws-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	font-size: 0.9rem;
	color: var(--ws-muted);
}

.ws-hero__badges span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.ws-hero__badges .ws-icon {
	color: var(--accent);
}

/* Hero visual card */
.ws-hero__visual {
	position: relative;
}

.ws-hero-card {
	background: #fff;
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius-lg);
	box-shadow: var(--ws-shadow-lg);
	padding: clamp(22px, 3vw, 34px);
}

.ws-hero-card__row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px dashed var(--ws-line);
}
.ws-hero-card__row:last-child { border-bottom: 0; }

.ws-hero-card__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: var(--accent-soft);
	color: var(--accent);
	flex: none;
}

.ws-hero-card__title {
	font-family: var(--ws-font-head);
	font-weight: 700;
	color: var(--ws-ink);
	font-size: 1.02rem;
}

.ws-hero-card__meta {
	font-size: 0.85rem;
	color: var(--ws-muted);
}

.ws-hero-card__streak {
	margin-left: auto;
	font-family: var(--ws-font-head);
	font-weight: 700;
	color: var(--accent);
	white-space: nowrap;
}

/* progress bar */
.ws-progress {
	height: 7px;
	border-radius: 99px;
	background: var(--ws-line);
	overflow: hidden;
	margin-top: 8px;
}
.ws-progress__bar {
	height: 100%;
	border-radius: 99px;
	background: var(--accent-grad);
}

@media (max-width: 900px) {
	.ws-hero__grid { grid-template-columns: 1fr; }
	.ws-hero__visual { order: -1; }
}

/* ---------------- Stats ---------------- */
.ws-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(16px, 2.4vw, 28px);
}

.ws-stat {
	text-align: center;
	padding: 24px 16px;
}

.ws-stat__value {
	font-family: var(--ws-font-head);
	font-weight: 800;
	font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
	line-height: 1;
	background: var(--accent-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.ws-stat__label {
	margin-top: 8px;
	font-size: 0.94rem;
	color: var(--ws-body);
}

.ws-section--dark .ws-stat__label { color: rgba(255,255,255,0.75); }

@media (max-width: 720px) {
	.ws-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Zone cards (front page) ---------------- */
.ws-zone-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius-lg);
	padding: clamp(24px, 3vw, 34px);
	box-shadow: var(--ws-shadow-sm);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.ws-zone-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 6px;
	background: var(--z-grad, var(--accent-grad));
}

.ws-zone-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--ws-shadow-lg);
	border-color: transparent;
}

.ws-zone-card__icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 16px;
	color: #fff;
	background: var(--z-grad, var(--accent-grad));
	box-shadow: var(--ws-shadow-sm);
	margin-bottom: 20px;
}

.ws-zone-card h3 { margin-bottom: 6px; }

.ws-zone-card__tag {
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--z-accent, var(--accent));
}

.ws-zone-card p {
	margin: 12px 0 22px;
	font-size: 0.99rem;
	flex: 1;
}

.ws-zone-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--ws-font-head);
	font-weight: 700;
	color: var(--z-accent, var(--accent));
}

.ws-zone-card__link .ws-icon {
	transition: transform 0.18s ease;
}
.ws-zone-card:hover .ws-zone-card__link .ws-icon {
	transform: translateX(4px);
}

/* ---------------- Feature cards ---------------- */
.ws-feature {
	background: #fff;
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius);
	padding: clamp(22px, 2.6vw, 30px);
	box-shadow: var(--ws-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ws-feature:hover {
	transform: translateY(-4px);
	box-shadow: var(--ws-shadow);
}

.ws-feature__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 15px;
	background: var(--accent-soft);
	color: var(--accent);
	margin-bottom: 18px;
}

.ws-feature h3 {
	font-size: 1.18rem;
	margin-bottom: 8px;
}

.ws-feature p {
	font-size: 0.97rem;
	margin: 0;
}

/* ---------------- Product/service cards ---------------- */
.ws-offer {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius-lg);
	overflow: hidden;
	box-shadow: var(--ws-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.22s ease;
}

.ws-offer:hover {
	transform: translateY(-5px);
	box-shadow: var(--ws-shadow-lg);
}

.ws-offer__head {
	position: relative;
	padding: 24px 26px 20px;
	color: #fff;
	background: var(--z-grad, var(--accent-grad));
}

.ws-offer__type {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.18);
	padding: 5px 11px;
	border-radius: 99px;
	margin-bottom: 14px;
}

.ws-offer__head h3 {
	color: #fff;
	font-size: 1.22rem;
	margin-bottom: 4px;
}

.ws-offer__for {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
}

.ws-offer__body {
	padding: 22px 26px 26px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ws-offer__body > p {
	font-size: 0.96rem;
	flex: 1;
}

.ws-offer__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: 0.86rem;
	color: var(--ws-muted);
	margin: 4px 0 20px;
}

.ws-offer__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ws-offer__meta .ws-icon { color: var(--accent); }

.ws-offer__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

.ws-offer__price {
	font-family: var(--ws-font-head);
	font-weight: 800;
	font-size: 1.5rem;
	color: var(--ws-ink);
}

.ws-offer__price small {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--ws-muted);
	display: block;
}

/* ---------------- Logo strip ---------------- */
.ws-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(20px, 4vw, 56px);
}

.ws-logos__label {
	width: 100%;
	text-align: center;
	font-size: 0.82rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ws-muted);
	font-weight: 700;
	margin-bottom: 10px;
}

.ws-logo-chip {
	font-family: var(--ws-font-head);
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--ws-muted);
	opacity: 0.85;
	filter: grayscale(1);
	transition: color 0.2s, opacity 0.2s, filter 0.2s;
}
.ws-logo-chip:hover { color: var(--ws-ink); opacity: 1; filter: none; }

/* ---------------- Process / steps ---------------- */
.ws-steps {
	counter-reset: step;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(18px, 2.5vw, 30px);
}

.ws-step {
	position: relative;
	padding: 28px 24px 24px;
	background: #fff;
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius);
	counter-increment: step;
}

.ws-step::before {
	content: counter(step, decimal-leading-zero);
	font-family: var(--ws-font-head);
	font-weight: 800;
	font-size: 0.86rem;
	color: #fff;
	background: var(--accent);
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	margin-bottom: 16px;
}

.ws-step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.ws-step p { font-size: 0.95rem; margin: 0; }

@media (max-width: 900px) { .ws-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .ws-steps { grid-template-columns: 1fr; } }

/* ---------------- Testimonials ---------------- */
.ws-testimonial {
	background: #fff;
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius-lg);
	padding: clamp(24px, 3vw, 34px);
	box-shadow: var(--ws-shadow-sm);
	display: flex;
	flex-direction: column;
}

.ws-testimonial__stars {
	color: #f5a524;
	margin-bottom: 14px;
	letter-spacing: 3px;
}

.ws-testimonial__quote {
	font-size: 1.04rem;
	line-height: 1.6;
	color: var(--ws-body);
	flex: 1;
}

.ws-testimonial__quote::before { content: "\201C"; }
.ws-testimonial__quote::after { content: "\201D"; }

.ws-testimonial__person {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 20px;
}

.ws-testimonial__avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-family: var(--ws-font-head);
	color: #fff;
	background: var(--z-grad, var(--accent-grad));
	flex: none;
}

.ws-testimonial__name { font-weight: 700; color: var(--ws-ink); font-family: var(--ws-font-head); }
.ws-testimonial__role { font-size: 0.86rem; color: var(--ws-muted); }

/* ---------------- FAQ ---------------- */
.ws-faq {
	max-width: 820px;
	margin-inline: auto;
	display: grid;
	gap: 14px;
}

.ws-faq__item {
	background: #fff;
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius);
	overflow: hidden;
}

.ws-faq__item summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	font-family: var(--ws-font-head);
	font-weight: 700;
	color: var(--ws-ink);
	font-size: 1.05rem;
}

.ws-faq__item summary::-webkit-details-marker { display: none; }

.ws-faq__item summary .ws-icon {
	flex: none;
	color: var(--accent);
	transition: transform 0.2s ease;
}
.ws-faq__item[open] summary .ws-icon { transform: rotate(45deg); }

.ws-faq__item__body {
	padding: 0 24px 22px;
	color: var(--ws-body);
}

/* ---------------- CTA band ---------------- */
.ws-cta-band {
	position: relative;
	overflow: hidden;
	border-radius: var(--ws-radius-lg);
	padding: clamp(36px, 5vw, 64px);
	text-align: center;
	background: var(--z-grad, var(--accent-grad));
	color: #fff;
	box-shadow: var(--ws-shadow-lg);
}

.ws-cta-band::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(600px 300px at 15% 0%, rgba(255,255,255,0.22), transparent 60%),
		radial-gradient(500px 260px at 90% 100%, rgba(255,255,255,0.16), transparent 55%);
	pointer-events: none;
}

.ws-cta-band h2 { color: #fff; position: relative; }
.ws-cta-band p {
	position: relative;
	max-width: 640px;
	margin: 14px auto 28px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.08rem;
}
.ws-cta-band .ws-cta-row { position: relative; justify-content: center; }

/* ---------------- Zone sub-nav (sticky pills) ---------------- */
.ws-zone-nav {
	position: sticky;
	top: 72px;
	z-index: 40;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--ws-line);
}

.ws-zone-nav__list {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-block: 12px;
	scrollbar-width: none;
}
.ws-zone-nav__list::-webkit-scrollbar { display: none; }

.ws-zone-nav__list a {
	white-space: nowrap;
	padding: 9px 16px;
	border-radius: 999px;
	font-family: var(--ws-font-head);
	font-weight: 600;
	font-size: 0.94rem;
	color: var(--ws-body);
	border: 1px solid transparent;
}

.ws-zone-nav__list a:hover,
.ws-zone-nav__list a.is-active {
	color: var(--accent);
	background: var(--accent-soft);
	border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}

/* active section underline fallback for older browsers without color-mix */
@supports not (color: color-mix(in srgb, red, blue)) {
	.ws-zone-nav__list a:hover,
	.ws-zone-nav__list a.is-active { border-color: var(--accent); }
}

/* ---------------- Chips / tags ---------------- */
.ws-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.ws-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--ws-line);
	border-radius: 999px;
	padding: 10px 16px;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--ws-ink);
	box-shadow: var(--ws-shadow-sm);
	transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ws-chip:hover {
	transform: translateY(-2px);
	border-color: var(--accent);
	color: var(--accent);
}

/* ---------------- Icon list (checkmarks) ---------------- */
.ws-checklist {
	display: grid;
	gap: 14px;
}

.ws-checklist li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 1rem;
	color: var(--ws-body);
}

.ws-checklist .ws-icon {
	flex: none;
	color: var(--accent);
	margin-top: 3px;
}

.ws-section--dark .ws-checklist li { color: rgba(255,255,255,0.82); }
.ws-section--dark .ws-checklist .ws-icon { color: #6ee7b7; }

/* ---------------- Reveal animation ---------------- */
.ws-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.ws-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.ws-reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
	.ws-btn:hover, .ws-feature:hover, .ws-zone-card:hover, .ws-offer:hover, .ws-chip:hover { transform: none; }
}

/* ---------------- Prose (editor content) ---------------- */
.ws-prose h2, .ws-prose h3 { margin-top: 1.4em; }
.ws-prose ul.ws-list { list-style: none; }
.ws-prose li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.ws-prose li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--accent);
}
