/* Tawafy Landing Page Stylesheet — Sacred Quietude 2.0: Cahaya Haramain */
/* All color, typography, and motion tokens come from theme.css */

:root {
  --night-gold-glow: color-mix(in srgb, var(--night-gold) 14%, transparent);
  --night-gold-soft: color-mix(in srgb, var(--night-gold) 10%, transparent);
  --night-gold-border: color-mix(in srgb, var(--night-gold) 38%, transparent);
  --night-shadow-deep: 0 32px 68px -18px color-mix(in srgb, var(--night-bg) 92%, transparent);
  --space-section: clamp(2rem, 3.4vw, 3rem);
}

/* ==========================================================================
   0. TOPBAR & MOBILE NAVIGATION SHEET
   ========================================================================== */
.wrap { max-width: 1240px; }

.site-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 76px;
  display: flex;
  align-items: center;
  transition: background-color 0.28s var(--ease-sacred), box-shadow 0.28s var(--ease-sacred), color 0.28s var(--ease-sacred);
}

.site-topbar .topbar-inner { width: 100%; min-height: 76px; gap: 16px; }
.site-topbar .brand {
  min-height: 44px;
  min-width: 44px;
  padding: 4px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.24s var(--ease-sacred), transform 0.24s var(--ease-sacred), visibility 0.24s;
}
.site-topbar.has-brand .brand {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.site-topbar .brand-logo {
  height: 30px;
  width: auto;
}
@media (min-width: 960px) {
  .site-topbar .topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .site-topbar .brand { justify-self: start; }
  .site-topbar .nav-links { justify-self: center; }
  .site-topbar .topbar-actions { justify-self: end; }
  .site-topbar .brand-logo { height: 32px; }
}

/* Transparent topbar over adaptive hero (scrollY < 80) */
.site-topbar.is-top {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--hero-ink);
}

[data-theme="light"] .site-topbar.is-top .logo-for-light,
:root:not([data-theme="dark"]) .site-topbar.is-top .logo-for-light { display: block; }
[data-theme="light"] .site-topbar.is-top .logo-for-dark,
:root:not([data-theme="dark"]) .site-topbar.is-top .logo-for-dark { display: none; }
[data-theme="dark"] .site-topbar.is-top .logo-for-light { display: none; }
[data-theme="dark"] .site-topbar.is-top .logo-for-dark { display: block; }

.site-topbar.is-top .nav-link { color: color-mix(in srgb, var(--hero-ink) 88%, transparent); }
.site-topbar.is-top .nav-link:hover,
.site-topbar.is-top .nav-link:focus-visible { color: var(--hero-accent-ink); background: color-mix(in srgb, var(--hero-accent-ink) 10%, transparent); }
.site-topbar.is-top .icon-btn,
.site-topbar.is-top .lang-text { color: var(--hero-ink); }
.site-topbar.is-top .icon-btn:hover,
.site-topbar.is-top .lang-text:hover { color: var(--hero-accent-ink); }

