/* Athlyra site styles */

:root {
	--ath-bg: #f6f6fa;
	--ath-ink: #17171c;
	--ath-muted: #767680;
	--ath-primary: #6657e8;
	--ath-recovery: #5e63d8;
	--ath-sleep: #7e8ae8;
	--ath-weight: #32b875;
	--ath-stress: #f35f5f;
	--ath-border: #e4e4ea;
	--ath-card: rgba(255, 255, 255, 0.86);
	--ath-radius-sm: 14px;
	--ath-radius-md: 20px;
	--ath-radius-lg: 30px;
	--ath-shadow: 0 10px 40px rgba(23, 23, 28, 0.06);
	--ath-glow: 0 8px 32px rgba(102, 87, 232, 0.18);
}

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

html {
	scroll-behavior: smooth;
}

body {
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(102, 87, 232, 0.08), transparent 60%),
		radial-gradient(900px 500px at 100% 0%, rgba(126, 138, 232, 0.1), transparent 55%),
		var(--ath-bg);
	color: var(--ath-ink);
	overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible,
.wp-block-navigation-item__content:focus-visible {
	outline: 2px solid var(--ath-primary);
	outline-offset: 3px;
}

.ath-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 9999;
	padding: 0.75rem 1rem;
	background: var(--ath-ink);
	color: #fff;
	border-radius: 0 0 8px 0;
	text-decoration: none;
}

.ath-skip-link:focus {
	left: 0;
}

/* Header */
.ath-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	background: rgba(246, 246, 250, 0.82);
	border-bottom: 1px solid rgba(228, 228, 234, 0.7);
}

.ath-header .wp-block-group {
	min-height: 72px;
}

.ath-logo-mark {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: var(--ath-ink);
	font-weight: 700;
	font-size: 1.15rem;
}

.ath-logo-mark img {
	width: 160px;
	height: auto;
}

.ath-header-cta .wp-block-button__link {
	padding: 0.65rem 1.2rem !important;
	font-size: 0.9rem !important;
}

/* Sections */
.ath-section {
	padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
}

.ath-eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ath-primary);
	margin-bottom: 0.75rem;
}

.ath-lead {
	color: var(--ath-muted);
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
	max-width: 38rem;
}

.ath-card {
	background: var(--ath-card);
	border: 1px solid rgba(228, 228, 234, 0.9);
	border-radius: var(--ath-radius-md);
	box-shadow: var(--ath-shadow);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.ath-feature-list {
	list-style: none;
	padding: 0;
	margin: 1.25rem 0 0;
	display: grid;
	gap: 0.65rem;
}

.ath-feature-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	color: var(--ath-ink);
	font-weight: 500;
}

.ath-feature-list li::before {
	content: "";
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	margin-top: 0.45rem;
	border-radius: 50%;
	background: var(--ath-primary);
	box-shadow: 0 0 0 4px rgba(102, 87, 232, 0.12);
}

/* Phone / device frames */
.ath-phone {
	width: min(100%, 360px);
	margin-inline: auto;
	border-radius: 36px;
	padding: 10px;
	background: linear-gradient(160deg, #2a2a32, #17171c);
	box-shadow: var(--ath-glow), 0 24px 60px rgba(23, 23, 28, 0.18);
}

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

.ath-phone--sm {
	width: min(100%, 300px);
}

.ath-device-float {
	animation: ath-float 6s ease-in-out infinite;
}

.ath-piko-assist {
	width: min(140px, 32vw);
	border-radius: var(--ath-radius-md);
	box-shadow: var(--ath-shadow);
	border: 1px solid var(--ath-border);
}

/* Status rings */
.ath-status-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1rem;
}

.ath-ring-card {
	text-align: center;
	padding: 1.25rem 0.75rem;
	border-radius: var(--ath-radius-md);
	background: var(--ath-card);
	border: 1px solid var(--ath-border);
	box-shadow: var(--ath-shadow);
}

