:root {
  color-scheme: dark;
  --bg: #08110f;
  --bg-2: #0d1c19;
  --ink: #f6f2e8;
  --muted: #a9b9b3;
  --soft: rgba(246, 242, 232, 0.72);
  --line: rgba(246, 242, 232, 0.14);
  --panel: rgba(14, 28, 25, 0.78);
  --panel-strong: rgba(18, 38, 34, 0.94);
  --emerald: #42d19b;
  --aqua: #5bd6e8;
  --gold: #f0bf55;
  --coral: #ff806c;
  --violet: #9d8cff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 6%, rgba(66, 209, 155, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(91, 214, 232, 0.12), transparent 32rem),
    linear-gradient(135deg, var(--bg), #0b161b 46%, var(--bg-2));
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

.app-header {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: clamp(14px, 4vw, 48px);
  right: clamp(14px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 14, 12, 0.64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(66, 209, 155, 0.5);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(66, 209, 155, 0.24), rgba(91, 214, 232, 0.12));
  color: var(--emerald);
  font-size: 0.82rem;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.nav {
  display: flex;
  gap: clamp(12px, 2.5vw, 28px);
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 750;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: end;
  padding: 122px clamp(18px, 5vw, 72px) 58px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 17, 15, 0.94), rgba(8, 17, 15, 0.58), rgba(8, 17, 15, 0.18)),
    linear-gradient(0deg, rgba(8, 17, 15, 0.96), rgba(8, 17, 15, 0.16) 58%),
    url("https://images.unsplash.com/photo-1609599006353-e629aaabfeae?auto=format&fit=crop&w=1900&q=84") center / cover;
  filter: saturate(1.1);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 380px);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.15rem, 8vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.05rem, 4.7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-copy p {
  max-width: 660px;
  color: rgba(246, 242, 232, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.hero-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(246, 242, 232, 0.16);
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(246, 242, 232, 0.86);
  background: rgba(246, 242, 232, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-actions,
.signup div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.signup button,
.ghost-button,
.close-dialog,
.tool-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 850;
  cursor: pointer;
}

.button.primary,
.signup button {
  color: #07100e;
  background: linear-gradient(135deg, var(--emerald), var(--aqua));
  box-shadow: 0 18px 40px rgba(66, 209, 155, 0.24);
}

.button.glass,
.ghost-button,
.close-dialog {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(246, 242, 232, 0.08);
}

.hero-panel,
.score-card,
.habit-check,
.module-card,
.detail-layout,
.roadmap,
.signup,
.tool-panel,
.atlas-panel,
.module-dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  position: relative;
  min-height: 360px;
  display: grid;
  align-content: space-between;
  padding: 24px;
  overflow: hidden;
}

.orbit-field {
  position: absolute;
  inset: 32px 26px auto auto;
  width: 210px;
  height: 210px;
  opacity: 0.9;
}

.orbit-field span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(66, 209, 155, 0.36);
  border-radius: 50%;
}

.orbit-field span:nth-child(2) {
  inset: 24px;
  border-color: rgba(91, 214, 232, 0.32);
}

.orbit-field span:nth-child(3) {
  inset: 48px;
  border-color: rgba(240, 191, 85, 0.34);
}

.orbit-field strong {
  position: absolute;
  inset: 72px 0 auto;
  color: var(--gold);
  font-size: 2rem;
  text-align: center;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.panel-topline strong {
  color: var(--emerald);
  font-size: 2rem;
}

.mini-ring {
  width: min(220px, 86%);
  margin: 0 auto;
}

.mini-ring svg {
  width: 100%;
  transform: rotate(-90deg);
}

.ring-track,
.ring-value {
  fill: none;
  stroke-width: 10;
}

.ring-track {
  stroke: rgba(246, 242, 232, 0.12);
}

.ring-value {
  stroke: var(--emerald);
  stroke-linecap: round;
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
  transition: stroke-dashoffset 220ms ease;
}

.console,
.library,
.deep-dive,
.prayer-map,
.world-tools,
.knowledge-atlas,
.roadmap,
.civilization,
.principles {
  margin: 0 clamp(18px, 5vw, 72px);
}

.console,
.library,
.deep-dive,
.prayer-map,
.world-tools,
.knowledge-atlas,
.civilization,
.principles {
  padding: 76px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading.wide {
  max-width: 1120px;
}

.section-heading p,
.deep-header p,
.roadmap p,
.principle-panel p,
.layer-card p,
.module-card p,
.habit-check span,
.score-card p,
.hero-panel p,
.content-card p,
.atlas-panel p,
.fine-print,
.status-line,
.pathway-list span,
.source-list,
.modal-meta {
  color: var(--muted);
}

.world-tools,
.knowledge-atlas {
  scroll-margin-top: 96px;
}

.tools-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.22fr) minmax(280px, 0.78fr);
  gap: 16px;
}

.tool-panel,
.atlas-panel {
  padding: clamp(20px, 3vw, 28px);
}

.tool-head {
  display: flex;
  gap: 14px;
  align-items: start;
  margin-bottom: 20px;
}

.tool-head > span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(240, 191, 85, 0.44);
  border-radius: 14px;
  color: var(--gold);
  background: rgba(240, 191, 85, 0.11);
  font-weight: 950;
}

