/*
 * Hirova homepage (#87). Light only, like the brand sheet: black ink on pure
 * white paper (apps/native/theme.ts), `--ink2` the only grey for text,
 * `--hair` for rules. Newsreader is the voice (headlines, the set resume
 * line), Familjen Grotesk the interface. SIL OFL 1.1, licences under /fonts/.
 *
 * Every rule here describes the final frame: without JavaScript, or with
 * reduced motion, the page is complete. `.motion` (gate.js) only holds the
 * hero's first frame until home.js takes over.
 */
@font-face {
	font-family: "Newsreader";
	src: url("/fonts/Newsreader-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Familjen Grotesk";
	src: url("/fonts/FamiljenGrotesk-Regular.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Familjen Grotesk";
	src: url("/fonts/FamiljenGrotesk-SemiBold.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
}

:root {
	color-scheme: light;
	--ink: #000;
	--paper: #fff;
	--ink2: #6b6b6b;
	--hair: #d9d9d9;
	--mist: #f4f4f4;
	--voice: "Newsreader", Georgia, "Times New Roman", serif;
	--ui:
		"Familjen Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
		Arial, sans-serif;
	--gutter: 1.25rem;
	--section: clamp(6rem, 4rem + 9vw, 11rem);
	--lift:
		0 1px 1px rgb(0 0 0 / 0.04), 0 2px 6px rgb(0 0 0 / 0.04),
		0 28px 56px -20px rgb(0 0 0 / 0.22);
}

* {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem / 1.5 var(--ui);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
a:hover {
	text-decoration-thickness: 2px;
}
a:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
	border-radius: 2px;
}
h1,
h2,
h3,
p,
ol,
ul,
figure,
blockquote {
	margin: 0;
}
ul {
	padding: 0;
	list-style: none;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.wrap {
	width: 100%;
	max-width: 78rem;
	margin: 0 auto;
	padding-left: max(var(--gutter), env(safe-area-inset-left));
	padding-right: max(var(--gutter), env(safe-area-inset-right));
}
@media (min-width: 48rem) {
	:root {
		--gutter: 2.5rem;
	}
}

/* Type: the voice for headlines, the interface for everything else. */
h1,
h2 {
	font-family: var(--voice);
	font-weight: 400;
	letter-spacing: -0.035em;
	text-wrap: balance;
}
h1 {
	font-size: clamp(3.5rem, 19.5vw, 8.5rem);
	line-height: 0.92;
}
@media (min-width: 64rem) {
	h1 {
		font-size: min(8.4vw, 9rem);
	}
}
h2 {
	font-size: clamp(2.625rem, 1.6rem + 4.2vw, 5.25rem);
	line-height: 0.98;
}
/* Ink reveal: each heading line rises inside its own mask (home.js). */
.line {
	display: block;
	overflow: hidden;
	padding-bottom: 0.12em;
	margin-bottom: -0.12em;
}
.line > span {
	display: block;
}
.lede,
h2 + p,
.honest-head p,
.pricing-head > p {
	margin-top: 1.25rem;
	max-width: 30rem;
	font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
	line-height: 1.45;
	color: var(--ink2);
	text-wrap: pretty;
}

/* Brand and header */
.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	font: 600 1.0625rem / 1.3 var(--ui);
}
.mark {
	width: 1.625rem;
	height: 1.625rem;
	fill: var(--ink);
}
/* The star sits on top of the solid H, so it takes the paper colour to read as the cut-out. */
.mark .mark-star {
	fill: var(--paper);
}
.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: max(1.25rem, env(safe-area-inset-top));
	padding-bottom: 1.25rem;
}
.top nav {
	display: flex;
	gap: 1.5rem;
}
.top nav a {
	text-decoration: none;
	font-size: 0.9375rem;
	color: var(--ink2);
}
.top nav a:hover {
	color: var(--ink);
}

/* Hero: the headline, then Set, where a spoken answer becomes a resume line. */
.hero {
	display: grid;
	gap: 3rem;
	padding-top: clamp(2.5rem, 1rem + 6vw, 6rem);
	padding-bottom: var(--section);
}
@media (min-width: 64rem) {
	.hero {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		align-items: center;
		gap: 4rem;
		min-height: min(52rem, calc(100svh - 4.5rem));
		padding-top: 2rem;
	}
}
.set {
	position: relative;
	display: grid;
	gap: 1.5rem;
}
/* The nib rests on the sheet's corner, as if it had just written the line. */
.set-nib {
	position: absolute;
	z-index: 1;
	right: -1.75rem;
	bottom: -2.75rem;
	width: clamp(6rem, 26vw, 10rem);
	pointer-events: none;
}
.set-nib .art {
	display: block;
	width: 100%;
	height: auto;
}
@media (min-width: 64rem) {
	.set-nib {
		right: -4.5rem;
		bottom: -4rem;
	}
}
.said {
	justify-self: start;
	max-width: 27rem;
	padding: 1rem 1.25rem;
	border-radius: 1.375rem 1.375rem 1.375rem 0.375rem;
	background: var(--mist);
	color: var(--ink2);
	font-size: 1.0625rem;
	line-height: 1.45;
}
.sheet {
	position: relative;
	padding: 1.75rem 1.5rem 1.5rem;
	background: var(--paper);
	box-shadow: var(--lift);
}
@media (min-width: 64rem) {
	.sheet {
		margin-left: 3rem;
		padding: 2.25rem 2.25rem 1.75rem;
	}
}
/* Crop marks at the four corners, as on a galley proof. */
.crop::before,
.crop::after,
.sheet::before,
.sheet::after {
	position: absolute;
	width: 10px;
	height: 10px;
	border-color: var(--ink);
	border-style: solid;
	border-width: 0;
	content: "";
	pointer-events: none;
}
.sheet::before {
	top: -14px;
	left: -14px;
	border-right-width: 1px;
	border-bottom-width: 1px;
}
.sheet::after {
	top: -14px;
	right: -14px;
	border-left-width: 1px;
	border-bottom-width: 1px;
}
.crop {
	position: absolute;
	left: -14px;
	right: -14px;
	bottom: -14px;
	height: 10px;
	pointer-events: none;
}
.crop::before {
	top: 0;
	left: 0;
	border-right-width: 1px;
	border-top-width: 1px;
}
.crop::after {
	top: 0;
	right: 0;
	border-left-width: 1px;
	border-top-width: 1px;
}
.role {
	font: 400 1.3125rem / 1.25 var(--voice);
}
.role span {
	font-weight: 400;
	letter-spacing: -0.01em;
}
.role-meta {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: var(--ink2);
}
.bullets {
	display: grid;
	gap: 0.625rem;
	margin-top: 1rem;
	font: 400 1.125rem / 1.4 var(--voice);
}
.bullets li {
	position: relative;
	padding-left: 1rem;
}
.bullets li::before {
	position: absolute;
	left: 0;
	content: "•";
}
.bullets li:first-child {
	color: var(--ink2);
}
.set-line {
	font-size: 1.25rem;
	line-height: 1.4;
}
@media (min-width: 64rem) {
	.said {
		font-size: 1.1875rem;
	}
	.bullets {
		font-size: 1.1875rem;
	}
	.set-line {
		font-size: 1.5rem;
		line-height: 1.35;
	}
}
.w {
	display: inline-block;
}
.num {
	text-decoration: underline dashed 1px;
	text-underline-offset: 0.18em;
}
.draft-note {
	margin-top: 1.25rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--hair);
	font-size: 0.8125rem;
	color: var(--ink2);
}
/* A word in flight between the answer and the line (home.js). */
.flight {
	position: absolute;
	top: 0;
	left: 0;
	color: var(--ink);
	font-size: 1.0625rem;
	line-height: 1.45;
	white-space: nowrap;
	pointer-events: none;
	will-change: transform, opacity;
}
@media (min-width: 64rem) {
	.flight {
		font-size: 1.1875rem;
	}
}

/* Gate: hold the hero's first frame until home.js runs it. */
.motion .set-line .w {
	opacity: 0;
}
.motion .said {
	color: var(--ink);
}

/* Facts: each number confirmed ignites its tile. */
.facts {
	display: grid;
	gap: 3rem;
	padding-bottom: var(--section);
}
@media (min-width: 64rem) {
	.facts {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		align-items: center;
		gap: 4rem;
	}
}
.facts-stage {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
	align-items: start;
	gap: 0.75rem;
}
@media (min-width: 40rem) {
	.facts-stage {
		grid-template-columns: 9rem minmax(0, 1fr);
		align-items: center;
		gap: 1.5rem;
	}
}
.facts-hand .art {
	display: block;
	width: 100%;
	height: auto;
	margin-top: 1.25rem;
}
@media (min-width: 40rem) {
	.facts-hand .art {
		margin-top: 0;
	}
}
.fact-list {
	display: grid;
	border-top: 1px solid var(--ink);
}
.fact {
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	column-gap: 1rem;
	align-items: center;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--hair);
}
.fact .tile {
	grid-row: span 2;
	width: 2.25rem;
	height: 2.25rem;
	overflow: visible;
}
.fact-v {
	font: 400 clamp(2.75rem, 2rem + 3vw, 4rem) / 1 var(--voice);
	letter-spacing: -0.03em;
}
.fact-said {
	margin-top: 0.375rem;
	color: var(--ink2);
}

