/* Psalmboek: the app's own style on the web. Cream paper, ink outlines on hard shadows,
   muted teal and coral, EB Garamond. Calm, like the app: things settle, nothing swings. */

@font-face { font-family: "Garamond"; src: url(/assets/fonts/EBGaramond_400Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Garamond"; src: url(/assets/fonts/EBGaramond_400Regular_Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Garamond"; src: url(/assets/fonts/EBGaramond_500Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Garamond"; src: url(/assets/fonts/EBGaramond_600SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bravura"; src: url(/assets/fonts/Bravura.woff2) format("woff2"); font-display: block; }

:root {
  --paper: #F1EBE1;
  --surface: #FDFBF6;
  --card: #F9F3E7;
  --ink: #141414;
  --teal: #94C2BF;
  --launch: #8DC0BF;
  --coral: #F29E8A;
  --rubric: #B84F3D;
  --serif: "Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* The app's own curves: snappy for most things, a spring with a little bounce (0.12–0.2). */
  --snappy: cubic-bezier(.2, .9, .3, 1);
  --spring: cubic-bezier(.3, 1.18, .45, 1);
  --press: cubic-bezier(.3, 1.7, .5, 1);
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* Smooth only once the page has landed: on load it would race the jump to a linked section. */
html.smooth { scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 20px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* Nothing pokes out sideways; clip, not hidden, so the story's phone can still stay put. */
main { overflow-x: clip; }
a { color: inherit; }
h1, h2 { font-weight: 500; line-height: 1.04; letter-spacing: -.012em; margin: 0; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
h2 { font-size: clamp(38px, 4.4vw, 58px); }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--coral); }

/* ---------- Building blocks, as the app draws them ---------- */

.pill {
  display: inline-block; font-family: var(--round); font-weight: 800; font-size: 12px;
  letter-spacing: .09em; text-transform: uppercase; padding: 4px 13px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 99px;
  box-shadow: 0 3px 0 var(--ink); margin-bottom: 20px;
}
/* The stores' own badges, as they give them: only a little lift under the pointer. */
.badge { display: block; flex: none; border-radius: 9px; -webkit-tap-highlight-color: transparent; transition: transform .25s var(--snappy), filter .25s; }
.badge img { height: 54px; width: auto; }
.badge-sm img { height: 40px; }
@media (hover: hover) { .badge:hover { transform: translateY(-2px); filter: drop-shadow(0 6px 10px rgba(20,20,20,.22)); } }
.badge:active { transform: translateY(1px); transition-duration: .06s; }

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 32px 0 24px; }
.get.center { justify-content: center; }

.facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 20px; font-family: var(--round); font-weight: 700; font-size: 14px; }
/* Little ink-edged chips, like the app's own labels, each with a plain ink tick. */
.facts li { display: flex; align-items: center; gap: 8px; line-height: 1; padding: 7px 13px 7px 9px; border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); box-shadow: 0 3px 0 var(--ink); }
.facts li::before { content: ""; flex: none; width: 5px; height: 9px; margin: -3px 1px 0 3px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; border-radius: 1px; rotate: 45deg; }

/* ---------- Phones: the real screen in a thin bezel ---------- */

.phone {
  position: relative; border-radius: 15.5% / 7.2%; background: #1b1b1b; padding: 2.6%;
  box-shadow: 0 0 0 1.5px #3a3a3a inset, 0 40px 70px -30px rgba(40,25,20,.45), 0 12px 24px -12px rgba(40,25,20,.25);
}
.phone img { width: 100%; border-radius: 13.5% / 6.2%; }

/* ---------- Splash: the app's own opening ---------- */

.splash {
  position: fixed; inset: 0; z-index: 100; background: var(--launch);
  display: grid; place-items: center; cursor: pointer;
  transition: opacity .35s ease-out .2s;
}
.no-splash .splash { display: none; }
.splash.leave { opacity: 0; pointer-events: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; transition: transform .22s ease-in, opacity .22s ease-in, filter .22s ease-in; }
.splash.leave .splash-inner { transform: scale(1.12); opacity: 0; filter: blur(4px); }
.lyre { position: relative; }
.lyre canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lyre img { position: relative; }
.splash-lyre { width: 132px; height: 142px; }
.splash-name { font-size: 42px; font-weight: 600; margin-top: 24px; letter-spacing: .2em; opacity: 0; filter: blur(5px); transition: letter-spacing .8s var(--spring), opacity .6s, filter .6s; }
.splash-sub { font-style: italic; font-size: 19px; opacity: 0; transition: opacity .6s .2s; }
.splash.named .splash-name { letter-spacing: .01em; opacity: 1; filter: none; }
.splash.named .splash-sub { opacity: .6; }
.rising { position: absolute; font-family: Bravura; line-height: 1; pointer-events: none; animation: rise 1s var(--snappy) forwards; }
@keyframes rise {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.7); }
  25% { opacity: .9; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -70px); }
}

