/* ================================================================
   Glitter Jar product page — groundmass.net/glitterjar
   Self-contained: local fonts, local art, no external requests.
   Palette is the app's own "stardust" mood: indigo night, lilac
   glitter, rose gold charms, star gold, aurora mint for the
   "we collect nothing" promises.
   ================================================================ */

@font-face {
  font-family: 'Fredoka';
  src: url('../assets/fonts/fredoka.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../assets/fonts/nunito.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #0a0d20;          /* the app's own background color */
  --bg-2: #0d1129;
  --panel: #161c3d;
  --panel-2: #1c2350;
  --line: rgba(179, 136, 255, .16);
  --line-strong: rgba(179, 136, 255, .42);
  --violet: #b388ff;
  --violet-2: #ddc9ff;
  --violet-deep: #7c4ddb;
  --pink: #ff8fc7;
  --pink-2: #ffd0e6;
  --gold: #ffd88a;
  --mint: #2ee6a8;
  --text: #f3eeff;
  --muted: #b3aada;
  --shadow: 0 18px 50px rgba(4, 4, 20, .55);
  --r: 20px;
  --display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  font-family: var(--body);
  font-weight: 500;
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
}

/* A quiet starfield behind everything — three sizes of dust on a slow drift,
   fixed so the whole page feels like it's inside one night sky. */
body::before {
  content: '';
  position: fixed; inset: -20vh -10vw;
  z-index: -2;
  background-image:
    radial-gradient(1.6px 1.6px at 18% 12%, rgba(255, 255, 255, .75), transparent 60%),
    radial-gradient(1.3px 1.3px at 72% 8%,  rgba(221, 201, 255, .7), transparent 60%),
    radial-gradient(1.8px 1.8px at 41% 33%, rgba(255, 216, 138, .6), transparent 60%),
    radial-gradient(1.2px 1.2px at 88% 41%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(1.5px 1.5px at 9% 58%,  rgba(255, 143, 199, .55), transparent 60%),
    radial-gradient(1.2px 1.2px at 61% 66%, rgba(255, 255, 255, .6), transparent 60%),
    radial-gradient(1.7px 1.7px at 31% 84%, rgba(221, 201, 255, .6), transparent 60%),
    radial-gradient(1.3px 1.3px at 79% 91%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1.1px 1.1px at 50% 22%, rgba(255, 255, 255, .4), transparent 60%),
    radial-gradient(1.4px 1.4px at 24% 47%, rgba(255, 255, 255, .45), transparent 60%);
  background-size: 100% 100%;
  animation: driftStars 90s linear infinite alternate;
  pointer-events: none;
}
@keyframes driftStars {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-3vw, -4vh, 0); }
}
/* one wide bloom of violet light, high on the page */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -12%, rgba(124, 77, 219, .30), transparent 62%),
    radial-gradient(900px 600px at 88% 22%, rgba(255, 143, 199, .09), transparent 60%);
}

/* height:auto matters — the intrinsic width/height attributes on the
   screenshots are presentational hints, so without it an <img> we narrow with
   CSS keeps its full attribute height and renders stretched. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-2); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--violet); color: #17102c; padding: 10px 16px; border-radius: 0 0 10px 0;
  font-weight: 800; text-decoration: none;
}
.skip:focus { left: 0; }

::selection { background: rgba(179, 136, 255, .38); }

/* ---------------- typography helpers ---------------- */

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: .2px; }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.8rem); line-height: 1.14; margin-bottom: 14px; }

