/* ════════════════════════════════════════════════════════════════════════════ */
/* ── Sulata Note landing page — tokens, themes, layout, animation ──────────── */
/* ── Pure CSS. No frameworks, no fonts fetched, no external assets. ────────── */
/* ════════════════════════════════════════════════════════════════════════════ */

/* ── Brand tokens (light theme — default) ──────────────────────────────────── */
:root {
	--mustard:        #F5C842;
	--accent:         #E0B230;
	--accent-hover:   #C89A1E;
	--accent-soft:    #FDF3C0;
	--bg:             #FBFAF6;
	--surface:        #FFFFFF;
	--text-primary:   #23221E;
	--text-secondary: #6B675E;
	--border:         #EAE6DA;

	/* Derived tokens (light) */
	--accent-contrast: #2C2C2C;
	--border-strong:   #DCD6C6;
	--text-muted:      #9A958A;
	--focus-ring:      #C89A1E;
	--max-border:      #C3B1E1;
	--success-dark:    #2E7D32;
	--success-soft:    #E8F5E9;

	--radius-sm:   9px;
	--radius-md:   14px;
	--radius-lg:   20px;
	--radius-pill: 999px;

	--shadow-xs: 0 1px 2px rgba(30, 28, 22, 0.05);
	--shadow-sm: 0 2px 8px rgba(30, 28, 22, 0.07);
	--shadow-md: 0 8px 28px rgba(30, 28, 22, 0.12);

	--transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);

	--font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
	        'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--font-mono: 'SF Mono', ui-monospace, 'Cascadia Code', 'Courier New', monospace;
}

/* ── Dark theme — system preference only, no toggle ────────────────────────── */
@media (prefers-color-scheme: dark) {
	:root {
		--bg:             #17161A;
		--surface:        #222127;
		--accent:         #F5C842;
		--accent-hover:   #FFD75E;
		--accent-soft:    #37300F;
		--text-primary:   #ECE7DA;
		--text-secondary: #A8A296;
		--border:         #33323B;

		/* Derived tokens (dark) */
		--accent-contrast: #1A1A1A;
		--border-strong:   #3E3D48;
		--text-muted:      #726D63;
		--focus-ring:      #F5C842;
		--max-border:      #6B5A8A;
		--success-dark:    #81C784;
		--success-soft:    #1F2E24;

		--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
		--shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.45);
		--shadow-md: 0 8px 30px rgba(0, 0, 0, 0.55);
	}
}

/* ── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}

body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--text-primary);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
a { color: var(--accent-hover); }

/* ── Accessibility ─────────────────────────────────────────────────────────── */
.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	background: var(--accent);
	color: var(--accent-contrast);
	padding: 12px 20px;
	font-weight: 700;
	font-size: 0.9rem;
	border-radius: 0 0 var(--radius-sm) 0;
	z-index: 9999;
	text-decoration: none;
	transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

