/*
 * Landing page only: the hero, the "how it works" steps, the code showcase, what you get,
 * the example report, the FAQ, and the closing call-to-action.
 */

/* Hero — two columns: a two-line heading, a short explanation, and the buttons on the left; the logo inside
   rings on the right, over the facet backdrop. Both are decoration only. */
.hero-wrap {
	position: relative;
	overflow: hidden;
	background-image: url("/shared/img/backdrop.svg"); /* straight lines and facet shards, shared with the auth pages */
	background-position: center top;
	background-repeat: no-repeat;
	background-size: 1400px 900px;
	margin-top: calc(-1 * var(--space-12)); /* run the graph up to the nav, past main's top padding */
}

.hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	align-items: center;
	align-content: center;
	gap: var(--space-12);
	/* The hero is the whole first screen on normal laptops; on very tall monitors it stops growing at 760px */
	min-height: min(calc(100svh - var(--nav-height)), 760px);
	padding-top: var(--space-8);
	padding-bottom: calc(var(--space-16) + var(--space-12)); /* extra room below lifts the content above centre */
}

.hero__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.hero__title {
	font-size: 3rem;
	font-weight: 300;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

/* Narrow on purpose, so the one sentence wraps onto two lines */
.hero__lead {
	max-width: 320px;
	margin-top: var(--space-4);
	color: var(--text-muted);
	font-size: var(--text-md);
	line-height: 1.6;
}

.hero__visual {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 360px;
}

/* The rings behind the logo: drawn on a 1400×640 canvas centred on the logo, so they stay centred on it */
.hero__graph {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1400px;
	height: 640px;
	max-width: none;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.graph__ring {
	fill: none;
	stroke: var(--deco-line);
	stroke-width: 1;
}

.graph__ring--outer {
	stroke: var(--deco-line-soft);
}

/* A score arc on the inner ring, about two-thirds round, turning once a minute */
.graph__arc {
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-dasharray: 620 911;
	opacity: 0.35;
	transform-origin: 700px 320px;
	animation: arc-turn 60s linear infinite;
}

@keyframes arc-turn {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.graph__arc {
		animation: none;
	}
}

/* The logo: the faceted V, with light sweeping across its facets every few seconds (inside logo-shimmer.svg) */
.hero__logo {
	position: relative;
	display: block;
	width: 168px;
	height: 168px;
	filter: drop-shadow(0 0 24px var(--accent-soft));
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-top: var(--space-8);
}

/* The one button under the hero, a little wider than its text needs */
.hero__cta {
	min-width: 200px;
}

/* On hover the border lights up: a lighter purple edge with a soft ring outside it */
.hero__cta:hover {
	border-color: color-mix(in srgb, var(--accent) 55%, white);
	box-shadow: 0 0 0 3px var(--accent-soft), 0 0 20px var(--accent-glow);
}

/* Code showcase — an editor window: the code on the left with the lines a question is about lit up,
   and the question, an answer, and its grade on the right, appearing one after another. */
.showcase {
	margin-bottom: var(--space-16);
}

.showcase__window {
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--accent-border);
	border-radius: var(--radius-lg);
	box-shadow: 0 0 80px -32px var(--accent-glow);
}

.showcase__bar {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	padding: var(--space-3) var(--space-4);
	border-bottom: 1px solid var(--border);
	background: var(--bg);
}

.showcase__dots {
	display: flex;
	gap: 6px;
}

.showcase__dots span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--border-strong);
}

.showcase__tab {
	color: var(--text-muted);
	font-size: var(--text-xs);
}

