/* Shared base for asketes.app. Tokens mirror StoicApp/docs/contracts/design-tokens.json. */

@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("/fonts/fraunces-latin-opsz-normal.woff2") format("woff2-variations");
}
@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url("/fonts/fraunces-latin-opsz-italic.woff2") format("woff2-variations");
}
@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("/fonts/dm-sans-latin-opsz-normal.woff2") format("woff2-variations");
}

:root {
	color-scheme: light dark;
	--bg: #f5f0e6;
	--card: #fffdf8;
	--sand: #ede4d3;
	--line: #e3d9c6;
	--divider: #efe7d8;
	--tint: #ddebd6;
	--on-tint: #2f4a35;
	--accent: #a9c9a4;
	--accent-strong: #8fb98a;
	--on-accent: #2f4a35;
	--text: #2b2f27;
	--muted: #69665d;
	--forest: #2f4a35;
	--ink-on-forest: #f5f0e6;
	--shadow: 0 1px 2px rgb(43 47 39 / 0.05), 0 12px 32px -12px rgb(43 47 39 / 0.18);
	--shadow-lg: 0 2px 4px rgb(43 47 39 / 0.05), 0 40px 80px -30px rgb(43 47 39 / 0.35);

	--serif: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
	--sans: "DM Sans", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
	--r-sm: 12px;
	--r: 18px;
	--r-lg: 24px;
	--r-xl: 32px;
	--gutter: clamp(16px, 4vw, 40px);
	--max: 1160px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #1a201b;
		--card: #232b24;
		--sand: #2a332b;
		--line: #334036;
		--divider: #2c352d;
		--tint: #2c3b2e;
		--on-tint: #cfe3c9;
		--accent: #a9c9a4;
		--accent-strong: #bcd6b7;
		--on-accent: #2f4a35;
		--text: #efe9dd;
		--muted: #a8ad9f;
		--forest: #121713;
		--ink-on-forest: #efe9dd;
		--shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.6);
		--shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 40px 80px -30px rgb(0 0 0 / 0.8);
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.6 var(--sans);
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img,
svg,
canvas {
	display: block;
	max-width: 100%;
}
img {
	height: auto;
}
a {
	color: inherit;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}
a:hover {
	text-decoration-thickness: 2px;
}
button {
	font: inherit;
	color: inherit;
}
:focus-visible {
	outline: 2.5px solid var(--accent-strong);
	outline-offset: 3px;
	border-radius: 6px;
}
h1,
h2,
h3,
h4 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.015em;
	margin: 0;
	text-wrap: balance;
}
p {
	margin: 0;
	text-wrap: pretty;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.skip {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--card);
	box-shadow: var(--shadow);
}
.skip:focus {
	top: 12px;
}

.wrap {
	width: min(100% - 2 * var(--gutter), var(--max));
	margin-inline: auto;
}
.narrow {
	width: min(100% - 2 * var(--gutter), 760px);
	margin-inline: auto;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	cursor: pointer;
	transition:
		transform 0.18s var(--ease),
		background-color 0.18s,
		box-shadow 0.18s;
	-webkit-tap-highlight-color: transparent;
}
.btn:active {
	transform: scale(0.97);
}
.btn-primary {
	background: var(--accent);
	color: var(--on-accent);
}
.btn-ghost {
	background: var(--card);
	border-color: var(--line);
}
@media (hover: hover) {
	.btn-primary:hover {
		background: var(--accent-strong);
	}
	.btn-ghost:hover {
		border-color: var(--accent);
	}
}
.btn-store {
	background: #0c0d0b;
	color: #fff;
	min-height: 56px;
	padding: 0 22px 0 18px;
	border-radius: 14px;
	gap: 10px;
	text-align: left;
	box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.5);
}
.btn-store svg {
	width: 26px;
	height: 26px;
	flex: none;
}
.btn-store span {
	display: grid;
	line-height: 1.1;
}
.btn-store small {
	font-size: 11px;
	font-weight: 500;
	opacity: 0.85;
}
.btn-store b {
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.01em;
}
@media (prefers-color-scheme: dark) {
	.btn-store {
		background: #fff;
		color: #0c0d0b;
	}
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--card);
	border: 1px solid var(--line);
	font-size: 14px;
	font-weight: 500;
}
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
}

