/* AJournal landing page — ajournal.pro
   Draft C (owner's choice, 2026-11-25): the ATracker page's layout, components and type (Rubik), recoloured to
   AJournal's App Store lilac. Built from the ATracker page's stylesheet (../ATracker_Wonderapps/assets/site.css).
   Fluid sizes run from a 375-px to a 1440-px wide window. Light only. */

@layer reset, base, layout, components, utilities;

/* ---------- fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
	font-family: "Rubik";
	src: url("fonts/rubik-latin.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Caveat for the word "Handwritten" only: weight 700, English letters and punctuation */
@font-face {
	font-family: "Caveat";
	src: url("fonts/caveat-en.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AE, U+00B7, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+20AC, U+2122;
}

/* ---------- tokens ---------- */
:root {
	/* colours: AJournal's App Store lilac in place of ATracker's ice blue */
	--c-text: #3a3f5c;        /* body text: 8.7:1 on the lilac, 10.4:1 on white */
	--c-heading: #1f2440;     /* the store shots' ink */
	--c-violet: #4a55a8;      /* links, ticks, outlines, buttons behind white text: 7.0:1 on white, 5.7:1 on the lilac */
	--c-play: #9a80ef;        /* the play button: ATracker's style in a light purple (owner 2026-11-26; was #6d4fd6); white on it 3.1:1, above the 3:1 icons need */
	--c-laurel: #5c6cc0;
	--c-lilac: #f1eaf8;       /* ATracker #e8f0f9 */
	--c-lilac-deep: #e4d7f2;  /* the big round shape */
	--c-lilac-light: #f8f4fc; /* the small round shape */
	--c-chip-line: #ddd0ef;
	--c-card-border: #e8dff3;
	--c-line: #e4dceb;
	--c-light: #f7f3fa;
	--c-pill-bg: #ebe2f8;
	--c-unit: #6b6880;        /* price units: 5.4:1 on white */
	--c-star: #f6a712;
	--c-star-rest: #e2d9ee;
	--shadow-card: 0 10px 22px 0 rgb(60 40 120 / .07);
	--shadow-plan: 0 15px 30px 0 rgb(60 40 120 / .08);
	--shadow-bar: 0 2px 3px rgb(96 90 120 / .1);

	/* type: clamp(min at 375 px, fluid, max at 1440 px). Made smaller and lighter on 2026-11-26 (owner: "some text is too
	   large and heavy"): the earlier maximum is in brackets after each line that changed */
	--fs-hero: clamp(28px, calc(28px + 26 * (100vw - 375px) / 1065), 54px); /* (60) */
	--fs-hero-p: clamp(16px, calc(16px + 3 * (100vw - 375px) / 1065), 19px); /* (21.6) */
	--fs-h2: clamp(24px, calc(24px + 14 * (100vw - 375px) / 1065), 38px); /* (50) */
	--fs-title: clamp(24px, calc(24px + 16 * (100vw - 375px) / 1065), 40px); /* (54) */
	--fs-lead: clamp(16px, calc(16px + 1 * (100vw - 375px) / 1065), 17px); /* (19) */
	--fs-h3: clamp(18px, calc(18px + 6 * (100vw - 375px) / 1065), 24px);
	--fs-row: clamp(20px, calc(20px + 8 * (100vw - 375px) / 1065), 28px); /* the feature rows' headlines (34) */
	--fs-plan: clamp(18px, calc(18px + 3 * (100vw - 375px) / 1065), 21px);
	--fs-price: clamp(36px, calc(36px + 10 * (100vw - 375px) / 1065), 46px); /* (54) */
	--fs-price-cur: clamp(24px, calc(24px + 6 * (100vw - 375px) / 1065), 30px); /* (36) */
	--fs-price-dec: clamp(28px, calc(28px + 9 * (100vw - 375px) / 1065), 37px); /* (44) */
	--fs-small: clamp(15px, calc(15px + 1 * (100vw - 375px) / 1065), 16px); /* (18) */
	--fs-compare: clamp(22px, calc(22px + 8 * (100vw - 375px) / 1065), 30px); /* (42) */

	/* spacing */
	--section-top: clamp(80px, calc(80px + 20 * (100vw - 768px) / 224), 100px);
	--section-bottom: clamp(40px, calc(40px + 20 * (100vw - 768px) / 224), 60px);
	--title-gap: clamp(45px, calc(45px + 25 * (100vw - 375px) / 1065), 70px);
	--gutter: 24px;
	--container: 100%;
	--header-h: 80px;
}
@media (min-width: 576px)  { :root { --container: 540px; } }
@media (min-width: 768px)  { :root { --container: 720px; } }
@media (min-width: 992px)  { :root { --container: 960px; --header-h: 70px; } }
@media (min-width: 1200px) { :root { --container: 1140px; } }
@media (min-width: 1400px) { :root { --container: 1320px; } }

/* ---------- reset (its own layer, so it never outranks a component's spacing) ---------- */
@layer reset {
	*, *::before, *::after { box-sizing: border-box; }
	* { margin: 0; }
	img, svg { display: block; max-width: 100%; }
	img { height: auto; }
	ul { list-style: none; padding: 0; }
	button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
	table { border-collapse: collapse; }
}

/* ---------- base ---------- */
@layer base {
	html {
		-webkit-text-size-adjust: 100%;
		scroll-padding-top: var(--header-h);
		@media (prefers-reduced-motion: no-preference) { scroll-behavior: smooth; }
	}
	body {
		font-family: "Rubik", "Helvetica Neue", Helvetica, Arial, sans-serif;
		font-size: 16px;
		line-height: 1.6666;
		font-weight: 400;
		color: var(--c-text);
		background: #fff;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}
	main { overflow-x: clip; }
	h1, h2, h3 {
		color: var(--c-heading);
		font-weight: 600;
		letter-spacing: -0.75px;
		text-wrap: balance;
	}
	h1, h2 { line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; } /* 600 since 2026-11-26 (was 700) */
	h3 { line-height: 1.3; }
	p { text-wrap: pretty; }
	a { color: inherit; text-decoration: none; }
	:focus-visible { outline: 3px solid var(--c-violet); outline-offset: 3px; border-radius: 4px; }
}

/* ---------- layout ---------- */
@layer layout {
	.container {
		width: 100%;
		max-width: var(--container);
		margin-inline: auto;
		padding-inline: 12px;
	}
	/* two columns: text and picture; one column on phones */
	.split {
		display: grid;
		gap: 40px var(--gutter);
		align-items: center;
	}
	@media (min-width: 768px) {
		.split { grid-template-columns: 5fr 7fr; }        /* picture left */
	}
	@media (min-width: 992px) {
		.split { grid-template-columns: 1fr 1fr; }
	}
	.media { text-align: center; }
	.media img { margin-inline: auto; }

	.section-title {
		text-align: center;
		font-size: var(--fs-title);
		margin-bottom: var(--title-gap);
	}
}

/* ---------- components ---------- */
@layer components {

	/* header: a white bar on phones; on a computer transparent over the hero, frosted white once scrolled */
	.scroll-sentinel { position: absolute; inset: 0 0 auto; height: 80px; pointer-events: none; }
	.far-sentinel { position: absolute; inset: 0 0 auto; height: 600px; pointer-events: none; }

	.site-header {
		position: fixed;
		inset: 0 0 auto;
		z-index: 50;
		background: #fff;
		box-shadow: 0 1px 0 rgb(40 30 90 / .1);
	}
	/* Kept at the top level, not nested in the rule above: Safari 17.0 drops a rule's own declarations
	   (position: fixed among them) when an @supports block is nested inside it (seen 2026-11-25, iOS 17.0). */
	@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
		.site-header {
			background: rgb(255 255 255 / .82);
			-webkit-backdrop-filter: saturate(1.6) blur(16px);
			backdrop-filter: saturate(1.6) blur(16px);
		}
	}
	.header-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: var(--header-h);
		max-width: 1164px;
		margin-inline: auto;
		padding-inline: 18px 6px;
	}
	.brand { display: flex; align-items: center; min-height: 44px; }
	.brand img { height: 36px; width: auto; }

	.menu-toggle {
		position: relative;
		width: 56px; height: 56px;
		& span, & span::before, & span::after {
			position: absolute; left: 15px;
			height: 3px; background: var(--c-heading); border-radius: 1px;
		}
		& span { top: 50%; margin-top: -1.5px; width: 22px; }
		& span::before, & span::after { content: ""; left: 0; }
		& span::before { top: -7px; width: 26px; }
		& span::after { top: 7px; width: 20px; }
	}

	/* phone and tablet: the menu is a popover panel from the right */
	.site-nav {
		position: fixed;
		z-index: 60;
		inset: 0 0 0 auto;
		width: min(290px, 85vw);
		height: 100dvh;
		max-height: none;
		margin: 0;
		padding: 0;
		border: 0;
		background: #fff;
		overflow: visible;
		color: var(--c-heading);
		&::backdrop { background: rgb(0 0 0 / .45); }
		& ul { height: 100%; overflow-y: auto; }
		& li a {
			display: block;
			font-size: 19px;
			font-weight: 500;
			line-height: 50px;
			padding: 7px 32px 6px 20px;
			border-bottom: 1px solid var(--c-card-border);
		}
		& li a:hover { background: var(--c-lilac); }
		.btn-getapp {
			margin: 18px 20px 0;
			padding: 0 20px;
			line-height: 46px;
			text-align: center;
			background: var(--c-lilac);
			border: 1px solid var(--c-heading);
			border-radius: 999px;
		}
	}
	.menu-close {
		position: absolute;
		left: -64px; top: 10px;
		width: 56px; height: 56px;
		display: grid; place-items: center;
		color: #fff;
		& svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; }
	}
	@media (prefers-reduced-motion: no-preference) {
		.site-nav:popover-open { animation: slide-in .3s ease-out; }
	}
	@keyframes slide-in { from { translate: 100% 0; } }

	/* browsers without the Popover API (Safari < 17): site.js toggles .is-open */
	@supports not selector(:popover-open) {
		@media (max-width: 991.98px) {
			.site-nav:not(.is-open) { display: none; }
			.site-nav.is-open { box-shadow: 0 0 0 100vmax rgb(0 0 0 / .45); }
		}
	}

	@media (min-width: 992px) {
		.site-header {
			background: transparent;
			-webkit-backdrop-filter: none;
			backdrop-filter: none;
			box-shadow: none;
			padding-block: 20px;
			transition: background-color .45s ease-in-out, padding .45s ease-in-out, box-shadow .45s ease-in-out;
		}
		.header-inner { padding-inline: 27px; }
		.brand img { height: 38px; }
		.menu-toggle, .menu-close { display: none; }

		.site-nav {
			display: block;
			position: static;
			inset: auto;
			width: auto;
			height: auto;
			background: none;
			& ul { display: flex; align-items: center; overflow: visible; }
			& li a {
				font-size: clamp(16px, calc(16px + 1 * (100vw - 1024px) / 416), 17px);
				line-height: 50px;
				margin-inline: 7px;
				/* as on ATracker: items never wrap; their side padding eases from 11 px at 992 px to 15 px at 1100 px */
				padding: 10px clamp(11px, calc(11px + 4 * (100vw - 992px) / 108), 15px);
				white-space: nowrap;
				border: 0;
			}
			& li a:hover { background: none; color: var(--c-violet); }
			.btn-getapp {
				font-size: 16.5px;
				line-height: 30px;
				margin: 0 0 0 12px;
				padding: 5px 30px;
				background: none;
				border: 1px solid var(--c-heading);
				border-radius: 999px;
				color: var(--c-heading);
				transition: background-color .3s, border-color .3s, color .3s;
				&:hover { background: var(--c-violet); border-color: var(--c-violet); color: #fff; }
			}
		}

		.site-header[data-scrolled] {
			background: #fff;
			padding-block: 0;
			box-shadow: var(--shadow-bar);
		}
		@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
			.site-header[data-scrolled] {
				background: rgb(255 255 255 / .82);
				-webkit-backdrop-filter: saturate(1.6) blur(16px);
				backdrop-filter: saturate(1.6) blur(16px);
			}
		}
	}

	/* the lilac ground with two large soft round shapes (hero and band) */
	.hero, .band {
		--r1: clamp(190px, 34vw, 500px);
		--r2: clamp(150px, 24vw, 350px);
		background:
			radial-gradient(circle at 92% 2%, var(--c-lilac-deep) calc(var(--r1) - 1px), transparent var(--r1)),
			radial-gradient(circle at 2% 82%, var(--c-lilac-light) calc(var(--r2) - 1px), transparent var(--r2)),
			var(--c-lilac);
	}

	/* hero */
	.hero {
		position: relative;
		padding-top: calc(var(--header-h) + 50px);
		margin-bottom: 50px;
		@media (min-width: 992px) { padding-top: 140px; }
		@media (min-width: 1200px) { padding-top: 150px; }
		.container { position: relative; z-index: 1; }
	}
	.hero-split { row-gap: 0; }
	.hero-text {
		text-align: center;
		padding-bottom: 40px;
		& h1 { font-size: var(--fs-hero); margin-bottom: 15px; }
		& p { font-size: var(--fs-hero-p); margin-bottom: 30px; padding-inline: 5%; text-wrap: balance; }
		& p:not(:last-of-type) { margin-bottom: .6em; } /* the slogan and the calendar line as two short paragraphs (owner 2026-11-26), lines broken evenly */
		@media (min-width: 768px) {
			text-align: left;
			padding: 0 0 0 15px;
			& h1 { margin-bottom: 25px; }
			& p { padding: 0 5% 0 0; margin-bottom: 35px; }
		}
	}
	.hand {
		font-family: "Caveat", "Bradley Hand", "Segoe Print", cursive;
		font-weight: 700;
		font-size: 1.25em;
		line-height: 1;
		letter-spacing: 0;
		color: var(--c-violet);
	}
	/* the iPad, cut at the hero's lower edge as ATracker's phones are (the wave runs over its foot) */
	.hero-media {
		position: relative;
		clip-path: inset(-100px -100px 0 -100px);
		@media (min-width: 768px) { order: -1; }
		& img { width: min(100%, 400px); margin-inline: auto; } /* no shadow (owner 2026-11-26): it showed as a grey strip with a hard edge under the iPad, where the hero cuts it */
		@media (min-width: 992px) { & img { width: min(100%, 470px); } }
	}
	.wave {
		position: absolute;
		left: 0; bottom: 0;
		width: 100%;
		height: auto;
		aspect-ratio: 1440 / 285;
	}
	/* the same wave upside down, as the top edge of the download band (owner 2026-11-26) */
	.wave-top { bottom: auto; top: -1px; scale: 1 -1; }

	.store-badges {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px 16px;
		justify-content: center;
		@media (min-width: 768px) { justify-content: flex-start; }
		& a { display: inline-flex; }
		& img { height: clamp(44px, calc(44px + 6 * (100vw - 375px) / 1065), 50px); width: auto; }
	}
	.hero-text .store-badges { padding-top: 10px; @media (min-width: 768px) { padding-top: 24px; } }

	/* the round play button over the hero picture: ATracker's button in AJournal's purple */
	.play-btn {
		--size: clamp(70px, calc(70px + 50 * (100vw - 375px) / 1065), 120px);
		position: absolute;
		top: 50%; left: 50%;
		width: var(--size); height: var(--size);
		margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
		border-radius: 50%;
		background: var(--c-play);
		color: #fff;
		box-shadow: 0 0 0 4px rgb(255 255 255 / .85), 0 12px 28px rgb(154 128 239 / .38);
		display: grid;
		place-items: center;
		& svg { width: 58%; height: 58%; fill: currentColor; transition: scale .4s ease-in-out; }
		&::before {
			content: "";
			position: absolute;
			inset: -5px;
			border-radius: 50%;
			background: rgb(154 128 239 / .22);
			opacity: 0;
			transition: inset .4s ease-in-out, opacity .4s ease-in-out;
		}
		&:hover::before, &:focus-visible::before { inset: calc(var(--size) * -.27); opacity: .75; }
		&:hover svg { scale: .95; }
	}

	/* recognition: ATracker's laurel drawing around "Featured App" in the theme's violet, and five stars filled
	   to 4.7 over the downloads line; every size is a multiple of --u, half size at 375 px */
	.brands { padding-bottom: 0; } /* the space to the Features title comes from .features (owner 2026-11-26: a smaller gap; it was 60 + 80 to 100 px) */
	.brands-row {
		--u: clamp(.4px, 100vw / 750, 1px);
		display: flex;
		justify-content: center;
		align-items: flex-start;
		gap: clamp(calc(80 * var(--u)), calc(80px + (100vw - 750px) * 80 / 450), 160px);
	}
	.brands-laurel { flex: none; width: calc(195.1 * var(--u)); height: calc(77.6 * var(--u)); fill: var(--c-laurel); }
	.brands-rating { display: flex; flex-direction: column; align-items: center; }
	.brands-stars {
		display: flex;
		gap: calc(6 * var(--u));
		& svg { width: calc(36.4 * var(--u)); height: calc(34.8 * var(--u)); fill: var(--c-star); }
		.star-rest { fill: var(--c-star-rest); }
	}
	.brands-downloads {
		margin-top: calc(19 * var(--u));
		color: var(--c-heading);
		font-size: calc(30 * var(--u));
		line-height: 1;
		font-weight: 600;
		white-space: nowrap;
	}

	/* the text block in the band */
	.text-block h2 { font-size: var(--fs-h2); margin-bottom: clamp(16px, calc(16px + 10 * (100vw - 375px) / 1065), 26px); }

	/* Features */
	.features { padding-top: clamp(60px, calc(60px + 20 * (100vw - 375px) / 1065), 80px); }
	/* Features: one full-width row per feature, as on the original page (owner 2026-11-26; before that a grid of
	   picture cards): the picture on one side, the headline and its points on the other, the sides alternating.
	   Every second row (the 1st, 3rd, ...) lies on a full-width lilac band with straight edges, as the original page
	   alternated white and grey (owner 2026-11-26; before that each picture had its own lilac box).
	   On phones the picture comes first, then the text. */
	.feature-rows { display: grid; }
	.feature {
		position: relative;
		isolation: isolate;
		display: grid;
		gap: 24px;
		align-items: center;
		padding-block: clamp(44px, 6vw, 84px);
		@media (min-width: 768px) { grid-template-columns: 5fr 7fr; gap: 40px; }
		@media (min-width: 992px) { grid-template-columns: 1fr 1fr; gap: 56px; }
		@media (min-width: 1200px) { gap: 72px; }
		& h3 {
			font-size: var(--fs-row);
			font-weight: 600;
			letter-spacing: -0.02em;
			line-height: 1.2;
			margin-bottom: clamp(14px, calc(14px + 8 * (100vw - 375px) / 1065), 22px);
		}
		.foot { font-size: 15px; margin-top: 14px; padding-left: 32px; }
	}
	.feature:nth-child(odd)::before {
		content: "";
		position: absolute;
		z-index: -1;
		inset-block: 0;
		left: 50%;
		width: 100vw;
		translate: -50% 0;
		background: var(--c-lilac);
	}
	/* every second row: the picture on the right */
	@media (min-width: 768px) {
		.feature:nth-child(even) { grid-template-columns: 7fr 5fr; }
		.feature:nth-child(even) .feature-img { order: 2; }
	}
	@media (min-width: 992px) {
		.feature:nth-child(even) { grid-template-columns: 1fr 1fr; }
	}
	.points {
		display: flex;
		flex-direction: column;
		gap: 10px;
		& li { position: relative; padding-left: 32px; font-size: var(--fs-lead); }
		& svg { position: absolute; left: 2px; top: calc((1.6666em - 18px) / 2); width: 18px; height: 18px; color: var(--c-violet); }
	}
	/* the picture: whole, no box, with a light shadow that also holds the white collage sheets on the white rows */
	.feature-img {
		--fimg-h: 270px;
		display: grid;
		place-items: center;
		@media (min-width: 768px) { --fimg-h: 260px; }
		@media (min-width: 992px) { --fimg-h: 330px; }
		@media (min-width: 1200px) { --fimg-h: 380px; }
		@media (min-width: 1400px) { --fimg-h: 420px; }
		& img { height: var(--fimg-h); width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 12px 26px rgb(45 30 90 / .13)); }
	}

	/* FAQ, in the ATracker Testimonials section's style: white cards on a lilac band */
	.faq { padding-block: var(--section-top); }
	.faq .section-title { margin-bottom: clamp(40px, calc(40px + 20 * (100vw - 375px) / 1065), 60px); }
	.faq-band {
		position: relative;
		isolation: isolate;
		@media (min-width: 480px) {
			padding-block: clamp(40px, calc(40px + 30 * (100vw - 480px) / 960), 70px) clamp(30px, calc(30px + 30 * (100vw - 480px) / 960), 60px);
			&::before {
				content: "";
				position: absolute;
				inset: 0 12%;
				z-index: -1;
				border-radius: 28px;
				background: var(--c-lilac);
			}
		}
	}
	.faq-grid {
		display: grid;
		gap: 20px;
		padding-inline: 10px;
		@media (min-width: 768px) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	}
	.qa {
		background: #fff;
		border: 1px solid var(--c-card-border);
		border-radius: 20px;
		box-shadow: var(--shadow-card);
		padding: 25px 30px;
		@media (min-width: 768px) { padding: 35px 30px; }
		@media (min-width: 992px) { padding: 40px 35px; }
		@media (min-width: 1200px) { padding: 40px; }
		& h3 { font-size: 20px; margin-bottom: 8px; }
		& p { font-size: var(--fs-lead); }
	}
	.faq-more {
		text-align: center;
		margin-top: 30px;
		padding-inline: 16px;
		font-size: var(--fs-lead);
		color: var(--c-heading);
		& a {
			display: inline-block;
			padding-block: 8px;
			color: var(--c-violet);
			font-weight: 500;
			text-decoration: underline;
			text-underline-offset: 3px;
			text-decoration-color: rgb(74 85 168 / .45);
			&:hover { text-decoration-color: var(--c-violet); }
		}
	}

	/* Pricing: Basic and one Premium box (monthly and yearly), then Compare plans */
	.pricing {
		background: var(--c-light);
		padding-block: var(--section-top) var(--section-bottom);
		.section-title { margin-bottom: clamp(45px, calc(45px + 35 * (100vw - 375px) / 1065), 80px); }
	}
	.plans {
		display: grid;
		gap: 0 var(--gutter);
		max-width: 880px;
		margin-inline: auto;
		@media (min-width: 768px) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; }
	}
	.plan {
		display: grid;
		grid-template-rows: subgrid;
		grid-row: span 3;
		row-gap: 0;
		margin: 0 3% 40px;
		padding: 30px 28px 32px;
		background: #fff;
		border: 1px solid var(--c-card-border);
		border-radius: 24px;
		box-shadow: var(--shadow-plan);
		@media (min-width: 768px) { margin: 0 0 40px; padding: 30px 24px 35px; }
		@media (min-width: 992px) { padding: 30px 30px 35px; }
		@media (min-width: 1200px) { padding: 35px 40px 32px; }
	}
	.plan-head {
		border-bottom: 1px solid var(--c-chip-line);
		padding-bottom: 20px;
		margin-bottom: 25px;
		& h3 { font-size: var(--fs-plan); }
	}
	.plan-price { padding-bottom: 25px; }
	.price {
		position: relative;
		color: var(--c-heading);
		font-weight: 500;
		line-height: 1;
		white-space: nowrap;
		.cur { font-size: var(--fs-price-cur); position: relative; top: -7px; margin-right: 3px; }
		.int { font-size: var(--fs-price); letter-spacing: -0.5px; }
		.dec { font-size: var(--fs-price-dec); position: relative; left: -2px; letter-spacing: -0.5px; }
		.unit { font-size: 17px; font-weight: 400; color: var(--c-unit); }
	}
	.price-word { display: inline-block; padding-top: 4px; }
	/* Premium: the monthly price first, the yearly price under it with the saving pill beside it (owner 2026-11-26) */
	.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 14px; }
	.pill {
		display: inline-block;
		padding: 6px 14px;
		border-radius: 999px;
		background: var(--c-pill-bg);
		color: var(--c-violet);
		font-size: clamp(13.5px, calc(13.5px + 1.5 * (100vw - 375px) / 1065), 15px);
		font-weight: 500;
		line-height: 1.3;
		letter-spacing: 0.2px;
		white-space: nowrap;
	}
	.plan-features {
		border-top: 1px solid var(--c-chip-line);
		padding-top: 25px;
		& li { position: relative; padding-left: 28px; margin-bottom: 6px; font-size: clamp(16px, calc(16px + 1 * (100vw - 375px) / 1065), 17px); line-height: 1.6666; }
		& li svg { position: absolute; left: 0; top: calc((1.6666em - 16px) / 2); width: 16px; height: 16px; color: var(--c-violet); }
	}
	.plan-plus { font-size: clamp(16px, calc(16px + 1 * (100vw - 375px) / 1065), 17px); font-weight: 500; color: var(--c-heading); margin-bottom: 10px; }

	.compare {
		max-width: 880px;
		margin: 40px auto 0;
		@media (min-width: 1200px) { margin-top: 60px; }
		& h3 { text-align: center; font-size: var(--fs-compare); line-height: 1.2; }
	}
	.table-scroll { position: relative; overflow-x: auto; margin: clamp(36px, calc(36px + 14 * (100vw - 375px) / 1065), 50px) 0 25px; }
	.compare table {
		width: 100%;
		min-width: 340px;
		text-align: center;
		color: var(--c-heading);
		/* separate, not collapsed: collapsed borders stay behind when a sticky cell moves */
		border-collapse: separate;
		border-spacing: 0;
		font-size: clamp(15px, calc(15px + 1 * (100vw - 375px) / 1065), 16px);
		& th, & td { padding: 10px 8px; border-bottom: 1px solid var(--c-line); }
		/* the feature names stay in view if the plan columns ever scroll sideways */
		& tbody th, & thead td { position: sticky; left: 0; z-index: 1; background: var(--c-light); }
		& thead th, & thead td { border-bottom: 2px solid var(--c-heading); }
		& thead th { font-weight: 600; }
		& tbody th { font-weight: 500; } /* the feature names: medium, not bold (2026-11-26) */
		& thead td { width: 44%; }
		& thead th { width: 28%; }
		@media (min-width: 768px) { & thead td { width: 50%; } & thead th { width: 25%; } }
		& tbody th { text-align: left; }
		& td { color: var(--c-violet); font-weight: 500; }
	}
	.tick { width: 15px; height: 15px; margin-inline: auto; color: var(--c-violet); }
	.tax-note {
		text-align: center;
		font-size: var(--fs-small);
		padding-inline: 5%;
		margin: 15px 0 40px;
		@media (min-width: 992px) { padding-inline: 10%; margin-top: 25px; }
	}

	/* download band: the text beside the App Store set's devices picture (an iPad with Apple Pencil and two iPhones),
	   shown whole (owner 2026-11-26; before that the hero's iPad day page again, cut at the band's lower edge).
	   Its top edge is the hero's wave mirrored vertically: the white hangs lowest on the left, under the picture,
	   as the hero's wave rises under the iPad. */
	.download { padding-top: 24px; @media (min-width: 768px) { padding-top: 56px; } }
	.band {
		--r1: clamp(170px, 26vw, 400px);
		position: relative;
		padding-top: calc(100vw * 26 / 1440);
		.container { position: relative; z-index: 1; }
	}
	.download-split { row-gap: 30px; }
	.download .text-block {
		text-align: center;
		padding: 64px 4% 0;
		@media (min-width: 768px) { text-align: left; padding: 0; margin-top: 30px; }
		.store-badges { margin-top: 24px; gap: 12px 26px; }
	}
	.download-media { @media (min-width: 768px) { order: -1; margin-top: -30px; } }
	.dl-shot {
		padding-bottom: 36px;
		& img { width: min(78%, 360px); margin-inline: auto; filter: drop-shadow(0 18px 24px rgb(45 30 90 / .14)); }
	}
	.video-link {
		display: inline-flex;
		align-items: center;
		gap: 12px;
		min-height: 50px;
		color: var(--c-violet);
		font-size: clamp(17px, calc(17px + 1 * (100vw - 375px) / 1065), 18px);
		font-weight: 500;
		&:hover .video-ic { background: var(--c-violet); color: #fff; }
		&:hover .video-text { text-decoration: underline; text-underline-offset: 3px; }
	}
	.video-ic {
		flex: none;
		width: 44px; height: 44px;
		border-radius: 50%;
		border: 2px solid var(--c-violet);
		display: grid; place-items: center;
		transition: background-color .3s, color .3s;
		& svg { width: 22px; height: 22px; fill: currentColor; margin-left: 2px; }
	}
	/* footer */
	.site-footer {
		background: var(--c-lilac);
		border-top: 1px solid var(--c-chip-line);
		text-align: center;
		color: var(--c-heading);
		& p { font-size: 14.4px; line-height: 1.6666; padding: 4px 10px 14px; }
	}
	.footer-links {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0 32px;
		padding: 8px 16px 0;
		font-size: 14.4px;
		& a {
			display: inline-flex; align-items: center; min-height: 44px;
			color: var(--c-violet); font-weight: 500;
			text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(74 85 168 / .45);
			&:hover { text-decoration-color: var(--c-violet); }
		}
	}

	/* back-to-top button (44 px circle, fades in after 600 px) */
	.to-top {
		position: fixed;
		right: 25px; bottom: 30px;
		z-index: 40;
		width: 44px; height: 44px;
		border-radius: 50%;
		display: grid; place-items: center;
		background: rgb(31 36 64 / .45);
		color: #fff;
		opacity: 0;
		visibility: hidden;
		transition: opacity .2s, visibility .2s, background-color .4s ease-in-out;
		&[data-visible] { opacity: 1; visibility: visible; }
		&:hover { background: rgb(31 36 64 / .65); }
		& svg { width: 16px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
	}

	/* video dialog */
	.video-dialog {
		/* centred: the reset's "* { margin: 0 }" removes the browser's own "margin: auto" for dialogs, which left the
		   player in the top left corner with its close button above the screen (found 2026-11-26). The third width
		   keeps the player and the close button on screen on a phone held sideways. */
		margin: auto;
		width: min(900px, 92vw, calc((100vh - 120px) * 16 / 9));
		max-width: none;
		padding: 0;
		border: 0;
		background: #000;
		overflow: visible;
		&::backdrop { background: rgb(11 11 11 / .8); }
	}
	.video-frame { aspect-ratio: 16 / 9; & iframe { width: 100%; height: 100%; border: 0; display: block; } }
	.dialog-close {
		position: absolute;
		right: -6px; top: -48px;
		width: 44px; height: 44px;
		display: grid; place-items: center;
		color: #fff;
		& svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; }
	}
}

