/* Mubin landing v3. Light page, dark app: the phone is the loudest thing on it. */
:root {
  --bg: #f6f4ee;
  --ink: #15161a;
  --muted: #5e6068;
  --line: #dcd8cd;
  --gold: #a07a2e;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
.defs { position: absolute; }
h1, h2 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

/* Hero */
.hero {
  padding: max(14px, env(safe-area-inset-top)) 22px 0;
  text-align: center;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 21px/1 var(--serif); letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
h1 { font-size: 52px; line-height: 0.98; margin-top: 16px; }
.sub { margin: 12px auto 0; max-width: 19em; font-size: 17.5px; line-height: 1.36; color: var(--muted); text-wrap: balance; }

/* Store badges */
.badges { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.badge {
  display: flex; align-items: center; gap: 9px;
  height: 56px; padding: 0 16px 0 13px;
  border-radius: 12px;
  background: #000; color: #fff;
  border: 1px solid #000;
  text-decoration: none; text-align: left;
  font: 600 20px/1.05 var(--sans); letter-spacing: -0.02em; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.badge svg { width: 30px; height: 30px; flex: none; fill: currentColor; margin-top: -3px; }
.badge small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0; margin-bottom: 2px; }
a.badge { box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55); transition: transform .15s ease; }
a.badge:active { transform: scale(.97); }
.badge.soon {
  background: transparent; color: #8b8d94; border-color: #c9c5ba;
  font-size: 16px; padding: 0 13px 0 11px; gap: 7px;
}
.badge.soon svg { width: 22px; height: 22px; margin-top: 0; }
.badge.soon small { font-size: 10.5px; }
.note { margin-top: 10px; font-size: 13px; color: var(--muted); text-wrap: balance; }
.on-droid { display: none; }

/* The phone: one real screen, verses scroll inside it */
.phone {
  position: relative;
  width: min(84vw, 340px);
  margin: 20px auto 0;
  padding: 9px;
  border-radius: 54px;
  background: #0b0b0d;
  box-shadow:
    inset 0 0 0 1.5px #3a3b40,
    0 40px 70px -30px rgba(21, 22, 26, .55),
    0 14px 28px -14px rgba(21, 22, 26, .35);
}
.screen { position: relative; overflow: hidden; border-radius: 45px; background: #1b1c20; aspect-ratio: 1206 / 2622; }
.shot { width: 100%; height: 100%; }
.win {
  position: absolute; overflow: hidden;
  left: 9.95%; top: 24.409%; width: 75.041%; height: 48.055%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.strip { height: 400%; animation: feed 11s infinite; will-change: transform; }
.strip img { width: 100%; height: 25%; }
@keyframes feed {
  0%, 26% { transform: translateY(0); animation-timing-function: cubic-bezier(.5, 0, .1, 1); }
  33%, 59% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.5, 0, .1, 1); }
  66%, 92% { transform: translateY(-50%); animation-timing-function: cubic-bezier(.5, 0, .1, 1); }
  100% { transform: translateY(-75%); }
}
.rail { position: absolute; left: 0; top: 24.409%; width: 9.95%; height: 48.055%; opacity: 0; animation: 11s infinite; }
.rail.r4 { animation-name: rail4; }
.rail.r5 { animation-name: rail5; }
@keyframes rail4 { 0%, 28% { opacity: 0; } 32%, 61% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes rail5 { 0%, 61% { opacity: 0; } 65%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .strip, .rail { animation: none; } }

/* Sections: one idea, one big real crop */
main { padding: 0 22px; }
.feat { margin-top: 92px; text-align: center; }
.feat h2, .final h2 { font-size: 34px; line-height: 1.06; }
.feat p { margin: 12px auto 0; max-width: 20em; color: var(--muted); text-wrap: balance; }
.tile {
  width: 100%; max-width: 400px; margin: 28px auto 0;
  border-radius: 30px;
  background: #1b1c20;
  box-shadow: 0 34px 60px -30px rgba(21, 22, 26, .5), 0 10px 22px -12px rgba(21, 22, 26, .3);
}
.tile.card { border-radius: 6.6% / 8.4%; }

/* Final call */
.final { margin-top: 104px; text-align: center; }
.final > img { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 18px; box-shadow: 0 16px 30px -14px rgba(21, 22, 26, .5); }
.final .badges { margin-top: 26px; }

footer { margin-top: 84px; padding: 26px 22px calc(96px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; font-size: 13.5px; color: var(--muted); }
footer nav { display: flex; justify-content: center; gap: 26px; margin-bottom: 12px; }
footer a { color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px 2px; }
.tm { margin-top: 8px; font-size: 11.5px; opacity: .8; }

/* Floating download button, once the hero badge is out of view */
.dock {
  position: fixed; z-index: 5;
  left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px;
  height: 54px; padding: 0 24px 0 20px;
  border-radius: 27px;
  background: #000; color: #fff;
  font: 600 17px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .6);
  transform: translate(-50%, 90px); opacity: 0; visibility: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s, visibility 0s .3s;
}
.dock svg { width: 22px; height: 22px; fill: currentColor; margin-top: -3px; }
.dock.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }

/* Android: Google Play comes first, said plainly */
.android .on-ios { display: none; }
.android .on-droid { display: inline; }
.android .badges { flex-direction: row-reverse; }
.android .badge.soon { color: var(--ink); border-color: var(--ink); }
.android .dock { display: none; }
.android .note { color: var(--ink); font-weight: 600; max-width: 22em; margin-left: auto; margin-right: auto; }

@media (max-width: 374px) {
  h1 { font-size: 46px; }
  .badge { font-size: 18px; padding: 0 12px 0 10px; }
  .badge.soon { font-size: 14px; padding: 0 10px 0 8px; }
  .badge svg { width: 26px; height: 26px; }
  .feat h2, .final h2 { font-size: 30px; }
}

@media (min-width: 900px) {
  .hero {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 72px;
    max-width: 1040px; margin: 0 auto; padding: 56px 40px 0; text-align: left;
  }
  h1 { font-size: 92px; margin-top: 44px; }
  .sub { margin-left: 0; font-size: 22px; }
  .badges { justify-content: flex-start; margin-top: 30px; }
  .phone { width: 340px; margin: 0; }
  main { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
  .feat { display: grid; grid-template-columns: 1fr 400px; align-items: center; gap: 72px; margin-top: 140px; text-align: left; }
  .feat:nth-child(2) { grid-template-columns: 400px 1fr; }
  .feat:nth-child(2) .feat-text { order: 2; }
  .feat h2 { font-size: 52px; }
  .feat p { margin-left: 0; font-size: 20px; }
  .tile { margin: 0; }
  .final { margin-top: 160px; }
  .final h2 { font-size: 60px; }
  .final .badges { justify-content: center; }
  .dock { display: none; }
}
