:root {
  --primary: #0f6b5c;
  --primary-dark: #0a5146;
  --secondary: #2b7a78;
  --gold: #e8b64a;
  --background: #f7fbf8;
  --surface: #ffffff;
  --surface-soft: #e8f5ef;
  --surface-tint: #e7f2ec;
  --text: #102a2a;
  --muted: #667a75;
  --border: #e2ece8;
  --shadow: 0 18px 50px rgba(15, 107, 92, 0.12);
  --shadow-soft: 0 12px 34px rgba(16, 42, 42, 0.08);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b5c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: var(--primary); }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(226, 236, 232, 0.85); background: rgba(247, 251, 248, 0.92); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.brand img { border-radius: 10px; }
.brand strong { color: var(--gold); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 9px 12px; color: var(--text); font-size: 0.92rem; font-weight: 650; text-decoration: none; border-radius: 9px; }
.main-nav a:hover { background: var(--surface-soft); color: var(--primary); }
.nav-toggle { display: none; padding: 8px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; }

.hero { overflow: hidden; padding: 76px 0 88px; background: radial-gradient(circle at 80% 15%, rgba(232, 182, 74, 0.16), transparent 27%), linear-gradient(145deg, #f7fbf8 15%, #e8f5ef 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.75fr; gap: 80px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--primary); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.16; }
h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(2.7rem, 6vw, 4.65rem); letter-spacing: -0.045em; }
h2 { margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; }
h3 { margin-bottom: 10px; font-size: 1.2rem; }
p { margin: 0 0 16px; }
.lead { max-width: 650px; color: var(--muted); font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: 12px; font-weight: 750; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--primary); color: white; box-shadow: 0 10px 25px rgba(15, 107, 92, 0.22); }
.button.secondary { border-color: var(--border); background: var(--surface); color: var(--text); }
.button.light { background: white; color: var(--primary-dark); }
.availability { margin-top: 14px; color: var(--muted); font-size: 0.88rem; }
.trust-pills { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.trust-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 0.84rem; font-weight: 700; box-shadow: 0 4px 14px rgba(16, 42, 42, 0.05); }
.trust-pills li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

.app-screenshot { position: relative; overflow: hidden; border: 8px solid white; border-radius: 36px; background: var(--surface); box-shadow: var(--shadow); }
.app-screenshot img { width: 100%; height: auto; }
.hero-screenshot { width: min(390px, 100%); justify-self: center; transform: rotate(1.5deg); }

.section { padding-top: 96px; padding-bottom: 96px; scroll-margin-top: 70px; }
.section-heading { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.section-heading > p:last-child, .split-section > div > p:last-child { color: var(--muted); }
.check-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 32px; color: var(--text); font-weight: 600; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-soft) var(--check) center / 13px 13px no-repeat; }

.privacy-band { padding: 92px 0; background: radial-gradient(circle at 12% 0%, rgba(232, 182, 74, 0.12), transparent 32%), linear-gradient(165deg, var(--surface-soft), var(--background)); scroll-margin-top: 70px; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 6px 0 0; padding: 0; list-style: none; }
.promise-grid li { display: grid; gap: 8px; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }
.promise-grid strong { position: relative; padding-left: 34px; color: var(--text); font-size: 1.06rem; }
.promise-grid strong::before { content: ""; position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 8px; background: var(--surface-soft) var(--check) center / 14px 14px no-repeat; }
.promise-grid span { color: var(--muted); font-size: 0.95rem; }
.privacy-band-footnote { margin: 30px 0 0; text-align: center; }
.privacy-band-footnote a { font-weight: 750; text-decoration: none; }
.privacy-band-footnote a:hover { text-decoration: underline; }