/* The app's NovaTile, lit. */
.tile .tile-out {
	fill: none;
	stroke: var(--ink);
	stroke-width: 9;
	stroke-dasharray: 14 10;
	opacity: 0;
}
.tile .tile-fill {
	fill: var(--ink);
}
.tile .tile-star {
	fill: var(--paper);
}
.tile .tile-rays {
	fill: none;
	stroke: var(--ink);
	stroke-width: 7;
	stroke-dasharray: 14 30;
	opacity: 0;
}

/* Press: the brayer rolls the greeked page into the real one. */
.press {
	padding-bottom: clamp(3rem, 6vw, 5rem);
	overflow-x: clip;
}
.press-in {
	display: grid;
	align-content: center;
	gap: 2.5rem;
}
/* Tall enough to pin (home.js): the stage fills the screen while it presses. */
@media (max-width: 63.99rem) and (min-height: 44rem) {
	.press-in {
		min-height: 100svh;
		gap: 2rem;
	}
}
@media (min-width: 64rem) {
	.press-in {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
		align-items: center;
		gap: 4rem;
		min-height: 100svh;
	}
}
.press-stage {
	--bw: clamp(8.5rem, 36vw, 14rem);
	justify-self: center;
	width: min(100%, 30rem);
	padding-bottom: calc(var(--bw) * 0.2);
}
.press-page {
	position: relative;
	box-shadow: var(--lift);
}
.press-page img {
	width: 100%;
}
.press-greek {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: var(--paper);
	clip-path: inset(0 0 0 100%);
}
.press-trail {
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 4px;
	border-radius: 2px;
	background: var(--ink);
	transform-origin: 0 50%;
	opacity: 0;
}
.press-brayer {
	position: absolute;
	top: calc(100% - var(--bw) * 0.86);
	left: calc(100% - var(--bw) * 0.62);
	width: var(--bw);
	height: var(--bw);
	pointer-events: none;
}
.press-brayer .art {
	width: 100%;
	height: 100%;
}
.press-brayer [data-part="ink"] {
	display: none;
}
.press-stage figcaption {
	margin-top: calc(var(--bw) * 0.2 + 0.75rem);
	font-size: 0.875rem;
	color: var(--ink2);
}