.showcase__panes {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

/* The code pane */
.code {
	margin: 0;
	padding: var(--space-4) 0;
	overflow-x: auto;
	border-right: 1px solid var(--border);
	color: var(--text-body);
	font-size: 0.78rem;
	line-height: 1.75;
}

.code code {
	display: block;
	font-size: inherit;
	white-space: normal; /* the newlines between lines are only for the source; each line keeps its own spacing */
	counter-reset: line 37;
}

.code__line {
	display: block;
	padding-right: var(--space-4);
	counter-increment: line;
	white-space: pre;
}

.code__line::before {
	content: counter(line);
	display: inline-block;
	width: 3.25rem;
	padding-right: var(--space-4);
	color: var(--code-line-number);
	text-align: right;
	user-select: none;
}

.code__line--hot {
	box-shadow: inset 2px 0 0 var(--accent);
	background: var(--code-hot);
}

.code__line--hot::before {
	color: var(--accent);
}

.tok-kw { color: var(--code-keyword); }
.tok-ann { color: var(--code-annotation); }
.tok-str { color: var(--code-string); }
.tok-type { color: var(--code-type); }

/* The RepoViva pane */
.showcase__side {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-4);
	font-size: var(--text-sm);
}

.showcase__question,
.showcase__answer,
.showcase__grade {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-4);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface-raised);
}

.showcase__question {
	border-color: var(--accent-border);
	box-shadow: inset 2px 0 0 var(--accent);
}

.showcase__answer {
	color: var(--text-body);
}

.showcase__grade {
	color: var(--text-muted);
}

.showcase__label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	color: var(--text-muted);
	font-size: var(--text-xs);
}

.showcase__text {
	color: var(--text);
	line-height: 1.55;
}

.showcase__text code {
	color: var(--accent);
}

.showcase__grade-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
}

.showcase__score {
	color: var(--band);
	font-family: var(--font-mono);
	font-size: var(--text-xl);
	font-weight: 600;
	line-height: 1;
}

.showcase__out-of {
	margin-left: 2px;
	color: var(--text-faint);
	font-size: var(--text-sm);
	font-weight: 400;
}

/* "Example" tag on every mockup, so nothing on the page is mistaken for a real, clickable screen */
.example-tag {
	padding: 1px var(--space-2);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-pill);
	background: var(--bg);
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.showcase__bar .example-tag {
	margin-left: auto;
}

/* On the step previews it sits on the top border, like a label on a drawing */
.example-tag--edge {
	position: absolute;
	top: -10px;
	right: var(--space-4);
}

/* How it works — a timeline: a purple rail with a commit node per step (the hero's branch style), and each step's
   explanation beside a small piece of the app it describes. Color only where it means something: purple for the
   flow, syntax colors for code, and green / yellow / red for scores. */
.steps__list {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	margin-top: var(--space-8);
	list-style: none;
}

/* The rail, fading in at the top and out at the bottom */
.steps__list::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 11px;
	width: 2px;
	background: linear-gradient(transparent, var(--accent-border) 8%, var(--accent-border) 92%, transparent);
}

.step {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: var(--space-8);
	padding-left: var(--space-12);
}

.step__node {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 16px;
	height: 16px;
	border: 2px solid var(--accent);
	border-radius: 50%;
	background: var(--bg);
	box-shadow: 0 0 0 4px var(--bg), 0 0 14px var(--accent-glow);
}

.step__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.step__number {
	color: var(--accent);
	font-size: var(--text-xs);
}

.step__title {
	font-size: var(--text-lg);
	font-weight: 500;
}

.step__body p {
	max-width: 46ch;
	color: var(--text-muted);
	font-size: var(--text-sm);
	line-height: 1.7;
}

/* The small piece of the app beside each step */
.step__demo {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-4);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
	font-size: var(--text-sm);
}

.demo-input {
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--accent-border);
	border-radius: var(--radius-sm);
	background: var(--surface-raised);
	color: var(--text);
	font-size: var(--text-xs);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.demo-input__prefix {
	color: var(--text-faint);
}

.demo-meta {
	color: var(--text-muted);
	font-size: var(--text-xs);
}

.demo-topics {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.demo-topics p {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

.demo-topic {
	min-width: 9.5rem;
	color: var(--text-body);
	font-size: var(--text-xs);
}

.demo-lengths {
	display: flex;
	gap: var(--space-2);
}

.demo-length {
	padding: var(--space-1) var(--space-3);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-pill);
	color: var(--text-muted);
	font-size: var(--text-xs);
}

.demo-length--on {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--text);
}

