/* Glanta: landing and support pages. Brand values from Glanta's design docs. */

/* Sky colours are registered so a phase change blends slowly instead of snapping */
@property --s1 { syntax: "<color>"; inherits: true; initial-value: #ebaa4e; }
@property --s2 { syntax: "<color>"; inherits: true; initial-value: #f6d394; }
@property --s3 { syntax: "<color>"; inherits: true; initial-value: #f7eedf; }

:root {
	--gold: #f2b544;
	--deep-gold: #ba7815; /* 3.2:1 on cream: large text and accents only */
	--cream: #f7f1e6;
	--card: #ffffff;
	--ink: #3a2a18;
	--ink-soft: #5a4430;
	--forest: #2f4a3a;
	--meadow: #6f9870;
	--line: rgba(58, 42, 24, 0.1);
	--shadow: 0 1px 2px rgba(58, 42, 24, 0.05), 0 8px 28px rgba(58, 42, 24, 0.07);
	--serif: "New York", ui-serif, Georgia, serif;
	--sans: -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif;
	--rounded: ui-rounded, -apple-system, system-ui, sans-serif;
	--radius: 20px;

	/* Afternoon is the default sky (and the no-JS sky) */
	--s1: #ebaa4e;
	--s2: #f6d394;
	--s3: #f7eedf;
	--sky-ink: #3a2a18;
}

/* The sky for the visitor's time of day (set by a small script in <head>) */
[data-phase="first"] { --s1: #ae93b0; --s2: #f4a987; --s3: #f9d3ae; --sky-ink: #3a2a22; }
[data-phase="morning"] { --s1: #ee9a5e; --s2: #f5cb97; --s3: #f7ece0; --sky-ink: #3a2a18; }
[data-phase="midday"] { --s1: #5e9dd6; --s2: #a9d0ee; --s3: #f1f2ec; --sky-ink: #1f2e3d; }
[data-phase="afternoon"] { --s1: #ebaa4e; --s2: #f6d394; --s3: #f7eedf; --sky-ink: #3a2a18; }
[data-phase="last"] { --s1: #d5776c; --s2: #eba98c; --s3: #f3d79a; --sky-ink: #3a2218; }
[data-phase="dusk"] { --s1: #141a33; --s2: #262c52; --s3: #4a3f66; --sky-ink: #ede6f5; }

@media (prefers-color-scheme: dark) {
	:root {
		--cream: #16140f;
		--card: #221e17;
		--ink: #f3ebda;
		--ink-soft: #d6cab3;
		--forest: #cfe0cf;
		--deep-gold: #f2b544;
		--line: rgba(243, 235, 218, 0.12);
		--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.25);
	}
}

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

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.15;
	color: var(--forest);
	margin: 0;
	text-wrap: balance;
}

p {
	margin: 0;
}

a {
	color: var(--forest);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-thickness: 2px;
}

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

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 10;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	background: var(--card);
	color: var(--ink);
}

.skip-link:focus {
	top: 1rem;
}

.card {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.5rem;
}

/* --- Wordmark: two gold dots over the first "a" (offsets from the App Store frame) --- */
.wordmark {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

.wordmark .a {
	position: relative;
	display: inline-block;
}

.wordmark .dot {
	position: absolute;
	border-radius: 50%;
	background: var(--deep-gold);
	box-shadow: 0 0 0.09em 0.03em rgba(242, 181, 68, 0.55);
}

.wordmark .dot-1 { width: 0.13em; height: 0.13em; left: 0.07em; top: 0.07em; }
.wordmark .dot-2 { width: 0.09em; height: 0.09em; left: 0.27em; top: 0.17em; }

/* Georgia's "a" is wider with a lower top than New York's (class set by a script) */
.wm-georgia .wordmark .dot-1 { left: 0.09em; top: 0.12em; }
.wm-georgia .wordmark .dot-2 { left: 0.29em; top: 0.21em; }

/* --- Pill (stands in for the App Store badge until launch) --- */
.pill {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.88);
	color: #3a2a18;
	font-weight: 600;
	font-size: 1rem;
	box-shadow: 0 6px 20px rgba(58, 42, 24, 0.12);
}

/* --- Hero --- */
.hero {
	position: relative;
	overflow: hidden;
	color: var(--sky-ink);
	background: linear-gradient(180deg, var(--s1) 0%, var(--s2) 55%, var(--s3) 100%);
	transition: --s1 60s linear, --s2 60s linear, --s3 60s linear;
}

.topbar {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1180px;
	margin: 0 auto;
	padding: 1.25rem 1.5rem;
}

.topbar a {
	color: var(--sky-ink);
	text-decoration: none;
	font-weight: 600;
}

.topbar a:hover {
	text-decoration: underline;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--serif);
	font-size: 1.25rem;
}

.brand img {
	width: 36px;
	height: 36px;
	border-radius: 22%;
}

.topbar-links {
	display: flex;
	gap: 1.5rem;
}

.hero-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	align-items: center;
	gap: 2rem;
	max-width: 1180px;
	margin: 0 auto;
	padding: 2.5rem 1.5rem 0;
}

.hero-copy {
	padding-bottom: 12rem;
}

.hero .wordmark {
	font-size: 2.25rem;
	margin-bottom: 1.25rem;
}

.hero h1 {
	color: inherit;
	font-size: clamp(2.75rem, 6vw, 4.75rem);
	letter-spacing: -0.01em;
}

.lede {
	margin-top: 1.25rem;
	max-width: 30rem;
	font-size: 1.25rem;
	line-height: 1.5;
}

.hero .pill {
	margin-top: 2rem;
}

.compat {
	margin-top: 1rem;
	max-width: 30rem;
	font-size: 0.875rem;
	line-height: 1.5;
}

.trust {
	margin-top: 1.25rem;
	font-size: 0.95rem;
	font-weight: 500;
}

.hero-devices {
	position: relative;
	justify-self: center;
	padding-bottom: 3rem;
}

.hero-devices .phone {
	width: 290px;
}

.hero-devices .watch {
	position: absolute;
	width: 168px;
	left: -138px;
	bottom: 5rem;
}

/* The clearing: meadow, trees and a soft sun along the bottom of the hero */
.clearing {
	position: absolute;
	z-index: 1;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 200px;
}

.clearing .sun {
	fill: #eda533;
	filter: drop-shadow(0 0 24px rgba(242, 181, 68, 0.7));
	animation: glint 9s ease-in-out infinite alternate;
}

.clearing .hill-back { fill: #8db08a; }
.clearing .hill { fill: var(--meadow); }
.clearing .trees { fill: #2f4a3a; }
.clearing .trees-back { fill: #4a6b55; }

[data-phase="dusk"] .clearing .sun { display: none; }
[data-phase="dusk"] .clearing { filter: brightness(0.55) saturate(0.8); }

@keyframes glint {
	from { opacity: 0.85; }
	to { opacity: 1; }
}

/* --- Device frames --- */
.phone {
	width: 260px;
	padding: 9px;
	border-radius: 46px;
	background: #1d1a17;
	box-shadow: 0 30px 60px rgba(58, 42, 24, 0.22), 0 6px 16px rgba(58, 42, 24, 0.14);
}

.phone img {
	width: 100%;
	border-radius: 38px;
}

.watch {
	width: 180px;
	padding: 12px;
	border-radius: 26% / 22%;
	background: #1d1a17;
	box-shadow: 0 20px 40px rgba(58, 42, 24, 0.22), 0 4px 12px rgba(58, 42, 24, 0.14);
}

.watch img {
	width: 100%;
	border-radius: 20% / 16%;
}

/* --- Sections --- */
.band {
	max-width: 1080px;
	margin: 0 auto;
	padding: 5.5rem 1.5rem 0;
}

.band > h2 {
	font-size: clamp(2rem, 4vw, 2.75rem);
	text-align: center;
	margin-bottom: 2.5rem;
}

.name {
	max-width: 44rem;
	text-align: center;
}

.name h2 {
	margin-bottom: 1.25rem;
}

.name p {
	font-family: var(--serif);
	font-size: 1.4rem;
	line-height: 1.5;
	color: var(--ink);
}

.steps,
.points,
.claims {
	list-style: none;
	margin: 0;
	padding: 0;
}

.steps,
.points {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.steps h3,
.points h3 {
	font-size: 1.35rem;
	margin-bottom: 0.5rem;
}

.steps p,
.points p {
	color: var(--ink-soft);
}

.step-num {
	display: inline-grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: var(--gold);
	color: #3a2a18;
	font-family: var(--rounded);
	font-weight: 700;
}

/* Feature rows, alternating sides */
.features {
	display: grid;
	gap: 5rem;
}

.feature {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 3rem;
}

.feature:nth-child(even) .feature-media {
	order: 2;
}

.feature-media {
	display: flex;
	justify-content: center;
}

.feature-copy h2 {
	font-size: clamp(1.9rem, 3.5vw, 2.5rem);
	margin-bottom: 1rem;
}

.feature-copy p {
	font-size: 1.15rem;
	color: var(--ink-soft);
	max-width: 28rem;
}

.feature-copy .note {
	margin-top: 1rem;
	font-size: 0.95rem;
}

.watches {
	display: grid;
	grid-template-columns: repeat(2, 160px);
	gap: 1.25rem;
}

.watches .watch {
	width: 160px;
}

/* Widgets: Home Screen on a warm sky, Lock Screen on the app's navy */
.widget-scenes {
	display: grid;
	gap: 1rem;
	width: 100%;
	max-width: 400px;
}

.home-scene {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.9rem;
	padding: 1.1rem;
	border-radius: 28px;
	background: linear-gradient(180deg, #ebaa4e 0%, #f6d394 60%, #f7eedf 100%);
	box-shadow: var(--shadow);
}

/* The 3x crops carry a little navy at the corners; round them at ~14% of the width */
.widget {
	width: 100%;
	clip-path: inset(2px round 14%);
}

.widget-medium {
	grid-column: 1 / -1;
	clip-path: inset(2px round 14% / 29.1%); /* same corner size as 14% of the width, on a 2.08:1 widget */
}

.lock-scene {
	display: grid;
	justify-items: center;
	gap: 0.75rem;
	padding: 1.25rem 1rem;
	border-radius: 28px;
	background: #3b4a6b;
	box-shadow: var(--shadow);
}

.lock-scene img:first-child {
	width: 140px;
}

.lock-scene img:last-child {
	width: 300px;
}

/* Mock notification on a midday sky */
.notify-scene {
	width: 100%;
	max-width: 420px;
	padding: 4.5rem 1.25rem;
	border-radius: 32px;
	background: linear-gradient(180deg, #5e9dd6 0%, #a9d0ee 60%, #f1f2ec 100%);
	box-shadow: var(--shadow);
}

.notification {
	display: flex;
	gap: 0.8rem;
	align-items: flex-start;
	padding: 0.9rem 1rem;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	color: #1f2e3d;
	box-shadow: 0 8px 24px rgba(31, 46, 61, 0.15);
}

.notification img {
	width: 38px;
	border-radius: 22%;
	flex: none;
}

.n-meta {
	display: flex;
	justify-content: space-between;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #4a5866;
}

.n-title {
	font-weight: 600;
	font-size: 0.95rem;
}

.n-body {
	font-size: 0.95rem;
	line-height: 1.4;
}

/* Evidence: given room on its own soft band */
.evidence {
	margin-top: 6rem;
	padding: 5.5rem 1.5rem;
	background: linear-gradient(180deg, transparent, rgba(242, 181, 68, 0.12) 18%, rgba(242, 181, 68, 0.12) 82%, transparent);
}

.evidence-inner {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 3.5rem;
	align-items: start;
	max-width: 1080px;
	margin: 0 auto;
}

.evidence-intro h2 {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin-bottom: 1rem;
}

.evidence-intro > p {
	font-size: 1.15rem;
	color: var(--ink-soft);
	margin-bottom: 2.5rem;
}

.evidence-intro .phone {
	width: 240px;
}

.claims {
	display: grid;
	gap: 1.25rem;
}

.chip {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: rgba(242, 181, 68, 0.22);
	color: var(--ink);
	font-family: var(--rounded);
	font-size: 0.85rem;
	font-weight: 600;
}

.claim-text {
	margin: 0.9rem 0 0.75rem;
	font-family: var(--serif);
	font-size: 1.35rem;
	line-height: 1.4;
}

.sources {
	font-size: 0.95rem;
	color: var(--ink-soft);
}

.more {
	margin-top: 1.75rem;
	text-align: center;
	font-weight: 600;
}

/* Free and Pro */
.plans {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

.plan h3 {
	font-size: 1.6rem;
	margin-bottom: 1rem;
}

.plan ul {
	margin: 0;
	padding-left: 1.2rem;
}

.plan li + li {
	margin-top: 0.4rem;
}

.plan li::marker {
	color: var(--deep-gold);
}

.plan-pro {
	box-shadow: var(--shadow), inset 0 0 0 2px var(--gold);
}

.plan-note {
	margin-top: 1.25rem;
	font-weight: 600;
}

/* FAQ */
.faq-list {
	max-width: 46rem;
	margin: 0 auto;
	display: grid;
	gap: 0.75rem;
}

.faq details {
	background: var(--card);
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 1.1rem 1.4rem;
}

.faq summary {
	cursor: pointer;
	font-family: var(--serif);
	font-size: 1.2rem;
	color: var(--forest);
}

.faq details p {
	margin-top: 0.75rem;
	color: var(--ink-soft);
}

/* Closing band: a last-light sky */
.closing {
	margin-top: 6rem;
	padding: 6rem 1.5rem;
	text-align: center;
	color: #3a2218;
	background: linear-gradient(180deg, #d5776c 0%, #eba98c 55%, #f3d79a 100%);
}

.closing h2 {
	color: inherit;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	margin-bottom: 2rem;
}

/* Footer */
.site-footer {
	padding: 2rem 1.5rem;
	text-align: center;
	font-size: 0.9rem;
	color: var(--ink-soft);
}

/* Fade-and-rise; without JS or with reduced motion everything simply shows */
.js .reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.js .reveal.in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.js .reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.hero,
	.clearing .sun {
		transition: none;
		animation: none;
	}
}

/* --- Support page --- */
.support-header {
	max-width: 46rem;
	margin: 0 auto;
	padding: 2.5rem 1.5rem 0;
	text-align: center;
}

.support-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--forest);
	text-decoration: none;
}

.support-brand img {
	width: 44px;
	height: 44px;
	border-radius: 22%;
}

.support-brand .wordmark {
	font-size: 1.75rem;
}

.support-header h1 {
	margin-top: 2rem;
	font-size: clamp(2.5rem, 6vw, 3.5rem);
}

.support-header .intro {
	margin-top: 0.75rem;
	font-size: 1.15rem;
	color: var(--ink-soft);
}

.button {
	display: inline-block;
	margin-top: 1.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	background: var(--forest);
	color: var(--cream);
	font-weight: 600;
	text-decoration: none;
}

.button:hover {
	text-decoration: underline;
}

.topics {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.topics a {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	background: var(--card);
	box-shadow: var(--shadow);
	font-size: 0.95rem;
	text-decoration: none;
}

.topics a:hover {
	text-decoration: underline;
}

.support {
	max-width: 46rem;
	margin: 0 auto;
	padding: 1rem 1.5rem 4rem;
}

.topic {
	padding-top: 3rem;
	scroll-margin-top: 1rem;
}

.topic > h2 {
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

.qa {
	margin-top: 0.9rem;
	scroll-margin-top: 1rem;
}

.qa h3 {
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
}

.qa p {
	color: var(--ink-soft);
}

.qa:target {
	box-shadow: var(--shadow), inset 0 0 0 2px var(--gold);
}

.contact-card {
	margin-top: 3rem;
	text-align: center;
}

.contact-card h2 {
	font-size: 1.75rem;
	margin-bottom: 0.5rem;
}

.contact-card p {
	color: var(--ink-soft);
}

/* --- Responsive --- */
@media (max-width: 900px) {
	.hero-inner {
		grid-template-columns: 1fr;
		text-align: center;
		padding-top: 1.5rem;
	}

	.hero-copy {
		padding-bottom: 0;
	}

	.lede {
		margin-left: auto;
		margin-right: auto;
	}

	.hero-devices {
		padding-bottom: 4.5rem;
	}

	.hero-devices .phone {
		width: 230px;
	}

	.hero-devices .watch {
		width: 128px;
		left: -72px;
		bottom: 6rem;
	}

	.steps,
	.points,
	.plans,
	.evidence-inner {
		grid-template-columns: 1fr;
	}

	.feature {
		grid-template-columns: 1fr;
		gap: 1.75rem;
		text-align: center;
	}

	.feature:nth-child(even) .feature-media {
		order: 0;
	}

	.feature-copy p {
		margin: 0 auto;
	}

	.watches {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding: 0.5rem 1.5rem 1.5rem;
		margin: 0 -1.5rem;
		max-width: 100vw;
	}

	.watches .watch {
		flex: none;
		scroll-snap-align: center;
	}

	.widget-scenes {
		margin: 0 auto;
	}

	.compat {
		margin-left: auto;
		margin-right: auto;
	}

	.evidence-intro {
		text-align: center;
	}

	.evidence-intro .phone {
		margin: 0 auto;
	}

	.band {
		padding-top: 4rem;
	}
}

@media (max-width: 480px) {
	.topbar-links {
		gap: 1rem;
	}

	.lede {
		font-size: 1.1rem;
	}

	.hero-devices .watch {
		left: -48px;
	}
}