.tool-head h3,
.atlas-panel h3 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.05;
}

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

.prayer-form label,
.atlas-search {
  min-width: 0;
}

.prayer-form label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.prayer-form input,
.prayer-form select,
.atlas-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(246, 242, 232, 0.08);
  outline: none;
}

.prayer-form input:focus,
.prayer-form select:focus,
.atlas-search input:focus {
  border-color: rgba(91, 214, 232, 0.58);
  box-shadow: 0 0 0 4px rgba(91, 214, 232, 0.1);
}

.tool-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compact-actions {
  margin-top: 12px;
}

.status-line {
  min-height: 26px;
  margin-top: 16px;
  font-size: 0.94rem;
}

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

.time-card {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(246, 242, 232, 0.06);
}

.time-card span,
.time-card strong {
  display: block;
}

.time-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.time-card strong {
  margin-top: 10px;
  color: var(--emerald);
  font-size: 1.65rem;
  line-height: 1;
}

.qibla-tool {
  display: grid;
  align-content: start;
}

.qibla-compass {
  display: grid;
  place-items: center;
  min-height: 300px;
}

.compass-ring {
  position: relative;
  width: min(260px, 78vw);
  aspect-ratio: 1;
  border: 1px solid rgba(91, 214, 232, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(66, 209, 155, 0.18), transparent 52%),
    conic-gradient(from 0deg, rgba(91, 214, 232, 0.22), rgba(240, 191, 85, 0.2), rgba(66, 209, 155, 0.18), rgba(91, 214, 232, 0.22));
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.32);
}

.compass-ring span,
.compass-ring strong {
  position: absolute;
  display: grid;
  place-items: center;
}

.compass-ring span {
  color: var(--soft);
  font-weight: 950;
}

.compass-ring span:nth-child(1) {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.compass-ring span:nth-child(2) {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.compass-ring span:nth-child(3) {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.compass-ring span:nth-child(4) {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.compass-ring strong {
  inset: 44px;
  color: var(--gold);
  font-size: 6rem;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 320ms ease;
  transform-origin: center;
}

.qibla-readout {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(246, 242, 232, 0.06);
}

.qibla-readout strong {
  color: var(--gold);
  font-size: 1.5rem;
}

.qibla-readout span {
  color: var(--muted);
}

.fine-print {
  margin: 14px 0 0;
  font-size: 0.88rem;
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.atlas-search {
  display: flex;
  gap: 10px;
  margin: 18px 0 16px;
}

.resource-row,
.bridge-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.resource-row a,
.bridge-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--soft);
  background: rgba(246, 242, 232, 0.07);
  font-size: 0.82rem;
  font-weight: 820;
}

.resource-row a:hover {
  border-color: rgba(91, 214, 232, 0.42);
  color: var(--ink);
}

.history-panel,
.philosophy-panel {
  min-height: 410px;
}

.pathway-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.pathway-list div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(246, 242, 232, 0.055);
}

.pathway-list strong,
.pathway-list span {
  display: block;
}

.pathway-list strong {
  margin-bottom: 5px;
  color: var(--ink);
}

.bridge-tags {
  margin: 18px 0 2px;
}

.civilization {
  scroll-margin-top: 96px;
}

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

.layer-card {
  position: relative;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(246, 242, 232, 0.08), rgba(246, 242, 232, 0.025)),
    rgba(14, 28, 25, 0.82);
  box-shadow: var(--shadow);
}

.layer-card::before {
  position: absolute;
  inset: -80px -90px auto auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  content: "";
  background: rgba(66, 209, 155, 0.13);
}

.layer-card:nth-child(2)::before {
  background: rgba(91, 214, 232, 0.13);
}

.layer-card:nth-child(3)::before {
  background: rgba(240, 191, 85, 0.14);
}

.layer-card:nth-child(4)::before {
  background: rgba(255, 128, 108, 0.13);
}

.layer-card:nth-child(5)::before {
  background: rgba(157, 140, 255, 0.13);
}

.layer-card span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 54px;
  border: 1px solid rgba(66, 209, 155, 0.42);
  border-radius: 18px;
  color: var(--emerald);
  background: rgba(66, 209, 155, 0.12);
  font-weight: 950;
}

