:root {
  --ink: #071712;
  --ink-2: #0d2820;
  --ink-3: #123b2f;
  --paper: #f7f7f1;
  --paper-2: #dbe2dc;
  --paper-3: #a8b7af;
  --canvas: #f2f4ed;
  --canvas-2: #e4ebe4;
  --text: #11251e;
  --muted: #566860;
  --yellow: #ffd400;
  --yellow-dark: #d7b400;
  --mint: #66dfbd;
  --line: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(17, 37, 30, 0.14);
  --shadow: 18px 28px 60px rgba(3, 18, 13, 0.28);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Mulish", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}

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

[hidden] {
  display: none !important;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 44px, 1160px);
  margin-inline: auto;
}

h1,
h2,
h3,
.sec-title,
.res-num,
.legal h1,
.article h1 {
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 23, 18, 0.92);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-family: "Marcellus", Georgia, serif;
  font-size: 21px;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 9px;
  place-items: center;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a:not(.btn) {
  color: var(--paper-2);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:not(.btn):hover {
  color: var(--yellow);
}

.language-picker {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  padding: 0 9px;
}

.language-icon {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

.language-picker select {
  width: 116px;
  min-height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.language-picker select option {
  background: var(--ink);
  color: var(--paper);
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--yellow);
  color: #191700;
  box-shadow: 0 10px 24px rgba(255, 212, 0, 0.22);
}

.btn-gold:hover {
  background: #ffe34b;
  box-shadow: 0 14px 32px rgba(255, 212, 0, 0.28);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(7, 23, 18, 0.48);
  color: var(--paper);
}

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

.btn-sm {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* Landing hero */
.hero {
  position: relative;
  display: flex;
  height: clamp(620px, calc(100svh - 96px), 760px);
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(4, 17, 13, 0.94) 0%, rgba(4, 17, 13, 0.78) 46%, rgba(4, 17, 13, 0.3) 76%, rgba(4, 17, 13, 0.52) 100%),
    linear-gradient(0deg, rgba(4, 17, 13, 0.74), transparent 58%),
    image-set(
      url("/assets/hero-istanbul.webp") type("image/webp"),
      url("/assets/hero-istanbul.jpg") type("image/jpeg")
    );
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: -48%;
  width: 66%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 212, 0, 0.16);
  border-radius: 50%;
  content: "";
}

.hero-stage {
  display: grid;
  min-height: 100%;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 48px;
  padding-block: 54px 64px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.bismillah {
  margin-bottom: 14px;
  color: #f7e9b4;
  font-family: "Amiri", serif;
  font-size: 22px;
}

.hero-kicker,
.section-label {
  margin-bottom: 16px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  color: #fffef8;
  font-size: 70px;
  line-height: 1.02;
}

.hero h1 em {
  color: var(--yellow);
  font-style: normal;
}

.lede {
  max-width: 680px;
  margin-top: 22px;
  color: #e1e9e4;
  font-size: 18px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-line {
  margin-top: 20px;
  color: #c4d0c9;
  font-size: 13px;
  font-weight: 700;
}

.hero-product {
  position: relative;
  align-self: end;
  justify-self: center;
  width: 340px;
  margin-bottom: -150px;
  transform: rotate(1.5deg);
}

.phone-shell {
  overflow: hidden;
  border: 8px solid #101c18;
  border-radius: 46px;
  background: #08100d;
  box-shadow: var(--shadow);
}

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

.hero-product figcaption {
  position: absolute;
  top: 120px;
  left: -88px;
  border-radius: 7px;
  background: var(--yellow);
  color: #151600;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  transform: rotate(-1.5deg);
}

.hero-scroll {
  position: absolute;
  z-index: 3;
  bottom: 16px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f1f5f2;
  font-size: 13px;
  font-weight: 800;
  transform: translateX(-50%);
}

.hero-scroll span {
  color: var(--yellow);
  font-size: 19px;
}

/* Shared section structure */
.section {
  position: relative;
  padding: 96px 0;
}

.sec-title {
  color: var(--paper);
  font-size: 48px;
  line-height: 1.12;
  text-align: center;
}

.sec-sub {
  max-width: 660px;
  margin: 14px auto 0;
  color: var(--paper-2);
  font-size: 16px;
  text-align: center;
}

.calculator-section {
  background: var(--canvas);
  color: var(--text);
}

.calculator-section .sec-title,
.how-section .sec-title,
.showcase .sec-title,
.home .privacy + .section .sec-title {
  color: var(--text);
}

.calculator-section .sec-sub,
.how-section .sec-sub,
.showcase .sec-sub {
  color: var(--muted);
}

.calc-guide {
  margin-top: 14px;
  text-align: center;
}

.calc-guide a {
  color: #456c5d;
  border-bottom: 1px solid rgba(69, 108, 93, 0.35);
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
}

.calc {
  display: grid;
  max-width: 960px;
  justify-content: center;
  gap: 20px;
  margin: 40px auto 0;
}

.calc:has(.calc-result:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.calc-form,
.calc-result {
  width: min(100%, 560px);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: #fff;
  box-shadow: 12px 20px 48px rgba(21, 49, 39, 0.1);
  padding: 30px;
}

.field {
  margin-bottom: 18px;
}

.field > label {
  display: block;
  margin-bottom: 8px;
  color: #324a41;
  font-size: 14px;
  font-weight: 800;
}

.field input[type="date"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c7d1cb;
  border-radius: 8px;
  background: #f8faf7;
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
}

.field input[type="date"]:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.field input[type="range"] {
  width: 100%;
  accent-color: #d2ae00;
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid #c7d1cb;
  border-radius: 9px;
  background: #edf1ed;
  padding: 4px;
}

.seg-opt {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #52655d;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.seg-opt.active {
  background: var(--yellow);
  color: #1a1900;
}

.check {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  margin-top: 10px;
  color: #52655d !important;
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.check input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: #caa900;
}

.calc-result {
  align-self: start;
  background: var(--ink-2);
  color: var(--paper);
  text-align: center;
}

.res-label,
.res-sub {
  color: var(--paper-2);
  font-size: 14px;
}

.res-num {
  margin: 6px 0;
  color: var(--yellow);
  font-size: 64px;
  line-height: 1;
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 24px 0;
}

.res-cell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 11px 6px;
}

.res-cell b,
.res-cell span {
  display: block;
}

.res-cell b {
  color: var(--yellow);
  font-size: 18px;
}

.res-cell span {
  color: var(--paper-3);
  font-size: 11px;
}

.res-note {
  margin: 8px 0 18px;
  color: var(--paper-3);
  font-size: 13px;
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: #0b211a;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  padding-block: 22px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper-2);
  font-size: 14px;
}

.trust-item .mk {
  color: var(--yellow);
  font-size: 8px;
}

.trust-item b {
  color: var(--paper);
}

.how-section {
  background: var(--canvas-2);
  color: var(--text);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 980px;
  margin: 48px auto 0;
}

.step {
  position: relative;
  padding: 4px 36px 10px;
  text-align: left;
}

.step + .step {
  border-left: 1px solid var(--line-dark);
}

.step-n {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid rgba(17, 37, 30, 0.28);
  border-radius: 50%;
  color: #8f7800;
  font-family: "Amiri", serif;
  font-size: 26px;
  place-items: center;
}

.step h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 25px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
}

/* Real screen product tour */
.product-tour {
  overflow: hidden;
  padding: 64px 0;
  background: #dfe8e1;
  color: var(--text);
}

.product-tour .wrap {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.tour-heading {
  max-width: 330px;
  text-align: left;
}

.tour-heading .section-label {
  color: #766300;
}

.tour-heading .sec-title {
  max-width: 12ch;
  margin-inline: 0;
  color: var(--text);
  font-size: 38px;
}

.tour-heading .sec-sub {
  margin-inline: 0;
  color: var(--muted);
  text-align: left;
}

.screen-rail {
  display: grid;
  grid-template-columns: repeat(3, 180px);
  justify-content: center;
  gap: 26px;
  align-items: start;
  max-width: 592px;
  margin: 0;
}

.app-screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.app-screen:not(.app-screen-featured) {
  padding-top: 24px;
}

.app-screen img {
  width: 100%;
  height: 330px;
  border: 5px solid #0a1511;
  border-radius: 24px;
  background: #0a1511;
  box-shadow: 12px 20px 42px rgba(12, 42, 32, 0.2);
  object-fit: cover;
  object-position: top;
}

.app-screen figcaption {
  display: grid;
  min-height: 64px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.tour-index {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(17, 37, 30, 0.28);
  border-radius: 50%;
  color: #756200 !important;
  font-size: 11px !important;
  font-weight: 800;
  place-items: center;
}

.tour-copy {
  display: grid;
  gap: 3px;
}

.tour-copy b {
  color: var(--text);
  font-family: "Marcellus", Georgia, serif;
  font-size: 19px;
  font-weight: 400;
}

.tour-copy > span {
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.45;
}

/* Video */
.showcase {
  background: var(--canvas);
  color: var(--text);
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 96px;
  align-items: center;
  max-width: 980px;
}

.showcase-copy .sec-title,
.showcase-copy .sec-sub {
  margin-inline: 0;
  text-align: left;
}

.showcase-copy .section-label {
  color: #786500;
}

.showcase-list {
  display: grid;
  gap: 13px;
  margin-top: 30px;
  list-style: none;
}

.showcase-list li {
  position: relative;
  padding-left: 28px;
  color: #324a41;
  font-weight: 700;
}

.showcase-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: #9a8100;
  content: "✓";
}

.video-phone {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 8px solid #0c1713;
  border-radius: 38px;
  background: #0c1713;
  box-shadow: 18px 28px 58px rgba(9, 31, 24, 0.25);
}

.video-phone video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 29px;
  background: #07110e;
  object-fit: cover;
}

/* Quote, features, privacy, FAQ */
.hadith {
  background: #0b211a;
}

.hadith-card {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid rgba(255, 212, 0, 0.42);
  border-bottom: 1px solid rgba(255, 212, 0, 0.42);
  padding: 48px 28px;
  text-align: center;
}

.hadith-eyebrow {
  margin-bottom: 20px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}

.hadith-ar {
  margin-bottom: 18px;
  color: var(--paper);
  font-family: "Amiri", serif;
  font-size: 38px;
  line-height: 1.9;
}

.hadith-tr {
  max-width: 650px;
  margin-inline: auto;
  color: var(--paper-2);
  font-family: "Marcellus", Georgia, serif;
  font-size: 23px;
}

.hadith-src {
  margin-top: 14px;
  color: var(--yellow);
  font-size: 13px;
}

.section.alt {
  background: #f7f4e9;
  color: var(--text);
}

.section.alt .sec-title {
  color: var(--text);
}

.section.alt .sec-sub {
  color: var(--muted);
}

.feat-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin-top: 54px;
}

.fg {
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
}

.fg-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.fg-ic {
  font-size: 22px;
}

.fg-head h3 {
  color: var(--text);
  font-size: 25px;
}

.fg-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
}