/* Scrolled topbar (scrollY >= 80) — adapts to Light or Dark Navy theme */
.site-topbar.is-scrolled {
  background: color-mix(in srgb, var(--bg-canvas) 94%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0;
  box-shadow: 0 1px 0 var(--hairline);
  color: var(--ink-primary);
}

.site-topbar.is-scrolled .nav-link { color: var(--ink-secondary); }
.site-topbar.is-scrolled .nav-link:hover,
.site-topbar.is-scrolled .nav-link:focus-visible { color: var(--ink-primary); background: var(--surface-elevated); }
.site-topbar.is-scrolled .icon-btn,
.site-topbar.is-scrolled .lang-text { color: var(--ink-primary); }

[data-theme="light"] .site-topbar.is-scrolled .logo-for-light { display: block; }
[data-theme="light"] .site-topbar.is-scrolled .logo-for-dark { display: none; }
[data-theme="dark"] .site-topbar.is-scrolled .logo-for-light { display: none; }
[data-theme="dark"] .site-topbar.is-scrolled .logo-for-dark { display: block; }

.nav-links { display: none; align-items: center; gap: 8px; }
@media (min-width: 960px) { .nav-links { display: flex; } }

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  appearance: none;
  border: none;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: inherit;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s var(--ease-sacred);
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.icon-btn:active { transform: scale(0.95); }

.lang-text {
  appearance: none;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: inherit;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.lang-text:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.lang-opt { opacity: 0.56; transition: opacity 0.18s ease, color 0.18s ease; }
.lang-opt.is-active { opacity: 1; font-weight: 800; }
.site-topbar.is-top .lang-opt.is-active { color: var(--hero-accent-ink); }
.site-topbar.is-scrolled .lang-opt.is-active { color: var(--gold-ink); }
[data-theme="dark"] .site-topbar.is-scrolled .lang-opt.is-active { color: var(--night-gold); }
.lang-sep { opacity: 0.45; }

.mobile-menu-btn { display: inline-flex; }
@media (min-width: 960px) { .mobile-menu-btn { display: none; } }

/* Mobile Navigation Drawer Sheet */
.mobile-drawer[hidden] { display: none; }
.mobile-drawer { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; }
.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--night-bg) 72%, transparent);
  backdrop-filter: blur(6px);
}
.mobile-drawer-panel {
  position: relative;
  z-index: 1;
  width: min(88vw, 360px);
  height: 100%;
  background: var(--surface);
  color: var(--ink-primary);
  border-left: 1px solid var(--border-subtle);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  overflow-y: auto;
  box-shadow: var(--shadow-floating);
}
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.mobile-drawer-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.mobile-drawer-close {
  appearance: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-drawer-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
  background: var(--bg-band-ivory);
  border: 1px solid var(--hairline);
}
.mobile-drawer-link:hover { border-color: var(--gold-decor); }
.mobile-drawer-foot {
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   SHARED TYPOGRAPHY, EYEBROW & SECTION RHYTHM
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.72; }
.eyebrow--gold { color: var(--night-gold); }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-wrap: balance;
}
.section-subcopy {
  font-size: var(--step-0);
  color: var(--ink-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 58ch;
}

.band-space { padding: var(--space-section) 0; }
.band-canvas { background-color: var(--bg-canvas); }
.band-ivory {
  background-color: var(--bg-band-ivory);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.band-sand {
  background-color: var(--bg-band-sand);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

/* ==========================================================================
   1. HERO — ADAPTIVE HARAMAIN PORTAL (DAYLIGHT DHUHA <-> NOCTURNAL NAVY)
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 860px);
  padding: 84px 0 56px;
  display: flex;
  align-items: center;
  color: var(--hero-ink);
  background: var(--hero-surface);
  overflow: hidden;
  transition: background-color 0.45s var(--ease-sacred), color 0.35s var(--ease-sacred);
}
.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity 0.55s var(--ease-sacred);
}
.hero-layer--day { opacity: 1; }
.hero-layer--night { opacity: 0; }
[data-theme="dark"] .hero-layer--day { opacity: 0; }
[data-theme="dark"] .hero-layer--night { opacity: 1; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  animation: heroKenBurns 32s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--hero-veil-rgb), 0.94) 0%, rgba(var(--hero-veil-rgb), 0.86) 34%, rgba(var(--hero-veil-rgb), 0.56) 48%, rgba(var(--hero-veil-rgb), 0.12) 62%, rgba(var(--hero-veil-rgb), 0.02) 72%),
    linear-gradient(180deg, rgba(var(--hero-veil-rgb), 0.72) 0%, rgba(var(--hero-veil-rgb), 0.16) 11%, rgba(var(--hero-veil-rgb), 0) 20%, rgba(var(--hero-veil-rgb), 0) 78%, var(--hero-surface) 100%);
  transition: background 0.45s var(--ease-sacred);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 560px);
  align-items: center;
  width: 100%;
}
.hero-copy { max-width: 540px; }
.hero-brand {
  --hero-logo-h: 56px;
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
}
.hero-brand-logo {
  height: var(--hero-logo-h);
  width: auto;
  margin-inline-start: calc(var(--hero-logo-h) * -0.489);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.65rem, 4.4vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--hero-ink);
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero-title em { color: var(--hero-accent-ink); font-style: italic; }
.hero-lead {
  max-width: 44ch;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--hero-ink-muted);
}
.hero-actions { display: flex; gap: 14px; margin: 30px 0 36px; flex-wrap: wrap; }
.btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
  white-space: nowrap;
}
.btn-ghost-gold {
  border: 1px solid var(--hero-ghost-border);
  color: var(--hero-ink);
  background: var(--hero-ghost-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.2s var(--ease-sacred), border-color 0.2s var(--ease-sacred), transform 0.2s var(--ease-sacred);
}
.btn-ghost-gold:hover {
  border-color: var(--gold-decor);
  background: color-mix(in srgb, var(--gold-decor) 14%, var(--hero-ghost-bg));
  transform: translateY(-1px);
}
[data-theme="dark"] .btn-ghost-gold { color: var(--night-gold); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  border-block: 1px solid var(--hero-rule);
  padding: 13px 0;
  max-width: 540px;
  list-style: none;
  margin: 0;
}
.hero-trust li {
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hero-ink);
  opacity: 0.9;
}
.hero-trust li:first-child { padding-left: 0; }
.hero-trust li:last-child { padding-right: 0; }
.hero-trust li + li { border-left: 1px solid var(--hero-rule); }

/* Shared Realistic Android Device Frame (used in #perjalanan) */
.device {
  position: relative;
  width: 300px;
  aspect-ratio: 9 / 19.5;
  border-radius: 48px;
  padding: 11px;
  background: linear-gradient(145deg, var(--device-frame-hi), var(--device-frame-lo));
  box-shadow:
    inset 0 0 0 1.5px var(--device-edge),
    inset 0 0 0 4px var(--device-frame-lo),
    0 2px 4px var(--device-shadow-1),
    0 30px 60px -12px var(--device-shadow-2),
    0 60px 120px -30px var(--device-shadow-3);
}
.device-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; }
.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, var(--device-glare) 0%, transparent 38%);
}
.device-camera {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  z-index: 4;
  border-radius: 50%;
  background: var(--device-frame-lo);
  box-shadow: inset 0 0 0 1.5px var(--device-edge);
}
.device-btn { position: absolute; right: -3px; width: 3px; border-radius: 2px; background: var(--device-edge); }
.device-btn--power { top: 150px; height: 64px; }
.device-btn--vol { top: 240px; height: 96px; }

