/*
 * Hero — patterns/hero.php
 *
 * Port of the first <section> in src/features/landing/landing-page.tsx
 * (aria-labelledby="hero-h1"): every inline style object became a class here,
 * values and clamp()s unchanged.
 *
 * Mobile-first, as the React component's ResizeObserver switched it:
 *   base                     wide = false  (heroCols one column, the "2:14" chip hidden)
 *   @media (min-width:900px) wide = true   (heroCols 1.02fr / 0.98fr, chip shown)
 * The hero has no xl (1180px) change.
 *
 * Elements the engine writes inline (assets/js/landing.js hero()): the gauge's
 * stroke-dashoffset, the cap's cx/cy, the heroNum text, each tick's stroke and
 * each bar's width. Nothing here styles those properties on those hooks.
 */

/* ---------------------------------------------------------------------------
 * Section grid
 * ------------------------------------------------------------------------ */
.id-hero {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(48px, 9vh, 110px) clamp(16px, 4vw, 40px) clamp(56px, 10vh, 110px);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(36px, 6vw, 88px);
	align-items: center;
}

/* ---------------------------------------------------------------------------
 * Copy column (editable core blocks)
 * ------------------------------------------------------------------------ */
.id-hero .id-hero__title {
	font-size: clamp(42px, 6.4vw, 88px);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.05em;
	margin: 0;
	max-width: 12ch;
	text-wrap: balance;
}
/* "real band score." — a plain <span> as in the TSX (not the core text-colour
 * <mark>, which carries highlight semantics). The editor keeps it as an
 * unregistered inline element, so the words stay editable. */
.id-hero .id-hero__accent {
	color: #1668D9;
}
.id-hero .id-hero__lede {
	font-size: clamp(17px, 1.6vw, 21px);
	line-height: 1.5;
	color: #4E5F7C;
	margin: 22px 0 0;
	max-width: 30ch;
}

/* The actions row: the CTA (inside core/buttons) and the three checks. */
.id-hero .id-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 20px;
	align-items: center;
	margin-top: 32px;
}
.id-hero .id-hero__buttons {
	gap: 0;
}
/* The .wp-block-button wrapper: flex, so the link is a flex item (no line box
   around it), as the <a> was a direct flex item of the row in the TSX. Three
   classes to beat core's `.wp-block-buttons > .wp-block-button { display:inline-block }`
   whatever order the stylesheets print in. */
.id-hero__actions .id-hero__buttons > .id-hero__cta {
	display: flex;
	margin: 0;
}
.id-hero__cta .wp-block-button__link {
	height: 58px;
	padding: 0 10px 0 28px;
	display: inline-flex;
	align-items: center;
	gap: 16px;
	border-radius: 999px;
	background: #1668D9;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: inherit;
	text-align: left;
	text-decoration: none;
	word-break: normal;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 18px 36px -18px rgba(22, 104, 217, 0.95);
	transition: background 200ms, transform 200ms cubic-bezier(.16, 1, .3, 1), box-shadow 200ms;
}
/* The aria-hidden "→" circle. Hover/press come from id-lh3 / id-la2 (base.css). */
.id-hero__cta .wp-block-button__link::after {
	content: "→";
	content: "→" / "";
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	display: grid;
	place-items: center;
	font-size: 18px;
}

/* No signup · No card · No subscription, each with its aria-hidden ✓ badge. */
.id-hero .id-hero__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #586A87;
}
.id-hero .id-hero__check {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}
.id-hero .id-hero__check::before {
	content: "✓";
	content: "✓" / "";
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #E7F5EE;
	color: #0A6E48;
	display: grid;
	place-items: center;
	font-size: 11px;
	font-weight: 800;
}

/* ---------------------------------------------------------------------------
 * Visual column: dotted backdrop + the scored mock-test card (core/html)
 * ------------------------------------------------------------------------ */
.id-hero__visual {
	position: relative;
	display: flex;
	justify-content: center;
}
.id-hero__dots {
	position: absolute;
	inset: -8% -4%;
	border-radius: 48px;
	background-image: radial-gradient(rgba(22, 104, 217, 0.14) 1.2px, transparent 1.2px);
	background-size: 18px 18px;
}
.id-hero__card {
	position: relative;
	width: 100%;
	max-width: 470px;
	border-radius: 32px;
	background: #FFFFFF;
	padding: clamp(22px, 3vw, 32px);
	box-shadow: 0 1px 2px rgba(9, 20, 40, 0.05), 0 50px 90px -50px rgba(9, 20, 40, 0.5), inset 0 0 0 1px rgba(9, 20, 40, 0.05);
}

