/* ===========================================================
   LightVessel — Tehillim Series landing page
   Midnight black + warm gold. King David under the stars —
   more intimate and warmer than the Zohar Temple palette.
   =========================================================== */

:root {
  --bg:        #07070d;
  --bg-2:      #0d0d16;
  --bg-card:   #12121d;
  --gold:      #C9962B;   /* warm amber-gold */
  --gold-lt:   #FFD37A;   /* candle-warm highlight */
  --gold-soft: #e7c66b;
  --amber:     #f0b35a;
  --ink:       #ece6da;
  --ink-dim:   #a59c89;
  --line:      rgba(201,150,43,0.28);
  --serif:     'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:      'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --heb:       'Frank Ruhl Libre', 'Cormorant Garamond', serif;
  --maxw:      1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-soft); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-lt); }
.muted { color: var(--ink-dim); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem;
  background: #05050a url("/assets/star_base.jpg") center top / cover no-repeat;
}
/* Warm vignette so the gold text stays legible over the night sky. */
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(7,7,13,0.30) 0%, rgba(7,7,13,0.72) 62%, rgba(7,7,13,0.96) 100%),
    linear-gradient(to bottom, rgba(7,7,13,0.40) 0%, rgba(7,7,13,0) 30%, rgba(7,7,13,0.85) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: 720px;
  display: flex; flex-direction: column; align-items: center;
}
.hero__spark {
  font-size: 2rem; color: var(--gold-lt);
  text-shadow: 0 0 26px rgba(255,211,122,0.7);
  margin-bottom: .6rem;
}
.hero__heb {
  font-family: var(--heb);
  font-weight: 700;
  font-size: clamp(3.6rem, 14vw, 8rem);
  line-height: 1.0;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #FFE08A 0%, #FFD37A 38%, #C9962B 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-soft);
  text-shadow: 0 0 60px rgba(255,211,122,0.25);
  margin-bottom: .4rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.3rem, 4vw, 2.1rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.4rem;
}
.hero__tag {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.8vw, 1.55rem);
  color: var(--ink);
  line-height: 1.5;
  max-width: 34ch;
  margin: 0 auto;
}
.hero__tag--es {
  margin-top: .9rem;
  font-style: italic;
  font-size: clamp(.92rem, 2.4vw, 1.2rem);
  color: var(--ink-dim);
}
/* Founder's epigraph — set apart, smaller, reverent italic under the subtitle. */
.hero__epigraph {
  margin: 1.3rem auto 0;
  max-width: 32rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(.92rem, 2.3vw, 1.16rem);
  line-height: 1.65;
  color: var(--gold-soft);
  opacity: .85;
}
/* Hebrew reads RTL (doc flips in HE mode) with the serif Hebrew face, upright. */
[dir="rtl"] .hero__epigraph { font-family: var(--heb); font-style: normal; }
.hero__scroll {
  margin-top: 2.6rem;
  font-size: 1.6rem;
  color: var(--gold-soft);
  border: 1px solid var(--line);
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  animation: bob 2.4s ease-in-out infinite;
}
.hero__scroll:hover { background: rgba(201,150,43,0.12); color: var(--gold-lt); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ===================== shared section bits ===================== */
main > section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.6rem, 8vw, 6rem) 1.5rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  letter-spacing: .02em;
  color: var(--ink);
  margin-bottom: .8rem;
}
.section-title::after {
  content: "";
  display: block; width: 64px; height: 2px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-lede {
  max-width: 46ch;
  margin: 0 auto 2.6rem;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--ink-dim);
}

/* ===================== buttons ===================== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .03em;
  border: none;
  padding: .9rem 2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn--gold {
  color: #1a1206;
  background: linear-gradient(145deg, var(--gold-lt), var(--gold));
  box-shadow: 0 8px 30px rgba(201,150,43,0.35);
}
.btn--gold:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,211,122,0.5); }
.btn--soul {
  color: var(--gold-lt);
  background: transparent;
  border: 1.5px solid var(--gold);
}
.btn--soul:hover:not(:disabled) { background: rgba(201,150,43,0.12); color: var(--gold-lt); transform: translateY(-2px); }

/* ===================== EDITIONS ===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, var(--bg-card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.6rem 2rem 2.2rem;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,211,122,0.55);
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}
.card--soul { background: linear-gradient(165deg, #16121d, #0d0b14); }

/* Protected artwork (same treatment as lightvessel.app /works) — full-bleed to
   the card top, copy-protected, with a baked + CSS "© LightVessel DAO LLC" credit. */