.showcase-section { padding: 96px 0; background: var(--surface); scroll-margin-top: 70px; }
.showcase-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.showcase-row + .showcase-row { margin-top: 40px; padding-top: 56px; border-top: 1px solid var(--border); }
.showcase-row.reverse .showcase-media { order: -1; }
.showcase-text h3 { margin-bottom: 12px; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; }
.showcase-text > p { max-width: 520px; color: var(--muted); font-size: 1.05rem; }
.showcase-text > .button { margin-top: 10px; }
.showcase-media { display: flex; justify-content: center; }
.showcase-media .app-screenshot { width: min(300px, 100%); }
.showcase-media.dual { position: relative; padding: 10px 20px 20px; }
.showcase-media.dual .app-screenshot { width: min(240px, 62%); }
.showcase-media.dual .media-front { position: relative; z-index: 2; transform: rotate(-3deg); }
.showcase-media.dual .media-back { position: absolute; top: 0; right: 14%; z-index: 1; width: min(210px, 54%); transform: rotate(5deg); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 72px; }
.feature-card { padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 30px rgba(16, 42, 42, 0.045); }
.feature-card p { margin: 0; color: var(--muted); }
.feature-icon { display: grid; width: 44px; height: 44px; margin-bottom: 20px; place-items: center; border-radius: 12px; background: var(--surface-soft); color: var(--primary); font-size: 1.25rem; font-weight: 800; }
.prayer-times-section { padding: 88px 0; background: var(--surface); scroll-margin-top: 70px; }
.prayer-times-layout { display: grid; grid-template-columns: 0.78fr 1fr; gap: 56px; align-items: center; }
.prayer-times-copy p:not(.eyebrow) { max-width: 560px; color: var(--muted); }
.prayer-settings-controls { display: grid; grid-template-columns: 1fr 0.72fr; gap: 12px; margin: 0 0 18px; }
.prayer-settings-controls label { display: grid; gap: 7px; color: var(--muted); font-size: 0.84rem; font-weight: 750; }
.prayer-settings-controls select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--background); color: var(--text); font: inherit; font-weight: 700; }
.prayer-settings-controls select:focus { outline: 3px solid rgba(15, 107, 92, 0.16); border-color: rgba(15, 107, 92, 0.46); }
.prayer-times-status { min-height: 26px; margin-top: 14px; color: var(--muted); font-size: 0.92rem; }
.prayer-times-panel { padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--background); box-shadow: 0 12px 34px rgba(16, 42, 42, 0.06); }
.prayer-summary-widget { overflow: hidden; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 22px rgba(16, 42, 42, 0.06); }
.prayer-summary-main { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 18px; }
.prayer-summary-main strong { display: block; color: var(--text); font-size: 1.32rem; line-height: 1.15; }
.prayer-summary-main span { display: block; margin-top: 4px; color: var(--primary); font-size: 0.92rem; font-weight: 650; }
.prayer-summary-action { padding: 0 18px 18px; }
.prayer-times-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prayer-time-item { min-height: 98px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.prayer-time-item span { display: block; color: var(--muted); font-size: 0.84rem; font-weight: 750; }
.prayer-time-item strong { display: block; margin-top: 6px; color: var(--text); font-size: 1.45rem; line-height: 1.1; }
.prayer-time-item.next { border-color: rgba(15, 107, 92, 0.28); background: var(--surface-soft); }
.prayer-empty { grid-column: 1 / -1; padding: 30px; border: 1px dashed rgba(15, 107, 92, 0.24); border-radius: 14px; color: var(--muted); text-align: center; }
.soft-section { padding: 88px 0; background: var(--surface-soft); scroll-margin-top: 70px; }
.split-section { display: grid; grid-template-columns: 0.8fr 1fr; gap: 90px; align-items: center; }
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px; border-radius: 16px; background: var(--surface); }
.steps li > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--primary); color: white; font-weight: 800; }
.steps p { margin: 3px 0 0; color: var(--muted); }
details { margin-bottom: 12px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
summary { cursor: pointer; font-weight: 750; }
details p { margin: 12px 0 0; color: var(--muted); }
.download-section { padding: 0 0 96px; }
.download-card { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 42px; border-radius: 24px; background: var(--primary); color: white; }
.download-card .eyebrow { color: var(--gold); }
.download-card h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.legal-page { min-height: 65vh; padding-top: 70px; padding-bottom: 90px; }
.legal-page h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
.legal-page h2 { margin-top: 34px; font-size: 1.35rem; letter-spacing: -0.015em; }
.legal-page p, .legal-page li { color: var(--muted); }
.privacy-highlight { margin: 28px 0; padding: 24px; border: 1px solid rgba(15, 107, 92, 0.2); border-left: 5px solid var(--primary); border-radius: 16px; background: var(--surface-soft); }
.privacy-highlight strong { display: block; margin-bottom: 6px; color: var(--primary-dark); font-size: 1.2rem; }
.privacy-highlight p { margin: 0; color: var(--text); }
.contact-card { padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.site-footer { padding: 34px 0; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner nav { display: flex; gap: 18px; }
.footer-inner nav a { color: var(--muted); text-decoration: none; }
.site-footer small { color: var(--muted); }

@media (max-width: 850px) {
  .hero-grid, .prayer-times-layout, .split-section { grid-template-columns: 1fr; gap: 48px; }
  .hero-screenshot { width: min(360px, 100%); margin: 0 auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .prayer-times-grid { grid-template-columns: 1fr 1fr; }
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; gap: 36px; }
  .showcase-row.reverse .showcase-media { order: 0; }
  .download-card { grid-template-columns: auto 1fr; }
  .download-card .button { grid-column: 1 / -1; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 63px; right: 20px; left: 20px; display: none; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
}

@media (max-width: 580px) {
  .wrap, .narrow { width: min(100% - 28px, 1120px); }
  .hero { padding: 56px 0 64px; }
  h1 { font-size: 2.65rem; }
  .hero-screenshot { width: min(320px, 100%); transform: none; }
  .showcase-section { padding: 72px 0; }
  .showcase-row + .showcase-row { margin-top: 32px; padding-top: 40px; }
  .showcase-media .app-screenshot { width: min(300px, 84%); }
  .showcase-media.dual { padding: 0; }
  .showcase-media.dual .app-screenshot { width: min(280px, 84%); }
  .showcase-media.dual .media-back { display: none; }
  .showcase-media.dual .media-front { transform: none; }
  .privacy-band { padding: 68px 0; }
  .promise-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .prayer-settings-controls { grid-template-columns: 1fr; }
  .prayer-summary-main { grid-template-columns: 1fr; }
  .prayer-summary-main .align-right { text-align: left; }
  .prayer-times-grid { grid-template-columns: 1fr; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .download-card { grid-template-columns: 1fr; padding: 30px; }
  .download-card .button { grid-column: auto; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { display: none; }
}

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