/* ═══════════════════════════════════════════════════════
   Wrist Assistant home page
   True black, system type, product first. Only index.html
   loads this file; the other pages still use styles.css.
   ═══════════════════════════════════════════════════════ */

:root {
	color-scheme: dark;
	--bg: #000;
	--bg-raised: #0c0c0e;
	--text: #f5f5f7;
	--text-2: #a1a1a6;
	--text-3: #6e6e73;
	--hairline: rgba(255, 255, 255, 0.12);
	--hairline-soft: rgba(255, 255, 255, 0.07);
	--accent: #2dd4bf;
	--font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
		"Helvetica Neue", "Inter", system-ui, sans-serif;
	--max-w: 1120px;
	--copy-w: 640px;
	--section: 160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 6px;
}

.wrap {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 24px;
}

.text-link {
	color: var(--accent);
	font-weight: 500;
}
.text-link:hover { text-decoration: underline; }

/* ── Header ────────────────────────────────────────── */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: 52px;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: saturate(1.8) blur(20px);
	-webkit-backdrop-filter: saturate(1.8) blur(20px);
	border-bottom: 1px solid var(--hairline-soft);
}

.header-inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 32px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.brand img { width: 24px; height: 24px; border-radius: 6px; }

.site-nav {
	display: flex;
	gap: 28px;
	margin-left: auto;
	font-size: 13px;
	color: var(--text-2);
}
.site-nav a:hover { color: var(--text); }

.nav-cta {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--text);
	color: #000;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.nav-cta:hover { background: #fff; }

/* ── Hero ──────────────────────────────────────────── */

.hero {
	padding: 120px 24px 0;
	text-align: center;
}

.hero h1 {
	font-size: clamp(44px, 7.2vw, 88px);
	line-height: 1.02;
	letter-spacing: -0.03em;
	max-width: 12ch;
	margin: 0 auto;
}

.hero-sub {
	max-width: 560px;
	margin: 28px auto 0;
	font-size: clamp(19px, 2vw, 23px);
	line-height: 1.4;
	color: var(--text-2);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 20px 28px;
	margin-top: 36px;
}

.app-store-badge img { height: 48px; width: auto; }
.app-store-badge:hover { opacity: 0.9; }

.install-qr {
	display: none;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	line-height: 1.35;
	color: var(--text-3);
	text-align: left;
}
.install-qr img {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	background: #fff;
}

.install-ios, .install-desktop { display: none; }
html.is-ios .install-ios { display: inline-flex; }
html.is-desktop .install-desktop { display: inline-flex; }
html.is-desktop .install-qr { display: inline-flex; }
html:not(.is-ios):not(.is-desktop) .install-ios { display: inline-flex; }

.hero-device {
	display: flex;
	justify-content: center;
	margin-top: 88px;
}

/* ── Device frames ─────────────────────────────────── */

/* A watch case drawn in CSS. --w is the case width; the screen keeps the
   416 x 496 ratio of the real screenshots and videos. */