.fg-item .dot {
  color: #a68a00;
}

.fg-item b {
  color: #263d34;
  font-size: 14px;
}

.fg-item p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.privacy {
  background: #10372b;
}

.pv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 980px;
  gap: 0 48px;
  margin: 48px auto 30px;
}

.pv {
  display: flex;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.pv-ic {
  width: 34px;
  flex: 0 0 34px;
  font-size: 22px;
}

.pv b {
  display: block;
  margin-bottom: 4px;
  color: var(--paper);
  font-family: "Marcellus", Georgia, serif;
  font-size: 19px;
  font-weight: 400;
}

.pv p {
  color: var(--paper-2);
  font-size: 13px;
}

.pv-cta {
  text-align: center;
}

.home .privacy + .section {
  background: var(--canvas);
  color: var(--text);
}

.faq {
  max-width: 820px;
  margin: 40px auto 0;
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  list-style: none;
}

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

.faq summary::after {
  color: #8e7700;
  content: "+";
  font-size: 24px;
}

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

.faq-a {
  max-width: 72ch;
  padding: 0 36px 20px 4px;
  color: var(--muted);
  font-size: 14px;
}

.download {
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(5, 22, 16, 0.96), rgba(5, 22, 16, 0.68)),
    image-set(
      url("/assets/hero-istanbul.webp") type("image/webp"),
      url("/assets/hero-istanbul.jpg") type("image/jpeg")
    );
  background-position: center 66%;
  background-size: cover;
}

