:root {
  --bg: #fbfaff;
  --bg-elevated: #ffffff;
  --bg-soft: #f4f2ff;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --surface-solid: #ffffff;
  --text: #1a191e;
  --text-soft: #4a4950;
  --muted: #7a7985;
  --line: rgba(124, 58, 237, 0.08);
  --line-strong: rgba(124, 58, 237, 0.16);
  --accent: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.1);
  --accent-strong: #6d28d9;
  --warning: #b7791f;
  --danger: #b42318;
  --nav-bg: rgba(251, 250, 255, 0.8);
  --button: #7c3aed;
  --button-text: #ffffff;
  --shadow-sm: 0 1px 2px rgba(124, 58, 237, 0.04), 0 10px 24px rgba(124, 58, 237, 0.04);
  --shadow-md: 0 18px 44px rgba(124, 58, 237, 0.08);
  --shadow-lg: 0 34px 90px rgba(124, 58, 237, 0.12);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --nav-h: 68px;
  --font: "Instrument Sans", "Aptos", "Segoe UI", sans-serif;
  --transition: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

[data-theme="dark"] {
  --bg: radial-gradient(circle at 50% -18%, #6b53d8 0%, #48319d 42%, #28195f 100%);
  --bg-elevated: rgba(74, 51, 158, 0.72);
  --bg-soft: rgba(54, 34, 124, 0.72);
  --surface: rgba(58, 39, 132, 0.72);
  --surface-strong: rgba(70, 49, 152, 0.9);
  --surface-solid: #4b34a3;
  --text: #ffffff;
  --text-soft: #f0ecff;
  --muted: #e3dcfa;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.26);
  --accent: #efe9ff;
  --accent-soft: rgba(255, 255, 255, 0.15);
  --accent-strong: #ffffff;
  --warning: #f0bf61;
  --danger: #ff8a7a;
  --nav-bg: rgba(50, 32, 118, 0.78);
  --button: #fffdfa;
  --button-text: #392283;
  --shadow-sm: 0 2px 4px rgba(18, 10, 52, 0.2), 0 12px 28px rgba(18, 10, 52, 0.22);
  --shadow-md: 0 22px 54px rgba(18, 10, 52, 0.34);
  --shadow-lg: 0 42px 100px rgba(18, 10, 52, 0.48);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 300ms ease, color 300ms ease;
}

/* Theme Transition Animation */
.theme-transitioning,
.theme-transitioning * {
  transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease, box-shadow 400ms ease !important;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.4s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] body {
  background: var(--bg);
  background-attachment: fixed;
}

[data-theme="dark"] .hero-bg {
  background: var(--bg);
}

[data-theme="dark"] ::selection {
  background: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.container {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.36);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 18px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 18px;
}

nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), backdrop-filter var(--transition);
}

nav.scrolled {
  border-bottom-color: var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  box-shadow: 0 8px 26px rgba(20, 20, 20, 0.05);
}

[data-theme="dark"] nav.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  align-items: center;
}

