/*
  The landing page tryfalah.app shows off an iPhone. It borrows onboarding's
  game pages (src/onboarding/components/GameKit.tsx): rounded black type with a
  hard, unblurred shadow, white 3D cards standing on a mint edge, uppercase
  glass badges, gold and mint marks. Loaded only in landing mode, so the
  iPhone redirect page never waits on it.
*/

:root {
  --night: #041c18;
  --spring: #22c55e;
  --spring-top: #22b95c;
  --spring-mid: #1a9b4d;
  --spring-deep: #15803d;
  --ink: #111a15;
  --mint: #bbf7d0;
  --mint-edge: #a7d8b8;
  --gold: #fde68a;
  --type-shadow: rgba(0, 30, 12, 0.45);
  --lip: 7px;
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --serif-wordmark: Georgia, "Times New Roman", serif;
}

/* Night, not green: newer Safari tints the status bar from the page's own
   background, and the sections paint their own green over it anyway. */
.landing, .landing body {
  background: var(--night);
}
.landing body {
  margin: 0;
  color: #fff;
  font-family: var(--rounded);
  -webkit-font-smoothing: antialiased;
}

.lp { overflow-x: clip; }
.lp a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* Type ------------------------------------------------------------------ */

.h-hero, .h-section, .h-card {
  font-family: var(--rounded);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 3px 0 var(--type-shadow);
  margin: 0;
}
.h-hero { font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; text-shadow: 0 4px 0 var(--type-shadow); }
.h-section { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; text-align: center; }
.h-card { font-size: 22px; line-height: 1.2; text-shadow: none; }
.gold { color: var(--gold); }
.mint { color: var(--mint); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; font-weight: 700; color: rgba(255, 255, 255, 0.86); }
.section-lede { text-align: center; max-width: 620px; margin: 16px auto 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.badge svg { width: 16px; height: 16px; color: var(--gold); }

/* Glass: the nearest a browser gets to iOS's Liquid Glass. A blur and a
   saturation lift of what is behind, a bright rim, and a sheen across the top. */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 40, 16, 0.22);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

/* A white 3D card: the face, with the mint edge showing beneath it. */
.card3d {
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  box-shadow: 0 var(--lip) 0 var(--mint-edge), 0 18px 34px rgba(0, 40, 16, 0.22);
}

/* Buttons --------------------------------------------------------------- */

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 26px 0 20px;
  border-radius: 18px;
  background: #0b0f0d;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 0 #000, 0 16px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #000, 0 20px 34px rgba(0, 0, 0, 0.32); }
.store:active { transform: translateY(5px); box-shadow: 0 1px 0 #000, 0 8px 16px rgba(0, 0, 0, 0.3); }
.store svg { width: 30px; height: 30px; flex: none; }
.store small { display: block; font-size: 12px; font-weight: 600; opacity: 0.82; font-family: system-ui, sans-serif; }
.store strong { display: block; font-size: 23px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; font-family: system-ui, sans-serif; }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 0 22px;
  border-radius: 18px;
  font-weight: 800;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}
.soon svg { width: 22px; height: 22px; opacity: 0.9; }
.soon span { opacity: 0.7; font-weight: 700; }

.lp .btn3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--spring-deep);
  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--mint-edge);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.lp .btn3d:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--mint-edge); }
.lp .btn3d:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--mint-edge); }

/* Nav ------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  margin: 14px auto 0;
  max-width: 1120px;
  width: calc(100% - 32px);
  box-sizing: border-box;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 14px;
  border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); }
.brand span { font-family: var(--serif-wordmark); font-style: italic; font-weight: 700; font-size: 28px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 800; font-size: 16px; opacity: 0.9; }
.nav-links a:hover { opacity: 1; }

/* Menu: the button left of the wordmark, and the drawer it opens. --------- */

