/*
Theme Name: Mochi
Theme URI: https://mochifood.it
Author: Moreno Plaku
Description: Tema custom per il sito di Mochi, l'app per le tue ricette. Landing page, privacy policy e supporto.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mochi
*/

/* --- Fonts (self-hosted, GDPR friendly) ----------------------------------- */

@font-face {
	font-family: "Caveat";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/caveat-var.woff2") format("woff2");
}

@font-face {
	font-family: "Nunito";
	font-style: normal;
	font-weight: 200 1000;
	font-display: swap;
	src: url("assets/fonts/nunito-var.woff2") format("woff2");
}

@font-face {
	font-family: "Nunito";
	font-style: italic;
	font-weight: 200 1000;
	font-display: swap;
	src: url("assets/fonts/nunito-italic-var.woff2") format("woff2");
}

/* --- Design tokens --------------------------------------------------------- */

:root {
	--primary: #f39200;
	--primary-hover: #e08300;
	--primary-light: #ffe6c2;
	--on-primary: #ffffff;
	--secondary: #4fa82f;
	--secondary-hover: #3e8a24;
	--secondary-light: #dcefd0;
	--on-secondary: #ffffff;
	--ink: #1f1f1f;
	--bg: #faf8f4;
	--surface: #ffffff;
	--surface-muted: #f4efe6;
	--border: #efe9e0;
	--text-secondary: #6b6359;
	--success: #3e8a24;

	--font-hand: "Caveat", "Segoe Script", cursive;
	--font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 20px;
	--radius-pill: 999px;

	--shadow-card: 0 2px 8px rgba(31, 31, 31, 0.05);
	--shadow-lift: 0 14px 34px rgba(31, 31, 31, 0.12);
	--shadow-fab: 0 6px 14px rgba(243, 146, 0, 0.3);

	/* AA-safe variants: brand orange/green darkened for small text and button fills */
	--cta-bg: #d67a00;
	--cta-bg-hover: #c26e00;
	--eyebrow-orange: #9c5d00;
	--eyebrow-green: #2c621a;
	--link: #9c5d00;
	--focus: #c26e00;
	--heading-accent: #c26e00;

	--container: 1120px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--primary: #ffb04a;
		--primary-hover: #ffc270;
		--primary-light: #6e4a1f;
		--on-primary: #1f1308;
		--secondary: #6bc447;
		--secondary-hover: #82d460;
		--secondary-light: #34571e;
		--on-secondary: #0f1a07;
		--ink: #f5f0e6;
		--bg: #2e2924;
		--surface: #403930;
		--surface-muted: #37312a;
		--border: #5a4e40;
		--text-secondary: #bfb5a4;
		--success: #82d460;

		--shadow-card: 0 1px 6px rgba(0, 0, 0, 0.3);
		--shadow-lift: 0 14px 34px rgba(0, 0, 0, 0.45);
		--shadow-fab: 0 6px 14px rgba(0, 0, 0, 0.5);

		--cta-bg: #ffb04a;
		--cta-bg-hover: #ffc270;
		--eyebrow-orange: #ffb04a;
		--eyebrow-green: #82d460;
		--link: #ffc270;
		--focus: #ffb04a;
		--heading-accent: #ffb04a;
	}
}

/* --- Base ------------------------------------------------------------------ */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	overflow-x: hidden;
}

img,
svg {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--link);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--link);
	text-decoration-thickness: 2px;
}

h1,
h2,
h3,
h4 {
	line-height: 1.15;
	margin: 0 0 0.5em;
	overflow-wrap: break-word;
}

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--surface);
	color: var(--ink);
	padding: 0.75rem 1.25rem;
	border-radius: var(--radius-md);
	z-index: 200;
}

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

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

/* --- Buttons ----------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 1.17rem;
	line-height: 1;
	padding: 1rem 1.75rem;
	border-radius: var(--radius-pill);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
	background: var(--cta-bg);
	color: var(--on-primary);
	box-shadow: var(--shadow-fab);
}

.btn-primary:hover {
	background: var(--cta-bg-hover);
	color: var(--on-primary);
	transform: translateY(-2px);
}

.btn-ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--border);
}

.btn-ghost:hover {
	border-color: var(--primary);
	color: var(--link);
}

/* --- Header ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	/* opaque fallback for browsers without color-mix (Safari/iOS < 16.2) */
	background: var(--bg);
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
}

