/* ==========================================================================
   Kintsugi — marketing theme stylesheet

   Palette and type are lifted from the app's own tokens (app/public/css/
   styles.css) so the site and the product are visibly the same thing. Do not
   re-pick these by eye — change them in the app first, then mirror here.

   Fraunces is self-hosted alongside the theme; there are no external requests
   anywhere in this file — no webfont CDN, no icon CDN, no analytics.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

/*
 * Fraunces, self-hosted from the theme. Same file the app serves, so a visitor
 * moving between the site and the product sees one typeface, and nothing is
 * fetched from a third party.
 */
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/fraunces-latin.woff2") format("woff2");
}

:root {
	/* Ground. Purple-black, from the app: --bg, --bg-2, --panel, --border. */
	--k-lacquer: #14121a;
	--k-ink: #14121a;
	--k-sumi: #1c1926;
	--k-sumi-raised: #211d2e;
	--k-panel-2: #2a2539;
	--k-hairline: #35304a;

	/* Text. App: --text, --muted. */
	--k-bone: #e9e4f2;
	--k-bone-dim: #c4bdd6;
	--k-muted: #a79fbd;

	/* Light surfaces. Not in the app, which is dark throughout — these are a
	   marketing-only pairing, kept cool so they sit with the purple ground. */
	--k-paper: #f4f1f8;
	--k-paper-edge: #ded8e8;
	--k-paper-ink: #241f33;
	--k-paper-dim: #4a4364;

	/* The seam. App: --gold, --gold-soft. Deep gold is marketing-only, for
	   link text on the light surfaces, where #c8a24a does not reach AA. */
	--k-gold: #c8a24a;
	--k-gold-soft: #d8b968;
	--k-gold-deep: #6f5410;

	/* Quiet secondary. App: --success, used for calm cues only. */
	--k-celadon: #6fae8a;

	/* Alerts. App: --danger. Reserved for errors and the crisis strip. */
	--k-vermilion: #d1607a;
	--k-vermilion-deep: #a33c55;

	/* Type. App: 'Fraunces' display, --font body, --serif fallback. */
	--k-display: "Fraunces", Georgia, "Times New Roman", serif;
	--k-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--k-mono: ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

	--k-size-display-xl: clamp(2.75rem, 1.55rem + 5.2vw, 5.25rem);
	--k-size-display: clamp(2.1rem, 1.45rem + 2.9vw, 3.4rem);
	--k-size-h2: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem);
	--k-size-h3: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
	--k-size-lead: clamp(1.0625rem, 1rem + 0.45vw, 1.3rem);
	--k-size-body: 1.0625rem;
	--k-size-small: 0.9375rem;
	--k-size-label: 0.75rem;

	/* Space. */
	--k-space-1: 0.25rem;
	--k-space-2: 0.5rem;
	--k-space-3: 0.75rem;
	--k-space-4: 1rem;
	--k-space-5: 1.5rem;
	--k-space-6: 2rem;
	--k-space-7: 3rem;
	--k-space-8: 4rem;
	--k-space-9: 6rem;
	--k-section: clamp(3.5rem, 2rem + 6vw, 7rem);

	/* Measure and gutters. */
	--k-container: 1180px;
	--k-container-wide: 1400px;
	--k-measure: 66ch;
	--k-gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);

	--k-radius: 10px;
	--k-radius-lg: 14px;
	--k-focus: 0 0 0 2px var(--k-lacquer), 0 0 0 5px var(--k-gold);
	--k-focus-light: 0 0 0 2px var(--k-paper), 0 0 0 5px var(--k-gold-deep);
	--k-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* --- Reset -------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

body {
	margin: 0;
	/* The app's body treatment, mirrored: a soft warm-purple lift from the
	   top right rather than a flat field. app/public/css/styles.css. */
	background: radial-gradient(1200px 600px at 70% -10%, #241f33 0%, var(--k-ink) 55%);
	background-attachment: fixed;
	color: var(--k-bone);
	font-family: var(--k-body);
	font-size: var(--k-size-body);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

/* --- Typography --------------------------------------------------------- */

h1,
h2,
h3,
h4 {
	font-family: var(--k-display);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.015em;
	margin: 0 0 var(--k-space-4);
	text-wrap: balance;
}

h1 {
	font-size: var(--k-size-display);
}
h2 {
	font-size: var(--k-size-h2);
}
h3 {
	font-size: var(--k-size-h3);
	line-height: 1.25;
}
h4 {
	font-size: 1.0625rem;
	font-family: var(--k-body);
	font-weight: 600;
	letter-spacing: 0;
}

p {
	margin: 0 0 var(--k-space-5);
	max-width: var(--k-measure);
}

a {
	color: var(--k-gold);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.18s var(--k-ease);
}

a:hover {
	color: var(--k-gold-soft);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: none;
	box-shadow: var(--k-focus);
	border-radius: 2px;
}

.k-eyebrow {
	font-family: var(--k-mono);
	font-size: var(--k-size-label);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--k-gold);
	margin: 0 0 var(--k-space-4);
	display: block;
}

.k-lead {
	font-size: var(--k-size-lead);
	line-height: 1.6;
	color: var(--k-bone-dim);
	max-width: 58ch;
}

.k-small {
	font-size: var(--k-size-small);
	color: var(--k-muted);
}

/* --- Layout ------------------------------------------------------------- */

.k-container {
	width: 100%;
	max-width: var(--k-container);
	margin-inline: auto;
	padding-inline: var(--k-gutter);
}

.k-container--wide {
	max-width: var(--k-container-wide);
}

.k-container--narrow {
	max-width: 760px;
}

.k-section {
	padding-block: var(--k-section);
	position: relative;
}

.k-section--tight {
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.k-section--paper {
	background: var(--k-paper);
	color: var(--k-ink);
}

.k-section--paper .k-lead {
	color: var(--k-paper-dim);
}

.k-section--paper .k-eyebrow {
	color: var(--k-gold-deep);
}

.k-section--paper a {
	color: var(--k-gold-deep);
}

.k-section--paper a:hover {
	color: var(--k-vermilion-deep);
}

.k-section--paper a:focus-visible {
	box-shadow: var(--k-focus-light);
}

.k-section--sumi {
	background: var(--k-sumi);
}

.k-section-head {
	max-width: 62ch;
	margin-bottom: var(--k-space-8);
}

.k-grid {
	display: grid;
	gap: var(--k-space-5);
}

@media (min-width: 640px) {
	.k-grid--2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.k-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
	.k-grid--2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

.k-split {
	display: grid;
	gap: var(--k-space-7);
	align-items: start;
}

@media (min-width: 900px) {
	.k-split {
		grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
		gap: var(--k-space-8);
	}
}

/* --- Skip link ---------------------------------------------------------- */

.k-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--k-gold);
	color: var(--k-lacquer);
	padding: var(--k-space-3) var(--k-space-5);
	font-weight: 600;
	text-decoration: none;
}

.k-skip:focus {
	left: var(--k-space-4);
	top: var(--k-space-4);
	color: var(--k-lacquer);
}

/* --- Header ------------------------------------------------------------- */

.k-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--k-ink) 92%, transparent);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--k-hairline);
}