.nav-logo {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-solid);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.nav-links {
  margin-left: 65px;
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

[data-theme="dark"] .nav-links {
  background: transparent;
}

.nav-link {
  border: 0;
  padding: 8px 4px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotIn 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.nav-link--soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-soon {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

@keyframes dotIn {
  from { opacity: 0; transform: translateX(-50%) scale(0); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}

[data-theme="dark"] .nav-link.active {
  background: transparent;
}

.nav-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-dropdown-wrap {
  position: relative;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.menu-toggle:hover,
.menu-toggle.active {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-solid);
}

.icon-settings {
  width: 20px;
  height: 20px;
  transition: transform 400ms ease;
}

.menu-toggle.active .icon-settings {
  transform: rotate(45deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 110;
}

.mega-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-section + .menu-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.menu-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.language-picker {
  position: relative;
}

.current-lang-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.current-lang-btn:hover,
.language-picker.open .current-lang-btn {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-solid);
}

.current-lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.current-lang-arrow {
  position: relative;
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--muted);
  transition: transform var(--transition), color var(--transition);
}

.current-lang-arrow::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.language-picker.open .current-lang-arrow {
  color: var(--text);
  transform: rotate(180deg);
}

.language-options {
  display: grid;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: max-height var(--transition), gap var(--transition), margin-top var(--transition), opacity var(--transition), transform var(--transition);
}

.language-picker.open .language-options {
  gap: 8px;
  max-height: 220px;
  margin-top: 8px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-btn {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-solid);
  color: var(--text);
}

.lang-btn.active {
  display: none;
}

.mega-menu .dark-toggle {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: all var(--transition);
}

.mega-menu .dark-toggle:hover {
  background: var(--surface-solid);
  border-color: var(--line-strong);
  color: var(--text);
}

.dark-toggle-icons {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.dark-toggle-icons svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 450ms ease, transform 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu .dark-toggle span {
  font-size: 14px;
  font-weight: 700;
}


.dark-toggle,
.nav-menu-btn {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.dark-toggle {
  padding: 0;
  position: relative;
}

.dark-toggle svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 450ms ease, transform 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sun-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(180deg) scale(0.5);
  pointer-events: none;
}

.moon-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

[data-theme="dark"] .sun-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  pointer-events: auto;
}

[data-theme="dark"] .moon-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-180deg) scale(0.5);
  pointer-events: none;
}

.dark-toggle:hover,
.nav-menu-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-solid);
}

.nav-menu-btn {
  display: none;
  width: 44px;
  flex-direction: column;
  gap: 5px;
}