/* Prose pages (privacy, terms, credits, support) */
.doc {
	padding: 56px 0 96px;
}
.doc h1 {
	font-size: clamp(36px, 6vw, 56px);
	margin-bottom: 12px;
}
.doc .lede {
	color: var(--muted);
	margin-bottom: 40px;
}
.prose h2 {
	font-size: clamp(24px, 3.4vw, 30px);
	margin: 48px 0 12px;
}
.prose h3 {
	font-size: 21px;
	margin: 32px 0 8px;
}
.prose p,
.prose ul,
.prose ol,
.prose table,
.prose blockquote {
	margin: 0 0 16px;
}
.prose ul,
.prose ol {
	padding-left: 1.3em;
}
.prose li {
	margin: 6px 0;
}
.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	display: block;
	overflow-x: auto;
}
.prose th,
.prose td {
	text-align: left;
	vertical-align: top;
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
}
.prose blockquote {
	padding: 14px 18px;
	border-radius: var(--r);
	background: var(--tint);
	color: var(--on-tint);
}
.prose code {
	font-size: 0.9em;
	padding: 1px 6px;
	border-radius: 6px;
	background: var(--sand);
}
.prose a {
	color: var(--on-tint);
	word-break: break-word;
}
@media (prefers-color-scheme: dark) {
	.prose a {
		color: var(--accent-strong);
	}
}
.notice {
	padding: 14px 18px;
	border-radius: var(--r);
	background: var(--sand);
	font-size: 15px;
	margin-bottom: 32px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

/* asketes.app/zeusweather: the app's "island floor tiles". Cream grout, glazed tiles in cobalt,
   ochre, terracotta and sage, a running-wave border and Josefin Sans. Light only, like the app's day look. */

@font-face {
	font-family: "Josefin Sans";
	font-weight: 100 700;
	font-display: swap;
	src: url("/zeusweather/fonts/JosefinSans-Variable.ttf") format("truetype");
}

:root {
	color-scheme: light;
	--grout: #efebdd;
	--glaze: #fbfaf3;
	--blue: #1437a6;
	--ink: #0e2a6b;
	--soft: #3d4e7a;
	--gold: #e0a62b;
	--pale: #cfe0fa;
	--sage: #7fa38a;
	--on-sage: #0b1f12;
	--warn: #a8431c;
	--bg: var(--grout);
	--card: var(--glaze);
	--line: #d9d1ba;
	--text: var(--ink);
	--muted: var(--soft);
	--accent: var(--blue);
	--accent-strong: var(--ink);
	--on-accent: #fff;
	--tint: var(--pale);
	--on-tint: var(--ink);
	--sans: "Josefin Sans", "Avenir Next", ui-sans-serif, -apple-system, sans-serif;
	--serif: var(--sans);
}

body { font-size: 18px; line-height: 1.55; }
section { position: relative; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; line-height: 1.04; }
h2 { font-size: clamp(32px, 4.4vw, 46px); }
.eyebrow { font-size: 13px; letter-spacing: 0.16em; color: var(--soft); font-weight: 600; }
.lede { color: var(--soft); }
.small { font-size: 15px; }
.fine { font-size: 15px; color: var(--soft); margin-top: 20px; }
.fine a { color: inherit; }
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.android-note { margin-top: 12px; font-size: 15px; color: var(--soft); }
[hidden] { display: none !important; }
.btn { background: var(--blue); color: #fff; border-radius: 4px; }
@media (hover: hover) { .btn:hover { background: var(--ink); } }
.btn-store, .btn-store:hover { background: #0c0d0b; color: #fff; border-radius: 12px; }
:focus-visible { outline-color: var(--gold); }

/* The running-wave border under every header, as in the app */
.wave { height: 18px; background: var(--ink) url("/zeusweather/wave.svg") 0 0 / auto 100% repeat-x; }

/* ---------- Tiles ---------- */
.tile { background: var(--glaze); color: var(--ink); border-radius: 3px; box-shadow: inset 0 0 0 2px var(--blue); padding: clamp(22px, 3vw, 34px); }
.t-blue { background: var(--blue); color: #fff; box-shadow: none; }
.t-sun { background: var(--gold); color: var(--ink); box-shadow: none; }
.t-cloud { background: var(--pale); color: var(--ink); box-shadow: none; }
.t-rain { background: var(--ink); color: #fff; box-shadow: none; }
.t-snow { background: #fff; color: var(--ink); }
.t-wind { background: var(--sage); color: var(--on-sage); box-shadow: none; }
.t-warn { background: var(--warn); color: #fff; box-shadow: none; }
.tile .eyebrow { color: inherit; opacity: 0.8; }
.t-blue a, .t-warn a { color: #fff; }
.tag { display: inline-block; margin-left: 8px; padding: 4px 8px 2px; border-radius: 3px; background: var(--gold); color: var(--ink); font-size: 11px; letter-spacing: 0.12em; opacity: 1; }

/* ---------- Nav + footer (shared with support and privacy) ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--grout); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font-weight: 700; font-size: 22px; line-height: 1; padding-top: 3px; }
.brand em { font-style: normal; color: var(--soft); font-weight: 400; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; }
.nav-cta { min-height: 42px; padding: 3px 18px 0; font-size: 15px; }
.btn-ghost { background: var(--glaze); color: var(--ink); border-color: var(--blue); }
.foot { padding: 48px 0 88px; font-size: 15px; color: var(--soft); border-top: 2px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .brand { margin-bottom: 10px; }
.foot .brand-mark { width: 32px; height: 32px; }
.foot-legal { margin-top: 28px; }
@media (max-width: 760px) {
	.foot-in { grid-template-columns: 1fr; }
	.foot-links { gap: 0 22px; }
	.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Support + privacy */
.doc h1 { font-size: clamp(42px, 7vw, 64px); }
.prose h2 { font-size: 30px; }
.doc .prose a, .doc .lede a { color: var(--blue); }
.prose blockquote { background: var(--pale); }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 18px 0; position: relative; font-weight: 600; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 50%;
	width: 11px;
	height: 11px;
	border-right: 2px solid var(--blue);
	border-bottom: 2px solid var(--blue);
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 22px; color: var(--soft); }

/* ---------- Zeus in his niche ---------- */
.niche { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 3px; background: url("/zeusweather/tile-star.svg") 0 0 / 50% auto repeat; }
.niche-quatre { background-image: url("/zeusweather/tile-quatre.svg"); }
.niche .arch { position: absolute; left: 9%; right: 9%; top: 7%; bottom: 0; background: var(--glaze); border: 3px solid var(--blue); border-bottom: 0; border-radius: 1000px 1000px 0 0; }
.niche img { position: absolute; left: 50%; bottom: 0; width: auto; max-width: none; height: 84%; transform: translateX(-50%); }

/* Phone screenshots, framed in CSS */
.phone { display: block; }
.phone img { width: 100%; border-radius: 30px; box-shadow: 0 0 0 5px var(--ink), 0 34px 60px -30px rgb(14 42 107 / 0.55); }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.hero-in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 70px); margin: 14px 0 0; }
.hero .lede { font-size: clamp(19px, 1.9vw, 21px); max-width: 520px; margin: 22px 0 30px; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 28px); align-items: end; max-width: 560px; justify-self: center; width: 100%; }
.hero-niche { margin-bottom: 12%; }
.hero-phone .phone { width: 100%; }

/* ---------- Highlights ---------- */
.hl { padding: clamp(28px, 5vw, 56px) 0; }
.hl-in { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hl-flip .hl-shot { order: 2; }
.hl-shot { display: flex; justify-content: center; }
.hl-shot > .phone { width: min(300px, 62vw); }
.hl-copy h2 { margin: 10px 0 16px; }
.hl-copy p + p { margin-top: 14px; }
.hl-copy .small { opacity: 0.85; }
.hl-pair { gap: clamp(14px, 3vw, 28px); align-items: flex-start; }
.hl-pair .phone { width: min(240px, 42vw); }
.hl-pair .phone + .phone { margin-top: 48px; }

.legend { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 10px 18px; justify-content: start; font-size: 16px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend b { font-weight: 600; }
.chip { width: 22px; height: 22px; border-radius: 2px; flex: none; padding: 0; }
.chip.t-snow { box-shadow: inset 0 0 0 2px var(--blue); }

.widgets { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; width: min(480px, 100%); align-items: start; }
.widgets img { width: 100%; filter: drop-shadow(0 14px 22px rgb(14 42 107 / 0.22)); }
.w-large { grid-row: span 2; }
.w-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
.w-lock { padding: 6%; }

/* A row of small tiles */
.more { padding: 8px 0 clamp(48px, 7vw, 88px); }
.more-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.more-grid li { display: grid; gap: 8px; align-content: start; }
.more-grid b { font-size: 21px; }
.more-grid span { font-size: 16px; }

/* ---------- Free and Premium ---------- */
.plans { padding: clamp(48px, 7vw, 80px) 0; }
.plans-h { text-align: center; margin-bottom: 28px; }
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 860px; margin: 0 auto; }
.plan h3 { font-size: 26px; margin-bottom: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { display: flex; gap: 12px; align-items: baseline; }
.plan li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--gold); transform: translateY(-1px) rotate(45deg); }
.plan .small { margin-top: 18px; opacity: 0.9; }
.privacy { max-width: 860px; margin: 10px auto 0; font-size: 16px; }

/* ---------- Final ---------- */
.final { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.final-in { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; max-width: 820px; }
.final h2 { font-size: clamp(34px, 5vw, 52px); }
.final .lede { margin: 14px 0 24px; }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
	.hero-in, .hl-in { grid-template-columns: 1fr; }
	.hero-art { max-width: 440px; }
	.hl-copy { order: -1; }
	.hl-flip .hl-shot { order: 0; }
	.more-grid, .plans-grid { grid-template-columns: 1fr; }
	.final-in { grid-template-columns: 1fr; justify-items: start; }
	.final-niche { width: 180px; }
}
@media (max-width: 420px) {
	.legend { grid-template-columns: repeat(2, auto); }
	.phone img { border-radius: 22px; box-shadow: 0 0 0 4px var(--ink), 0 24px 40px -24px rgb(14 42 107 / 0.55); }
	.nav-cta { padding: 3px 14px 0; }
	.brand { font-size: 20px; }
}