@supports not (backdrop-filter: blur(4px)) {
	.k-header {
		background: var(--k-ink);
	}
}

.k-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--k-space-5);
	min-height: 4.5rem;
}

.k-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--k-bone);
	font-family: var(--k-display);
	font-size: 1.6rem;
	letter-spacing: 0.01em;
	flex-shrink: 0;
}

.k-brand:hover {
	color: var(--k-bone);
}

/* The mark sits beside the wordmark, so it is sized against it rather than
   against a favicon. 2.6rem reads as a logo at 1440 and stays legible at 390. */
.k-brand__mark {
	width: 2.6rem;
	height: 2.6rem;
	flex: 0 0 auto;
}

/* WordPress wraps a custom logo in .custom-logo-link and prints the raw
   attachment dimensions, which would otherwise render a 512px image at 512px. */
.k-brand .custom-logo-link,
.k-brand .custom-logo {
	display: block;
	width: 2.6rem;
	height: 2.6rem;
	flex: 0 0 auto;
}

@media (max-width: 599px) {
	.k-brand {
		font-size: 1.4rem;
	}

	.k-brand__mark,
	.k-brand .custom-logo-link,
	.k-brand .custom-logo {
		width: 2.2rem;
		height: 2.2rem;
	}
}

.k-brand__name em {
	font-style: normal;
	color: var(--k-gold);
}

/* Navigation */

.k-nav {
	display: flex;
	align-items: center;
	gap: var(--k-space-5);
}

.k-nav__list {
	display: flex;
	align-items: center;
	gap: var(--k-space-5);
	list-style: none;
	margin: 0;
	padding: 0;
}

.k-nav__list a {
	color: var(--k-bone-dim);
	text-decoration: none;
	/* A nav item must never wrap mid-phrase — "What's inside" breaking across
	   two lines reads as a layout fault even when the widths are fine. */
	white-space: nowrap;
	font-size: var(--k-size-small);
	letter-spacing: 0.01em;
	padding-block: 0.4rem;
	position: relative;
}

.k-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--k-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.22s var(--k-ease);
}

.k-nav__list a:hover,
.k-nav__list .current-menu-item > a,
.k-nav__list .current_page_item > a {
	color: var(--k-bone);
}

.k-nav__list a:hover::after,
.k-nav__list .current-menu-item > a::after,
.k-nav__list .current_page_item > a::after {
	transform: scaleX(1);
}

.k-nav__toggle {
	display: none;
	background: none;
	border: 1px solid var(--k-hairline);
	border-radius: var(--k-radius);
	color: var(--k-bone);
	padding: 0.5rem 0.7rem;
	cursor: pointer;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--k-size-small);
}

.k-nav__toggle-bars {
	display: block;
	width: 1.1rem;
	height: 2px;
	background: currentColor;
	position: relative;
}

.k-nav__toggle-bars::before,
.k-nav__toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s var(--k-ease);
}

.k-nav__toggle-bars::before {
	top: -6px;
}
.k-nav__toggle-bars::after {
	top: 6px;
}

@media (max-width: 899px) {
	.k-nav__toggle {
		display: inline-flex;
	}

	.k-nav {
		position: fixed;
		inset: 4.5rem 0 auto 0;
		background: var(--k-lacquer);
		border-bottom: 1px solid var(--k-hairline);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: var(--k-space-4) var(--k-gutter) var(--k-space-6);
		max-height: calc(100dvh - 4.5rem);
		overflow-y: auto;
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s var(--k-ease), transform 0.2s var(--k-ease), visibility 0.2s;
	}

	.k-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.k-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.k-nav__list li {
		border-bottom: 1px solid var(--k-hairline);
	}

	.k-nav__list a {
		display: block;
		padding: var(--k-space-4) 0;
		font-size: 1.05rem;
	}

	.k-nav__list a::after {
		display: none;
	}

	.k-nav .k-btn {
		margin-top: var(--k-space-5);
		justify-content: center;
	}
}

/* --- Buttons ------------------------------------------------------------ */

.k-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.8rem 1.4rem;
	border-radius: var(--k-radius);
	border: 1px solid transparent;
	font-size: var(--k-size-small);
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s var(--k-ease), border-color 0.18s var(--k-ease),
		color 0.18s var(--k-ease), transform 0.18s var(--k-ease);
}

.k-btn:active {
	transform: translateY(1px);
}

.k-btn--primary {
	background: var(--k-gold);
	color: var(--k-lacquer);
	border-color: var(--k-gold);
}

.k-btn--primary:hover {
	background: var(--k-gold-soft);
	border-color: var(--k-gold-soft);
	color: var(--k-lacquer);
}

.k-btn--ghost {
	background: transparent;
	color: var(--k-bone);
	border-color: var(--k-hairline);
}

.k-btn--ghost:hover {
	border-color: var(--k-gold);
	color: var(--k-gold);
}

.k-section--paper .k-btn--ghost {
	color: var(--k-ink);
	border-color: var(--k-paper-edge);
}

.k-section--paper .k-btn--ghost:hover {
	border-color: var(--k-gold-deep);
	color: var(--k-gold-deep);
}

.k-btn[disabled],
.k-btn[aria-disabled="true"] {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.k-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--k-space-4);
	align-items: center;
}

/* --- The seam (signature element) --------------------------------------- */

.k-seam {
	display: block;
	width: 100%;
	height: clamp(28px, 4vw, 52px);
	color: var(--k-gold);
	overflow: hidden;
}

.k-seam svg {
	width: 100%;
	height: 100%;
}

.k-seam path {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.k-seam path.k-seam__flake {
	fill: currentColor;
	stroke: none;
}

/* Hero wordmark seam draw-on */

.k-hero__mark {
	width: min(100%, 30rem);
	margin-bottom: var(--k-space-6);
	color: var(--k-gold);
}

.k-hero__mark .k-draw {
	stroke-dasharray: var(--k-len, 400);
	stroke-dashoffset: var(--k-len, 400);
	animation: k-draw 1.35s var(--k-ease) 0.25s forwards;
}

@keyframes k-draw {
	to {
		stroke-dashoffset: 0;
	}
}

/* --- Hero --------------------------------------------------------------- */

.k-hero {
	position: relative;
	padding-block: clamp(3.5rem, 2rem + 8vw, 8rem) clamp(3rem, 2rem + 5vw, 6rem);
	background:
		radial-gradient(120% 80% at 78% 8%, rgba(215, 169, 60, 0.12), transparent 62%),
		radial-gradient(90% 70% at 10% 90%, rgba(134, 160, 147, 0.09), transparent 60%),
		var(--k-lacquer);
	overflow: hidden;
}

.k-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 46rem;
}