.dl-inner {
  text-align: center;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.store {
  display: inline-flex;
  min-width: 190px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: #050806;
  padding: 11px 18px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.store:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.store-ic {
  width: 26px;
  color: var(--yellow);
  font-size: 22px;
  text-align: center;
}

.store-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.store-txt small {
  color: var(--paper-3);
  font-size: 10px;
}

.store-txt b {
  color: var(--paper);
  font-size: 17px;
}

.download-note {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--paper-3);
  font-size: 13px;
}

.footer {
  border-top: 1px solid var(--line);
  background: #06110d;
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--paper-3);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--paper-2);
  font-weight: 700;
}

.muted {
  color: var(--paper-3);
}

/* Article, guide and legal pages */
.article-wrap {
  position: relative;
  z-index: 1;
  padding: 38px 0 68px;
}

.breadcrumb {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 22px 8px;
  color: var(--paper-3);
  font-size: 13px;
}

.breadcrumb a,
.article a,
.legal a {
  color: #f0d65a;
}

.article {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 22px 0;
}

.article h1 {
  max-width: 18ch;
  margin-bottom: 10px;
  color: var(--paper);
  font-size: 46px;
  line-height: 1.14;
}

.article > p,
.article p,
.article li {
  color: var(--paper-2);
  font-size: 16px;
  line-height: 1.85;
}