*:focus-visible {
	outline: 2px solid var(--focus-ring);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

.section { padding: 96px 0; }
.section-alt {
	background: var(--surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.kicker {
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--accent-hover);
	margin-bottom: 12px;
}

.section-title {
	font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.6px;
	line-height: 1.15;
	color: var(--text-primary);
	margin-bottom: 18px;
	max-width: 720px;
}

.section-lead {
	font-size: 1.08rem;
	color: var(--text-secondary);
	line-height: 1.75;
	max-width: 680px;
	margin-bottom: 28px;
}

.prose { max-width: 720px; }
.prose p {
	color: var(--text-secondary);
	font-size: 1.05rem;
	line-height: 1.8;
	margin-bottom: 18px;
}
.prose p strong, .prose p em { color: var(--text-primary); }

.text-link {
	color: var(--accent-hover);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.text-link:hover { color: var(--text-primary); }

/* ── Buttons (≥44px touch targets) ─────────────────────────────────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 13px 26px;
	border-radius: var(--radius-sm);
	font-family: var(--font);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: var(--transition);
	border: 1.5px solid transparent;
	line-height: 1.2;
}

.btn-primary {
	background: var(--accent);
	color: var(--accent-contrast);
	box-shadow: var(--shadow-xs);
}
.btn-primary:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
	box-shadow: var(--shadow-sm);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
	background: var(--surface);
	color: var(--text-primary);
	border-color: var(--border);
}
.btn-secondary:hover { background: var(--accent-soft); border-color: var(--accent); }

.btn-max {
	background: linear-gradient(135deg, #C3B1E1 0%, #A7C7E7 50%, #A8D5B5 100%);
	color: #2C2C2C;
	box-shadow: var(--shadow-xs);
}
.btn-max:hover { filter: brightness(0.95); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-block { display: flex; width: 100%; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, #000 10%, #fff)) {
	.site-header { background: var(--bg); }
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 68px;
	flex-wrap: wrap;
	padding-top: 8px;
	padding-bottom: 8px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	min-height: 44px;
}

/* Placeholder logo slot — mustard brand background per the app icon. */
.brand-logo {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--mustard);
	color: #4A3200;
	font-weight: 800;
	font-size: 1.05rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-xs);
	flex-shrink: 0;
}

.brand-name {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.3px;
	color: var(--text-primary);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-wrap: wrap;
}
.site-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 13px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-secondary);
	text-decoration: none;
	border-radius: var(--radius-sm);
	transition: var(--transition);
}
.site-nav a:hover { color: var(--text-primary); background: var(--accent-soft); }
.site-nav .nav-cta {
	color: var(--accent-contrast);
	background: var(--accent);
	margin-left: 6px;
}
.site-nav .nav-cta:hover { background: var(--accent-hover); color: var(--accent-contrast); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 64px; overflow: hidden; }

.hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 48px;
	align-items: center;
}

.hero-eyebrow {
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--accent-hover);
	margin-bottom: 14px;
}

.hero h1 {
	font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4rem);
	font-weight: 800;
	letter-spacing: -1.4px;
	line-height: 1.05;
	color: var(--text-primary);
	margin-bottom: 20px;
}

.hero-sub {
	font-size: 1.12rem;
	color: var(--text-secondary);
	line-height: 1.75;
	max-width: 520px;
	margin-bottom: 30px;
}

.hero-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.hero-truth {
	font-size: 0.84rem;
	color: var(--text-muted);
	font-weight: 600;
}

.hero-visual { display: flex; justify-content: center; }
.hero-svg { width: min(320px, 72vw); height: auto; }
.hv-halo      { fill: var(--accent-soft); }
.hv-ring      { fill: none; stroke: var(--accent); stroke-width: 6; }
.hv-tick      { fill: var(--accent); }
.hv-door      { fill: var(--surface); }
.hv-door-line { fill: none; stroke: var(--border-strong); stroke-width: 2; }
.hv-shackle   { fill: none; stroke: var(--text-primary); stroke-width: 7; stroke-linecap: round; }
.hv-lock      { fill: var(--accent); }
.hv-keyhole   { fill: var(--accent-contrast); }

/* Progressive enhancement only: the vault ring turns slowly with page scroll.
   Static rendered state is the default; reduced-motion kills it below. */
@supports (animation-timeline: scroll()) {
	.hv-ring-group {
		transform-origin: 120px 120px;
		animation: hero-ring-spin linear both;
		animation-timeline: scroll();
	}
	@keyframes hero-ring-spin {
		to { transform: rotate(40deg); }
	}
}

/* Hero entrance animation (CSS only; disabled under reduced motion) */
.hero-anim {
	opacity: 0;
	transform: translateY(14px);
	animation: hero-pop 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}
.hero-anim.d1 { animation-delay: 0ms; }
.hero-anim.d2 { animation-delay: 90ms; }
.hero-anim.d3 { animation-delay: 180ms; }
.hero-anim.d4 { animation-delay: 280ms; }
.hero-anim.d5 { animation-delay: 380ms; }
@keyframes hero-pop {
	to { opacity: 1; transform: translateY(0); }
}

/* ── Screenshot placeholder frames ─────────────────────────────────────────── */
.shot { margin: 40px 0 0; }
.shot-frame {
	min-height: 260px;
	border: 2px dashed var(--border-strong);
	border-radius: var(--radius-lg);
	background:
		linear-gradient(180deg, var(--accent-soft), transparent 70%),
		var(--surface);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-xs);
}
.shot-label {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--text-muted);
	letter-spacing: 0.02em;
}