/* ---------- motion: the short play-once reveal (as on ATracker), from 768 px, never with Reduce motion ---------- */
@layer components {
	@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
		.reveal-on .reveal { opacity: 0; translate: 0 16px; transition: opacity .35s ease-out, translate .35s ease-out; }
		.reveal-on .reveal.is-in { opacity: 1; translate: none; }
		.reveal-on .plans > .reveal:nth-child(3n+2) { transition-delay: .06s; }
		.reveal-on .plans > .reveal:nth-child(3n+3) { transition-delay: .12s; }
	}
}

/* ---------- utilities ---------- */
@layer utilities {
	.sr-only, .sprite {
		position: absolute !important;
		width: 1px; height: 1px;
		margin: -1px; padding: 0;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
		border: 0;
	}
	.skip-link {
		position: fixed;
		left: 12px; top: -60px;
		z-index: 100;
		padding: 10px 16px;
		border-radius: 6px;
		background: var(--c-heading);
		color: #fff;
		&:focus { top: 12px; }
	}
}

/* Cookie notice on phones (as on the ATracker pages): a full-width bottom bar with "Got it!" beside the text,
   no fade-in. Unlayered and more specific than the library's rules, which load after this stylesheet. */
.cc-window.cc-floating.cc-bottom {
	left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0;
	flex-direction: row; align-items: center; gap: 1em; padding: 1em 1.2em;
}
.cc-window.cc-floating.cc-bottom.cc-type-info .cc-message { flex: 1 1 auto; margin: 0; }
.cc-window.cc-floating.cc-bottom.cc-type-info .cc-compliance { flex: none; }
.cc-window.cc-floating.cc-bottom.cc-type-info .cc-btn { min-width: 0; padding: .6em 1em; white-space: nowrap; }
.cc-window.cc-floating.cc-bottom:not(.cc-invisible) { transition: none; }