.article h2 {
  margin: 42px 0 12px;
  color: #f0d65a;
  font-size: 29px;
}

.article ul {
  margin: 10px 0 12px 22px;
}

.article strong {
  color: var(--paper);
}

.article .faq summary {
  color: var(--paper);
}

.article .faq details {
  border-color: var(--line);
}

.article .faq-a {
  color: var(--paper-2);
}

.related {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.related h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.related ul,
.hub-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related li {
  margin: 7px 0;
}

.hub-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.hub-card a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-2);
  padding: 18px 20px;
}

.hub-card h3 {
  margin-bottom: 6px;
  color: var(--paper);
  font-size: 21px;
}

.hub-card p {
  color: var(--paper-2);
  font-size: 14px;
}

.legal {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 54px 22px 72px;
}

.legal h1 {
  margin-bottom: 8px;
  color: var(--paper);
  font-size: 42px;
}

.legal .updated {
  margin-bottom: 28px;
  color: var(--paper-3);
  font-size: 13px;
}

.legal h2 {
  margin: 32px 0 10px;
  color: #f0d65a;
  font-size: 25px;
}

.legal p,
.legal li {
  color: var(--paper-2);
  font-size: 15px;
  line-height: 1.8;
}

.legal ul {
  margin: 8px 0 8px 22px;
}

.legal .back {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 700;
}

.legal hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.dl-page {
  min-height: calc(100svh - 64px);
}

.footer-note {
  color: var(--paper-3);
}