/* Designs: three real pages; a snap carousel on phones, a fan on desktop. */
.designs {
	padding-bottom: var(--section);
}
.design-row {
	position: relative;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(78vw, 22rem);
	gap: 1.25rem;
	margin-top: 3rem;
	padding-top: 1rem;
	padding-bottom: 1.5rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(var(--gutter), env(safe-area-inset-left));
	scrollbar-width: none;
}
.design-row::-webkit-scrollbar {
	display: none;
}
.design {
	position: relative;
	scroll-snap-align: start;
}
.design:nth-child(2) {
	z-index: 1;
}
@media (min-width: 64rem) {
	.design-row {
		grid-auto-flow: row;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-auto-columns: auto;
		gap: 2.5rem;
		margin-top: 4.5rem;
		overflow: visible;
	}
}
.sheet-frame {
	box-shadow: var(--lift);
	background: var(--paper);
	transition: transform 300ms cubic-bezier(0.175, 0.885, 0.32, 1.1);
}
@media (hover: hover) {
	.design:hover .sheet-frame {
		transform: translateY(-6px);
	}
}
.design p {
	margin-top: 1.25rem;
	color: var(--ink2);
}
.design strong {
	display: block;
	font: 400 1.75rem / 1.1 var(--voice);
	letter-spacing: -0.02em;
	color: var(--ink);
}