.work__media {
  position: relative;
  overflow: hidden;
  background: #000;
  margin: -2.6rem -2rem 1.6rem;          /* break out of the card padding, flush to top */
  border-radius: 20px 20px 0 0;           /* match the card's top corners */
}
.work__media img {
  width: 100%; display: block; object-fit: cover;
  -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none;
  pointer-events: none;
}
.work__media .shield { position: absolute; inset: 0; z-index: 3; background: transparent; }
/* Cream-gold website credit overlay — reused on cards, hero, and craft media. */
.credit {
  position: absolute; left: 0; right: 0; bottom: .55rem; text-align: center;
  z-index: 4; pointer-events: none;
  font-family: var(--sans); font-size: .64rem; letter-spacing: .14em;
  color: rgba(240,207,134,.92); text-shadow: 0 1px 5px rgba(0,0,0,.85);
}
.protect { position: relative; overflow: hidden; }
.protect > img, .protect .shield { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

.card__badge {
  align-self: center;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  padding: .35rem 1rem; border-radius: 999px;
  margin-bottom: 1.2rem;
}
.card--soul .card__badge {
  color: var(--gold-lt); background: transparent; border: 1px solid var(--gold);
}
.card__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  color: var(--ink);
  margin-bottom: .4rem;
}
.card__gloss {
  font-family: var(--heb);
  font-size: 1.5rem; color: var(--gold-soft);
  margin-bottom: .3rem;
}
.card__gloss-en { font-family: var(--serif); font-size: 1rem; color: var(--ink-dim); }
.card__price { margin: .6rem 0 1rem; }
.card__amt {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  color: var(--gold-lt);
}
.card__cur { font-size: 1.1rem; color: var(--gold-soft); letter-spacing: .08em; }
.card__desc {
  font-family: var(--serif); font-style: italic;
  font-size: 1.15rem; color: var(--gold-soft);
  margin-bottom: 1.4rem;
}
.card__list {
  list-style: none; text-align: start;
  display: grid; gap: .6rem;
  margin: 0 auto 1.8rem; max-width: 22rem;
  flex: 1;
}
.card__list li {
  position: relative; padding-inline-start: 1.4rem;
  color: var(--ink); font-size: .95rem; line-height: 1.5;
}
.card__list li::before { content: "✦"; position: absolute; inset-inline-start: 0; color: var(--gold); }
.card .btn { margin-top: auto; }

.meanings {
  text-align: center;
  margin-top: 2.4rem;
  color: var(--ink-dim);
  font-family: var(--serif);
  font-size: 1.05rem;
}
.meanings [lang="he"] { font-family: var(--heb); color: var(--gold-soft); font-size: 1.2em; }

