/* Zikrah website. Plain CSS, mobile-first, no build step. */

:root {
  --navy: #111E36;
  --surface: #1C2B42;
  --surface-2: #2B3A50;
  --nav: #1F324F;
  --accent: #88C0F8;
  --gold: #E3CC6E;
  --cream: #C0B8A8;
  --white: #FFFFFF;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --gutter: 20px;
  --max: 1120px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: var(--navy);
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.muted {
  color: var(--cream);
}

.placeholder {
  padding: 1px 6px;
  border: 1px dashed var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

a.placeholder {
  text-decoration: none;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 5;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:focus-visible {
  border-radius: 999px;
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
}

.btn-primary:hover {
  background: #A6D0FA;
  color: var(--navy);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}

.btn-stack small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

.btn-stack span {
  font-size: 17px;
  font-weight: 800;
}

/* ---------- Hero ---------- */

.hero {
  --mw: clamp(720px, 100vw, 1500px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: calc(var(--mw) * 0.36);
}

.hero-media {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: -1;
  width: var(--mw);
  aspect-ratio: 1600 / 893;
  transform: translateX(-50%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The photo fades into the navy page, the way the app's prayer scenes do. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(to bottom, var(--navy) 0%, rgba(17, 30, 54, 0.55) 22%, rgba(17, 30, 54, 0) 46%, rgba(17, 30, 54, 0) 68%, var(--navy) 100%),
    linear-gradient(to right, var(--navy) 0%, rgba(17, 30, 54, 0) 14%, rgba(17, 30, 54, 0) 86%, var(--navy) 100%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 28px;
  text-align: center;
}

.hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.hero-name {
  margin-top: 14px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 14ch;
  margin-top: 14px;
  font-size: clamp(38px, 10.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-pitch {
  max-width: 34em;
  margin-top: 18px;
  color: #E4E0D6;
  font-size: clamp(17px, 2.2vw, 20px);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  color: var(--cream);
  font-size: 14px;
}

/* ---------- Sections ---------- */

.section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(30px, 6vw, 46px);
}

.section-head p {
  margin-top: 14px;
  color: var(--cream);
}

.card {
  position: relative;
  padding: 24px;
  background: linear-gradient(160deg, rgba(43, 58, 80, 0.72), rgba(28, 43, 66, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.card h3 {
  font-size: 22px;
}

.card p {
  margin-top: 10px;
  color: var(--cream);
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.icon-chip {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  background: rgba(136, 192, 248, 0.14);
  border: 1px solid rgba(136, 192, 248, 0.3);
  border-radius: 14px;
  color: var(--accent);
}

.icon-chip svg {
  width: 24px;
  height: 24px;
}

.icon-chip.gold {
  background: rgba(227, 204, 110, 0.12);
  border-color: rgba(227, 204, 110, 0.32);
  color: var(--gold);
}

.ticks {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  color: #E4E0D6;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--gold);
  border-bottom: 2.5px solid var(--gold);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* Prayer scenes strip */

.scenes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.scene {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--nav);
}

.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17, 30, 54, 0) 45%, rgba(17, 30, 54, 0.92) 100%);
}

.scene span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  font-size: 16px;
  font-weight: 800;
}

/* Tracker pills (decorative) */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
}

.pill.done {
  background: rgba(136, 192, 248, 0.16);
  border-color: rgba(136, 192, 248, 0.4);
  color: var(--white);
}

.pill.done::before {
  content: "";
  width: 9px;
  height: 5px;
  margin-top: -3px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Privacy band */

.band {
  display: grid;
  gap: 24px;
  padding: 28px 24px;
}

.band h2 {
  margin-top: 10px;
  font-size: clamp(26px, 5vw, 38px);
}

.band p {
  margin-top: 12px;
}

.band .btn {
  margin-top: 22px;
}

/* Closing call to action */

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  text-align: center;
}

.closing img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.closing h2 {
  margin-top: 18px;
  font-size: clamp(28px, 6vw, 44px);
}

.closing p {
  max-width: 30em;
  margin-top: 12px;
}

.closing .btn {
  margin-top: 24px;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 24px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line-soft);
  color: var(--cream);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-links a.placeholder {
  padding: 5px 8px;
  color: var(--gold);
}

.fineprint {
  font-size: 13px;
}

/* ---------- Legal pages ---------- */

.page-top {
  position: relative;
  isolation: isolate;
  padding-top: 28px;
  padding-bottom: 8px;
}

.page-top::before {
  content: "";
  position: absolute;
  inset: -90px 0 auto 0;
  z-index: -1;
  height: 420px;
  background: radial-gradient(48% 70% at 50% 0%, rgba(136, 192, 248, 0.14), rgba(17, 30, 54, 0) 70%);
  pointer-events: none;
}

.page-top h1 {
  margin-top: 10px;
  font-size: clamp(36px, 8vw, 56px);
}

.page-top .meta {
  margin-top: 12px;
  color: var(--cream);
  font-size: 15px;
}

.legal {
  max-width: 760px;
  padding-top: 24px;
  padding-bottom: 40px;
}

.legal .summary {
  margin-bottom: 8px;
}

.legal .summary h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 20px;
}

.legal h2 {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 26px;
  scroll-margin-top: 16px;
}

.legal h3 {
  margin-top: 26px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.legal p,
.legal ul,
.legal ol,
.legal dl {
  margin-top: 14px;
  color: #E4E0D6;
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.legal li {
  margin-top: 8px;
}

.legal li::marker {
  color: var(--gold);
}

.legal strong {
  color: var(--white);
  font-weight: 700;
}

.legal dl {
  display: grid;
  gap: 12px;
}

.legal dl > div {
  padding: 16px 18px;
  background: rgba(28, 43, 66, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.legal dt {
  color: var(--white);
  font-weight: 700;
}

.legal dd {
  margin: 4px 0 0;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.toc {
  margin-top: 20px;
  padding: 20px 24px;
}

.toc h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc ol {
  margin-top: 10px;
  columns: 1;
}

.toc a {
  display: inline-block;
  padding: 3px 0;
  color: var(--white);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Join page ---------- */

.join {
  max-width: 560px;
  padding-top: 20px;
  padding-bottom: 32px;
}

.join-card {
  padding: 28px 20px;
  text-align: center;
}

.join-card h1 {
  margin-top: 10px;
  font-size: clamp(28px, 7.4vw, 38px);
}

.join-card .lede {
  margin-top: 12px;
}

.code {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-width: 372px;
  margin: 24px auto 0;
}

.code span {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: var(--navy);
  border: 1px solid rgba(136, 192, 248, 0.45);
  border-radius: 14px;
  color: var(--white);
  font-size: clamp(24px, 7.5vw, 32px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.code.is-empty span {
  border-color: var(--line);
}

.join-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.join-actions .btn {
  width: 100%;
}

.status {
  min-height: 1.5em;
  margin-top: 10px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

.notice {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(227, 204, 110, 0.1);
  border: 1px solid rgba(227, 204, 110, 0.4);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 15px;
  text-align: left;
}

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

.steps {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(28, 43, 66, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: rgba(136, 192, 248, 0.16);
  border: 1px solid rgba(136, 192, 248, 0.4);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 800;
}

.steps strong {
  display: block;
  font-weight: 700;
}

.steps span {
  display: block;
  color: var(--cream);
  font-size: 15px;
}

.join h2 {
  margin-top: 32px;
  font-size: 22px;
}

[hidden] {
  display: none !important;
}

/* ---------- 404 ---------- */

.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  padding-top: 48px;
  padding-bottom: 64px;
  text-align: center;
}

.notfound .big {
  color: var(--accent);
  font-size: clamp(84px, 26vw, 140px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.notfound h1 {
  margin-top: 8px;
  font-size: clamp(28px, 7vw, 40px);
}

.notfound p {
  margin-top: 12px;
}

.notfound .btn {
  margin-top: 26px;
}

/* ---------- Larger screens ---------- */

@media (min-width: 560px) {
  .scenes {
    grid-template-columns: repeat(4, 1fr);
  }

  .join-card {
    padding: 36px 32px;
  }

  .join-actions {
    flex-direction: row;
  }

  .join-actions .btn {
    flex: 1;
  }

  .toc ol {
    columns: 2;
    column-gap: 32px;
  }

  .toc li {
    break-inside: avoid;
  }
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }

  body {
    font-size: 18px;
  }

  .hero-copy {
    padding-top: 48px;
  }

  .hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 23px;
  }

  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .card {
    padding: 30px;
  }

  .span-all {
    grid-column: 1 / -1;
  }

  .band {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 44px;
  }

  .closing {
    padding: 64px 40px;
  }

  .site-footer .wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1020px) {
  .features {
    grid-template-columns: repeat(6, 1fr);
  }

  .features > * {
    grid-column: span 2;
  }

  .features > .wide {
    grid-column: span 4;
  }
}

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

  .btn {
    transition: none;
  }
}