/* The question ladder: an opening, a topic's first question, its follow-ups stepping in, then the rest */
.demo-ladder {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	list-style: none;
	font-size: var(--text-xs);
}

.demo-ladder li {
	padding: var(--space-1) var(--space-2);
	border-left: 2px solid var(--border-strong);
	color: var(--text-body);
}

.demo-ladder .demo-ladder__topic {
	border-left-color: var(--accent);
}

.demo-ladder .demo-ladder__step {
	margin-left: var(--space-4);
	border-left-color: var(--accent-border);
}

.demo-ladder .demo-ladder__more {
	border-left-style: dashed;
	color: var(--text-faint);
}

.demo-question {
	color: var(--text);
	line-height: 1.55;
}

.demo-question .chip {
	margin-right: var(--space-1);
}

.demo-question code {
	color: var(--code-keyword);
}

.demo-answer {
	padding: var(--space-3);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--surface-raised);
	color: var(--text-body);
	line-height: 1.55;
}

/* A blinking text cursor at the end of the answer being typed */
.demo-caret {
	display: inline-block;
	width: 2px;
	height: 1em;
	margin-left: 2px;
	vertical-align: text-bottom;
	background: var(--accent);
	animation: caret-blink 1.1s steps(1) infinite;
}

@keyframes caret-blink {
	50% {
		opacity: 0;
	}
}

.demo-grading {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	color: var(--text-muted);
	font-size: var(--text-xs);
}

.demo-grading__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--score-strong);
	box-shadow: 0 0 8px var(--score-strong);
}

.demo-score {
	display: flex;
	justify-content: space-between;
	padding: var(--space-2) var(--space-3);
	border-left: 2px solid var(--band);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: color-mix(in srgb, var(--band) 7%, transparent);
	color: var(--text-body);
}

.demo-score__value {
	color: var(--band);
	font-family: var(--font-mono);
}

.demo-practice {
	margin-top: var(--space-1);
}

.demo-practice .btn {
	width: 100%;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.demo-caret {
		animation: none;
	}
}

/* Shared by the sections below "How it works" */
.steps,
.features,
.preview,
.faq {
	margin-bottom: var(--space-16);
}

/* Section headings match the hero: large, light, and two-toned, with the key words in purple */
.section-heading,
.closing__title {
	font-size: 2.25rem;
	font-weight: 300;
	letter-spacing: -0.02em;
	line-height: 1.15;
	text-align: center;
	text-wrap: balance;
}

.section-heading {
	margin-bottom: var(--space-3);
}

.heading-accent {
	color: var(--accent);
}

.section-lead {
	max-width: 540px;
	margin: 0 auto var(--space-8);
	color: var(--text-muted);
	font-size: var(--text-md);
	text-align: center;
}

/* What you get — six cards, each with a small visual of the benefit above its title and text */
.features__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-4);
	list-style: none;
}

.feature {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	transition: border-color var(--transition);
}

.feature:hover {
	border-color: var(--accent-border);
}

.feature__title {
	font-size: var(--text-md);
	font-weight: 500;
}

.feature > p {
	color: var(--text-muted);
	font-size: var(--text-sm);
	line-height: 1.65;
}

.feature__visual {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--space-2);
	height: 160px; /* the same on every card, so the titles below line up across a row */
	margin-bottom: var(--space-2);
	padding: var(--space-4);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--bg);
	font-size: var(--text-xs);
}

/* 1 — a file tree with the files questions came from lit up */
.tree {
	color: var(--text-muted);
}

.tree--file {
	padding-left: var(--space-4);
	color: var(--text-muted);
}

.tree--hit {
	color: var(--text);
	box-shadow: inset 2px 0 0 var(--accent);
	background: var(--code-hot);
}

.tree__tag {
	float: right;
	color: var(--accent);
}

/* 2 — seven skills as dots in their band's color */
.skill-dots {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.skill-dot {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px var(--space-2);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-pill);
	color: var(--text-body);
}