/* ===================== FINDER ===================== */
.finder { border-top: 1px solid rgba(201,150,43,0.10); }
.finder__form {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center;
  gap: 1rem; margin-bottom: 1.4rem;
}
.finder__field { display: grid; gap: .4rem; text-align: start; }
.finder__field span { font-size: .82rem; color: var(--gold-lt); letter-spacing: .04em; }
.finder__field input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line); border-radius: 10px;
  padding: .8rem 1rem; color: var(--ink);
  font-family: var(--sans); font-size: 1rem;
  color-scheme: dark;
}
.finder__field input:focus { outline: none; border-color: var(--gold-lt); box-shadow: 0 0 0 3px rgba(255,211,122,0.14); }
.finder__result {
  max-width: 32rem; margin: 0 auto 1.4rem;
  background: linear-gradient(165deg, var(--bg-card), var(--bg-2));
  border: 1px solid rgba(255,211,122,0.4); border-radius: 18px;
  padding: 2rem 1.6rem; text-align: center;
  animation: rise .4s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.finder__result .psalm-num {
  font-family: var(--heb); font-weight: 700;
  font-size: clamp(3rem, 12vw, 5rem);
  line-height: 1;
  color: var(--gold-lt);
  text-shadow: 0 0 30px rgba(255,211,122,0.35);
}
.finder__result .psalm-lbl { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-soft); margin-top: .3rem; }
.finder__result .psalm-heb { font-family: var(--heb); font-size: 1.5rem; color: var(--ink); margin-top: .6rem; }
.finder__result .psalm-meta { color: var(--ink-dim); font-size: .95rem; margin-top: .8rem; line-height: 1.5; }
.finder__result.is-err { border-color: rgba(255,140,140,0.5); }
.finder__result.is-err .psalm-meta { color: #ff9a9a; }
.finder__note { text-align: center; font-size: .85rem; max-width: 40ch; margin: 0 auto; }

/* ===================== SOUL PSALM SELECTION ===================== */
.soulsel { border-top: 1px solid rgba(201,150,43,0.10); }
.soulsel__cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem; align-items: stretch; margin-top: 1.6rem;
}
.soulcard {
  display: flex; flex-direction: column; text-align: center;
  background: linear-gradient(165deg, #16121d, #0d0b14);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 2.2rem 1.8rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.soulcard:hover {
  transform: translateY(-4px);
  border-color: rgba(255,211,122,0.45);
  box-shadow: 0 18px 44px rgba(0,0,0,0.5);
}
.soulcard__badge {
  align-self: center;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-lt); background: transparent; border: 1px solid var(--gold);
  padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1rem;
}
.soulcard__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--ink); margin-bottom: .5rem;
}
.soulcard__body {
  font-family: var(--serif); font-size: 1.02rem; color: var(--gold-soft);
  line-height: 1.55; margin-bottom: 1.4rem;
}
.soulcard__form {
  display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.soulcard__form .finder__field,
.soulcard .finder__field { width: 100%; max-width: 20rem; }
.soulcard__select {
  width: 100%; max-width: 20rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line); border-radius: 10px;
  padding: .9rem 1.1rem; color: var(--gold-lt);
  font-family: var(--sans); font-size: 1.12rem; font-weight: 600;
  letter-spacing: .01em; text-align: center; text-align-last: center;
  color-scheme: dark; cursor: pointer;
}
.soulcard__select:focus { outline: none; border-color: var(--gold-lt); box-shadow: 0 0 0 3px rgba(255,211,122,0.14); }
/* Native option popup — keep it dark with bright, legible text. */
.soulcard__select option {
  background: var(--bg-2, #12101a);
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
}
.soulcard__result {
  margin-top: 1.2rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255,211,122,0.2);
  animation: rise .4s ease;
}
.soulcard__result .psalm-num {
  font-family: var(--heb); font-weight: 700;
  font-size: clamp(2.6rem, 10vw, 4rem); line-height: 1;
  color: var(--gold-lt); text-shadow: 0 0 30px rgba(255,211,122,0.35);
}
.soulcard__result .psalm-lbl { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-soft); margin-top: .3rem; }
.soulcard__result .psalm-heb { font-family: var(--heb); font-size: 1.4rem; color: var(--ink); margin-top: .5rem; }
.soulcard__result .psalm-meta { color: var(--ink-dim); font-size: .92rem; margin-top: .7rem; line-height: 1.5; }
.soulcard__result .btn { margin-top: 1.1rem; }
.soulcard__result.is-err { color: #ff9a9a; }
.soulcard__result.is-err .psalm-meta { color: #ff9a9a; }

/* ===================== FOOTER ===================== */
.footer {
  text-align: center;
  padding: 3rem 1.5rem 3.6rem;
  border-top: 1px solid rgba(201,150,43,0.15);
}
.footer__brand {
  font-family: var(--heb); font-size: 2rem; color: var(--gold-soft);
  margin-bottom: 1rem; text-shadow: 0 0 24px rgba(255,211,122,0.2);
}
.footer__legal { color: var(--ink-dim); font-size: .88rem; line-height: 1.7; }
.footer__legal a { color: var(--gold-soft); }

/* ===================== TOP NAV ===================== */
.topnav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7,7,13,0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,150,43,0.16);
}
.topnav__in {
  max-width: 1180px; margin: 0 auto; padding: 0 1.4rem;
  height: 62px; display: flex; align-items: center; gap: 1.4rem;
}
.topnav__brand {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--heb); font-size: 1.35rem; color: var(--gold-soft);
  text-shadow: 0 0 18px rgba(255,211,122,0.25); flex: 0 0 auto;
}
.topnav__spark { color: var(--gold-lt); font-size: .9rem; }
/* Shared LightVessel mark (same icon/size as lightvessel.app's top-left). */
.topnav__emblem {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  background: #000 url("/images/branding/lightvessel_app_favicon.png") center/cover;
  box-shadow: 0 0 0 1px rgba(217,178,91,0.5);
}
.topnav__burger {
  display: none; margin-inline-start: auto; background: none; border: none;
  color: var(--gold-soft); font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.topnav__links {
  display: flex; align-items: center; gap: 1.25rem;
  margin-inline-start: auto; font-family: var(--sans); font-size: .92rem;
}
.topnav__links > a {
  color: var(--ink-dim); letter-spacing: .02em; transition: color .2s;
}
.topnav__links > a:hover { color: var(--gold-lt); }
.topnav__buy {
  border: 1px solid rgba(231,198,107,0.5); border-radius: 999px;
  padding: .42rem 1rem; color: var(--gold-soft) !important;
  background: rgba(255,211,122,0.06);
}
.topnav__buy:hover { background: rgba(255,211,122,0.14); }
.topnav__lang { display: inline-flex; gap: .45rem; margin-inline-start: .3rem; }
.topnav__lang .lang-sel__btn { font-family: var(--sans); font-size: .82rem; }

/* Soul-Birthday reminder — explicit opt-in trigger (opens the modal on click). */
.soulsel__reminder { text-align: center; margin: 2.4rem auto 0; max-width: 900px; }

/* ===================== HERO (video variant) ===================== */
.hero--video { overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero--video .shield { position: absolute; inset: 0; z-index: 1; background: transparent; }
.hero--video .hero__media, .hero--video .hero__video { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* ===================== PAGE HERO (non-home) ===================== */
.pagehero {
  text-align: center; padding: calc(62px + 3.4rem) 1.5rem 2.4rem;
  border-bottom: 1px solid rgba(201,150,43,0.12);
}
.pagehero__spark { color: var(--gold-lt); font-size: 1.7rem; text-shadow: 0 0 22px rgba(255,211,122,0.5); }
.pagehero__title {
  font-family: var(--serif); font-weight: 600; letter-spacing: .03em;
  font-size: clamp(2rem, 6vw, 3.1rem); color: var(--gold-soft); margin: .5rem 0 .7rem;
}
.pagehero__lede { color: var(--ink-dim); font-family: var(--serif); font-size: clamp(1.05rem, 2.6vw, 1.35rem); max-width: 46ch; margin: 0 auto; line-height: 1.6; }

/* ===================== THE CRAFT / LIVING MICROGRAPHY ===================== */
.eyebrow { font-family: var(--sans); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.tm { font-size: .42em; vertical-align: super; letter-spacing: 0; color: var(--gold-lt); margin-inline-start: .1em; font-family: var(--sans); font-weight: 400; }
.craft { padding: 4.5rem 1.5rem; border-top: 1px solid rgba(201,150,43,0.12); background: #07070d; }
.craft__in { max-width: 920px; margin: 0 auto; text-align: center; }
.craft .eyebrow { display: block; margin-bottom: .5rem; }
.craft__quote {
  font-family: var(--serif); font-style: italic; color: var(--gold-soft);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.6;
  max-width: 48rem; margin: 1.4rem auto; padding-inline-start: 1.2rem;
  border-inline-start: 2px solid rgba(201,150,43,0.3);
}
.craft__strip { margin: 2rem auto 1rem; }
.craft__media { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid rgba(201,150,43,0.2); box-shadow: 0 18px 50px rgba(0,0,0,0.5); }
.craft__media img { width: 100%; display: block; -webkit-user-drag: none; }
.craft__media .shield { position: absolute; inset: 0; z-index: 3; }
.craft__cap { font-family: var(--sans); font-size: .82rem; letter-spacing: .04em; color: var(--ink-dim); margin-top: .9rem; }
.craft__story { font-family: var(--serif); font-size: clamp(1.02rem, 2.3vw, 1.25rem); color: var(--ink); max-width: 44rem; margin: 1.6rem auto 0; line-height: 1.7; }
/* Home bridge line — same margins/size as .craft__story, in gold. */
.vessel-line { text-align: center; padding: 2.8rem 1.5rem 0; }
.vessel-line__copy { font-family: var(--serif); font-size: clamp(1.02rem, 2.3vw, 1.25rem); color: var(--gold-soft); max-width: 44rem; margin: 0 auto; line-height: 1.7; }

/* ===================== EDITIONS teaser CTA ===================== */
.editions .eyebrow { display: block; text-align: center; margin-bottom: .4rem; }
.editions__cta { text-align: center; margin-top: 2.4rem; }
.btn--lg { font-size: 1.02rem; padding: .95rem 2.2rem; }
/* Soul-Psalm lookup: reassuring privacy note under the (optional) DOB field. */
.finder__privacy {
  font-family: var(--sans); font-size: .76rem; line-height: 1.5;
  color: var(--ink-dim); margin: -.2rem 0 1rem; max-width: 38ch;
}

/* Home: slim one-line editions invitation (full cards live on /editions). */
.editions-line { text-align: center; padding: 4rem 1.5rem 5rem; }
.editions-line__copy {
  font-family: var(--serif); color: var(--ink); line-height: 1.5;
  font-size: clamp(1.2rem, 3vw, 1.7rem); max-width: 36ch; margin: 0 auto 1.8rem;
}

/* ===================== COMMISSION ===================== */
.measure { max-width: 44rem; margin-inline: auto; }
.commission { max-width: 720px; margin: 0 auto; padding: 2.6rem 1.5rem 4rem; }
.commission__body { font-family: var(--serif); color: var(--ink-dim); font-size: clamp(1.05rem,2.4vw,1.28rem); line-height: 1.7; text-align: center; margin-bottom: 2.2rem; }
.commission__form { display: flex; flex-direction: column; gap: 1.1rem; }
.cf__field { display: flex; flex-direction: column; gap: .4rem; text-align: start; }
.cf__field > span { font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); }
.cf__field input, .cf__field textarea {
  background: #0a0a12; border: 1px solid rgba(201,150,43,0.22); border-radius: 8px;
  padding: .75rem .85rem; color: var(--ink); font-family: var(--sans); font-size: .98rem; color-scheme: dark;
}
.cf__field input:focus, .cf__field textarea:focus { outline: none; border-color: var(--gold-soft); }
.cf__field textarea { resize: vertical; min-height: 7rem; }
.commission__form .btn { margin-top: .6rem; align-self: center; }
.commission__msg { text-align: center; font-family: var(--serif); font-size: 1.05rem; margin-top: .4rem; }
.commission__msg.is-ok { color: var(--gold-lt); }
.commission__msg.is-err { color: #ff9a9a; }

/* ===================== responsive ===================== */
@media (max-width: 820px) {
  .topnav__burger { display: inline-block; }
  .topnav__links {
    position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: .9rem;
    background: rgba(7,7,13,0.97); padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(201,150,43,0.16); margin: 0;
    display: none;
  }
  .topnav__links.is-open { display: flex; }
  .topnav__lang { margin-inline-start: 0; }
}
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .soulsel__cards { grid-template-columns: 1fr; }
  .hero { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto; }
}

/* ===================== TEHILLIM GUIDE (bottom-right) =====================
   Exact visual clone of the lightvessel-dao Guide widget. To render IDENTICALLY
   to lightvessel (not the tehillim palette), this block is self-contained and
   uses lightvessel's own literal tokens — NOT tehillim's CSS variables:
     bg #07070b · bg2 #0c0c14 · panel #101019 · field #0a0a12
     ink #e9e3d6 · muted #b3ab98 · line rgba(184,144,47,.18)
     gold #b8902f · gold-lt #d9b25b · gold-br #f0cf86
     head 'Cinzel' · serif 'Cormorant Garamond' · sans 'Inter'
   Cinzel is loaded via the Google Fonts <link> in index.html. */
.lvchat{position:fixed;right:1.1rem;bottom:1.1rem;z-index:1000;font-family:'Inter',system-ui,sans-serif}
.lvchat__bubble{width:54px;height:54px;border-radius:50%;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 30% 25%,#241c0e,#0c0c09);box-shadow:0 0 0 1px rgba(217,178,91,.6),0 8px 28px rgba(0,0,0,.5);transition:transform .15s,box-shadow .15s}
.lvchat__bubble:hover{transform:translateY(-1px);box-shadow:0 0 0 1px rgba(217,178,91,.95),0 10px 32px rgba(0,0,0,.6)}
.lvchat__bubble svg{width:30px;height:30px;display:block}
.lvchat__panel{position:absolute;right:0;bottom:66px;width:min(360px,86vw);height:min(480px,70vh);display:flex;flex-direction:column;background:linear-gradient(180deg,#101019,#0c0c14);border:1px solid rgba(184,144,47,.18);border-radius:12px;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.6)}
.lvchat__panel[hidden]{display:none}
.lvchat__head{display:flex;align-items:center;justify-content:space-between;padding:.8rem 1rem;border-bottom:1px solid rgba(184,144,47,.18);font-family:'Cinzel',Georgia,serif;letter-spacing:.1em;color:#d9b25b;font-size:.95rem}
.lvchat__x{background:none;border:0;color:#b3ab98;font-size:1.3rem;cursor:pointer;line-height:1}
.lvchat__log{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.6rem}
.lvchat__msg{max-width:85%;padding:.6rem .8rem;border-radius:10px;font-size:.92rem;line-height:1.5}
.lvchat__msg.user{align-self:flex-end;background:rgba(184,144,47,.18);color:#e9e3d6}
.lvchat__msg.bot{align-self:flex-start;background:#0a0a12;border:1px solid rgba(184,144,47,.18);color:#e9e3d6;font-family:'Cormorant Garamond',Georgia,serif;font-size:1rem}
.lvchat__form{display:flex;gap:.5rem;padding:.7rem;border-top:1px solid rgba(184,144,47,.18)}
.lvchat__form input{flex:1;background:#0a0a12;border:1px solid rgba(184,144,47,.18);border-radius:999px;color:#e9e3d6;padding:.6rem .9rem;font-family:'Inter',system-ui,sans-serif;font-size:.9rem}
.lvchat__form input:focus{outline:none;border-color:#b8902f}
.lvchat__form button{border:0;cursor:pointer;background:linear-gradient(135deg,#e7c66b,#f0cf86 45%,#b8902f);color:#1a1407;width:38px;height:38px;border-radius:50%;font-size:1.1rem;flex:0 0 auto}
.lvchat__view{flex:1;display:flex;flex-direction:column;min-height:0}
.lvchat__view[hidden]{display:none}
.lvchat__intro{padding:1rem 1.1rem .3rem;color:#b3ab98;font-family:'Cormorant Garamond',Georgia,serif;font-size:1.02rem;line-height:1.5}
.lvchat__opts{display:flex;flex-direction:column;gap:.55rem;padding:.9rem 1rem}
.lvchat__opt{display:flex;align-items:center;gap:.7rem;text-decoration:none;border:1px solid rgba(184,144,47,.18);background:#0a0a12;border-radius:12px;padding:.75rem .85rem;color:#e9e3d6;cursor:pointer;text-align:left;font-family:'Inter',system-ui,sans-serif;width:100%}
.lvchat__opt:hover{border-color:#b8902f}
.lvchat__opt b{display:block;color:#d9b25b;font-family:'Cinzel',Georgia,serif;letter-spacing:.05em;font-size:.84rem;margin-bottom:.12rem}
.lvchat__opt small{color:#b3ab98;font-size:.8rem}
.lvchat__opt .ic{font-size:1.25rem;flex:0 0 auto;line-height:1}
.lvchat__gate{padding:.9rem 1rem;display:flex;flex-direction:column;gap:.55rem;overflow-y:auto}
.lvchat__gate label{font-size:.76rem;color:#b3ab98;letter-spacing:.04em;display:block;margin-bottom:.2rem}
.lvchat__gate input{background:#0a0a12;border:1px solid rgba(184,144,47,.18);border-radius:8px;color:#e9e3d6;padding:.55rem .8rem;font-family:'Inter',system-ui,sans-serif;font-size:.92rem;width:100%}
.lvchat__gate input:focus{outline:none;border-color:#b8902f}
.lvchat__btn{border:0;cursor:pointer;background:linear-gradient(135deg,#e7c66b,#f0cf86 45%,#b8902f);color:#1a1407;border-radius:999px;padding:.6rem 1rem;font-family:'Cinzel',Georgia,serif;letter-spacing:.06em;font-size:.82rem;margin-top:.2rem}
.lvchat__note{color:#b3ab98;font-size:.8rem;line-height:1.45;min-height:1em}
.lvchat__back{background:none;border:0;color:#b3ab98;font-size:.8rem;cursor:pointer;padding:.5rem 1rem;text-align:left;align-self:flex-start}
.lvchat__ts{padding:.3rem 0;min-height:8px}
[dir="rtl"] .lvchat{right:auto;left:1.1rem}
[dir="rtl"] .lvchat__panel{right:auto;left:0}

/* ===================== LANGUAGE SELECTOR (fixed top-right) ===================== */
.lang-sel {
  position: fixed; top: 16px; right: 20px; z-index: 1100;
  display: flex; gap: .5rem; font-family: var(--serif);
}
.lang-sel__btn {
  background: none; border: none; cursor: pointer;
  color: var(--gold-soft); font-family: var(--serif);
  font-size: .98rem; letter-spacing: .1em; font-weight: 600;
  padding: .1rem .1rem; opacity: .5;
  border-bottom: 1.5px solid transparent;
  transition: opacity .2s ease, border-color .2s ease, color .2s ease;
}
.lang-sel__btn:hover { opacity: 1; }
.lang-sel__btn.is-active { opacity: 1; color: var(--gold-lt); border-bottom-color: var(--gold-lt); }
@media (max-width: 600px) {
  .lang-sel { top: 10px; right: 12px; gap: .4rem; }
  .lang-sel__btn { font-size: .85rem; }
}

/* ===================== NOTIFY OPT-IN CHECKBOX ===================== */
.notify__optin {
  display: flex; align-items: flex-start; gap: .55rem;
  max-width: 440px; margin: 0 auto; text-align: left;
  font-size: .8rem; color: var(--ink-dim); line-height: 1.45; cursor: pointer;
}
.notify__optin input { margin-top: .15rem; accent-color: var(--gold); flex: none; }
[dir="rtl"] .notify__optin { text-align: right; }

/* ===================== SOUL BIRTHDAY MODAL ===================== */
.soul-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 1rem; }
.soul-modal[hidden] { display: none; }
.soul-modal__backdrop { position: absolute; inset: 0; background: rgba(5,5,10,0.8); backdrop-filter: blur(4px); }
.soul-modal__panel {
  position: relative; z-index: 2; width: min(440px, 94vw);
  max-height: 92vh; overflow-y: auto;
  background: linear-gradient(165deg, var(--bg-card), var(--bg-2));
  border: 1px solid rgba(255,211,122,0.4); border-radius: 18px;
  padding: 2.2rem 1.6rem 1.8rem; box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  animation: rise .3s ease; text-align: center;
}
.soul-modal__x {
  position: absolute; top: .7rem; right: 1rem; background: none; border: none;
  color: var(--ink-dim); font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.soul-modal__x:hover { color: var(--gold-lt); }
.soul-modal__title { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-lt); margin-bottom: .5rem; }
.soul-modal__sub { color: var(--ink-dim); font-size: .95rem; margin-bottom: 1.4rem; line-height: 1.5; }
.soul-form { display: flex; flex-direction: column; gap: .9rem; text-align: left; }
.soul-form__field { display: flex; flex-direction: column; gap: .3rem; }
.soul-form__field span { font-size: .8rem; color: var(--gold-lt); }
.soul-form__field input {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 10px;
  padding: .7rem .8rem; color: var(--ink); font-family: var(--sans); font-size: .95rem; color-scheme: dark;
}
.soul-form__field input:focus { outline: none; border-color: var(--gold-lt); }
.soul-form__check { display: flex; align-items: flex-start; gap: .55rem; font-size: .82rem; color: var(--ink-dim); line-height: 1.45; cursor: pointer; }
.soul-form__check input { margin-top: .15rem; accent-color: var(--gold); flex: none; }
.soul-form__privacy { font-size: .76rem; color: var(--ink-dim); font-style: italic; margin: .2rem 0; }
.soul-form__btns { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .4rem; }
.soul-form__btns .btn { flex: 1; min-width: 8rem; }
.soul-form__msg { font-size: .88rem; margin: .2rem 0 0; }
.soul-form__msg.is-ok { color: var(--gold-soft); }
.soul-form__msg.is-err { color: #ff8c8c; }
[dir="rtl"] .soul-form, [dir="rtl"] .soul-form__check { text-align: right; }

/* "Save my Soul Birthday" prompt inside the finder result */
.psalm-save { margin-top: 1.2rem; }
.psalm-save .btn { font-size: .92rem; padding: .7rem 1.5rem; }