@media (max-width: 959px) {
  .hero { min-height: min(100svh, 840px); align-items: flex-end; padding: 245px 0 32px; }
  .hero-media img { object-position: 70% 24%; }
  .hero-vignette {
    background: linear-gradient(180deg, rgba(var(--hero-veil-rgb), 0.64) 0%, rgba(var(--hero-veil-rgb), 0.06) 13%, rgba(var(--hero-veil-rgb), 0.08) 29%, rgba(var(--hero-veil-rgb), 0.86) 44%, rgba(var(--hero-veil-rgb), 0.96) 58%, var(--hero-surface) 100%);
  }
  .hero-brand { --hero-logo-h: 46px; margin: 0 0 10px; }
  .hero-title { font-size: clamp(2.05rem, 8vw, 2.6rem); margin: 0 0 14px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; margin: 20px 0 22px; }
  .hero-actions .btn-lg { width: 100%; }
  .hero-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .hero-trust li { padding: 0; }
  .hero-trust li + li { border-left: 0; }
}

/* ==========================================================================
   2. TALBIYAH INTERLUDE (THEME-ADAPTIVE, NO HEAVY BOX)
   ========================================================================== */
.band-interlude { padding: clamp(2rem, 3vw, 2.75rem) 0; text-align: center; }
.interlude-frame { max-width: 960px; margin: 0 auto; }
.interlude-arabic { font-size: clamp(1.45rem, 2.35vw, 1.98rem); line-height: 1.92; color: var(--ink-primary); margin: 0 0 12px; }
.interlude-trans { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--ink-secondary); line-height: 1.48; margin: 0 auto 8px; max-width: 62ch; }
.interlude-cite { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin: 0; }