.grad {
  background: linear-gradient(100deg, var(--violet-2) 8%, var(--violet) 42%, var(--pink) 88%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.kicker {
  font-family: var(--display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px; font-size: .8rem;
  color: var(--pink);
  text-shadow: 0 0 22px rgba(255, 143, 199, .4);
  margin-bottom: 10px;
}
.section-alt .kicker { color: var(--gold); text-shadow: 0 0 22px rgba(255, 216, 138, .3); }

.lead { color: var(--muted); font-size: 1.1rem; max-width: 720px; }
.head { margin-bottom: 44px; }
.fine { color: var(--muted); font-size: .85rem; opacity: .88; }
.center { text-align: center; }

/* ---------------- reveal animation ---------------- */

[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s ease var(--d, 0ms), transform .8s cubic-bezier(.2, .7, .3, 1) var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------------- nav ---------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.solid {
  background: rgba(10, 13, 32, .84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand {
  font-family: var(--display); font-weight: 600; font-size: 1.22rem;
  text-decoration: none; color: var(--violet-2); letter-spacing: .4px;
  text-shadow: 0 0 20px rgba(179, 136, 255, .45);
  display: inline-flex; align-items: center; gap: 8px;
}
.brand span { color: var(--pink); text-shadow: 0 0 20px rgba(255, 143, 199, .4); }
.brand::before { content: '✦'; color: var(--gold); font-size: .9em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--text); text-decoration: none; font-weight: 700; font-size: .93rem;
  opacity: .82; transition: opacity .2s, color .2s;
}
.nav-links a:hover { opacity: 1; color: var(--violet-2); }
.nav-cta {
  font-weight: 800; font-size: .9rem; text-decoration: none; color: #1a0f2e;
  background: linear-gradient(180deg, var(--violet-2), var(--violet-deep));
  padding: 9px 16px; border-radius: 999px;
  box-shadow: 0 4px 20px rgba(179, 136, 255, .3);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(179, 136, 255, .5); }
@media (max-width: 900px) { .nav-links { display: none; } .nav-in { justify-content: space-between; } }

/* ---------------- hero ---------------- */

.hero { position: relative; padding: 122px 0 30px; overflow: hidden; }

/* charms floating up through the hero like flecks in water */
.hero-float { position: absolute; inset: 0; pointer-events: none; }
.fl {
  position: absolute; width: 58px; opacity: .75;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55));
  animation: floaty 9s ease-in-out infinite;
}
/* They live strictly in the page gutters — never over the copy. Below the
   width where real gutters exist, they're gone rather than crowded. */
.fl-1 { top: 15%;  left: 1%;    animation-delay: -1s; }
.fl-2 { top: 72%;  left: 2.5%;  width: 46px; animation-delay: -4s; }
.fl-3 { top: 24%;  right: 1%;   width: 50px; animation-delay: -2s; }
.fl-4 { top: 64%;  right: 2.5%; width: 44px; animation-delay: -6s; }
.fl-5 { top: 45%;  left: 4%;    width: 34px; opacity: .4; animation-delay: -3s; }
.fl-6 { top: 88%;  right: 5.5%; width: 40px; opacity: .45; animation-delay: -7s; animation-duration: 11s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-22px) rotate(5deg); }
}
@media (max-width: 1290px) { .hero-float { display: none; } }

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px; align-items: center;
}
.hero-grid > * { min-width: 0; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; font-size: .76rem;
  color: var(--violet-2);
  border: 1px solid var(--line-strong);
  background: rgba(22, 28, 61, .6);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 230, 168, .5); }
  70%  { box-shadow: 0 0 0 9px rgba(46, 230, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 168, 0); }
}

.hero-logo {
  width: min(500px, 92%); height: auto;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .55)) drop-shadow(0 0 60px rgba(179, 136, 255, .35));
  animation: logoIn 1.1s cubic-bezier(.2, .8, .25, 1) both;
}
@keyframes logoIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.tagline { font-size: 1.14rem; color: var(--muted); max-width: 540px; margin: 20px 0 26px; }
.tagline em { color: var(--violet-2); font-style: normal; font-weight: 800; }
.tagline b { color: var(--text); }