.watch {
	--w: 320px;
	position: relative;
	width: var(--w);
	padding: calc(var(--w) * 0.075);
	border-radius: calc(var(--w) * 0.29);
	background: linear-gradient(160deg, #3b3b40 0%, #1d1d21 45%, #0f0f12 100%);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.10),
		inset 0 calc(var(--w) * 0.006) calc(var(--w) * 0.02) rgba(255, 255, 255, 0.10),
		0 calc(var(--w) * 0.12) calc(var(--w) * 0.25) rgba(0, 0, 0, 0.7);
	flex-shrink: 0;
}
.watch-screen {
	position: relative;
	aspect-ratio: 416 / 496;
	border-radius: calc(var(--w) * 0.22);
	overflow: hidden;
	background: #000;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.9);
}
.watch-screen img,
.watch-screen video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.watch-crown,
.watch-button {
	position: absolute;
	right: calc(var(--w) * -0.045);
	width: calc(var(--w) * 0.06);
	border-radius: calc(var(--w) * 0.02);
	background: linear-gradient(90deg, #2a2a2e, #48484e 60%, #232326);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	z-index: -1;
}
.watch-crown {
	top: 24%;
	height: 17%;
	background-image: repeating-linear-gradient(
		180deg,
		#4a4a50 0 2px,
		#2a2a2e 2px 4px
	);
}
.watch-button {
	top: 47%;
	height: 24%;
}

/* A phone frame around the 1206 x 2622 iPhone screenshots. */
.phone {
	--w: 280px;
	width: var(--w);
	padding: calc(var(--w) * 0.035);
	border-radius: calc(var(--w) * 0.19);
	background: linear-gradient(160deg, #2c2c30, #131316 60%, #0b0b0d);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.10),
		0 calc(var(--w) * 0.12) calc(var(--w) * 0.3) rgba(0, 0, 0, 0.7);
	flex-shrink: 0;
}
.phone img {
	width: 100%;
	height: auto;
	border-radius: calc(var(--w) * 0.155);
}

/* ── Sections ──────────────────────────────────────── */

.section {
	padding: var(--section) 24px 0;
}

.section-head {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}
.section-head h2 {
	font-size: clamp(32px, 4.6vw, 56px);
	line-height: 1.06;
}
.section-head p {
	margin-top: 18px;
	font-size: 19px;
	color: var(--text-2);
}

/* Three watches, the middle one a step larger */
.watch-trio {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 40px;
	margin-top: 72px;
	padding: 8px 24px 24px;
	overflow-x: auto;
	scrollbar-width: none;
}
.watch-trio::-webkit-scrollbar { display: none; }
.watch-trio .watch { --w: 240px; }
.watch-trio .watch-lead { --w: 300px; }

/* Full-width feature (the complication editor) */
.feature-wide {
	max-width: var(--max-w);
	margin: var(--section) auto 0;
	padding: 0 24px;
}
.feature-wide .section-head .eyebrow {
	display: block;
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent);
}
.editor-stage {
	position: relative;
	margin-top: 56px;
	padding: 0 140px 48px 0;
}
.editor-stage .browser { margin-top: 0; }
.editor-stage .watch {
	--w: 300px;
	position: absolute;
	right: 0;
	bottom: 0;
}
.browser {
	margin-top: 56px;
	border-radius: 14px;
	overflow: hidden;
	background: #101014;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.10),
		0 40px 80px rgba(0, 0, 0, 0.6);
}
.browser-bar {
	display: flex;
	gap: 7px;
	padding: 12px 14px;
	background: #1a1a1f;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.browser-bar span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #3a3a40;
}
.browser img { width: 100%; height: auto; }

/* Row of watches */
.controls-row {
	display: flex;
	justify-content: center;
	gap: 28px;
	margin-top: 72px;
	padding: 8px 24px 24px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.controls-row::-webkit-scrollbar { display: none; }
.controls-row .watch { --w: 190px; }

.caption {
	margin-top: 24px;
	text-align: center;
	font-size: 15px;
	color: var(--text-3);
}

/* Big feature rows */
.feature {
	max-width: var(--max-w);
	margin: var(--section) auto 0;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 64px;
}
.feature.flip .feature-media { order: -1; }

.feature-media {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 28px;
}

.feature-copy {
	max-width: 460px;
}
.feature-copy .eyebrow {
	display: block;
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent);
}
.feature-copy h2 {
	font-size: clamp(30px, 3.6vw, 44px);
	line-height: 1.08;
}
.feature-copy p {
	margin-top: 18px;
	font-size: 19px;
	color: var(--text-2);
}
.feature-copy p + p { margin-top: 12px; }

/* And more: three phones with captions */
.phone-trio {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 48px;
	margin-top: 72px;
}
.phone-trio figure {
	display: flex;
	flex-direction: column;
	margin: 0;
	width: 260px;
	text-align: center;
}
.phone-trio .phone { --w: 260px; }
.phone-well {
	height: 430px;
	margin-top: 28px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 72%, transparent);
	mask-image: linear-gradient(#000 72%, transparent);
}
.phone-trio figcaption {
	margin: 0 auto;
	max-width: 240px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--text-2);
}
.phone-trio figcaption strong {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	color: var(--text);
}

/* Reviews: a slow rail of App Store quotes */
.reviews {
	margin-top: var(--section);
}
.reviews .section-head {
	padding: 0 24px;
}
.review-track {
	display: flex;
	margin-top: 56px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.review-rail {
	display: flex;
	flex-shrink: 0;
	gap: 20px;
	margin: 0;
	padding: 0 20px 0 0;
	list-style: none;
	animation: review-scroll 80s linear infinite;
}
.review-track:hover .review-rail { animation-play-state: paused; }
@keyframes review-scroll {
	to { transform: translateX(-100%); }
}
.review {
	width: 380px;
	flex-shrink: 0;
	padding: 28px 30px;
	border-radius: 20px;
	background: #0c0c0e;
	box-shadow: inset 0 0 0 1px var(--hairline-soft);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 22px;
}
.review p {
	margin: 0;
	font-size: 17px;
	line-height: 1.45;
	letter-spacing: -0.005em;
}
.review footer {
	font-size: 14px;
	color: var(--text-3);
}
.review .stars {
	color: var(--text);
	letter-spacing: 0.1em;
	margin-right: 8px;
}
@media (prefers-reduced-motion: reduce) {
	.review-track {
		flex-wrap: wrap;
		justify-content: center;
		padding: 0 24px;
		-webkit-mask-image: none;
		mask-image: none;
	}
	.review-rail {
		flex-wrap: wrap;
		justify-content: center;
		padding: 0;
		animation: none;
	}
	.review-rail[aria-hidden="true"] { display: none; }
}

/* Price and requirements */
.closing {
	max-width: var(--max-w);
	margin: var(--section) auto 0;
	padding: 64px 24px 0;
	border-top: 1px solid var(--hairline);
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 64px;
}
.closing h2 {
	font-size: clamp(30px, 3.6vw, 44px);
	line-height: 1.08;
}
.closing p {
	margin-top: 18px;
	max-width: 460px;
	font-size: 19px;
	color: var(--text-2);
}
.closing .hero-actions {
	justify-content: flex-start;
	margin-top: 32px;
}
.closing h3 {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-3);
	margin-top: 10px;
}
.req-list {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	font-size: 17px;
	color: var(--text-2);
}
.req-list li {
	padding: 12px 0;
	border-bottom: 1px solid var(--hairline-soft);
}
.req-list li:last-child { border-bottom: 0; }

/* ── Footer ────────────────────────────────────────── */

.site-footer {
	margin-top: 120px;
	padding: 32px 24px 48px;
	border-top: 1px solid var(--hairline-soft);
	font-size: 13px;
	color: var(--text-3);
}
.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.footer-links {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}
.footer-links a:hover { color: var(--text); }

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 900px) {
	:root { --section: 104px; }
	.site-nav { display: none; }
	.hero { padding-top: 80px; }
	.hero-device { margin-top: 64px; }
	.hero-device .watch { --w: 260px; }
	.controls-row { justify-content: flex-start; gap: 20px; }
	.controls-row .watch { --w: 150px; }
	.watch-trio { justify-content: flex-start; gap: 24px; }
	.watch-trio .watch { --w: 200px; }
	.watch-trio .watch-lead { --w: 240px; }
	.browser { margin-top: 40px; border-radius: 10px; }
	.editor-stage { margin-top: 40px; padding: 0; }
	.editor-stage .watch { --w: 240px; position: static; margin: 32px auto 0; }
	.feature {
		grid-template-columns: 1fr;
		gap: 40px;
		text-align: center;
	}
	.feature.flip .feature-media { order: 0; }
	.feature-copy { margin: 0 auto; }
	.feature-media .watch { --w: 240px; }
	.feature-media .phone { --w: 240px; }
	.phone-trio { gap: 32px; margin-top: 48px; }
	.phone-trio figure, .phone-trio .phone { width: 220px; --w: 220px; }
	.phone-well { height: 360px; }
	.review-track { margin-top: 40px; }
	.review { width: 300px; padding: 22px 24px; }
	.review p { font-size: 16px; }
	.closing {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

@media (max-width: 480px) {
	.hero h1 { font-size: 40px; }
	.hero-device .watch { --w: 220px; }
	.feature-media { gap: 16px; }
	.feature-media .watch { --w: 190px; }
	.feature-media .phone { --w: 190px; }
}