.skill-dot::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--band);
}

/* 3 — a strength and a gap, as written notes */
.note {
	padding: var(--space-2) var(--space-3);
	border-left: 2px solid var(--band);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: color-mix(in srgb, var(--band) 7%, transparent);
	color: var(--text-body);
	line-height: 1.5;
}

.note__label {
	margin-right: var(--space-1);
	color: var(--band);
	font-weight: 500;
}

/* 4 — the practice interview the weak areas turn into */
.practice-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	color: var(--text);
}

.practice-row--note {
	color: var(--accent);
}

/* 5 — what's kept and what isn't */
.kept {
	color: var(--text-body);
	line-height: 1.5;
}

.kept__label {
	display: inline-block;
	min-width: 4.5rem;
	color: var(--score-strong);
	font-family: var(--font-mono);
}

.kept--not .kept__label {
	color: var(--text-faint);
}

.kept--not {
	color: var(--text-muted);
	text-decoration: line-through;
	text-decoration-color: var(--text-faint);
}

/* 6 — an interview saved partway */
.progress-label {
	display: flex;
	justify-content: space-between;
	color: var(--text-body);
}

.progress-label span:last-child {
	color: var(--score-strong);
}

.progress {
	height: 6px;
	border-radius: var(--radius-pill);
	background: var(--surface-highlight);
	overflow: hidden;
}

.progress__fill {
	display: block;
	width: 62.5%;
	height: 100%;
	border-radius: inherit;
	background: var(--accent);
}

.progress-note {
	color: var(--text-muted);
}

/* Example report — a static, wider copy of the real report: score ring, weak areas, skills, feedback.
   Scores are colored by band (green strong, yellow getting there, red a real gap) rather than the brand purple. */
.preview {
	margin-bottom: var(--space-16);
}

.report-demo {
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--accent-border);
	border-radius: var(--radius-lg);
	box-shadow: 0 0 80px -32px var(--accent-glow);
}

.report-demo__tags {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.report-demo__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-4);
	border-bottom: 1px solid var(--border);
	background: var(--bg);
	color: var(--text-muted);
	font-size: var(--text-xs);
}

.report-demo__body {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.report-demo__overview {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-6);
	padding: var(--space-8) var(--space-6);
	border-right: 1px solid var(--border);
}

.report-demo__details {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	padding: var(--space-8) var(--space-6);
}

.report-demo__heading {
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
}

/* Score ring: an SVG circle whose stroke is drawn to 68% (the dash offset is 32% of the circumference) */
.ring {
	position: relative;
	width: 168px;
	height: 168px;
}

.ring svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.ring circle {
	fill: none;
	stroke-width: 8;
}

.ring__track {
	stroke: var(--surface-highlight);
}

.ring__fill {
	stroke: var(--band);
	stroke-linecap: round;
	stroke-dasharray: 326.7;
	stroke-dashoffset: 104.5;
	filter: drop-shadow(0 0 6px color-mix(in srgb, var(--band) 45%, transparent));
}

.ring__value {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: baseline;
	justify-content: center;
	padding-top: 60px;
	font-family: var(--font-mono);
}

.ring__number {
	color: var(--band);
	font-size: var(--text-2xl);
	font-weight: 600;
	line-height: 1;
}

.ring__out-of {
	margin-left: 2px;
	color: var(--text-faint);
	font-size: var(--text-sm);
}

/* Weak areas under the ring */
.report-demo__weak {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	width: 100%;
	font-size: var(--text-sm);
}

.weak-row {
	display: flex;
	justify-content: space-between;
	margin-top: var(--space-2);
	color: var(--text);
}

.weak-row__score {
	color: var(--band);
	font-family: var(--font-mono);
}

.weak-row__gaps {
	color: var(--text-muted);
	font-size: var(--text-xs);
}

.report-demo__practice {
	width: 100%;
	pointer-events: none;
}