.layer-card:nth-child(2) span {
  border-color: rgba(91, 214, 232, 0.42);
  color: var(--aqua);
  background: rgba(91, 214, 232, 0.12);
}

.layer-card:nth-child(3) span {
  border-color: rgba(240, 191, 85, 0.42);
  color: var(--gold);
  background: rgba(240, 191, 85, 0.12);
}

.layer-card:nth-child(4) span {
  border-color: rgba(255, 128, 108, 0.42);
  color: var(--coral);
  background: rgba(255, 128, 108, 0.12);
}

.layer-card:nth-child(5) span {
  border-color: rgba(157, 140, 255, 0.42);
  color: var(--violet);
  background: rgba(157, 140, 255, 0.12);
}

.layer-card h3 {
  font-size: 1.55rem;
}

.principles {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1fr);
  gap: 16px;
}

.principle-panel,
.principle-list {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.principle-panel {
  padding: clamp(24px, 4vw, 40px);
}

.principle-list {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.principle-list div {
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.principle-list div:last-child {
  border-bottom: 0;
}

.principle-list strong,
.principle-list span {
  display: block;
}

.principle-list strong {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.08rem;
}

.principle-list span {
  color: var(--muted);
}

.section-heading.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.search {
  width: min(100%, 360px);
}

.search span,
.signup label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.search input,
.signup input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(246, 242, 232, 0.08);
  outline: none;
}

.search input:focus,
.signup input:focus {
  border-color: rgba(91, 214, 232, 0.58);
  box-shadow: 0 0 0 4px rgba(91, 214, 232, 0.1);
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.46fr) minmax(320px, 1fr);
  gap: 16px;
}

.score-card {
  min-height: 410px;
  display: grid;
  align-content: space-between;
  padding: 24px;
}

.score {
  display: block;
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 950;
  line-height: 0.92;
  color: var(--emerald);
}

.progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(246, 242, 232, 0.1);
}

.progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--emerald), var(--aqua), var(--gold));
  transition: width 220ms ease;
}

.habit-stack {
  display: grid;
  gap: 12px;
}

.habit-check {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.habit-check:hover {
  transform: translateY(-2px);
  border-color: rgba(66, 209, 155, 0.42);
  background: rgba(25, 52, 46, 0.84);
}

.habit-check input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  accent-color: var(--emerald);
}

.habit-check strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.04rem;
}

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

.module-card {
  min-height: 276px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  text-align: left;
  cursor: pointer;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 214, 232, 0.44);
  background: var(--panel-strong);
}

.module-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.module-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  color: #07100e;
  background: var(--emerald);
  font-size: 0.74rem;
  font-weight: 900;
}

.module-kicker small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.module-card h3 {
  font-size: 1.45rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 750;
}

.deep-dive {
  scroll-margin-top: 96px;
}

.deep-header {
  max-width: 880px;
  margin-bottom: 26px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
}

.detail-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
}

.tab {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}

.tab.active,
.tab:hover {
  border-color: rgba(66, 209, 155, 0.36);
  color: var(--ink);
  background: rgba(66, 209, 155, 0.12);
}