/* ── Vault ─────────────────────────────────────────────────────────────────── */
.vault-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-bottom: 22px;
}

.fact-card {
	background: var(--surface);
	border: 1.5px solid var(--border);
	border-radius: var(--radius-md);
	padding: 22px;
	box-shadow: var(--shadow-xs);
}
.section-alt .fact-card { background: var(--bg); }

.fact-title {
	font-size: 1.02rem;
	font-weight: 800;
	color: var(--text-primary);
	margin-bottom: 12px;
	letter-spacing: -0.2px;
}

.lock-list { list-style: none; }
.lock-list li {
	position: relative;
	padding: 6px 0 6px 26px;
	font-size: 0.94rem;
	color: var(--text-secondary);
	line-height: 1.55;
}
.lock-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 12px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--accent-soft);
	box-shadow: inset 0 0 0 2px var(--accent);
}
.lock-list li::after {
	content: '';
	position: absolute;
	left: 4.5px;
	top: 15.5px;
	width: 5px;
	height: 3px;
	border-left: 2px solid var(--accent-hover);
	border-bottom: 2px solid var(--accent-hover);
	transform: rotate(-45deg);
}

.how-it-works {
	background: var(--bg);
	border: 1.5px solid var(--accent);
	border-radius: var(--radius-md);
	padding: 24px 26px;
	box-shadow: var(--shadow-xs);
	margin-bottom: 8px;
}
.section-alt .how-it-works { background: var(--surface); }

.how-heading {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--text-primary);
	margin-bottom: 14px;
	letter-spacing: -0.2px;
}
.how-sub {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-secondary);
	letter-spacing: 0;
}

.how-list { list-style: none; }
.how-list li {
	position: relative;
	padding: 7px 0 7px 30px;
	font-size: 0.94rem;
	color: var(--text-secondary);
	line-height: 1.65;
}
.how-list li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 13px;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--accent);
	transform: rotate(45deg);
}

.vault-side { margin-top: 22px; }
.vault-cta-line {
	font-size: 0.95rem;
	color: var(--text-secondary);
	margin-top: 16px;
}

