/* Otto's own tokens (web/src/app.css), copied rather than imported: this
   site builds with no bundler, so there is nothing to share the file
   with -- keep the two in step by eye if the app's palette moves. */
@font-face {
	font-family: 'Archivo Narrow Variable';
	src: url('/assets/fonts/archivo-narrow-latin-wght-normal.woff2') format('woff2-variations');
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Geist Variable';
	src: url('/assets/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--background: #16273a;
	--surface-1: #213347;
	--surface-2: #26394e;
	--surface-3: #162330;
	--foreground: #f5f7fa;
	--muted-foreground: #b8c1cc;
	--border: #22303e;
	--accent-yellow: #ffc515;
	--accent-yellow-bright: #ffd42a;
	--accent-yellow-deep: #d69e00;
	--primary-foreground: #10151b;
	--font-sans: 'Geist Variable', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-display: 'Archivo Narrow Variable', 'Geist Variable', sans-serif;
	--max-width: 1120px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 1.5rem 1.5rem;
}
.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
}
.brand-mark {
	height: 28px;
	width: auto;
}
.brand-name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.3rem;
	letter-spacing: 0.18em;
}
.login-link {
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	border: 1px solid rgb(245 247 250 / 0.18);
	transition: border-color 0.15s ease, background 0.15s ease;
}
.login-link:hover {
	border-color: var(--accent-yellow-deep);
	background: rgb(255 197 21 / 0.06);
}

.hero {
	max-width: 760px;
	margin: 0 auto;
	padding: 2rem 1.5rem 0;
	text-align: center;
}
.chip {
	display: inline-block;
	margin: 0 auto 1.5rem;
	border: 1px solid var(--accent-yellow-deep);
	color: var(--accent-yellow);
	background: rgb(255 197 21 / 0.08);
	border-radius: 999px;
	padding: 0.3rem 0.85rem;
	font-size: 0.8rem;
	font-weight: 600;
}
.hero h1 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(2.1rem, 5vw, 3rem);
	line-height: 1.15;
	margin: 0 0 1.1rem;
}
.hero-sub {
	color: var(--muted-foreground);
	font-size: 1.1rem;
	max-width: 42rem;
	margin: 0 auto 2rem;
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	justify-content: center;
}
.btn {
	display: inline-block;
	border-radius: 0.875rem;
	padding: 0.8rem 1.6rem;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
	background: var(--accent-yellow);
	color: var(--primary-foreground);
}
.btn-primary:hover { background: var(--accent-yellow-bright); }
.btn-secondary {
	background: transparent;
	color: var(--muted-foreground);
	border-color: rgb(245 247 250 / 0.18);
}
.btn-secondary:hover { border-color: var(--accent-yellow-deep); color: var(--foreground); }

/* -- Device frames -------------------------------------------------- */
/* Drawn in CSS so they stay crisp at any size: a titanium-toned bezel,
   a notch/crown accent, and a screen that clips the screenshot with the
   right corner radius -- no bare or cropped screenshots anywhere. */
.phone-frame,
.watch-frame {
	position: relative;
	background: linear-gradient(155deg, #3c4856 0%, #1b2530 60%, #141c25 100%);
	box-shadow:
		0 30px 50px -24px rgb(0 0 0 / 0.55),
		0 0 0 1px rgb(255 255 255 / 0.05) inset;
	flex: none;
}
.phone-screen,
.watch-screen {
	width: 100%;
	height: 100%;
	background: #000;
	overflow: hidden;
	position: relative;
}
.phone-screen img,
.watch-screen img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.phone-frame {
	width: clamp(180px, 46vw, 260px);
	aspect-ratio: 390 / 844;
	border-radius: 15% / 7%;
	padding: 4.5% 3.3%;
}
.phone-frame::before {
	/* dynamic island */
	content: '';
	position: absolute;
	top: 3.4%;
	left: 50%;
	transform: translateX(-50%);
	width: 30%;
	height: 3.2%;
	background: #0a0e13;
	border-radius: 999px;
	z-index: 2;
}
.phone-screen { border-radius: 11% / 5.2%; }
.phone-frame--small {
	width: clamp(140px, 30vw, 200px);
}

.watch-frame {
	width: clamp(110px, 28vw, 172px);
	aspect-ratio: 185 / 225;
	border-radius: 26%;
	padding: 7%;
}
.watch-frame::after {
	/* digital crown */
	content: '';
	position: absolute;
	right: -5%;
	top: 36%;
	width: 7%;
	height: 14%;
	background: linear-gradient(90deg, #2b3542, #1c2733);
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08);
}
.watch-frame::before {
	/* side button */
	content: '';
	position: absolute;
	right: -3.5%;
	top: 56%;
	width: 5%;
	height: 9%;
	background: #2b3542;
	border-radius: 2px;
}
.watch-screen { border-radius: 20%; }
.watch-frame--small {
	width: clamp(96px, 22vw, 150px);
}

.hero-devices {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: clamp(1rem, 4vw, 2rem);
	margin: 2.5rem auto 0;
	padding-bottom: 3rem;
}

/* -- Feature rows ----------------------------------------------------- */
.features {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 1rem 1.5rem;
}
.feature-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
	padding: 2.75rem 0;
	border-top: 1px solid var(--border);
}
.feature-row:first-child { border-top: none; }
.eyebrow {
	color: var(--accent-yellow);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.75rem;
	font-weight: 700;
	margin: 0 0 0.6rem;
}
.feature-text h2 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.25;
	margin: 0 0 0.75rem;
	color: var(--foreground);
}
.feature-text p {
	margin: 0;
	color: var(--muted-foreground);
	font-size: 1rem;
	max-width: 32rem;
}
.feature-visual {
	display: flex;
	justify-content: center;
}

/* -- Data note ---------------------------------------------------------- */
.data-note {
	max-width: var(--max-width);
	margin: 1rem auto 0;
	padding: 2.5rem 1.5rem;
	border-top: 1px solid var(--border);
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
.data-note-item h3 {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.4rem;
}
.data-note-item p {
	margin: 0;
	color: var(--muted-foreground);
	font-size: 0.9rem;
}

/* -- Footer --------------------------------------------------------- */
.site-footer {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 2rem 1.5rem 3rem;
	border-top: 1px solid var(--border);
	text-align: center;
}
.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.25rem;
	margin-bottom: 0.9rem;
	font-size: 0.9rem;
}
.footer-links a { text-decoration: underline; text-underline-offset: 2px; }
.footer-fine {
	color: var(--muted-foreground);
	font-size: 0.8rem;
	margin: 0 0 0.4rem;
}
.footer-copyright {
	color: var(--muted-foreground);
	font-size: 0.78rem;
	margin: 0;
	opacity: 0.8;
}

@media (min-width: 720px) {
	.feature-row {
		grid-template-columns: 1fr 1fr;
	}
	.feature-row--reverse .feature-visual { order: -1; }
	.data-note {
		grid-template-columns: repeat(2, 1fr);
	}
}