.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.badge-link { display: inline-block; border-radius: 12px; transition: transform .2s, filter .2s; }
.badge-link:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5)); }
.badge-link:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.cta-note { font-size: .95rem; color: var(--muted); max-width: 230px; line-height: 1.45; }
.cta-note strong { color: var(--text); display: block; }
.cta-note b { color: var(--mint); }

.trust { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin-top: 24px; }
.trust li {
  font-size: .82rem; font-weight: 800; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px 6px 10px;
  background: rgba(22, 28, 61, .5);
}
.trust li::before { content: '✓ '; color: var(--mint); }

/* ---------------- hero device (the demo slot) ---------------- */

.hero-device { justify-self: center; width: 100%; max-width: 340px; }

/* A phone body with a soft violet bloom behind it. The screen area is sized by
   the 1:2 portrait aspect the app captures at, so a video and a still both drop
   in without touching anything else. */
.device {
  position: relative;
  padding: 12px;
  border-radius: 40px;
  background: linear-gradient(160deg, #3b3160, #1b1a38 45%, #0f1128);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, .62),
    0 0 70px rgba(124, 77, 219, .25),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(255, 255, 255, .06);
}
/* Deliberately still. The video is all the motion this needs, a drifting frame
   resamples every one of its pixels, and the sound button shouldn't be a moving
   target. The breathing bloom below carries the life instead. */
.device::before {           /* the bloom the jar throws on the "table" */
  content: '';
  position: absolute; inset: 12% 4% -8%;
  z-index: -1;
  background: radial-gradient(circle, rgba(179, 136, 255, .45), rgba(255, 143, 199, .16) 55%, transparent 72%);
  filter: blur(42px);
  animation: breathe 7s ease-in-out infinite;
}
.device::after {            /* speaker slot, so it reads as a phone */
  content: '';
  position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 62px; height: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

/* The screen itself. 9:16 is the video's own aspect — never crop it, the
   on-screen copy lives near the top and bottom of the frame. */
.screens {
  display: block;
  aspect-ratio: 9 / 16;
  width: 100%; height: auto;
  border-radius: 30px;
  overflow: hidden;
  background: #0a0d20;
  object-fit: contain;
}

/* Sits BELOW the device, never over the picture — the footage already has the
   app's own controls in its corners, and a labeled pill is easier to find than
   a mystery icon floating on the video. */
.sound-row { display: flex; justify-content: center; margin-top: 16px; }
.sound-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 17px 8px 13px;
  border-radius: 999px; cursor: pointer;
  font-family: var(--body); font-size: .82rem; font-weight: 800; letter-spacing: .2px;
  color: var(--violet-2);
  background: rgba(22, 28, 61, .72);
  border: 1px solid var(--line-strong);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.sound-btn:hover { transform: translateY(-2px); background: rgba(35, 43, 92, .9); color: var(--text); }
.sound-btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
/* the app's own icon art is dark-lined, so lift it off the dark pill */
.sound-btn img {
  width: 22px; height: 22px; object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(221, 201, 255, .9));
}
.sound-btn[aria-pressed="true"] { border-color: var(--violet); color: var(--text); }

.jar-caption { text-align: center; color: var(--muted); font-size: .86rem; margin-top: 20px; }
.jar-caption b { color: var(--violet-2); }

/* ---------------- stats band ---------------- */

.stats {
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 8px; margin-top: 58px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 12px;
}
.stat { text-align: center; }
.stat b {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.45rem, 3vw, 2.05rem); color: var(--violet-2);
  text-shadow: 0 0 26px rgba(179, 136, 255, .45);
}
.stat span { font-size: .74rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.stat.zero b { color: var(--mint); text-shadow: 0 0 26px rgba(46, 230, 168, .35); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); row-gap: 20px; } }

/* ---------------- sections ---------------- */