/* Skill bars */
.skill-bars {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.skill-bar {
	display: grid;
	grid-template-columns: 170px 1fr 28px;
	align-items: center;
	gap: var(--space-3);
	color: var(--text-muted);
	font-size: var(--text-sm);
}

.skill-bar__track {
	height: 6px;
	border-radius: var(--radius-pill);
	background: var(--surface-highlight);
	overflow: hidden;
}

.skill-bar__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--band);
	transform-origin: left;
}


.skill-bar__value {
	color: var(--text);
	font-family: var(--font-mono);
	text-align: right;
}

/* One question's feedback */
.report-demo__feedback {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin-top: var(--space-2);
	padding: var(--space-4);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface-raised);
	color: var(--text-muted);
	font-size: var(--text-sm);
}

.report-demo__question {
	color: var(--text);
	line-height: 1.55;
}

.report-demo__feedback code {
	color: var(--accent);
}

.feedback-good,
.feedback-missing,
.showcase__good,
.showcase__missing {
	margin-right: var(--space-2);
	font-weight: 500;
}

.feedback-good,
.showcase__good {
	color: var(--success-text);
}

.feedback-missing,
.showcase__missing {
	color: var(--score-weak);
}

/* Reveal: [data-reveal] sections animate once they scroll into view. landing.js adds .reveal to <html>
   (which holds the animated parts at their start) and .is-visible to each section the first time it appears. Without
   JavaScript, or with reduced motion, neither class is added and everything simply shows. */
/* Whole blocks: every part of a section starts lowered and transparent, and rises in when it's in view.
   Rows of cards (steps, features, FAQ) come in one after another. */
.reveal [data-reveal] > :not(.steps__list, .features__grid, .faq__list),
.reveal [data-reveal] :is(.steps__list, .features__grid) > li,
.reveal [data-reveal] .faq__item {
	transition: opacity 650ms ease, transform 650ms ease;
}

.reveal [data-reveal]:not(.is-visible) > :not(.steps__list, .features__grid, .faq__list),
.reveal [data-reveal]:not(.is-visible) :is(.steps__list, .features__grid) > li,
.reveal [data-reveal]:not(.is-visible) .faq__item {
	opacity: 0;
	transform: translateY(24px);
}

.reveal [data-reveal] > :nth-child(2) { transition-delay: 70ms; }
.reveal [data-reveal] > :nth-child(3) { transition-delay: 140ms; }
.reveal [data-reveal] :is(.steps__list, .features__grid) > li:nth-child(1),
.reveal [data-reveal] .faq__item:nth-child(1) { transition-delay: 110ms; }
.reveal [data-reveal] :is(.steps__list, .features__grid) > li:nth-child(2),
.reveal [data-reveal] .faq__item:nth-child(2) { transition-delay: 200ms; }
.reveal [data-reveal] :is(.steps__list, .features__grid) > li:nth-child(3),
.reveal [data-reveal] .faq__item:nth-child(3) { transition-delay: 290ms; }
.reveal [data-reveal] :is(.steps__list, .features__grid) > li:nth-child(4),
.reveal [data-reveal] .faq__item:nth-child(4) { transition-delay: 380ms; }
.reveal [data-reveal] .features__grid > li:nth-child(5),
.reveal [data-reveal] .faq__item:nth-child(5) { transition-delay: 470ms; }
.reveal [data-reveal] .features__grid > li:nth-child(6) { transition-delay: 560ms; }

.reveal [data-reveal]:not(.is-visible) :is(.showcase__question, .showcase__answer, .showcase__grade, .report-demo__feedback) {
	opacity: 0;
}

.reveal [data-reveal]:not(.is-visible) .code__line--hot {
	background: transparent;
	box-shadow: none;
}

.reveal [data-reveal]:not(.is-visible) .ring__fill {
	stroke-dashoffset: 326.7;
}

.reveal [data-reveal]:not(.is-visible) .skill-bar__fill {
	transform: scaleX(0);
}

[data-reveal].is-visible .code__line--hot {
	animation: light-up 600ms ease 200ms both;
}