.k-hero h1 {
	font-size: var(--k-size-display-xl);
	margin-bottom: var(--k-space-5);
}

.k-hero h1 .k-mend {
	position: relative;
	white-space: nowrap;
	color: var(--k-gold);
}

.k-hero__lead {
	font-size: var(--k-size-lead);
	color: var(--k-bone-dim);
	max-width: 40ch;
	margin-bottom: var(--k-space-6);
}

.k-hero__note {
	margin-top: var(--k-space-6);
	font-size: var(--k-size-small);
	color: var(--k-muted);
	max-width: 46ch;
}

/* --- Cards -------------------------------------------------------------- */

.k-card {
	background: var(--k-sumi);
	border: 1px solid var(--k-hairline);
	border-radius: var(--k-radius-lg);
	padding: var(--k-space-6);
	display: flex;
	flex-direction: column;
	gap: var(--k-space-3);
	position: relative;
	overflow: hidden;
	transition: border-color 0.2s var(--k-ease), transform 0.2s var(--k-ease);
}

.k-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 2px;
	background: linear-gradient(180deg, transparent, var(--k-gold), transparent);
	opacity: 0;
	transition: opacity 0.2s var(--k-ease);
}

.k-card:hover {
	border-color: color-mix(in srgb, var(--k-gold) 45%, var(--k-hairline));
}

.k-card:hover::before {
	opacity: 1;
}

.k-card h3 {
	margin: 0;
}

.k-card p {
	margin: 0;
	color: var(--k-bone-dim);
	font-size: var(--k-size-small);
	max-width: none;
}

.k-section--paper .k-card {
	background: #fbf9fd;
	border-color: var(--k-paper-edge);
}

.k-section--paper .k-card p {
	color: var(--k-paper-dim);
}

.k-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--k-space-4);
}

/* Honest status labels — these carry real information, not decoration. */

.k-status {
	font-family: var(--k-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.25rem 0.5rem;
	border-radius: 2px;
	border: 1px solid currentColor;
	white-space: nowrap;
	flex-shrink: 0;
	line-height: 1.4;
}

.k-status--available {
	color: var(--k-gold);
}

.k-status--building {
	color: var(--k-celadon);
}

/* --- Feature detail rows ------------------------------------------------ */

.k-feature {
	padding-block: var(--k-space-8);
	border-top: 1px solid var(--k-hairline);
}

.k-feature:first-of-type {
	border-top: 0;
}

.k-feature__label {
	font-family: var(--k-mono);
	font-size: var(--k-size-label);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--k-gold);
}

.k-feature__label span {
	display: block;
	color: var(--k-muted);
	margin-top: var(--k-space-2);
	letter-spacing: 0.1em;
}

.k-feature h2 {
	margin-top: 0;
}

.k-list {
	list-style: none;
	margin: 0 0 var(--k-space-5);
	padding: 0;
	display: grid;
	gap: var(--k-space-3);
	max-width: var(--k-measure);
}

.k-list li {
	position: relative;
	padding-left: 1.6rem;
	color: var(--k-bone-dim);
}

.k-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.7em;
	width: 0.7rem;
	height: 2px;
	background: var(--k-gold);
	border-radius: 2px;
}

.k-section--paper .k-list li {
	color: var(--k-paper-dim);
}

/* --- Crisis / safety strip ---------------------------------------------- */

.k-safety {
	background: var(--k-sumi-raised);
	border: 1px solid color-mix(in srgb, var(--k-vermilion) 40%, var(--k-hairline));
	border-left: 3px solid var(--k-vermilion);
	border-radius: var(--k-radius);
	padding: var(--k-space-5) var(--k-space-6);
	max-width: var(--k-measure);
}

.k-safety h3 {
	font-family: var(--k-body);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0;
	margin-bottom: var(--k-space-2);
}

.k-safety p:last-child {
	margin-bottom: 0;
}

.k-section--paper .k-safety {
	background: #fdf3f6;
	border-color: color-mix(in srgb, var(--k-vermilion) 35%, var(--k-paper-edge));
	border-left-color: var(--k-vermilion-deep);
}

/* Crisis contact list — deliberately plain, high contrast, no tracking. */

.k-crisis {
	display: grid;
	gap: var(--k-space-4);
	margin: 0 0 var(--k-space-6);
	padding: 0;
	list-style: none;
	max-width: 46rem;
}

.k-crisis li {
	border: 1px solid var(--k-hairline);
	border-radius: var(--k-radius);
	padding: var(--k-space-5);
	background: var(--k-sumi);
}

.k-crisis__name {
	font-family: var(--k-display);
	font-size: 1.25rem;
	display: block;
	margin-bottom: var(--k-space-2);
}

.k-crisis__contact {
	font-family: var(--k-mono);
	font-size: 1.05rem;
	color: var(--k-gold);
	display: block;
	margin-bottom: var(--k-space-2);
	letter-spacing: 0.02em;
}

.k-crisis__contact a {
	text-decoration: none;
}

.k-crisis p {
	margin: 0;
	font-size: var(--k-size-small);
	color: var(--k-bone-dim);
}

/* --- Forms -------------------------------------------------------------- */

.k-form {
	max-width: 40rem;
	display: grid;
	gap: var(--k-space-5);
}

.k-field {
	display: grid;
	gap: var(--k-space-2);
}

.k-field label {
	font-size: var(--k-size-small);
	font-weight: 600;
	letter-spacing: 0.01em;
}

.k-field__hint {
	font-size: var(--k-size-small);
	color: var(--k-muted);
	margin: 0;
	max-width: none;
}

.k-field input[type="text"],
.k-field input[type="email"],
.k-field select,
.k-field textarea {
	width: 100%;
	background: var(--k-sumi);
	border: 1px solid var(--k-hairline);
	border-radius: var(--k-radius);
	padding: 0.75rem 0.9rem;
	color: var(--k-bone);
	transition: border-color 0.18s var(--k-ease);
}

.k-field textarea {
	min-height: 9rem;
	resize: vertical;
}

.k-field input:hover,
.k-field textarea:hover,
.k-field select:hover {
	border-color: color-mix(in srgb, var(--k-gold) 40%, var(--k-hairline));
}