.nav-start { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  all: unset;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.15s ease;
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.24); }
.menu-btn:focus-visible, .drawer-close:focus-visible, .drawer-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.menu-btn span { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: #fff; }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(2, 12, 8, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  width: min(360px, 88vw);
  box-sizing: border-box;
  overflow-y: auto;
  padding: 20px 18px 28px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(90% 40% at 30% 100%, rgba(74, 222, 128, 0.35), rgba(74, 222, 128, 0) 70%),
    linear-gradient(180deg, var(--night) 0%, #062a20 45%, #0d5a32 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.45);
  transform: translateX(-104%);
  transition: transform 0.38s cubic-bezier(0.22, 1.2, 0.36, 1);
}
.drawer[hidden], .scrim[hidden] { display: none; }
.menu-open .drawer { transform: none; }
.menu-open .scrim { opacity: 1; }
.menu-open, .menu-open body { overflow: hidden; }

.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.drawer-close {
  all: unset;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--spring-deep);
  box-shadow: 0 4px 0 var(--mint-edge);
}
.drawer-close svg { width: 20px; height: 20px; }
.drawer-label {
  margin: 0 0 10px 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.drawer-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 18px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 900;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.15s ease, transform 0.15s ease;
}
.drawer-link:hover { background: rgba(255, 255, 255, 0.16); transform: translateX(3px); }
.drawer-link .ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--spring-deep);
  box-shadow: 0 4px 0 var(--mint-edge);
}
.drawer-link .ico svg { width: 21px; height: 21px; }
.drawer-link[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 5px 0 var(--mint-edge); border-color: transparent; }
.drawer-link[aria-current="page"] .ico { background: var(--spring); color: #fff; box-shadow: 0 4px 0 #0f3f22; }
.drawer-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 4px 0; }
.drawer-foot small { font-weight: 800; color: rgba(255, 255, 255, 0.65); font-size: 14px; }

/* Document pages: privacy, terms, support. ------------------------------ */

