:root {
  --ink: #1d1a18;
  --muted: #706964;
  --accent: #e8722a;
  --accent-dark: #b94b13;
  --accent-soft: #fbe8dc;
  --charcoal: #28231f;
  --charcoal-deep: #191715;
  --charcoal-soft: #eee9e5;
  --cream: #f6f1ea;
  --paper: #fbfaf8;
  --white: #ffffff;
  --line: #e4ded8;
  --shadow: 0 28px 70px rgba(55, 40, 31, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

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

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

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: 70px;
  line-height: 0.99;
}

h1 span {
  display: block;
  color: var(--accent);
}

h2 {
  margin-bottom: 18px;
  font-size: 48px;
  line-height: 1.06;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.18;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.purpose-bar {
  color: #2b170d;
  background: var(--accent);
}

.purpose-inner {
  min-height: 38px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  align-items: center;
  gap: 0;
  font-size: 11px;
  font-weight: 800;
}

.purpose-inner > * {
  padding: 0 22px;
  text-align: center;
}

.purpose-inner > * + * {
  border-left: 1px solid rgba(43, 23, 13, 0.24);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(223, 229, 225, 0.9);
  background: rgba(251, 250, 248, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 850;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(232, 114, 42, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  color: #59635f;
  font-size: 14px;
  font-weight: 750;
  padding: 0 12px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.nav-download {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: #2b170d;
  background: var(--accent);
  font-size: 14px;
  font-weight: 850;
  padding: 0 17px;
}

.nav-download:hover,
.nav-download:focus-visible {
  background: #f0813e;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid #e6ddd3;
  background: linear-gradient(105deg, #fcf8f3 0%, #f6f1ea 57%, #f4e2d6 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(248, 244, 238, 0) 0%, rgba(248, 244, 238, 0) 48%, rgba(248, 244, 238, 0.28) 61%, rgba(248, 244, 238, 0) 72%);
  pointer-events: none;
}

.hero-inner {
  min-height: 650px;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 66px 0;
}

.hero-copy {
  width: 58%;
  max-width: 650px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.on-dark {
  color: #ffad79;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 0;
  color: #45524d;
  font-size: 20px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-width: 174px;
  min-height: 58px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 8px 18px;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button strong,
.button-kicker {
  display: block;
  letter-spacing: 0;
}

.button strong {
  font-size: 17px;
  line-height: 1.15;
}

.button-kicker {
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  text-transform: uppercase;
}

.button.primary {
  color: #2b170d;
  background: var(--accent);
  box-shadow: 0 14px 32px rgba(232, 114, 42, 0.24);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #f0813e;
  transform: translateY(-2px);
}

.button.secondary {
  color: #555f5a;
  border-color: #d9ddd9;
  background: rgba(255, 255, 255, 0.72);
}

.button.secondary .button-kicker {
  color: #7d8581;
}

.store-status {
  cursor: default;
}

.button.primary.store-status:hover,
.button.primary.store-status:focus-visible,
.store-status:hover,
.store-status:focus-visible {
  background: var(--accent);
  transform: none;
}

.availability {
  margin: 20px 0 0;
  color: #66706c;
  font-size: 13px;
  font-weight: 700;
}

.availability span {
  display: inline-block;
  margin: 0 5px;
  color: var(--accent);
}

.hero-product {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-phone {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 8px solid #171a19;
  border-radius: 30px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.hero-phone img {
  width: 100%;
  height: auto;
}

.hero-phone-prayer {
  width: 306px;
  right: max(34px, calc((100vw - 1160px) / 2));
  bottom: -86px;
  transform: rotate(2deg);
}

.hero-phone-quran {
  width: 260px;
  right: max(285px, calc((100vw - 1160px) / 2 + 265px));
  bottom: -122px;
  transform: rotate(-3deg);
  opacity: 0.94;
}

.essentials {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.essentials-grid {
  min-height: 108px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.essentials-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
  padding: 22px 30px;
}

.essentials-grid > div:first-child {
  border-left: 1px solid var(--line);
}

.essentials-grid strong,
.essentials-grid span {
  display: block;
}

.essentials-grid strong {
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-size: 16px;
}

.essentials-grid span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 96px 0;
}

.features-section {
  background: var(--paper);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 42px;
}

.section-heading > p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  font-size: 18px;
}

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

.feature-item {
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.feature-item p:last-child {
  margin-bottom: 0;
}

.feature-primary {
  grid-column: span 2;
  color: #2b170d;
  background: var(--accent);
  border-color: var(--accent);
}

.feature-primary h3 {
  max-width: 520px;
  font-size: 34px;
}

.feature-primary > p:not(.feature-number) {
  max-width: 650px;
  color: rgba(43, 23, 13, 0.78);
}

.feature-number {
  margin-bottom: 36px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.feature-primary .feature-number {
  color: rgba(43, 23, 13, 0.68);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  border: 1px solid rgba(43, 23, 13, 0.2);
  border-radius: var(--radius);
  color: rgba(43, 23, 13, 0.9);
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 750;
  padding: 8px 10px;
}

.language-section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--accent-soft);
}

.language-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 72px;
  align-items: start;
}

.language-copy {
  position: sticky;
  top: 110px;
}

.language-copy h2 {
  max-width: 510px;
  font-size: 40px;
}

.language-copy > p:last-child {
  max-width: 500px;
  margin-bottom: 0;
  font-size: 17px;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(43, 23, 13, 0.18);
  list-style: none;
}

.language-grid li {
  min-width: 0;
  min-height: 70px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(43, 23, 13, 0.18);
  padding: 12px 14px;
}

.language-grid li:nth-child(odd) {
  border-right: 1px solid rgba(43, 23, 13, 0.18);
}

.language-grid span {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
}

.language-grid strong {
  min-width: 0;
  color: var(--charcoal);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.screens-section {
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal-deep);
}

.screens-heading {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 50px;
}

.screens-heading h2 {
  max-width: 620px;
  margin-bottom: 0;
}

.screens-heading > p {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
}

.screen-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  padding: 0 max(24px, calc((100vw - 1160px) / 2)) 32px;
}

.screen-card {
  min-width: 0;
  margin-bottom: 0;
  scroll-snap-align: start;
}

.screen-image {
  aspect-ratio: 9 / 19.6;
  overflow: hidden;
  border: 7px solid #222725;
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
}

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

.screen-card figcaption {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 10px;
  padding: 20px 4px 0;
}

.screen-card figcaption span {
  grid-row: span 2;
  color: #ff9c61;
  font-size: 12px;
  font-weight: 900;
}

.screen-card figcaption strong {
  display: block;
  font-size: 17px;
}

.screen-card figcaption p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.55;
}

.focus-band {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.focus-grid {
  min-height: 310px;
  display: grid;
  grid-template-columns: 0.34fr 1.3fr 0.72fr;
  gap: 48px;
  align-items: center;
}

.focus-grid .eyebrow,
.focus-grid h2,
.focus-grid > p:last-child {
  margin-bottom: 0;
}

.focus-grid h2 {
  color: var(--accent-dark);
  font-size: 38px;
}

.focus-grid > p:last-child {
  font-size: 16px;
}

.download-section {
  background: var(--cream);
}

.download-layout {
  display: grid;
  grid-template-columns: 126px 1fr auto;
  gap: 34px;
  align-items: center;
}

.download-icon img {
  width: 126px;
  height: 126px;
  border-radius: 26px;
  box-shadow: 0 20px 44px rgba(232, 114, 42, 0.24);
}

.download-copy {
  max-width: 690px;
}

.download-copy h2 {
  font-size: 38px;
}

.download-copy > p:not(.eyebrow):not(.package-id) {
  margin-bottom: 9px;
  font-size: 17px;
}

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

.package-id {
  margin-bottom: 0;
  color: #7d827f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.ios-note {
  color: #747d79;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.support-section {
  padding: 82px 0;
  border-top: 1px solid #e9ded3;
  background: var(--white);
}

.support-layout {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 70px;
  align-items: center;
}

.support-layout h2 {
  margin-bottom: 12px;
  font-size: 38px;
}

.support-layout > div > p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  font-size: 17px;
}

.support-email {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.support-email span,
.support-email strong {
  display: block;
}

.support-email span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.support-email strong {
  font-size: 22px;
  overflow-wrap: anywhere;
}

.support-email:hover strong,
.support-email:focus-visible strong {
  color: var(--accent-dark);
}

.footer {
  color: rgba(255, 255, 255, 0.7);
  background: var(--charcoal-deep);
}

.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
}

.footer-brand {
  color: var(--white);
  font-size: 17px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: none;
}

.footer-inner > span {
  margin-right: auto;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-weight: 750;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
}

@media (max-width: 1080px) {
  h1 {
    font-size: 60px;
  }

  .hero-copy {
    width: 57%;
  }

  .hero-phone-prayer {
    width: 280px;
    right: 18px;
  }

  .hero-phone-quran {
    width: 230px;
    right: 245px;
  }

  .download-layout {
    grid-template-columns: 110px 1fr;
  }

  .download-icon img {
    width: 110px;
    height: 110px;
  }

  .download-actions {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 840px) {
  .container {
    width: min(100% - 36px, 1160px);
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 40px;
  }

  .nav-links {
    display: none;
  }

  .nav-download {
    margin-left: auto;
  }

  .hero {
    min-height: 640px;
  }

  .hero-inner {
    min-height: 640px;
    align-items: flex-start;
    padding: 54px 0 230px;
  }

  .hero-copy {
    width: 100%;
    max-width: 630px;
  }

  .hero-phone-prayer {
    width: 178px;
    right: 26px;
    bottom: -170px;
    border-width: 5px;
    border-radius: 20px;
  }

  .hero-phone-quran {
    width: 158px;
    right: 166px;
    bottom: -155px;
    border-width: 5px;
    border-radius: 20px;
  }

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

  .feature-primary {
    grid-column: span 2;
  }

  .language-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .language-copy {
    position: static;
  }

  .screens-heading,
  .focus-grid,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .screens-heading,
  .focus-grid,
  .support-layout {
    gap: 24px;
  }

  .screens-heading > p {
    max-width: 620px;
  }

  .focus-grid {
    min-height: auto;
    padding: 70px 0;
  }

  .focus-grid h2 {
    max-width: 680px;
  }

  .focus-grid > p:last-child {
    max-width: 560px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .nav {
    min-height: 66px;
  }

  .purpose-inner {
    min-height: 44px;
    grid-template-columns: repeat(3, 1fr);
    font-size: 9px;
    line-height: 1.25;
  }

  .purpose-inner > * {
    padding: 0 7px;
  }

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

  .nav-download {
    min-height: 40px;
    padding: 0 13px;
  }

  h1 {
    font-size: 44px;
    line-height: 1.02;
  }

  h2,
  .download-copy h2,
  .support-layout h2,
  .focus-grid h2 {
    font-size: 32px;
  }

  h3,
  .feature-primary h3 {
    font-size: 23px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-inner {
    min-height: 650px;
    padding: 42px 0 120px;
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.58;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 24px;
  }

  .button {
    width: 100%;
    min-height: 55px;
  }

  .availability {
    max-width: 310px;
    line-height: 1.55;
  }

  .hero-phone-prayer {
    width: 164px;
    right: 12px;
    bottom: -240px;
  }

  .hero-phone-quran {
    width: 146px;
    right: 137px;
    bottom: -220px;
  }

  .essentials-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 7px 0;
  }

  .essentials-grid > div,
  .essentials-grid > div:first-child {
    min-height: 72px;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px 4px;
  }

  .essentials-grid > div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading > p:last-child,
  .screens-heading > p,
  .download-copy > p:not(.eyebrow):not(.package-id),
  .support-layout > div > p:last-child {
    font-size: 16px;
  }

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

  .feature-primary {
    grid-column: auto;
  }

  .feature-item {
    min-height: auto;
    padding: 22px;
  }

  .feature-number {
    margin-bottom: 28px;
  }

  .feature-list {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-section {
    padding: 66px 0;
  }

  .language-copy h2 {
    font-size: 32px;
  }

  .language-copy > p:last-child {
    font-size: 16px;
  }

  .language-grid li {
    min-height: 70px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .language-grid strong {
    font-size: 16px;
  }

  .screens-heading {
    margin-bottom: 34px;
  }

  .screen-track {
    grid-auto-columns: min(78vw, 290px);
    gap: 16px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .focus-grid {
    padding: 60px 0;
  }

  .download-layout {
    grid-template-columns: 78px 1fr;
    gap: 22px 18px;
  }

  .download-icon img {
    width: 78px;
    height: 78px;
    border-radius: 18px;
  }

  .download-copy .eyebrow {
    margin-bottom: 9px;
  }

  .download-copy h2 {
    font-size: 27px;
  }

  .download-actions {
    grid-column: 1 / -1;
    align-items: stretch;
    flex-direction: column;
  }

  .support-section {
    padding: 68px 0;
  }

  .support-email strong {
    font-size: 19px;
  }

  .footer-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 28px 0;
  }

  .footer-inner > span {
    margin-right: 0;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
}

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

  .button {
    transition: none;
  }
}