/* ---------- Top bar ---------- */

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background .6s ease-out, box-shadow .4s, color .6s ease-out;
}
/* Over the dark lock-screen step the bar turns dark with it. */
.topbar.dark { color: var(--paper); }
.topbar.scrolled { background: color-mix(in srgb, var(--bar, var(--paper)) 90%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgba(20,20,20,.12); }
.topbar.scrolled.dark { box-shadow: 0 1px 0 rgba(241,235,225,.14); }
/* One button for both stores: on a phone it goes to its own, elsewhere down to both badges.
   It waits until the hero's badges have scrolled away: never two calls at once. */
.cta { font-family: var(--round); font-weight: 800; font-size: 15px; text-decoration: none; color: var(--ink);
  padding: 9px 18px; background: var(--coral); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink);
  opacity: 0; translate: 0 -8px; pointer-events: none; -webkit-tap-highlight-color: transparent;
  transition: opacity .3s, translate .45s var(--spring), transform .15s var(--press), box-shadow .15s, background-color .6s ease-out; }
.past .cta { opacity: 1; translate: 0; pointer-events: auto; }
.topbar.coral .cta { background: var(--teal); }
@media (hover: hover) { .cta:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); } }
.cta:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); transition-duration: .06s; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 25px; font-weight: 600; }
.brand img { border-radius: 9px; border: 2px solid var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100svh; background: var(--coral); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 48px;
  /* Content in a centred 1200px column, the colour running edge to edge. */
  padding: 110px max(var(--gutter), calc((100% - 1200px) / 2)) 70px;
}
.hero-copy { position: relative; z-index: 2; max-width: 660px; }
.hero h1 { font-size: clamp(50px, 5.6vw, 92px); margin-bottom: 26px; }
.hero h1 .line { display: block; }
@media (min-width: 961px) { .hero h1 .line { white-space: nowrap; } }
.lead { font-size: clamp(20px, 1.55vw, 23px); max-width: 30em; line-height: 1.45; }

.hero-stage { position: relative; z-index: 1; justify-self: center; }
/* The pair is centred in its column: the back phone peeks out to the right. */
.phones { position: relative; width: min(350px, calc((100svh - 190px) * .46)); aspect-ratio: 1 / 2.112; translate: -26.5% 0;
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .9s var(--snappy); }
.phones .phone { position: absolute; inset: 0; }
.phones .back { transform: translate(58%, 0) scale(.9); translate: 0 var(--drift, 0px); }
.phones .front { translate: 0 calc(var(--drift, 0px) * -.4); }

/* Entrance: the app's short spring, in order. */
.pre .hero h1, .pre .hero .lead, .pre .hero .get, .pre .hero .facts { opacity: 0; transform: translateY(10px); }
.pre .phones .front { opacity: 0; transform: translateY(24px); }
.pre .phones .back { opacity: 0; transform: translate(58%, 24px) scale(.9); }
.hero h1, .hero .lead, .hero .get, .hero .facts { transition: opacity .35s ease-out, transform .45s var(--spring); }
.phones .phone { transition: opacity .4s ease-out, transform .5s var(--spring); }
.hero .lead { transition-delay: .05s; }
.hero .get { transition-delay: .1s; }
.hero .facts { transition-delay: .15s; }
.hero .facts li { transition: transform .5s var(--spring); }
.pre .hero .facts li { transform: translateY(8px) scale(.9); }
.hero .facts li:nth-child(2) { transition-delay: .07s; }
.hero .facts li:nth-child(3) { transition-delay: .14s; }
.phones .front { transition-delay: .1s; }
.phones .back { transition-delay: .18s; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; gap: 40px; min-height: 0; }
  .hero-copy { justify-self: start; }
  .hero-stage { justify-self: stretch; display: flex; justify-content: center; }
  /* The pair is centred: the back phone peeks out to the right. */
  .phones { width: 250px; }
}
@media (max-width: 560px) {
  body { font-size: 19px; }
  .hero { padding-bottom: 40px; }
  .hero h1 { font-size: clamp(44px, 12.6vw, 58px); margin-bottom: 18px; }
  .lead { font-size: 19px; }
  .get { margin: 26px 0 18px; }
  .phones { width: min(220px, 56vw); }
}