.k-field input::placeholder,
.k-field textarea::placeholder {
	color: #7a7290;
}

.k-field.has-error input,
.k-field.has-error textarea,
.k-field.has-error select {
	border-color: var(--k-vermilion);
}

.k-field__error {
	font-size: var(--k-size-small);
	color: #e58fa4;
	margin: 0;
	max-width: none;
}

.k-field__error:empty {
	display: none;
}

.k-checkbox {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--k-space-3);
	align-items: start;
}

.k-checkbox input {
	margin-top: 0.35rem;
	width: 1.05rem;
	height: 1.05rem;
	accent-color: var(--k-gold);
}

.k-checkbox label {
	font-weight: 400;
	font-size: var(--k-size-small);
	color: var(--k-bone-dim);
}

/* Honeypot: visually hidden but not display:none, so bots still fill it. */
.k-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.k-notice {
	border-radius: var(--k-radius);
	padding: var(--k-space-4) var(--k-space-5);
	border: 1px solid;
	font-size: var(--k-size-small);
}

.k-notice p {
	margin: 0;
	max-width: none;
}

.k-notice--ok {
	border-color: color-mix(in srgb, var(--k-celadon) 60%, var(--k-hairline));
	background: color-mix(in srgb, var(--k-celadon) 12%, var(--k-sumi));
	color: var(--k-bone);
}

.k-notice--error {
	border-color: var(--k-vermilion);
	background: color-mix(in srgb, var(--k-vermilion) 14%, var(--k-sumi));
	color: #f2d9e1;
}

/* --- Journal / posts ---------------------------------------------------- */

.k-post-list {
	display: grid;
	gap: var(--k-space-6);
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 900px) {
	.k-post-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

.k-post-card {
	border-top: 1px solid var(--k-hairline);
	padding-top: var(--k-space-5);
	display: flex;
	flex-direction: column;
	gap: var(--k-space-3);
}

.k-post-card h2,
.k-post-card h3 {
	font-size: 1.4rem;
	margin: 0;
}

.k-post-card h2 a,
.k-post-card h3 a {
	color: var(--k-bone);
	text-decoration: none;
}

.k-post-card h2 a:hover,
.k-post-card h3 a:hover {
	color: var(--k-gold);
}

.k-meta {
	font-family: var(--k-mono);
	font-size: var(--k-size-label);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--k-muted);
}

/* --- Prose (post + page content) ---------------------------------------- */

.k-prose {
	max-width: var(--k-measure);
}

.k-prose > * + * {
	margin-top: var(--k-space-5);
}

.k-prose h2 {
	margin-top: var(--k-space-8);
	margin-bottom: var(--k-space-3);
}

.k-prose h3 {
	margin-top: var(--k-space-6);
	margin-bottom: var(--k-space-3);
}

.k-prose ul,
.k-prose ol {
	padding-left: 1.35rem;
	color: var(--k-bone-dim);
}

.k-prose li + li {
	margin-top: var(--k-space-2);
}

.k-prose blockquote {
	margin: var(--k-space-6) 0;
	padding-left: var(--k-space-5);
	border-left: 2px solid var(--k-gold);
	font-family: var(--k-display);
	font-size: 1.2rem;
	color: var(--k-bone);
}

.k-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--k-size-small);
}

.k-prose th,
.k-prose td {
	text-align: left;
	padding: var(--k-space-3);
	border-bottom: 1px solid var(--k-hairline);
	vertical-align: top;
}

.k-prose th {
	font-family: var(--k-mono);
	font-size: var(--k-size-label);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--k-gold);
}

.k-prose code {
	font-family: var(--k-mono);
	font-size: 0.9em;
	background: var(--k-sumi);
	padding: 0.15em 0.4em;
	border-radius: 2px;
}

.k-section--paper .k-prose ul,
.k-section--paper .k-prose ol {
	color: var(--k-paper-dim);
}

.k-section--paper .k-prose blockquote {
	color: var(--k-ink);
	border-left-color: var(--k-gold-deep);
}

.k-section--paper .k-prose th {
	color: var(--k-gold-deep);
	border-bottom-color: var(--k-paper-edge);
}

.k-section--paper .k-prose td {
	border-bottom-color: var(--k-paper-edge);
}

.k-section--paper .k-prose code {
	background: #e6e1f0;
}

/* --- Footer ------------------------------------------------------------- */

.k-footer {
	background: var(--k-lacquer);
	border-top: 1px solid var(--k-hairline);
	padding-block: var(--k-space-8) var(--k-space-6);
	font-size: var(--k-size-small);
}

.k-footer__grid {
	display: grid;
	gap: var(--k-space-7);
	margin-bottom: var(--k-space-8);
}

@media (min-width: 720px) {
	.k-footer__grid {
		grid-template-columns: 1.5fr 1fr 1fr;
	}
}

.k-footer h2 {
	font-family: var(--k-mono);
	font-size: var(--k-size-label);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--k-gold);
	margin-bottom: var(--k-space-4);
}

.k-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--k-space-3);
}

.k-footer a {
	color: var(--k-bone-dim);
	text-decoration: none;
}

.k-footer a:hover {
	color: var(--k-gold);
	text-decoration: underline;
}

.k-footer__blurb {
	color: var(--k-muted);
	max-width: 34ch;
	margin-bottom: var(--k-space-5);
}

.k-footer__base {
	border-top: 1px solid var(--k-hairline);
	padding-top: var(--k-space-5);
	display: flex;
	flex-wrap: wrap;
	gap: var(--k-space-4) var(--k-space-6);
	justify-content: space-between;
	color: var(--k-muted);
}

.k-footer__base p {
	margin: 0;
	max-width: none;
}

/* --- Pagination --------------------------------------------------------- */

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

.k-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: 0.6rem;
	border: 1px solid var(--k-hairline);
	border-radius: var(--k-radius);
	text-decoration: none;
	color: var(--k-bone-dim);
}

.k-pagination .page-numbers:hover,
.k-pagination .page-numbers.current {
	border-color: var(--k-gold);
	color: var(--k-gold);
}

/* --- Utilities ---------------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.k-stack-6 > * + * {
	margin-top: var(--k-space-6);
}

.k-mb-0 {
	margin-bottom: 0;
}

/* WordPress core alignment + caption support */

.alignleft {
	float: left;
	margin: 0 var(--k-space-5) var(--k-space-4) 0;
}
.alignright {
	float: right;
	margin: 0 0 var(--k-space-4) var(--k-space-5);
}
.aligncenter {
	margin-inline: auto;
}
.wp-caption-text,
.wp-element-caption {
	font-size: var(--k-size-small);
	color: var(--k-muted);
	margin-top: var(--k-space-2);
}
.sticky .k-post-card {
	border-top-color: var(--k-gold);
}