/* ── Transfer ──────────────────────────────────────────────────────────────── */
.steps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 34px;
}
.step {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: var(--surface);
	border: 1.5px solid var(--border);
	border-radius: var(--radius-md);
	padding: 18px;
	font-size: 0.92rem;
	color: var(--text-secondary);
	line-height: 1.6;
	box-shadow: var(--shadow-xs);
}
.step strong { color: var(--text-primary); }
.step-num {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accent-contrast);
	font-weight: 800;
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ── QR demo (re-skinned standalone from the app's pure-CSS demo) ──────────── */
.qr-demo {
	background: var(--bg);
	border: 1.5px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 26px 22px 22px;
	box-shadow: var(--shadow-xs);
}
.qr-demo-row {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 14px;
	flex-wrap: nowrap;
}
.qr-demo-device {
	flex: 1 1 0;
	min-width: 0;
	background: var(--surface);
	border: 1.5px solid var(--border);
	border-radius: var(--radius-md);
	padding: 16px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	text-align: center;
}
.qr-demo-device-label { font-size: 0.78rem; font-weight: 700; color: var(--text-primary); }
.qr-demo-lock {
	color: var(--accent-hover);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--accent-soft);
	animation: qr-lock-glow 2.4s ease-in-out infinite alternate;
}
@keyframes qr-lock-glow {
	from { box-shadow: 0 0 0 0 rgba(224, 178, 48, 0); }
	to   { box-shadow: 0 0 12px 3px rgba(224, 178, 48, 0.5); }
}
.qr-demo-square {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 3px;
	width: 56px;
	height: 56px;
	padding: 5px;
	background: var(--surface);
	border: 2px solid var(--accent-hover);
	border-radius: 6px;
	animation: qr-square-pulse 2s ease-in-out infinite;
}
.qr-demo-square-cell { background: var(--text-primary); border-radius: 1px; }
.qr-demo-square-cell:nth-child(2),
.qr-demo-square-cell:nth-child(4),
.qr-demo-square-cell:nth-child(6),
.qr-demo-square-cell:nth-child(8) { background: transparent; }
@keyframes qr-square-pulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.06); }
}
.qr-demo-chips { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.qr-demo-chip {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--text-primary);
	background: var(--accent-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	padding: 3px 10px;
	animation: qr-chip-highlight 3s ease-in-out infinite;
}
.qr-demo-chip:nth-child(1) { animation-delay: 0s; }
.qr-demo-chip:nth-child(2) { animation-delay: 0.5s; }
.qr-demo-chip:nth-child(3) { animation-delay: 1s; }
@keyframes qr-chip-highlight {
	0%, 60%, 100% { background: var(--accent-soft); }
	20%, 40%      { background: var(--accent); border-color: var(--accent-hover); color: var(--accent-contrast); }
}
.qr-demo-relay {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 86px;
	padding: 0 4px;
}
.qr-demo-track {
	position: relative;
	width: 72px;
	height: 3px;
	background: var(--border);
	border-radius: 3px;
}
.qr-demo-dot {
	position: absolute;
	top: 50%;
	left: 0;
	width: 9px;
	height: 9px;
	margin-top: -4.5px;
	border-radius: 50%;
	background: var(--accent-hover);
	animation: qr-dot-travel 2.6s ease-in-out infinite;
}
@keyframes qr-dot-travel {
	0%   { left: 0; opacity: 0.2; }
	15%  { opacity: 1; }
	85%  { opacity: 1; }
	100% { left: calc(100% - 9px); opacity: 0.2; }
}
.qr-demo-cloud { color: var(--text-muted); display: inline-flex; }
.qr-demo-cloud-label {
	font-size: 0.66rem;
	font-weight: 600;
	color: var(--text-muted);
	text-align: center;
	line-height: 1.3;
}
.qr-demo-check {
	color: var(--success-dark);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--success-soft);
}
.qr-demo-receive-note { font-size: 0.74rem; color: var(--text-secondary); line-height: 1.4; }
.qr-demo-caption {
	font-size: 0.95rem;
	color: var(--text-secondary);
	text-align: center;
	line-height: 1.7;
	margin: 20px auto 0;
	max-width: 640px;
}
.qr-demo-caption em { color: var(--text-primary); font-style: normal; font-weight: 700; }

/* ── Features ──────────────────────────────────────────────────────────────── */
.features-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
.feature-card {
	background: var(--bg);
	border: 1.5px solid var(--border);
	border-radius: var(--radius-md);
	padding: 24px;
	box-shadow: var(--shadow-xs);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: var(--radius-md);
	background: var(--accent-soft);
	color: var(--accent-hover);
	margin-bottom: 14px;
}
.feature-title {
	font-size: 1.02rem;
	font-weight: 800;
	color: var(--text-primary);
	margin-bottom: 8px;
	letter-spacing: -0.2px;
}
.feature-body { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65; }

