/* =========================================================
   Attract & Align — app-hub styles
   Palette derived from the brand banner + lotus mark:
   warm ivory sunrise · soft blush · antique GOLD accent ·
   deep warm-brown text.
   Social icons keep official brand colors.
   ========================================================= */

:root {
  /* Warm ivory base (from the banner's sunrise haze) */
  --bg:          #faf4ea;
  --bg-card:     #fffdf9;

  /* Card surfaces — frosted ivory instead of the old royal blue */
  --card:        linear-gradient(135deg, #ffffff 0%, #fdf5e8 100%);
  --card-soft:   linear-gradient(135deg, #fffdf8 0%, #fbf1e1 100%);

  --blush:       #f2d9d1;   /* lotus / flower blush            */
  --rose:        #e6bdb2;   /* deeper blush for accents        */
  --haze:        #efe3d2;   /* mid sand, for dividers          */

  /* Gold accent (from the mark's gilded edge) */
  --gold:        #846026;   /* text-safe gold (>4.5:1 on --bg) */
  --gold-bright: #a37c38;   /* hover / emphasis                */
  --gold-deep:   #6b4d1c;   /* deepest, for small meta         */
  --gold-grad:   linear-gradient(180deg, #a37c38 0%, #846026 55%, #6b4d1c 100%);
  --gold-line:   rgba(132,96,38, .28);  /* borders          */
  --gold-wash:   rgba(132,96,38, .08);  /* tinted fills     */

  --ink:         #43301c;
  --ink-soft:    #6b543a;
  --ink-faint:   #7a6249;
  --on-gold:     #fffdf9;   /* text on a gold-filled button    */

  /* Type */
  --serif:   "Cinzel", Georgia, serif;             /* small-caps titles  */
  --display: "Playfair Display", Georgia, serif;   /* elegant hero title */
  --sans:    "Inter", system-ui, sans-serif;       /* body               */

  --app-w:    460px;
  --radius:   16px;
  --radius-lg:24px;
  --ease:     cubic-bezier(.22, 1, .36, 1);
  --shadow:   0 10px 30px -12px rgba(120, 88, 40, 0.28);
  --tabbar-h: 70px;
}

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--gold-deep); color: var(--on-gold); padding: .55rem 1rem; border-radius: 10px;
  box-shadow: var(--shadow); transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0); }

/* ---------- Ivory sunrise backdrop ---------- */
.aura {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(46% 36% at 50% 18%, rgba(247, 226, 190, .85), transparent 70%),
    radial-gradient(42% 32% at 82% 66%, rgba(242, 217, 209, .70), transparent 72%),
    radial-gradient(40% 30% at 14% 78%, rgba(232, 214, 236, .45), transparent 72%),
    radial-gradient(38% 30% at 50% 100%, rgba(198, 160, 90, .14), transparent 70%),
    var(--bg);
}
/* will-change promotes the blurred layer once. Do NOT add `contain: paint` here —
   it clips the 80px blur halo to the element box and hard-edges the blob. */
.aura__blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  animation: drift 20s ease-in-out infinite;
  will-change: transform; }
.aura__blob--1 { width: 42vw; height: 42vw; left: 50%; top: -8vw; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(248, 224, 178, .85), transparent 70%); }
.aura__blob--2 { width: 36vw; height: 36vw; right: -8vw; top: 34vh; animation-delay: -7s;
  background: radial-gradient(circle, rgba(240, 209, 200, .70), transparent 70%); }
.aura__blob--3 { width: 38vw; height: 38vw; left: -8vw; bottom: -10vw; animation-delay: -13s;
  background: radial-gradient(circle, rgba(198, 160, 90, .22), transparent 70%); }
.aura__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Pure translate: scaling a blur(80px) layer forces the compositor to
   re-rasterize the blurred texture every frame. Translating reuses it. */
@keyframes drift {
  0%,100% { transform: translate3d(0,0,0); }
  50%     { transform: translate3d(2vw,-2vw,0); }
}

/* ---------- App shell ---------- */
.app {
  width: min(100%, var(--app-w));
  margin-inline: auto;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: 0 16px calc(var(--tabbar-h) + 22px);
}

