/* Tap to Dhikr home page: scenes, orbit, sections.
   Loaded after styles.css. Palette: emerald #0f3d2e, parchment #f5efdf, gold #e3ae3e. */

:root{
  --emerald:#0f3d2e;
  --deep:#0b2d22;
  --forest:#245641;
  --meadow:#397353;
  --gold:#e3ae3e;
  --gold-soft:#f2cf7a;
  --parchment:#f5efdf;
  --cream:#fff6e0;
  --sage:#b5cabc;
}

/* ---------- Header ---------- */
.masthead{position:relative;z-index:6}
.nav-privacy{white-space:nowrap}
.motion-toggle{display:inline-flex;align-items:center;gap:8px;border:1px solid #b9baa5;background:transparent;color:inherit;border-radius:30px;padding:5px 12px;font-size:12px;font-weight:600;cursor:pointer;min-height:32px}
.motion-toggle[hidden]{display:none}
.motion-toggle:hover{background:#ece5d1}
.motion-icon{font-size:11px;letter-spacing:-.1em}

/* ---------- Hero ---------- */
.hero-world{position:relative;overflow-x:clip;background:linear-gradient(180deg,var(--parchment) 0%,#f1e9d1 100%)}
.hero-world>.wrap{position:relative;z-index:2}
.hero{padding-bottom:190px}
.hero h1 span{display:block}
.hero-copy .eyebrow{display:flex;align-items:center;gap:10px}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 4px #e3ae3e33}
.inline-link{display:inline-block;margin-top:26px;font-weight:600;font-size:16px}
.hero-landscape{position:absolute;left:0;right:0;bottom:0;width:100%;height:160px;display:block;z-index:1}

.hero-art{overflow:visible;min-height:700px}
.hero-arch{position:absolute;left:50%;top:70px;width:370px;height:580px;transform:translateX(-50%);border-radius:185px;background:linear-gradient(180deg,#ebe3cb,#e1d8ba)}
.bead-orbit{position:absolute;left:50%;top:50%;width:min(580px,100%);aspect-ratio:1;transform:translate(-50%,-50%);animation:orbit-turn 160s linear infinite;z-index:1;overflow:visible}
.bead-orbit circle{fill:var(--gold);opacity:.9;animation:bead-glow 5s ease-in-out infinite;animation-delay:calc(var(--i,0)*.14s)}
.bead-orbit circle.orbit-thread{fill:none;stroke:#cbbf95;stroke-width:1.5;opacity:1;animation:none}
.hero-device{position:relative;z-index:2}
.hero-art .phone{box-shadow:0 30px 55px #0b2d2230}
.hero-watch{position:absolute;z-index:3;left:-96px;bottom:36px;width:170px}

.floating-note{position:absolute;z-index:3;display:flex;align-items:center;gap:12px;background:#fffaf0;color:#123629;border:1px solid #e3dcc2;border-radius:18px;padding:12px 18px 12px 14px;font-size:14px;line-height:1.35;box-shadow:0 16px 30px #0b2d2220}
.floating-note strong{font-weight:650}
.floating-note svg{width:34px;height:34px;flex-shrink:0;color:#1e6b4f}
.note-symbol{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--emerald);color:var(--gold-soft);font-size:15px;flex-shrink:0}
.note-top{top:130px;left:-6px}
.note-bottom{bottom:130px;right:-6px}

.hero-star{position:absolute;z-index:3;color:var(--gold);line-height:0}
.hero-star svg{width:100%;height:100%;display:block}
.star-one{width:34px;height:34px;top:28px;right:14%}
.star-two{width:18px;height:18px;top:300px;left:7%;opacity:.8}

/* ---------- Ribbon ---------- */
.practice-ribbon{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 30px;padding:22px 5%;background:var(--meadow);color:var(--cream);font-family:Fraunces,Georgia,serif;font-size:22px;letter-spacing:-.01em}
.practice-ribbon i{font-style:normal;color:var(--gold-soft);font-size:16px}

/* ---------- Counter demo ---------- */
.counter-demo{padding:96px 0 110px}
.demo-copy h2{margin-top:14px}
.growth-preview{display:flex;align-items:center;gap:20px;margin:34px 0 8px;padding:18px 22px;background:#ece4cd;border-radius:22px;max-width:420px}
.growth-preview p{font-size:15px;color:#4d6355;margin:0;line-height:1.45}
.demo-sprout{width:92px;height:auto;flex-shrink:0;color:var(--forest)}
.sprout-ground{stroke:#a9b49f}
.sprout-stem{stroke:var(--forest)}
.sprout-leaf{opacity:.16;transform-box:fill-box;transform-origin:0 100%;transform:scale(.7);transition:opacity .5s ease,transform .6s cubic-bezier(.2,.9,.3,1.2)}
.leaf-c{transform-origin:50% 100%}
.growth-preview[data-stage="1"] .leaf-a,
.growth-preview[data-stage="2"] .leaf-a,
.growth-preview[data-stage="2"] .leaf-b,
.growth-preview[data-stage="3"] .sprout-leaf{opacity:1;transform:scale(1)}
.growth-preview[data-stage="3"] .sprout-leaf{color:#1e6b4f}

.demo-panel{position:relative;overflow:hidden;box-shadow:0 30px 60px -25px #0b2d2255}
.panel-caption{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:.16em;font-weight:650;color:var(--gold-soft);margin-bottom:18px}
.demo-count .demo-thread{fill:none;stroke:#2f6450;stroke-width:2}
.demo-count circle:not(.demo-thread){fill:#3c6652}
.demo-count circle.filled{fill:var(--gold)}
.count-ripple{position:absolute;left:50%;top:50%;width:62%;aspect-ratio:1;border-radius:50%;border:2px solid var(--gold-soft);opacity:0;transform:translate(-50%,-50%) scale(.6);pointer-events:none}
.count-ripple.is-rippling{animation:ripple .6s ease-out}
.demo-numeral{color:var(--cream)}
.demo-tap{display:block}
.demo-controls{margin-top:6px}

/* ---------- Scene sections ---------- */
.garden-world,.wrist-world{background:var(--emerald);color:var(--cream);position:relative;overflow:hidden}
.friends-section{background:#ece5d1}
.garden-world h2,.wrist-world h2{color:var(--cream)}
.garden-world .feature p,.wrist-world .feature p{color:var(--sage)}
.garden-world .eyebrow,.wrist-world .eyebrow{color:var(--gold-soft)}
.garden-world .meta,.wrist-world .meta{color:#9fb8a8!important}
.garden-world .inline-link,.wrist-world .inline-link{color:var(--gold-soft)}
.feature-copy .eyebrow{display:block;margin-bottom:18px}
.feature-art{min-height:520px;align-items:center}
.feature-art .phone{position:relative;z-index:2}
.garden-world .phone,.wrist-world .phone{border-color:#73947e}
.feature-copy h2{max-width:520px}

.garden-halo{position:absolute;left:50%;top:50%;width:440px;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#e3ae3e33 0%,#e3ae3e12 55%,transparent 72%)}
.garden-star{position:absolute;right:8%;top:6%;width:52px;height:52px;color:var(--gold);z-index:3;line-height:0}
.garden-star svg,.garden-leaf svg{width:100%;height:100%;display:block}
.garden-leaf{position:absolute;left:6%;bottom:8%;width:58px;height:58px;color:#7fb28f;z-index:3;line-height:0;transform:rotate(-12deg)}
.garden-steps{display:flex;align-items:center;gap:20px;margin:30px 0 24px;color:var(--cream);font-size:15px}
.garden-steps>span{display:inline-flex;align-items:center;gap:10px}
.garden-steps strong{font-family:Fraunces,Georgia,serif;font-weight:500;font-size:40px;line-height:1;color:var(--gold-soft)}
.garden-steps svg{width:34px;height:34px;color:#7fb28f}

.friends-art{position:relative}
.friends-disc{position:absolute;left:50%;top:50%;width:400px;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#e0d7ba}
.companions{position:absolute;inset:0;z-index:3;pointer-events:none}
.companions span{position:absolute;color:var(--gold);line-height:1}
.companions span:nth-child(1){left:8%;top:14%;font-size:34px}
.companions span:nth-child(2){right:6%;top:42%;font-size:20px}
.companions span:nth-child(3){left:14%;bottom:10%;font-size:24px}
.friends-section .feature-copy p{color:#576b5d}

.watch-art{position:relative}
.watch-art .watch{position:relative;z-index:2}
.watch-rings{position:absolute;left:50%;top:50%;width:0;height:0;z-index:1}
.watch-rings i{position:absolute;left:0;top:0;border-radius:50%;border:1px solid #f2cf7a33;transform:translate(-50%,-50%);animation:ring-breathe 6s ease-in-out infinite}
.watch-rings i:nth-child(1){width:380px;height:380px}
.watch-rings i:nth-child(2){width:500px;height:500px;animation-delay:.9s}
.watch-rings i:nth-child(3){width:620px;height:620px;animation-delay:1.8s}
.watch-detail{display:flex;align-items:center;gap:12px;font-family:Fraunces,Georgia,serif;font-size:24px;color:var(--gold-soft)!important;margin:26px 0!important}
.watch-detail span{font-size:22px}
.watch{filter:drop-shadow(0 24px 30px #00000055)}

/* ---------- Privacy + footer ---------- */
.privacy-strip{border-top:0}
.privacy-strip .eyebrow{display:block;margin-bottom:14px;color:#8a6a1c}

/* ---------- Creator card ---------- */
.creator-card{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:56px;margin:0 0 60px;padding:52px 64px;background:#fffdf7;border-radius:32px}
.creator-copy h2{font-size:clamp(40px,4.2vw,54px);margin-bottom:20px}
.creator-copy p{font-size:18px;line-height:1.6;color:#576b5d;margin:0 0 16px}
.creator-byline{display:flex;align-items:center;gap:14px;margin-top:26px}
.creator-byline img{width:44px;height:44px;border-radius:12px;flex-shrink:0}
.creator-link{display:inline-block;margin-top:18px;font-size:16px;font-weight:600;color:#0f3d2e;text-underline-offset:5px}
.creator-byline strong{display:block;font-size:18px;line-height:1.3}
.creator-byline span{display:block;font-size:15px;color:#718071}
.creator-photo{justify-self:center;width:min(100%,300px);aspect-ratio:1;height:auto;border-radius:50%;object-fit:cover;box-shadow:0 26px 45px #0b2d2222}
@media(max-width:850px){.creator-card{grid-template-columns:minmax(0,1fr);gap:40px;padding:50px 36px}.creator-photo{order:-1;width:260px}}
@media(max-width:560px){.creator-card{padding:40px 24px;border-radius:26px;margin-bottom:60px}.creator-copy p{font-size:17px}}
.footer-world{background:var(--deep);color:var(--cream);padding:76px 0 0}
.closing{display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px;padding-bottom:48px}
.closing img{width:60px;height:60px;border-radius:15px}
.closing p{font-family:Fraunces,Georgia,serif;font-size:clamp(26px,3vw,36px);line-height:1.25;max-width:none;color:var(--cream)}
.back-top{display:grid;place-items:center;width:46px;height:46px;border:1px solid #f2cf7a55;border-radius:50%;text-decoration:none;color:var(--gold-soft);font-size:20px}
.back-top:hover{background:#f2cf7a22}
.footer-world .footer{border-top:1px solid #f2cf7a26;color:#a9c2b3}
.footer-world .footer a{color:var(--cream)}

/* ---------- Motion ---------- */
@keyframes orbit-turn{to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes bead-glow{0%,100%{opacity:.5}50%{opacity:1}}
@keyframes ripple{0%{opacity:.8;transform:translate(-50%,-50%) scale(.6)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.45)}}
@keyframes ring-breathe{0%,100%{opacity:.35}50%{opacity:1}}

html[data-motion="paused"] .bead-orbit,
html[data-motion="paused"] .bead-orbit circle,
html[data-motion="paused"] .watch-rings i,
html[data-motion="paused"] .count-ripple{animation:none!important}
html[data-motion="paused"] .bead-orbit circle:not(.orbit-thread){opacity:.9}

@media (prefers-reduced-motion:reduce){
  .bead-orbit,.bead-orbit circle,.watch-rings i,.count-ripple{animation:none!important}
  .sprout-leaf{transition:none}
}

/* ---------- Responsive ---------- */
@media (max-width:850px){
  .hero{padding-bottom:150px}
  .hero-art{min-height:640px}
  .hero-arch{width:320px;height:540px;border-radius:160px}
  .note-top{left:0;top:80px}
  .note-bottom{right:0;bottom:90px}
  .counter-demo{padding:60px 0 70px}
  .feature{grid-template-columns:minmax(0,1fr)}
  .friends-feature .feature-copy{order:-1}
  .feature-art{min-height:460px}
  .garden-halo,.friends-disc{width:360px}
}
@media (max-width:560px){
  .practice-ribbon{font-size:18px;gap:8px 18px}
  .hero-art{min-height:600px}
  .hero-arch{width:290px;height:500px;border-radius:145px}
  .hero-watch{width:120px;left:-44px;bottom:28px}
  .floating-note{font-size:12.5px;padding:9px 12px 9px 10px;gap:9px;border-radius:15px}
  .note-symbol,.floating-note svg{width:28px;height:28px}
  .note-top{top:40px;left:-4px}
  .note-bottom{bottom:70px;right:-4px}
  .star-one{right:6%}
  .growth-preview{padding:14px 16px}
  .watch-rings i:nth-child(3){display:none}
  .garden-steps{flex-wrap:wrap}
  .motion-toggle .motion-label{display:none}
  .footer-world{padding-top:56px}
}