.section { padding: 96px 0; position: relative; }
/* so an anchor jump doesn't tuck the heading under the fixed nav */
.section[id], .tier-band[id] { scroll-margin-top: 74px; }
.section-alt {
  background:
    radial-gradient(900px 500px at 14% 0%, rgba(124, 77, 219, .16), transparent 62%),
    rgba(13, 17, 41, .82);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------------- split (mechanic) ---------------- */

.split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 940px) { .split { grid-template-columns: minmax(0, 1fr); } }

.shot { position: relative; text-align: center; }
.shot::before {
  content: '';
  position: absolute; inset: 4% 6%;
  background: radial-gradient(circle, rgba(179, 136, 255, .4), rgba(255, 143, 199, .14) 55%, transparent 72%);
  filter: blur(34px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(.94); opacity: .75; }
  50%      { transform: scale(1.06); opacity: 1; }
}
.shot img {
  position: relative;
  width: min(300px, 78%); margin: 0 auto;
  border-radius: 26px;
  border: 1px solid rgba(196, 214, 232, .18);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .6);
}
.shot figcaption { position: relative; color: var(--muted); font-size: .86rem; margin-top: 16px; }

.split-copy p { margin-bottom: 14px; }
.split-copy p b { color: var(--violet-2); }

.no-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.no-list li {
  font-size: .86rem; font-weight: 800; color: var(--muted);
  border: 1px solid rgba(255, 143, 199, .28); border-radius: 999px;
  padding: 6px 14px; background: rgba(30, 16, 42, .5);
}
.no-list li::before { content: '✕ '; color: var(--pink); }

/* ---------------- loop steps ---------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: linear-gradient(180deg, var(--panel), rgba(22, 28, 61, .35));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 22px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.step img { width: 76px; height: 76px; object-fit: contain; margin-bottom: 16px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.step h3 span {
  display: inline-grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(180deg, var(--violet-2), var(--violet-deep));
  color: #1a0f2e; font-size: .84rem;
}
.step p { color: var(--muted); font-size: .95rem; }

/* ---------------- tier band ---------------- */

.tier-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 300px at 50% 50%, rgba(179, 136, 255, .18), transparent 70%),
    #080b1c;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 46px 0;
}
.tier-in { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.tier-badges { display: flex; gap: 26px; align-items: flex-end; flex-wrap: wrap; justify-content: center; }
.tier-badges figure { text-align: center; }
.tier-badges img {
  width: 60px; margin: 0 auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55));
  transition: transform .25s ease;
}
.tier-badges figure:nth-child(2) img { width: 70px; }
.tier-badges figure:nth-child(3) img { width: 82px; animation: gleam 3s ease-in-out infinite; }
@keyframes gleam {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); }
  50%      { transform: scale(1.07); filter: drop-shadow(0 0 26px rgba(255, 216, 138, .6)); }
}
.tier-badges figure:hover img { transform: scale(1.12) rotate(4deg); }
.tier-badges figcaption {
  font-family: var(--display); font-weight: 600; font-size: .68rem; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--violet-2); margin-top: 10px;
}
.tier-badges .n { display: block; font-size: .64rem; letter-spacing: .6px; color: var(--muted); text-transform: none; }
.tier-secret {
  width: 82px; height: 82px; display: grid; place-items: center;
  border-radius: 22px; border: 1px dashed rgba(255, 216, 138, .5);
  background: rgba(255, 216, 138, .05);
  font-family: var(--display); font-size: 2rem; color: rgba(255, 216, 138, .65);
  animation: breathe 5s ease-in-out infinite;
}
.tier-copy { max-width: 340px; color: var(--muted); font-size: 1.02rem; }
.tier-copy b { color: var(--violet-2); }

/* ---------------- charm tray ---------------- */

.tray-block + .tray-block { margin-top: 30px; }
.tray-head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.tray-head h3 { font-size: 1.05rem; color: var(--violet-2); letter-spacing: 1.6px; text-transform: uppercase; }
.tray-head span { font-size: .8rem; color: var(--muted); font-weight: 700; }
/* 13 across: the tiers are 13 / 12 / 8, so every block is exactly ONE centered
   row and no tier ever leaves an orphan hanging off a line. Narrower screens
   wrap, and centring keeps the short row under the middle of the full one. */