/* ---------- Sections after the hero: the same centred 1200px column ---------- */

/* The halftone of the app's illustrations, quietly behind a phone. */
.halftone { position: absolute; width: min(560px, 120%); aspect-ratio: 1; border-radius: 50%; left: 50%; top: 50%; translate: -50% -50%;
  background: radial-gradient(circle, rgba(20,20,20,.16) 1.3px, transparent 1.7px) 0 0 / 11px 11px;
  -webkit-mask: radial-gradient(circle, #000 40%, transparent 68%); mask: radial-gradient(circle, #000 40%, transparent 68%);
  transition: background-image .6s; }

/* ---------- A Sunday: the phone stays, the service goes by ---------- */

/* Each moment has its own colour, as the App Store pictures take turns. */
.story { --bg: var(--paper); background: var(--bg); overflow: clip; transition: background-color .6s ease-out, color .6s ease-out; border-bottom: 2px solid var(--ink); }
.story[data-step="1"], .story[data-step="4"] { --bg: var(--teal); }
.story[data-step="2"] { --bg: var(--coral); }
.story[data-step="3"] { --bg: #1D2524; color: var(--paper); }
.story[data-step="3"] .halftone { background-image: radial-gradient(circle, rgba(148,194,191,.32) 1.3px, transparent 1.7px); }
.story .when { color: var(--ink); }
.story-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.steps { grid-area: 1 / 1; list-style: none; margin: 0; padding: 0 0 12svh; }
.step { min-height: 92svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 480px; opacity: .16; transition: opacity .45s ease-out; }
.step.now { opacity: 1; }
.when { display: inline-block; font-family: var(--round); font-weight: 800; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; padding: 4px 13px; margin-bottom: 20px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); }
.step h3 { font-size: clamp(38px, 4.4vw, 58px); font-weight: 500; line-height: 1.04; letter-spacing: -.012em; margin: 0 0 22px; text-wrap: balance; }
.step h3 em { font-weight: 400; }
.step p { font-size: 21px; margin: 0; }
.story[data-step="3"] .step p { opacity: .8; }

.stage { grid-area: 1 / 2; position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
.stage-phone { position: relative; width: min(320px, calc((100svh - 150px) / 2.112)); }
.stage .halftone { width: 190%; }
.story-phone { display: grid; }
.story-phone .scr { grid-area: 1 / 1; opacity: 0; transition: opacity .45s ease-out; }
.story-phone .scr.on { opacity: 1; }
/* The phone locks for the sermon, and wakes when you glance at it. */
.story-phone .scr[data-s="3"] { filter: brightness(.06); transition: opacity .45s ease-out, filter .9s ease-out .35s; }
.story-phone .scr[data-s="3"].on { filter: none; }

/* What matters lifts out of the screen: it starts exactly over its place on the screen and grows. */
.pop { --w: 112; max-width: none; position: absolute; left: 50%; top: var(--y); width: calc(var(--w) * 1%); translate: -50% -50%; scale: calc(var(--in) / var(--w));
  opacity: 0; pointer-events: none; filter: drop-shadow(0 22px 26px rgba(40,25,20,.28));
  transition: opacity .25s ease-out, scale .5s var(--snappy); }
.pop.on { opacity: 1; scale: 1; transition: opacity .3s ease-out .35s, scale .6s var(--spring) .35s; }
/* The home screen's board first sits in its place, so you see it is part of the screen; then it lifts out. */
/* Its shadow is a box-shadow round its own corners: Safari clips a drop-shadow on a scaled layer to a hard rectangle. */
.pop-board { filter: none; border-radius: 6.5% / 6.5%; box-shadow: 0 0 0 transparent; transition: opacity .2s ease-out, scale .4s var(--snappy), box-shadow .3s; }
.pop-board.on { box-shadow: 0 22px 36px rgba(40,25,20,.28); transition: opacity .01s linear .45s, scale .7s var(--spring) 1.3s, box-shadow .7s ease-out 1.3s; }
.pop-board { --y: 48.1%; --in: 85.9; }
.pop-score { --y: 31.4%; --in: 89.5; --w: 118; background: var(--card); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); padding: 1.5% 2.5% 2%; }
.pop-hit { --y: 36.6%; --in: 87.2; --w: 116; }
/* Focus: the verse being sung lifts out of the screen, its corners rounded like the app's cards. */
.pop-verse { --y: 45.38%; --in: 94.8; --w: 108; filter: none; border-radius: 4.1% / 6.6%; box-shadow: 0 22px 36px rgba(40,25,20,.28); }
/* The search hit matches its place on the screen exactly: show it at once, so nothing shows double while it grows. */
.pop-hit.on, .pop-verse.on { transition: opacity .01s linear .35s, scale .6s var(--spring) .35s; }
/* The lock screen's psalmbord: the screen wakes with it on it, then it lifts out, as the home screen's board does. */
.pop-widget { --y: 76.7%; --in: 87.9; filter: none; border-radius: 5.2% / 13.6%; box-shadow: 0 0 0 transparent; }
.pop-widget.on { box-shadow: 0 22px 40px rgba(0,0,0,.5); transition: opacity .01s linear 1.3s, scale .6s var(--spring) 1.3s, box-shadow .6s ease-out 1.3s; }

.pop-board .brow { position: absolute; left: 4.017%; width: 92.385%; }

/* The score: the note being sung lights up, verse by verse, quietly. */
.sline { position: relative; aspect-ratio: 1228 / 228; transition: opacity .3s ease-out; }
.sline img { width: 100%; height: 100%; }
/* As in the app: a soft coral mark behind the sounding note's head and behind its syllable. */
.glow, .head { position: absolute; background: rgba(242,158,138,.6); mix-blend-mode: multiply; opacity: 0; transition: left .18s var(--snappy), width .18s var(--snappy), top .18s var(--snappy), opacity .15s; }
.glow { top: 64%; bottom: 3%; border-radius: 6px; }
.head { width: 3.3%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; }
.glow.on, .head.on { opacity: 1; }

/* ---------- And more ---------- */

.more { padding: clamp(80px, 10vw, 130px) var(--gutter); max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; }
.more > h2 { text-align: center; margin-bottom: 46px; }
.more h3 { font-weight: 500; line-height: 1.1; margin: 0 0 8px; text-wrap: balance; }
.more h3 em { font-weight: 400; }
.rhyme { max-width: 1000px; margin-inline: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 64px); padding: clamp(26px, 4vw, 44px) clamp(24px, 5vw, 56px);
  background: var(--coral); border: 2px solid var(--ink); border-radius: 26px; box-shadow: 0 5px 0 var(--ink); }
