:root {
	--md-primary: #1565c0;
	--md-primary-strong: #0d47a1;
	--md-primary-soft: #e8f1ff;
	--md-surface: #ffffff;
	--md-surface-2: #f6f9ff;
	--md-on-surface: #1a1c1e;
	--md-on-surface-muted: #4a4f57;
	--md-outline: #d4dae5;
	--md-shadow: 0 8px 24px rgba(21, 101, 192, 0.14);
	--md-card-shadow: 0 4px 16px rgba(17, 54, 101, 0.13);
	--radius-large: 16px;
	--radius-medium: 12px;
	--radius-small: 8px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'GrandisExtended', 'Grandis Extended', 'Segoe UI', 'Roboto', Arial, sans-serif;
	color: var(--md-on-surface);
	background: linear-gradient(180deg, #edf4ff 0%, #f8faff 40%, #ffffff 100%);
	min-height: 100vh;
	line-height: 1.6;
}

a {
	color: inherit;
}

.site-bg-pattern {
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image:
		radial-gradient(circle at 8% -10%, rgba(21, 101, 192, 0.14), transparent 32%),
		radial-gradient(circle at 92% 8%, rgba(100, 181, 246, 0.2), transparent 34%);
}

.container {
	width: min(1100px, 92vw);
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: blur(8px);
	background: rgba(255, 255, 255, 0.85);
	border-bottom: 1px solid var(--md-outline);
}

.nav-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-weight: 600;
	font-size: 1.04rem;
	text-decoration: none;
	color: var(--md-primary-strong);
	letter-spacing: 0.1px;
}