.tray { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tray figure { flex: 0 0 calc((100% - 96px) / 13); }
@media (max-width: 1020px) { .tray { gap: 10px; } .tray figure { flex-basis: calc((100% - 70px) / 8); } }
@media (max-width: 700px)  { .tray figure { flex-basis: calc((100% - 50px) / 6); } }
@media (max-width: 460px)  { .tray figure { flex-basis: calc((100% - 30px) / 4); } }
.tray figure {
  background: linear-gradient(180deg, rgba(28, 35, 80, .8), rgba(16, 20, 52, .55));
  border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 4px 8px; text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tray figure:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.tray img { width: 40px; height: 40px; object-fit: contain; margin: 0 auto 6px; }
.tray figcaption {
  font-size: .6rem; font-weight: 800; color: var(--muted); letter-spacing: .1px;
  line-height: 1.25; overflow-wrap: anywhere;
}
.tray .locked { border-style: dashed; opacity: .55; }
.tray .locked img { filter: grayscale(1) brightness(.5); }

/* ---------------- colors ---------------- */

.pals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .pals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pals { grid-template-columns: 1fr; } }

.pal {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(180deg, var(--panel), rgba(22, 28, 61, .45));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.pal:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.pal .chip {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background-image: var(--sw);
  border: 2px solid rgba(255, 255, 255, .18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45), inset 0 2px 6px rgba(255, 255, 255, .25);
}
.pal h3 { font-size: 1.05rem; margin-bottom: 2px; }
.pal p { font-size: .82rem; color: var(--muted); }
.pal .how {
  display: inline-block; margin-top: 6px;
  font-size: .68rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px;
  color: var(--violet-2); background: rgba(10, 13, 32, .5);
}
.pal .how.free { color: var(--mint); border-color: rgba(46, 230, 168, .45); }

/* ---------------- moods (themes) ---------------- */

.moods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 820px) { .moods { grid-template-columns: 1fr; } }
.mood {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 26px;
  padding: 28px 26px 0; text-align: center;
}
.mood-night { background: linear-gradient(180deg, #131a3f, #0a0d20); }
.mood-day   { background: linear-gradient(180deg, #f0e6f6, #ddd3ee); }
.mood h3 { font-size: 1.4rem; margin-bottom: 6px; }
.mood-night h3 { color: var(--violet-2); }
.mood-day h3 { color: #a63b74; }
.mood p { font-size: .95rem; margin-bottom: 20px; }
.mood-night p { color: var(--muted); }
.mood-day p { color: #6a4d78; }
.mood img.shotimg {
  width: min(250px, 72%); margin: 0 auto;
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(255, 255, 255, .2); border-bottom: 0;
  box-shadow: 0 -6px 40px rgba(0, 0, 0, .35);
}
/* fixed height, not width: the two wordmarks trim to different aspect ratios,
   and a shared height is what keeps the two cards' content on the same lines */
.mood .logo-tag { height: 46px; width: auto; object-fit: contain; margin: 0 auto 14px; }
.mood p { min-height: 3.1em; }

.zen-strip {
  margin-top: 22px;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(124, 77, 219, .22), rgba(10, 13, 32, .4));
  border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: 22px 26px;
}
.zen-strip img { width: 64px; flex: none; filter: drop-shadow(0 0 16px rgba(179, 136, 255, .5)); }
.zen-strip p { flex: 1; min-width: 260px; color: var(--muted); font-size: .96rem; }
.zen-strip .zen-shot {
  width: 108px; border-radius: 14px;
  border: 1px solid rgba(196, 214, 232, .2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
  filter: none;
}
@media (max-width: 720px) { .zen-strip .zen-shot { display: none; } }
.zen-strip b { color: var(--violet-2); }

/* ---------------- knobs (settings) ---------------- */

.knob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1020px) { .knob-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .knob-grid { grid-template-columns: 1fr; } }
.knob {
  background: linear-gradient(180deg, var(--panel), rgba(22, 28, 61, .4));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 20px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.knob:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.knob h3 {
  font-size: .82rem; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--pink); margin-bottom: 10px;
}
.knob p { color: var(--muted); font-size: .93rem; }
/* a little inert slider drawn in CSS, mirroring the app's control */
.knob .rail {
  position: relative; height: 6px; border-radius: 999px;
  background: rgba(179, 136, 255, .18); margin: 14px 0 4px;
}
.knob .rail::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v, 60%);
  border-radius: 999px; background: linear-gradient(90deg, var(--violet-deep), var(--violet));
}
.knob .rail::after {
  content: ''; position: absolute; top: 50%; left: var(--v, 60%);
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: var(--pink);
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.knob .seg { display: flex; gap: 4px; margin: 14px 0 4px; background: rgba(10, 13, 32, .6); border-radius: 999px; padding: 4px; }
.knob .seg i {
  flex: 1; text-align: center; font-style: normal; font-size: .72rem; font-weight: 800;
  color: var(--muted); padding: 5px 0; border-radius: 999px;
}
.knob .seg i.on { background: var(--pink); color: #2a0f22; }

/* ---------------- promise (pricing analog) ---------------- */

.promise { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: stretch; }
@media (max-width: 880px) { .promise { grid-template-columns: 1fr; } }

.promise-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel), rgba(22, 28, 61, .6));
  border: 1px solid var(--line); border-radius: 24px;
  padding: 30px 28px; display: flex; flex-direction: column;
}
.promise-card.headline {
  border: 2px solid var(--line-strong);
  background:
    radial-gradient(500px 320px at 80% -10%, rgba(179, 136, 255, .2), transparent 62%),
    linear-gradient(180deg, var(--panel-2), rgba(22, 28, 61, .78));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5), 0 0 50px rgba(179, 136, 255, .08);
}
.promise-card header { margin-bottom: 18px; }
.promise-card h3 { font-size: 1.35rem; }
.price {
  font-family: var(--display); font-weight: 600; font-size: 3rem; line-height: 1.1;
  color: var(--mint); text-shadow: 0 0 30px rgba(46, 230, 168, .3);
}
.price span {
  display: block; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); font-family: var(--body); font-weight: 800;
}
.promise-card ul { list-style: none; margin-bottom: 26px; flex: 1; }
.promise-card li {
  padding: 9px 0 9px 30px; position: relative;
  color: var(--muted); font-size: .97rem;
  border-bottom: 1px dashed rgba(179, 136, 255, .13);
}
.promise-card li:last-child { border-bottom: 0; }
.promise-card li b { color: var(--text); }
.promise-card li::before {
  content: '✓'; position: absolute; left: 4px; top: 8px;
  color: var(--mint); font-weight: 900;
}
.promise-card.nots li::before { content: '✕'; color: var(--pink); }
.ribbon {
  position: absolute; top: -14px; right: 26px;
  font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
  background: linear-gradient(180deg, var(--violet-2), var(--violet-deep));
  color: #1a0f2e; padding: 7px 16px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(179, 136, 255, .35);
}

.btn-primary {
  display: block; text-align: center; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: 1px;
  border-radius: 16px; padding: 15px 18px;
  background: linear-gradient(180deg, var(--violet-2), var(--violet-deep));
  color: #1a0f2e;
  box-shadow: 0 8px 26px rgba(179, 136, 255, .3);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(179, 136, 255, .48); filter: brightness(1.05); }

/* ---------------- marquee ---------------- */

.marquee {
  overflow: hidden; margin-top: 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* The vertical padding has to clear the float amplitude below, or the marquee's
   own overflow:hidden shaves the tops and bottoms off the charms as they bob. */
.track {
  display: inline-flex; align-items: center; gap: 26px;
  width: max-content; padding: 30px 12px;
  animation: slide 52s linear infinite;
}
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.track img {
  width: 58px; height: 58px; object-fit: contain; flex: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5));
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(-9px) rotate(-4deg); }
  50%      { transform: translateY(9px) rotate(5deg); }
}
.track img:nth-child(2n) { animation-delay: -2.5s; }
.track img:nth-child(3n) { animation-delay: -4.5s; }