[data-reveal].is-visible .showcase__question,
[data-reveal].is-visible .showcase__answer,
[data-reveal].is-visible .showcase__grade,
[data-reveal].is-visible .report-demo__feedback {
	animation: rise 550ms ease both;
}

[data-reveal].is-visible .showcase__question { animation-delay: 450ms; }
[data-reveal].is-visible .showcase__answer { animation-delay: 900ms; }
[data-reveal].is-visible .showcase__grade { animation-delay: 1350ms; }
[data-reveal].is-visible .report-demo__feedback { animation-delay: 800ms; }

[data-reveal].is-visible .ring__fill {
	animation: draw-ring 1100ms ease-out 200ms both;
}

[data-reveal].is-visible .skill-bar__fill {
	animation: grow 850ms ease-out 200ms both;
}

@keyframes light-up {
	from {
		background: transparent;
		box-shadow: inset 2px 0 0 transparent;
	}
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

@keyframes draw-ring {
	from {
		stroke-dashoffset: 326.7;
	}
}

@keyframes grow {
	from {
		transform: scaleX(0);
	}
}

/* FAQ — native <details>, so it works without JavaScript */
.faq__list {
	max-width: 640px;
	margin: var(--space-6) auto 0;
	border-top: 1px solid var(--border);
}

.faq__item {
	border-bottom: 1px solid var(--border);
}

.faq__item summary {
	padding: var(--space-4) 0;
	color: var(--text);
	font-weight: 500;
	cursor: pointer;
}

.faq__item summary:hover {
	color: var(--accent);
}

.faq__item p {
	padding-bottom: var(--space-4);
	color: var(--text-muted);
	font-size: var(--text-sm);
	line-height: 1.6;
}

/* Closing call-to-action */
.closing {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-6);
	padding-bottom: var(--space-8);
	text-align: center;
}


/* Mid-width screens: What you get in two columns */
@media (max-width: 1000px) {
	.features__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Narrow screens: stack every multi-column block, and give bar labels less room */
@media (max-width: 760px) {
	.step {
		grid-template-columns: 1fr;
		gap: var(--space-4);
	}

	.feature__visual {
		height: auto;
	}

	.hero,
	.features__grid,
	.showcase__panes,
	.report-demo__body {
		grid-template-columns: 1fr;
	}

	.hero {
		align-content: start; /* on phones the headline sits near the top instead of mid-screen */
		gap: var(--space-4);
		padding-block: var(--space-8);
		text-align: center;
	}

	/* Phones: logo first, then the text and buttons, all centred; the rings shrink */
	.hero__visual {
		order: -1;
		min-height: 170px;
	}

	.hero__logo {
		width: 112px;
		height: 112px;
	}

	.hero__graph {
		transform: translate(-50%, -50%) scale(0.5);
	}

	.hero__title {
		font-size: 2.25rem;
	}

	.section-heading,
	.closing__title {
		font-size: 1.75rem;
	}

	.hero__lead {
		margin-inline: auto;
	}


	.hero__text {
		align-items: center;
		max-width: none;
	}

	.hero__actions {
		justify-content: center;
	}

	.report-demo__overview {
		border-right: none;
		border-bottom: 1px solid var(--border);
	}

	.skill-bar {
		grid-template-columns: 130px 1fr 28px;
	}

	.code {
		border-right: none;
		border-bottom: 1px solid var(--border);
	}

	/* Long code lines wrap instead of scrolling sideways, so the lines a question is about are always visible.
	   The line number moves into the left padding, keeping wrapped text clear of it. */
	.code__line {
		position: relative;
		padding-left: 3.25rem;
		white-space: pre-wrap;
		overflow-wrap: anywhere;
	}

	.code__line::before {
		position: absolute;
		left: 0;
	}

	/* The report title gets its own row, with the badges on the next */
	.report-demo__bar {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Phones: main's top padding shrinks at 600px (layout.css), so the hero's pull-up shrinks with it */
@media (max-width: 600px) {
	.hero-wrap {
		margin-top: calc(-1 * var(--space-8));
	}
}