body.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 72px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
}

.brand img {
	height: 44px;
	width: auto;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 1.75rem);
}

.site-nav a {
	font-weight: 700;
	font-size: 0.97rem;
	color: var(--ink);
	text-decoration: none;
	padding: 0.35rem 0.15rem;
}

.site-nav a:hover {
	color: var(--link);
}

/* >= 18.66px bold keeps white-on-orange within the AA large-text threshold */
.site-nav .btn {
	padding: 0.62rem 1.25rem;
	font-size: 1.17rem;
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	padding: 0.5rem;
	cursor: pointer;
	color: var(--ink);
}

@media (max-width: 760px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
		display: none;
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav a {
		padding: 0.75rem 0.25rem;
		font-size: 1.05rem;
	}

	.site-nav .btn {
		justify-content: center;
		padding: 0.9rem 1.3rem;
	}
}

/* --- Hero ---------------------------------------------------------------------- */

.hero {
	position: relative;
	padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem);
}

.hero .container {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
	position: relative;
}

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 800;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--eyebrow-green);
	background: var(--secondary-light);
	padding: 0.45rem 0.9rem;
	border-radius: var(--radius-pill);
	margin-bottom: 1.25rem;
}

.hero h1 {
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: clamp(3rem, 7vw, 4.9rem);
	line-height: 1.02;
	margin-bottom: 0.35em;
}

.hero h1 .accent {
	color: var(--heading-accent);
}

.hero-sub {
	font-size: clamp(1.1rem, 1.5vw, 1.25rem);
	color: var(--text-secondary);
	max-width: 34em;
	margin: 0 0 2rem;
}

.hero-cta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem 1.25rem;
}

.hero-note {
	font-size: 0.9rem;
	color: var(--text-secondary);
	margin-top: 0.9rem;
}

.hero-note .soon-android {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

/* Decorative blobs + brand doodles */

.hero-art {
	position: relative;
	display: flex;
	justify-content: center;
}

.blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.55;
	z-index: 0;
	pointer-events: none;
}

.blob-orange {
	width: 380px;
	height: 380px;
	background: var(--primary-light);
	top: -8%;
	right: -6%;
}

.blob-green {
	width: 300px;
	height: 300px;
	background: var(--secondary-light);
	bottom: -10%;
	left: 4%;
}

.doodle {
	position: absolute;
	z-index: 3;
	pointer-events: none;
	animation: float 6s ease-in-out infinite;
}

.doodle-hat {
	width: clamp(70px, 8vw, 110px);
	top: -2rem;
	right: 0.5rem;
	transform: rotate(10deg);
}

.doodle-ladle {
	width: clamp(40px, 5vw, 64px);
	bottom: -0.5rem;
	left: 0;
	animation-delay: -3s;
	transform: rotate(-14deg);
}

@keyframes float {
	0%,
	100% {
		translate: 0 0;
	}
	50% {
		translate: 0 -14px;
	}
}

/* --- Phone mockup ----------------------------------------------------------------- */

.phone {
	position: relative;
	z-index: 2;
	width: min(320px, 78vw);
	aspect-ratio: 320 / 660;
	background: var(--ink);
	border-radius: 46px;
	padding: 10px;
	box-shadow: var(--shadow-lift);
}

@media (prefers-color-scheme: dark) {
	.phone {
		background: #14110d;
	}
}

