/* Minimal + playful: cream page, huge type, clay objects you can tap, screenshots on teal tiles (one hue, three depths) */
.landing { --deep: #01524F; --mid: #04847D; --mint: #E3EFEC; --mint2: #CFE6DE; --glow: #9FE3C9; }
.wrap-x {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
/* Top: one floating pill. One font (Bricolage), one height, one centre line */
.lp-top { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 30; display: flex; justify-content: center; padding-inline: 12px; margin-top: 12px; }
.pill-nav { --h: 40px; display: flex; align-items: center; gap: 2px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 999px; padding: 5px; box-shadow: 0 14px 34px -18px rgba(1, 82, 79, 0.45); max-width: 100%; }
.pill-nav .brand { display: inline-flex; align-items: center; gap: 10px; height: var(--h); padding: 0 14px 0 0; color: var(--ink); text-decoration: none; }
.pill-nav .brand img { width: var(--h); height: var(--h); border-radius: 999px; display: block; }
.pill-nav .brand span { font: 600 21px/1 var(--display); letter-spacing: -0.015em; }
.pn-links { display: flex; gap: 2px; }
.pn-links a, .pill-nav .chip { display: inline-flex; align-items: center; height: var(--h); padding: 0 15px; border-radius: 999px; font: 500 16px/1 var(--display); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; }
.pn-links a { color: var(--ink); transition: background .15s, color .15s; }
@media (hover: hover) { .pn-links a:hover { background: var(--mint); color: var(--accent); } }
.pill-nav a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pill-nav .chip { gap: 8px; padding: 0 18px 0 15px; background: #000; color: #fff; margin-left: 6px; font: 600 15px/1 -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
.pill-nav .chip .apple-mini { width: 15px; height: 18px; flex: none; }
@media (max-width: 560px) {
  .lp-top { padding-inline: 10px; }
  .pill-nav { --h: 36px; width: 100%; justify-content: space-between; padding: 4px; }
  .pill-nav .chip { display: none; }
  .pill-nav .brand { padding-right: 4px; gap: 8px; }
  .pill-nav .brand span { font-size: 19px; }
  .pn-links a { padding: 0 11px; font-size: 15px; }
}
@media (max-width: 400px) { .pn-links a { padding: 0 9px; } }
@media (max-width: 370px) { .pill-nav .brand span { display: none; } }


/* Navbar: scrolling down melts the whole bar into a small black pill whose dots breathe like "thinking"; tap it, or scroll up, to open the full bar */
.lp-top { --ease-out: cubic-bezier(.22, 1, .36, 1); }
.lp-top .pill-nav { transform-origin: 50% 30%; transition: transform .6s var(--ease-out), opacity .45s var(--ease-out), filter .45s var(--ease-out); }
.mini-nav { position: absolute; left: 50%; top: 0; transform: translate(-50%, -6px) scale(.86); opacity: 0; filter: blur(6px); pointer-events: none; display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer; background: var(--ink); color: #fff; padding: 5px 18px 5px 5px; border-radius: 999px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55); transition: transform .6s var(--ease-out), opacity .45s var(--ease-out), filter .45s var(--ease-out); }
.mini-nav img { width: 34px; height: 34px; border-radius: 50%; display: block; }
.mini-nav .dots { display: inline-flex; align-items: center; gap: 5px; height: 34px; }
.mini-nav .dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .35; }
.mini-nav:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) { .mini-nav:hover { transform: translate(-50%, 0) scale(1.06); } }
.lp-top.mini .pill-nav { transform: translateY(-6px) scale(.55); opacity: 0; filter: blur(8px); pointer-events: none; }
.lp-top.mini .mini-nav { transform: translate(-50%, 0) scale(1); opacity: 1; filter: blur(0); pointer-events: auto; }
@media (prefers-reduced-motion: no-preference) {
  .mini-nav .dots i { animation: think 1.3s ease-in-out infinite; }
  .mini-nav .dots i:nth-child(2) { animation-delay: .18s; }
  .mini-nav .dots i:nth-child(3) { animation-delay: .36s; }
  @keyframes think { 0%, 70%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .lp-top .pill-nav, .mini-nav { transition: opacity .2s ease; filter: none !important; } }

/* Stage: objects live in two side rails, the words own the middle, nothing ever overlaps */
.stage { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 780px) minmax(150px, 1fr); align-items: stretch; gap: 12px; max-width: 1440px; margin: 0 auto; padding-block: 24px 90px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
.rail { display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 18px; min-width: 0; }
.rail .obj:nth-child(even) { align-self: flex-end; }
.rail .obj:nth-child(odd) { align-self: flex-start; }
.rail-r .obj:nth-child(even) { align-self: flex-start; }
.rail-r .obj:nth-child(odd) { align-self: flex-end; }
.stage-copy { position: relative; z-index: 3; text-align: center; min-width: 0; align-self: center; padding-block: 40px; }
.stage h1 { font: 800 clamp(52px, 8.6vw, 128px)/0.9 var(--display); letter-spacing: -0.045em; margin: 0 0 26px; color: var(--ink); }
.stage h1 span { color: var(--accent); }
.stage p { font-size: clamp(18px, 2vw, 22px); color: var(--muted); margin: 0 auto; max-width: 32ch; }
.counter-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; background: var(--mint); color: var(--accent); font: 600 15px var(--body); padding: 6px 16px 6px 6px; border-radius: 999px; }
.counter-pill.bump { animation: bump .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.counter-pill b { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: #fff; font: 800 15px var(--display); font-variant-numeric: tabular-nums; }

.obj { position: relative; z-index: 2; max-width: 100%; border: 0; padding: 0; background: none; cursor: pointer; width: var(--s, 130px); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.obj img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 18px rgba(1, 82, 79, 0.18)); pointer-events: none; user-select: none; -webkit-user-drag: none; }
@media (hover: hover) { .obj:hover img { transform: scale(1.06); transition: transform .2s; } }
.obj:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 24px; }
.obj .tag { position: absolute; left: 50%; top: -6px; transform: translate(-50%, 0); font: 700 15px var(--display); color: #fff; background: var(--accent); padding: 5px 11px; border-radius: 999px; white-space: nowrap; opacity: 0; pointer-events: none; }
.obj.tapped .tag { animation: rise 1.4s ease-out; }
.obj.tapped img { animation: squish .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rise { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -12px) scale(1); } 70% { opacity: 1; transform: translate(-50%, -30px); } 100% { opacity: 0; transform: translate(-50%, -64px); } }
@keyframes squish { 0% { transform: scale(1); } 30% { transform: scale(1.18, .84); } 60% { transform: scale(.92, 1.1); } 100% { transform: scale(1); } }

.o1 { --s: 150px; } .o7 { --s: 105px; } .o2 { --s: 125px; } .o9 { --s: 110px; } .o3 { --s: 140px; }
.o4 { --s: 135px; } .o8 { --s: 110px; } .o5 { --s: 150px; } .o10 { --s: 120px; } .o6 { --s: 120px; }
@media (prefers-reduced-motion: no-preference) {
  .obj { animation: drift var(--d, 7s) ease-in-out var(--dl, 0s) infinite; }
    @keyframes drift { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 -14px; rotate: 3deg; } }
}

/* Section heads */
.head { text-align: center; margin: 0 auto 48px; max-width: 760px; }
.head h2 { font: 800 clamp(40px, 6.4vw, 80px)/0.95 var(--display); letter-spacing: -0.035em; margin: 0 0 16px; text-wrap: balance; }
.head h2 span { color: var(--accent); }
.head p { font-size: 19px; color: var(--muted); margin: 0 auto; max-width: 40ch; }

/* Screenshot tiles: bento on computers, a swipeable row on phones; phones rise in as you scroll */
.shots { padding-block: 40px 110px; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: 36px; padding: 34px 32px 0; display: flex; flex-direction: column; background: var(--mint); color: var(--ink); isolation: isolate; }
.tile .t-label { font: 600 15px var(--body); color: var(--accent); margin: 0 0 8px; }
.tile h3 { font: 800 clamp(28px, 2.8vw, 38px)/1.0 var(--display); letter-spacing: -0.02em; margin: 0; max-width: 13ch; text-wrap: balance; }
.tile .shot { margin: 28px auto -120px; width: min(270px, 82%); height: 500px; border-radius: 34px; overflow: hidden; border: 8px solid #13201E; box-shadow: 0 30px 60px -26px rgba(0, 0, 0, 0.5); background: #fff; position: relative; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.tile .shot img { display: block; width: 100%; height: auto; }
.tile::after { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%); z-index: -1; transition: transform .6s ease; }
@media (hover: hover) {
  .tile:hover .shot { transform: translateY(-18px) rotate(-1.5deg); }
  .tile:hover .pop { transform: translateY(-6px) scale(1.04); }
  .tile:hover::after { transform: translate(-20%, 20%); }
}
.t-today { grid-column: span 4; background: var(--deep); color: #fff; flex-direction: row; gap: 24px; align-items: stretch; }
.t-today .t-copy { flex: 1; min-width: 0; padding: 10px 0 34px; display: flex; flex-direction: column; }
.t-today .t-label { color: var(--glow); }
.t-today h3 { font-size: clamp(36px, 4.4vw, 60px); max-width: 10ch; }
.t-today p { color: #BFD9D3; font-size: 18px; margin: 16px 0 0; max-width: 28ch; }
.t-today .shot { margin: 0 10px -120px 0; align-self: flex-end; flex: none; width: min(300px, 42%); height: 590px; }
.t-log { grid-column: span 2; background: var(--mint2); }
.t-quran { grid-column: span 2; background: var(--mid); color: #fff; }
.t-quran .t-label, .t-qibla .t-label { color: var(--glow); }
.t-adhkar { grid-column: span 2; background: var(--mint); }
.t-qibla { grid-column: span 2; background: var(--deep); color: #fff; }
.t-log::after, .t-adhkar::after { background: radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 65%); }
.swipe-hint { display: none; }

/* A floating card from each screen, pinned to the phone's edge */
.pop { position: absolute; z-index: 3; display: grid; gap: 1px; background: rgba(255, 255, 255, 0.95); color: var(--ink); border-radius: 18px; padding: 10px 14px 11px; box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.45); transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); white-space: nowrap; }
.pop small { font: 600 12px var(--body); color: var(--accent); }
.pop strong { font: 800 20px/1.1 var(--display); letter-spacing: -0.01em; }
.pop.ink { background: var(--ink); color: #fff; }
.pop.ink small { color: var(--glow); }
.t-today .pop { right: 40%; bottom: 70px; }
.t-log .pop { left: 18px; bottom: 56px; }
.t-quran .pop { right: 16px; bottom: 120px; }
.t-adhkar .pop { left: 16px; bottom: 90px; }
.t-qibla .pop { right: 16px; bottom: 60px; }
@media (prefers-reduced-motion: no-preference) {
  .pop { animation: float 5s ease-in-out infinite; }
  .t-log .pop { animation-delay: -1s; } .t-quran .pop { animation-delay: -2s; } .t-adhkar .pop { animation-delay: -3s; } .t-qibla .pop { animation-delay: -4s; }
  @keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
}

/* Rise in, driven by scroll position in CSS: content is always visible; browsers without support simply skip the motion */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tile .shot { animation: shotRise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes shotRise { from { translate: 0 90px; } to { translate: 0 0; } }
  }
}

@media (max-width: 900px) {
  .shots { padding-inline: 0; }
  .shots .head { padding-inline: 20px; }
  .tiles { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(20px, env(safe-area-inset-left, 0px)) 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tiles::-webkit-scrollbar { display: none; }
  .tile, .t-today { flex: 0 0 min(82vw, 340px); scroll-snap-align: center; flex-direction: column; padding: 26px 24px 0; border-radius: 30px; }
  .t-today .t-copy { padding: 0; }
  .t-today h3, .tile h3 { font-size: 32px; }
  .t-today p { font-size: 16px; margin-top: 10px; }
  .t-today .shot, .tile .shot { width: 78%; height: 470px; margin: 22px auto -110px; align-self: center; }
  .pop { transform: scale(.9); }
  .swipe-hint { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
  .swipe-hint i { width: 7px; height: 7px; border-radius: 999px; background: var(--line); transition: width .25s, background .25s; }
  .swipe-hint i.on { width: 22px; background: var(--accent); }
}

/* Honest: the rule as three rows of names sliding past; the weak row crossed out */
.honest { padding-block: 40px 120px; text-align: center; }
.honest-copy h2 { font: 800 clamp(44px, 6.4vw, 84px)/0.92 var(--display); letter-spacing: -0.035em; margin: 0 0 18px; text-wrap: balance; }
.honest-copy h2 span { color: var(--accent); }
.honest-copy p { font-size: 19px; color: var(--muted); margin: 0 auto; max-width: 40ch; }
.rows { margin-top: 44px; display: grid; gap: 14px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.row { display: flex; gap: 14px; width: max-content; }
.row span { font: 800 clamp(24px, 3.6vw, 44px)/1 var(--display); letter-spacing: -0.015em; padding: 16px 28px; border-radius: 999px; background: var(--accent); color: #fff; white-space: nowrap; }
.row.b span { background: var(--mint2); color: var(--ink); }
.row.x span { background: transparent; color: #A7AFAD; border: 2px dashed #C7C9C3; text-decoration: line-through; text-decoration-thickness: 3px; }
.honest .small { font-size: 14px; color: var(--muted); margin: 30px auto 0; }
@media (prefers-reduced-motion: no-preference) {
  .row { animation: tick 32s linear infinite; }
  .row.b { animation-direction: reverse; animation-duration: 38s; }
  .row.x { animation-duration: 44s; }
  @media (hover: hover) { .rows:hover .row { animation-play-state: paused; } }
  @keyframes tick { to { transform: translateX(-50%); } }
}
@media (max-width: 760px) {
  .honest { padding-block: 20px 90px; }
  .rows { margin-top: 32px; gap: 10px; }
  .row { gap: 10px; }
  .row span { font-size: 22px; padding: 12px 20px; }
}

/* Ending */
.store { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 28px; }
.store span { font: 600 14px var(--body); color: var(--muted); }
.store img { display: block; height: 50px; width: auto; }
.store-light span { color: #CFE6DE; }
.store-light img { outline: 1px solid rgba(255, 255, 255, 0.35); border-radius: 9px; }

/* Footer: message, three groups of details, then a giant centred SAWAB filling the full width with a slow light sweep */
.end { display: block; margin: 0 12px 12px; border-top: 0; gap: 0; background: var(--accent); color: #fff; border-radius: 40px; padding-top: 64px; padding-bottom: 0; overflow: hidden; position: relative; font-size: 16px; }
.end p { margin: 0; }
.end-top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.end-top h2 { font: 800 clamp(30px, 3.6vw, 46px)/1 var(--display); letter-spacing: -0.025em; margin: 0; }
.end-top h2 span { color: var(--glow); }
.end-top .soon-store { margin-top: 0; }
.end-info { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 0; align-items: start; }
.end-logo { --ic: 60px; display: inline-flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; margin-bottom: 18px; }
.end-logo img { width: var(--ic); height: var(--ic); border-radius: 16px; box-shadow: 0 0 0 6px rgba(159, 227, 201, 0.16), 0 14px 26px -12px rgba(0, 0, 0, 0.55); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
/* The SAWAB lettering inside the icon sits at 57% of its height, so the word is centred on that line, not on the box */
.end-logo span { font: 800 38px/1 var(--display); letter-spacing: -0.03em; transform: translateY(calc(var(--ic) * 0.07)); background: linear-gradient(100deg, #FFFFFF 0%, #DDF7EC 45%, #9FE3C9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (hover: hover) { .end-logo:hover img { transform: rotate(-6deg) scale(1.05); } }
.mail-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--accent) !important; font: 700 16px var(--body); padding: 12px 18px 12px 14px; border-radius: 999px; transition: transform .2s, box-shadow .2s; }
.mail-btn svg { width: 20px; height: 20px; }
.mail-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.5); color: var(--accent) !important; }
.end-info .reply { font-size: 14px; color: #BFD9D3; margin-top: 12px; }
.legal { display: grid; gap: 8px; justify-items: start; }
.legal a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font: 600 15px var(--body); transition: background .2s; }
.legal a i { font-style: normal; opacity: .6; transition: transform .2s, opacity .2s; }
.end .legal a, .end .legal a:hover, .end .legal a:focus-visible { color: #fff; text-decoration: none; }
.legal a:hover { background: rgba(255, 255, 255, 0.2); }
.legal a:focus-visible, .mail-btn:focus-visible, .end-logo:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }
.legal a:hover i { transform: translateX(3px); opacity: 1; }
.end-info .lbl { font: 600 14px var(--body); color: var(--glow); margin: 0 0 10px; }
.end-info p { margin: 0; font-size: 16px; line-height: 1.65; color: #E6F1EE; max-width: none; }
.end-info a { color: #fff; font-weight: 700; text-decoration: none; }
.end-info a:hover { text-decoration: none; }
.end p.end-copy { margin: 40px auto 0; text-align: left; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.end .word { display: block; width: 100%; height: auto; margin-top: 28px; margin-bottom: -1.2%; }
@media (prefers-reduced-motion: no-preference) {
  .end .word .sweep { animation: sweep 6s ease-in-out infinite; }
  @keyframes sweep { 0% { transform: translateX(0); } 60%, 100% { transform: translateX(1500px); } }
}
@media (max-width: 760px) {
  .end { padding-top: 44px; border-radius: 30px; margin: 0 8px 8px; }
  .end-top { flex-direction: column; align-items: flex-start; }
  .end-info { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 0; }
  .end-logo { --ic: 52px; }
  .end-logo span { font-size: 33px; }
}
}
@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 8px 48px; }
  .rail { flex-direction: row; justify-content: space-around; align-items: center; gap: 6px; }
  .rail .obj { align-self: center !important; --s: 21vw; max-width: 104px; }
  .rail .obj:nth-child(5) { display: none; }
  .rail .obj:nth-child(even) { margin-top: 26px; }
  .stage-copy { padding-block: 24px; }
}

/* Coming soon button: not Apple's badge, so nobody thinks it is downloadable yet */
.soon-store { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; height: 54px; padding: 0 20px 0 14px; background: #000; color: #fff; border: 1px solid #A6A6A6; border-radius: 12px; text-align: left; }
.soon-store .apple { width: 26px; height: 30px; flex: none; }
.soon-store span { display: grid; font: 600 22px/1 -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.02em; }
.soon-store small { font: 500 11.5px/1.2 -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; color: #fff; }
.soon-store.light { background: #000; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