/* Card head: icon, "Mock test 07" / "Academic · all four skills", "Scored". */
.id-hero__head {
	display: flex;
	align-items: center;
	gap: 10px;
}
.id-hero__icon {
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: #F1F5FC;
	display: grid;
	place-items: center;
}
.id-hero__icon-dot {
	width: 12px;
	height: 12px;
	border-radius: 4px;
	background: #1668D9;
}
.id-hero__meta {
	line-height: 1.25;
}
.id-hero__name {
	font-size: 14px;
	font-weight: 800;
}
.id-hero__sub {
	font-size: 12px;
	font-weight: 600;
	color: #586A87;
}
.id-hero__status {
	margin-left: auto;
	padding: 5px 10px;
	border-radius: 999px;
	background: #E7F5EE;
	color: #0A6E48;
	font-size: 11px;
	font-weight: 800;
}

/* Gauge. */
.id-hero__gauge-wrap {
	position: relative;
	margin-top: 14px;
}
/* "2:14 to score" — display was navDisp: none below 900px, flex from 900px. */
.id-hero__chip {
	display: none;
	position: absolute;
	left: -44px;
	top: 6px;
	z-index: 2;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 14px;
	background: #FFFFFF;
	font-size: 13px;
	font-weight: 700;
	color: #0B1120;
	box-shadow: 0 18px 36px -18px rgba(9, 20, 40, 0.45), inset 0 0 0 1px rgba(9, 20, 40, 0.06);
	animation: id-float 4.2s ease-in-out infinite;
	animation-delay: -1.4s;
}
.id-hero__chip-time {
	font-family: 'Geist Mono', monospace;
	color: #1668D9;
}
.id-hero__gauge {
	display: block;
	width: 100%;
}
.id-hero__score {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	text-align: center;
}
.id-hero__num {
	font-size: clamp(54px, 6vw, 74px);
	font-weight: 800;
	letter-spacing: -0.055em;
	line-height: 0.9;
	font-variant-numeric: tabular-nums;
}
.id-hero__label {
	font-size: 13px;
	font-weight: 700;
	color: #586A87;
	margin-top: 6px;
}

/* Module tiles: band, name, bar. */
.id-hero__mods {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-top: 22px;
}
.id-hero__mod {
	border-radius: 16px;
	background: #F7F9FD;
	box-shadow: inset 0 0 0 1px rgba(9, 20, 40, 0.05);
	padding: 12px 8px 10px;
	text-align: center;
}
.id-hero__mod-band {
	font-family: 'Geist Mono', monospace;
	font-size: 18px;
	font-weight: 600;
}
.id-hero__mod-name {
	font-size: 11px;
	font-weight: 700;
	color: #586A87;
	margin-top: 3px;
}
.id-hero__mod-track {
	height: 4px;
	border-radius: 2px;
	background: #E7EEF9;
	margin-top: 8px;
	overflow: hidden;
}
/* Width is per item (inline, and written by the engine's intro sweep). */
.id-hero__mod-bar {
	height: 100%;
	border-radius: 2px;
}
.id-hero__mod--listen .id-hero__mod-band {
	color: #1668D9;
}
.id-hero__mod--listen .id-hero__mod-bar {
	background: #1668D9;
}
.id-hero__mod--read .id-hero__mod-band {
	color: #C4531B;
}
.id-hero__mod--read .id-hero__mod-bar {
	background: #C4531B;
}
.id-hero__mod--write .id-hero__mod-band {
	color: #0A6E48;
}
.id-hero__mod--write .id-hero__mod-bar {
	background: #0E8F5E;
}
.id-hero__mod--speak .id-hero__mod-band {
	color: #6D3FCB;
}
.id-hero__mod--speak .id-hero__mod-bar {
	background: #6D3FCB;
}

/* "↑ Next band: 7.0" pill, pinned to the card's top-right corner. */
.id-hero__next {
	position: absolute;
	right: -18px;
	top: -16px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px 9px 10px;
	border-radius: 999px;
	background: #0B1120;
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 14px 30px -14px rgba(9, 20, 40, 0.7);
	animation: id-float 3.6s ease-in-out infinite;
}
.id-hero__next-icon {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #4ADE9B;
	color: #04101F;
	display: grid;
	place-items: center;
	font-size: 11px;
	font-weight: 800;
}

/* ---------------------------------------------------------------------------
 * wide (>= 900px)
 * ------------------------------------------------------------------------ */
@media (min-width: 900px) {
	.id-hero {
		grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
	}
	.id-hero__chip {
		display: flex;
	}
}
