/*
 * The home page. Shared pieces (colours, nav, buttons, footer) are in
 * styles.css; this adds the hero, the live phone, and every section below it.
 *
 * Anything that animates in on scroll starts hidden only when the page has
 * JavaScript (html.js), so the page still reads top to bottom without it.
 */

/* ---------- Nav over the hero ---------- */
.home .site-nav { position: fixed; left: 0; right: 0; transition: background .35s, border-color .35s, box-shadow .35s; }
.home .site-nav.on-dark { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .site-nav.on-dark .brand { color: var(--cream); }
.home .site-nav.on-dark .nav-links a:not(.nav-cta) { color: rgba(246, 241, 230, .78); }
.home .site-nav.on-dark .nav-links a:not(.nav-cta):hover { color: #fff; }
.home .site-nav:not(.on-dark) { box-shadow: 0 8px 30px rgba(12, 43, 33, .06); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.sec { padding: clamp(80px, 11vw, 136px) 0; position: relative; }
.sec-cream { background: var(--cream); }
.sec-paper { background: var(--paper); }
.sec-dark {
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(201, 162, 75, .12), transparent 70%),
    radial-gradient(800px 480px at 0% 110%, rgba(46, 166, 107, .10), transparent 70%),
    linear-gradient(170deg, var(--green), var(--green-deep));
  color: var(--cream);
}
.sec-head { max-width: 700px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.kicker {
  display: inline-block; margin: 0 0 14px; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.sec h2 {
  font-family: var(--serif); font-weight: 700; color: var(--green);
  font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -.01em;
}
.sec-dark h2 { color: var(--cream); }
.sec .sub { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); margin: 0 auto; max-width: 620px; }
.sec-dark .sub { color: rgba(233, 225, 207, .78); }
.sec-dark .kicker { color: var(--gold-bright); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--cream);
  background: linear-gradient(165deg, #0f3527 0%, var(--green) 38%, var(--green-deep) 100%);
  padding: 128px 0 96px; min-height: min(100svh, 980px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-glow {
  position: absolute; inset: -20%; pointer-events: none;
  background:
    radial-gradient(40% 35% at 70% 30%, rgba(227, 201, 131, .22), transparent 70%),
    radial-gradient(35% 40% at 15% 75%, rgba(46, 166, 107, .18), transparent 70%),
    radial-gradient(30% 30% at 90% 85%, rgba(201, 162, 75, .12), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(-4%, 3%, 0) rotate(6deg); }
}
.hero-stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff7de 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, #fff7de 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 46% 12%, #fff7de 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 88%, #fff7de 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 82% 14%, #fff7de 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 52%, #fff7de 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 6% 58%, #fff7de 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 40%, #fff7de 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 70% 64%, #fff7de 50%, transparent 51%),
    radial-gradient(1px 1px at 20% 92%, #fff7de 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: .65; } }

.hero-inner {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center;
}
.pill-new {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--gold-bright); background: rgba(227, 201, 131, .08);
  border: 1px solid rgba(227, 201, 131, .3);
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.pill-new:hover { text-decoration: none; background: rgba(227, 201, 131, .14); border-color: rgba(227, 201, 131, .55); transform: translateY(-1px); }
.pill-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-bright); }
.pill-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold-bright);
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-title {
  font-family: var(--serif); font-weight: 700; margin: 0 0 22px;
  font-size: clamp(54px, 8.4vw, 112px); line-height: .98; letter-spacing: -.02em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }
.hero-title em { font-style: italic; font-weight: 400; color: var(--gold-bright); }
.lede { font-size: clamp(18px, 1.9vw, 21px); color: rgba(233, 225, 207, .88); max-width: 540px; margin: 0; }
.js .hero-copy > :not(.hero-title) { opacity: 0; animation: fade-up .9s var(--ease) forwards; }
.js .hero-copy > .pill-new { animation-delay: 0s; }
.js .hero-copy > .lede { animation-delay: .3s; }
.js .hero-copy > .get { animation-delay: .42s; }
.js .hero-copy > .facts { animation-delay: .54s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Store badges, each with a watch badge of the same height beside it. */
.get { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 34px 0 0; }
.get.center { justify-content: center; }
.store-pair { display: flex; gap: 8px; }
.store-badge, .watch-badge { transition: transform .2s var(--ease), box-shadow .2s; border-radius: 10px; }
.store-badge { display: block; line-height: 0; }
.store-badge img { height: 52px; width: auto; display: block; }
.watch-badge {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px 0 11px;
  background: #000; color: #fff; border: 1px solid #a6a6a6; line-height: 1;
}
.watch-badge svg { width: 26px; height: 26px; flex: none; }
.watch-badge span { display: flex; flex-direction: column; gap: 3px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.watch-badge small { font-size: 10.5px; font-weight: 500; letter-spacing: .02em; }
.store-badge:hover, .watch-badge:hover { transform: translateY(-3px); text-decoration: none; box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }

.facts {
  margin: 26px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: rgba(233, 225, 207, .8);
  display: flex; gap: 8px 20px; flex-wrap: wrap;
}
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before {
  content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%;
  background: rgba(227, 201, 131, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23e3c983' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}

.hero-media { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; perspective: 1400px; }
.video-card {
  position: relative; width: min(360px, 100%); aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden;
  background: var(--green-deep);
  border: 1px solid rgba(227, 201, 131, .28);
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, .6), 0 0 0 10px rgba(255, 255, 255, .03), 0 0 120px rgba(201, 162, 75, .16);
  transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 3deg));
  transition: transform .5s var(--ease);
}
.js .video-card { opacity: 0; animation: card-in 1.2s var(--ease) .2s forwards; }
@keyframes card-in { from { opacity: 0; transform: translateY(40px) rotateY(-14deg) rotateX(6deg) scale(.96); } to { opacity: 1; } }
.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-controls { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; justify-content: flex-start; }
.vbtn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 8px 10px; border-radius: 999px;
  font: 600 13px/1 var(--sans); color: #fff; cursor: pointer;
  background: rgba(7, 26, 20, .62); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .2s, transform .2s var(--ease);
}
.vbtn:hover { background: rgba(7, 26, 20, .85); transform: translateY(-1px); }
.vbtn svg { width: 16px; height: 16px; }
.vbtn[aria-pressed="true"] { border-color: rgba(227, 201, 131, .6); color: var(--gold-bright); }

.float-chip {
  position: relative; z-index: 2; max-width: 100%;
  display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 12px; padding: 11px 18px; border-radius: 999px;
  background: rgba(246, 241, 230, .1); border: 1px solid rgba(227, 201, 131, .3);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3); color: var(--cream);
}
.js .float-chip { opacity: 0; animation: fade-up .9s var(--ease) 1s forwards; }
.float-chip:hover { text-decoration: none; border-color: rgba(227, 201, 131, .6); }
.chip-k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-bright); font-weight: 700; }
.chip-v { font-size: 16px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }


/* ---------- Live prayer times ---------- */
.live { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.phone {
  --app-bg: #121413; --app-card: #1b1e1d; --app-line: #2a2e2c; --app-ink: #eeeae0; --app-muted: #8e948f;
  --app-gold: #d8b968; --app-tick: #3bb273;
  position: relative; width: 340px; height: 712px; border-radius: 54px; overflow: hidden;
  background: var(--app-bg); color: var(--app-ink);
  border: 11px solid #0b0d0c;
  box-shadow: 0 0 0 1.5px #2f3431, 0 40px 80px -24px rgba(12, 43, 33, .55), 0 24px 40px -30px rgba(0, 0, 0, .5);
  font-family: var(--sans);
}
.phone-notch { position: absolute; top: 10px; left: 50%; width: 104px; height: 30px; margin-left: -52px; background: #000; border-radius: 20px; z-index: 5; }
.phone-status {
  position: absolute; top: 0; left: 0; right: 0; height: 50px; padding: 14px 26px 0 30px; z-index: 4;
  display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.status-icons { display: flex; gap: 4px; align-items: center; }
.status-icons i { display: block; width: 4px; border-radius: 1px; background: var(--app-ink); }
.status-icons i:nth-child(1) { height: 6px; } .status-icons i:nth-child(2) { height: 9px; } .status-icons i:nth-child(3) { height: 12px; }

.screen {
  position: absolute; inset: 0; padding: 58px 16px 18px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: scale(1.03);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.screen.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s; }

.app-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin: 8px 4px 14px; }
.app-title { font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1; }
.app-title span { color: var(--app-gold); }
.app-sub, .app-date { font-size: 11.5px; color: var(--app-muted); margin-top: 6px; }
.app-date { text-align: right; white-space: pre-line; line-height: 1.35; }

.next-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 14px 16px 16px; margin-bottom: 10px;
  background: radial-gradient(120% 140% at 85% 0%, #24543f, #173d2e 55%, #12332a);
  border: 1px solid #2c5a45;
}
.next-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.next-k { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--app-gold); }
.next-name { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.next-name .ar { font-size: 18px; font-weight: 400; color: rgba(238, 234, 224, .7); margin-left: 4px; }
.next-when { text-align: right; font-size: 13px; color: rgba(238, 234, 224, .85); font-variant-numeric: tabular-nums; }
.next-in { color: var(--app-gold); font-weight: 700; font-size: 15px; margin-top: 2px; }
.next-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); margin-top: 14px; overflow: hidden; }
.next-bar span { display: block; height: 100%; width: 4%; border-radius: 4px; background: var(--app-gold); transition: width 1s linear; }