.ath-ring {
	--value: 50;
	--ring-color: var(--ath-primary);
	width: 88px;
	height: 88px;
	margin: 0 auto 0.75rem;
	border-radius: 50%;
	background:
		radial-gradient(closest-side, #fff 72%, transparent 73% 100%),
		conic-gradient(var(--ring-color) calc(var(--value) * 1%), #ececf2 0);
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--ath-ink);
}

.ath-ring-card small {
	display: block;
	color: var(--ath-muted);
	font-size: 0.8rem;
	margin-top: 0.15rem;
}

.ath-ring--readiness { --ring-color: var(--ath-primary); }
.ath-ring--recovery { --ring-color: var(--ath-recovery); }
.ath-ring--stress { --ring-color: var(--ath-stress); }
.ath-ring--performance { --ring-color: #f0a23a; }
.ath-ring--body { --ring-color: var(--ath-weight); }

/* Piko demo */
.ath-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1rem;
}

.ath-chip {
	display: inline-block;
	padding: 0.55rem 0.9rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--ath-border);
	color: var(--ath-ink);
	font-size: 0.875rem;
	font-weight: 500;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ath-chip:hover {
	border-color: var(--ath-primary);
	box-shadow: var(--ath-glow);
	transform: translateY(-1px);
}

.ath-plan-card {
	padding: 1.5rem;
	border-radius: var(--ath-radius-md);
	background: linear-gradient(160deg, rgba(102, 87, 232, 0.08), rgba(255, 255, 255, 0.9));
	border: 1px solid var(--ath-border);
}

.ath-plan-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.ath-plan-btn {
	appearance: none;
	border: 1px solid var(--ath-border);
	background: #fff;
	color: var(--ath-ink);
	border-radius: 999px;
	padding: 0.55rem 1rem;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ath-plan-btn.is-active,
.ath-plan-btn:hover {
	background: var(--ath-primary);
	border-color: var(--ath-primary);
	color: #fff;
}

.ath-plan-output {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: var(--ath-radius-sm);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--ath-border);
	color: var(--ath-muted);
	font-size: 0.95rem;
	min-height: 4.5rem;
}

/* FAQ */
.ath-faq details {
	background: var(--ath-card);
	border: 1px solid var(--ath-border);
	border-radius: var(--ath-radius-sm);
	padding: 1rem 1.15rem;
	margin-bottom: 0.75rem;
	box-shadow: var(--ath-shadow);
}

.ath-faq summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--ath-ink);
	list-style: none;
}

.ath-faq summary::-webkit-details-marker {
	display: none;
}

.ath-faq summary::after {
	content: "+";
	float: right;
	color: var(--ath-primary);
	font-weight: 700;
}

.ath-faq details[open] summary::after {
	content: "–";
}

.ath-faq details p {
	margin: 0.85rem 0 0;
	color: var(--ath-muted);
}

/* Feature modules / support categories */
.ath-module-grid,
.ath-category-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.ath-module,
.ath-category {
	padding: 1.5rem;
	border-radius: var(--ath-radius-md);
	background: var(--ath-card);
	border: 1px solid var(--ath-border);
	box-shadow: var(--ath-shadow);
	height: 100%;
}

.ath-module img {
	border-radius: var(--ath-radius-sm);
	margin-bottom: 1rem;
	width: 100%;
	max-height: 220px;
	object-fit: cover;
}

.ath-download-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
	margin-top: 1.5rem;
}

.ath-qr {
	width: 140px;
	height: 140px;
	border-radius: var(--ath-radius-sm);
	border: 1px solid var(--ath-border);
	background: #fff;
	padding: 8px;
}

.ath-legal-wrap {
	padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.ath-legal {
	max-width: 800px;
	margin-inline: auto;
}

.ath-lang-switch {
	display: inline-flex;
	gap: 0.35rem;
	padding: 0.25rem;
	margin-bottom: 1.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--ath-border);
	box-shadow: var(--ath-shadow);
}