/* Content remains visible by default; motion is limited to the hero product. */
.reveal,
.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes settle-phone {
  from {
    opacity: 0.72;
    transform: translateY(22px) rotate(1.5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(1.5deg);
  }
}

.hero-product {
  animation: settle-phone 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (max-width: 920px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-stage {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 32px;
  }

  .hero-product {
    width: 250px;
    margin-right: 0;
    margin-bottom: 0;
  }

  .showcase-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 54px;
  }

  .product-tour .wrap {
    display: block;
  }

  .tour-heading {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
  }

  .tour-heading .sec-title,
  .tour-heading .sec-sub {
    margin-inline: auto;
    text-align: center;
  }

  .screen-rail {
    grid-template-columns: repeat(3, 170px);
    gap: 28px;
    max-width: 566px;
    margin: 38px auto 0;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 32px, 1160px);
  }

  .nav-inner {
    height: 58px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links .btn,
  .nav-links a:not(.btn) {
    display: none;
  }

  .language-picker {
    min-height: 44px;
  }

  .language-picker select {
    width: 112px;
    min-height: 42px;
  }

  .hero {
    height: min(700px, calc(100svh - 84px));
    min-height: 640px;
    max-height: 700px;
    background-image:
      linear-gradient(180deg, rgba(4, 17, 13, 0.94) 0%, rgba(4, 17, 13, 0.74) 58%, rgba(4, 17, 13, 0.9) 100%),
      image-set(
        url("/assets/hero-istanbul.webp") type("image/webp"),
        url("/assets/hero-istanbul.jpg") type("image/jpeg")
      );
    background-position: 58% center;
  }

  .hero-stage {
    display: block;
    padding-block: 28px 34px;
  }

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

  .bismillah {
    margin-bottom: 8px;
    font-size: 19px;
  }

  .hero-kicker {
    max-width: 32ch;
    margin-bottom: 10px;
    font-size: 11px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: 40px;
    line-height: 1.03;
  }

  .lede {
    max-width: 35ch;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.52;
  }

  .hero-cta {
    display: grid;
    max-width: 205px;
    gap: 9px;
    margin-top: 20px;
  }

  .hero-cta .btn {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    line-height: 1.25;
  }

  .trust-line {
    max-width: 25ch;
    margin-top: 13px;
    font-size: 11px;
    line-height: 1.45;
  }

  .hero-product {
    position: absolute;
    right: 16px;
    bottom: 30px;
    width: 126px;
    margin: 0;
    opacity: 1;
    transform: rotate(1deg);
  }

  .phone-shell {
    border-width: 4px;
    border-radius: 23px;
  }

  .hero-product img {
    border-radius: 18px;
  }

  .hero-product figcaption {
    display: none;
  }

  .hero-scroll {
    display: none;
  }

  .section {
    padding: 58px 0;
  }

  .sec-title {
    font-size: 34px;
    line-height: 1.08;
  }

  .sec-sub {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.55;
  }

  .calc:has(.calc-result:not([hidden])),
  .steps,
  .screen-rail,
  .showcase-layout,
  .feat-groups,
  .pv-grid {
    grid-template-columns: 1fr;
  }

  .calc-form,
  .calc-result {
    padding: 22px 18px;
  }

  .step {
    padding: 19px 0;
  }

  .steps {
    margin-top: 30px;
  }

  .step-n {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
  }

  .step + .step {
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .screen-rail {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    margin-top: 26px;
    padding: 0 2px 22px;
    scroll-padding-left: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(255, 212, 0, 0.55) transparent;
  }

  .app-screen {
    flex: 0 0 82%;
    gap: 14px;
    padding-top: 0 !important;
    scroll-snap-align: start;
  }

  .tour-heading .sec-title {
    max-width: 16ch;
    font-size: 31px;
  }

  .product-tour {
    padding: 52px 0 42px;
  }

  .app-screen img {
    height: 360px;
    border-radius: 22px;
  }

  .app-screen figcaption {
    min-height: 58px;
  }

  .showcase-layout {
    gap: 32px;
  }

  .showcase-copy .sec-title,
  .showcase-copy .sec-sub {
    text-align: center;
  }

  .showcase-copy .section-label {
    text-align: center;
  }

  .video-phone {
    width: min(100%, 286px);
    margin-inline: auto;
  }

  .feat-groups,
  .pv-grid {
    gap: 0;
  }

  .feat-groups {
    margin-top: 36px;
  }

  .fg {
    padding: 20px 0;
  }

  .fg-head {
    margin-bottom: 7px;
  }

  .fg-head h3 {
    font-size: 23px;
  }

  .fg-item {
    padding: 5px 0;
  }

  .fg-item p {
    display: none;
  }

  .res-num {
    font-size: 52px;
  }

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

  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .hadith-card {
    padding: 38px 8px;
  }

  .hadith-ar {
    font-size: 29px;
    line-height: 1.75;
  }

  .hadith-tr {
    font-size: 20px;
    line-height: 1.55;
  }

  .store-badges {
    display: grid;
    max-width: 286px;
    margin-inline: auto;
  }

  .store {
    width: 100%;
  }

  .article h1,
  .legal h1 {
    font-size: 36px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 37px;
  }

  .hero-product {
    right: 14px;
    width: 116px;
  }

  .hero-cta {
    max-width: 190px;
  }
}

@media (max-width: 350px) {
  .brand > span:last-child {
    display: none;
  }

  .language-picker select {
    width: 124px;
  }

  .hero-product {
    right: 0;
    bottom: 18px;
    width: 88px;
  }
}

html[dir="rtl"] body {
  font-family: "Amiri", Georgia, serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .sec-title,
html[dir="rtl"] .res-num {
  font-family: "Amiri", Georgia, serif;
}

html[dir="rtl"] .showcase-copy .sec-title,
html[dir="rtl"] .showcase-copy .sec-sub,
html[dir="rtl"] .tour-heading,
html[dir="rtl"] .tour-heading .sec-title,
html[dir="rtl"] .tour-heading .sec-sub,
html[dir="rtl"] .step {
  text-align: right;
}

html[dir="rtl"] .step + .step {
  border-right: 1px solid var(--line-dark);
  border-left: 0;
}

html[dir="rtl"] .showcase-list li {
  padding-right: 28px;
  padding-left: 0;
}

html[dir="rtl"] .showcase-list li::before {
  right: 0;
  left: auto;
}

html[dir="rtl"] .store-txt {
  text-align: right;
}

@media (max-width: 720px) {
  html[dir="rtl"] .step + .step {
    border-top: 1px solid var(--line-dark);
    border-right: 0;
  }

  html[dir="rtl"] .hero-product {
    right: auto;
    left: 16px;
  }

  html[dir="rtl"] .hero-cta,
  html[dir="rtl"] .trust-line {
    margin-right: 0;
    margin-left: auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