/* Mini table demo (re-skinned, scaled-down: final grid 3×3) */
.td-mini {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--border);
}
.td-mini-grid {
	display: grid;
	grid-template-columns: repeat(3, 34px);
	grid-template-rows: repeat(3, 22px);
	gap: 3px;
	padding: 7px;
	background: var(--surface);
	border: 1.5px solid var(--border-strong);
	border-radius: var(--radius-sm);
}
.tdm {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 2px;
}
.tdm-head { background: var(--accent-soft); border-color: var(--accent); }
.tdm-fill { animation: tdm-fill 3.2s ease-in-out infinite; }
@keyframes tdm-fill {
	0%, 26%, 52%, 100% { background: var(--bg); box-shadow: none; }
	32%, 46%           { background: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
}
.tdm-new-col {
	transform-origin: left center;
	animation: tdm-col-in 3.2s ease-in-out infinite;
}
@keyframes tdm-col-in {
	0%, 4%    { transform: scaleX(0.05); opacity: 0; }
	24%, 100% { transform: scaleX(1); opacity: 1; }
}
.tdm-new-row {
	transform-origin: center top;
	animation: tdm-row-in 3.2s ease-in-out infinite;
}
@keyframes tdm-row-in {
	0%, 56%   { transform: scaleY(0.05); opacity: 0; }
	78%, 100% { transform: scaleY(1); opacity: 1; }
}
.tdm-corner {
	transform-origin: left top;
	animation: tdm-corner-in 3.2s ease-in-out infinite;
}
@keyframes tdm-corner-in {
	0%, 56%   { transform: scale(0.05); opacity: 0; }
	78%, 100% { transform: scale(1); opacity: 1; }
}
.td-mini-chips { display: flex; flex-direction: column; gap: 6px; }
.td-mini-chip {
	font-family: var(--font-mono);
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--text-secondary);
	background: var(--surface);
	border: 1.5px solid var(--border);
	border-radius: var(--radius-pill);
	padding: 3px 12px;
	text-align: center;
}
.tdmchip-col  { animation: tdm-chip-col 3.2s ease-in-out infinite; }
.tdmchip-cell { animation: tdm-chip-cell 3.2s ease-in-out infinite; }
.tdmchip-row  { animation: tdm-chip-row 3.2s ease-in-out infinite; }
@keyframes tdm-chip-col {
	0%, 2%, 26%, 100% { background: var(--surface); color: var(--text-secondary); border-color: var(--border); }
	6%, 22%           { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent-hover); }
}
@keyframes tdm-chip-cell {
	0%, 26%, 52%, 100% { background: var(--surface); color: var(--text-secondary); border-color: var(--border); }
	32%, 46%           { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent-hover); }
}
@keyframes tdm-chip-row {
	0%, 54%, 80%, 100% { background: var(--surface); color: var(--text-secondary); border-color: var(--border); }
	58%, 76%           { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent-hover); }
}

/* ── Pricing ───────────────────────────────────────────────────────────────── */
.pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-bottom: 22px;
}
.price-col {
	display: flex;
	flex-direction: column;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--surface);
	box-shadow: var(--shadow-xs);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.price-col:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.price-featured {
	border-color: var(--accent-hover);
	box-shadow: 0 0 0 2px var(--accent), var(--shadow-sm);
}
.price-max { border-color: var(--max-border); }

.price-badge {
	background: var(--accent);
	color: var(--accent-contrast);
	font-size: 0.66rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	text-align: center;
	padding: 6px 0;
}
.price-badge-max {
	background: linear-gradient(90deg, #C3B1E1, #A7C7E7, #A8D5B5);
	color: #2C2C2C;
}

.price-head {
	padding: 22px 20px 16px;
	border-bottom: 1px solid var(--border);
	background: var(--bg);
}
.price-name { font-size: 0.95rem; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.price-amount {
	font-size: 2rem;
	font-weight: 800;
	color: var(--text-primary);
	letter-spacing: -1px;
	line-height: 1;
	margin-bottom: 6px;
}
.price-note { font-size: 0.76rem; color: var(--text-secondary); line-height: 1.4; }

.feature-list { list-style: none; padding: 16px 20px; flex: 1; }
.feature-list li {
	position: relative;
	font-size: 0.84rem;
	color: var(--text-secondary);
	padding: 6px 0 6px 22px;
	line-height: 1.45;
}
.feature-list li::before { position: absolute; left: 0; top: 6px; font-size: 0.8rem; line-height: 1.45; }
.feat-yes { color: var(--text-primary); }
.feat-yes::before { content: '✓'; color: var(--success-dark); font-weight: 700; }
.feat-no { opacity: 0.5; }
.feat-no::before { content: '—'; color: var(--text-muted); }

.price-cta { padding: 16px 20px 20px; margin-top: auto; }
.cta-note {
	text-align: center;
	font-size: 0.7rem;
	color: var(--text-muted);
	margin-top: 8px;
	line-height: 1.4;
}

.guarantee {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 0.92rem;
	color: var(--text-secondary);
	background: var(--surface);
	border: 1.5px solid var(--border);
	border-radius: var(--radius-md);
	padding: 16px 18px;
	line-height: 1.6;
	box-shadow: var(--shadow-xs);
}
.guarantee strong { color: var(--text-primary); }
.guarantee-icon { flex-shrink: 0; font-size: 1.1rem; }

/* ── Story ─────────────────────────────────────────────────────────────────── */
.story-card {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	background: var(--bg);
	border: 1.5px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 48px 40px;
	box-shadow: var(--shadow-sm);
}
.story-card .section-title { margin-left: auto; margin-right: auto; }
.story-card p {
	color: var(--text-secondary);
	font-size: 1.06rem;
	line-height: 1.8;
	margin-bottom: 18px;
}
.story-card .hero-actions { justify-content: center; margin-top: 26px; margin-bottom: 0; }

/* ── Legal ─────────────────────────────────────────────────────────────────── */
.legal { padding-top: 72px; }
.legal-block {
	max-width: 760px;
	margin-bottom: 40px;
	background: var(--surface);
	border: 1.5px solid var(--border);
	border-radius: var(--radius-md);
	padding: 30px 34px;
}
.legal-title {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--text-primary);
	letter-spacing: -0.3px;
	margin-bottom: 4px;
}
.legal-effective {
	font-size: 0.78rem;
	color: var(--text-muted);
	margin-bottom: 20px;
}
.legal-block h4 {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 20px 0 8px;
}
.legal-block p {
	font-size: 0.88rem;
	color: var(--text-secondary);
	line-height: 1.75;
	margin-bottom: 8px;
}
.legal-block ul {
	font-size: 0.88rem;
	color: var(--text-secondary);
	line-height: 1.75;
	padding-left: 22px;
	margin: 6px 0 10px;
}
.legal-block li { margin-bottom: 5px; }
.legal-block strong { color: var(--text-primary); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
	border-top: 1px solid var(--border);
	background: var(--surface);
	padding: 40px 0 48px;
}
.site-footer-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}
.footer-nav {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	justify-content: center;
}
.footer-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 13px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--text-secondary);
	text-decoration: none;
	border-radius: var(--radius-sm);
	transition: var(--transition);
}
.footer-nav a:hover { color: var(--text-primary); background: var(--accent-soft); }
.footer-truth {
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--accent-hover);
}
.footer-line { font-size: 0.8rem; color: var(--text-muted); }