.nav-menu-btn span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-cta,
.btn-primary,
.btn-secondary,
.btn-ghost {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms cubic-bezier(0.2, 0, 0.2, 1), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.nav-cta:active,
.btn-primary:active,
.btn-secondary:active,
.btn-ghost:active {
  transform: scale(0.96) translateY(0);
}

.nav-cta,
.btn-primary {
  background: var(--button);
  color: var(--button-text);
  box-shadow: 0 14px 28px rgba(17, 18, 20, 0.16), var(--shadow-sm);
}

.nav-cta {
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

[data-theme="dark"] .nav-cta,
[data-theme="dark"] .btn-primary {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(17, 18, 20, 0.16), var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(17, 18, 20, 0.2), var(--shadow-md);
  background: var(--button);
  color: var(--button-text);
  border-color: transparent;
}

.btn-primary:active {
  transform: scale(0.96) translateY(0);
  background: var(--button);
  color: var(--button-text);
  border-color: transparent;
}

.btn-secondary,
.btn-ghost {
  background: var(--surface-solid);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 15px;
}

.page {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.page.active {
  display: block;
  animation: pageIn 400ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.page-home {
  padding-top: 0;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 12% -8% auto;
  height: 440px;
  background: transparent;
  opacity: 0.7;
}

[data-theme="dark"] .hero-bg::after {
  background: transparent;
}

.hero-inner {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: 70px;
  padding-top: calc(var(--nav-h) + 54px);
  padding-bottom: 92px;
}

.hero-content {
  max-width: 690px;
}

.hero-eyebrow,
.section-label {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
  animation: breathe 2.6s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.78);
    opacity: 0.72;
  }
}

.hero-title-intro,
.hero-title,
.section-title,
.cta-band-title,
.pt-title {
  letter-spacing: -0.045em;
}

.hero-title-intro {
  color: var(--muted);
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 800;
  line-height: 0.98;
}

.hero-title {
  max-width: 12ch;
  margin-top: 2px;
  font-size: clamp(54px, 8.3vw, 124px);
  font-weight: 800;
  line-height: 0.9;
}

.hero-sub {
  max-width: 58ch;
  margin-top: 28px;
  color: var(--text-soft);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-badge .icon {
  width: 16px;
  height: 16px;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.hero-meta-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.hero-meta-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.hero-meta-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hero-mockup-wrap {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-mockup {
  width: min(360px, 100%);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 44px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.6deg);
}

[data-theme="dark"] .phone-mockup {
  background: var(--bg-elevated);
}

.phone-notch {
  width: 72px;
  height: 6px;
  margin: 5px auto 14px;
  border-radius: 999px;
  background: var(--line-strong);
}

.phone-screen {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--bg-elevated);
}

.phone-screen-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phone-next {
  margin-bottom: 14px;
  padding: 24px 20px;
  border-radius: 26px;
  background: var(--button);
  color: var(--button-text);
  box-shadow: 0 18px 44px rgba(17, 18, 20, 0.22);
}

.phone-next small {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-theme="dark"] .phone-next small {
  color: rgba(17, 18, 20, 0.58);
}

.phone-next strong {
  display: block;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.phone-next span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  opacity: 0.72;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.phone-prayer {
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
}

.phone-prayer.active {
  border-color: var(--line-strong);
  background: var(--accent-soft);
}

.phone-prayer span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-prayer b {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.section {
  padding: 104px 0;
}

.section-band {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 253, 0.35);
}

[data-theme="dark"] .section-band {
  background: rgba(255, 255, 255, 0.02);
}

.section-intro {
  text-align: center;
}

.section-intro .section-label,
.faq-section .section-label {
  margin-inline: auto;
}

.section-title {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(38px, 5.2vw, 74px);
  font-weight: 800;
  line-height: 0.98;
}

.section-intro .section-title,
.section-intro .section-sub,
.faq-section .section-title {
  margin-inline: auto;
}

.section-sub {
  max-width: 650px;
  margin-bottom: 44px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
  text-align: left;
}

.feature-card,
.value-card,
.preview-wrap,
.steps-container,
.faq-list,
.about-quote,
.about-contact,
.legal-section,
.pt-search-panel,
.pt-settings,
.pt-next-card,
.pt-card,
.pt-loading,
.pt-error {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: var(--shadow-sm);
}

.feature-card {
  position: relative;
  min-height: 300px;
  padding: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--surface-solid);
  box-shadow: 0 22px 48px rgba(124, 58, 237, 0.12), var(--shadow-md);
}

[data-theme="dark"] .feature-card:hover {
  background: rgba(82, 58, 177, 0.92);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-solid);
}

.feature-icon-wrap-compact {
  width: 44px;
  height: 44px;
  margin: 0;
  flex: 0 0 auto;
}

.feature-card h3,
.value-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.feature-card p,
.value-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.feature-proof {
  margin-top: 20px;
  color: var(--accent) !important;
  font-size: 13px !important;
  font-weight: 800;
}

.steps-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.step {
  position: relative;
  min-height: 280px;
  padding: 42px;
}

.step:not(:last-child) {
  border-right: 1px solid var(--line);
}

.step-num {
  margin-bottom: 54px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.step h3 {
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.step p {
  max-width: 28ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.preview-wrap {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 26px;
  padding: 30px;
  border-radius: var(--radius-xl);
}

.preview-note {
  width: max-content;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

[data-theme="dark"] .preview-note {
  color: var(--accent);
}

.preview-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.preview-copy p:not(.preview-note) {
  color: var(--muted);
  line-height: 1.65;
}

.preview-times-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.preview-card {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-solid);
}

.preview-card.highlight {
  background: var(--button);
  color: var(--button-text);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.preview-card.muted {
  opacity: 0.5;
}

.preview-card-name {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.preview-card.highlight .preview-card-name {
  color: rgba(255, 255, 255, 0.62);
}

[data-theme="dark"] .preview-card.highlight .preview-card-name {
  color: rgba(17, 18, 20, 0.62);
}

.preview-card-time {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.cta-band {
  padding: 92px 0;
}

.cta-band-inner {
  position: relative;
  overflow: hidden;
  padding: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-soft);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .cta-band-inner {
  background: var(--bg-elevated);
}

.cta-band-inner .section-label {
  border-color: var(--line);
  background: var(--accent-soft);
  color: var(--accent);
}

.cta-band-title {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5.6vw, 78px);
  font-weight: 800;
  line-height: 0.96;
}

.cta-band-sub {
  max-width: 520px;
  margin-bottom: 34px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.6;
}

.cta-band .btn-primary {
  background: var(--button);
  color: var(--button-text);
}

.faq-section {
  display: grid;
  justify-items: center;
}

.faq-list {
  width: min(100%, 760px);
  margin-top: 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.faq-question:hover {
  background: rgba(17, 18, 20, 0.035);
}

[data-theme="dark"] .faq-question:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-chevron,
#settings-arrow {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  position: relative;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text);
  transition: transform var(--transition);
}

.faq-chevron::before,
.faq-chevron::after,
#settings-arrow::before,
#settings-arrow::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.faq-chevron::after,
#settings-arrow::after {
  transform: rotate(90deg);
}

.faq-item.open .faq-chevron {
  transform: rotate(45deg);
}

#settings-arrow.open {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  transition: max-height 320ms ease, padding 320ms ease;
}

.faq-item.open .faq-answer {
  max-height: 220px;
  padding-bottom: 24px;
}

.pt-methodology-wrap {
  margin-bottom: 4px;
}

.pt-methodology-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.pt-methodology-link:hover {
  color: var(--accent);
}

.pt-page {
  padding-top: 42px;
  padding-bottom: 96px;
}

.pt-header {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 22px;
  text-align: center;
}

.pt-title {
  margin-bottom: 12px;
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 800;
  line-height: 0.98;
}

.pt-location-label {
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.55;
}

.pt-location-label strong {
  color: var(--text);
}

.pt-hijri {
  margin-top: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pt-lead {
  max-width: 58ch;
  margin-top: 12px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.pt-controls-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 26px;
  max-width: 760px;
  margin-inline: auto;
}

.pt-search-panel,
.pt-settings {
  border-radius: var(--radius-lg);
}

.pt-search-panel {
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.pt-search-copy {
  margin-bottom: 18px;
}

.pt-search-copy h2 {
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.pt-search-copy p {
  color: var(--muted);
  font-size: 15px;
}

.pt-location-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.city-autocomplete-wrap {
  position: relative;
}

.pt-location-input,
.pt-select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform 120ms ease;
}

.pt-location-input {
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
}

.pt-select {
  padding: 0 16px;
  cursor: pointer;
}

.pt-location-input:focus,
.pt-select:focus {
  border-color: var(--accent);
  background: var(--surface-solid);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

[data-theme="dark"] .pt-location-input:focus,
[data-theme="dark"] .pt-select:focus {
  box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 32px rgba(0, 0, 0, 0.24);
}

.pt-search-btn {
  min-height: 54px;
  padding-inline: 24px;
}

.city-suggestions {
  position: absolute;
  inset: calc(100% + 8px) 0 auto;
  z-index: 50;
  display: none;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-md);
}

.city-suggestions.open {
  display: block;
}

.pt-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-soft);
  margin-bottom: 20px;
  border: 1px solid var(--line);
}

.pt-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.pt-tab.active {
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.pt-tab-content {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}

.pt-tab-content.active {
  display: block;
  animation: pt-tab-fade-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pt-tab-fade-in {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.pt-zone-selectors {
  display: grid;
  grid-template-columns: minmax(180px, 230px) 1fr;
  gap: 16px;
  text-align: left;
}

.pt-zone-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pt-zone-group label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 680px) {
  .pt-zone-selectors {
    grid-template-columns: 1fr;
  }
}

.city-suggestion {
  width: 100%;
  display: block;
  padding: 13px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

.city-suggestion.active,
.city-suggestion:hover {
  background: var(--accent-soft);
}



.pt-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.is-hidden {
  display: none !important;
}

.pt-settings {
  position: static;
  overflow: hidden;
}

.pt-settings-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 22px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.pt-settings-title {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pt-settings-summary {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

#settings-arrow {
  width: 32px;
  height: 32px;
}

.pt-settings-body {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 22px;
  overflow: hidden;
  transition: grid-template-rows 400ms cubic-bezier(0.4, 0, 0.2, 1), padding 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pt-settings-body.open {
  grid-template-rows: 1fr;
  padding-bottom: 22px;
}

.pt-settings-inner {
  min-height: 0;
  visibility: hidden;
  display: grid;
  gap: 17px;
  opacity: 0;
  transition: visibility 400ms, opacity 400ms ease;
}

.pt-settings-body.open .pt-settings-inner {
  visibility: visible;
  opacity: 1;
}

.pt-setting-group label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pt-toggle-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
}

.pt-toggle {
  appearance: none;
  width: 46px;
  height: 28px;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.pt-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.pt-toggle:checked {
  border-color: transparent;
  background: var(--accent);
}

.pt-toggle:checked::after {
  transform: translateX(18px);
}

.pt-toggle-label {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
}

.pt-next-card {
  --card-accent: var(--accent);
  --card-accent-end: var(--accent-strong);
  --card-glow: var(--accent-soft);
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
  margin-top: 22px;
  padding: 40px 48px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(25px) saturate(1.8);
  -webkit-backdrop-filter: blur(25px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 20px 50px rgba(124, 58, 237, 0.03), 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  max-width: 760px;
  margin-inline: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  animation: pt-card-entrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pt-next-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 24px 60px rgba(124, 58, 237, 0.08), 
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .pt-next-card {
  background: rgba(30, 20, 75, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 28px 70px rgba(18, 10, 52, 0.45), 
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .pt-next-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 
    0 32px 80px rgba(18, 10, 52, 0.55), 
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Prayer-specific variables for premium dynamic styling */
.pt-next-card.pt-next-fajr {
  --card-accent: #6366f1;
  --card-accent-end: #3b82f6;
  --card-glow: rgba(99, 102, 241, 0.22);
}
.pt-next-card.pt-next-dhuhr {
  --card-accent: #eab308;
  --card-accent-end: #f97316;
  --card-glow: rgba(234, 179, 8, 0.18);
}
.pt-next-card.pt-next-asr {
  --card-accent: #f97316;
  --card-accent-end: #ea580c;
  --card-glow: rgba(249, 115, 22, 0.18);
}
.pt-next-card.pt-next-maghrib {
  --card-accent: #ef4444;
  --card-accent-end: #f43f5e;
  --card-glow: rgba(239, 68, 68, 0.18);
}
.pt-next-card.pt-next-isha {
  --card-accent: #8b5cf6;
  --card-accent-end: #6366f1;
  --card-glow: rgba(139, 92, 246, 0.22);
}

.pt-next-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow) 0%, transparent 70%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
  transition: background 0.4s ease;
}

.pt-next-meta,
.pt-countdown-wrapper {
  position: relative;
  z-index: 1;
}

.pt-next-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pt-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background-color: var(--card-accent, var(--accent));
  box-shadow: 0 0 8px var(--card-accent, var(--accent));
  animation: pulse-dot 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  vertical-align: middle;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.55; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 12px var(--card-accent, var(--accent)); }
  100% { transform: scale(0.9); opacity: 0.55; }
}

.pt-next-name {
  display: block;
  margin-bottom: 2px;
  font-size: clamp(52px, 6.5vw, 78px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--text);
  background: linear-gradient(135deg, var(--text) 30%, var(--card-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background 0.4s ease;
}

[data-theme="dark"] .pt-next-name {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pt-next-time {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 17px;
  font-weight: 650;
  margin-top: 8px;
}

.pt-next-time-icon {
  width: 17px;
  height: 17px;
  opacity: 0.65;
  stroke: var(--card-accent, var(--accent));
  transition: stroke 0.4s ease;
}

.pt-next-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.pt-next-date-separator {
  opacity: 0.5;
  font-size: 10px;
}

.pt-countdown-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pt-countdown-container {
  position: relative;
  width: min(210px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.pt-countdown-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pt-countdown-bg {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 3;
  transition: stroke 0.4s ease;
}

[data-theme="dark"] .pt-countdown-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.pt-countdown-bar {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.4s ease;
  filter: drop-shadow(0 0 2px var(--card-accent));
}

.pt-countdown-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 2px;
}

.pt-countdown-time {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1;
}

.pt-time-val {
  min-width: 1.35em;
  text-align: center;
}

.pt-time-colon {
  opacity: 0.65;
  margin-bottom: 2px;
  font-weight: 500;
  color: var(--card-accent, var(--accent));
  animation: pt-pulse-colon 1.5s infinite alternate ease-in-out;
  transition: color 0.4s ease;
}

@keyframes pt-pulse-colon {
  0% { opacity: 0.25; }
  100% { opacity: 0.85; }
}

.pt-countdown-sublabels {
  display: flex;
  justify-content: space-between;
  width: 76%;
  margin-top: 6px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pt-countdown-sublabels span {
  width: 30%;
  text-align: center;
  white-space: nowrap;
}

.pt-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  max-width: 760px;
  margin-inline: auto;
}

.pt-card {
  min-height: 172px;
  padding: 20px;
  border-radius: 24px;
  transition: transform 120ms cubic-bezier(0.2, 0, 0.2, 1), box-shadow var(--transition), border-color var(--transition), opacity var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pt-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pt-card:active {
  transform: scale(0.97);
}

.pt-card {
  min-height: 160px;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: 
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
    border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
    background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  opacity: 0;
  animation: pt-card-entrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pt-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.pt-card:active {
  transform: scale(0.98);
}

/* Elegant highlight only for the current (live) prayer card */
.pt-card.current {
  border-color: var(--accent);
  background: var(--bg-soft);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

[data-theme="dark"] .pt-card.current {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .feature-card p,
[data-theme="dark"] .value-card p,
[data-theme="dark"] .book-feature-copy p:not(.preview-note),
[data-theme="dark"] .book-card p,
[data-theme="dark"] .step p,
[data-theme="dark"] .preview-copy p:not(.preview-note),
[data-theme="dark"] .pt-lead,
[data-theme="dark"] .footer-tagline,
[data-theme="dark"] .footer-col button,
[data-theme="dark"] .footer-col a {
  color: var(--text-soft);
}

/* Base icon colors (muted by default) */
.pt-card-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

/* Highlight icon for the current card */
.pt-card.current .pt-card-icon {
  stroke: var(--accent);
}

[data-theme="dark"] .pt-card.current .pt-card-icon {
  stroke: #efe9ff;
}

/* Font styling for all cards (clean & consistent) */
.pt-card-name {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.pt-card-time {
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.pt-card-status {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

/* Highlight text colors for the current card */
.pt-card.current .pt-card-name {
  color: var(--text-soft);
}

.pt-card.current .pt-card-status {
  color: var(--accent);
}

[data-theme="dark"] .pt-card.current .pt-card-status {
  color: #efe9ff;
}

.skeleton-hero,
.skeleton-card {
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.skeleton-hero::after,
.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--bg-soft), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.6s infinite;
}

.skeleton-hero {
  height: 284px;
  border-radius: var(--radius-xl);
  max-width: 760px;
  margin-inline: auto;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  max-width: 760px;
  margin-inline: auto;
}

.skeleton-card {
  height: 172px;
  border-radius: 24px;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.pt-loading,
.pt-error {
  padding: 34px;
  border-radius: 24px;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.pt-loading-compact {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.pt-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 16px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 780ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.pt-error {
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.2);
  background: rgba(180, 35, 24, 0.07);
}

.pt-error strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
}

.pt-city-prompt {
  color: var(--muted);
  border-color: var(--line);
  background: var(--surface);
}

.pt-city-prompt p {
  color: var(--muted);
}

.content-page {
  max-width: 820px;
  padding-top: 58px;
  padding-bottom: 104px;
}

.about-arabic {
  color: var(--accent);
  text-align: center;
  font-size: clamp(74px, 10vw, 120px);
  font-weight: 800;
  line-height: 1;
}

.about-transliteration {
  margin: 12px 0 42px;
  color: var(--muted);
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.about-quote {
  margin-bottom: 48px;
  padding: 36px;
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-align: center;
}

.about-section {
  margin-bottom: 46px;
}

.about-section h2,
.legal-section h2 {
  margin-bottom: 16px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.about-section p,
.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.about-section p + p,
.legal-section p + p {
  margin-top: 12px;
}

.values-grid {
  display: grid;
  gap: 14px;
}

.value-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: 22px;
}

.book-page {
  max-width: 980px;
}

.book-header {
  max-width: 720px;
  margin-bottom: 30px;
}

.book-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 28px;
  margin-bottom: 46px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: var(--shadow-md);
}

.book-feature-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.book-feature-copy p:not(.preview-note) {
  max-width: 58ch;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.book-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.book-mark {
  min-height: 240px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--button);
  color: var(--button-text);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.book-mark span,
.book-mark small {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-mark strong {
  margin: 12px 0 6px;
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.book-card {
  display: flex;
  gap: 16px;
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.book-card.muted {
  opacity: 0.76;
}

.book-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.book-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.about-contact {
  padding: 30px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.about-contact a,
.legal-section a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

[data-theme="dark"] .about-contact a,
[data-theme="dark"] .legal-section a {
  color: var(--accent);
}

.legal-section {
  padding-inline: 36px;
  border-radius: var(--radius-xl);
}

.legal-page-title {
  margin-bottom: 28px;
}

.legal-section h2 {
  margin-top: 34px;
}

.legal-section ul {
  padding-left: 20px;
  margin: 14px 0 20px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  background: rgba(255, 255, 253, 0.4);
}

[data-theme="dark"] footer {
  background: rgba(0, 0, 0, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo .logo-mark {
  width: 34px;
  height: 34px;
  font-size: 14px;
  border-radius: 12px;
}

.footer-logo .logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.footer-tagline {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface);
  transition: all var(--transition);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface-solid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.footer-col h4 {
  margin-bottom: 24px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col button,
.footer-col a {
  display: block;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}

.footer-col button:hover,
.footer-col a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.footer-badge {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--surface);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 220;
  max-width: calc(100vw - 32px);
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 800;
  transform: translateX(-50%) translateY(90px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 54px;
    padding-top: calc(var(--nav-h) + 58px);
  }

  .hero-content {
    max-width: none;
    text-align: center;
  }

  .hero-title {
    max-width: none;
  }

  .hero-sub,
  .hero-cta-row,
  .trust-badges {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-mockup-wrap {
    order: -1;
  }

  .pt-grid,
  .skeleton-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--surface-strong);
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  border-top: 1px solid var(--line);
  display: none; /* Hidden by default, shown in media query */
  grid-template-columns: repeat(4, 1fr);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--transition), transform 120ms cubic-bezier(0.2, 0, 0.2, 1);
}

.tab-item.active {
  color: var(--accent);
}

.tab-icon {
  width: 22px;
  height: 22px;
}

.tab-item:active {
  transform: scale(0.92);
}

@media (max-width: 940px) {
  .tab-bar {
    display: grid;
  }
  
  body {
    padding-bottom: 64px;
  }
  
  footer {
    padding-bottom: 84px;
  }

  /* Keep links visible on tablet, hide only the CTA button */
  .nav-right > .nav-cta {
    display: none;
  }

  .nav-inner {
    display: flex;
    gap: 12px;
    padding-inline: 30px;
  }

  .nav-links {
    margin-left: 32px;
    gap: 12px;
  }

  .features-grid,
  .steps-row,
  .preview-wrap,
  .book-feature,
  .book-grid,
  .pt-controls-panel,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-meta-grid {
    grid-template-columns: 1fr;
  }

  .step:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step {
    min-height: auto;
  }

  .preview-times-grid {
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .pt-settings {
    position: static;
  }

  .pt-next-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
    padding: 36px 24px;
  }

  .pt-next-card::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
  }

  .pt-next-time,
  .pt-next-date {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  :root {
    --nav-h: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-inner {
    display: flex;
    justify-content: space-between;
    padding-inline: 18px;
  }

  .mega-menu {
    position: fixed;
    top: auto;
    right: 14px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: 14px;
    width: auto;
    max-height: min(420px, calc(100vh - 132px));
    overflow: auto;
    padding: 18px;
    border-radius: 24px;
    transform: translateY(18px) scale(0.98);
  }

  .mega-menu.open {
    transform: translateY(0) scale(1);
  }

  .current-lang-btn,
  .mega-menu .dark-toggle {
    min-height: 52px;
  }

  .dark-toggle {
    min-width: 42px;
    padding: 0 12px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .logo-text {
    font-size: 21px;
  }

  .hero-inner {
    padding-top: calc(var(--nav-h) + 38px);
    padding-bottom: 70px;
  }

  .phone-mockup {
    width: min(310px, 100%);
    transform: none;
  }

  .hero-title-intro {
    font-size: clamp(36px, 13vw, 58px);
  }

  .hero-title {
    font-size: clamp(48px, 16vw, 74px);
  }

  .hero-sub,
  .section-sub,
  .pt-lead {
    font-size: 16px;
  }

  .section {
    padding: 74px 0;
  }

  .section-title,
  .pt-title,
  .cta-band-title {
    font-size: clamp(36px, 12vw, 54px);
    line-height: 0.98;
  }

  .features-grid {
    margin-top: 32px;
  }

  .feature-card,
  .preview-wrap,
  .cta-band-inner,
  .book-feature,
  .pt-search-panel,
  .pt-settings,
  .pt-next-card,
  .about-quote,
  .about-contact,
  .legal-section {
    border-radius: 24px;
  }

  .feature-card,
  .preview-wrap,
  .cta-band-inner,
  .book-feature,
  .pt-search-panel,
  .pt-next-card,
  .about-quote,
  .about-contact,
  .legal-section {
    padding: 24px;
  }

  .step {
    padding: 28px;
  }

  .step-num {
    margin-bottom: 34px;
  }

  .pt-page,
  .content-page {
    padding-top: 38px;
    padding-bottom: 76px;
  }

  .pt-location-bar {
    grid-template-columns: 1fr;
  }

  .pt-search-btn {
    width: 100%;
  }

  .pt-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .pt-card {
    min-height: 128px;
  }

  .pt-card-icon {
    margin-bottom: 18px;
  }

  .book-mark {
    min-height: 180px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.pt-share-card {
  margin-top: 32px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  max-width: 760px;
  margin-inline: auto;
  text-align: left;
  opacity: 0;
  animation: pt-card-entrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 300ms;
}

.pt-share-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.pt-share-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.pt-share-icon {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
}

.pt-copy-btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
  border-radius: 12px;
}

.pt-share-preview {
  margin: 0;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.04);
  border: 1px dashed var(--line-strong);
  color: var(--text-soft);
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: all;
  text-align: left;
}

[data-theme="dark"] .pt-share-preview {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.pt-coming-soon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: rgba(124, 58, 237, 0.02);
  border: 1px dashed var(--line-strong);
  margin-top: 8px;
}

[data-theme="dark"] .pt-coming-soon-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.pt-coming-soon-icon {
  width: 48px;
  height: 48px;
  stroke: var(--accent);
  margin-bottom: 16px;
  opacity: 0.85;
}

[data-theme="dark"] .pt-coming-soon-icon {
  stroke: #efe9ff;
}

.pt-coming-soon-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.pt-coming-soon-sub {
  font-size: 13px;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.5;
  font-weight: 500;
}

/* Card Entrance Animations */
@keyframes pt-card-entrance {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.pt-grid > .pt-card:nth-child(1) { animation-delay: 40ms; }
.pt-grid > .pt-card:nth-child(2) { animation-delay: 80ms; }
.pt-grid > .pt-card:nth-child(3) { animation-delay: 120ms; }
.pt-grid > .pt-card:nth-child(4) { animation-delay: 160ms; }
.pt-grid > .pt-card:nth-child(5) { animation-delay: 200ms; }
.pt-grid > .pt-card:nth-child(6) { animation-delay: 240ms; }
.pt-grid > .pt-card:nth-child(7) { animation-delay: 280ms; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