/* --- Motion preferences ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.k-hero__mark .k-draw {
		stroke-dashoffset: 0;
	}
}

/* --- Print -------------------------------------------------------------- */

@media print {
	.k-header,
	.k-footer,
	.k-seam,
	.k-nav__toggle {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}
}

/* --- App screenshots ---------------------------------------------------- */

.k-shots {
	list-style: none;
	margin: 0;
	padding: 0 0 var(--k-space-3);
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(15rem, 17rem);
	gap: var(--k-space-6);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-color: var(--k-hairline) transparent;
}

@media (min-width: 1100px) {
	.k-shots {
		grid-auto-flow: row;
		/* Capped rather than 1fr: a single screenshot must stay phone-sized
		   instead of stretching to the full container width. */
		grid-template-columns: repeat(auto-fit, minmax(12rem, 15rem));
		justify-content: start;
		overflow-x: visible;
	}
}

.k-shot {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: var(--k-space-4);
}

/* A plain device outline. It is a frame, not a rendering of any real handset. */
.k-shot__frame {
	position: relative;
	border: 1px solid var(--k-hairline);
	border-radius: 22px;
	padding: 0.5rem;
	background: var(--k-lacquer);
	box-shadow: 0 1px 0 rgba(239, 231, 218, 0.06) inset;
	overflow: hidden;
}

.k-shot__bar {
	position: absolute;
	top: 0.85rem;
	left: 50%;
	transform: translateX(-50%);
	width: 3.25rem;
	height: 0.3rem;
	border-radius: 999px;
	background: var(--k-hairline);
	z-index: 1;
}

.k-shot__img {
	width: 100%;
	height: auto;
	border-radius: 16px;
	display: block;
}

.k-shot__caption {
	margin: 0;
	font-size: var(--k-size-small);
	color: var(--k-bone-dim);
	max-width: none;
}

.k-section--paper .k-shot__frame {
	background: #fbf9fd;
	border-color: var(--k-paper-edge);
}

.k-section--paper .k-shot__caption {
	color: var(--k-paper-dim);
}

/* --- Store download buttons --------------------------------------------- */

.k-stores {
	display: flex;
	flex-wrap: wrap;
	gap: var(--k-space-4);
	align-items: center;
}

/*
 * The old store-button rules lived here and were still in the file, fighting
 * the current ones further down: they gave .k-store__label its own 1px border
 * and pale bone text, which drew a grey box inside the gold button and made
 * the label almost unreadable — worse on hover, where only the border changed
 * colour. Superseded by the block below "Store buttons".
 */


/* --- Reviews ------------------------------------------------------------ */

.k-reviews {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--k-space-5);
}

@media (min-width: 900px) {
	.k-reviews {
		grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
	}
}

.k-review {
	background: var(--k-sumi);
	border: 1px solid var(--k-hairline);
	border-left: 2px solid var(--k-gold);
	border-radius: var(--k-radius-lg);
	padding: var(--k-space-6);
	display: flex;
	flex-direction: column;
	gap: var(--k-space-3);
}

.k-review__rating {
	margin: 0;
	color: var(--k-gold);
	letter-spacing: 0.12em;
	font-size: 1rem;
	max-width: none;
}

.k-review__title {
	margin: 0;
	font-size: 1.15rem;
}

.k-review__body {
	color: var(--k-bone-dim);
	font-size: var(--k-size-small);
}

.k-review__body p {
	margin: 0 0 var(--k-space-3);
	max-width: none;
}

.k-review__body p:last-child {
	margin-bottom: 0;
}

.k-review__meta {
	margin: 0;
	font-family: var(--k-mono);
	font-size: var(--k-size-label);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--k-muted);
	max-width: none;
}

.k-section--paper .k-review {
	background: #fbf9fd;
	border-color: var(--k-paper-edge);
	border-left-color: var(--k-gold-deep);
}

.k-section--paper .k-review__rating {
	color: var(--k-gold-deep);
}

.k-section--paper .k-review__body {
	color: var(--k-paper-dim);
}

/* --- Refinements from the first visual review --------------------------- */

/* The ghost button outline was too close to the background to read as a
   button. Raised to the dimmed bone tone. */
.k-btn--ghost {
	border-color: #4a4460;
}

/* The hero was leaving an unnecessary amount of empty space above the fold. */
.k-hero {
	padding-block: clamp(3rem, 1.5rem + 5.5vw, 5.5rem) clamp(3rem, 2rem + 4vw, 5rem);
}

.k-form-column {
	max-width: 42rem;
}

/* --- Support directory -------------------------------------------------- */

.k-jump {
	margin: 0 0 var(--k-space-8);
	padding: var(--k-space-5);
	border: 1px solid var(--k-hairline);
	border-radius: var(--k-radius-lg);
	background: var(--k-ink);
}

.k-jump ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--k-space-3) var(--k-space-5);
}

.k-jump a {
	font-size: var(--k-size-small);
	color: var(--k-bone-dim);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.k-jump a:hover {
	color: var(--k-gold);
	border-bottom-color: var(--k-gold);
}

.k-support-group {
	margin-bottom: var(--k-space-9);
	scroll-margin-top: 6rem;
}

.k-support-group:last-child {
	margin-bottom: 0;
}

.k-support-group h2 {
	margin-bottom: var(--k-space-4);
}

.k-support-group__intro {
	color: var(--k-bone-dim);
	max-width: 62ch;
	margin-bottom: var(--k-space-6);
}

/* --- Audience and psychology pages -------------------------------------- */

.k-audience {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--k-space-5);
}

@media (min-width: 900px) {
	.k-audience {
		grid-template-columns: repeat(2, 1fr);
	}
}

.k-audience li {
	border-top: 1px solid var(--k-hairline);
	padding-top: var(--k-space-5);
}

.k-audience h3 {
	margin-bottom: var(--k-space-3);
}

.k-audience p {
	color: var(--k-bone-dim);
	font-size: var(--k-size-small);
	margin: 0;
	max-width: none;
}

.k-section--paper .k-audience li {
	border-top-color: var(--k-paper-edge);
}

.k-section--paper .k-audience p {
	color: var(--k-paper-dim);
}


/* --- Module cards: marks, and the whole card as a link ------------------ */

.k-modules {
	list-style: none;
	margin: 0;
	padding: 0;
}

.k-card__icon {
	display: block;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: var(--k-space-2);
}

.k-card__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* The card is the hit target, not just the heading — a small link inside a
   big card is a fiddly thing to hit on a phone. */