/* ==========================================================================
   3. JELAJAHI MENU & FITUR (#fitur — 3-KOLOM PILLARS-INSPIRED EXPLORER)
   ========================================================================== */
.explorer { position: relative; padding: var(--space-section) 0; }
.explorer-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.explorer-intro { text-align: center; }
.explorer-intro .eyebrow { justify-content: center; }
.explorer-intro .section-subcopy { margin: 0 auto; }
.explorer-cta {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.explorer-device-col {
  display: flex;
  justify-content: center;
}
.device--explorer {
  width: 256px;
  aspect-ratio: auto;
  flex: 0 0 auto;
}

.device-screen--app {
  display: flex;
  flex-direction: column;
  height: auto;
  background: var(--device-screen-app-top);
  transition: background-color 0.25s var(--ease-sacred);
}
.device-screen--app::after { opacity: 0.4; z-index: 4; }
.app-safe-top {
  position: relative;
  height: 22px;
  flex: 0 0 22px;
  background: var(--device-screen-app-top);
  transition: background-color 0.25s var(--ease-sacred);
}
.app-screen-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 417 / 932;
  overflow: hidden;
  background: var(--device-screen-app-top);
}
.app-safe-bottom {
  height: 14px;
  flex: 0 0 14px;
  background: var(--device-screen-app-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s var(--ease-sacred);
}
.app-gesture-pill { width: 72px; height: 3.5px; border-radius: 999px; background: var(--device-gesture); }

/* Adapt phone bezel chrome to page theme whenever a static HTML preview panel is active */
.device--explorer:not([data-active-panel="jadwal"]):not([data-active-panel="miqat"]):not([data-active-panel="rukun"]):not([data-active-panel="quran"]) .device-screen--app,
.device--explorer:not([data-active-panel="jadwal"]):not([data-active-panel="miqat"]):not([data-active-panel="rukun"]):not([data-active-panel="quran"]) .app-safe-top,
.device--explorer:not([data-active-panel="jadwal"]):not([data-active-panel="miqat"]):not([data-active-panel="rukun"]):not([data-active-panel="quran"]) .app-screen-stack,
.device--explorer:not([data-active-panel="jadwal"]):not([data-active-panel="miqat"]):not([data-active-panel="rukun"]):not([data-active-panel="quran"]) .app-safe-bottom {
  background: var(--bg-canvas);
}
[data-theme="dark"] .device--explorer:not([data-active-panel="jadwal"]):not([data-active-panel="miqat"]):not([data-active-panel="rukun"]):not([data-active-panel="quran"]) .app-gesture-pill {
  background: var(--hairline);
}

.explorer-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  z-index: 1;
  transition: opacity 0.34s var(--ease-sacred), transform 0.34s var(--ease-sacred);
}
.explorer-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 2;
}
.app-screen-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Interactive In-Phone UI Screens */
.phone-ui {
  height: 100%;
  padding: 14px 13px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-canvas);
  color: var(--ink-primary);
  overflow-y: auto;
  scrollbar-width: none;
}
.phone-ui::-webkit-scrollbar { display: none; }

.phone-ui-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--hairline);
}
.phone-kicker {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 2px;
}
.phone-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink-primary);
}
.phone-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold-subtle);
  color: var(--gold-ink);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.phone-offline-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--emerald-subtle);
  color: var(--emerald);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.phone-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.42;
  color: var(--ink-secondary);
}

/* In-Phone Checklist (Static Preview) */
.phone-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.phone-check-item {
  width: 100%;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--ink-primary);
  font-size: 0.76rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
}
.phone-check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-subtle);
  background: transparent;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}
