/* WeJons theme — main stylesheet */

:root {
	--sky: #CDEBFF;
	--light-blue: #E6F4FF;
	--page-bg: #F5FAFF;
	--navy: #102A43;
	--text: #334E68;
	--blue: #1D4ED8;
	--blue-soft: #DBEAFE;
	--card-shadow: #9CCFF0;
	--panel-shadow: #D9E2EC;
	--yellow: #FFC531;
	--yellow-shadow: #D99A00;
	--yellow-text: #3B2300;
	--cream: #FFF8E7;
	--white: #FFFFFF;
	--grass-light: #8FD694;
	--grass-dark: #5FBF6A;

	--radius-card: 26px;
	--radius-pill: 999px;
	--max: 1160px;
	--gutter: 20px;
}

@font-face {
	font-family: "Fredoka";
	src: url("../fonts/Fredoka-Variable.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Fredoka", sans-serif;
	font-weight: 500;
	font-size: 17px;
	line-height: 1.55;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--navy); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 100; top: 8px; left: 8px;
	padding: 12px 18px; background: var(--white); border-radius: 12px;
}

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 26px;
	border: 0; border-radius: var(--radius-pill);
	font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
	transition: transform .08s ease, box-shadow .08s ease;
}
.btn--yellow { background: var(--yellow); color: var(--yellow-text); box-shadow: 0 6px 0 var(--yellow-shadow); }
.btn--yellow:hover { filter: brightness(1.04); }
.btn--yellow:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--yellow-shadow); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 19px; }