.k-card--link {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.k-card--link h3 {
	color: var(--k-bone);
	transition: color 0.18s var(--k-ease);
}

.k-card--link:hover h3,
.k-card--link:focus-visible h3 {
	color: var(--k-gold);
}

.k-card--link::after {
	content: "→";
	position: absolute;
	right: var(--k-space-5);
	bottom: var(--k-space-5);
	color: var(--k-gold);
	opacity: 0;
	transform: translateX(-0.35rem);
	transition: opacity 0.18s var(--k-ease), transform 0.18s var(--k-ease);
}

.k-card--link:hover::after,
.k-card--link:focus-visible::after {
	opacity: 1;
	transform: translateX(0);
}

.k-card--link:focus-visible {
	box-shadow: var(--k-focus);
}

/* --- Footer -------------------------------------------------------------
   The footer sits on the lacquer ground, so a ghost button there was
   near-invisible and its label read as disabled. The footer CTA is the gold
   primary, same as everywhere else. */

.k-footer .k-btn--primary {
	background: var(--k-gold);
	border-color: var(--k-gold);
	color: #14121a;
}

.k-footer .k-btn--primary:hover {
	background: var(--k-gold-soft);
	border-color: var(--k-gold-soft);
	color: #14121a;
}

.k-footer .k-btn--ghost {
	color: var(--k-bone);
	border-color: #4a4460;
}

.k-footer .k-btn--ghost:hover {
	color: var(--k-gold);
	border-color: var(--k-gold);
}

/* The SAIS credit is a footnote, not a feature. */
.sais-credit {
	margin: var(--k-space-5) 0 0;
	font-size: var(--k-size-small);
	color: var(--k-muted);
}

.sais-credit a {
	color: var(--k-bone-dim);
}

.sais-credit a:hover {
	color: var(--k-gold);
}

.sais-disclosure {
	margin: 0;
	color: var(--k-muted);
	max-width: none;
}

/* --- Founder's quote ---------------------------------------------------- */

.k-founder-quote {
	margin: var(--k-space-8) 0 0;
	padding: var(--k-space-6) 0 0;
	border-top: 1px solid var(--k-hairline);
	max-width: var(--k-measure);
}

.k-founder-quote blockquote {
	margin: 0;
	padding-left: var(--k-space-5);
	border-left: 2px solid var(--k-gold);
}

.k-founder-quote blockquote p {
	font-family: var(--k-display);
	font-size: var(--k-size-lead);
	line-height: 1.5;
	color: var(--k-bone);
	margin: 0;
}

.k-founder-quote figcaption {
	margin-top: var(--k-space-4);
	padding-left: calc(var(--k-space-5) + 2px);
	font-family: var(--k-mono);
	font-size: var(--k-size-label);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--k-muted);
}


/* --- Store buttons -----------------------------------------------------
   Row treatment follows the GafferTips home page: even gap, each badge its own
   rounded link, a lift on hover, a visible focus ring.

   The artwork is Apple's and Google's OWN badge files. Both are already dark
   pills, so a redrawn lookalike would look identical while adding a trademark
   exposure — there is nothing to gain from one. */

.k-stores {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--k-space-4);
}

.k-store {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 3.5rem;
	border-radius: 10px;
	text-decoration: none;
	transition: transform 0.18s var(--k-ease), box-shadow 0.18s var(--k-ease),
		background-color 0.18s var(--k-ease);
}

/*
 * Focus ring drawn with outline and an offset, NOT a stacked box-shadow. A
 * two-colour box-shadow put a dark ring INSIDE the gold one, which on a gold
 * button read as a stray grey border.
 */
.k-store:focus-visible {
	outline: 3px solid var(--k-gold-soft);
	outline-offset: 3px;
}

/* --- Browser: the primary action, nothing to install ------------------- */

.k-store--web {
	padding: 0 1.75rem;
	background: var(--k-gold);
	color: #0f0d14;
	font-weight: 700;
	font-size: var(--k-size-small);
	letter-spacing: 0.01em;
	/*
	 * No border. A 1px gold border on a gold fill served no purpose and only
	 * added an edge that caught the eye as an artefact.
	 */
	border: 0;
	/* Never scale a TEXT button — scaling resamples the glyphs and the label
	   goes soft, which is why it got harder to read on hover, not easier. */
	will-change: transform;
}

.k-store--web:hover,
.k-store--web:focus-visible {
	background: var(--k-gold-soft);
	color: #0f0d14;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(200, 162, 74, 0.34);
}

/* --- Store badges ------------------------------------------------------ */

.k-store--badge {
	padding: 0;
	background: none;
	border: 0;
}

.k-store__badge {
	display: block;
	/* Height is what must match between badges; width follows the artwork's
	   own ratio. Equal heights, natural widths — which is also what Apple's
	   and Google's badge guidelines require. */
	height: 3.5rem;
	width: auto;
	max-width: none;
}

/* Images resample cleanly, so these can scale. */
.k-store--badge:hover,
.k-store--badge:focus-visible {
	transform: scale(1.04);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/*
 * A badge whose store URL is not set yet still renders, at full strength and
 * with no apologetic caption. The brief is that the badges are always visible;
 * it simply is not a link until there is somewhere for it to go.
 */
.k-store--badge[aria-disabled="true"] {
	cursor: default;
}

.k-store--badge[aria-disabled="true"]:hover {
	transform: none;
	box-shadow: none;
}

.k-stores--centred {
	justify-content: center;
}

/* --- Hero: text left, imagery right ------------------------------------- */

.k-hero__inner {
	max-width: none;
}

.k-hero__grid {
	display: grid;
	gap: var(--k-space-7);
	align-items: center;
}

@media (min-width: 960px) {
	.k-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
		gap: var(--k-space-8);
	}
}

.k-hero__copy {
	max-width: 34rem;
}

/* The laptop with a handset overlapping it — the product on two real devices,
   which is how anyone actually meets it. */
.k-hero__devices {
	position: relative;
	padding-bottom: 2rem;
}

.k-hero__devices .k-app-img--laptop {
	width: 100%;
	height: auto;
	display: block;
}

.k-hero__devices .k-app-img--phone {
	position: absolute;
	right: -1%;
	bottom: 0;
	width: 26%;
	height: auto;
	display: block;
}

@media (max-width: 599px) {
	/* The overlap is too fiddly at phone width; the handset alone is honest
	   and legible, and it is the device most visitors are holding. */
	.k-hero__devices .k-app-img--laptop {
		display: none;
	}

	.k-hero__devices .k-app-img--phone {
		position: static;
		width: 68%;
		margin: 0 auto;
	}
}