.phone-screen {
	position: relative;
	height: 100%;
	background: var(--bg);
	border-radius: 38px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.phone-notch {
	position: absolute;
	top: 10px;
	left: 50%;
	translate: -50% 0;
	width: 34%;
	height: 24px;
	background: var(--ink);
	border-radius: var(--radius-pill);
	z-index: 5;
}

@media (prefers-color-scheme: dark) {
	.phone-notch {
		background: #14110d;
	}
}

.app-bar {
	padding: 3.2rem 1.1rem 0.6rem;
}

.app-bar-title {
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: 1.9rem;
	line-height: 1;
}

.app-search {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.7rem 1.1rem 0.8rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	padding: 0.5rem 0.9rem;
	color: var(--text-secondary);
	font-size: 0.8rem;
	font-weight: 600;
}

.app-body {
	flex: 1;
	padding: 0 1.1rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	overflow: hidden;
}

.recipe-card {
	display: flex;
	gap: 0.7rem;
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 0.55rem;
	box-shadow: var(--shadow-card);
}

.recipe-thumb {
	width: 58px;
	height: 58px;
	flex: none;
	border-radius: var(--radius-md);
	display: grid;
	place-items: center;
	color: #fff;
}

.recipe-thumb svg {
	width: 30px;
	height: 30px;
}

.recipe-meta {
	min-width: 0;
}

.recipe-title {
	font-weight: 800;
	font-size: 0.86rem;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.recipe-tags {
	display: flex;
	gap: 0.35rem;
	margin-top: 0.3rem;
}

.chip {
	font-size: 0.62rem;
	font-weight: 800;
	padding: 0.14rem 0.5rem;
	border-radius: var(--radius-pill);
	background: var(--primary-light);
	color: var(--primary-hover);
	white-space: nowrap;
}

.chip.green {
	background: var(--secondary-light);
	color: var(--secondary-hover);
}

.app-fab {
	position: absolute;
	right: 1rem;
	bottom: 4.2rem;
	width: 52px;
	height: 52px;
	border-radius: var(--radius-pill);
	background: var(--primary);
	color: var(--on-primary);
	display: grid;
	place-items: center;
	box-shadow: var(--shadow-fab);
	z-index: 4;
}

.app-tabbar {
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 0.55rem 0.6rem 1.1rem;
	background: var(--surface);
	border-top: 1px solid var(--border);
	color: var(--text-secondary);
}

.app-tabbar svg {
	width: 21px;
	height: 21px;
}

.app-tabbar .active {
	color: var(--primary);
}

/* Import screen variant */

.import-url {
	margin: 0.4rem 1.1rem 0.9rem;
	background: var(--surface);
	border: 1.5px dashed var(--primary);
	border-radius: var(--radius-lg);
	padding: 0.65rem 0.8rem;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	overflow: hidden;
	white-space: nowrap;
}

.import-status {
	margin: 0 1.1rem 0.8rem;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.78rem;
	font-weight: 800;
	color: var(--secondary-hover);
}

.spinner {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2.5px solid var(--secondary-light);
	border-top-color: var(--secondary);
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.skeleton {
	background: var(--surface-muted);
	border-radius: var(--radius-sm);
	position: relative;
	overflow: hidden;
}

.skeleton::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
	animation: shimmer 1.6s infinite;
}

@media (prefers-color-scheme: dark) {
	.skeleton::after {
		background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
	}
}

@keyframes shimmer {
	to {
		translate: 100% 0;
	}
}

/* Cooking mode variant */

.cook-step-label {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--secondary-hover);
	margin: 0 1.1rem;
}

.cook-step-text {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.45;
	margin: 0.4rem 1.1rem 1rem;
}

.timer-ring {
	position: relative;
	width: 150px;
	height: 150px;
	margin: 0.3rem auto;
}

.timer-ring svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.timer-ring .track {
	fill: none;
	stroke: var(--surface-muted);
	stroke-width: 9;
}

.timer-ring .progress {
	fill: none;
	stroke: var(--primary);
	stroke-width: 9;
	stroke-linecap: round;
	stroke-dasharray: 289;
	stroke-dashoffset: 75;
	animation: countdown 24s linear infinite;
}

@keyframes countdown {
	from {
		stroke-dashoffset: 75;
	}
	to {
		stroke-dashoffset: 289;
	}
}

.timer-value {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--font-hand);
	font-size: 2.1rem;
	font-weight: 700;
}

.cook-controls {
	display: flex;
	justify-content: center;
	gap: 0.8rem;
	margin-top: 0.5rem;
}

.cook-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-pill);
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--ink);
}

.cook-btn.primary {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--on-primary);
	width: 56px;
	height: 56px;
}

/* --- App Store badge --------------------------------------------------------------- */