.phone-check-item.is-checked {
  background: var(--surface-elevated);
  border-color: var(--gold-decor);
}
.phone-check-item.is-checked .phone-check-box {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--surface);
}
[data-theme="dark"] .phone-check-item.is-checked .phone-check-box {
  color: var(--on-gold);
}
.phone-check-item.is-checked .phone-check-label {
  color: var(--ink-secondary);
  text-decoration: line-through;
}

/* In-Phone Prayer Times & Qibla (Static Preview) */
.phone-seg-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.phone-seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius-sm) - 4px);
  min-height: 40px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}
.phone-seg-btn.is-active {
  background: var(--ink-primary);
  color: var(--bg-canvas);
}
[data-theme="dark"] .phone-seg-btn.is-active {
  background: var(--gold-decor);
  color: var(--on-gold);
}
.phone-prayer-next {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--gold-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.phone-prayer-next-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--gold-ink);
}
.phone-prayer-next-time {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-primary);
}
.phone-prayer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.phone-prayer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.76rem;
  color: var(--ink-secondary);
}
.phone-prayer-row.is-next {
  font-weight: 800;
  color: var(--ink-primary);
}

/* In-Phone Titip Doa Card */
.phone-doa-card {
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone-doa-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-primary);
}
.phone-doa-spot {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-subtle);
  color: var(--gold-ink);
  font-size: 0.6875rem;
  font-weight: 700;
}
.phone-doa-quote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-primary);
}
.phone-doa-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
}
.phone-link-pill {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface-elevated);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-align: center;
}

/* In-Phone Emergency Card (Hairline only — no thick side border) */
.phone-emergency-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--hairline);
}
.phone-emergency-ar {
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink-primary);
}
.phone-emergency-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
}
.phone-emergency-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.phone-emergency-row + .phone-emergency-row {
  padding-top: 9px;
  border-top: 1px solid var(--hairline);
}
.phone-emergency-row dt {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.phone-emergency-row dd {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-primary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.phone-emergency-val-ar {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-secondary);
  line-height: 1.5;
}
.phone-emergency-note {
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.phone-emergency-help-ar {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-primary);
  text-align: right;
}

/* Explorer Right Column Accordion */
.explorer-accordion {
  display: flex;
  flex-direction: column;
}
.explorer-item {
  border-top: 1px solid var(--hairline);
}
.explorer-item:last-child {
  border-bottom: 1px solid var(--hairline);
}
.explorer-trigger {
  appearance: none;
  width: 100%;
  min-height: 54px;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-family: inherit;
  text-align: left;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: color 0.18s ease;
}
.explorer-trigger:hover { color: var(--ink-primary); }
.explorer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--ink-secondary);
  opacity: 0.72;
  transition: color 0.18s ease, opacity 0.18s ease;
}
.explorer-title {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.32;
}
.explorer-chevron {
  color: var(--ink-muted);
  transition: transform 0.25s var(--ease-sacred), color 0.18s ease;
}
.explorer-item.is-active .explorer-trigger {
  color: var(--ink-primary);
}
.explorer-item.is-active .explorer-icon {
  color: var(--ink-primary);
  opacity: 1;
}
.explorer-item.is-active .explorer-title {
  font-weight: 700;
}
.explorer-item.is-active .explorer-chevron {
  transform: rotate(180deg);
  color: var(--gold-ink);
}
.explorer-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease-sacred);
}
.explorer-item.is-active .explorer-body {
  grid-template-rows: 1fr;
}
.explorer-body-inner {
  overflow: hidden;
}
.explorer-desc {
  margin: 0 0 14px;
  padding-left: 38px;
  padding-right: 12px;
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--ink-secondary);
}