/* ── Scroll reveals (JS-enhanced only; fully visible by default) ───────────── */
/* The default state is the FINAL, fully visible state, so the page is 100%    */
/* readable with JavaScript disabled. main.js adds the .js-anim class (only    */
/* when motion is allowed and IntersectionObserver exists), which opts each    */
/* .reveal element into a hidden start state that resolves on intersection.    */
html.js-anim .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js-anim .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.hero-inner { grid-template-columns: 1fr; gap: 32px; }
	.hero-visual { order: -1; }
	.hero-svg { width: min(220px, 56vw); }
	.steps { grid-template-columns: 1fr; }
	.pricing-grid { grid-template-columns: 1fr; }
	.vault-grid { grid-template-columns: 1fr; }
	.features-grid { grid-template-columns: 1fr; }
	.qr-demo-row { flex-wrap: wrap; }
	.qr-demo-device { flex: 1 1 100%; }
	.qr-demo-relay {
		flex: 1 1 100%;
		flex-direction: row;
		justify-content: center;
		gap: 10px;
		min-width: 0;
		padding: 4px 0;
	}
	.qr-demo-track { width: 50px; }
}

@media (max-width: 640px) {
	.section { padding: 64px 0; }
	.hero { padding: 56px 0 48px; }
	.container { padding: 0 18px; }
	.story-card { padding: 36px 22px; }
	.legal-block { padding: 22px 20px; }
	.btn { width: 100%; }
	.hero-actions .btn { width: 100%; }
	.site-nav .nav-cta { margin-left: 0; }
}

/* ── Reduced motion: ALL animation disabled, instant fully visible end states ─ */
@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;
	}

	.hero-anim {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}

	html.js-anim .reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.hv-ring-group { animation: none !important; transform: none !important; }

	.qr-demo-lock, .qr-demo-square, .qr-demo-chip, .qr-demo-dot { animation: none !important; }
	.qr-demo-dot { left: 50%; margin-left: -4.5px; opacity: 1; }

	.tdm-fill, .tdm-new-col, .tdm-new-row, .tdm-corner,
	.tdmchip-col, .tdmchip-cell, .tdmchip-row {
		animation: none !important;
		transform: none !important;
		opacity: 1 !important;
	}

	.feature-card, .price-col { transition: none !important; }
	.feature-card:hover, .price-col:hover { transform: none !important; }
}