.rhyme h3 { font-size: clamp(30px, 3.2vw, 40px); }
.rhyme p { font-size: 19px; margin: 0; max-width: 30em; }
.toggle { display: grid; width: 190px; max-width: 100%; }
.toggle img { grid-area: 1 / 1; width: 100%; transition: opacity .6s ease-out; }
.toggle img:last-child, .toggle.dnp img:first-child { opacity: 0; }
.toggle.dnp img:last-child { opacity: 1; }
/* The small things, side by side in one card. */
.perks { list-style: none; max-width: 1000px; margin: 18px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border: 2px solid var(--ink); border-radius: 26px; box-shadow: 0 5px 0 var(--ink); overflow: hidden; }
.perks li { padding: 28px 26px 30px; }
.perks li + li { border-left: 1.5px solid rgba(20,20,20,.14); }
.perks h3 { font-size: 24px; }
.perks p { font-size: 17px; opacity: .72; margin: 0; }
/* Round badges like the app's buttons, teal and coral by turns. */
.ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); margin-bottom: 18px; }
.perks li:nth-child(even) .ico { background: var(--coral); }
.ico svg { width: 23px; height: 23px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 860px) {
  /* On a phone the phone stays at the top, and each moment's words come up beneath it. */
  .story-body { display: block; }
  .stage { position: sticky; top: 0; z-index: 2; height: 60svh; padding-top: 66px; background: var(--bg); transition: background-color .6s ease-out; }
  .stage-phone { width: calc((60svh - 66px - 22px) / 2.112); }
  .stage .halftone { width: 230%; }
  .pop-board { --w: 150; }
  .pop-widget { --w: 145; }
  .pop-hit { --w: 155; }
  .pop-verse { --w: 140; }
  .pop-score { --w: 155; border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
  .glow { border-radius: 4px; }
  .steps { position: relative; z-index: 1; padding-bottom: 22svh; }
  .step { min-height: 56svh; justify-content: flex-start; padding-top: 4svh; text-align: left; }
  .when { margin-bottom: 14px; }
  .step h3 { font-size: clamp(30px, 8.4vw, 40px); margin-bottom: 12px; }
  .step p { font-size: 18px; }
  .rhyme { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .perks { grid-template-columns: 1fr 1fr; }
  .perks li:nth-child(3) { border-left: 0; }
  .perks li:nth-child(n+3) { border-top: 1.5px solid rgba(20,20,20,.14); }
}
@media (max-width: 560px) {
  .perks li { padding: 20px 18px 22px; }
  .perks h3 { font-size: 20px; }
  .perks p { font-size: 15.5px; }
  .ico { width: 42px; height: 42px; margin-bottom: 12px; }
  .ico svg { width: 20px; height: 20px; }
  .rhyme p { font-size: 18px; }
}

/* ---------- FAQ ---------- */

.faq-wrap { padding: 0 var(--gutter) clamp(80px, 10vw, 130px); }
.faq-wrap h2 { text-align: center; margin-bottom: 38px; }
.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 17px 60px 17px 22px; font-size: 21px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
/* The plus is drawn, not typed: a font glyph never sits in the true centre. */
.faq summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 30px; height: 30px; margin-top: -15px; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat, var(--teal); transition: transform .25s var(--snappy), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--coral); }
.faq details p { padding: 0 22px 20px; margin: 0; font-size: 19px; }