@media (min-width: 960px) {
  .explorer-grid {
    display: grid;
    grid-template-columns: minmax(210px, 0.82fr) auto minmax(340px, 1.18fr);
    gap: clamp(28px, 3.6vw, 54px);
    align-items: start;
    width: 100%;
  }
  .explorer-intro {
    text-align: left;
    position: sticky;
    top: 108px;
    padding-top: 24px;
  }
  .explorer-intro .eyebrow { justify-content: flex-start; }
  .explorer-intro .section-subcopy { margin: 0; }
  .explorer-cta { justify-content: flex-start; }
  .explorer-device-col {
    position: sticky;
    top: clamp(88px, calc(76px + 2.4vh), 108px);
  }
  .device--explorer {
    width: clamp(228px, calc((100svh - 128px) * 0.445), 286px);
  }
  .explorer-accordion {
    padding-top: 10px;
  }
}

@media (min-width: 960px) and (max-height: 760px) {
  .explorer-intro {
    top: 92px;
    padding-top: 16px;
  }
  .explorer-accordion {
    padding-top: 4px;
  }
  .device--explorer {
    padding: 8px;
    border-radius: 38px;
  }
  .device--explorer .device-screen {
    border-radius: 31px;
  }
  .device--explorer .device-camera {
    top: 9px;
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
  }
  .device--explorer .device-btn--power {
    top: 120px;
    height: 54px;
  }
  .device--explorer .device-btn--vol {
    top: 196px;
    height: 80px;
  }
  .device--explorer .app-safe-top {
    height: 18px;
    flex-basis: 18px;
  }
  .device--explorer .app-safe-bottom {
    height: 12px;
    flex-basis: 12px;
  }
  .device--explorer .phone-ui {
    padding: 10px 10px 8px;
    gap: 6px;
  }
  .device--explorer .phone-ui-head {
    padding-bottom: 6px;
  }
  .device--explorer .phone-title {
    font-size: 1.02rem;
  }
  .device--explorer .phone-checklist {
    gap: 5px;
  }
  .device--explorer .phone-check-item {
    min-height: 36px;
    padding: 5px 8px;
  }
  .device--explorer .phone-seg-btn {
    min-height: 36px;
  }
  .device--explorer .phone-prayer-next {
    padding: 8px 10px;
  }
  .device--explorer .phone-prayer-row {
    padding: 4px 2px;
  }
  .device--explorer .phone-doa-card {
    padding: 10px;
    gap: 6px;
  }
  .device--explorer .phone-emergency-head {
    padding-bottom: 6px;
  }
  .device--explorer .phone-emergency-dl {
    padding: 9px 10px;
    gap: 7px;
  }
  .device--explorer .phone-emergency-row + .phone-emergency-row {
    padding-top: 7px;
  }
  .device--explorer .phone-emergency-note {
    padding: 8px 9px;
  }
  .explorer-trigger {
    min-height: 46px;
    padding: 8px 4px;
  }
  .explorer-desc {
    margin: 0 0 11px;
    font-size: 0.88rem;
    line-height: 1.5;
  }
}