/* --- App imagery through the page --------------------------------------- */

.k-app-img {
	max-width: 100%;
	height: auto;
	display: block;
}

.k-app-img--flat {
	border: 1px solid var(--k-hairline);
	border-radius: var(--k-radius-lg);
}

.k-split-media {
	display: grid;
	gap: var(--k-space-7);
	align-items: center;
	margin: var(--k-space-8) 0;
}

@media (min-width: 900px) {
	.k-split-media {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	/* Alternate sides so a run of sections does not march down one edge. */
	.k-split-media:nth-of-type(even) .k-split-media__media {
		order: -1;
	}
}

.k-split-media__copy h3 {
	margin-top: 0;
}

/* --- Lightbox ----------------------------------------------------------- */

.k-lightbox-link {
	display: block;
	position: relative;
	border-radius: var(--k-radius-lg);
	overflow: hidden;
	cursor: zoom-in;
}

.k-lightbox-link:focus-visible {
	outline: none;
	box-shadow: var(--k-focus);
}

.k-lightbox-hint {
	position: absolute;
	right: var(--k-space-3);
	bottom: var(--k-space-3);
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: rgba(20, 18, 26, 0.82);
	color: var(--k-gold);
	font-family: var(--k-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.18s var(--k-ease), transform 0.18s var(--k-ease);
}

.k-lightbox-link:hover .k-lightbox-hint,
.k-lightbox-link:focus-visible .k-lightbox-hint {
	opacity: 1;
	transform: translateY(0);
}

.k-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	padding: var(--k-gutter);
	background: rgba(16, 14, 22, 0.94);
	backdrop-filter: blur(6px);
}

.k-lightbox[hidden] {
	display: none;
}

.k-lightbox img {
	max-width: min(100%, 1400px);
	max-height: 86vh;
	width: auto;
	height: auto;
	border-radius: var(--k-radius-lg);
	border: 1px solid var(--k-hairline);
}

.k-lightbox__caption {
	margin-top: var(--k-space-4);
	max-width: 60ch;
	text-align: center;
	color: var(--k-bone-dim);
	font-size: var(--k-size-small);
}

.k-lightbox__close {
	position: absolute;
	top: var(--k-space-5);
	right: var(--k-space-5);
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	border: 1px solid var(--k-hairline);
	background: var(--k-sumi);
	color: var(--k-bone);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.k-lightbox__close:hover {
	border-color: var(--k-gold);
	color: var(--k-gold);
}

/* --- Screens section, using the shipped handset frames ------------------- */

.k-shots--devices {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--k-space-7) var(--k-space-6);
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	align-items: start;
}

.k-shot--device {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.k-shot--device .k-app-img--phone {
	width: 100%;
	max-width: 15rem;
	height: auto;
}

.k-shot--device .k-shot__caption {
	margin-top: var(--k-space-4);
	max-width: 26ch;
	font-size: var(--k-size-small);
	color: var(--k-muted);
}

/* --- Page heroes (every page, not just home) ---------------------------- */

.k-page-hero__grid {
	display: grid;
	gap: var(--k-space-6);
	align-items: center;
}

@media (min-width: 900px) {
	.k-page-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
		gap: var(--k-space-8);
	}
}

.k-page-hero__copy h1 {
	margin-top: 0;
}

.k-page-hero__media--phone {
	max-width: 15rem;
	margin-inline: auto;
}

/* --- Lightbox: gallery navigation --------------------------------------- */

.k-lightbox__figure {
	margin: 0;
	display: grid;
	justify-items: center;
}

.k-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	border: 1px solid var(--k-hairline);
	background: var(--k-sumi);
	color: var(--k-bone);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.18s var(--k-ease), color 0.18s var(--k-ease);
}

.k-lightbox__nav:hover {
	border-color: var(--k-gold);
	color: var(--k-gold);
}

.k-lightbox__nav--prev { left: var(--k-space-5); }
.k-lightbox__nav--next { right: var(--k-space-5); }

@media (max-width: 599px) {
	.k-lightbox__nav {
		top: auto;
		bottom: var(--k-space-5);
		transform: none;
	}
}

/* Framed images get the zoom affordance too, not just the flat ones. */
.k-lightbox-link--device {
	cursor: zoom-in;
}

/* --- Imagery on the light sections -------------------------------------- */

.k-section--paper .k-app-img--flat {
	border-color: var(--k-paper-edge);
	box-shadow: 0 18px 40px rgba(36, 31, 51, 0.16);
}

.k-section--paper .k-lightbox-hint {
	background: rgba(36, 31, 51, 0.9);
}

/* --- Pull-quoted reviews ------------------------------------------------- */

.k-pullquote {
	margin: var(--k-space-8) auto;
	max-width: 44rem;
	text-align: center;
}

.k-pullquote__rating {
	margin: 0 0 var(--k-space-3);
	color: var(--k-gold);
	letter-spacing: 0.2em;
}

.k-pullquote blockquote {
	margin: 0;
	border: 0;
	padding: 0;
}

.k-pullquote blockquote p {
	font-family: var(--k-display);
	font-size: var(--k-size-lead);
	line-height: 1.5;
	color: var(--k-bone);
	margin: 0;
}

.k-pullquote figcaption {
	margin-top: var(--k-space-4);
	font-family: var(--k-mono);
	font-size: var(--k-size-label);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--k-muted);
}

.k-section--paper .k-pullquote blockquote p { color: var(--k-paper-ink); }
.k-section--paper .k-pullquote figcaption { color: var(--k-paper-dim); }

/* --- Mid-page call to action -------------------------------------------- */

.k-cta-band {
	margin: var(--k-space-8) 0;
	padding: var(--k-space-7);
	border: 1px solid var(--k-hairline);
	border-radius: var(--k-radius-lg);
	background: linear-gradient(180deg, rgba(200, 162, 74, 0.08), rgba(200, 162, 74, 0.02));
	text-align: center;
}

.k-cta-band__heading {
	margin: 0 0 var(--k-space-3);
	font-size: var(--k-size-h3);
}

.k-cta-band__note {
	margin: 0 auto var(--k-space-6);
	max-width: 46ch;
	color: var(--k-muted);
	font-size: var(--k-size-small);
}

.k-cta-band .k-stores {
	justify-content: center;
}

.k-section--paper .k-cta-band {
	border-color: var(--k-paper-edge);
	background: linear-gradient(180deg, rgba(200, 162, 74, 0.14), rgba(255, 255, 255, 0.6));
}

.k-section--paper .k-cta-band__note { color: var(--k-paper-dim); }