.store-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	background: #000;
	color: #fff;
	border: 1.5px solid #a6a6a6;
	border-radius: 13px;
	padding: 0.55rem 1.15rem 0.6rem 0.95rem;
	text-decoration: none;
	line-height: 1.1;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.store-badge:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--shadow-lift);
}

.store-badge svg {
	width: 30px;
	height: 30px;
	flex: none;
}

.store-badge .small {
	display: block;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	opacity: 0.9;
}

.store-badge .big {
	display: block;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* --- Section headings ---------------------------------------------------------------- */

.section-head {
	max-width: 720px;
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head.center {
	margin-inline: auto;
	text-align: center;
}

.eyebrow {
	display: inline-block;
	font-weight: 800;
	font-size: 0.82rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--eyebrow-orange);
	margin-bottom: 0.6rem;
}

.section-head h2 {
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	line-height: 1.05;
}

.section-head p {
	color: var(--text-secondary);
	font-size: 1.1rem;
	margin: 0.25rem 0 0;
}

/* --- Features grid ---------------------------------------------------------------------- */

.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1rem, 2.5vw, 1.75rem);
}

.feature-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	padding: 1.75rem 1.6rem 1.6rem;
	box-shadow: var(--shadow-card);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lift);
}

.feature-icon {
	width: 52px;
	height: 52px;
	border-radius: var(--radius-md);
	display: grid;
	place-items: center;
	margin-bottom: 1.1rem;
}

.feature-icon svg {
	width: 26px;
	height: 26px;
}

.feature-icon.orange {
	background: var(--primary-light);
	color: var(--primary-hover);
}

.feature-icon.green {
	background: var(--secondary-light);
	color: var(--secondary-hover);
}

.feature-card h3 {
	font-size: 1.22rem;
	font-weight: 800;
	margin-bottom: 0.35rem;
}

.feature-card p {
	color: var(--text-secondary);
	font-size: 0.98rem;
	margin: 0;
}

@media (max-width: 900px) {
	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.features-grid {
		grid-template-columns: 1fr;
	}
}

/* --- How it works ------------------------------------------------------------------------- */

.how {
	background: var(--surface-muted);
	border-block: 1px solid var(--border);
}

.how .container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.9rem;
	counter-reset: step;
}

.step {
	position: relative;
	display: flex;
	gap: 1.2rem;
	align-items: flex-start;
}

.step-num {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: var(--radius-pill);
	background: var(--surface);
	border: 2px dashed var(--primary);
	color: var(--primary-hover);
	display: grid;
	place-items: center;
	font-family: var(--font-hand);
	font-size: 1.7rem;
	font-weight: 700;
}

.step h3 {
	font-size: 1.18rem;
	font-weight: 800;
	margin-bottom: 0.25rem;
}

.step p {
	margin: 0;
	color: var(--text-secondary);
	font-size: 0.98rem;
}

.how-art {
	display: flex;
	justify-content: center;
	position: relative;
}

@media (max-width: 860px) {
	.how .container {
		grid-template-columns: 1fr;
	}

	.how-art {
		order: -1;
	}
}

/* --- Highlight (cooking mode) ---------------------------------------------------------------- */

