:root {
  color-scheme: light;
  --canvas: #f4f0e7;
  --surface: #fffdf8;
  --ink: #13261f;
  --graphite: #4f5b55;
  --quiet: #657068;
  --line: rgba(19, 38, 31, 0.14);
  --line-soft: rgba(19, 38, 31, 0.08);
  --green: #123d32;
  --green-deep: #082a22;
  --green-soft: #e8eee9;
  --gold: #b99555;
  --gold-light: #e3d4ad;
  --focus: rgba(185, 149, 85, 0.58);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --shell: 1180px;
  --radius-sm: 12px;
  --radius-md: 22px;
  --z-focus: 20;
}

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

html {
  background: var(--canvas);
  color: var(--ink);
  scroll-padding-top: 1rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 680;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--gold-light);
  color: var(--ink);
}

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: var(--z-focus);
  top: 0.75rem;
  left: 0.75rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--green-deep);
  color: var(--surface);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}

.site-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand {
  min-height: 44px;
  min-width: 44px;
}

.brand img,
.footer-brand img {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(185, 149, 85, 0.2);
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand-copy strong {
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-links,
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  margin-left: auto;
}

.nav-links a,
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--graphite);
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
}

.footer-links a {
  min-width: 44px;
  justify-content: center;
}

.nav-links a:hover,
.footer-links a:hover,
.prose a:hover,
.privacy-proof a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.iphone-label {
  color: var(--quiet);
  font-size: 0.8rem;
  font-weight: 550;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.button-primary,
.button-nav {
  background: var(--green-deep);
  color: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.button-primary:hover,
.button-nav:hover {
  background: var(--green);
}

.button-nav {
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
}

/* One-page landing canvas */

.home {
  background:
    radial-gradient(circle at 10% 18%, rgba(185, 149, 85, 0.09), transparent 24rem),
    var(--canvas);
}

.launch {
  min-height: calc(100dvh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding-top: clamp(2.75rem, 5vw, 5rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.launch-copy {
  max-width: 560px;
}

.hero-note {
  margin-bottom: 1.15rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.launch h1 {
  max-width: 10.5ch;
  margin-bottom: 0;
  font-size: clamp(3.35rem, 5.6vw, 5.6rem);
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.launch h1 em {
  display: block;
  color: var(--green);
  font-style: normal;
  font-weight: 580;
}

.hero-summary {
  max-width: 50ch;
  margin: 1.65rem 0 0;
  color: var(--graphite);
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
  margin-top: 1.9rem;
}

.platform-status {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--graphite);
  font-size: 0.88rem;
  font-weight: 550;
}

.platform-status > span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 2.4rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.feature-chips li {
  position: relative;
  padding: 0 1rem 0 0;
  color: var(--ink);
  font-size: 0.81rem;
  font-weight: 620;
}

.feature-chips a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.feature-chips a:hover,
.feature-chips a:focus-visible {
  color: var(--green);
  text-decoration: underline;
}

.feature-chips li:not(:last-child)::after {
  content: "·";
  margin-left: 1rem;
  color: var(--gold);
}

.privacy-proof {
  max-width: 52ch;
  margin: 1.35rem 0 0;
  color: var(--quiet);
  font-size: 0.82rem;
  line-height: 1.55;
}

.privacy-proof strong {
  color: var(--green);
  font-weight: 680;
}

.privacy-proof a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 620;
  text-underline-offset: 0.18em;
}

.mihrab-stage {
  position: relative;
  min-width: 0;
  height: clamp(640px, 69vh, 760px);
  overflow: hidden;
  border: 1px solid rgba(227, 212, 173, 0.48);
  border-radius: 48% 48% 24px 24px / 26% 26% 24px 24px;
  background:
    radial-gradient(circle at 50% 12%, rgba(227, 212, 173, 0.23), transparent 28%),
    var(--green-deep);
  box-shadow: 0 34px 80px rgba(8, 42, 34, 0.18);
  isolation: isolate;
}

.stage-pattern {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(30deg, transparent 47%, rgba(227, 212, 173, 0.22) 48%, rgba(227, 212, 173, 0.22) 50%, transparent 51%),
    linear-gradient(-30deg, transparent 47%, rgba(227, 212, 173, 0.22) 48%, rgba(227, 212, 173, 0.22) 50%, transparent 51%);
  background-size: 54px 92px;
}

.stage-heading {
  position: absolute;
  z-index: 3;
  top: clamp(2.5rem, 6vw, 4.25rem);
  right: 1.5rem;
  left: 1.5rem;
  text-align: center;
}

.stage-heading p {
  margin-bottom: 0;
}

.bismillah {
  color: var(--gold-light);
  font-family: "Geeza Pro", "Noto Naskh Arabic", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.4;
}

.stage-heading p:last-child {
  margin-top: 0.2rem;
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screen-group {
  position: absolute;
  inset: 0;
}

.app-screen {
  position: absolute;
  margin: 0;
}

.app-screen img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 253, 248, 0.7);
  border-radius: 24px;
  box-shadow: 0 28px 54px rgba(0, 20, 15, 0.34);
}

.screen-prayer {
  z-index: 3;
  right: 50%;
  bottom: -5rem;
  width: min(45%, 276px);
  transform: translateX(50%);
}

.screen-quran {
  z-index: 2;
  bottom: -1.75rem;
  left: 4.5%;
  width: min(34%, 210px);
  transform: rotate(-3deg);
}

.screen-learn {
  z-index: 1;
  right: 5%;
  bottom: -2.25rem;
  width: min(31%, 196px);
  transform: rotate(3deg);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}

.footer-layout {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}

.footer-layout > p {
  margin: 0;
  color: var(--quiet);
  font-size: 0.79rem;
  text-align: right;
}

/* Legal, support, and utility pages */

.page-legal {
  background: var(--surface);
}

.page-legal .site-header {
  background: var(--surface);
}

.legal-main {
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.legal-hero {
  padding-top: clamp(4.5rem, 9vw, 8rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.legal-hero .legal-kicker {
  margin-bottom: 1.1rem;
  color: var(--green);
  font-weight: 680;
}

.legal-hero h1,
.not-found h1 {
  max-width: 860px;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.legal-hero .legal-summary {
  max-width: 700px;
  margin: 1.5rem 0 0;
  color: var(--graphite);
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  line-height: 1.65;
}

.legal-meta {
  margin-top: 1.25rem;
  color: var(--quiet);
  font-size: 0.875rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: space-between;
  gap: clamp(3rem, 9vw, 8rem);
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.legal-nav {
  align-self: start;
}

.legal-nav p {
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 650;
}

.legal-nav a {
  min-inline-size: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--graphite);
  font-size: 0.875rem;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.prose {
  min-width: 0;
}

.prose section {
  padding-bottom: 2.4rem;
  scroll-margin-top: 1rem;
}

.prose h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.prose h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.prose p,
.prose li {
  color: #45534d;
  font-size: 1rem;
  line-height: 1.72;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  margin: 0.75rem 0 1rem;
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 0.55rem;
}

.prose a {
  color: var(--green);
  font-weight: 620;
  text-underline-offset: 0.2em;
}

.prose a.button-primary,
.prose a.button-primary:hover,
.prose a.button-primary:focus-visible {
  color: var(--surface);
  text-decoration: none;
}

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

.policy-note,
.support-contact {
  margin: 1.5rem 0 2rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
}

.policy-note p,
.support-contact p {
  margin-bottom: 0;
  color: #334c42;
}

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

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details > div {
  padding: 0 2rem 1.5rem 0;
}

.faq-list details p:last-child {
  margin-bottom: 0;
}

/* People-first Islamic search guides */

.guide-main {
  background:
    radial-gradient(circle at 82% 5%, rgba(185, 149, 85, 0.1), transparent 24rem),
    var(--surface);
}

.breadcrumbs {
  min-height: 44px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 1.25rem;
  color: var(--quiet);
  font-size: 0.82rem;
}

.breadcrumbs a,
.guide-text-link {
  color: var(--green);
  font-weight: 620;
  text-underline-offset: 0.2em;
}

.breadcrumbs a {
  min-inline-size: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.guide-header-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--graphite);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.guide-header-link:hover,
.guide-header-link:focus-visible {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.guide-hero {
  max-width: 920px;
  padding-top: clamp(3rem, 7vw, 6rem);
}

.guide-hero h1 {
  max-width: 14ch;
}

.guide-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 2rem;
}

.guide-text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.guide-layout {
  grid-template-columns: 210px minmax(0, 780px);
}

.guide-nav {
  position: sticky;
  top: 1.25rem;
}

.guide-prose > section {
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.guide-prose h2 {
  max-width: 25ch;
}

.guide-prose p,
.guide-prose li {
  max-width: 72ch;
}

.guide-callout,
.guide-cta {
  margin: 1.5rem 0 2rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(18, 61, 50, 0.12);
  border-radius: var(--radius-sm);
  background: var(--green-soft);
}

.guide-callout > strong {
  display: block;
  margin-bottom: 0.35rem;
}

.guide-callout p,
.guide-cta p {
  margin-bottom: 0;
  color: #334c42;
}

.guide-table-wrap {
  width: 100%;
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.guide-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.prayer-table {
  min-width: 900px;
}

.guide-table th,
.guide-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--graphite);
  vertical-align: top;
}

.guide-table th {
  background: var(--green-soft);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.guide-table tbody tr:last-child td {
  border-bottom: 0;
}

.guide-table td strong {
  color: var(--ink) !important;
}

.city-link-list {
  columns: 2 250px;
  column-gap: 2rem;
}

.city-link-list li {
  break-inside: avoid;
}

.related-guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.related-guides a {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.related-guides a:hover,
.related-guides a:focus-visible {
  border-color: rgba(18, 61, 50, 0.35);
  background: var(--green-soft);
}

.related-guides span {
  margin-top: 0.2rem;
  color: var(--quiet);
  font-size: 0.79rem;
}

.city-guides {
  margin-top: 1.5rem;
}

.guide-faq details > div p {
  max-width: 68ch;
}

.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

.guide-cta p {
  max-width: 52ch;
}

.guide-cta .button {
  flex: 0 0 auto;
}

.not-found {
  min-height: calc(100dvh - 168px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.not-found img {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
}

.not-found p {
  max-width: 50ch;
  margin: 1.25rem 0 2rem;
  color: var(--graphite);
  font-size: 1.0625rem;
}

@media (max-width: 1040px) {
  .launch {
    grid-template-columns: minmax(0, 0.84fr) minmax(470px, 1.16fr);
    gap: 3rem;
  }

  .mihrab-stage {
    height: 650px;
  }
}

@media (max-width: 900px) {
  .launch {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3.25rem;
    padding-top: 4.5rem;
  }

  .launch-copy {
    max-width: 680px;
  }

  .launch h1 {
    max-width: 11ch;
  }

  .mihrab-stage {
    width: min(100%, 650px);
    height: 720px;
    margin-inline: auto;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.35rem;
    padding: 1.4rem 0;
  }

  .footer-layout > p {
    text-align: center;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    display: flex;
    gap: 0.2rem 1.15rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .legal-nav p {
    display: none;
  }

  .legal-nav a {
    flex: 0 0 auto;
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .guide-nav {
    position: static;
  }

  .guide-nav a[href="#questions"],
  .guide-nav a[href="#related"] {
    display: none;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 1.5rem, var(--shell));
  }

  .site-nav {
    min-height: 68px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .iphone-label,
  .nav-links {
    display: none;
  }

  .launch {
    gap: 2.75rem;
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .launch h1 {
    font-size: clamp(3rem, 14vw, 4.45rem);
  }

  .mihrab-stage {
    height: clamp(520px, 150vw, 660px);
    border-radius: 48% 48% 18px 18px / 21% 21% 18px 18px;
  }

  .stage-heading {
    top: 2.75rem;
  }

  .screen-prayer {
    bottom: -3.75rem;
    width: 52%;
  }

  .screen-quran {
    bottom: -0.75rem;
    left: 2.5%;
    width: 38%;
  }

  .screen-learn {
    right: 2.5%;
    bottom: -1rem;
    width: 35%;
  }

  .app-screen img {
    border-radius: 18px;
  }

  .guide-header-link {
    display: none;
  }

  .guide-hero {
    padding-top: 3rem;
  }

  .guide-hero h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .related-guides {
    grid-template-columns: 1fr;
  }

  .guide-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-cta .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand-copy small {
    display: none;
  }

  .button-nav {
    padding-inline: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .feature-chips li {
    width: 50%;
    padding-right: 0.5rem;
  }

  .feature-chips li::after {
    display: none;
  }

  .legal-hero h1,
  .not-found h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
