/* =========================================================
   The Bundle Bro — Design System
   Mobile-first. Desktop layouts switch on at 1024px.
   ========================================================= */

@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  /* Brand palette */
  --ink: #241552;
  --ink-soft: #4a3d78;
  --muted: #675c8c;
  --plum-950: #1b0b45;
  --plum-900: #2a1263;
  --plum-800: #3a1a86;
  --violet-700: #5a27d1;
  --violet-600: #6b38ec;
  --violet-500: #8257ff;
  --violet-200: #ddd0ff;
  --violet-100: #ece5ff;
  --lavender-50: #f8f5ff;
  --pink-600: #d61f6e;
  --pink-500: #ec3d88;
  --pink-200: #ffd0e4;
  --pink-100: #ffe8f2;
  --orange-500: #f97316;
  --orange-600: #ea6a0c;
  --yellow-300: #ffe066;
  --yellow-200: #fff1a8;
  --mint-100: #def8ee;
  --white: #ffffff;

  --grad-cta: linear-gradient(135deg, #f0498f 0%, #d61f6e 100%);
  --grad-violet: linear-gradient(135deg, #7a4bff 0%, #5a27d1 100%);
  --grad-brand-text: linear-gradient(90deg, #f97316 0%, #f59e0b 100%);
  --grad-page: radial-gradient(1200px 600px at 10% -10%, #f3ebff 0%, transparent 60%),
               radial-gradient(900px 500px at 100% 10%, #ffeef6 0%, transparent 60%),
               #fbf9ff;

  /* Type */
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-xs: 0.78rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --text-hero: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);

  /* Space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;
  --gutter: 16px;
  --section: 48px;

  /* Shape & depth */
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;
  --shadow-sm: 0 2px 6px rgba(60, 30, 140, 0.06), 0 1px 2px rgba(60, 30, 140, 0.05);
  --shadow-md: 0 10px 28px -10px rgba(76, 38, 170, 0.22), 0 2px 6px rgba(76, 38, 170, 0.06);
  --shadow-lg: 0 24px 56px -18px rgba(76, 38, 170, 0.32), 0 4px 12px rgba(76, 38, 170, 0.08);
  --shadow-cta: 0 10px 22px -8px rgba(214, 31, 110, 0.55);
  --shadow-violet: 0 10px 22px -8px rgba(90, 39, 209, 0.5);

  --header-h: 62px;
  --bottomnav-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1240px;
}

@media (min-width: 768px) { :root { --gutter: 28px; --section: 64px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --section: 88px; --header-h: 78px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  color: var(--ink); background: var(--grad-page); background-attachment: fixed;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--violet-500); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--pink-200); color: var(--ink); }

[hidden] { display: none !important; }
.sr-only { 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 { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--plum-900); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }

@view-transition { navigation: auto; }
main { animation: page-in .45s var(--ease) backwards; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Icons ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--grad-violet); --btn-shadow: var(--shadow-violet);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: .005em;
  color: #fff; background: var(--btn-bg); box-shadow: var(--btn-shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
  white-space: nowrap; position: relative; isolation: isolate;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); filter: saturate(1.08); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--pink { --btn-bg: var(--grad-cta); --btn-shadow: var(--shadow-cta); }
.btn--lg { min-height: 56px; padding: 14px 32px; font-size: 1.12rem; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--ghost { --btn-bg: #fff; --btn-shadow: var(--shadow-sm); color: var(--violet-700); border: 1.5px solid var(--violet-200); }
.btn--ghost:hover { border-color: var(--violet-500); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip-label {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs); letter-spacing: .04em; text-transform: uppercase;
  background: var(--violet-100); color: var(--violet-700);
}
.chip-label[data-cat="wellness"] { background: var(--pink-100); color: #b0175a; }
.chip-label[data-cat="ai-tools"] { background: #e3ecff; color: #2f4fc4; }
.chip-label[data-cat="creator"] { background: #fff1d6; color: #9a4a00; }
.chip-label[data-cat="templates"] { background: var(--mint-100); color: #0f7a55; }

/* ---------- Brand / Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark { width: 38px; height: auto; flex: none; filter: drop-shadow(0 4px 8px rgba(90,39,209,.25)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; color: var(--ink); white-space: nowrap; letter-spacing: -.01em; }
.brand__name span { background: var(--grad-brand-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__tag { margin-top: 4px; font-size: .58rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (min-width: 1024px) { .brand__mark { width: 46px; } .brand__name { font-size: 1.55rem; } .brand__tag { font-size: .64rem; } }
@media (max-width: 340px) { .brand__mark { width: 32px; } .brand__name { font-size: 1.1rem; } .brand__tag { font-size: .5rem; letter-spacing: .12em; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(130, 87, 255, .12);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-desktop, .header-search, .header-login { display: none; }
.menu-toggle {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--violet-100); color: var(--violet-700); transition: background .2s;
}
.menu-toggle:hover { background: var(--violet-200); }
.menu-toggle .icon { width: 22px; height: 22px; }

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: 6px; }
  .nav-desktop a {
    padding: 9px 18px; border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink-soft);
    transition: background .2s, color .2s;
  }
  .nav-desktop a:hover { background: var(--violet-100); color: var(--violet-700); }
  .nav-desktop a[aria-current="page"] { background: var(--grad-violet); color: #fff; box-shadow: var(--shadow-violet); }
  .header-right { display: flex; align-items: center; gap: 12px; }
  .header-search { display: block; position: relative; }
  .header-search input {
    width: 210px; height: 44px; padding: 0 16px 0 42px; border-radius: var(--r-pill); border: 1.5px solid var(--violet-100);
    background: var(--lavender-50); font-size: .95rem; transition: width .3s var(--ease), border-color .2s, background .2s;
  }
  .header-search input::placeholder { color: var(--muted); }
  .header-search input:focus { outline: none; width: 260px; border-color: var(--violet-500); background: #fff; box-shadow: 0 0 0 4px rgba(130,87,255,.15); }
  .header-search .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--violet-600); width: 18px; height: 18px; pointer-events: none; }
  .header-login { display: inline-flex; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .nav-desktop a { padding: 8px 13px; }
  .header-search input { width: 160px; }
  .header-search input:focus { width: 200px; }
}

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(27, 11, 69, .45); opacity: 0; transition: opacity .3s var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: #fff;
  border-radius: var(--r-xl) 0 0 var(--r-xl); box-shadow: var(--shadow-lg); padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 18px; overflow-y: auto;
  transform: translateX(104%); transition: transform .38s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; }
.drawer__close { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--lavender-50); color: var(--ink); }
.drawer__links a {
  display: flex; align-items: center; gap: 14px; padding: 14px 14px; border-radius: var(--r-md); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
}
.drawer__links a .icon { color: var(--violet-600); }
.drawer__links a:hover, .drawer__links a[aria-current="page"] { background: var(--violet-100); color: var(--violet-700); }
.drawer__label { font-size: var(--text-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-inline: 14px; margin-bottom: 4px; }
.drawer__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer__cats a { padding: 12px; border-radius: var(--r-md); background: var(--lavender-50); font-weight: 700; font-size: .92rem; text-align: center; }
.drawer__cats a:hover { background: var(--violet-100); }
.drawer__login { margin-top: auto; }
.drawer.is-open .drawer__links li { animation: drawer-item .45s var(--ease) both; }
.drawer.is-open .drawer__links li:nth-child(2) { animation-delay: .04s; }
.drawer.is-open .drawer__links li:nth-child(3) { animation-delay: .08s; }
.drawer.is-open .drawer__links li:nth-child(4) { animation-delay: .12s; }
.drawer.is-open .drawer__links li:nth-child(5) { animation-delay: .16s; }
@keyframes drawer-item { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
body.no-scroll { overflow: hidden; }

/* ---------- Bottom nav (mobile/tablet) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(130,87,255,.14); box-shadow: 0 -8px 24px -12px rgba(76,38,170,.18);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav ul { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--bottomnav-h); max-width: 560px; margin-inline: auto; }
.bottom-nav a {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: .72rem; font-weight: 700; color: var(--muted); position: relative; transition: color .2s;
}
.bottom-nav a .icon { width: 23px; height: 23px; transition: transform .25s var(--ease); }
.bottom-nav a[aria-current="page"] { color: var(--violet-700); }
.bottom-nav a[aria-current="page"] .bn-icon { background: var(--violet-100); }
.bottom-nav .bn-icon { width: 46px; height: 30px; border-radius: var(--r-pill); display: grid; place-items: center; transition: background .25s; }
.bottom-nav a:active .icon { transform: scale(.9); }
@media (min-width: 1024px) { .bottom-nav { display: none; } }

/* ---------- Section headings ---------- */
.section-head { text-align: center; margin-bottom: var(--s-8); }
.section-head h2 { font-size: var(--text-2xl); display: inline-flex; align-items: center; gap: 12px; }
.section-head p { margin-top: 8px; color: var(--muted); font-size: var(--text-md); }
.section-head--split { display: flex; align-items: end; justify-content: space-between; text-align: left; gap: 16px; }
@media (max-width: 767px) {
  .section-head--split { align-items: center; flex-wrap: wrap; row-gap: 10px; }
  .section-head--split > div { min-width: 0; flex: 1 1 200px; }
  .section-head--split h2 { font-size: 1.5rem; gap: 8px; }
  .section-head--split p { font-size: .92rem; margin-top: 4px; }
  .section-head--split .btn { flex: none; }
}
@media (max-width: 359px) { .section-head--split h2 { font-size: 1.35rem; } }
.spark { width: 22px; height: 22px; color: var(--pink-500); flex: none; }
.spark--y { color: #f5b301; }
@media (max-width: 767px) { .section-head { margin-bottom: var(--s-6); } .spark { width: 16px; height: 16px; } }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__art { position: relative; overflow: hidden; }
.hero__art img { width: 100%; height: auto; }
.hero__content { position: relative; text-align: center; padding: 0 var(--gutter); }
.hero__card {
  position: relative; margin: -36px auto 0; max-width: 560px; background: rgba(255,255,255,.96);
  border-radius: var(--r-xl); padding: 26px 20px 24px; box-shadow: var(--shadow-lg);
}
.hero__welcome {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: var(--r-pill);
  background: #fff; border: 2px solid var(--violet-200); color: var(--plum-900); font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .14em;
}
.hero__welcome .icon { width: 14px; height: 14px; color: var(--pink-500); }
.hero h1 { margin-top: 12px; font-size: clamp(2.1rem, 8.6vw, 2.6rem); color: var(--plum-900); }
.hero h1 span { background: var(--grad-brand-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__pill {
  display: inline-block; margin-top: 12px; padding: 8px 20px; border-radius: var(--r-pill);
  background: linear-gradient(180deg, #ffe680, #ffd23f); color: var(--plum-900);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; box-shadow: 0 6px 14px -6px rgba(210,150,0,.55);
}
.hero__sub { margin-top: 14px; font-weight: 700; color: var(--ink-soft); font-size: .98rem; }
.hero__cta { margin-top: 20px; }
@media (max-width: 767px) { .hero__cta .btn { width: 100%; } }
@media (max-width: 340px) { .hero__card { padding: 22px 14px; } .hero__pill { font-size: .95rem; padding: 7px 14px; } }

@media (min-width: 640px) and (max-width: 1023px) {
  .hero__card { margin-top: -64px; padding: 34px 32px; }
  .hero h1 { font-size: 3rem; }
}

/* Desktop hero: text overlays the empty sky on the right */
@media (min-width: 1024px) {
  .hero { max-width: 1600px; margin-inline: auto; }
  .hero__art { border-radius: 0 0 var(--r-xl) var(--r-xl); }
  .hero__content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding: 0 clamp(32px, 5vw, 96px) 6%; }
  .hero__card { margin: 0; background: transparent; box-shadow: none; padding: 0; width: min(46%, 600px); max-width: none; }
  .hero h1 { font-size: var(--text-hero); text-shadow: 0 2px 0 rgba(255,255,255,.4); }
  .hero__pill { font-size: clamp(1.15rem, .8rem + .9vw, 1.6rem); padding: 10px 28px; }
  .hero__sub { font-size: clamp(1rem, .85rem + .4vw, 1.25rem); color: var(--plum-900); max-width: 34ch; margin-inline: auto; }
  .hero__cta { margin-top: 28px; }
}

/* Floating decorations */
.float { position: absolute; pointer-events: none; color: #fff; opacity: .9; animation: floaty 6s ease-in-out infinite; }
.float--1 { top: 14%; right: 8%; width: 22px; }
.float--2 { top: 30%; right: 40%; width: 14px; animation-delay: -2s; color: var(--yellow-200); }
.float--3 { bottom: 26%; right: 4%; width: 18px; animation-delay: -4s; color: var(--pink-200); }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(12deg); } }
@media (max-width: 1023px) { .float--2 { display: none; } }

/* ---------- Benefits strip ---------- */
.benefits { position: relative; z-index: 2; margin-top: var(--s-8); }
.benefits__list {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 12px;
  margin-inline: calc(var(--gutter) * -1); scrollbar-width: none;
}
.benefits__list::-webkit-scrollbar { display: none; }
.benefit {
  flex: 0 0 72%; scroll-snap-align: start; display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(130,87,255,.1);
}
.benefit__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.benefit__icon .icon { width: 24px; height: 24px; }
.benefit:nth-child(1) .benefit__icon { background: #fff3c4; color: #c27c00; }
.benefit:nth-child(2) .benefit__icon { background: var(--violet-100); color: var(--violet-700); }
.benefit:nth-child(3) .benefit__icon { background: #e3ecff; color: #3552cc; }
.benefit:nth-child(4) .benefit__icon { background: var(--pink-100); color: var(--pink-600); }
.benefit h3 { font-size: 1.02rem; }
.benefit p { font-size: .86rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
@media (min-width: 640px) { .benefit { flex-basis: 44%; } }
@media (min-width: 1024px) {
  .benefits { margin-top: -54px; }
  .benefits__list {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; overflow: visible; margin: 0; padding: 22px 8px;
    background: rgba(255,255,255,.95); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); backdrop-filter: blur(8px);
  }
  .benefit { flex-direction: column; text-align: center; gap: 10px; box-shadow: none; border: 0; border-radius: 0; background: none; padding: 6px 18px; }
  .benefit + .benefit { border-left: 1px solid var(--violet-100); }
  .benefit__icon { width: 58px; height: 58px; border-radius: 50%; }
  .benefit__icon .icon { width: 28px; height: 28px; }
  .benefit h3 { font-size: 1.12rem; }
}

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 14px 12px 16px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(130,87,255,.1); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden;
}
.cat-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 58%; background: var(--cat-bg, var(--violet-100)); opacity: .7; z-index: 0; border-radius: 0 0 50% 50% / 0 0 22% 22%; }
.cat-card > * { position: relative; z-index: 1; }
.cat-card[data-cat="templates"] { --cat-bg: #f3e8ff; }
.cat-card[data-cat="ai-tools"] { --cat-bg: #e6edff; }
.cat-card[data-cat="wellness"] { --cat-bg: #ffe9f2; }
.cat-card[data-cat="creator"] { --cat-bg: #fff0dc; }
.cat-card img { width: auto; max-width: 78%; height: 92px; object-fit: contain; transition: transform .4s var(--ease); }
.cat-card h3 { margin-top: 10px; font-size: 1.05rem; }
.cat-card p { margin-top: 4px; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.cat-card__go { margin-top: 10px; width: 38px; height: 28px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--pink-100); color: var(--pink-600); transition: background .25s, color .25s, transform .25s; }
.cat-card__go .icon { width: 18px; height: 18px; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card:hover img { transform: scale(1.06) rotate(-2deg); }
.cat-card:hover .cat-card__go { background: var(--grad-cta); color: #fff; transform: translateX(2px); }
@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .cat-card { padding: 22px 18px 22px; border-radius: var(--r-xl); }
  .cat-card img { height: 150px; }
  .cat-card h3 { font-size: 1.3rem; margin-top: 14px; }
  .cat-card p { font-size: .92rem; }
}
@media (max-width: 340px) { .cat-card p { display: none; } .cat-card img { height: 76px; } }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 1100px) {
  .product-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
  .product-grid > .card { flex: 0 0 calc((100% - 56px) / 3); }
}

.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-xl);
  border: 1px solid rgba(130,87,255,.12); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media {
  display: block; padding: 10px 10px 0; background: linear-gradient(160deg, var(--lavender-50), #fff 70%);
}
.card__media picture { border-radius: calc(var(--r-xl) - 10px); overflow: hidden; background: var(--violet-100); box-shadow: 0 6px 16px -10px rgba(60,30,140,.4); }
/* Artwork keeps its intrinsic aspect ratio — never forced or stretched */
.card__media img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card__title { font-size: 1.14rem; line-height: 1.25; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__desc { font-size: .92rem; color: var(--muted); line-height: 1.45; }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--plum-900); }
.price small { font-family: var(--font-body); font-size: .74rem; font-weight: 700; color: var(--muted); margin-left: 4px; letter-spacing: .02em; }
.card__foot .btn { position: relative; z-index: 2; }
.card__view { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .88rem; color: var(--violet-700); position: relative; z-index: 2; }
.card__actions { display: flex; gap: 10px; align-items: center; }

/* Featured carousel on mobile */
@media (max-width: 639px) {
  .product-rail {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px; scroll-padding-inline: var(--gutter);
  }
  .product-rail::-webkit-scrollbar { display: none; }
  .product-rail > .card { flex: 0 0 86%; scroll-snap-align: start; }
  .card:hover { transform: none; }
}
.rail-hint { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.rail-hint span { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-200); transition: width .3s, background .3s; }
.rail-hint span.is-active { width: 22px; border-radius: 6px; background: var(--violet-600); }
@media (min-width: 640px) { .rail-hint { display: none; } }

/* ---------- Club / Subscribe ---------- */
.club {
  position: relative; overflow: hidden; display: grid; gap: 18px; align-items: center; text-align: center;
  padding: 24px 20px 26px; border-radius: var(--r-xl);
  background: linear-gradient(120deg, #f4ecff 0%, #ffe9f3 55%, #fff4e4 100%); border: 1px solid rgba(130,87,255,.14);
}
.club__art { width: 150px; margin: 0 auto; }
.club h2 { font-size: var(--text-xl); }
.club p { margin-top: 6px; color: var(--ink-soft); }
.sub-form { display: grid; gap: 10px; }
.field-inline { position: relative; }
.field-inline .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--violet-600); width: 20px; height: 20px; }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-md); border: 1.5px solid #e2d8fb;
  background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #8a80a8; }
.input:focus { outline: none; border-color: var(--violet-500); box-shadow: 0 0 0 4px rgba(130,87,255,.16); }
.input[aria-invalid="true"] { border-color: #d92d4f; box-shadow: 0 0 0 4px rgba(217,45,79,.12); }
.field-inline .input { padding-left: 46px; border-radius: var(--r-pill); }
textarea.input { min-height: 140px; resize: vertical; }
.form-msg { font-size: .92rem; font-weight: 700; min-height: 1.2em; }
.form-msg[data-state="error"] { color: #b4183c; }
.form-msg[data-state="success"] { color: #0b7a4b; }
.form-msg[data-state="info"] { color: var(--violet-700); }
.form-msg:empty { display: none; }
@media (min-width: 1024px) {
  .club { grid-template-columns: 210px 1fr 420px; text-align: left; padding: 22px 40px 22px 24px; gap: 32px; }
  .club__art { width: 210px; margin: -10px 0 -24px; }
  .sub-form { grid-template-columns: 1fr; }
}

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.why__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--violet-100); color: var(--violet-700); }
.why:nth-child(2) .why__icon { background: #fff3c4; color: #b06e00; }
.why:nth-child(3) .why__icon { background: var(--pink-100); color: var(--pink-600); }
.why:nth-child(4) .why__icon { background: #e3ecff; color: #3552cc; }
.why h3 { font-size: 1rem; }
.why p { font-size: .86rem; color: var(--muted); line-height: 1.4; }
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .why { flex-direction: row; align-items: flex-start; gap: 14px; padding: 20px; background: transparent; box-shadow: none; }
  .why__icon { width: 54px; height: 54px; flex: none; }
  .why h3 { font-size: 1.1rem; }
}

/* ---------- Page heads ---------- */
.page-head { padding: 28px 0 18px; text-align: center; position: relative; }
.page-head h1 { font-size: var(--text-2xl); }
.page-head p { margin-top: 8px; color: var(--muted); font-size: var(--text-md); }
@media (min-width: 1024px) {
  .page-head { padding: 64px 0 32px; }
  .page-head h1 { font-size: clamp(2.4rem, 1.6rem + 2vw, 3.2rem); }
}
.page-head__deco { position: absolute; top: 16px; width: 70px; opacity: .95; display: none; }
@media (min-width: 1024px) { .page-head__deco { display: block; } .page-head__deco--l { left: 6%; } .page-head__deco--r { right: 6%; top: 34px; } }

/* ---------- Shop toolbar ---------- */
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 22px; }
.toolbar > * { min-width: 0; }
.search-box { position: relative; }
.search-box .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--violet-600); width: 20px; height: 20px; pointer-events: none; }
.search-box .input { padding-left: 50px; border-radius: var(--r-pill); min-height: 54px; box-shadow: var(--shadow-sm); }
.search-box__clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.search-box__clear:hover { background: var(--violet-100); color: var(--violet-700); }
.search-box__clear[hidden] { display: none; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; min-height: 42px; padding: 8px 18px; border-radius: var(--r-pill); background: #fff; border: 1.5px solid var(--violet-100);
  font-family: var(--font-display); font-weight: 600; color: var(--ink-soft); transition: all .2s;
}
.filter:hover { border-color: var(--violet-200); color: var(--violet-700); }
.filter[aria-pressed="true"] { background: var(--grad-violet); border-color: transparent; color: #fff; box-shadow: var(--shadow-violet); }
.results-meta { font-size: .92rem; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
@media (min-width: 1024px) {
  .toolbar { grid-template-columns: minmax(280px, 400px) 1fr; align-items: center; gap: 24px; }
  .filters { margin: 0; padding: 2px; justify-content: flex-end; flex-wrap: wrap; overflow: visible; }
}

.empty {
  text-align: center; padding: 36px 20px; background: #fff; border-radius: var(--r-xl); border: 1.5px dashed var(--violet-200);
  display: grid; justify-items: center; gap: 10px;
}
.empty img { width: 120px; }
.empty h2, .empty h3 { font-size: 1.3rem; }
.empty p { color: var(--muted); max-width: 46ch; }
.empty[hidden] { display: none; }

/* ---------- Product detail ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .86rem; color: var(--muted); padding: 16px 0 10px; }
.crumbs a { font-weight: 700; color: var(--violet-700); }
.crumbs a:hover { text-decoration: underline; }
.crumbs .icon { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48vw; }

.pd { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "title" "cat" "price" "desc" "highlights" "included" "cta"; }
.pd__media { grid-area: media; }
.pd__title { grid-area: title; }
.pd__cat { grid-area: cat; }
.pd__price { grid-area: price; }
.pd__desc { grid-area: desc; }
.pd__highlights { grid-area: highlights; }
.pd__included { grid-area: included; }
.pd__cta { grid-area: cta; }
.pd__frame {
  padding: 10px; background: linear-gradient(150deg, #f3ecff, #ffeaf4); border-radius: var(--r-xl); box-shadow: var(--shadow-md);
}
.pd__frame picture { border-radius: calc(var(--r-xl) - 8px); overflow: hidden; background: #fff; }
.pd__frame img { width: 100%; height: auto; }
.pd__zoom { margin-top: 10px; display: inline-flex; gap: 6px; align-items: center; font-size: .86rem; font-weight: 800; color: var(--violet-700); padding: 8px 2px; }
.pd__title { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.5rem); margin-top: 6px; }
.pd__tagline { font-family: var(--font-display); font-weight: 600; color: var(--pink-600); font-size: 1.05rem; }
.pd__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd__price .price { font-size: 2rem; }
.pd__price .note { font-size: .84rem; font-weight: 700; color: var(--muted); }
.pd__desc { color: var(--ink-soft); font-size: 1.02rem; display: grid; gap: 8px; }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; color: var(--ink); line-height: 1.4; }
.check-list .tick { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--violet-100); color: var(--violet-700); margin-top: -1px; }
.check-list .tick .icon { width: 14px; height: 14px; stroke-width: 3; }
.panel { background: #fff; border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); border: 1px solid rgba(130,87,255,.1); }
.panel h2, .panel h3 { font-size: 1.18rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel h2 .icon, .panel h3 .icon { color: var(--pink-500); }
.pd__cta { display: grid; gap: 10px; }
.pd__cta .btn { width: 100%; }
.secure-note { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: .84rem; color: var(--muted); font-weight: 700; text-align: center; }
.secure-note .icon { width: 16px; height: 16px; color: #0b7a4b; }

@media (min-width: 1024px) {
  .pd {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); column-gap: 56px; row-gap: 16px; align-items: start;
    grid-template-areas:
      "media cat" "media title" "media price" "media desc" "media highlights" "media cta" "media ." "included included";
    grid-template-rows: auto auto auto auto auto auto 1fr auto;
  }
  .pd__media { position: sticky; top: calc(var(--header-h) + 24px); }
  .pd__frame { padding: 14px; }
  .pd__included { margin-top: 24px; }
  .pd__cta .btn { width: auto; justify-self: start; }
  .secure-note { justify-content: flex-start; text-align: left; }
}

.pd-sections { display: grid; gap: 16px; margin-top: 24px; }
@media (max-width: 1023px) { .pd-sections .pd-faq { order: -1; } }
.inside-grid { display: grid; gap: 12px; }
.inside-item { display: flex; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--lavender-50); }
.inside-item__n { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: #fff; color: var(--violet-700); box-shadow: var(--shadow-sm); }
.inside-item h3 { font-size: 1rem; margin: 0 0 2px; display: block; }
.inside-item p { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.spec { display: grid; gap: 0; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--violet-100); font-size: .95rem; }
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); font-weight: 700; }
.spec dd { margin: 0; font-weight: 800; text-align: right; }
.disclaimer { font-size: .86rem; color: var(--muted); background: #fff8e6; border-radius: var(--r-md); padding: 12px 14px; border: 1px solid #ffe7a6; }
@media (min-width: 768px) { .inside-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .pd-sections { grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 48px; }
  .pd-sections .span-2 { grid-column: 1 / -1; }
  .panel { padding: 26px 28px; }
  .panel h2 { font-size: 1.4rem; }
}

/* Accordion */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: var(--r-md); border: 1px solid rgba(130,87,255,.14); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; min-height: 52px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--violet-600); transition: transform .3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding: 0 18px 16px; color: var(--ink-soft); }
.faq details > div a { color: var(--violet-700); font-weight: 800; text-decoration: underline; }

/* Mobile sticky buy bar (product pages) */
.buybar {
  position: fixed; left: 0; right: 0; z-index: 54; bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter);
  background: rgba(255,255,255,.97); border-top: 1px solid rgba(130,87,255,.14); box-shadow: 0 -10px 24px -14px rgba(76,38,170,.35);
  transform: translateY(120%); transition: transform .35s var(--ease); visibility: hidden;
}
.buybar.is-visible { transform: none; visibility: visible; }
.buybar .price { font-size: 1.35rem; }
.buybar .btn { flex: 1; max-width: 240px; min-height: 46px; }
body.has-buybar { padding-bottom: calc(var(--bottomnav-h) + 70px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) { .buybar { display: none; } body.has-buybar { padding-bottom: 0; } }

/* ---------- Updates ---------- */
.coming {
  position: relative; overflow: hidden; text-align: center; padding: 34px 22px 30px; border-radius: var(--r-xl);
  background: linear-gradient(140deg, #f2eaff 0%, #ffe8f3 60%, #fff3df 100%); border: 1px solid rgba(130,87,255,.14);
  display: grid; justify-items: center; gap: 12px;
}
.coming img { width: 150px; }
.coming__badge { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); color: var(--plum-900); letter-spacing: .04em; }
.coming p { color: var(--ink-soft); max-width: 48ch; }
.update-list { display: grid; gap: 14px; }
.update { display: flex; gap: 14px; padding: 16px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.update__icon { width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--violet-100); color: var(--violet-700); }
.update__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .82rem; color: var(--muted); font-weight: 700; }
.update h3 { font-size: 1.08rem; margin-top: 4px; }
.update p { font-size: .92rem; color: var(--ink-soft); margin-top: 2px; }
.status { padding: 2px 10px; border-radius: var(--r-pill); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--pink-100); color: #b0175a; }
.status[data-status="update"] { background: #e3ecff; color: #2f4fc4; }
.status[data-status="soon"] { background: #fff1c2; color: #8a5a00; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; gap: 18px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 16px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(130,87,255,.1); }
.contact-card__icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--grad-violet); color: #fff; }
.contact-card strong { display: block; font-family: var(--font-display); font-weight: 600; }
.contact-card a { color: var(--violet-700); font-weight: 800; word-break: break-all; }
.contact-card a:hover { text-decoration: underline; }
.contact-aside { display: grid; gap: 14px; align-content: start; }
.contact-aside__art { display: none; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; font-size: .92rem; color: var(--ink-soft); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field-error { font-size: .82rem; font-weight: 700; color: #b4183c; }
.field-error:empty { display: none; }
@media (min-width: 1024px) {
  .contact-wrap { grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
  .contact-aside__art { display: block; width: 240px; margin: 8px auto 0; }
  .form-panel { padding: 32px; }
}

/* ---------- Auth ---------- */
.auth { display: grid; gap: 0; max-width: 980px; margin: 24px auto 0; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.auth__side { display: none; }
.auth__main { padding: 26px 20px 28px; }
.auth__main .brand { margin-bottom: 18px; }
.auth h1 { font-size: 1.7rem; }
.auth__lead { color: var(--muted); margin-top: 4px; margin-bottom: 18px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 56px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--violet-700); }
.pw-toggle:hover { background: var(--violet-100); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.check { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; font-size: .92rem; cursor: pointer; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--violet-600); }
.link { color: var(--violet-700); font-weight: 800; font-size: .92rem; min-height: 44px; display: inline-flex; align-items: center; }
.link:hover { text-decoration: underline; }
.auth__note { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); background: var(--lavender-50); font-size: .88rem; color: var(--ink-soft); }
.auth__note a { color: var(--violet-700); font-weight: 800; text-decoration: underline; }
@media (min-width: 900px) {
  .auth { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .auth__side { display: flex; flex-direction: column; justify-content: flex-end; position: relative; background: linear-gradient(160deg, #efe5ff, #ffe6f1); padding: 32px; }
  .auth__side img { width: 100%; max-width: 360px; margin: 0 auto; }
  .auth__side p { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--plum-900); text-align: center; margin-top: 12px; }
  .auth__main { padding: 44px 48px; }
}

/* ---------- Legal ---------- */
.legal { max-width: 820px; margin-inline: auto; background: #fff; border-radius: var(--r-xl); padding: 24px 20px; box-shadow: var(--shadow-sm); }
.legal h2 { font-size: 1.3rem; margin: 28px 0 10px; }
.legal h2:first-of-type { margin-top: 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 10px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.legal a { color: var(--violet-700); font-weight: 800; text-decoration: underline; }
.legal .meta { font-size: .9rem; color: var(--muted); padding-bottom: 14px; border-bottom: 1px dashed var(--violet-100); }
.ph { background: #fff3c4; color: #7a4b00; border-radius: 6px; padding: 0 6px; font-weight: 800; }
.legal-notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: #fff8e6; border: 1px solid #ffe7a6; font-size: .9rem; color: #6b4a00; margin-bottom: 8px; }
@media (min-width: 1024px) { .legal { padding: 44px 56px; } }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; margin-top: var(--section); color: #e9e2ff;
  background: radial-gradient(800px 300px at 85% 0%, rgba(236,61,136,.25), transparent 60%), linear-gradient(180deg, var(--plum-900), var(--plum-950));
  border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.5) 0 1px, transparent 1.5px), radial-gradient(circle at 70% 60%, rgba(255,255,255,.4) 0 1px, transparent 1.5px);
  background-size: 140px 120px, 190px 160px;
}
.footer-inner { position: relative; padding-block: 40px 22px; display: grid; gap: 28px; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: #c9bdf5; }
.footer-about { max-width: 34ch; margin-top: 14px; color: #cfc4f4; font-size: .94rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.footer-col h2 { font-size: 1rem; color: #fff; margin-bottom: 12px; }
.footer-col li + li { margin-top: 4px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 32px; color: #d9d0fb; font-size: .95rem; transition: color .2s, transform .2s; }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-contact a { overflow-wrap: anywhere; }
@media (max-width: 767px) { .footer-contact { grid-column: 1 / -1; } }
.footer-mascot { display: none; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.12); padding-block: 16px 20px; font-size: .86rem; color: #bfb3ea; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: 1fr 1fr 1fr 1.45fr; } }
@media (min-width: 1024px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) 120px; gap: 40px; padding-block: 56px 28px; }
  .footer-mascot { display: block; width: 120px; align-self: end; opacity: .95; }
  .footer-contact a { white-space: nowrap; overflow-wrap: normal; font-size: .9rem; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(20,8,52,.86); display: none; place-items: center; padding: 20px; }
.lightbox.is-open { display: grid; animation: page-in .3s var(--ease); }
.lightbox img { max-width: min(1400px, 100%); max-height: 88vh; width: auto; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }

/* ---------- Reveal on scroll (only when JS + motion allowed) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: .07s; }
.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: .21s; }
.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

.mobile-only { display: initial; }
.desktop-only { display: none; }
@media (min-width: 1024px) { .mobile-only { display: none; } .desktop-only { display: initial; } }