/* ---------------- FAQ ---------------- */

.faq details {
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, var(--panel), rgba(22, 28, 61, .4));
  margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 800; font-size: 1.02rem;
  padding: 17px 52px 17px 20px; position: relative;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 1.35rem; color: var(--violet);
  transition: transform .25s ease;
}
.faq details[open] summary { color: var(--violet-2); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: .96rem; }
.faq details p + p { padding-top: 0; }

/* ---------------- final CTA + footer ---------------- */

.final {
  position: relative; padding: 106px 0 116px; text-align: center;
  background: radial-gradient(700px 420px at 50% 20%, rgba(124, 77, 219, .22), transparent 66%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.final-in { display: flex; flex-direction: column; align-items: center; gap: 20px; }
/* two store badges sit side by side, stacking on narrow screens */
.final-badges { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.contact-line { font-size: 1rem; }
.contact-line a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.final-logo { width: min(400px, 84%); filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .55)); }
.final p { font-size: 1.22rem; color: var(--muted); }
.final .fine { font-size: .88rem; }
.solo-dev { margin-top: 20px; color: var(--muted); font-size: .96rem; font-style: italic; }
.solo-dev .heart {
  display: inline-block; color: var(--pink); font-style: normal;
  text-shadow: 0 0 14px rgba(255, 143, 199, .7);
  animation: heartbeat 1.9s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.24); }
  24% { transform: scale(1); }
  36% { transform: scale(1.17); }
  48% { transform: scale(1); }
}