/* Honest about the AI */
.honest {
	display: grid;
	gap: 2.5rem;
	padding-bottom: var(--section);
}
@media (min-width: 64rem) {
	.honest {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: 4rem;
	}
}
.honest-list {
	display: grid;
	border-top: 1px solid var(--ink);
}
.honest-list li {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--hair);
	color: var(--ink2);
	line-height: 1.5;
}
.honest-list strong {
	font-weight: 600;
	color: var(--ink);
}

/* Pricing: the paywall's words and the terms' US reference prices. */
.pricing {
	display: grid;
	gap: 3rem;
	padding-bottom: var(--section);
	scroll-margin-top: 1.5rem;
}
@media (min-width: 64rem) {
	.pricing {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		column-gap: 4rem;
		row-gap: 2rem;
	}
}
.perks {
	display: grid;
	gap: 0.5rem;
	margin-top: 1.5rem;
	font-size: 1.125rem;
}
.perks li::before {
	content: "+ ";
}
.plans {
	display: grid;
	gap: 1rem;
	align-content: start;
}
@media (min-width: 40rem) {
	.plans {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.plan {
	display: flex;
	flex-direction: column;
	padding: 1.75rem 1.5rem 1.5rem;
	border: 1px solid var(--ink);
	border-radius: 1rem;
}
.plan h3 {
	font: 600 1.0625rem / 1.3 var(--ui);
}
.price {
	margin-top: 1.25rem;
	color: var(--ink2);
}
.price .amount {
	display: block;
	font: 400 clamp(3rem, 2.4rem + 2vw, 4rem) / 1 var(--voice);
	letter-spacing: -0.03em;
	color: var(--ink);
}
.plan .note {
	margin-top: 0.75rem;
	font-weight: 600;
}
.plan .fine {
	margin-top: auto;
	padding-top: 1.5rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--ink2);
}
.pricing-terms {
	grid-column: 1 / -1;
	max-width: 44rem;
	font-size: 0.875rem;
	color: var(--ink2);
}
@media (min-width: 64rem) {
	.pricing-terms {
		grid-column: 2;
	}
}

/* Coming soon */
.soon {
	display: grid;
	justify-items: center;
	text-align: center;
	padding-bottom: var(--section);
}
.soon-art .art {
	width: clamp(10rem, 6rem + 14vw, 16rem);
	height: auto;
}
.soon h2 {
	margin-top: 0.5rem;
}
.soon-tile {
	width: 1.125rem;
	height: 1.125rem;
	margin-right: 0.625rem;
	vertical-align: -0.15em;
	overflow: visible;
}
.soon h2 + p {
	margin-left: auto;
	margin-right: auto;
	color: var(--ink);
}

/* Footer */
.foot {
	display: grid;
	gap: 1.25rem;
	padding-top: 2rem;
	padding-bottom: max(3rem, env(safe-area-inset-bottom));
	border-top: 1px solid var(--hair);
	font-size: 0.9375rem;
}
.foot nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
}
.foot .note {
	color: var(--ink2);
}
@media (min-width: 48rem) {
	.foot {
		grid-template-columns: auto 1fr;
		align-items: center;
	}
	.foot nav {
		justify-content: flex-end;
	}
	.foot .note {
		grid-column: 1 / -1;
	}
}