.prayer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.prow {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 0 14px; height: 46px;
  border-radius: 14px; border: 1px solid var(--app-line); background: var(--app-card); color: var(--app-ink);
  font: 500 15px/1 var(--sans); text-align: left; cursor: pointer;
  transition: border-color .25s, background .25s, transform .15s var(--ease);
}
button.prow:hover { border-color: #3b413e; }
button.prow:active { transform: scale(.98); }
.prow .mark {
  width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 1.5px solid #3a403d; transition: background .25s, border-color .25s, transform .3s var(--ease);
}
.prow .mark svg { width: 13px; height: 13px; color: #0d1f17; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--ease); }
.prow.done .mark { background: var(--app-tick); border-color: var(--app-tick); }
.prow.late .mark { background: #9fd9b8; border-color: #9fd9b8; }
.prow.done .mark svg, .prow.late .mark svg { opacity: 1; transform: none; }
.prow.pop .mark { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } }
.prow .pname { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.prow .pname .ar { font-family: var(--serif); font-size: 15px; color: var(--app-muted); }
.prow .ptag { font-size: 11px; color: #9fd9b8; font-weight: 600; }
.prow .ptime { margin-left: auto; font-variant-numeric: tabular-nums; }
.prow.minor { cursor: default; color: var(--app-muted); }
.prow.minor .mark { width: 8px; height: 8px; margin: 0 7px; border: 0; background: #4b514e; }
.prow.past:not(.done):not(.late) .ptime { color: var(--app-muted); }
.prow.current { border-color: rgba(216, 185, 104, .55); }

/* Call screen */
.screen-call { align-items: center; text-align: center; padding-top: 74px; background: #111214; }
.call-k { font-size: 13px; letter-spacing: .08em; color: var(--app-muted); }
.call-name { font-family: var(--serif); font-size: 34px; font-weight: 700; margin: 4px 0 6px; }
.call-sub { font-size: 13px; color: var(--app-muted); }
.call-avatar {
  position: relative; width: 104px; height: 104px; margin: 64px 0 22px; border-radius: 50%;
  display: grid; place-items: center; z-index: 0;
  background: radial-gradient(circle at 35% 30%, #2a6b4e, #164532 70%); border: 2px solid rgba(216, 185, 104, .55);
}
.call-avatar span { font-family: var(--serif); font-size: 52px; color: var(--app-gold); line-height: 1; margin-top: -8px; }
.call-avatar i { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(216, 185, 104, .45); z-index: -1; opacity: 0; }
.screen-call.is-on .call-avatar i { animation: ring 2.4s var(--ease) infinite; }
.screen-call.is-on .call-avatar i:nth-child(3) { animation-delay: .8s; }
.screen-call.is-on .call-avatar i:nth-child(4) { animation-delay: 1.6s; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.1); opacity: 0; } }
.call-ar { font-family: var(--serif); font-size: 25px; line-height: 1.6; color: var(--app-gold); }
.call-en { font-size: 12.5px; color: var(--app-muted); margin-top: 6px; }
.call-snooze { margin-top: auto; margin-bottom: 18px; background: none; border: 0; color: var(--app-muted); font: 500 14px var(--sans); cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.call-snooze:hover { color: var(--app-ink); }
.call-actions { width: 100%; display: flex; justify-content: space-between; padding: 0 22px 18px; }
.call-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; color: var(--app-muted); font: 500 13px var(--sans); cursor: pointer; }
.call-circle { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .2s var(--ease), filter .2s; }
.call-btn:hover .call-circle { transform: scale(1.06); filter: brightness(1.1); }
.call-circle svg { width: 28px; height: 28px; }
.decline .call-circle { background: #e5484d; }
.decline .call-circle svg { transform: rotate(135deg); }
.answer .call-circle { background: #2ea66b; }
.screen-call.is-on .answer .call-circle { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-7px); } 80% { transform: translateY(0); } 90% { transform: translateY(-3px); } }

/* After a call */
.screen-after { justify-content: center; text-align: center; padding: 70px 26px 30px; }
.after-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.after-badge { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(59, 178, 115, .16); color: var(--app-tick); margin-bottom: 6px; }
.after-badge svg { width: 38px; height: 38px; }
.after-badge.warn { background: rgba(229, 72, 77, .14); color: #ff8a8e; }
.after-badge.gold { background: rgba(216, 185, 104, .14); color: var(--app-gold); }
.after-inner h3 { font-family: var(--serif); font-size: 27px; line-height: 1.15; margin: 0; }
.after-inner p { font-size: 14px; color: var(--app-muted); margin: 0; line-height: 1.5; }
.after-chips { display: flex; flex-direction: column; gap: 8px; width: 100%; margin: 8px 0 2px; }
.after-chips button, .after-btn {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--app-line);
  background: var(--app-card); color: var(--app-ink); font: 600 14px var(--sans); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.after-chips button:hover, .after-btn:hover { border-color: #46504b; }
.after-btn.primary { background: #2ea66b; border-color: #2ea66b; color: #fff; }
.after-btn.ghost { background: transparent; border-color: transparent; color: var(--app-muted); }

.phone-under { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 360px; text-align: center; }
.btn-ring { padding: 15px 26px; font-size: 16px; }
.btn-ring.is-ringing svg { animation: wiggle .5s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.hint { font-size: 14px; color: var(--muted); margin: 0; }

.live-panel { display: flex; flex-direction: column; gap: 16px; }
.panel-block { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.panel-k { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.panel-place { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; color: var(--green); line-height: 1.15; margin: 6px 0 2px; }
.panel-source { font-size: 14px; color: var(--muted); }
.panel-actions { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid rgba(12, 43, 33, .25); }
.btn-outline:hover { border-color: var(--green); background: rgba(12, 43, 33, .04); }
.btn-outline[aria-busy="true"] { opacity: .6; pointer-events: none; }
.city-search { margin-top: 18px; }
.city-search > label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.search-field {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px;
  background: var(--cream); border: 1.5px solid transparent; transition: border-color .2s, background .2s;
}
.search-field:focus-within { border-color: var(--gold); background: #fff; }
.search-field > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-field input { flex: 1; min-width: 0; border: 0; background: none; font: 500 16px var(--sans); color: var(--ink); padding: 8px 0; outline: none; }
.search-field input::-webkit-search-cancel-button { cursor: pointer; }
.btn-small { padding: 9px 16px; font-size: 14px; background: var(--green); color: var(--cream); }
.btn-small:hover { background: var(--green-soft); transform: none; }
.city-results { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.city-results button {
  width: 100%; text-align: left; padding: 10px 14px; border-radius: 12px; border: 0; background: transparent; cursor: pointer;
  font: 500 15px var(--sans); color: var(--ink); display: flex; justify-content: space-between; gap: 12px;
}
.city-results button:hover, .city-results button:focus-visible { background: var(--cream); }
.city-results small { color: var(--muted); }
.city-results .msg { padding: 8px 14px; font-size: 14px; color: var(--muted); }

.panel-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field select {
  appearance: none; -webkit-appearance: none; width: 100%; padding: 12px 38px 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); font: 500 15px var(--sans); color: var(--ink); cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%230c2b21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center/18px no-repeat;
  transition: border-color .2s;
}
.field select:hover, .field select:focus { border-color: var(--gold); outline: none; }
.panel-note { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.panel-today { padding: 8px; }
.today-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.today-grid > div { padding: 16px; border-radius: 16px; }
.today-grid > div + div { border-left: 1px solid var(--line); border-radius: 0; }
.today-grid dt { font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 0 0 6px; }
.today-grid dd { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.qibla-dial { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; flex: none; }
.qibla-dial i { position: absolute; left: 50%; top: 3px; bottom: 50%; width: 2px; margin-left: -1px; background: var(--gold); transform-origin: 50% 100%; border-radius: 2px; transition: transform 1s var(--ease); }
.privacy-note { font-size: 13.5px; color: var(--muted); margin: 2px 6px 0; }

/* ---------- Story: the call, step by step ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
/* Starts under the 64px nav, and the phone takes the height that's left minus a margin,
   so on a short window it shrinks instead of sliding under the nav. */
.story-phone { position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; }
.story-frame {
  position: relative; height: min(692px, calc(100vh - 64px - 64px)); max-width: 100%; aspect-ratio: 600 / 1298; border-radius: 44px; overflow: hidden;
  background: #111; border: 10px solid #0b0d0c;
  box-shadow: 0 0 0 1.5px rgba(227, 201, 131, .25), 0 50px 90px -20px rgba(0, 0, 0, .6), 0 0 120px rgba(201, 162, 75, .12);
}
.story-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.story-frame img.is-on { opacity: 1; transform: none; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s var(--ease); }
.story-step.is-on { opacity: 1; }
.step-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; background: rgba(227, 201, 131, .12); border: 1px solid rgba(227, 201, 131, .4); color: var(--gold-bright); font-weight: 700; font-size: 17px; }
.story-step h3 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 0 0 14px; color: var(--cream); }
.story-step p { margin: 0; font-size: 18px; color: rgba(233, 225, 207, .8); max-width: 460px; }
.step-img { display: none; }

/* ---------- What's new ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; --tl: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 139px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; }
.timeline::before { background: var(--line); }
.timeline::after { background: linear-gradient(var(--gold-bright), var(--gold)); transform-origin: top; transform: scaleY(var(--tl)); }
.tl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 36px; position: relative; }
.tl + .tl { margin-top: 22px; }
.tl::before {
  content: ""; position: absolute; left: 133px; top: 26px; width: 14px; height: 14px; border-radius: 50%; z-index: 1;
  background: var(--cream); border: 2px solid var(--gold); transition: background .4s, box-shadow .4s;
}
.tl.is-visible::before { background: var(--gold); box-shadow: 0 0 0 6px rgba(201, 162, 75, .15); }
/* Ends 28px short of the line, so the date and the version never touch the dot. */
.tl-date { padding: 16px 28px 0 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tl-date time { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--green); line-height: 1; white-space: nowrap; }
.tl-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--green); background: var(--gold-bright); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.tl-body {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.tl-body::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 201, 131, .18), transparent 60%);
}
.tl-body:hover { border-color: rgba(201, 162, 75, .55); box-shadow: 0 18px 40px rgba(12, 43, 33, .08); }
.tl-body:hover::before { opacity: 1; }
.tl-body h3 { font-size: 19px; margin: 0 0 10px; color: var(--green); line-height: 1.3; }
.tl-body p { margin: 0 0 6px; color: #3a4740; }
.tl-body p:last-child { margin-bottom: 0; }
.tl-body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tl-body li { position: relative; padding-left: 18px; color: #3a4740; }
.tl-body li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.tl-body strong { color: var(--ink); }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px !important; }
.langs span { padding: 5px 12px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--green); }

/* ---------- Watches ---------- */
.watch-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.watch-card, .face-lab {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-dark); border-radius: 30px; padding: 28px;
}
.watch-card { display: flex; flex-direction: column; }
.watch-card header { display: flex; gap: 14px; align-items: flex-start; }
.watch-card header > svg { width: 36px; height: 36px; color: var(--gold-bright); flex: none; margin-top: 2px; }
.watch-card h3, .face-controls h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin: 0 0 4px; color: var(--cream); }
.watch-card header p { margin: 0; color: rgba(233, 225, 207, .72); font-size: 15px; }
.aw-stage, .wear-stage { flex: 1; display: grid; place-items: center; padding: 30px 0 24px; min-height: 340px; }
.aw-stage img { width: 220px; height: auto; border-radius: 48px; background: #000; box-shadow: 0 0 0 9px #1d2421, 0 0 0 10px rgba(227, 201, 131, .25), 0 30px 60px rgba(0, 0, 0, .45); }
.wear-stage img { width: 270px; height: auto; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .5)); }
.swap-in { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: scale(.94) translateY(6px); } to { opacity: 1; transform: none; } }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tabs button, .seg-row button {
  padding: 9px 15px; border-radius: 999px; font: 600 14px var(--sans); cursor: pointer;
  background: rgba(255, 255, 255, .05); color: rgba(246, 241, 230, .85); border: 1px solid rgba(255, 255, 255, .12);
  transition: background .2s, color .2s, border-color .2s;
}
.tabs button:hover, .seg-row button:hover { border-color: rgba(227, 201, 131, .5); }
.tabs button[aria-selected="true"], .seg-row button[aria-pressed="true"] { background: var(--gold-bright); color: var(--green); border-color: var(--gold-bright); }
.watch-fine { margin: 18px 0 0; font-size: 14.5px; color: rgba(233, 225, 207, .7); text-align: center; }

.face-lab { margin-top: 24px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.face-preview { position: relative; display: grid; place-items: center; padding: 20px; }
.face-ring {
  position: absolute; width: min(360px, 90%); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(227, 201, 131, .0), rgba(227, 201, 131, .45), rgba(46, 166, 107, .3), rgba(227, 201, 131, 0));
  filter: blur(18px); animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.face-preview img { position: relative; width: min(330px, 100%); height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); }
.face-controls > p { color: rgba(233, 225, 207, .75); margin: 0 0 20px; }
.seg { border: 0; margin: 0 0 18px; padding: 0; }
.seg legend { font-size: 14px; font-weight: 700; color: var(--gold-bright); margin-bottom: 10px; padding: 0; }
.seg legend span { color: var(--cream); font-weight: 600; }
.seg-row { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid rgba(255, 255, 255, .2); box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .25);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.swatches button:hover { transform: scale(1.12); }
.swatches button[aria-pressed="true"] { border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(227, 201, 131, .3), inset 0 -6px 10px rgba(0, 0, 0, .25); }
.swatches button:disabled { opacity: .3; cursor: not-allowed; transform: none; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; color: var(--cream); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { width: 46px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, .15); position: relative; transition: background .25s; flex: none; }
.switch-track span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked + .switch-track { background: var(--green-bright); }
.switch input:checked + .switch-track span { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Ringtones ---------- */
.tones-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.tones-art { margin: 0; }
.tones-art img { width: 100%; height: auto; display: block; border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(12, 43, 33, .35); }
.tones { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tones li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 14px 20px;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.tones li.is-playing { border-color: var(--gold); box-shadow: 0 14px 30px rgba(201, 162, 75, .18); transform: translateX(4px); }
.tones strong { display: block; color: var(--green); font-size: 16px; }
.tones span { color: var(--muted); font-size: 14px; }
.tones .tone-any { border-style: dashed; background: transparent; padding: 16px 20px; }
.tone-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; cursor: pointer;
  font: 700 14px var(--sans); color: var(--green); background: var(--cream); border: 1.5px solid transparent; flex: none;
  transition: background .2s, border-color .2s;
}
.tone-btn:hover { border-color: var(--gold); }
.tone-btn svg { width: 16px; height: 16px; }
.tone-btn span { color: inherit; font-size: inherit; }
.tone-btn[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.tones-note { text-align: center; color: var(--muted); margin: 32px auto 0; max-width: 620px; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ---------- Duas ---------- */
/* The checklist, in the app's own dark colours */
.cl-demo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin: 0 auto 72px; max-width: 1020px; }
.cl-copy h3 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; color: var(--green); margin: 0 0 14px; }
.cl-copy p { color: #3a4740; margin: 0 0 12px; font-size: 17px; }
.cl-copy .btn { margin-top: 10px; }
.cl-panel {
  --app-bg: #121413; --app-card: #1b1e1d; --app-line: #2a2e2c; --app-ink: #eeeae0; --app-muted: #8e948f;
  --app-gold: #d8b968; --app-tick: #30a46c;
  background: var(--app-bg); color: var(--app-ink); border-radius: 30px; padding: 22px 16px 16px;
  border: 1px solid #262a28; box-shadow: 0 40px 80px -30px rgba(12, 43, 33, .55);
}
.cl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 0 6px 14px; }
.cl-title { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.2; }
.cl-title span { font-size: 17px; font-weight: 400; color: var(--app-muted); margin-left: 4px; }
.cl-sub { font-size: 13px; color: var(--app-muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.cl-all { flex: none; background: none; border: 0; padding: 6px 4px; cursor: pointer; font: 600 13.5px var(--sans); color: var(--app-gold); }
.cl-all:hover { text-decoration: underline; }
.cl-list { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; padding: 2px; scrollbar-width: thin; scrollbar-color: #3a403d transparent; }
.cl-card {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 10px;
  padding: 13px 14px; border-radius: 14px; border: 1px solid var(--app-line); background: var(--app-card);
  color: var(--app-ink); text-align: left; cursor: pointer; font-family: var(--sans);
  transition: border-color .25s, background .2s, transform .12s var(--ease);
}
.cl-card:hover { background: #202422; }
.cl-card:active { transform: scale(.985); }
.cl-card.done { border-color: var(--app-tick); }
.cl-tick {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 2px solid #dcc98f; background: var(--app-card);
  font-size: 10.5px; font-weight: 700; color: var(--app-muted); font-variant-numeric: tabular-nums;
  transition: background .25s, border-color .25s;
}
.cl-card.started .cl-tick { border-color: #c8a352; color: var(--app-ink); }
.cl-card.done .cl-tick { background: var(--app-tick); border-color: var(--app-tick); color: #fff; }
.cl-tick svg { width: 16px; height: 16px; }
.cl-card.pop .cl-tick { animation: pop .45s var(--ease); }
.cl-name { font-size: 14px; font-weight: 600; }
.cl-hint { font-size: 11px; font-weight: 500; color: var(--app-muted); }
.cl-ar {
  grid-column: 1 / -1; font-family: var(--serif); font-size: 19px; line-height: 1.8; direction: rtl; text-align: right;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--app-ink);
}
.cl-card.done .cl-ar { color: var(--app-muted); }
.cl-finish { text-align: center; padding: 18px 0 8px; }
.cl-finish span { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.4; }
.cl-finish small { color: var(--app-muted); font-size: 13px; }
.cl-finish.enter { animation: fade-up .6s var(--ease) both; }

/* Confetti: pieces are placed and animated from home.js */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti i { position: absolute; top: 0; display: block; will-change: transform, opacity; }

.dua-tools { max-width: 900px; margin: 0 auto 28px; display: flex; flex-direction: column; gap: 16px; }
.search-field.big { padding: 8px 8px 8px 20px; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 10px 30px rgba(12, 43, 33, .05); }
.search-field.big input { font-size: 17px; padding: 10px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font: 600 14px var(--sans); color: var(--green); background: #fff; border: 1.5px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.chips button:hover { border-color: var(--gold); }
.chips button small { font-size: 12px; color: var(--muted); font-weight: 600; }
.chips button[aria-pressed="true"] { background: var(--green); color: var(--cream); border-color: var(--green); }
.chips button[aria-pressed="true"] small { color: var(--gold-bright); }
.dua-view { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; justify-content: center; font-size: 15px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.dua-count { color: var(--muted); font-size: 14px; }

.duas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; align-items: start; }
.dua {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  transition: border-color .25s, box-shadow .25s;
}
.dua:hover { border-color: rgba(201, 162, 75, .5); }
.dua[open] { box-shadow: 0 20px 44px rgba(12, 43, 33, .08); border-color: rgba(201, 162, 75, .55); }
.js .dua.enter { animation: fade-up .5s var(--ease) both; }
.dua summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.dua summary::-webkit-details-marker { display: none; }
.dua-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dua-name { display: block; min-width: 0; }
.dua-title { font-size: 17px; font-weight: 700; color: var(--green); line-height: 1.3; }
.dua-places { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.dua-rep { flex: none; font-size: 12.5px; font-weight: 700; color: #6c5414; background: rgba(227, 201, 131, .35); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.dua-peek {
  font-family: var(--serif); font-size: 21px; line-height: 1.7; color: #3a4740; direction: rtl; text-align: right;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.dua[open] .dua-peek { display: none; }
.dua-more { font-size: 14px; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.dua-more::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease); }
.dua[open] .dua-more::after { transform: rotate(-135deg) translateY(-2px); }
.dua-body { padding: 0 22px 22px; }
.dua-ar { font-family: var(--serif); font-size: 26px; line-height: 2; color: var(--ink); direction: rtl; text-align: right; margin: 0 0 14px; white-space: pre-line; }
.dua-tr { font-style: italic; color: #4a5750; margin: 0 0 12px; white-space: pre-line; }
.dua-en { color: #2d3a33; margin: 0 0 14px; }
.dua-src { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin: 0; }
.dua-src span { display: block; }
.no-translit .dua-tr, .no-meaning .dua-en { display: none; }
.duas-empty { text-align: center; color: var(--muted); padding: 30px 0; grid-column: 1 / -1; }

/* ---------- Lantern ---------- */
.lantern-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.lantern-art { display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.l-side { width: 120px; height: auto; opacity: .75; animation: bob 7s ease-in-out infinite; }
.l-side:last-child { animation-delay: -3s; }
.l-main { position: relative; width: 220px; }
.l-main img { position: relative; width: 100%; height: auto; display: block; }
.l-glow { position: absolute; left: 50%; top: 58%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(247, 201, 72, .35), transparent 62%); animation: flicker 3.2s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); } 30% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } 55% { opacity: .7; transform: translate(-50%, -50%) scale(.97); } 75% { opacity: .95; } }
.lantern-copy h2 { text-align: left; }
.lantern-copy p:not(.kicker) { color: rgba(233, 225, 207, .82); font-size: 18px; margin: 0 0 26px; }

/* ---------- Honest note ---------- */
.note { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 26px; padding: clamp(28px, 5vw, 52px); }
.note h2 { font-size: clamp(30px, 4vw, 42px); text-align: left; }
.note p { color: #33403a; margin: 0 0 16px; font-size: 17px; }
.note .verse { font-family: var(--serif); font-style: italic; color: var(--green); font-size: 22px; line-height: 1.5; border-left: 3px solid var(--gold); padding-left: 22px; margin: 28px 0; }
.note .verse cite { display: block; font-style: normal; font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 8px; }
.note .close { color: var(--green); font-weight: 700; margin-bottom: 0; }

/* ---------- Rail ---------- */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(860px, 86%); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 24px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; scroll-snap-align: center; }
.rail img { width: 100%; height: auto; display: block; border-radius: 24px; border: 1px solid rgba(12, 43, 33, .1); box-shadow: 0 24px 50px -20px rgba(12, 43, 33, .3); }
.rail figcaption { margin-top: 14px; text-align: center; color: var(--muted); }
.rail-btn {
  position: absolute; top: calc(50% - 40px); z-index: 2; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: #fff; color: var(--green); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(12, 43, 33, .15); transition: transform .2s var(--ease), opacity .2s;
}
.rail-btn:hover { transform: scale(1.08); }
.rail-btn:disabled { opacity: 0; pointer-events: none; }
.rail-btn svg { width: 22px; height: 22px; }
.rail-btn.prev { left: -10px; } .rail-btn.next { right: -10px; }

/* ---------- Compare ---------- */
.cmp-wrap { overflow-x: auto; border-radius: 24px; border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 50px -30px rgba(12, 43, 33, .3); }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: 16px; color: var(--green); background: var(--paper); white-space: nowrap; }
.cmp thead small, .cmp tbody th small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); white-space: normal; }
.cmp tbody th { width: 19%; font-weight: 700; color: var(--ink); background: var(--paper); position: sticky; left: 0; z-index: 1; }
.cmp td { color: #3a4740; width: 20.25%; }
.cmp .us { background: rgba(227, 201, 131, .14); color: var(--green); font-weight: 600; }
.cmp thead th.us { background: var(--green); color: var(--gold-bright); }
.cmp .yes { display: inline-flex; align-items: center; gap: 6px; }
.cmp .yes::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--green-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.cmp-notes { max-width: 820px; margin: 28px auto 0; }
.cmp-notes p { color: #3a4740; margin: 0 0 12px; }
.cmp-src { font-size: 13.5px; color: var(--muted) !important; }

/* ---------- Privacy ---------- */
.priv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.priv > div { padding: 26px 24px; border-radius: 22px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04); transition: background .3s, transform .3s var(--ease); }
.priv > div:hover { background: rgba(255, 255, 255, .07); transform: translateY(-4px); }
.priv h3 { margin: 0 0 8px; color: var(--gold-bright); font-size: 18px; }
.priv p { margin: 0; color: rgba(233, 225, 207, .8); font-size: 15.5px; }
.priv-foot { text-align: center; margin: 34px 0 0; }
.priv-foot a { color: var(--gold-bright); font-weight: 600; border-bottom: 1px solid rgba(227, 201, 131, .4); padding-bottom: 2px; }
.priv-foot a:hover { text-decoration: none; border-color: var(--gold-bright); }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: rgba(201, 162, 75, .5); box-shadow: 0 14px 30px rgba(12, 43, 33, .06); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 16.5px; color: var(--green); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--gold); font-size: 20px; font-weight: 400; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 22px 16px; color: #3a4740; }

/* ---------- Closing CTA ---------- */
.cta { text-align: center; overflow: hidden; color: var(--cream); background: linear-gradient(170deg, var(--green), var(--green-deep)); }
.cta-glow { position: absolute; left: 50%; top: 40%; width: 900px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(227, 201, 131, .2), transparent); pointer-events: none; animation: flicker 6s ease-in-out infinite; }
.cta .wrap { position: relative; }
.cta .mark { width: 84px; height: 84px; display: block; margin: 0 auto 20px; }
.cta h2 { color: var(--cream); }
.cta p { color: rgba(233, 225, 207, .82); font-size: 19px; margin: 0; }
.cta .store-note { color: rgba(233, 225, 207, .65); font-size: 14px; margin-top: 18px; }

/* ---------- More apps ---------- */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.app-card {
  display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 26px 24px; color: inherit;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
a.app-card:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 18px 36px rgba(12, 43, 33, .1); }
.app-card .platform { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.app-card h3 { margin: 6px 0 0; font-size: 19px; color: var(--green); }
.app-card p { margin: 10px 0 0; color: var(--muted); font-size: 15px; flex: 1; }
.app-card .go { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--green); }
.app-card .go::after { content: " →"; }
.decks-card { grid-column: 1 / -1; flex-direction: row; gap: 28px; }
.decks-card .decks-head { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.decks-card .decks { flex: 1.15 1 0; min-width: 0; list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid rgba(201, 162, 75, .45); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.decks-card .decks a { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.decks-card .decks a:hover { text-decoration: none; }
.decks-card .decks a > span { flex: 1; min-width: 0; }
.decks-card .decks strong { display: block; font-size: 15px; }
.decks-card .decks a:hover strong { color: var(--green); }
.decks-card .decks small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.decks-card .decks a::after { content: "→"; color: var(--green); opacity: .55; transition: transform .2s, opacity .2s; }
.decks-card .decks a:hover::after { transform: translateX(3px); opacity: 1; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lede { margin: 0 auto; }
  .get, .facts { justify-content: center; }
  .video-card { transform: none; }
  .live { grid-template-columns: 1fr; }
  .face-lab { grid-template-columns: 1fr; text-align: center; }
  .seg-row, .swatches { justify-content: center; }
  .priv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-phone { display: none; }
  .story-step { min-height: 0; opacity: 1; padding: 0 0 56px; align-items: center; text-align: center; }
  .story-step p { margin: 0 auto; }
  .step-img { display: block; width: min(260px, 70%); height: auto; margin-top: 26px; border-radius: 30px; border: 6px solid #0b0d0c; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
  .watch-cards { grid-template-columns: 1fr; }
  .tones-grid { grid-template-columns: 1fr; }
  .cl-demo { grid-template-columns: 1fr; }
  .cl-copy { text-align: center; }
  .lantern-grid { grid-template-columns: 1fr; text-align: center; }
  .lantern-copy h2 { text-align: center; }
  .today-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-grid > div + div { border-left: 0; }
  .today-grid > div:nth-child(even) { border-left: 1px solid var(--line); }
  .today-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rail-btn { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 104px 0 80px; }
  .timeline::before, .timeline::after { left: 7px; }
  .tl { grid-template-columns: 1fr; gap: 10px; padding-left: 30px; }
  .tl::before { left: 1px; top: 4px; }
  .tl-date { padding: 0; text-align: left; flex-direction: row; align-items: center; gap: 10px; }
  .panel-settings { grid-template-columns: 1fr; }
  .decks-card { flex-direction: column; gap: 18px; }
  .decks-card .decks { padding-left: 16px; }
}

@media (max-width: 520px) {
  .get { flex-direction: column; align-items: center; }
  .store-badge img, .watch-badge { height: 48px; }
  .watch-badge span { font-size: 16px; }
  .phone { width: 100%; max-width: 340px; height: 690px; border-width: 9px; border-radius: 48px; }
  .panel-block { padding: 20px 18px; }
  .watch-card, .face-lab { padding: 22px 18px; border-radius: 24px; }
  .aw-stage, .wear-stage { min-height: 280px; }
  .aw-stage img { width: 190px; }
  .wear-stage img { width: 230px; }
  .priv { grid-template-columns: 1fr; }
  .tones li { padding-left: 16px; }
  .dua summary { padding: 18px; }
  .dua-body { padding: 0 18px 18px; }
  .dua-ar { font-size: 23px; }
  .note .verse { font-size: 19px; padding-left: 16px; }
  .lantern-art { gap: 0; }
  .l-side { width: 84px; }
  .l-main { width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-title .line > span, .js .hero-copy > *, .js .video-card { opacity: 1; transform: none; animation: none; }
  .story-frame img { transition: none; }
}
