/*
 * The home page, round 2 (2026-11-01; home-page.php). Source:
 * design/projects/home/proto/home-2.html, DESIGN.md "Home". Scoped to .hp
 * so the bare rules of the base (chrome.css) stay out.
 */

.hp {padding: 0 16px 48px; font-family: var(--sans); color: var(--graphite); font-size: 17px; line-height: 1.55;}
.hp *, .hp *::before, .hp *::after {box-sizing: border-box;}
.hp h1, .hp h2, .hp h3, .hp p, .hp ul, .hp li {margin: 0; padding: 0; text-align: left; color: inherit;}
.hp ul {list-style: none;}
.hp img {display: block; max-width: 100%; height: auto;}
.hp :focus-visible {outline: 2px solid var(--form); outline-offset: 3px; border-radius: 4px;}
.hp .vh {position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;}
.hp .num {font-family: var(--mono); font-weight: 500; letter-spacing: -.02em;}
/* The thousands of RU/UK/ES: a no-break space in the text face. */
.hp .gs {font-family: var(--sans);}
.hp > section + section {margin-top: 48px;}
.hp .sec-h .ch-ico, .hp .tp-btn .ch-ico {width: 18px; height: 18px;}

/* ---------- first screen ---------- */
.hp-hero {display: grid; gap: 12px; padding: 18px 0 0;}
.hp-hero > * {min-width: 0;}
.hp-hero h1 {font-size: 30px; line-height: 1.06; font-weight: 700; letter-spacing: -.035em; text-wrap: balance;}
.hp-hero h1 span {display: block;}
.hp-hero h1 span + span {color: var(--form);}
/* No more than two lines on 375. */
.hp-lede {max-width: 34em; font-size: 16.5px; line-height: 1.5; color: var(--graphite-2) !important; text-wrap: balance;}
.hp-stats {display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 15px; color: var(--graphite-2) !important;}
.hp-stats b {font: 500 15px/1 var(--mono); letter-spacing: -.02em; color: var(--form-deep);}
.hp-stats li + li::before, .tc-facts span + span::before, .sc-t i + i::before, .hp-partners span + span::before {content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 12px 2px 0; border-radius: 50%; border: 1.25px solid var(--form); vertical-align: middle;}
.tc-facts span + span::before, .sc-t i + i::before, .hp-partners span + span::before {margin-right: 8px;}
.sc-t i + i::before, .hp-partners span + span::before {margin-left: 6px;}

/* The sections as pills, sideways on a phone with a fading edge. */
.hp-pills {display: flex; gap: 8px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);}
.hp-pills::-webkit-scrollbar {display: none;}
.hp-pills a {position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; color: var(--graphite); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;}
.hp-pills a .num {font-size: 12.5px; color: var(--form);}
.hp-pills a:hover {border-color: var(--form); background: var(--field);}

.hp-side h2 {margin-top: 2px; font-size: 17px; line-height: 1.3; font-weight: 650; letter-spacing: -.01em;}
.hp-cta {display: grid; margin-top: 6px;}
.hp-cta .num {font-size: .88em;}
.hp-more-top {justify-content: flex-end;}

/* ---------- a test card: the catalogue's card, a place, the facts ---------- */
.hp-cards {display: grid; gap: 18px; margin: 14px 0 0;}
.tc {display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 14px; align-content: start; color: var(--graphite); text-decoration: none;}
.tc-pic {position: relative; grid-row: 1 / 5;}
.tc-pic img, .tc-blank {display: block; width: 120px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; background: var(--field);}
.tc-cat {font-size: 12.5px; line-height: 1.4; font-weight: 600; color: var(--form-deep);}
.hp .tc-t {font-size: 16px; line-height: 1.3; font-weight: 650;}
.tc-d {display: none;}
.tc:hover .tc-t {color: var(--form-deep); text-decoration: underline; text-underline-offset: .18em;}
/* The place: a printed circle with its number, like an answer's letter. */
.tc-rank {position: absolute; left: 6px; top: 6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--form); font: 500 11.5px/1 var(--mono); color: var(--form); letter-spacing: -.03em;}
.hp .tc-facts {display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13.5px; color: var(--graphite-2);}
.tc-facts b {font: 500 13px/1.5 var(--mono); color: var(--form-deep); letter-spacing: -.02em;}

/* ---------- the sections as cards ---------- */
.hp-secs {display: grid; margin-top: 14px; border-top: 1px solid var(--rule);}
.sc {display: grid; grid-template-columns: 96px minmax(0, 1fr) 18px; align-items: center; align-content: start; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--graphite); text-decoration: none;}
.sc img, .sc .tc-blank {grid-row: 1 / 3; width: 96px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; background: var(--field);}
/* The number right after the name, also when the name wraps. */
.sc b {position: relative; display: block; font-size: 16.5px; line-height: 1.3; font-weight: 650;}
.sc b .num {margin-left: 4px; font-size: 12.5px; color: var(--form); white-space: nowrap;}
.sc-t {grid-column: 2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.4; color: var(--graphite-2);}
.sc-t i {font-style: normal;}
.sc .ch-ico {grid-column: 3; grid-row: 1 / 3; width: 18px; height: 18px; color: var(--form);}
.sc:hover b {color: var(--form-deep);}