.brand-logo {
	width: 30px;
	height: 30px;
	display: block;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.site-nav a {
	text-decoration: none;
	color: var(--md-on-surface-muted);
	font-size: 0.95rem;
	font-weight: 500;
	padding: 0.42rem 0.68rem;
	border-radius: var(--radius-small);
}

.site-nav a:hover {
	background: var(--md-primary-soft);
	color: var(--md-primary-strong);
}

.btn {
	display: inline-block;
	border: 0;
	border-radius: var(--radius-small);
	padding: 0.72rem 1.2rem;
	background: var(--md-primary);
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.94rem;
	letter-spacing: 0.1px;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
	box-shadow: var(--md-shadow);
}

.btn:hover {
	transform: translateY(-1px);
	background: var(--md-primary-strong);
}

.btn-secondary {
	background: #e9f2ff;
	color: var(--md-primary-strong);
	box-shadow: none;
	border: 1px solid #c8daf7;
}

.btn-secondary:hover {
	background: #dceaff;
}

.nav-cta {
	margin-left: 0.2rem;
	padding: 0.65rem 1rem;
}

.page-content {
	position: relative;
	z-index: 1;
	padding: 2rem 0 2.8rem;
}

.hero {
	padding: 2rem;
	border-radius: var(--radius-large);
	background: var(--md-surface);
	border: 1px solid var(--md-outline);
	box-shadow: var(--md-shadow);
	animation: riseIn 360ms ease-out;
}

.hero.compact {
	padding: 1.6rem 1.8rem;
}

.eyebrow {
	display: inline-block;
	margin: 0;
	padding: 0.25rem 0.62rem;
	border-radius: var(--radius-small);
	background: var(--md-primary-soft);
	color: var(--md-primary-strong);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
	color: var(--md-on-surface);
	font-weight: 600;
	letter-spacing: 0.1px;
}

h1 {
	margin: 0.9rem 0;
	font-size: clamp(1.8rem, 3.2vw, 2.5rem);
	line-height: 1.2;
}

h2 {
	font-size: 1.45rem;
	margin: 0.2rem 0 0.75rem;
}

h3 {
	font-size: 1.1rem;
	margin-bottom: 0.45rem;
}

.hero-copy,
.meta,
p,
li {
	color: var(--md-on-surface-muted);
	font-size: 0.95rem;
}

.hero-actions {
	margin-top: 1.3rem;
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.store-links {
	margin-top: 1rem;
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.store-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.72rem;
	text-decoration: none;
	background: linear-gradient(160deg, #0f203f 0%, #152f5c 100%);
	color: #ffffff;
	border-radius: 10px;
	padding: 0.65rem 0.9rem;
	border: 1px solid #294a85;
	box-shadow: var(--md-card-shadow);
	min-width: 255px;
	transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.store-btn-apple,
.store-btn-play {
	background: #ffffff;
	color: #0d1b2a;
	border: 1px solid #b8c7dd;
}

.store-btn-apple .store-btn-text small,
.store-btn-play .store-btn-text small {
	opacity: 0.95;
	color: #334155;
}

.store-btn-apple .store-btn-text strong,
.store-btn-play .store-btn-text strong {
	color: #0f172a;
}

.store-btn-icon {
	width: 24px;
	height: 24px;
	object-fit: contain;
	display: block;
}

.store-btn-text {
	display: inline-flex;
	flex-direction: column;
	line-height: 1.2;
}

.store-btn-text small {
	font-size: 0.7rem;
	opacity: 0.8;
	letter-spacing: 0.02em;
}

.store-btn-text strong {
	font-size: 0.95rem;
	font-weight: 600;
}

.store-btn:hover {
	transform: translateY(-1px);
	border-color: #3b64ab;
	box-shadow: 0 8px 20px rgba(21, 44, 88, 0.28);
}

.store-btn-apple:hover,
.store-btn-play:hover {
	border-color: #94a8c8;
	box-shadow: 0 8px 20px rgba(83, 104, 136, 0.2);
}

.store-btn:focus-visible {
	outline: 2px solid #7fb2ff;
	outline-offset: 2px;
}

.panel-grid {
	margin-top: 1rem;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.panel-card {
	background: var(--md-surface);
	border: 1px solid var(--md-outline);
	border-radius: var(--radius-medium);
	padding: 1.2rem;
	box-shadow: var(--md-card-shadow);
	margin: 8px 0;
}

.panel-card h2,
.panel-card h3 {
	margin-top: 0;
}

.panel-image {
	width: min(100%, 180px);
	height: auto;
	margin: 0.85rem auto 0;
	display: block;
}

.doc-layout {
	margin-top: 1.1rem;
	display: grid;
	gap: 1rem;
}

.doc-section {
	background: var(--md-surface);
	border: 1px solid var(--md-outline);
	border-radius: var(--radius-medium);
	padding: 1.2rem;
	box-shadow: var(--md-card-shadow);
}

.doc-section h2 {
	margin-top: 0;
}

.video-thumb {
	display: block;
	text-decoration: none;
	border-radius: var(--radius-medium);
	overflow: hidden;
	border: 1px solid var(--md-outline);
	background: #0f1c2e;
	margin: 0.85rem 0 1rem;
	box-shadow: var(--md-card-shadow);
}

.video-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.video-thumb-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.65rem 1rem;
	background: var(--md-primary);
	color: #ffffff;
	font-weight: 600;
	font-size: 0.95rem;
}

.video-thumb:hover .video-thumb-label {
	background: var(--md-primary-strong);
}

.doc-steps {
	margin: 0.6rem 0 0;
	padding-left: 1.1rem;
}

.doc-grid {
	margin-top: 0.85rem;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.screenshot-card {
	background: var(--md-surface-2);
	border: 1px dashed #b5c6e6;
	border-radius: var(--radius-medium);
	padding: 1rem;
}

.screenshot-placeholder {
	height: 180px;
	border-radius: var(--radius-small);
	background: #e7f0ff;
	border: 1px dashed #9fb7e4;
	color: var(--md-primary-strong);
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0.5rem;
}

.screenshot-image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius-small);
	border: 1px solid #c7d7f0;
}

.screenshot-card h3 {
	margin: 0.85rem 0 0.4rem;
}

.split-callout {
	margin-top: 1.1rem;
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 1rem;
}

.callout,
.checklist {
	background: var(--md-surface-2);
	border: 1px solid var(--md-outline);
	border-radius: var(--radius-medium);
	padding: 1.15rem;
	box-shadow: var(--md-card-shadow);
}

.policy-layout {
	margin-top: 1.1rem;
	display: grid;
	gap: 0.9rem;
}

.note {
	background: #eef5ff;
	border-color: #c6daf7;
}

ul {
	padding-left: 1.15rem;
}

li {
	margin-bottom: 0.3rem;
}

.site-footer {
	position: relative;
	z-index: 1;
	margin-top: 1.2rem;
	border-top: 1px solid var(--md-outline);
	background: #eaf2ff;
}

.footer-grid {
	padding: 1.7rem 0 2.2rem;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 1rem;
}

.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer li,
.site-footer a {
	color: #24446c;
}

.site-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

@keyframes riseIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 900px) {
	.panel-grid,
	.doc-grid,
	.split-callout,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.nav-wrap {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-nav {
		width: 100%;
	}

	.hero,
	.hero.compact {
		padding: 1.35rem;
	}

	.store-btn {
		min-width: 100%;
	}
}