.doc-hero {
  position: relative;
  margin-top: -82px;
  padding: 130px 0 70px;
  background: linear-gradient(180deg, var(--night) 0%, #062a20 55%, var(--spring-mid) 100%);
  overflow: hidden;
  text-align: center;
}
.doc-hero .stars { inset: 0; }
.doc-hero .badge { position: relative; }
.doc-page { padding: 0 0 20px; }
.doc-page .foot { padding-top: 90px; }
.doc-card {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: -30px auto 0;
  padding: 44px 48px 48px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
.doc-card h1 {
  font-family: var(--rounded);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.doc-card h2 { font-family: var(--rounded); font-weight: 900; font-size: 24px; line-height: 1.25; margin: 44px 0 12px; color: var(--spring-deep); }
.doc-card h3 { font-family: var(--rounded); font-weight: 900; font-size: 18px; margin: 26px 0 6px; }
.doc-card p, .doc-card li { margin: 0 0 14px; color: #26322b; }
.doc-card ul, .doc-card ol { padding-left: 22px; }
.doc-card li { margin-bottom: 8px; }
.doc-card a { color: var(--spring-deep); font-weight: 600; }
.doc-card .meta { color: #5b6a61; font-size: 15px; margin-bottom: 30px; }
.doc-card .lede { font-size: 19px; line-height: 1.55; font-weight: 500; color: var(--ink); }
.doc-card hr { border: 0; border-top: 1px solid #e3e8e5; margin: 40px 0; }
.doc-card table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.doc-card th, .doc-card td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid #e3e8e5; }

/* Hero: the night sky turning to Spring, the way the launch screen does. ----- */

.hero {
  position: relative;
  margin-top: -82px;
  padding: 150px 0 120px;
  background:
    radial-gradient(70% 50% at 70% 100%, rgba(74, 222, 128, 0.45) 0%, rgba(74, 222, 128, 0) 70%),
    radial-gradient(50% 40% at 15% 85%, rgba(34, 197, 94, 0.35) 0%, rgba(34, 197, 94, 0) 70%),
    linear-gradient(180deg, var(--night) 0%, #062a20 34%, #0d5a32 66%, var(--spring-mid) 100%);
  overflow: hidden;
}
/* The glows lighten the sky's last rows; this lands it on the page's own green. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(26, 155, 77, 0), var(--spring-mid));
  pointer-events: none;
}
.stars { position: absolute; inset: 0 0 35% 0; pointer-events: none; }
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--t, 3s) ease-in-out var(--d, 0s) infinite;
}
.star.gold-star { background: #ffe9a8; box-shadow: 0 0 8px 2px rgba(253, 230, 138, 0.6); }
@keyframes twinkle { 0%, 100% { opacity: var(--o, 0.8); } 50% { opacity: 0.15; } }

.meteor {
  position: absolute;
  top: 8%;
  right: -10%;
  width: 140px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(253, 230, 138, 0), #fde68a);
  transform: rotate(-32deg);
  opacity: 0;
  animation: meteor 7s ease-in 2s infinite;
}
.meteor.m2 { top: 26%; right: 20%; width: 100px; animation-delay: 5.2s; animation-duration: 9s; }
@keyframes meteor {
  0% { opacity: 0; transform: rotate(-32deg) translateX(0); }
  4% { opacity: 1; }
  14% { opacity: 0; transform: rotate(-32deg) translateX(-520px); }
  100% { opacity: 0; transform: rotate(-32deg) translateX(-520px); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-copy .badge { margin-bottom: 26px; }
.hero-copy .lede { margin: 24px 0 36px; max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.phones { position: relative; height: 640px; }
.phone {
  position: absolute;
  width: 280px;
  aspect-ratio: 1179 / 2556;
  padding: 11px;
  border-radius: 52px;
  background: #0b0f0d;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.16),
    0 40px 80px rgba(0, 20, 8, 0.45),
    0 12px 24px rgba(0, 20, 8, 0.3);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 41px; overflow: hidden; background: #fff; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phones .back { left: 4%; top: 40px; transform: rotate(-7deg); }
.phones .front { right: 4%; top: 0; transform: rotate(5deg); }
.float { animation: float 6s ease-in-out infinite; }
.float.slow { animation-duration: 7.5s; animation-delay: -2s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

.sticker {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-weight: 900;
  font-size: 16px;
  white-space: nowrap;
}
.sticker .tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--spring);
  color: #fff;
  box-shadow: 0 4px 0 #0f3f22;
}
.sticker .tile svg { width: 22px; height: 22px; }
.sticker small { display: block; font-size: 13px; font-weight: 700; color: #4b5a51; }
.sticker.s1 { left: -4%; bottom: 96px; transform: rotate(-4deg); }
.sticker.s2 { right: -2%; top: 70px; transform: rotate(4deg); }
.sticker.s2 .tile { background: #fbbf24; box-shadow: 0 4px 0 #8a4b0b; }

/* Sections -------------------------------------------------------------- */

.page {
  background:
    radial-gradient(60% 30% at 85% 30%, rgba(134, 239, 172, 0.35) 0%, rgba(134, 239, 172, 0) 70%),
    radial-gradient(50% 25% at 10% 62%, rgba(74, 222, 128, 0.35) 0%, rgba(74, 222, 128, 0) 70%),
    linear-gradient(180deg, var(--spring-mid) 0%, var(--spring-top) 30%, var(--spring-mid) 70%, var(--spring-deep) 100%);
}
.section { padding: 110px 0; }
.section + .section { padding-top: 40px; }
.section .badge { display: flex; width: max-content; margin: 0 auto 22px; }

/* How it works: three steps as 3D cards with a numbered tile. */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.step { padding: 28px 26px 30px; }
.step .num {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  background: var(--spring);
  box-shadow: 0 6px 0 #0f3f22;
  text-shadow: 0 2px 0 rgba(0, 30, 12, 0.35);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.step .num::after { content: ""; position: absolute; inset: 0 0 55% 0; background: rgba(255, 255, 255, 0.2); }
.step:nth-child(2) .num { background: #fbbf24; box-shadow: 0 6px 0 #8a4b0b; }
.step:nth-child(3) .num { background: #0b0f0d; box-shadow: 0 6px 0 #000; }
.step p { margin: 10px 0 0; font-size: 17px; line-height: 1.5; font-weight: 600; color: #3f4c44; }

/* What's included: a phone that answers whichever card is chosen. */
.include { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; margin-top: 60px; }
.include .stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.include .phone { position: relative; width: 300px; }
.include .phone .screen img { opacity: 0; transition: opacity 0.5s ease; }
.include .phone .screen img.on { opacity: 1; }
.pager { display: flex; gap: 8px; }
.pager i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); transition: width 0.25s ease, background 0.25s ease; }
.pager i.on { width: 26px; border-radius: 4px; background: #fff; }

.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border-radius: 24px;
  transition: transform 0.18s ease, background 0.2s ease;
}
.feature:hover { transform: translateX(4px); }
.feature:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.feature .ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { margin: 2px 0 0; font-size: 20px; font-weight: 900; }
.feature p { margin: 6px 0 0; font-size: 16px; line-height: 1.5; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.feature .bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(17, 26, 21, 0.1); overflow: hidden; display: none; }
.feature .bar b { display: block; height: 100%; width: 0; background: var(--spring); border-radius: 3px; }
.feature.on { background: #fff; color: var(--ink); box-shadow: 0 var(--lip) 0 var(--mint-edge), 0 18px 34px rgba(0, 40, 16, 0.2); border-color: transparent; transform: none; }
.feature.on p { color: #3f4c44; }
.feature.on .ico { background: var(--spring); border-color: transparent; color: #fff; box-shadow: 0 4px 0 #0f3f22; }
.feature.on .bar { display: block; }
.feature.on .bar b { animation: fill var(--dwell, 5s) linear forwards; }
.include.held .feature.on .bar b { animation: none; width: 100%; }
@keyframes fill { to { width: 100%; } }

/* Why choose: three glass panes. */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.why .glass { padding: 30px 28px; }
.why .ico {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--spring-deep);
  box-shadow: 0 5px 0 var(--mint-edge);
  margin-bottom: 20px;
}
.why .ico svg { width: 28px; height: 28px; }
.why p { margin: 10px 0 0; font-size: 17px; line-height: 1.55; font-weight: 600; color: rgba(255, 255, 255, 0.86); }

/* And more: chips. */
.more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; font-weight: 800; font-size: 16px; }
.chip svg { width: 20px; height: 20px; color: var(--gold); }

/* FAQ */
.faq { max-width: 820px; margin: 52px auto 0; display: flex; flex-direction: column; gap: 14px; }
.faq details { border-radius: 22px; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  font-size: 19px;
  font-weight: 900;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--spring-deep);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 4px 0 var(--mint-edge);
  transition: transform 0.2s ease;
}
.faq details[open] .plus { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 24px; font-size: 17px; line-height: 1.6; font-weight: 600; color: rgba(255, 255, 255, 0.88); }
.faq .answer p { margin: 0; }
.faq .answer p + p { margin-top: 10px; }

/* Closing call */
.closing { padding: 40px 0 120px; }
.closing .card3d {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 64px 32px;
  background:
    radial-gradient(60% 80% at 50% 120%, rgba(34, 197, 94, 0.5), rgba(34, 197, 94, 0) 70%),
    linear-gradient(180deg, var(--night), #0a3d27);
  color: #fff;
  box-shadow: 0 var(--lip) 0 #000, 0 24px 50px rgba(0, 30, 12, 0.35);
}
.closing .card3d .h-section { position: relative; }
.closing .lede { position: relative; max-width: 560px; margin: 18px auto 34px; }
.closing .cta-row { position: relative; justify-content: center; }
.closing .stars { inset: 0; }

footer.foot { padding: 0 0 48px; }
.foot .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot nav a { text-decoration: none; font-weight: 800; opacity: 0.85; }
.foot nav a:hover { opacity: 1; }
.foot small { font-weight: 700; opacity: 0.75; font-size: 14px; }

/* Things pop into place as they scroll in, the way onboarding's pages do. */
.pop { opacity: 0; transform: translateY(24px) scale(0.94); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pop.in { opacity: 1; transform: none; }

/* Narrow screens (Android phones land here) ------------------------------ */

@media (max-width: 960px) {
  .wrap { padding: 0 16px; }
  .nav { height: 60px; width: calc(100% - 24px); }
  .nav-links a:not(.btn3d) { display: none; }
  .menu-btn { width: 40px; height: 40px; }
  .doc-hero { padding: 110px 0 60px; }
  .doc-card { padding: 30px 20px 34px; font-size: 16px; }
  .doc-card h2 { font-size: 21px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: 24px; }
  .hero { padding: 120px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .phones { height: 520px; max-width: 420px; width: 100%; margin: 20px auto 0; }
  .phone { width: 220px; border-radius: 42px; padding: 9px; }
  .phone .screen { border-radius: 33px; }
  .sticker { font-size: 14px; padding: 10px 12px; }
  .sticker.s1 { left: 0; bottom: 40px; }
  .sticker.s2 { right: 0; top: 30px; }
  .section { padding: 80px 0; }
  .how-steps, .why { grid-template-columns: 1fr; }
  .include { grid-template-columns: 1fr; gap: 36px; }
  .include .phone { width: 250px; }
  .faq summary { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .star, .meteor, .float { animation: none; }
  .drawer, .scrim { transition: none; }
  .meteor { display: none; }
  .pop { opacity: 1; transform: none; transition: none; }
  .include .phone .screen img { transition: none; }
  .feature.on .bar b { animation: none; width: 100%; }
}