/* --- Device frames, drawn in CSS ----------------------------------------
   Wrapping a flat screenshot rather than baking the shell into the PNG, so a
   frame can be restyled without re-running the capture.

   Warm, not gunmetal: the shell picks up the brand's purple-black and a hint of
   gold on the edge, so it belongs to Kintsugi rather than looking like a stock
   product shot. Each device also sits at a slight angle — dead-on reads as a
   flat rectangle and defeats the point of a frame. */

.k-device {
	display: block;
	position: relative;
	margin-inline: auto;
	/* Perspective on the parent so the tilt has depth rather than skew. */
	perspective: 1600px;
}

.k-device__shell {
	display: block;
	position: relative;
	background: linear-gradient(155deg, #3a3352 0%, #241f33 46%, #14121a 100%);
	border: 1px solid rgba(200, 162, 74, 0.22);
	box-shadow:
		0 2px 0 rgba(233, 228, 242, 0.06) inset,
		0 40px 70px -30px rgba(0, 0, 0, 0.8),
		0 12px 30px -12px rgba(0, 0, 0, 0.6);
}

.k-device__viewport {
	display: block;
	overflow: hidden;
	background: var(--k-ink);
}

.k-device__screen {
	display: block;
	width: 100%;
	height: auto;
	/* The captures are a dark UI on a dark ground; a touch more light and
	   contrast keeps them legible once shrunk into a frame. */
	filter: brightness(1.14) contrast(1.05) saturate(1.04);
}

.k-device__notch {
	display: block;
	position: absolute;
	z-index: 2;
}

/* --- Laptop ------------------------------------------------------------- */

.k-device--laptop {
	width: 100%;
	max-width: 40rem;
	transform: rotateY(-7deg) rotateX(2deg);
	transform-style: preserve-3d;
	transition: transform 0.4s var(--k-ease);
}

.k-lightbox-link:hover .k-device--laptop {
	transform: rotateY(-3deg) rotateX(1deg);
}

.k-device--laptop .k-device__shell {
	border-radius: 14px 14px 4px 4px;
	padding: 0.85rem 0.85rem 1.1rem;
}

.k-device--laptop .k-device__viewport {
	border-radius: 6px;
}

/* Camera dot above the screen. */
.k-device--laptop .k-device__notch {
	top: 0.35rem;
	left: 50%;
	transform: translateX(-50%);
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(233, 228, 242, 0.28);
}

/* The base: a shallow lip wider than the lid, with the hinge notch. */
.k-device--laptop .k-device__base {
	display: block;
	position: relative;
	width: 112%;
	height: 0.85rem;
	margin: -1px auto 0;
	border-radius: 0 0 12px 12px;
	background: linear-gradient(180deg, #3a3352, #241f33);
	box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.8);
}

.k-device--laptop .k-device__base::after {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 5.5rem;
	height: 3px;
	border-radius: 0 0 4px 4px;
	background: rgba(20, 18, 26, 0.85);
}


/* --- Handset ------------------------------------------------------------ */

.k-device--phone {
	width: 100%;
	max-width: 15rem;
	transform: rotateY(6deg) rotateX(1deg);
	transform-style: preserve-3d;
	transition: transform 0.4s var(--k-ease);
}

.k-lightbox-link:hover .k-device--phone {
	transform: rotateY(2deg);
}

.k-device--phone .k-device__shell {
	border-radius: 2.25rem;
	padding: 0.55rem;
}

.k-device--phone .k-device__viewport {
	border-radius: 1.8rem;
}

.k-device--phone .k-device__notch {
	top: 0.55rem;
	left: 50%;
	transform: translateX(-50%);
	width: 4.5rem;
	height: 1.05rem;
	border-radius: 0 0 0.85rem 0.85rem;
	background: #14121a;
}

.k-device--phone .k-device__base {
	display: none;
}

/* --- Monitor ------------------------------------------------------------ */

.k-device--monitor {
	width: 100%;
	max-width: 44rem;
	transform: rotateY(-4deg);
	transform-style: preserve-3d;
}

.k-device--monitor .k-device__shell {
	border-radius: 10px;
	padding: 1rem 1rem 1.6rem;
}

.k-device--monitor .k-device__viewport {
	border-radius: 4px;
}

.k-device--monitor .k-device__notch {
	bottom: 0.5rem;
	left: 50%;
	transform: translateX(-50%);
	width: 3rem;
	height: 3px;
	border-radius: 2px;
	background: rgba(200, 162, 74, 0.55);
}

/* Stand: a neck and a foot, so it reads as a desk monitor. */
.k-device--monitor .k-device__base {
	display: block;
	position: relative;
	width: 6rem;
	height: 2.6rem;
	margin: 0 auto;
	background: linear-gradient(180deg, #3a3352, #241f33);
	clip-path: polygon(38% 0, 62% 0, 74% 100%, 26% 100%);
}

.k-device--monitor .k-device__base::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 13rem;
	height: 0.55rem;
	border-radius: 0.3rem;
	background: linear-gradient(180deg, #3a3352, #1c1926);
	box-shadow: 0 16px 26px -14px rgba(0, 0, 0, 0.8);
}

/* Motion off means motion off — the tilt is decoration, not information. */
@media (prefers-reduced-motion: reduce) {
	.k-device--laptop,
	.k-device--phone,
	.k-device--monitor {
		transform: none;
		transition: none;
	}
}

/* Flat screenshots get the same lift in brightness. */
.k-app-img--flat {
	filter: brightness(1.12) contrast(1.04);
}

/* On the light sections the frame needs a rim to sit against the paper. */
.k-section--paper .k-device__shell {
	border-color: rgba(36, 31, 51, 0.18);
	box-shadow:
		0 2px 0 rgba(255, 255, 255, 0.12) inset,
		0 30px 60px -28px rgba(36, 31, 51, 0.45);
}

/* A badge with no URL yet renders as a span. Identical to look at — no
   dimming, no dashed border, no "coming soon". It becomes a link the moment
   the URL is filled in, with no visual change. */
span.k-store--badge {
	cursor: default;
}

/* The web button's label is text, not a control. It inherited a border AND a
   pale bone colour from the generic button rules, which drew a grey box inside
   the gold button and left the text almost unreadable — worse on hover, where
   only the border changed. Colour is inherited from the button explicitly so
   nothing upstream can pale it out again. */
.k-store__label {
	border: 0;
	background: none;
	padding: 0;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	box-shadow: none;
}

/* Dark ink on gold, at both rest and hover. Stated on the label as well as the
   button, because a descendant rule was overriding the button's colour. */
.k-store--web,
.k-store--web:hover,
.k-store--web:focus-visible,
.k-store--web .k-store__label,
.k-store--web:hover .k-store__label {
	color: #14121a;
	font-weight: 600;
}