/* ==========================================================================
   4. NIAT & LANDASAN KAMI (#niat — HADIS KHAIRUNNAS ANFA'UHUM LINNAS)
   ========================================================================== */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.mission-quote {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.1vw, 2.65rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-secondary);
  margin: 0 0 12px;
  text-wrap: balance;
}
.mission-quote em {
  font-style: italic;
  color: var(--ink-primary);
}
.mission-cite {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 18px;
}
.mission-lead {
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 0;
  max-width: 50ch;
}
.mission-calligraphy {
  padding: clamp(24px, 3.6vw, 40px) clamp(18px, 3vw, 32px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.mission-arabic {
  margin: 0;
  font-size: clamp(2.05rem, 3.4vw, 3.05rem);
  line-height: 1.75;
  color: var(--ink-primary);
}

@media (min-width: 900px) {
  .mission-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(32px, 5vw, 72px);
  }
}

/* ==========================================================================
   5. AMANAH & PRIVASI (#amanah — HAIRLINE EDITORIAL, TANPA KARTU)
   ========================================================================== */
.amanah-editorial { display: flex; flex-direction: column; gap: 0; }
.amanah-head { margin-bottom: 14px; }
.amanah-head .section-heading { margin-bottom: 0; }
.amanah-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.amanah-col { padding: 14px 0; }
.amanah-col + .amanah-col { border-top: 1px solid var(--hairline); }
.amanah-folio {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-ink);
}
.amanah-col h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: clamp(1.2rem, 1.7vw, 1.45rem); font-weight: 600; line-height: 1.2; color: var(--ink-primary); }
.amanah-col p { margin: 0; font-size: 0.9rem; line-height: 1.52; color: var(--ink-secondary); }
.amanah-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 12px;
}
.amanah-seal {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.amanah-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.amanah-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 4px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
.amanah-links a:hover,
.amanah-links a:focus-visible {
  color: var(--gold-ink);
  text-decoration-color: currentColor;
}
.amanah-sep {
  color: var(--ink-muted);
  opacity: 0.7;
}

@media (min-width: 768px) {
  .amanah-head { margin-bottom: 20px; }
  .amanah-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .amanah-col { padding: 22px 28px 22px 0; }
  .amanah-col + .amanah-col { border-top: 0; border-left: 1px solid var(--hairline); padding-left: 28px; }
  .amanah-col:last-child { padding-right: 0; }
  .amanah-foot { margin-top: 16px; }
}

/* ==========================================================================
   6. DUKUNGAN KEBERLANGSUNGAN (#dukungan — HAIRLINE EDITORIAL, TANPA KARTU)
   ========================================================================== */
.support-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.support-aside {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.support-action-note {
  margin: 0;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-secondary);
}
.support-actions {
  display: flex;
  width: 100%;
}
.support-actions .btn-lg {
  width: 100%;
}

@media (min-width: 900px) {
  .support-editorial {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(32px, 5vw, 72px);
  }
  .support-aside {
    border-top: 0;
    border-left: 1px solid var(--hairline);
    padding: 6px 0 6px clamp(28px, 4vw, 48px);
  }
  .support-actions {
    width: auto;
  }
  .support-actions .btn-lg {
    width: auto;
  }
}

/* ==========================================================================
   7. TANYA JAWAB / FAQ (#faq — 2 KOLOM HAIRLINE, TANPA KARTU)
   ========================================================================== */
.faq-layout { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 900px) { .faq-layout { grid-template-columns: 5fr 7fr; gap: 56px; } }
.faq-intro .section-subcopy { margin-bottom: 0; }
@media (min-width: 900px) { .faq-intro { position: sticky; top: 108px; } }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--hairline); }
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-trigger {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  min-height: 48px;
  padding: 12px 0;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.38;
  text-align: left;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: color 0.18s ease;
}
.faq-trigger:hover,
.faq-item.is-open .faq-trigger { color: var(--ink-primary); }
.faq-chevron { flex: 0 0 18px; color: var(--ink-muted); transition: transform 0.25s var(--ease-sacred), color 0.18s ease; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); color: var(--gold-ink); }
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease-sacred);
}
.faq-item.is-open .faq-body {
  grid-template-rows: 1fr;
}
.faq-body-inner {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.22s var(--ease-sacred);
}
.faq-item.is-open .faq-body-inner {
  opacity: 1;
}
.faq-answer { padding: 0 28px 14px 0; margin: 0; font-size: 0.9375rem; color: var(--ink-secondary); line-height: 1.6; }

/* ==========================================================================
   8. CLOSING HARAMAIN CTA (#rilis — ADAPTIVE DAYLIGHT <-> NOCTURNAL)
   ========================================================================== */