/* ---------- about these tests: three facts and the paragraphs ---------- */
.hp-why {padding: 22px 18px 20px; border-radius: 12px; background: var(--field);}
.hp-why h2 {font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em;}
.hp-facts {display: grid; margin-top: 14px; border-top: 1px solid var(--rule);}
.hp-facts li {display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.4; font-weight: 600;}
.hp-facts li::before {content: ''; width: 8px; height: 8px; margin: .5em 0 0 4px; border-radius: 50%; border: 1.5px solid var(--form);}
.hp-facts li span {display: block; margin-top: 2px; font-size: 14.5px; font-weight: 400; color: var(--graphite-2);}
.hp-txt {display: grid; gap: 12px; margin-top: 18px; font-size: 16px; line-height: 1.6;}
.hp-txt p + p {color: var(--graphite-2);}

/* ---------- the other test sites, as a line ---------- */
.hp .hp-partners {margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--graphite-2);}
.hp-partners a {display: inline-flex; align-items: center; min-height: 44px; color: var(--form-deep); font-weight: 600; text-decoration: none;}
.hp-partners a:hover {text-decoration: underline; text-underline-offset: .18em;}

@media (max-width: 1279px) {
	.hp .d-only {display: none;}
	/* Questions and runs on two lines, no circle at the break. */
	.hp .tc-facts {flex-direction: column; align-items: flex-start; gap: 0;}
	.tc-facts span + span::before {display: none;}
}

@media (min-width: 1280px) {
	.hp {width: min(1280px, 100% - 48px); margin: 0 auto; padding: 0 0 80px; font-size: 18px;}
	.hp > section + section {margin-top: 72px;}
	.hp .sec-h h2 {font-size: 28px;}
	/* Left: the motto, the line, the numbers, the pills, the button; right:
	   the three most taken in a column, centred on the left column. */
	.hp-hero {grid-template-columns: minmax(0, 1fr) 520px; column-gap: 72px; row-gap: 18px; align-items: start; padding-top: 48px;}
	.hp-hero > :not(.hp-side) {grid-column: 1;}
	.hp-hero h1 {font-size: 56px; line-height: 1.02; margin-top: 12px;}
	.hp-lede {font-size: 20px;}
	.hp-stats, .hp-stats b {font-size: 16px;}
	.hp-cta {display: flex; margin-top: 10px;}
	.hp-side {grid-column: 2; grid-row: 1 / span 6; align-self: center;}
	.hp-side h2 {margin: 0 0 12px; font-size: 19px;}
	.hp-pills {flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none;}

	.hp-cards {grid-template-columns: repeat(3, 1fr); gap: 40px 32px; margin-top: 22px;}
	.tc {grid-template-columns: 1fr; gap: 6px;}
	.tc-pic {grid-row: auto; margin-bottom: 8px;}
	.tc-pic img, .tc-blank {width: 100%; border-radius: 10px;}
	.tc-pic .tc-rank {left: 12px; top: 12px; width: 36px; height: 36px; font-size: 13px;}
	.hp .tc-t {font-size: 18px;}
	.tc-d {display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.45; color: var(--graphite-2);}
	/* The first three, and 4-6: the picture 168px on the left. */
	.hp-side .hp-cards {grid-template-columns: 1fr; gap: 16px; margin: 0;}
	.hp-side .tc, .hp-more .tc {grid-template-columns: 168px minmax(0, 1fr); gap: 4px 18px;}
	.hp-side .tc-pic, .hp-more .tc-pic {grid-row: 1 / 5; margin: 0;}
	.hp-side .tc-pic img, .hp-more .tc-pic img {width: 168px; border-radius: 8px;}
	.hp-more .hp-cards {gap: 32px; margin-top: 12px;}
	.hp-more .tc-d {display: none;}
	.hp-side .tc-d {font-size: 14px;}
	.hp-side .tc-pic .tc-rank, .hp-more .tc-pic .tc-rank {left: 8px; top: 8px; width: 30px; height: 30px; font-size: 12px;}

	.hp-secs {grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 0; margin-top: 22px;}
	.sc {grid-template-columns: 1fr; align-items: start; gap: 6px; padding: 0; border: 0;}
	.sc img, .sc .tc-blank {grid-row: auto; width: 100%; margin-bottom: 6px; border-radius: 10px;}
	.sc-t {grid-column: 1;}
	.sc .ch-ico {display: none;}
	.sc b {font-size: 18px;}

	.hp-why {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; padding: 36px 40px;}
	.hp-why h2 {grid-column: 1 / -1; font-size: 28px;}
	.hp-facts {grid-column: 2; grid-row: 2; margin-top: 18px;}
	.hp-txt {grid-column: 1; grid-row: 2; margin-top: 18px; font-size: 17px;}
}

@media (prefers-reduced-motion: reduce) {
	.hp * {transition: none !important;}
}