.detail-panel {
  padding: clamp(22px, 4vw, 42px);
}

.detail-panel h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: rgba(246, 242, 232, 0.06);
}

.content-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
}

.content-card ul,
.module-body ul,
.source-list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.content-card li,
.module-body li {
  margin: 8px 0;
}

.source-list {
  margin-top: 22px;
  font-size: 0.9rem;
}

.source-list a {
  color: var(--aqua);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prayer-map {
  padding-top: 34px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}

.timeline button {
  min-height: 190px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 20px;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.timeline button:last-child {
  border-right: 0;
}

.timeline button:hover {
  background: rgba(66, 209, 155, 0.1);
}

.timeline span,
.timeline strong {
  display: block;
}

.timeline span {
  margin-bottom: 44px;
  color: var(--emerald);
  font-weight: 950;
}

.timeline strong {
  color: var(--soft);
  font-size: 0.96rem;
}

.roadmap {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 0.72fr);
  gap: 28px;
  align-items: center;
  margin-top: 54px;
  margin-bottom: 76px;
  padding: clamp(22px, 4vw, 38px);
}

.signup {
  padding: 18px;
  box-shadow: none;
  background: rgba(246, 242, 232, 0.06);
}

.signup input {
  flex: 1 1 210px;
  min-width: 0;
}

.form-message {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--emerald);
}

.module-dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  padding: 0;
  color: var(--ink);
  overflow: auto;
}

.module-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.close-dialog {
  position: sticky;
  top: 14px;
  z-index: 2;
  float: right;
  margin: 14px;
}

.module-body {
  padding: 34px;
}

.module-body h2 {
  max-width: 720px;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 30px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.footer-links a:hover,
.policy-back:hover {
  color: var(--ink);
}

.ad-slot {
  display: none;
  margin: 0 clamp(18px, 5vw, 72px);
}

.ads-ready .ad-slot {
  display: block;
  min-height: 120px;
}

.policy-page {
  min-height: 100vh;
}

.policy-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.policy-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--soft);
  font-weight: 900;
}

.policy-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.policy-card {
  padding: clamp(24px, 5vw, 46px);
}

.policy-card h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.policy-card h2 {
  margin-top: 32px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.policy-card p {
  color: var(--soft);
}

.contact-card {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  padding: 18px;
}

.contact-card strong {
  color: var(--gold);
}

.contact-card span {
  color: var(--soft);
}

@media (max-width: 980px) {
  .app-header {
    position: absolute;
  }

  .nav {
    display: none;
  }

  .hero-shell,
  .console-grid,
  .detail-layout,
  .roadmap,
  .principles,
  .tools-grid,
  .atlas-grid {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline button {
    min-height: 132px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline button:last-child {
    border-bottom: 0;
  }

  .timeline span {
    margin-bottom: 14px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 92vh;
    padding-top: 112px;
  }

  .hero-actions .button {
    flex: 1 1 210px;
  }

  .hero-panel {
    min-height: 310px;
    padding: 22px;
  }

  .orbit-field {
    inset: 48px 18px auto auto;
    width: 176px;
    height: 176px;
    opacity: 0.72;
  }

  .orbit-field strong {
    inset: 60px 0 auto;
    font-size: 1.65rem;
  }

  .panel-topline {
    position: relative;
    z-index: 2;
  }

  .panel-topline strong {
    font-size: 1.65rem;
  }

  .mini-ring {
    position: relative;
    z-index: 1;
    width: min(150px, 56vw);
    margin: 20px auto 12px;
  }

  .ring-track,
  .ring-value {
    stroke-width: 7;
  }

  .hero-panel p {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    font-size: 1rem;
  }

  h1 {
    font-size: 3.25rem;
  }

  .section-heading.split {
    display: block;
  }

  .search {
    margin-top: 18px;
  }

  .module-grid,
  .content-grid,
  .detail-tabs,
  .layer-grid,
  .prayer-form,
  .times-grid {
    grid-template-columns: 1fr;
  }

  .atlas-search {
    display: grid;
  }

  .score-card {
    min-height: 320px;
  }

  .module-body {
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
  }
}