/* ---------- Final ---------- */

.final { position: relative; background: var(--launch); text-align: center; padding: clamp(80px, 10vw, 130px) var(--gutter); overflow: hidden; border-top: 2px solid var(--ink); }
.final h2 { position: relative; font-size: clamp(40px, 5.6vw, 72px); margin-top: 30px; }
.verse { margin: 30px auto 0; max-width: 560px; }
.verse p { font-style: italic; font-size: clamp(21px, 2vw, 25px); line-height: 1.45; margin: 0 0 12px; }
.verse cite { font-family: var(--round); font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; opacity: .6; }
.final-lyre { width: 150px; height: 162px; border: 0; background: none; padding: 0; margin: 0 auto; display: block; -webkit-tap-highlight-color: transparent; }
.final-note { font-family: var(--round); font-weight: 700; font-size: 14px; opacity: .7; margin: 0; }

/* ---------- Footer ---------- */

.footer { padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; border-top: 2px solid var(--ink); }
.foot-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.foot-brand img { border-radius: 9px; border: 2px solid var(--ink); }
.foot-brand b { font-weight: 600; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { font-family: var(--round); font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 2px solid var(--coral); }
.credits { flex-basis: 100%; font-size: 14px; opacity: .6; margin: 0; }

/* ---------- Mobile dock ---------- */

.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: none; align-items: center; gap: 12px; padding: 9px 9px 9px 11px; text-decoration: none;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 4px 0 var(--ink);
  transform: translateY(160%); transition: transform .4s var(--spring);
}
.dock.show { transform: none; }
.dock img { border-radius: 10px; border: 2px solid var(--ink); }
.dock > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.15; }
.dock b { font-weight: 600; font-size: 19px; }
.dock small { font-family: var(--round); font-weight: 700; font-size: 12px; opacity: .6; }
.dock .badge { margin-left: auto; }
@media (max-width: 760px) {
  .dock { display: flex; }
  .get .badge img { height: 50px; }
  .facts { gap: 6px; font-size: 12px; }
  .facts li { gap: 6px; padding: 6px 10px 6px 7px; }
  /* One download button at a time: the bar's takes over from the top bar's. */
  .docked .cta { opacity: 0; pointer-events: none; }
  .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .facts li { padding: 6px 10px; }
  .facts li::before { display: none; }
}

/* Reveal on scroll: a short fade, as the app fades things in. */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s ease-out, transform .45s var(--snappy); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