.ath-lang-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--ath-muted);
	font-weight: 600;
	font-size: 0.875rem;
	padding: 0.5rem 0.95rem;
	border-radius: 999px;
	cursor: pointer;
}

.ath-lang-btn.is-active {
	background: var(--ath-primary);
	color: #fff;
}

.ath-legal-header h1 {
	margin: 0 0 0.5rem;
}

.ath-legal-meta {
	color: var(--ath-muted);
	font-size: 0.95rem;
	margin: 0 0 1rem;
}

.ath-legal-intro,
.ath-legal-notice {
	color: var(--ath-ink);
	line-height: 1.65;
	padding: 1rem 1.15rem;
	border-radius: var(--ath-radius-sm);
	background: rgba(102, 87, 232, 0.06);
	border: 1px solid rgba(102, 87, 232, 0.12);
}

.ath-legal-section {
	margin-top: 2rem;
	padding-top: 0.25rem;
}

.ath-legal-section h2 {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
}

.ath-legal-section h3 {
	margin: 1rem 0 0.5rem;
	font-size: 1rem;
	color: var(--ath-ink);
}

.ath-legal-list {
	padding-left: 1.2rem;
	margin: 0;
	color: var(--ath-muted);
}

.ath-legal-list li {
	margin-bottom: 0.45rem;
	line-height: 1.55;
}

.ath-perm-card {
	padding: 1.25rem 1.35rem;
	border-radius: var(--ath-radius-md);
	background: var(--ath-card);
	border: 1px solid var(--ath-border);
	box-shadow: var(--ath-shadow);
}

.ath-perm-badge {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	vertical-align: middle;
	background: rgba(102, 87, 232, 0.1);
	color: var(--ath-primary);
}

.ath-legal-revoke {
	margin: 1rem 0 0;
	color: var(--ath-ink);
	font-size: 0.95rem;
}

.ath-legal-pane[hidden] {
	display: none !important;
}

/* Footer */
.ath-footer {
	background: #111116;
	color: #c8c8d0;
	padding-block: 3.5rem 2rem;
	margin-top: 2rem;
}

.ath-footer a {
	color: #e8e8ef;
	text-decoration: none;
}

.ath-footer a:hover {
	color: #fff;
}

.ath-footer .ath-muted {
	color: #8a8a96;
}

.ath-footer-cols {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 2rem;
}

.ath-footer-cols h3 {
	color: #fff;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 1rem;
}

.ath-footer-cols ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.55rem;
}

.ath-footer-bottom {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.875rem;
	color: #8a8a96;
}

/* Animations */
.ath-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.65s ease, transform 0.65s ease;
}

.ath-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@keyframes ath-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

@keyframes ath-glow-pulse {
	0%, 100% { box-shadow: var(--ath-glow); }
	50% { box-shadow: 0 12px 40px rgba(102, 87, 232, 0.28); }
}

.ath-glow {
	animation: ath-glow-pulse 4s ease-in-out infinite;
}

.wp-block-button__link {
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: var(--ath-glow);
}

.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1.5px solid var(--ath-primary);
	color: var(--ath-primary);
}

/* Editor niceties */
.editor-styles-wrapper .ath-status-grid {
	gap: 0.75rem;
}

/* Responsive */
@media (max-width: 960px) {
	.ath-status-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ath-footer-cols {
		grid-template-columns: 1fr 1fr;
	}

	.ath-module-grid,
	.ath-category-grid {
		grid-template-columns: 1fr;
	}

	.ath-phone {
		width: min(100%, 310px);
	}
}

@media (max-width: 640px) {
	.ath-status-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ath-footer-cols {
		grid-template-columns: 1fr;
	}

	.ath-phone {
		width: min(100%, 280px);
		border-radius: 30px;
	}

	.ath-phone img {
		border-radius: 22px;
	}
}

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

	.ath-reveal,
	.ath-device-float,
	.ath-glow,
	.wp-block-button__link,
	.ath-chip,
	.ath-plan-btn {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}