.highlight .container {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.highlight-art {
	display: flex;
	justify-content: center;
	position: relative;
}

.checklist {
	list-style: none;
	margin: 1.4rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.checklist li {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	font-weight: 600;
}

.checklist svg {
	flex: none;
	width: 22px;
	height: 22px;
	color: var(--secondary);
	margin-top: 0.15rem;
}

@media (max-width: 860px) {
	.highlight .container {
		grid-template-columns: 1fr;
	}
}

/* --- CTA band ------------------------------------------------------------------------------ */

.cta-band {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #faad17 0%, #f39200 55%, #f47f20 100%);
	border-radius: calc(var(--radius-xl) + 8px);
	padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
	text-align: center;
	color: #fff;
}

.cta-band h2 {
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: clamp(2.6rem, 5.5vw, 4rem);
	color: #3a2200;
	margin-bottom: 0.2em;
}

.cta-band p {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 auto 2rem;
	max-width: 36em;
	color: #4a2c00;
}

.cta-band .doodle-hat-cta {
	position: absolute;
	width: 140px;
	top: 14px;
	left: 4%;
	opacity: 0.3;
	transform: rotate(-12deg);
}

.cta-band .doodle-ladle-cta {
	position: absolute;
	width: 74px;
	bottom: 10px;
	right: 6%;
	opacity: 0.3;
	transform: rotate(16deg);
}

@media (max-width: 700px) {
	.cta-band .doodle-hat-cta,
	.cta-band .doodle-ladle-cta {
		display: none;
	}
}

.cta-band .store-badge {
	border-color: rgba(255, 255, 255, 0.6);
}

/* --- Footer ----------------------------------------------------------------------------------- */

.site-footer {
	background: var(--surface-muted);
	border-top: 1px solid var(--border);
	padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
	margin-top: clamp(3rem, 7vw, 5.5rem);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 2rem;
	margin-bottom: 2.5rem;
}

.footer-brand img {
	height: 52px;
	width: auto;
	margin-bottom: 0.9rem;
}

.footer-brand p {
	color: var(--text-secondary);
	font-size: 0.95rem;
	max-width: 30em;
	margin: 0;
}

.footer-col h3 {
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--text-secondary);
	margin-bottom: 0.9rem;
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.footer-col a {
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.98rem;
}

.footer-col a:hover {
	color: var(--link);
}

.footer-bottom {
	border-top: 1px solid var(--border);
	padding-top: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	justify-content: space-between;
	color: var(--text-secondary);
	font-size: 0.88rem;
}

@media (max-width: 760px) {
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}
}

/* --- Scroll reveal ------------------------------------------------------------------------------ */

/* hidden state only when JS is running (html.js set inline in wp_head) */
.js .reveal {
	opacity: 0;
	translate: 0 26px;
	transition: opacity 0.7s ease, translate 0.7s ease;
}

.js .reveal.is-visible {
	opacity: 1;
	translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.js .reveal {
		opacity: 1;
		translate: none;
		transition: none;
	}

	.doodle,
	.timer-ring .progress,
	.spinner,
	.skeleton::after {
		animation: none;
	}
}

/* --- Hero responsive -------------------------------------------------------------------------- */

@media (max-width: 860px) {
	.hero .container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero-sub {
		margin-inline: auto;
	}

	.hero-cta {
		justify-content: center;
	}

	.hero-art {
		margin-top: 1.5rem;
	}

	.doodle-hat {
		right: 2%;
	}
}

/* --- Inner pages (privacy, support) -------------------------------------------------------------- */

.page-hero {
	padding: clamp(2.5rem, 6vw, 4.5rem) 0 0;
}

.page-hero .eyebrow {
	color: var(--secondary-hover);
}

.entry {
	max-width: 780px;
	margin-inline: auto;
	padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem);
}

.entry h1 {
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: clamp(2.8rem, 6vw, 4.2rem);
	margin-bottom: 0.4em;
}

.entry h2 {
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: clamp(1.9rem, 3.5vw, 2.5rem);
	margin: 2em 0 0.5em;
	padding-top: 0.5em;
}

.entry h3 {
	font-size: 1.2rem;
	font-weight: 800;
	margin: 1.8em 0 0.5em;
}

.entry p,
.entry li {
	color: var(--ink);
}

.entry ul,
.entry ol {
	padding-left: 1.4em;
}

.entry li {
	margin-bottom: 0.4em;
}

.entry li::marker {
	color: var(--primary);
	font-weight: 800;
}

.entry a {
	font-weight: 700;
}

.entry .table-wrap,
.entry figure.wp-block-table {
	overflow-x: auto;
	margin: 1.5em 0;
}

.entry table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	font-size: 0.95rem;
	min-width: 560px;
}

.entry thead th {
	background: var(--surface-muted);
	text-align: left;
	font-weight: 800;
	padding: 0.8rem 1rem;
	border-bottom: 1px solid var(--border);
}

.entry tbody td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}

.entry tbody tr:last-child td {
	border-bottom: none;
}

.entry strong {
	font-weight: 800;
}

.entry hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 2.5em 0;
}

.page-updated {
	color: var(--text-secondary);
	font-size: 0.95rem;
}

/* WP niceties */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.wp-block-image img {
	border-radius: var(--radius-lg);
}