/* ---------- Top header ---------- */
.topbar { padding: 20px 0 14px; text-align: center; position: sticky; top: 0; z-index: 30; }
.topbar::before { content: ""; position: absolute; inset: -20px 0 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg) 35%, transparent);
  -webkit-mask: linear-gradient(180deg, #000 60%, transparent);
          mask: linear-gradient(180deg, #000 60%, transparent); }
.topbar__title {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: clamp(.9rem, 3.6vw, 1.05rem); letter-spacing: .28em; text-transform: uppercase;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Hero card ---------- */
/* The brand mark sits on its own cream card with the wordmark beneath it —
   the lotus is a light artwork, so the old dark photo overlay is gone. */
.hero {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 12px 40px -16px rgba(120, 88, 40, .38); margin-top: 6px;
  background: var(--card); border: 1px solid var(--gold-line);
  padding: 26px 22px 24px; text-align: center;
}
.hero__img {
  position: relative; z-index: 1; display: block;
  width: 62%; max-width: 240px; height: auto; margin: 0 auto;
  border-radius: 50%;
  box-shadow: 0 10px 30px -12px rgba(120, 88, 40, .45);
}

/* Soft gradient fallback shown only if logo.jpg is missing. The mark no longer
   fills the card, so the fallback can't just sit behind it — it's hidden while
   the <img> is present and revealed when onerror removes it. */
.hero__img + .hero__art { display: none; }
.hero__art {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 50% 28%, #f7e2be 0%, transparent 60%),
    radial-gradient(70% 60% at 22% 72%, #f2d9d1 0%, transparent 62%),
    radial-gradient(70% 60% at 80% 78%, #e8d6ec 0%, transparent 60%),
    linear-gradient(160deg, #fffdf9, #fbf1e1 55%, #f4e6d2);
  display: grid; place-items: center; color: rgba(132,96,38, .55);
}
.hero__mandala { width: 76%; filter: drop-shadow(0 0 14px rgba(198, 160, 90, .35)); }
.hero__mandala svg { width: 100%; height: auto; }
.hero__petals { animation: spin 60s linear infinite; transform-origin: 100px 100px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__overlay {
  position: relative; z-index: 2; padding: 18px 0 0; text-align: center;
}
.hero__title {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(2rem, 9vw, 2.7rem); letter-spacing: .5px; line-height: 1.05;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  margin: 9px auto 0; max-width: 32ch; color: var(--ink-soft);
  font-size: .84rem; line-height: 1.5;
}

/* Social row — official brand colors */
.socials { display: flex; justify-content: center; gap: 13px; margin-top: 18px; }
.social {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: #333;
  box-shadow: 0 6px 16px -6px rgba(120, 88, 40, .45), inset 0 0 0 1px rgba(255,255,255,.14);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.social svg { width: 22px; height: 22px; }
.social:hover { transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 24px -6px rgba(120, 88, 40, .6); }
.social--spotify    { background: #1db954; }
.social--applemusic { background: linear-gradient(135deg,#fb5c74,#fa233b); }
.social--youtube    { background: #ff0000; }
.social--instagram  { background: linear-gradient(45deg,#feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5); }
.social--facebook   { background: #1877f2; }

/* ---------- Menu tiles — frosted ivory cards, gold titles ---------- */
.menu { display: flex; flex-direction: column; gap: 13px; margin-top: 18px; }
.tile {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px;
  background: var(--card);
  border: 1px solid var(--gold-line); border-radius: var(--radius);
  box-shadow: 0 8px 22px -14px rgba(120, 88, 40, .5);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.tile:hover { transform: translateY(-2px); border-color: rgba(132,96,38, .55);
  box-shadow: 0 14px 30px -14px rgba(120, 88, 40, .6), 0 0 0 1px rgba(132,96,38, .18); }
.tile:active { transform: translateY(0); }

.tile__badge {
  flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.35rem; color: var(--gold); background: var(--gold-wash);
  box-shadow: inset 0 0 0 1px rgba(132,96,38, .26);
}

.tile__body { flex: 1; min-width: 0; }
.tile__title {
  display: block; font-family: var(--serif); font-weight: 600; font-size: 1rem;
  letter-spacing: .07em; text-transform: uppercase;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tile__sub { display: block; margin-top: 3px; font-size: .8rem; color: var(--ink-soft); }
.tile__chev { flex: none; font-size: 1.5rem; color: var(--gold); line-height: 1;
  transition: transform .2s var(--ease); }
.tile:hover .tile__chev { transform: translateX(3px); color: var(--gold-bright); }

.madewith { text-align: center; margin: 26px 0 6px; font-family: var(--serif);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- Bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 40;
  width: min(100%, var(--app-w)); height: var(--tabbar-h);
  display: grid; grid-template-columns: repeat(6, 1fr); align-items: center;
  padding: 0 6px calc(env(safe-area-inset-bottom, 0));
  background: rgba(255, 250, 242, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--gold-line);
  box-shadow: 0 -8px 26px -18px rgba(120, 88, 40, .55);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0;
  color: var(--ink-faint); transition: color .2s var(--ease), transform .2s var(--ease); }
.tab__icon { font-size: 1.2rem; line-height: 1; }
.tab__label { font-family: var(--serif); font-size: .56rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 600; }
.tab:hover { color: var(--ink-soft); transform: translateY(-1px); }
.tab.is-active { color: var(--gold); }
.tab.is-active .tab__icon { color: var(--gold); }

/* ---------- Subpage (Songs & Lyrics, etc.) ---------- */
.subhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--gold);
  font-family: var(--serif); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.backlink:hover { color: var(--gold-bright); transform: translateX(-2px); }
.backlink__arrow { font-size: 1.1rem; line-height: 1; }

.page-head { text-align: center; margin: 12px 0 18px; }
.page-head h1 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; font-size: clamp(1.3rem, 5.4vw, 1.7rem);
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { color: var(--ink-soft); font-size: .85rem; margin: .45rem auto 0; max-width: 32ch; }

/* Streaming chips */
.streaming { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.stream-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px;
  background: var(--card);
  border: 1px solid var(--gold-line); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.stream-link:hover { transform: translateY(-2px); border-color: rgba(132,96,38, .5); }
.stream-link__ic { flex: none; width: 60px; height: 60px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; color: #fff; }
.stream-link__ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.streaming .stream-link__ic, .streaming .stream-link__logo, .streaming .stream-link__chev { flex: none; }
.stream-link__logo svg { width: 22px; height: 22px; display: block; }
.streaming .stream-link__logo--spotify { color: #1db954; }
.streaming .stream-link__logo--youtube { color: #ff0000; }
.stream-link span { flex: 1; font-weight: 600; font-size: .9rem; color: var(--ink); white-space: nowrap; }
.stream-link__chev { flex: none; color: var(--gold); font-size: 1.3rem; }

/* Song list */
.songs { display: flex; flex-direction: column; gap: 11px; }
.song { display: flex; align-items: center; gap: 13px; padding: 10px; border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--gold-line);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.song:hover { transform: translateY(-2px); border-color: rgba(132,96,38, .5);
  box-shadow: 0 12px 26px -16px rgba(120, 88, 40, .6); }
.song__art { flex: none; width: 60px; height: 60px; border-radius: 11px; object-fit: cover;
  display: grid; place-items: center; color: #fff; font-size: 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(132,96,38, .3); }
.song__art--ph1 { background: radial-gradient(circle at 30% 25%, #d9b7c6, #a97b93 70%); }
.song__art--ph2 { background: radial-gradient(circle at 30% 25%, #cbb9e0, #8f79b4 70%); }
.song__art--ph3 { background: radial-gradient(circle at 30% 25%, #f0c9bd, #c08a76 70%); }
.song__art--ph4 { background: radial-gradient(circle at 30% 25%, #f2dda6, #b58743 72%); }
.song__art--ph5 { background: radial-gradient(circle at 30% 25%, #bcd2e6, #7b9cbb 70%); }
.song__body { flex: 1; min-width: 0; }
.song__title { display: block; font-family: var(--serif); font-weight: 600; font-size: .9rem;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.song__sub { display: block; font-size: .75rem; color: var(--ink-soft); margin-top: 2px; }
.song__chev { flex: none; color: var(--gold); font-size: 1.4rem; transition: transform .2s var(--ease); }
.song:hover .song__chev { transform: translateX(3px); color: var(--gold-bright); }

/* ---------- Free Alignment Code (numerology) ---------- */
.code-orb { width: 94px; height: 94px; margin: 8px auto 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.3rem; color: var(--gold);
  background: radial-gradient(circle at 35% 28%, #fdf0d8, #f0dcb8 72%);
  box-shadow: 0 0 40px rgba(198, 160, 90, .35), inset 0 0 0 1px rgba(132,96,38, .35);
  animation: orbpulse 4s var(--ease) infinite; }
@keyframes orbpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.input-card, .result-card {
  background: var(--card);
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg);
  padding: 22px 20px; box-shadow: 0 10px 28px -16px rgba(120, 88, 40, .5); }
.input-card { margin-top: 18px; }

.field-label { display: block; font-family: var(--serif); font-weight: 600; font-size: .66rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 9px; }
.date-input { width: 100%; padding: 13px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(132,96,38, .32); background: #fffdf9; color: var(--ink);
  font-family: var(--sans); font-size: 1rem; color-scheme: light; transition: border-color .2s var(--ease); }
.date-input:focus { outline: none; border-color: var(--gold); }

.btn-reveal { width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 100px; cursor: pointer;
  font-family: var(--serif); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem;
  color: var(--on-gold); background: var(--gold-grad); box-shadow: 0 10px 24px -12px rgba(132,96,38, .8);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn-reveal:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(132,96,38, .95); }
.btn-reveal:active { transform: translateY(0); }
.code-error { color: #b4453f; font-size: .82rem; margin-top: 10px; text-align: center; min-height: 1em; }

.result-card { margin-top: 16px; text-align: center; }
.result-card[hidden] { display: none; }
.result-card.is-shown { animation: rise .6s var(--ease); }
.result-label { font-family: var(--serif); font-weight: 600; font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); }
.result-number { font-family: var(--display); font-weight: 700; font-size: 4.2rem; line-height: 1; margin: 4px 0 2px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result-title { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink); }
.result-desc { color: var(--ink-soft); font-size: .9rem; line-height: 1.6; margin: 14px auto 0; max-width: 36ch; }
.reminder { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px;
  background: var(--gold-wash); border: 1px solid rgba(132,96,38, .26); }
.reminder__label { display: block; font-family: var(--serif); font-size: .58rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.reminder__text { font-family: var(--display); font-style: italic; font-size: 1.02rem; color: var(--ink); }
.btn-premium { display: block; width: 100%; margin-top: 18px; padding: 15px 14px; border-radius: 14px;
  font-weight: 600; font-size: .86rem; color: var(--on-gold); text-align: center;
  background: linear-gradient(135deg, #a37c38 0%, #8f6730 55%, #6b4d1c 100%);
  border: 1px solid rgba(132,96,38, .5); box-shadow: 0 10px 28px -14px rgba(120, 88, 40, .8);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn-premium:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(120, 88, 40, .9); }

/* ---------- Daily Affirmations flip card ---------- */
.flip { perspective: 1200px; width: 100%; max-width: 330px; margin: 14px auto 0; }
.flip__inner { position: relative; width: 100%; aspect-ratio: 4 / 5; transform-style: preserve-3d;
  transition: transform .7s var(--ease); cursor: pointer; }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip:focus-visible { outline: none; }
.flip:focus-visible .flip__inner { box-shadow: 0 0 0 3px var(--gold); border-radius: 22px; }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 22px; overflow: hidden; border: 1px solid rgba(132,96,38, .32);
  box-shadow: 0 18px 40px -22px rgba(120, 88, 40, .7); }
.flip__front img { width: 100%; height: 100%; object-fit: cover; }
/* The card front is the lotus mark, so the scrim is a warm ivory veil rather
   than the old dark one — it keeps the wordmark legible over the artwork. */
.flip__front-overlay { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px;
  background: linear-gradient(180deg, rgba(255,250,242,.30) 0%, rgba(255,250,242,.72) 55%, rgba(255,250,242,.92)); }
.flip__tap { font-family: var(--display); font-weight: 700; font-size: 1.7rem; color: var(--ink);
  text-shadow: 0 1px 10px rgba(255,250,242,.9); }
.flip__hint { font-family: var(--serif); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); }
.flip__back { transform: rotateY(180deg);
  background: linear-gradient(150deg, #fffdf9 0%, #fbf1e1 60%, #f4e6d2 100%);
  display: grid; place-items: center; padding: 30px 26px; }
.flip__back::before { content: "\201C"; position: absolute; top: 6px; left: 18px; font-family: var(--display);
  font-size: 3rem; color: var(--gold); opacity: .35; line-height: 1; }
.flip__aff { font-family: var(--display); font-style: italic; font-size: 1.32rem; line-height: 1.45;
  color: var(--ink); text-align: center; }

.newcard-wrap { text-align: center; margin-top: 22px; }
.btn-newcard { display: inline-flex; align-items: center; gap: 8px; padding: 11px 26px; border-radius: 100px;
  cursor: pointer; font-family: var(--serif); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  font-size: .72rem; color: var(--gold); background: var(--gold-wash);
  border: 1px solid rgba(132,96,38, .45);
  transition: background .2s var(--ease), transform .2s var(--ease), color .2s var(--ease); }
.btn-newcard:hover { background: rgba(132,96,38, .16); transform: translateY(-2px); color: var(--gold-deep); }
.btn-newcard:active { transform: translateY(0); }

/* ---------- Free Star Code (birth chart) ---------- */
.form-grid { display: flex; flex-direction: column; gap: 14px; }
/* min-width:0 — a `1fr` track is `minmax(auto, 1fr)`, so the time/date input's
   intrinsic width sets the column floor and overflows the row at 375px. */
.field { display: flex; flex-direction: column; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.text-input, .select-input, .time-input, .date-input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(132,96,38, .32);
  background: #fffdf9; color: var(--ink); font-family: var(--sans); font-size: .98rem;
  color-scheme: light; transition: border-color .2s var(--ease); }
.text-input:focus, .select-input:focus, .time-input:focus { outline: none; border-color: var(--gold); }
.text-input::placeholder { color: var(--ink-faint); }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.checkbox-row label { font-size: .82rem; color: var(--ink-soft); cursor: pointer; }

.loading { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold);
  font-family: var(--serif); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; margin: 18px 0; }
.loading[hidden] { display: none; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(132,96,38, .28); border-top-color: var(--gold);
  border-radius: 50%; animation: spin 0.8s linear infinite; }

.star-result { text-align: left; }
.star-result .result-label { text-align: center; display: block; }
.star-wholine { text-align: center; color: var(--ink-soft); font-size: .82rem; margin: 2px 0 10px; }
.starsummary { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin: 4px 0 6px; }
.star-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 100px;
  background: var(--gold-wash); border: 1px solid rgba(132,96,38, .3); font-size: .82rem; color: var(--ink); }
.star-chip b { color: var(--gold); font-family: var(--serif); }

.chart-wrap { margin: 14px 0 4px; text-align: center; }
.chart-svg { width: 100%; max-width: 360px; height: auto; margin: 0 auto; display: block; }

.placements { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .84rem; }
.placements th { font-family: var(--serif); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); text-align: left; padding: 8px 6px; border-bottom: 1px solid rgba(132,96,38, .28); }
.placements td { padding: 9px 6px; border-bottom: 1px solid rgba(120, 88, 40, .12); color: var(--ink); }
.placements .pl-glyph { font-size: 1.15rem; color: var(--gold); width: 1.4rem; }
.placements .retro { color: #b4453f; font-size: .72rem; }

.readings { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.reading { padding: 14px 16px; border-radius: 14px;
  background: var(--card-soft); border: 1px solid var(--gold-line); }
.reading h3 { font-family: var(--serif); font-size: .82rem; letter-spacing: .08em; color: var(--gold);
  margin: 0 0 4px; text-transform: uppercase; }
.reading p { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--ink-soft); }
.star-note { font-size: .74rem; color: var(--ink-faint); text-align: center; margin-top: 12px; font-style: italic; }

/* ---------- YouTube playlist embed ---------- */
.yt-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 18px 0 14px;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--gold-line);
  box-shadow: 0 12px 30px -18px rgba(120, 88, 40, .7); background: #f0e6d6; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- My Journey ---------- */
.journey-card { background: var(--card);
  border: 1px solid var(--gold-line); border-radius: 20px; padding: 20px; margin-top: 16px; }
.journey-card h2 { font-family: var(--serif); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px; }
.intention-display { font-family: var(--display); font-style: italic; font-size: 1.18rem; color: var(--ink);
  line-height: 1.4; min-height: 1.4em; }
.intention-display.empty { color: var(--ink-faint); font-style: italic; }
.journey-input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(132,96,38, .32);
  background: #fffdf9; color: var(--ink); font-family: var(--sans); font-size: .95rem; resize: vertical; }
.journey-input:focus { outline: none; border-color: var(--gold); }
.journey-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.btn-sm { font-family: var(--serif); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; padding: 10px 18px; border-radius: 100px; border: 0; color: var(--on-gold); background: var(--gold-grad);
  transition: transform .2s var(--ease); }
.btn-sm:hover { transform: translateY(-2px); }
.btn-sm--ghost { color: var(--gold); background: var(--gold-wash); border: 1px solid rgba(132,96,38, .4); }
.streak { display: flex; align-items: center; gap: 14px; }
.streak__num { font-family: var(--display); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.streak__txt { font-size: .82rem; color: var(--ink-soft); }
.log-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.log-item { padding: 10px 12px; border-radius: 10px; background: rgba(255, 250, 242, .8);
  border: 1px solid rgba(120, 88, 40, .14); font-size: .85rem; color: var(--ink);
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.log-item time { color: var(--ink-faint); font-size: .7rem; white-space: nowrap; }
.log-empty { color: var(--ink-faint); font-size: .82rem; font-style: italic; text-align: center; padding: 10px; }

/* ---------- Shop ---------- */
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 18px; align-items: stretch; }
.product { display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--gold-line); border-radius: 16px; overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s var(--ease); }
.product:hover { transform: translateY(-3px); border-color: rgba(132,96,38, .55); }
.product__img { aspect-ratio: 1 / 1; flex: 0 0 auto; display: grid; place-items: center; font-size: 2.2rem; color: var(--gold);
  background: radial-gradient(circle at 35% 28%, #fdf0d8, #f0dcb8 75%); }
.product__img--photo { font-size: 0; position: relative; }
.product__img--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.product__body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product__title { font-family: var(--serif); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  min-height: 2.3em; }
.product--wide .product__title { min-height: 0; }
.product__desc { font-size: .74rem; color: var(--ink-soft); flex: 1; line-height: 1.45; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.product__price { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.product__btn { font-family: var(--serif); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-gold); background: var(--gold-grad); padding: 8px 13px; border-radius: 100px; white-space: nowrap; }
.product--wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.product--wide .product__img { width: 116px; aspect-ratio: 1; align-self: center; flex: none; margin: 0 6px 0 14px; border-radius: 12px; overflow: hidden; font-size: 2.2rem; }
.shop-note { text-align: center; color: var(--ink-faint); font-size: .76rem; font-style: italic; margin-top: 14px; }

/* ---------- Date & time inputs — robust on iOS Safari ---------- */
.date-input, .time-input {
  -webkit-appearance: none; appearance: none;
  color: var(--ink); -webkit-text-fill-color: #43301c; color-scheme: light;
  min-height: 50px; line-height: 1.2;
  background-color: #fffdf9;
  background-repeat: no-repeat; background-position: right 14px center; background-size: 19px 19px;
  padding-right: 44px;
}
.date-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23846026' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}
.time-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23846026' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15 14'/%3E%3C/svg%3E");
}
/* hide the default desktop picker icon (stays clickable) so there's no double icon */
.date-input::-webkit-calendar-picker-indicator,
.time-input::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
/* iOS: keep the value left-aligned and readable */
.date-input::-webkit-date-and-time-value,
.time-input::-webkit-date-and-time-value { text-align: left; }

/* ---------- Song lyrics page ---------- */
.song-head { display: flex; align-items: center; gap: 14px; margin-top: 8px;
  padding: 14px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--gold-line); }
.song-head__art { flex: none; width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.6rem; color: #fff; box-shadow: inset 0 0 0 1px rgba(132,96,38, .3);
  background: radial-gradient(circle at 30% 25%, #d9b7c6, #a97b93 70%); }
.song-head__title { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .05em;
  text-transform: uppercase; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.song-head__sub { display: block; font-size: .78rem; color: var(--ink-soft); margin-top: 3px; }

.track-embed { margin-top: 14px; }
.track-embed iframe { width: 100%; height: 152px; border: 0; border-radius: 12px; display: block; }

.lyrics { margin-top: 16px; padding: 20px 18px; border-radius: var(--radius-lg);
  background: var(--card-soft); border: 1px solid var(--gold-line); }
.lyrics__label { display: block; font-family: var(--serif); font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px; text-align: center; }
.lyrics .stanza { margin: 0 0 22px; text-align: center; }
.lyrics .stanza:last-child { margin-bottom: 0; }
.lyrics .stanza span { display: block; font-family: var(--display); font-size: 1.06rem; line-height: 1.75;
  color: var(--ink); }
.lyrics .stanza--tag span { font-style: italic; color: var(--gold); }
.lyrics .stanza .stanza__name { display: block; font-family: var(--serif); font-size: .56rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 9px;
  font-style: normal; opacity: .9; }

/* ---------- Reveal ---------- */
.hero, .tile, .madewith, .song, .stream-link { opacity: 0; transform: translateY(16px);
  animation: rise .6s var(--ease) forwards; }
.tile:nth-child(1) { animation-delay: .05s; }
.tile:nth-child(2) { animation-delay: .10s; }
.tile:nth-child(3) { animation-delay: .15s; }
.tile:nth-child(4) { animation-delay: .20s; }
.tile:nth-child(5) { animation-delay: .25s; }
.tile:nth-child(6) { animation-delay: .30s; }
.streaming .stream-link:nth-child(1) { animation-delay: .04s; }
.streaming .stream-link:nth-child(2) { animation-delay: .08s; }
.songs .song:nth-child(1) { animation-delay: .06s; }
.songs .song:nth-child(2) { animation-delay: .10s; }
.songs .song:nth-child(3) { animation-delay: .14s; }
.songs .song:nth-child(4) { animation-delay: .18s; }
.songs .song:nth-child(5) { animation-delay: .22s; }
.songs .song:nth-child(6) { animation-delay: .26s; }
.songs .song:nth-child(n+7) { animation-delay: .30s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Desktop framing ---------- */
@media (min-width: 768px) {
  .app { padding-top: 8px; }
}

/* ---------- Buy Us a Coffee (support page) ---------- */
.opt { color: var(--ink-faint); font-weight: 400; text-transform: none; letter-spacing: 0; }
.coffee-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }
.coffee-opt {
  padding: 12px 4px; border-radius: 12px; cursor: pointer; font-size: .9rem;
  color: var(--ink-soft); background: #fffdf9;
  border: 1px solid rgba(132,96,38, .28);
  transition: transform .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.coffee-opt b { color: var(--gold); }
.coffee-opt:hover { transform: translateY(-2px); border-color: rgba(132,96,38, .6); }
.coffee-opt.is-active {
  background: var(--gold-wash); border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset, 0 8px 20px -14px rgba(132,96,38, .8);
}
.coffee-opt--custom { font-size: .82rem; }
.coffee-customwrap { margin-top: 14px; }
.coffee-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding: 13px 16px; border-radius: 12px;
  background: var(--gold-wash); border: 1px solid rgba(132,96,38, .25);
  font-family: var(--serif); color: var(--ink-soft); font-size: .9rem;
}
.coffee-total__amt {
  font-size: 1.4rem; font-weight: 700;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
textarea.text-input { resize: vertical; min-height: 64px; font-family: inherit; }
.coffee-note { margin-top: 12px; font-size: .72rem; color: var(--ink-faint); text-align: center; line-height: 1.5; }

/* ---------- Affirmation Pack product page ---------- */
.pack-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.pack-shot {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px;
  border: 1px solid rgba(132,96,38, .3); box-shadow: 0 10px 22px -16px rgba(120, 88, 40, .8);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.pack-shot:hover { transform: translateY(-3px); border-color: rgba(132,96,38, .65); }
.pack-feats { list-style: none; display: grid; gap: 10px; margin: 4px 0 4px; }
.pack-feats li { color: var(--ink-soft); font-size: .9rem; }
.pack-feats b { color: var(--gold); }
.pack-buy { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.pack-price {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 700;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pack-btn { flex: 1; margin-top: 0 !important; }

/* ---------- Newsletter signup ---------- */
.subscribe { margin: 18px 0 8px; padding: 22px 18px; text-align: center;
  background: linear-gradient(180deg, rgba(247, 226, 190, .55), rgba(242, 217, 209, .35));
  border: 1px solid rgba(132,96,38, .25); border-radius: var(--radius-lg); }
.subscribe__title { font-family: var(--serif); color: var(--gold); font-size: 1rem; letter-spacing: .06em; }
.subscribe__sub { color: var(--ink-soft); font-size: .85rem; margin: 6px auto 14px; max-width: 32ch; }
.subscribe__form { display: flex; gap: 8px; max-width: 380px; margin: 0 auto; }
.subscribe__input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 100px;
  border: 1px solid rgba(132,96,38, .3); background: #fffdf9; color: var(--ink); font-size: .95rem; }
.subscribe__input:focus { outline: none; border-color: var(--gold); }
.subscribe__input::placeholder { color: var(--ink-faint); }
.subscribe__btn { flex: none; padding: 12px 20px; border: 0; border-radius: 100px; cursor: pointer;
  font-family: var(--serif); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem;
  color: var(--on-gold); background: var(--gold-grad); transition: transform .2s var(--ease); }
.subscribe__btn:hover { transform: translateY(-2px); }
.subscribe__btn:disabled { opacity: .6; cursor: default; }
.subscribe__msg { margin-top: 10px; font-size: .85rem; color: var(--gold); min-height: 1.1em; }
.subscribe__note { margin-top: 6px; font-size: .7rem; color: var(--ink-faint); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; }
  .hero, .tile, .madewith { opacity: 1; transform: none; }
}

/* ---- Reviews wall ---- */
.reviews { margin-top: 26px; text-align: center; }
.reviews__title { font-family: "Cinzel", Georgia, serif; color: var(--gold); font-size: 1rem;
  letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.reviews__list { display: grid; gap: 10px; }
.reviews__empty { color: var(--ink-faint); font-size: .88rem; margin: 8px 0; }
.review-card { background: var(--card-soft);
  border: 1px solid var(--gold-line); border-radius: 16px; padding: 14px 16px; text-align: left; }
.review-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-card__stars { color: var(--gold-bright); font-size: .9rem; letter-spacing: 1px; }
.review-card__name { color: var(--ink); font-size: .82rem; font-weight: 600; }
.review-card__body { color: var(--ink-soft); font-size: .9rem; line-height: 1.5; margin: 0; }
.reviews__leave { margin-top: 14px; font-family: var(--sans); font-weight: 600; font-size: .86rem;
  color: var(--gold); background: var(--gold-wash); border: 1px solid rgba(132,96,38, .45);
  border-radius: 999px; padding: 10px 20px; cursor: pointer; transition: .2s var(--ease, ease); }
.reviews__leave:hover { background: rgba(132,96,38, .16); }
.review-form { margin-top: 14px; display: grid; gap: 10px; max-width: 28rem; margin-inline: auto; text-align: left; }
.review-stars { display: flex; gap: 4px; justify-content: center; }
.review-star { background: none; border: 0; font-size: 1.7rem; line-height: 1; color: rgba(132,96,38, .3);
  cursor: pointer; padding: 0 2px; transition: .15s; }
.review-star.is-on { color: var(--gold-bright); }
.review-input, .review-textarea { width: 100%; box-sizing: border-box; background: #fffdf9;
  border: 1px solid rgba(132,96,38, .3); border-radius: 12px; padding: 11px 14px; color: var(--ink);
  font-family: var(--sans); font-size: .9rem; }
.review-textarea { resize: vertical; }
.review-input::placeholder, .review-textarea::placeholder { color: var(--ink-faint); }
.review-submit { font-family: var(--sans); font-weight: 600; font-size: .88rem; color: var(--on-gold);
  background: var(--gold-grad); border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer; }
.review-msg { color: #b4453f; font-size: .82rem; margin: 2px 0 0; min-height: 1em; text-align: center; }

/* ---- Code pages: short "why it matters" line under the heading ---- */
.code-why { color: var(--ink-soft); font-size: .86rem; line-height: 1.55; text-align: center;
  max-width: 30rem; margin: -4px auto 18px; }
.code-why b { color: var(--gold); }

/* ---- Cookie consent banner (GDPR) ---- */
.cookie-bar {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 3000;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
  width: min(92vw, 520px);
  background: linear-gradient(180deg, #fffdf9, #fbf1e1);
  border: 1px solid rgba(132,96,38, .5); border-radius: var(--radius-lg, 18px);
  padding: 14px 16px; box-shadow: 0 20px 44px -20px rgba(120, 88, 40, .55);
  color: var(--ink); animation: cookieIn .35s var(--ease, ease) both;
}
.cookie-bar p { margin: 0 0 10px; font-family: var(--sans); font-size: .84rem; line-height: 1.5; }
.cookie-bar__btns { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-bar__btn {
  font-family: var(--sans); font-weight: 600; font-size: .82rem;
  border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: .2s var(--ease, ease);
}
.cookie-bar__btn--no { background: transparent; color: var(--gold); border: 1px solid rgba(132,96,38, .5); }
.cookie-bar__btn--no:hover { background: rgba(132,96,38, .12); }
.cookie-bar__btn--yes { background: var(--gold-grad); color: var(--on-gold); border: 0; }
.cookie-bar__btn--yes:hover { transform: translateY(-1px); }
@keyframes cookieIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