.footer { border-top: 1px solid var(--line); padding: 30px 0 40px; background: #07091a; }
.foot-in { display: flex; flex-direction: column; gap: 8px; }
.footer p { color: var(--muted); font-size: .9rem; }
.footer a { color: var(--violet-2); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------------- legal pages ---------------- */

.legal { padding: 118px 0 90px; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.1; margin-bottom: 12px; }
.legal h2 { font-size: clamp(1.15rem, 2.6vw, 1.42rem); margin: 40px 0 10px; color: var(--violet-2); letter-spacing: .4px; }
.legal p { color: var(--muted); margin-bottom: 12px; }
.legal p b, .legal li b { color: var(--text); }
.legal code { font-size: .92em; color: var(--violet-2); background: rgba(179, 136, 255, .1); border-radius: 6px; padding: 1px 6px; }
.legal-meta { font-size: .92rem; opacity: .9; margin-bottom: 34px; }
.legal-tldr {
  background: linear-gradient(180deg, var(--panel), rgba(22, 28, 61, .6));
  border: 1px solid var(--line-strong); border-radius: 22px;
  padding: 24px 26px 20px;
}
.legal-tldr h2 { margin: 0 0 8px; color: var(--violet); }
.legal-tldr p { margin-bottom: 0; color: var(--text); }
.legal-list { list-style: none; margin: 4px 0 14px; }
.legal-list li {
  position: relative; padding: 8px 0 8px 26px;
  color: var(--muted); font-size: .97rem;
  border-bottom: 1px dashed rgba(179, 136, 255, .13);
}
.legal-list li:last-child { border-bottom: 0; }
.legal-list li::before { content: '✦'; position: absolute; left: 4px; top: 8px; color: var(--gold); font-size: .72rem; }
.legal-back { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-back a { font-weight: 800; text-decoration: none; }
.legal-back a:hover { text-decoration: underline; }

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .track { animation: none; }
}
