/* ==========================================================================
   KidEscapeLab – public website layer (all pages)
   Loads after landing.css (tokens, buttons, sections, FAQ, CTA, footer base).
   Page-specific styles of the "Who it's for", about, FAQ, legal and 404 pages live in front-pages.css.
   ========================================================================== */

.front { --header-h: 98px; --lights-h: 0px; }

/* ---------- Header: floating glass bar (detaches + shrinks on scroll) ---------- */
.front .site-header,
.front .site-header.is-scrolled,
.front .site-header.menu-open { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.front .site-header { padding-top: 12px; transition: padding .4s var(--ease); pointer-events: none; }
.front .site-header.is-scrolled { padding-top: 8px; }
.front .site-header .navbar { padding: 0; pointer-events: none; }
.front .site-header.is-scrolled .navbar { padding: 0; }
.hdr-bar {
  position: relative; pointer-events: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; width: 100%;
  padding: 7px 10px 7px 16px; border-radius: 26px;
  background: rgba(255, 252, 246, .9);
  -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 8px 28px rgba(15,61,46,.10);
  transition: padding .4s var(--ease), box-shadow .4s var(--ease), background-color .4s, transform .4s var(--ease);
}
/* glowing gradient border */
.hdr-bar::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(110deg, rgba(242,193,78,.9), rgba(180,35,53,.35) 30%, rgba(30,122,85,.45) 60%, rgba(242,193,78,.9));
  background-size: 220% 100%; animation: hdrGlow 9s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@keyframes hdrGlow { to { background-position: -220% 0; } }
.site-header.is-scrolled .hdr-bar {
  padding: 4px 8px 4px 14px; background: rgba(255, 252, 246, .94);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 44px rgba(15,61,46,.20), 0 2px 6px rgba(15,61,46,.08);
}
/* mouse spotlight */
.hdr-spot {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(242,193,78,.30), rgba(242,193,78,0) 65%);
}
.hdr-bar.is-lit .hdr-spot { opacity: 1; }
.hdr-bar > * { position: relative; }
.hdr-bar > .hdr-spot { position: absolute; }
.brand-logo img { display: block; height: 66px; width: auto; transition: height .35s var(--ease), transform .35s var(--ease); transform-origin: 30% 60%; }
.brand-logo:hover img { animation: logoBounce .7s var(--ease); }
@keyframes logoBounce { 0% { transform: none; } 30% { transform: translateY(-4px) rotate(-2deg) scale(1.04); } 60% { transform: translateY(1px) rotate(1deg) scale(.99); } 100% { transform: none; } }
.site-header.is-scrolled .brand-logo img { height: 52px; }
.front .nav-links { position: relative; }
.front .nav-links .nav-link { color: var(--text); position: relative; z-index: 1; }
.front .nav-links .nav-link:hover, .front .nav-links .nav-link.show { color: var(--cranberry); background: var(--rose); }
.front .nav-links .nav-link.active::after { background: var(--cranberry); }
.nav-blob { display: none; }
@media (min-width: 992px) and (hover: hover) {
  /* the blob slides under the hovered item (front.js sets --bx / --bw) */
  .nav-blob {
    display: block; position: absolute; z-index: 0; left: 0; top: 50%; height: 40px; width: var(--bw, 0px); margin-top: -20px;
    border-radius: 14px; background: linear-gradient(135deg, var(--rose), #FFF3D6);
    box-shadow: 0 0 0 1px rgba(180,35,53,.10), 0 6px 16px rgba(180,35,53,.12);
    transform: translateX(var(--bx, 0px)); opacity: 0;
    transition: transform .35s var(--ease), width .35s var(--ease), opacity .25s;
  }
  .nav-links.has-blob .nav-blob { opacity: 1; }
  .nav-blob::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 4px; height: 3px; border-radius: 3px; background: var(--cranberry); }
  .front .nav-links .nav-link:hover, .front .nav-links .nav-link.show { background: transparent; }
}
/* shimmering CTA */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
  transform: skewX(-18deg); animation: btnShine 3.6s 1s ease-in-out infinite;
}
@keyframes btnShine { 0% { left: -60%; } 38%, 100% { left: 130%; } }
/* mega menu featured card */
@media (min-width: 992px) {
  .nav-mega { width: min(900px, calc(100vw - 32px)) !important; }
  .nav-mega-in { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 10px; }
}
.nav-feature {
  position: relative; display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 4px !important; overflow: hidden;
  padding: 16px !important; border-radius: 18px !important; color: #fff !important; white-space: normal;
  background: radial-gradient(240px 160px at 90% 0%, rgba(242,193,78,.35), transparent 70%), linear-gradient(160deg, #1E5A43, var(--pine)) !important;
}
.nav-feature:hover, .nav-feature:focus-visible { box-shadow: 0 12px 30px rgba(15,61,46,.35); transform: translateY(-2px); }
.nf-art { position: relative; display: block; width: 100%; height: 128px; margin-bottom: 8px; }
.nf-art img { position: absolute; border-radius: 4px 9px 9px 4px; box-shadow: 0 12px 22px rgba(0,0,0,.4); object-fit: cover; transition: transform .45s var(--ease); }
.nf-b1 { width: 78px; height: 104px; left: 18px; top: 16px; transform: rotate(-10deg); }
.nf-b2 { width: 86px; height: 115px; left: 78px; top: 4px; transform: rotate(5deg); z-index: 1; }
.nf-stk { width: 70px !important; height: 70px !important; right: 0; bottom: -6px; box-shadow: none !important; z-index: 2; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.nav-feature:hover .nf-b1 { transform: rotate(-14deg) translateX(-4px); }
.nav-feature:hover .nf-b2 { transform: rotate(8deg) translateY(-3px); }
.nav-feature:hover .nf-stk { transform: rotate(-8deg) scale(1.06); }
.nf-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.nav-feature b { color: #fff !important; font-size: 19px !important; }
.nav-feature small { color: #CFE0D6 !important; }
.nf-go { margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--gold); display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 991.98px) {
  .front .site-header { padding-top: 8px; }
  .hdr-bar { border-radius: 22px; padding: 6px 8px 6px 12px; }
  .nav-feature { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hdr-bar::before, .btn-shine::after { animation: none; }
  .btn-shine::after { display: none; }
  .brand-logo:hover img { animation: none; }
  .hdr-spot, .nav-blob { transition: none; }
}
.front .nav-cta .btn-ghost { color: var(--pine); border-color: var(--pine); background: #fff; }
.front .nav-cta .btn-ghost:hover { background: var(--pine); color: #fff; }
/* Minimal header (legal + contact pages): logo left, "Back to home" right */
.front .hdr-back { margin-left: auto; color: var(--pine); border-color: var(--pine); background: #fff; white-space: nowrap; }
.front .hdr-back:hover { background: var(--pine); color: #fff; }
.front .hdr-back .bi { transition: transform .25s var(--ease); }
.front .hdr-back:hover .bi { transform: translateX(-3px); }
.front .nav-toggle { background: var(--mint); }
.front .nav-toggle-bar { background: var(--pine); }
.front .nav-links .dropdown-toggle { border: 0; background: transparent; }
.front .nav-links .dropdown-toggle::after { vertical-align: 2px; margin-left: 6px; border-top-width: 5px; }
.front .nav-links .dropdown-toggle.show::after { transform: rotate(180deg); }
.front .nav-links .dropdown-toggle::after { transition: transform .25s var(--ease); }
.nav-drop {
  --bs-dropdown-min-width: 300px; --bs-dropdown-padding-y: 8px; --bs-dropdown-border-color: var(--border);
  --bs-dropdown-border-radius: 20px; --bs-dropdown-link-active-bg: var(--mint); --bs-dropdown-link-active-color: var(--pine);
  padding: 8px; box-shadow: 0 2px 4px rgba(15,61,46,.05), 0 24px 60px rgba(15,61,46,.18);
}
.nav-drop-list { display: flex; flex-direction: column; gap: 2px; }
.nav-drop .dropdown-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; white-space: normal; transition: background-color .2s, transform .2s var(--ease); }
.nav-drop .dropdown-item:hover, .nav-drop .dropdown-item:focus-visible { background: var(--cream); }
.nav-drop .dropdown-item:focus-visible { outline: 3px solid rgba(180,35,53,.4); outline-offset: -2px; }
.nav-drop .dropdown-item.active { background: var(--mint); box-shadow: inset 3px 0 0 var(--green); }
.nav-drop b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--pine); line-height: 1.2; }
.nav-drop small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.nd-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--mint); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; transition: transform .25s var(--ease); }
.nav-drop .dropdown-item:hover .nd-ico { transform: rotate(-6deg) scale(1.06); }
.nav-drop-list > li:nth-child(4n+2) .nd-ico { background: var(--rose); color: var(--cranberry); }
.nav-drop-list > li:nth-child(4n+3) .nd-ico { background: #DCE8F5; color: var(--blue); }
.nav-drop-list > li:nth-child(4n+4) .nd-ico { background: var(--gold-tint); color: #A6780F; }
/* mega menu (Product): 2 columns + footer strip */
.nav-mega-h { margin: 6px 12px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav-mega-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 8px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--cream); font-size: 13.5px; color: var(--muted); }
.nav-mega-foot > span i { color: var(--cranberry); margin-right: 4px; }
.nav-mega-foot .nav-mega-link { width: auto; padding: 6px 12px; border-radius: 10px; font-weight: 700; color: var(--cranberry); background: #fff; display: inline-flex; gap: 6px; align-items: center; }
.nav-mega-foot .nav-mega-link:hover { background: var(--rose); color: var(--cranberry); }
@media (min-width: 992px) {
  .nav-mega { width: min(690px, calc(100vw - 48px)); padding: 10px; }
  .nav-mega .nav-drop-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .front .nav-links .dropdown-menu { margin-top: 10px !important; animation: navDrop .22s var(--ease) both; }
  .front .nav-links .dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
.front .nav-links .dropdown-menu { transform-origin: 20% 0; }
@media (prefers-reduced-motion: reduce) { .front .nav-links .dropdown-menu { animation: none !important; } }
@media (max-width: 1199.98px) and (min-width: 992px) {
  .front .nav-links .nav-link { padding: 10px 9px !important; font-size: 14.5px; }
  .brand-logo img { height: 50px; }
}
@media (max-width: 991.98px) {
  .front .site-header .navbar-collapse { max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
  /* dropdowns become an accordion inside the mobile menu */
  .front .nav-links .dropdown-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .front .nav-links .dropdown-toggle::after { margin-left: auto; }
  .front .nav-links .dropdown-toggle.show { color: var(--cranberry); background: var(--rose); }
  .nav-drop { box-shadow: none; border: 0; background: var(--cream); margin: 4px 0 8px; padding: 6px; border-radius: 16px; animation: none; }
  .nav-drop .dropdown-item { padding: 9px 10px; }
  .nav-drop .nd-ico { width: 36px; height: 36px; font-size: 17px; border-radius: 11px; }
  .nav-mega-h { display: none; }
  .nav-mega-foot { background: #fff; }
  .brand-logo img { height: 50px; }
}
@media (max-width: 400px) { .nav-drop small { display: none; } }
@media (max-width: 380px) { .brand-logo img { height: 44px; } }

/* puzzle filter: 4 groups wrap on phones */
@media (max-width: 767.98px) {
  .front .filter-tabs { flex-wrap: wrap; width: auto; }
  .front .filter-btn { flex: 1 1 auto; justify-content: center; }
}

/* section stickers never cover the heading text */
@media (min-width: 768px) { .front .has-sticker .section-title { padding: 0 84px; } }
/* home hero: square theme stickers instead of the tall tree / snowman */
.front .hero .deco-tree { height: 190px; }
.front .hero .deco-snowman { height: 196px; }
@media (max-width: 991.98px) { .front .hero .deco-tree { height: 140px; } .front .hero .deco-snowman { height: 140px; } }
@media (max-width: 575.98px) { .front .hero .deco-tree { height: 104px; } .front .hero .deco-snowman { height: 108px; } }

/* home hero: header no longer has string lights */
.front .hero { padding-top: calc(var(--header-h) + 48px); }
@media (max-width: 991.98px) { .front .hero { padding-top: calc(var(--header-h) + 32px); } }

/* ---------- Footer with columns ---------- */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand .brand-logo img { height: 74px; }
.footer-brand p { color: #A9C8B8; }
.footer-mail { display: flex; align-items: center; gap: 8px; }
.footer-mail a { color: #E4EEE8; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.footer-mail a:hover { color: var(--gold); }
.footer-h { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-h i { color: var(--gold); font-size: 15px; }
.footer-start { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 18px; border-radius: 14px; background: var(--gold); color: #3A2A00; font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 #B98A1F; }
.footer-start:hover { background: #F6CD67; color: #3A2A00; }
.footer-login { display: inline-flex; margin: 16px 0 0 14px; color: #E4EEE8; font-weight: 600; }
.footer-login:hover { color: var(--gold); }
.footer-col ul { display: flex; flex-direction: column; gap: 2px; }
.footer-col a { color: #CFE0D6; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; padding: 4px 0; }
.footer-col a:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom i { color: var(--gold); margin-right: 4px; }
@media (max-width: 991.98px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; max-width: none; } }
@media (max-width: 379.98px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--header-h) + 56px) 0 130px;
  background:
    radial-gradient(1100px 480px at 10% -10%, #1E5A43 0%, rgba(30,90,67,0) 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(30,122,85,.5) 0%, rgba(30,122,85,0) 60%),
    linear-gradient(180deg, #0F3D2E 0%, #0C3326 100%);
}
.ph-glow { position: absolute; width: 560px; height: 560px; right: -120px; top: 20px; border-radius: 50%; background: radial-gradient(circle, rgba(242,193,78,.18), transparent 65%); pointer-events: none; }
.ph-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: #A9C8B8; margin-bottom: 16px; }
.text-center .ph-crumbs { justify-content: center; }
.ph-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.ph-crumbs a { color: #E4EEE8; text-decoration: none; }
.ph-crumbs a:hover { color: var(--gold); text-decoration: underline; }
.ph-title { color: #fff; margin: 18px 0 0; font-size: clamp(34px, 1.4rem + 2.8vw, 54px); line-height: 1.06; letter-spacing: -.015em; animation: heroIn .7s .05s var(--ease) both; }
.ph-title .hl { white-space: normal; }
.ph-title .hl::after { display: none; }
.ph-lead { margin-top: 18px; font-size: 18px; line-height: 1.6; color: #CFE0D6; max-width: 640px; animation: heroIn .7s .12s var(--ease) both; }
.text-center .ph-lead { margin-left: auto; margin-right: auto; }
.text-center .hero-ctas { justify-content: center; }
.page-hero :focus-visible { outline-color: var(--gold); }
.ph-art { position: relative; height: 360px; max-width: 440px; margin: 0 auto; animation: heroIn .9s .15s var(--ease) both; }
.ph-book { position: absolute; width: 44%; }
.ph-book-1 { left: 28%; top: 6%; z-index: 3; transform: rotate(2deg); width: 48%; }
.ph-book-2 { left: 0; top: 18%; z-index: 2; transform: rotate(-10deg); }
.ph-book-3 { right: 0; top: 14%; z-index: 1; transform: rotate(9deg); }
.ph-sticker { position: absolute; width: 34%; max-width: 150px; left: -2%; bottom: -4%; z-index: 4; animation: floaty 7s ease-in-out infinite; }
@media (max-width: 991.98px) { .page-hero { padding-bottom: 110px; } .ph-art { height: 300px; max-width: 360px; } }
@media (max-width: 575.98px) {
  .page-hero { padding-top: calc(var(--header-h) + 36px); padding-bottom: 90px; }
  .ph-lead { font-size: 16.5px; }
  .ph-art { height: 250px; max-width: 300px; }
  .page-hero .hero-ctas > a { flex: 1 1 100%; }
}

/* ---------- Shared content blocks ---------- */
.section-cream { background: var(--cream); }
.section-tight { padding: 72px 0; }
@media (max-width: 767.98px) { .section { padding: 72px 0; } .section-tight { padding: 56px 0; } }

.f-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.f-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .f-grid, .f-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .f-grid, .f-grid.cols-2, .f-grid.cols-4 { grid-template-columns: 1fr; } }
.f-card {
  --c: var(--green); --t: var(--mint);
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: #fff; border: 1px solid var(--border); border-top: 6px solid var(--c); border-radius: var(--radius-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.f-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tone-red { --c: var(--cranberry); --t: var(--rose); }
.tone-gold { --c: #C8961E; --t: var(--gold-tint); }
.tone-blue { --c: var(--blue); --t: #DCE8F5; }
.tone-purple { --c: #7B3F94; --t: #F1E6F6; }
.f-ico {
  width: 50px; height: 50px; border-radius: 15px; background: var(--c); color: #fff; font-size: 23px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 0 rgba(0,0,0,.12), inset 0 -3px 0 rgba(0,0,0,.12);
}
.tone-gold .f-ico { background: var(--gold); color: #3A2A00; }
.f-card h3 { font-size: 21px; margin: 8px 0 0; line-height: 1.2; }
.f-card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.f-points { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; font-size: 14.5px; }
.f-points li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.f-points i { color: var(--c); font-size: 16px; line-height: 1.3; }
.f-link { margin-top: auto; padding-top: 6px; font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: 40px; color: var(--c); }
.f-link:hover { text-decoration: underline; }
.reveal-ready .f-card.is-visible { transition: opacity .7s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }

.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.check-list i { color: var(--green); font-size: 18px; line-height: 1.35; flex: none; }
.section-pine .check-list li { color: #fff; }
.section-pine .check-list i { color: var(--gold); }

/* split: text + visual */
.split-media {
  position: relative; border-radius: 28px; padding: 28px; min-height: 340px; overflow: hidden;
  background: radial-gradient(400px 200px at 80% 10%, rgba(242,193,78,.2), transparent 70%), linear-gradient(160deg, #F7F1E4, #EFE5D1);
  display: flex; align-items: center; justify-content: center;
}
.cover-fan { position: relative; width: 100%; max-width: 420px; height: 300px; }
.cover-fan .book { position: absolute; width: 42%; }
.cover-fan .book:nth-child(1) { left: 29%; top: 0; z-index: 3; transform: rotate(1deg); width: 44%; }
.cover-fan .book:nth-child(2) { left: 2%; top: 12%; z-index: 2; transform: rotate(-9deg); }
.cover-fan .book:nth-child(3) { right: 2%; top: 10%; z-index: 1; transform: rotate(8deg); }
.cover-fan .sticker { position: absolute; width: 30%; max-width: 130px; right: -2%; bottom: -6%; z-index: 4; }
.media-chip {
  position: absolute; z-index: 5; left: 18px; bottom: 18px; display: inline-flex; gap: 10px; align-items: center;
  background: #fff; border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: 0 14px 30px rgba(15,61,46,.18); font-size: 13px; line-height: 1.25;
}
.media-chip i { width: 34px; height: 34px; border-radius: 11px; background: var(--pine); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.media-chip b { display: block; color: var(--pine); }
.media-chip small { color: var(--muted); }
@media (max-width: 575.98px) { .split-media { padding: 20px; min-height: 280px; } .cover-fan { height: 250px; } }

/* group header used on features.php */
.tool-group + .tool-group { margin-top: 72px; }
.tool-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 26px; }
.tg-ico { width: 58px; height: 58px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 27px; color: #fff; background: var(--pine); box-shadow: 0 6px 0 rgba(0,0,0,.14); flex: none; }
.tool-group-head h2 { font-size: clamp(26px, 1.2rem + 1.2vw, 34px); margin: 0; }
.tool-group-head p { color: var(--muted); margin-top: 4px; max-width: 640px; }
.jump-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: -40px auto 56px; position: relative; z-index: 3; }
.jump-nav a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); color: var(--pine); text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: var(--shadow-soft);
}
.jump-nav a i { color: var(--cranberry); }
.jump-nav a:hover { background: var(--pine); color: #fff; }
.jump-nav a:hover i { color: var(--gold); }
@media (max-width: 575.98px) { .jump-nav { margin-top: -24px; } .jump-nav a { font-size: 14px; padding: 8px 14px; } }

/* numbered vertical steps (how-it-works) */
.vsteps { counter-reset: vs; display: flex; flex-direction: column; gap: 18px; max-width: 920px; margin: 0 auto; }
.vstep {
  counter-increment: vs; position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start;
  background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 22px 24px;
}
.vstep::before {
  content: counter(vs); width: 64px; height: 64px; border-radius: 20px; background: var(--pine); color: #fff;
  font-family: var(--font-head); font-size: 28px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 0 #062019;
}
.vstep:nth-child(3n+2)::before { background: var(--cranberry); box-shadow: 0 6px 0 var(--cranberry-dark); }
.vstep:nth-child(3n)::before { background: var(--gold); color: #3A2A00; box-shadow: 0 6px 0 #B98A1F; }
.vstep h3 { font-size: 22px; margin: 4px 0 6px; }
.vstep p { color: var(--muted); line-height: 1.6; }
.vstep .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips span { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--cream); border: 1px solid var(--border); color: var(--text); }
@media (max-width: 575.98px) {
  .vstep { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .vstep::before { width: 52px; height: 52px; font-size: 23px; border-radius: 16px; }
}

/* mini "page list" tiles */
.page-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.page-tiles li { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.page-tiles i { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--mint); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }
.page-tiles li:nth-child(even) i { background: var(--rose); color: var(--cranberry); }
.page-tiles b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--pine); font-size: 16.5px; line-height: 1.2; }
.page-tiles small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; }
@media (max-width: 991.98px) { .page-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .page-tiles { grid-template-columns: 1fr; } }

.year-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.year-tiles li { align-items: center; }
.year-tiles .yt-img { width: 58px; height: 58px; flex: none; filter: drop-shadow(0 6px 8px rgba(0,0,0,.18)); }
.page-tiles small.yt-month { margin: 0 0 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cranberry); }
@media (max-width: 991.98px) { .year-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .year-tiles { grid-template-columns: 1fr; } }

/* tip / note box */
.note-box { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: 22px; background: var(--gold-tint); border: 2px dashed var(--gold); }
.note-box > i { font-size: 26px; color: #A6780F; line-height: 1; }
.note-box h3 { font-size: 20px; margin: 0 0 4px; }
.note-box p { color: #3E4A44; line-height: 1.6; }

/* free-now banner (replaces pricing) */
.free-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 30px 34px; border-radius: 28px; border: 3px dashed var(--gold);
  background: radial-gradient(420px 240px at 0% 0%, rgba(242,193,78,.28), transparent 70%), var(--gold-tint);
}
.free-band .fb-ico { width: 78px; height: 78px; border-radius: 24px; background: var(--cranberry); color: #fff; font-size: 36px; display: inline-flex; align-items: center; justify-content: center; transform: rotate(-6deg); box-shadow: 0 6px 0 var(--cranberry-dark); }
.free-band h2 { font-size: clamp(24px, 1.2rem + 1.2vw, 34px); margin: 0; }
.free-band p { color: #2E3D36; margin-top: 8px; line-height: 1.6; }
@media (max-width: 767.98px) { .free-band { grid-template-columns: 1fr; text-align: center; padding: 26px 20px; } .free-band .fb-ico { margin: 0 auto; } }

/* ---------- Themes gallery (themes.php) ---------- */
.tg-toolbar {
  position: sticky; top: calc(var(--header-h) - 8px); z-index: 20; display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 12px; margin-bottom: 28px; border-radius: 20px; background: rgba(255,255,255,.96); border: 1px solid var(--border); box-shadow: var(--shadow-soft);
}
.tg-search { position: relative; flex: 1 1 240px; min-width: 0; }
.tg-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tg-search input {
  width: 100%; min-height: 46px; padding: 10px 14px 10px 40px; border-radius: 14px; border: 1px solid var(--border); background: var(--cream); font-size: 16px;
}
.tg-search input:focus { outline: 3px solid rgba(180,35,53,.35); outline-offset: 1px; border-color: var(--cranberry); background: #fff; }
.tg-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; }
.tg-chips::-webkit-scrollbar { display: none; }
.tg-chip {
  flex: none; min-height: 42px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border); background: #fff;
  font-weight: 600; font-size: 14.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px;
}
.tg-chip:hover { color: var(--pine); border-color: #D9CDB6; }
.tg-chip[aria-pressed="true"] { background: var(--pine); color: #fff; border-color: var(--pine); }
.tg-chip span { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #EDEAE3; color: #3E4A44; }
.tg-chip[aria-pressed="true"] span { background: var(--gold); color: #3A2A00; }
.tg-count { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
@media (max-width: 767.98px) { .tg-toolbar { position: static; } .tg-count { width: 100%; } }

.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1199.98px) { .theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 379.98px) { .theme-grid { grid-template-columns: 1fr; } }
.theme-card {
  --tc: #0F3D2E; position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: 22px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.theme-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.theme-card[hidden] { display: none; }
.tc-art { position: relative; aspect-ratio: 3 / 3.4; background: linear-gradient(160deg, var(--tc), #0F3D2E); overflow: hidden; }
.tc-art > img.tc-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s var(--ease); }
.theme-card:hover .tc-art > img.tc-cover { transform: scale(1.04); }
.tc-art > img.tc-cover.is-off { opacity: 0; }
.tc-host { position: absolute; right: 8px; bottom: 6px; width: 34%; height: auto; z-index: 2; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); transition: transform .4s var(--ease); }
.theme-card:hover .tc-host { transform: translateY(-4px) rotate(-6deg); }
.tc-tag { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.94); font-size: 12px; font-weight: 700; color: var(--tc); }
.tc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tc-body h3 { font-size: 19px; margin: 0; line-height: 1.2; display: flex; align-items: center; gap: 8px; }
.tc-body h3 i { color: var(--tc); font-size: 17px; }
.tc-sample { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.tc-sample b { color: var(--text); font-weight: 600; }
.tc-kinds { display: flex; gap: 4px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.tc-kinds { flex-wrap: nowrap; }
.tc-kinds button {
  flex: 1 1 0; min-width: 0; min-height: 34px; padding: 4px 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--cream);
  font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.tc-kinds button b { font-weight: 600; opacity: .75; }
@media (max-width: 767.98px) and (min-width: 380px) { .tc-kinds button { font-size: 11px; padding: 4px 3px; } .tc-kinds button b { display: none; } }
.tc-kinds button:hover { color: var(--pine); }
.tc-kinds button[aria-pressed="true"] { background: var(--tc); border-color: var(--tc); color: #fff; }
.tg-empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.tg-empty i { display: block; font-size: 40px; color: var(--border); margin-bottom: 10px; }

/* ---------- Contact ---------- */
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 28px; padding: 32px; box-shadow: var(--shadow-soft); }
@media (max-width: 575.98px) { .contact-card { padding: 22px 18px; border-radius: 22px; } }
.form-label-x { display: block; font-weight: 700; font-size: 15px; color: var(--pine); margin-bottom: 6px; }
.form-label-x small { font-weight: 500; color: var(--muted); }
.input-x {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--cream);
  font-size: 16px; color: var(--text); transition: border-color .2s, background-color .2s, box-shadow .2s;
}
textarea.input-x { min-height: 170px; resize: vertical; line-height: 1.55; }
select.input-x { appearance: auto; }
.input-x:focus { outline: 0; border-color: var(--cranberry); background: #fff; box-shadow: 0 0 0 4px rgba(180,35,53,.15); }
.input-x.is-invalid { border-color: #C0392B; background: #FFF6F5; }
.field-err { display: none; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: #A52A1F; }
.field-err.show { display: flex; gap: 6px; align-items: center; }
.field-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: none; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: #FDECEA; color: #7A1F16; border: 1px solid #F3C3BD; font-size: 15px; margin-bottom: 18px; }
.form-alert.show { display: flex; }
.contact-success { text-align: center; padding: 24px 8px; }
.contact-success .cs-ico { width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #fff; font-size: 42px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px var(--mint); animation: pop .5s var(--ease) both; }
.contact-success h2 { font-size: 30px; margin-top: 24px; }
.contact-success p { color: var(--muted); margin-top: 10px; line-height: 1.6; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.contact-side { display: flex; flex-direction: column; gap: 14px; }
.cside-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--border); }
.cside-item > i { width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--mint); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-size: 21px; }
.cside-item:nth-child(2) > i { background: var(--rose); color: var(--cranberry); }
.cside-item:nth-child(3) > i { background: var(--gold-tint); color: #A6780F; }
.cside-item b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--pine); }
.cside-item p, .cside-item a { font-size: 15px; color: var(--muted); line-height: 1.5; }
.cside-item a { color: var(--pine); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Long text (privacy, terms) – shared so legal pages look the same ---------- */
.prose { max-width: 780px; margin: 0 auto; font-size: 16.5px; line-height: 1.7; color: var(--text); }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.prose ol { list-style: decimal; padding-left: 22px; margin-bottom: 14px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--cranberry); font-weight: 600; }

/* closing CTA band uses the small theme stickers (160px) */
.cta-band .cta-tree, .cta-band .cta-snowman { height: 150px; width: auto; bottom: 18px; }
.cta-band .cta-tree { animation: floaty 8s ease-in-out infinite; }
@media (max-width: 991.98px) { .cta-band .cta-tree, .cta-band .cta-snowman { height: 110px; } }
@media (max-width: 575.98px) { .cta-band .cta-tree, .cta-band .cta-snowman { height: 92px; bottom: 12px; } }

@media (prefers-reduced-motion: reduce) {
  .ph-sticker, .theme-card, .tc-host { animation: none !important; }
}
