/*
Theme Name:   CuteTyping
Theme URI:    https://example.com/cutetype
Description:  Pastel, fast and SEO-friendly theme for the CuteTyping typing test website. Pair with the "CuteTyping Typing Engine" plugin. Includes structured data and a cute character homepage.
Author:       CuteTyping
Version:      1.1.0
Requires at least: 6.3
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  cutetype
Tags:         education, one-column, two-columns, custom-logo, custom-menu, accessibility-ready
*/

:root {
	--pink: #ff7eb6;
	--pink-deep: #e2569a;
	--pink-soft: #ffe3ef;
	--pink-mid: #ffc6dd;
	--lav: #8b6fd6;
	--lav-soft: #f3eeff;
	--lav-mid: #d9ccff;
	--ink: #4a3b5c;
	--muted: #7d7090;
	--bg: #fffbfd;
	--white: #fff;
	--radius: 24px;
	--shadow: 0 10px 30px rgba(139, 111, 214, .13);
	--font: ui-rounded, "Nunito", "Segoe UI Rounded", "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--pink-deep); text-underline-offset: 3px; }
a:hover { color: var(--lav); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 99px; }
.skip-link:focus { left: 8px; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 800px; }
.wide { max-width: 1060px; }
.center { text-align: center; }
.center-flex { justify-content: center; }

/* Buttons & small UI */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 800; text-decoration: none; color: #fff;
	background: linear-gradient(135deg, #ff86bb 0%, #c99cff 100%); box-shadow: 0 8px 20px rgba(255, 126, 182, .35), inset 0 -3px 0 rgba(0,0,0,.06); border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; font-family: inherit; font-size: 1rem; white-space: nowrap; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 126, 182, .45); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: #fff; color: var(--lav); box-shadow: inset 0 0 0 2px var(--lav-mid); }
.btn-ghost:hover { color: var(--lav); box-shadow: inset 0 0 0 2px var(--lav); }
.btn-white { background: #fff; color: var(--pink-deep); box-shadow: 0 10px 24px rgba(74, 59, 92, .18); }
.btn-white:hover { color: var(--pink-deep); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--pink-deep); font-weight: 800; padding: 7px 16px; border-radius: 999px; font-size: .9rem; text-decoration: none; margin: 0 0 18px; box-shadow: 0 4px 14px rgba(255, 126, 182, .18); }
.eyebrow { color: var(--pink-deep); font-weight: 800; font-size: .95rem; margin: 0 0 6px; }
.eyebrow::before { content: "♡ "; }
.text-link { font-weight: 800; text-decoration: none; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; padding: 9px 14px; border-radius: 999px; background: var(--lav-soft); color: var(--ink); font-weight: 800; text-decoration: none; transition: background .15s, color .15s, transform .15s; }
.chip:hover { color: var(--ink); background: var(--lav-mid); }
.chip.is-active { background: var(--pink); color: #fff; box-shadow: 0 4px 12px rgba(255,126,182,.4); }

/* Top announcement bar */
.topbar { position: relative; z-index: 61; background: linear-gradient(90deg, #ff8fc0, #b99cff); color: #fff; font-size: .88rem; font-weight: 700; }
.topbar-inner { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 38px; flex-wrap: wrap; text-align: center; }
.topbar-msg { display: inline-flex; align-items: center; gap: 8px; }
.topbar-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.topbar-link { color: #fff; background: rgba(255,255,255,.22); padding: 3px 12px; border-radius: 999px; text-decoration: none; }
.topbar-link:hover { color: #fff; background: rgba(255,255,255,.35); }
@media (max-width: 600px) { .topbar-msg { display: none; } }

/* Header – floating pill navigation */
.site-header { position: sticky; top: 0; z-index: 60; padding: 12px 0; transition: padding .2s; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { padding: 6px 0; }
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(255, 255, 255, .86);
	backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px);
	border: 1.5px solid #fbe3ef; border-radius: 999px; padding: 8px 8px 8px 14px; box-shadow: 0 8px 26px rgba(139, 111, 214, .10); transition: box-shadow .2s; }
.is-scrolled .nav-shell { box-shadow: 0 12px 34px rgba(139, 111, 214, .2); }
.site-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #ffe0ee, #ece3ff); transition: transform .3s; }
.site-brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-mark .site-logo-mark { width: 36px; height: 36px; }
.site-title { font-weight: 900; font-size: 1.45rem; letter-spacing: -.02em; background: linear-gradient(135deg, var(--pink-deep), var(--lav)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.custom-logo { max-height: 46px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 2px; }
.site-nav li { position: relative; display: flex; align-items: center; }
.site-nav > ul > li > a { display: block; padding: 9px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: .98rem; transition: background .15s, color .15s; }
.site-nav > ul > li > a:hover, .site-nav > ul > li.is-open > a { background: var(--pink-soft); color: var(--pink-deep); }
.site-nav > ul > .current-menu-item > a, .site-nav > ul > .current-menu-ancestor > a { color: var(--pink-deep); background: var(--pink-soft); }
.site-nav .menu-item-has-children > a { padding-right: 4px; }
.sub-toggle { display: grid; place-items: center; width: 26px; height: 30px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; margin-left: -2px; transition: transform .2s, color .15s; }
.sub-toggle:hover { color: var(--pink-deep); }
.is-open > .sub-toggle { transform: rotate(180deg); color: var(--pink-deep); }

.site-nav .sub-menu { position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px); min-width: 240px; background: #fff; border-radius: 22px;
	box-shadow: 0 20px 50px rgba(74, 59, 92, .18); border: 1.5px solid #f6e8f2; padding: 10px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 10; }
.site-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.site-nav li:hover > .sub-menu, .site-nav li.is-open > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.site-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 700; }
.site-nav .sub-menu a:hover { background: var(--lav-soft); color: var(--ink); }
.site-nav .sub-menu.mega { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 560px; }
.mega a { display: flex !important; gap: 12px; align-items: center; }
.mega-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--pink-soft); font-size: 1.15rem; transition: transform .2s; }
.mega li:nth-child(even) .mega-ico { background: var(--lav-soft); }
.mega a:hover .mega-ico { transform: scale(1.08) rotate(-6deg); }
.mega-txt { display: flex; flex-direction: column; line-height: 1.3; }
.mega-txt small { color: var(--muted); font-weight: 600; font-size: .82rem; }

.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.best-chip { display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: 999px; background: var(--lav-soft); color: var(--lav); text-decoration: none; font-weight: 800; font-size: .9rem; }
.best-chip[hidden] { display: none; }
.best-chip b { color: var(--pink-deep); font-size: 1.02rem; }
.best-chip-heart { color: var(--pink); }
.best-chip-label, .best-chip-unit { color: var(--muted); }
.nav-cta-mobile { display: none; }

.menu-toggle { display: none; background: var(--pink-soft); border: 0; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; position: relative; flex: none; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { position: absolute; left: 13px; width: 20px; height: 2.5px; border-radius: 2px; background: var(--pink-deep); content: ""; transition: transform .2s, background .2s; }
.menu-toggle-bars { top: 22px; }
.menu-toggle-bars::before { left: 0; top: -7px; }
.menu-toggle-bars::after { left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
	.menu-toggle { display: block; }
	.site-nav { position: absolute; left: 20px; right: 20px; top: calc(100% - 2px); background: #fff; border-radius: 28px; padding: 14px; box-shadow: 0 24px 50px rgba(74, 59, 92, .2);
		border: 1.5px solid #f6e8f2; max-height: calc(100vh - 120px); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
	.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.site-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
	.site-nav li { flex-wrap: wrap; }
	.site-nav > ul > li > a { flex: 1; padding: 13px 16px; font-size: 1.05rem; }
	.sub-toggle { width: 46px; height: 46px; background: var(--lav-soft); border-radius: 50%; }
	.site-nav .sub-menu, .site-nav .sub-menu.mega { position: static; transform: none; opacity: 1; visibility: visible; display: none; width: 100%; box-shadow: none; border: 0; padding: 6px 0 4px; background: none; }
	.site-nav .sub-menu.mega { grid-template-columns: 1fr; }
	.site-nav li.is-open > .sub-menu { display: grid; transform: none; }
	.site-nav li:hover > .sub-menu:not(.is-open) { transform: none; }
	.nav-cta-mobile { display: flex; margin-top: 10px; width: 100%; }
	.nav-cta { display: none; }
}
@media (max-width: 480px) { .best-chip-label, .best-chip-unit { display: none; } .site-title { font-size: 1.25rem; } .brand-mark { width: 40px; height: 40px; } }

/* Hero */
.hero { position: relative; overflow: hidden; margin-top: -98px; padding: 138px 0 34px;
	background: radial-gradient(800px 460px at 88% 18%, #ece3ff 0%, transparent 62%), radial-gradient(760px 420px at 0% 85%, #ffe0ee 0%, transparent 62%), linear-gradient(180deg, #fff6fa, #fffbfd); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; z-index: 1; }
.hero-title { font-size: clamp(2.3rem, 5.4vw, 3.7rem); line-height: 1.08; margin: 0 0 18px; text-wrap: balance; }
.hl { position: relative; white-space: nowrap; background: linear-gradient(135deg, #ff6fae, #a07cf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: .3em; z-index: -1;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8c18-6 36-6 58-1s38 5 58-2' fill='none' stroke='%23ffb6d5' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin: 0 0 26px; }
.quickstart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; background: #fff; border-radius: 28px; padding: 14px 14px 14px 20px; box-shadow: var(--shadow); max-width: 580px; border: 1.5px solid #fbe6f0; }
.quickstart-label { font-weight: 800; font-size: .9rem; color: var(--muted); width: 100%; margin-bottom: -4px; }
.quickstart-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.hero-points { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-weight: 700; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e8fbf0; color: #2fae6b; font-size: .75rem; }

.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.deco { position: absolute; color: var(--pink-mid); font-size: 26px; animation: drift 7s ease-in-out infinite; }
.deco--star { color: var(--lav-mid); }
.deco--cloud { width: 110px; height: 36px; background: #fff; border-radius: 40px; opacity: .8; box-shadow: 0 6px 20px rgba(139,111,214,.08); }
.deco--cloud::before, .deco--cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.deco--cloud::before { width: 46px; height: 46px; left: 18px; top: -22px; }
.deco--cloud::after { width: 34px; height: 34px; left: 54px; top: -14px; }
.d1 { left: 4%; top: 24%; } .d2 { left: 46%; top: 16%; font-size: 20px; animation-delay: -2s; } .d3 { left: 40%; bottom: 22%; font-size: 18px; animation-delay: -4s; }
.d4 { right: 3%; bottom: 30%; animation-delay: -1s; } .d5 { left: 52%; top: 9%; animation-duration: 12s; } .d6 { right: 6%; top: 12%; transform: scale(.7); animation-duration: 14s; animation-delay: -5s; }
@keyframes drift { 50% { transform: translate(10px, -12px) rotate(8deg); } }

/* Hero illustration */
.hero-art { position: relative; display: flex; justify-content: center; padding-top: 70px; }
.hero-glow { position: absolute; width: 430px; height: 430px; border-radius: 50%; top: 20px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, #ffd9ea 0%, #e7dcff 55%, transparent 70%); filter: blur(4px); }
.laptop { position: relative; width: min(440px, 100%); }
.laptop-peek { position: absolute; left: 0; right: 0; top: -100px; height: 130px; display: flex; justify-content: center; align-items: flex-end; gap: 4px; z-index: 0; }
.peek { display: block; width: 100px; height: 100px; }
.peek--bunny { width: 124px; height: 124px; margin-bottom: 8px; }
.peek--cat { transform: rotate(-10deg); } .peek--bear { transform: rotate(10deg); }
.laptop-screen { position: relative; z-index: 1; background: #fff; border-radius: 22px 22px 8px 8px; border: 10px solid #4a3b5c; border-bottom-width: 12px; padding: 14px 16px 16px; box-shadow: 0 30px 60px rgba(74,59,92,.18); }
.screen-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ffc6dd; }
.screen-bar i:nth-child(2) { background: #ffe39a; } .screen-bar i:nth-child(3) { background: #c9f2d8; }
.screen-bar span { margin-left: auto; font-size: .72rem; font-weight: 800; color: #c3b6d6; }
.screen-line { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #fff6fa; border: 2px dashed var(--pink-mid); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: clamp(.78rem, 2.6vw, .98rem); color: var(--ink); white-space: nowrap; overflow: hidden; }
.typed { display: inline-block; vertical-align: bottom; overflow: hidden; white-space: nowrap; border-right: 3px solid var(--pink); width: 0; animation: typing 6s steps(32) infinite, caret .8s step-end infinite; }
@keyframes typing { 0%, 8% { width: 0; } 60%, 88% { width: 32ch; } 100% { width: 0; } }
@keyframes caret { 50% { border-color: transparent; } }
.screen-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.screen-stats div { background: var(--lav-soft); border-radius: 12px; padding: 8px 4px; text-align: center; line-height: 1.1; }
.screen-stats b { display: block; color: var(--lav); font-size: 1.25rem; }
.screen-stats div:first-child b { color: var(--pink-deep); }
.screen-stats small { font-size: .68rem; font-weight: 800; color: var(--muted); }
.laptop-base { position: relative; z-index: 1; margin: 0 -26px; background: linear-gradient(180deg, #efe7fb, #e3d8f6); border-radius: 6px 6px 26px 26px; padding: 12px 22px 16px; box-shadow: 0 18px 30px rgba(74,59,92,.12); }
.keys { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.key { display: grid; place-items: center; height: 24px; border-radius: 7px; background: #fff; color: #b9abcf; font-size: .62rem; font-weight: 800; box-shadow: 0 2px 0 #d5c8ec; animation: press 4.4s infinite; animation-delay: calc(var(--i) * -0.37s); }
.key:nth-child(n+11):nth-child(-n+19) { transform: translateX(8px); }
.key:nth-child(n+20):nth-child(-n+26) { transform: translateX(16px); }
.key--space { grid-column: 3 / span 6; animation: none; }
@keyframes press { 0%, 88%, 100% { background: #fff; color: #b9abcf; } 92% { background: var(--pink); color: #fff; box-shadow: 0 0 0 #d5c8ec; } }
.float-badge { position: absolute; z-index: 2; background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: .9rem; box-shadow: 0 12px 28px rgba(74,59,92,.15); animation: drift 6s ease-in-out infinite; white-space: nowrap; }
.fb1 { left: -18px; top: 24px; } .fb2 { right: -10px; bottom: 30px; animation-delay: -3s; }

.stat-strip { position: relative; z-index: 2; list-style: none; margin: 56px 0 0; padding: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: #fff; border-radius: 28px; box-shadow: var(--shadow); border: 1.5px solid #f6e8f2; }
.stat-strip li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 20px; }
.stat-strip li:nth-child(odd) { background: #fff5f9; } .stat-strip li:nth-child(even) { background: #f7f3ff; }
.stat-ico { font-size: 1.5rem; }
.stat-strip b { font-size: 1.5rem; color: var(--pink-deep); line-height: 1; }
.stat-strip li:nth-child(even) b { color: var(--lav); }
.stat-strip span:last-child { color: var(--muted); font-weight: 700; font-size: .92rem; line-height: 1.2; }

@media (max-width: 960px) {
	.hero { padding-top: 124px; }
	.hero-inner { grid-template-columns: 1fr; gap: 26px; }
	.hero-copy { text-align: center; }
	.lead, .quickstart { margin-left: auto; margin-right: auto; }
	.quickstart-chips, .hero-points { justify-content: center; }
	.quickstart .btn { width: 100%; }
	.hero-art { padding-top: 80px; }
	.stat-strip { grid-template-columns: repeat(2, 1fr); margin-top: 34px; }
}
@media (max-width: 520px) {
	.fb1 { left: 0; top: 30px; } .fb2 { right: 0; }
	.peek { width: 78px; height: 78px; } .peek--bunny { width: 96px; height: 96px; }
	.laptop-base { margin: 0 -10px; padding: 10px 12px 14px; }
	.key { height: 18px; font-size: .5rem; border-radius: 5px; }
	.stat-strip li { flex-direction: column; text-align: center; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
	.deco, .float-badge, .key, .topbar-dot { animation: none; }
	.typed { animation: none; width: 32ch; }
}

/* Sections */
.section { padding: 76px 0; }
.section--test { padding-top: 64px; }
.band { margin: 0 clamp(8px, 2vw, 24px); border-radius: clamp(28px, 4vw, 48px); }
.band--pink { background: linear-gradient(180deg, #fff1f7, #ffe8f2); }
.band--lav { background: linear-gradient(180deg, #f8f4ff, #f0e9ff); }
.section-title { text-align: center; margin: 0 0 10px; font-size: clamp(1.75rem, 3.6vw, 2.5rem); text-wrap: balance; }
.section-title--left { text-align: left; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 38px; font-size: 1.06rem; }
.mini-title { margin-top: 0; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .section { padding: 54px 0; } }
.notice-box { background: #fff; border: 2px dashed var(--pink-mid); border-radius: var(--radius); padding: 24px; text-align: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 34px; counter-reset: step; }
.step { position: relative; background: #fff; border-radius: 30px; padding: 30px 26px 26px; text-align: center; box-shadow: var(--shadow); border: 1.5px solid #f6e8f2; transition: transform .2s; }
.step:hover { transform: translateY(-6px); }
.step-num { position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 900; }
.step--cat .step-num { background: var(--lav); } .step--bear .step-num { background: #e5a46b; }
.step-art { width: 120px; height: 120px; margin: 0 auto 8px; border-radius: 50%; padding: 10px; }
.step--bunny .step-art { background: #fff0f6; } .step--cat .step-art { background: #f3eeff; } .step--bear .step-art { background: #fff3e4; }
.step h3 { margin: 10px 0 6px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Character cards on the homepage */
#characters .ct-card { border-radius: 32px; padding: 28px 24px; }
#characters .ct-card:nth-child(1) .ct-card-art { background: radial-gradient(circle, #fff 30%, #ffe3ef 70%); }
#characters .ct-card:nth-child(2) .ct-card-art { background: radial-gradient(circle, #fff 30%, #ece4ff 70%); }
#characters .ct-card:nth-child(3) .ct-card-art { background: radial-gradient(circle, #fff 30%, #ffefdc 70%); }
#characters .ct-card-art { width: 150px; height: 150px; border-radius: 50%; padding: 12px; }

/* Journey */
.journey { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; position: relative; }
.journey::before { content: ""; position: absolute; left: 8%; right: 8%; top: 34px; height: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--pink-mid) 0 14px, transparent 14px 24px); }
.journey-stop { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.journey-dot { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: #fff; border: 4px solid var(--lav-soft); font-size: 1.9rem; box-shadow: var(--shadow); margin-bottom: 10px; transition: transform .2s; }
.journey-stop:hover .journey-dot { transform: translateY(-4px) rotate(-6deg); }
.journey-stop b { color: var(--pink-deep); font-size: 1.05rem; }
.journey-stop strong { font-size: 1rem; }
.journey-stop small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.journey-stop.is-reached .journey-dot { border-color: var(--pink); background: linear-gradient(135deg, #fff0f7, #f1ebff); }
.journey-you { margin-top: 28px; font-weight: 800; color: var(--lav); }
.journey-you[hidden] { display: none; }
@media (max-width: 860px) {
	.journey { grid-template-columns: 1fr; gap: 14px; max-width: 440px; margin: 0 auto; }
	.journey::before { left: 36px; right: auto; top: 20px; bottom: 20px; width: 6px; height: auto; background: repeating-linear-gradient(180deg, var(--pink-mid) 0 14px, transparent 14px 24px); }
	.journey-stop { display: grid; grid-template-columns: 74px 1fr; grid-template-rows: auto auto auto; column-gap: 16px; text-align: left; align-items: center; }
	.journey-dot { grid-row: 1 / 4; margin: 0; }
}

/* Practice levels */
.level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.level-card { display: flex; flex-direction: column; background: #fff; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.level-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(139,111,214,.2); color: var(--ink); }
.level-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 24px; }
.level-card--beginner .level-top { background: linear-gradient(135deg, #e4fbee, #fff3f8); }
.level-card--intermediate .level-top { background: linear-gradient(135deg, #ffe3ef, #fff6fa); }
.level-card--advanced .level-top { background: linear-gradient(135deg, #ebe2ff, #fff4e6); }
.level-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: #fff; font-size: 1.7rem; box-shadow: 0 6px 14px rgba(74,59,92,.08); }
.level-sample { background: #fff; border-radius: 10px; padding: 6px 10px; font-size: .85rem; color: var(--lav); box-shadow: 0 3px 0 var(--lav-mid); white-space: nowrap; }
.level-body { padding: 18px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.level-body h3 { margin: 0 0 6px; font-size: 1.3rem; }
.level-body p { color: var(--muted); margin: 0 0 16px; flex: 1; }
.level-meta { font-size: .85rem; font-weight: 800; color: var(--muted); }
.level-go { margin-top: 6px; font-weight: 900; color: var(--pink-deep); }

/* Daily + stats */
.daily-card, .stats-card { background: #fff; border-radius: 32px; padding: 30px; box-shadow: var(--shadow); border: 1.5px solid #f6e8f2; }
.daily-card { display: grid; grid-template-columns: 130px 1fr; gap: 26px; align-items: start; }
.daily-card p { color: var(--muted); }
.daily-card .section-title { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.cal { position: relative; display: flex; flex-direction: column; align-items: center; width: 130px; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 14px 30px rgba(255,126,182,.25); transform: rotate(-4deg); }
.cal-rings { position: absolute; top: 6px; left: 0; right: 0; display: flex; justify-content: center; gap: 46px; }
.cal-rings i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.85); }
.cal-month { width: 100%; text-align: center; background: linear-gradient(135deg, #ff86bb, #c99cff); color: #fff; font-weight: 900; padding: 22px 0 8px; text-transform: uppercase; letter-spacing: .08em; }
.cal-day { font-size: 3.4rem; font-weight: 900; color: var(--ink); line-height: 1; padding: 14px 0 18px; }
.stats-card .ct-stats-grid div { box-shadow: none; background: var(--lav-soft); }
.stats-card .ct-badges li { box-shadow: none; background: #fcfaff; border: 1.5px solid #f1ebfb; }
.stats-card .ct-badges li.is-earned { border-color: var(--pink-mid); background: #fff; }
@media (max-width: 560px) { .daily-card { grid-template-columns: 1fr; justify-items: center; text-align: center; } .daily-card .section-title--left { text-align: center; } .daily-card, .stats-card { padding: 22px; } }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.faq-layout .prose h2 { margin-top: 0; }
.faq-title { margin-top: 0; font-size: 1.6rem; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 20px; } }
.faq details { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 4px 22px; margin-bottom: 12px; transition: background .2s; }
.faq details[open] { background: #fff; border: 1.5px solid var(--pink-mid); }
.faq summary { cursor: pointer; font-weight: 800; padding: 15px 34px 15px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pink-soft); color: var(--pink-deep); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; background: var(--pink); color: #fff; }
.faq details p { margin-top: 0; color: var(--muted); }

/* Final CTA band */
.cta-band { margin: 60px clamp(8px, 2vw, 24px) 0; border-radius: clamp(28px, 4vw, 48px); background: linear-gradient(135deg, #ff8fc0 0%, #c59bff 100%); color: #fff; text-align: center; overflow: hidden; position: relative; }
.cta-band::before { content: "♡  ✦  ♡  ✧  ♡  ✦  ♡  ✧  ♡  ✦  ♡  ✧  ♡"; position: absolute; left: 0; right: 0; top: 18px; font-size: 22px; letter-spacing: 18px; opacity: .25; white-space: nowrap; }
.cta-band-inner { padding: 60px 0 64px; position: relative; }
.cta-band-chars { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin-bottom: 10px; }
.cta-band-chars span { width: 90px; height: 90px; }
.cta-band-chars span:nth-child(2) { width: 116px; height: 116px; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 8px; }
.cta-band p { margin: 0 auto 26px; max-width: 520px; opacity: .95; font-size: 1.1rem; }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.post-grid--2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.post-card:hover { transform: translateY(-4px); }
.post-card-link { display: block; text-decoration: none; color: var(--ink); height: 100%; }
.post-card-link:hover { color: var(--ink); }
.post-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--lav-soft); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-img--empty { display: grid; place-items: center; background: linear-gradient(135deg, #ffe0ee, #e9e0ff); font-size: 2.2rem; color: #fff; text-shadow: 0 2px 8px rgba(139,111,214,.4); }
.post-card-body { padding: 18px 22px 22px; }
.post-card-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.post-card-title { margin: 4px 0 8px; font-size: 1.15rem; }
.post-meta { font-size: .85rem; color: var(--muted); font-weight: 700; margin: 0; }
.pagination { margin: 40px 0; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); text-decoration: none; font-weight: 800; color: var(--ink); }
.pagination .current { background: var(--pink); color: #fff; }

/* Page */
.page-head { padding: 44px 0 14px; text-align: center; }
.page-head h1 { margin-bottom: .2em; }
.page-text .page-head { text-align: left; max-width: 800px; }
.entry-content > *:not(.ct-app):not(.ct-lb):not(.ct-stats):not(.ct-cards) { max-width: 780px; margin-left: auto; margin-right: auto; }
.page-text .entry-content > * { margin-left: 0; }
.prose p, .prose li { color: #5a4b6c; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); margin: 1.4em auto; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--lav-soft); }
.prose th { background: var(--lav-soft); }
.prose blockquote { margin: 1.4em 0; padding: 16px 22px; border-left: 5px solid var(--pink); background: var(--pink-soft); border-radius: 0 16px 16px 0; }
.prose code { background: var(--lav-soft); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.page-tool .entry-content { margin-top: 10px; }
.related-tools { max-width: 780px; margin: 40px auto 20px; }
.related-tools ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related-tools a { display: inline-block; padding: 8px 16px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); text-decoration: none; font-weight: 700; color: var(--lav); }

/* Article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 40px; }
.article { min-width: 0; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.article-img { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; }
.article .entry-content > * { max-width: none; }
.sidebar-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.widget { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.widget-title { font-size: 1.05rem; margin: 0 0 10px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--lav-soft); }
.widget li:last-child { border: 0; }
.widget a { text-decoration: none; font-weight: 700; color: var(--ink); }
.widget a:hover { color: var(--pink-deep); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }
.cta-box { display: flex; gap: 22px; align-items: center; background: linear-gradient(135deg, #fff0f7, #f1ebff); border-radius: var(--radius); padding: 26px; margin: 40px 0; }
.cta-box h2 { margin: 0 0 6px; font-size: 1.4rem; }
.cta-box p { margin: 0 0 14px; color: var(--muted); }
.cta-char { width: 110px; height: 110px; flex: none; }
.cta-char--lg { width: 160px; height: 160px; margin: 0 auto; }
@media (max-width: 600px) { .cta-box { flex-direction: column; text-align: center; } }
.related-posts h2 { font-size: 1.4rem; }
.page-404 { text-align: center; padding: 60px 0; }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 460px; margin: 20px auto; }
.search-form label { flex: 1; }
.search-field { width: 100%; font: inherit; padding: 11px 16px; border-radius: 999px; border: 2px solid var(--lav-mid); }
.search-submit { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 0 20px; background: var(--lav); color: #fff; cursor: pointer; }

/* Footer */
.site-footer { margin-top: 40px; background: linear-gradient(180deg, #fbf3fb, #f1eaff); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand p { color: var(--muted); margin-top: 8px; }
.footer-title { font-size: 1rem; margin: 6px 0 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--pink-deep); }
.footer-bottom { border-top: 1px solid #eadff2; margin-top: 36px; padding: 18px 0 26px; font-size: .9rem; color: var(--muted); text-align: center; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); text-align: center; }
.sticky, .bypostauthor, .gallery-caption { }
