/* PrepareGov homepage. Loaded on the front page only.
   Rhythm: white hero → white exams → tinted steps → white updates → tinted trust → blue close. */

.home { overflow-x: clip; }
.home .section { padding: 72px 0; }
.home .section--tint { background: var(--wash); border-block: 1px solid #eaf0fb; }
.home .section--last { padding-bottom: 80px; }
.home .section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.home .section__head h2 { font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2rem); margin: 0 0 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.home .section__head p { margin: 0; color: var(--ink-2); }

.eyebrow { margin: 0 0 14px; font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--brand); }
.hand { font-family: var(--hand); font-weight: 600; color: var(--ink); line-height: 1.05; margin: 0; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .93rem; color: var(--brand-ink); text-decoration: none; white-space: nowrap; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.link-arrow:hover { color: var(--brand); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* icon tiles */
.ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; }
.ico .icon { width: 20px; height: 20px; }
.ico--lg { width: 60px; height: 60px; border-radius: 50%; }
.ico--lg .icon { width: 26px; height: 26px; stroke-width: 2; }
.ico--blue { background: #e8f0fe; color: #2563eb; }
.ico--violet { background: #f0ebff; color: #7c3aed; }
.ico--green { background: #e3f7ef; color: #059669; }
.ico--amber { background: #fff3e0; color: #ea7a0b; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 48px 0 40px; background: linear-gradient(180deg, #fff 0%, #f6f9ff 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero__title { font-size: clamp(2.3rem, 1.2rem + 3.4vw, 3.6rem); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 20px; max-width: 13ch; }
.hero__hl { color: var(--brand); }
.hero__lede { font-size: 1.1rem; line-height: 1.6; color: var(--ink-2); max-width: 50ch; margin: 0 0 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero .exam-search { max-width: 560px; }

.chips-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; max-width: 560px; }
.chips-row__label { font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.home .chips { margin: 0; gap: 8px; flex: 1 1 0; min-width: min(100%, 300px); }
.home .chip { padding: 6px 13px; font-size: .84rem; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); transition: all .16s var(--ease); }
.home .chip:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--tint); }

.hero__visual { position: relative; min-height: 520px; display: flex; align-items: flex-end; justify-content: center; }
.hero__stage { position: relative; width: min(100%, 470px); margin-right: 140px; }
.hero__blob { position: absolute; inset: 4% -16% -2% -14%; width: 130%; height: 100%; fill: #e4edfd; z-index: 0; }
.hero__img { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(15, 31, 69, .12)); }
.hero__hand { position: absolute; z-index: 2; left: -10%; top: 6%; width: 8ch; font-size: 2rem; transform: rotate(-9deg); color: #1e2a55; }
.hero__hand::after { content: ""; display: block; width: 70%; height: 10px; margin-top: 6px; border-bottom: 2.5px solid var(--brand); border-radius: 0 0 50% 50%; transform: rotate(-3deg); }

.benefits { position: absolute; z-index: 3; right: 0; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: 206px; }
.benefit { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(255, 255, 255, .94); border: 1px solid #e8eef8; border-radius: 14px; box-shadow: var(--shadow-md); font-size: .84rem; color: var(--ink-2); line-height: 1.3; }
.benefit strong { display: block; font-size: 1.02rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }

.features { list-style: none; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.features li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .92rem; color: var(--ink); line-height: 1.3; }

/* ---------- popular exams ---------- */
.exam-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.exam { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.exam:hover, .exam:focus-within { border-color: #c5d6f6; box-shadow: 0 16px 32px -18px rgba(37, 99, 235, .45); transform: translateY(-3px); }
.exam__badge { margin-bottom: 14px; }
.exam__title { font-size: 1.08rem; margin: 0 0 4px; }
.exam__by { font-size: .8rem; color: var(--ink-2); margin: 0 0 4px; line-height: 1.35; }
.exam__cat { font-size: .78rem; color: var(--ink-3); margin: 0 0 14px; }
.exam__next { margin: auto 0 14px; width: 100%; padding: 7px 8px; border-radius: 9px; background: var(--wash); font-size: .78rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.exam__next em { font-style: normal; color: var(--urgent); }
.exam__cta { width: 100%; padding: 9px 10px; font-size: .86rem; }
/* whole card clickable, one tab stop */
.exam__cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- how it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.step { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 29px; right: -25px; width: 14px; height: 2px; background: #b8cbf2; }
.step:not(:last-child)::before { content: ""; position: absolute; top: 25px; right: -25px; width: 7px; height: 7px; border-top: 2px solid #b8cbf2; border-right: 2px solid #b8cbf2; transform: rotate(45deg); }
.step__num { margin: 4px 0 2px; font-size: .78rem; font-weight: 700; color: var(--ink-3); }
.step h3 { font-size: 1.05rem; margin: 0 0 6px; }
.step p:last-child { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.5; }

/* ---------- updates + promo ---------- */
.updates { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: stretch; }
.update-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.update { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 18px; gap: 14px; align-items: center; padding: 16px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .16s var(--ease); }
.update:hover { background: var(--wash); }
.update:hover .update__title { color: var(--brand-ink); }
.update .icon { width: 18px; height: 18px; color: var(--ink-3); transition: transform .16s var(--ease); }
.update:hover .icon { transform: translateX(2px); color: var(--brand); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--red { background: var(--danger); box-shadow: 0 0 0 4px #fdecec; }
.dot--amber { background: var(--warning); box-shadow: 0 0 0 4px #fef3c7; }
.dot--blue { background: var(--brand); box-shadow: 0 0 0 4px #e8f0fe; }
.dot--green { background: var(--success); box-shadow: 0 0 0 4px #e3f7ef; }
.update__body { display: grid; gap: 2px; min-width: 0; }
.update__title { font-weight: 700; font-size: .98rem; transition: color .16s; }
.update__text { font-size: .86rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.update__time { font-size: .8rem; color: var(--ink-3); white-space: nowrap; }

.promo { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: 360px; padding: 40px 36px; border-radius: 22px; background: linear-gradient(135deg, #eef4ff 0%, #dde8fd 100%); border: 1px solid #d8e4fb; }
.promo__copy { position: relative; z-index: 2; max-width: 58%; }
.promo__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem); line-height: 1.12; margin: 0 0 14px; }
.promo p { color: var(--ink-2); margin: 0 0 24px; }
.promo__img { position: absolute; z-index: 1; right: -24px; bottom: -8px; width: 62%; max-width: 380px; height: auto; }
.promo__hand { position: absolute; z-index: 2; right: 40px; top: 24px; width: 9ch; font-size: 1.3rem; text-align: right; transform: rotate(-6deg); color: #1e2a55; }

.updates__empty { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border: 1px dashed #c9d7f2; border-radius: var(--radius-lg); background: var(--wash); }
.updates__empty p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.updates__empty strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }

/* ---------- trust ---------- */
.demo-note { display: flex; gap: 10px; align-items: flex-start; margin: -8px 0 22px; padding: 12px 14px; border-radius: 12px; background: var(--urgent-bg); color: #7c3a06; font-size: .87rem; line-height: 1.45; }
.demo-note .icon { flex: none; margin-top: 1px; }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quote { height: 100%; margin: 0; display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.quote > .icon { width: 28px; height: 28px; color: #bcd0f6; margin-bottom: 8px; }
.quote blockquote { margin: 0 0 20px; flex: 1; }
.quote blockquote p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: .84rem; color: var(--ink-3); }
.quote figcaption strong { display: block; color: var(--ink); font-size: .95rem; }
.quote__avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--tint); color: var(--brand-ink); font-weight: 800; font-size: .9rem; object-fit: cover; flex: none; }

/* ---------- final CTA ---------- */
.final { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 52px 56px; border-radius: 24px; background: #1d4ed8; color: #fff; }
.final::before { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; background-image: radial-gradient(rgba(255, 255, 255, .22) 1.5px, transparent 1.6px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%); }
.final__copy { position: relative; max-width: 620px; }
.final h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem); line-height: 1.15; margin: 0 0 12px; }
.final p { margin: 0; color: #dbe6ff; font-size: 1.04rem; }
.final__cta { position: relative; display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.final :focus-visible { outline-color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
	.exam-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hero__stage { margin-right: 120px; }
}
@media (max-width: 1024px) {
	.hero__grid { grid-template-columns: 1fr; gap: 12px; }
	.hero__copy { max-width: 640px; }
	.hero__visual { min-height: 0; max-width: 640px; }
	.hero__stage { margin-right: 190px; width: min(100%, 400px); }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
	.step::before, .step::after { display: none; }
	.updates { grid-template-columns: 1fr; }
	.final { flex-direction: column; align-items: flex-start; padding: 44px 36px; }
}
@media (max-width: 700px) {
	.home .section { padding: 52px 0; }
	.home .section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
	.hero { padding: 28px 0 32px; }
	.hero__title { font-size: clamp(2.05rem, 1.3rem + 4vw, 2.6rem); max-width: none; }
	.hero__lede { font-size: 1.02rem; }
	.hero__cta .btn { flex: 1 1 auto; }
	.hero__visual { display: block; margin-top: 18px; }
	.hero__stage { margin: 0 auto; width: 78%; max-width: 340px; }
	.hero__hand { font-size: 1.4rem; left: -16%; top: 8%; }
	.benefits { position: static; transform: none; width: auto; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -8px; }
	.benefit { padding: 10px 12px; font-size: .78rem; gap: 10px; }
	.benefit .ico { width: 34px; height: 34px; }
	.benefit strong { font-size: .92rem; }
	.features { grid-template-columns: 1fr 1fr; gap: 16px 12px; margin-top: 28px; }
	.features li { font-size: .85rem; }

	/* exam cards: swipeable row with a peek of the next card */
	.exam-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -18px; padding: 4px 18px 14px; scrollbar-width: none; }
	.exam-grid::-webkit-scrollbar { display: none; }
	.exam-grid > li { flex: 0 0 46%; scroll-snap-align: start; }
	.exam:hover { transform: none; }

	.steps { grid-template-columns: 1fr; gap: 0; }
	.step { padding-bottom: 26px; }
	.step:not(:last-child)::after { display: block; left: 29px; right: auto; top: 66px; bottom: 6px; width: 2px; height: auto; }
	.update { grid-template-columns: 12px minmax(0, 1fr) 18px; padding: 14px 4px; }
	.update__time { grid-column: 2; grid-row: 2; }
	.update .icon { grid-column: 3; grid-row: 1 / span 2; }
	.update__text { white-space: normal; }
	.promo { padding: 32px 24px 200px; min-height: 0; }
	.promo__copy { max-width: none; }
	.promo__img { width: 78%; right: -12px; }
	.promo__hand { display: none; }
	.quotes { grid-template-columns: 1fr; }
	.final { padding: 36px 24px; border-radius: 20px; }
	.final__cta, .final__cta .btn { width: 100%; }
}
@media (max-width: 400px) {
	.exam-grid > li { flex-basis: 62%; }
	.hero__cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.exam, .btn, .update, .link-arrow .icon { transition: none; }
	.exam:hover { transform: none; }
}