.band-closing-cta {
  position: relative;
  padding: clamp(2.75rem, 4.5vw, 3.85rem) 0;
  background-color: var(--hero-surface);
  color: var(--hero-ink);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
  text-align: center;
  transition: background-color 0.45s var(--ease-sacred), color 0.35s var(--ease-sacred);
}
.closing-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.closing-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.closing-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 82% at 50% 50%, rgba(var(--hero-veil-rgb), 0.88) 0%, rgba(var(--hero-veil-rgb), 0.52) 100%);
  transition: background 0.45s var(--ease-sacred);
}
[data-theme="dark"] .closing-vignette {
  background: radial-gradient(ellipse 64% 80% at 50% 50%, rgba(var(--hero-veil-rgb), 0.82) 0%, rgba(var(--hero-veil-rgb), 0.62) 100%);
}
.closing-arches {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(560px, 92vw);
  height: auto;
  transform: translate(-50%, -48%);
  stroke: var(--gold-decor);
  stroke-width: 1;
  fill: none;
  opacity: 0.28;
}
.closing-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.closing-inner .eyebrow { justify-content: center; color: var(--hero-accent-ink); }
.closing-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--hero-ink);
  text-wrap: balance;
}
.closing-lead { max-width: 50ch; margin: 0 0 22px; font-size: var(--step-0); line-height: 1.6; color: var(--hero-ink-muted); }
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
@media (max-width: 520px) {
  .closing-actions { flex-direction: column; width: 100%; }
  .closing-actions .btn-lg { width: 100%; }
}
.store-soon-badge { gap: 10px; }
div.store-soon-badge { cursor: default; }
div.store-soon-badge:hover { transform: none; filter: none; }
.store-soon-icon { color: currentColor; flex-shrink: 0; }
.closing-support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hero-ink-muted);
  text-decoration: underline;
  text-decoration-color: var(--hero-rule);
  text-underline-offset: 4px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
.closing-support-link:hover,
.closing-support-link:focus-visible {
  color: var(--hero-accent-ink);
  text-decoration-color: currentColor;
}

/* ==========================================================================
   9. FOOTER (3 KOLOM ADAPTIVE LIGHT / NOCTURNAL, DIPISAH HAIRLINE)
   ========================================================================== */
.luxury-footer {
  background: var(--bg-canvas);
  color: var(--ink-secondary);
  padding: 32px 0 28px;
  border-top: 1px solid var(--hairline);
  transition: background-color 0.35s var(--ease-sacred), color 0.35s var(--ease-sacred), border-color 0.35s var(--ease-sacred);
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; align-items: start; }
.footer-brand-block { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-brand-block .brand-logo { height: 28px; width: auto; }
.footer-tagline { margin: 0; max-width: 36ch; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-secondary); }
.footer-copy { margin: 4px 0 0; font-size: 0.8125rem; color: var(--ink-muted); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-col-title { margin: 0 0 8px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.footer-col a { display: inline-flex; align-items: center; min-height: 38px; font-size: 0.9375rem; font-weight: 500; color: var(--ink-primary); transition: color 0.18s ease; }
.footer-col a:hover { color: var(--gold-ink); }

@media (min-width: 820px) {
  .luxury-footer { padding: 40px 0 32px; }
  .footer-grid { grid-template-columns: 1fr auto auto; gap: 40px 64px; }
  .footer-brand-block { grid-column: auto; }
  .footer-tagline { max-width: none; }
  .footer-col { gap: 6px; }
  .footer-col-title { margin: 0 0 6px; }
  .footer-col a { min-height: auto; padding: 3px 0; line-height: 1.45; }
}

/* Scroll Reveal (Progressive Enhancement) */
.reveal { opacity: 1; transform: none; transition: opacity 0.36s var(--ease-sacred), transform 0.36s var(--ease-sacred); }
.reveal.is-pending { opacity: 1; transform: translateY(6px); }

@media (prefers-reduced-motion: reduce) {
  .hero-layer,
  .explorer-panel,
  .explorer-chevron,
  .explorer-body,
  .faq-chevron,
  .faq-body,
  .faq-body-inner { transition: none !important; animation: none !important; transform: none !important; }
  .reveal,
  .reveal.is-pending { opacity: 1 !important; transform: none !important; }
}