/* Header */
.site-header { background: var(--white); box-shadow: 0 4px 0 var(--card-shadow); position: relative; z-index: 10; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.site-header__logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-header__logo img { height: 40px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.site-nav a:not(.btn) {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
	color: var(--navy); text-decoration: none; font-weight: 600; border-radius: var(--radius-pill);
}
.site-nav a:not(.btn):hover { background: var(--light-blue); }

/* Shared sections */
section { position: relative; }
.section-title { font-size: clamp(28px, 4vw, 40px); }
.card { background: var(--white); border-radius: var(--radius-card); box-shadow: 0 8px 0 var(--card-shadow); }
.card--flat { box-shadow: 0 6px 0 var(--panel-shadow); }
.tag {
	display: inline-block; margin: 0 0 18px; padding: 8px 16px;
	background: var(--white); color: var(--blue); font-weight: 600; font-size: 15px;
	border-radius: var(--radius-pill);
}

/* App store "coming soon" pills (own drawings, no official badges) */
.store-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; padding: 0; }
.store-pill {
	display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 22px 8px 16px;
	background: var(--white); color: var(--navy); font-weight: 600; font-size: 17px;
	border-radius: var(--radius-pill); box-shadow: 0 6px 0 var(--card-shadow);
}
.store-pill svg {
	flex: none; width: 26px; height: 26px; fill: none; stroke: var(--blue);
	stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Hero */
.hero { background: var(--sky); overflow: hidden; padding: 64px 0 150px; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; position: relative; z-index: 1; }
.hero__title { font-size: clamp(36px, 5.4vw, 58px); }
.hero__lead { font-size: 19px; max-width: 560px; }
.hero__art { display: flex; flex-direction: column; align-items: center; }
.hero__otter { width: 340px; max-width: 100%; }
.hero__otter .otter { display: block; width: 100%; height: auto; }
.bubble {
	position: relative; margin: 0 0 18px; padding: 14px 22px;
	background: var(--white); color: var(--navy); font-weight: 600; font-size: 18px;
	border-radius: 22px; box-shadow: 0 6px 0 var(--card-shadow); text-align: center;
}
.bubble::after {
	content: ""; position: absolute; left: 50%; bottom: -12px; margin-left: -12px;
	border: 12px solid transparent; border-bottom: 0; border-top-color: var(--white);
}
.hero__cloud { position: absolute; height: auto; pointer-events: none; }
.hero__cloud--1 { width: 150px; top: 36px; left: 4%; }
.hero__cloud--2 { width: 110px; top: 110px; right: 8%; opacity: .9; }
.hero__cloud--3 { width: 180px; top: 48%; left: 44%; opacity: .7; }
.hero__grass { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; display: block; }

.otter--wave { animation: wejons-float 2s ease-in-out infinite; }
@keyframes wejons-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
	.otter--wave { animation: none; }
	html { scroll-behavior: auto; }
	.btn { transition: none; }
}

/* Features */
.features { background: var(--light-blue); padding: 72px 0 84px; }
.features .section-title { text-align: center; margin-bottom: 40px; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { padding: 28px 24px; }
.feature h3 { font-size: 21px; }
.feature p { margin: 0; }
.feature__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 64px; height: 64px; margin-bottom: 18px; border-radius: 18px; background: var(--icon-bg);
}
.feature__icon svg, .checklist__icon svg {
	width: 34px; height: 34px; fill: none; stroke: var(--icon-line, var(--blue));
	stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__text p { font-size: 19px; }
.split__art { justify-self: center; }

/* Levels */
.levels { background: var(--white); padding: 80px 0; }
.levels__grid { display: grid; grid-template-columns: repeat(2, 96px); gap: 22px; }
.level {
	display: flex; align-items: center; justify-content: center; width: 96px; height: 96px;
	background: var(--level); box-shadow: 0 8px 0 var(--level-shadow); border-radius: var(--radius-card);
	color: var(--white); font-weight: 700; font-size: 32px;
}

/* Parents */
.parents { background: var(--cream); padding: 80px 0; }
.parents__otter { width: 260px; max-width: 100%; }
.parents__otter .otter { display: block; width: 100%; height: auto; }
.checklist { list-style: none; margin: 8px 0 24px; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; color: var(--navy); font-weight: 600; font-size: 19px; }
.checklist__icon {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; background: var(--white); border-radius: 16px; box-shadow: 0 4px 0 #F1DFB5;
}
.checklist__icon svg { width: 28px; height: 28px; }
.parents__note { margin: 0; }

/* Final call to action */
.cta { background: var(--blue); color: var(--white); padding: 80px 0; text-align: center; }
.cta .section-title { color: var(--white); }
.cta p { color: var(--blue-soft); font-size: 19px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta .btn { margin-top: 12px; }

/* Footer */
.site-footer { background: var(--navy); color: #BCCCDC; padding: 48px 0 28px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.site-footer__brand img { height: 36px; width: auto; display: block; margin-bottom: 12px; }
.site-footer__brand p { margin: 0; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--white); text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__copy { margin: 20px 0 0; font-size: 15px; }

/* Inner pages */
.page-hero { background: var(--sky); padding: 48px 0; }
.page-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-hero__title { font-size: clamp(32px, 5vw, 48px); }
.page-hero__meta { margin: 0 0 4px; font-weight: 500; }
.page-hero .btn { margin-top: 16px; }
.page-hero__mark { height: 110px; width: auto; flex: none; }

.page-body { background: var(--page-bg); padding: 48px 0 72px; }
.page-body__inner { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.toc { padding: 24px; position: sticky; top: 24px; }
.toc[hidden] { display: none; }
.toc__title { font-size: 20px; }
.toc__list { margin: 0; padding: 0 0 0 20px; }
.toc__list li { margin: 0; }
.toc__list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.toc__list a:hover { text-decoration: underline; }
.page-body__inner:has(.toc[hidden]) { grid-template-columns: 1fr; }

.entry-content { padding: 36px 40px; font-size: 18px; line-height: 1.7; min-width: 0; }
.entry-content h2 { font-size: 28px; margin-top: 1.4em; scroll-margin-top: 24px; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { font-size: 22px; margin-top: 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content > :last-child { margin-bottom: 0; }
.post-item { margin-bottom: 28px; }

/* Support: contact card */
.contact-card {
	display: flex; align-items: center; gap: 18px; margin: 0 0 32px; padding: 22px 24px;
	background: var(--light-blue); border-radius: 22px; box-shadow: 0 6px 0 var(--card-shadow);
}
.contact-card__icon {
	flex: none; width: 52px; height: 52px; padding: 10px; background: var(--white); border-radius: 16px;
	fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.contact-card p { margin: 0; }
.contact-card__title { color: var(--navy); font-weight: 700; font-size: 20px; }
.contact-card__title a { display: inline-block; padding: 8px 0; overflow-wrap: anywhere; }
.contact-card__note { font-size: 16px; }

/* Responsive */
@media (max-width: 960px) {
	.features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	.hero { padding: 40px 0 130px; }
	.hero__inner, .split, .page-body__inner { grid-template-columns: 1fr; }
	.hero__otter { width: 260px; }
	.hero__cloud--3 { display: none; }
	.features__grid { grid-template-columns: 1fr; }
	.split { gap: 32px; }
	.toc { position: static; }
	.entry-content { padding: 28px 22px; }
	.page-hero__mark { height: 80px; }
	.site-header__inner { justify-content: center; }
	.site-nav { justify-content: center; }
}
